/*
Deployment script for DB167958

This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
*/

GO
SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON;

SET NUMERIC_ROUNDABORT OFF;


GO
/*
:setvar DatabaseName "DB167958"
:setvar DefaultFilePrefix "DB167958"
:setvar DefaultDataPath "D:\Microsoft SQL Server\MSSQL15.SQL2019\MSSQL\DATA\"
:setvar DefaultLogPath "D:\Microsoft SQL Server\MSSQL15.SQL2019\MSSQL\DATA\"
*/

GO
:on error exit
GO
/*
Detect SQLCMD mode and disable script execution if SQLCMD mode is not supported.
To re-enable the script after enabling SQLCMD mode, execute the following:
SET NOEXEC OFF; 
*/
:setvar __IsSqlCmdEnabled "True"
GO
IF N'$(__IsSqlCmdEnabled)' NOT LIKE N'True'
    BEGIN
        PRINT N'SQLCMD mode must be enabled to successfully execute this script.';
        SET NOEXEC ON;
    END


GO
USE [$(DatabaseName)];


GO
PRINT N'Rename refactoring operation with key 3696ee40-a287-463a-9349-821c4927f6f8 is skipped, element [dbo].[ASM_SOFTWARE_USAGE_CONFIG_LIST].[product_id] (SqlSimpleColumn) will not be renamed to software_version_id';


GO
PRINT N'Rename refactoring operation with key d27ac274-e80d-41e4-b888-9aaf09be4066 is skipped, element [dbo].[AVS_PROFILE].[IS] (SqlSimpleColumn) will not be renamed to is_confirm_user';


GO
PRINT N'Rename refactoring operation with key 8e578236-f43b-4125-b3c0-18b5045dc921 is skipped, element [dbo].[AVS_PROFILE].[Id] (SqlSimpleColumn) will not be renamed to id';


GO
PRINT N'Creating Schema [adw]...';


GO
CREATE SCHEMA [adw]
    AUTHORIZATION [dbo];


GO
PRINT N'Creating Full-text Catalog [aranda_software]...';


GO
CREATE FULLTEXT CATALOG [aranda_software]
    WITH ACCENT_SENSITIVITY = OFF
    AUTHORIZATION [dbo];


GO
PRINT N'Creating Full-text Catalog [FTC_AFW]...';


GO
CREATE FULLTEXT CATALOG [FTC_AFW]
    WITH ACCENT_SENSITIVITY = OFF
    AUTHORIZATION [dbo];


GO
PRINT N'Creating Full-text Catalog [FTC_ASDK]...';


GO
CREATE FULLTEXT CATALOG [FTC_ASDK]
    WITH ACCENT_SENSITIVITY = OFF
    AUTHORIZATION [dbo];


GO
PRINT N'Creating Full-text Catalog [FTC_ASDK_ITEM]...';


GO
CREATE FULLTEXT CATALOG [FTC_ASDK_ITEM]
    WITH ACCENT_SENSITIVITY = OFF
    AUTHORIZATION [dbo];


GO
PRINT N'Creating Full Text Stoplist [FSL_ARANDA]...';


GO
CREATE FULLTEXT STOPLIST [FSL_ARANDA]
    AUTHORIZATION [dbo];


GO
PRINT N'Creating Table [adw].[DIM_ASDK_ITEM_TEXT]...';


GO
CREATE TABLE [adw].[DIM_ASDK_ITEM_TEXT] (
    [item_sk]            INT            NOT NULL,
    [start_date]         DATETIME2 (3)  NOT NULL,
    [end_date]           DATETIME2 (3)  NULL,
    [is_current]         BIT            NOT NULL,
    [subject]            NVARCHAR (400) NULL,
    [description]        NVARCHAR (MAX) NULL,
    [description_nohtml] NVARCHAR (MAX) NULL,
    [commentary]         NVARCHAR (MAX) NULL,
    [commentary_nohtml]  NVARCHAR (MAX) NULL,
    [cause]              NVARCHAR (MAX) NULL,
    [cause_nohtml]       NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_DIM_ASDK_ITEM_TEXT] PRIMARY KEY CLUSTERED ([item_sk] ASC, [start_date] ASC)
);


GO
PRINT N'Creating Table [adw].[DIM_ITEM_NOTES]...';


GO
CREATE TABLE [adw].[DIM_ITEM_NOTES] (
    [item_sk]    INT            NOT NULL,
    [start_date] DATETIME2 (3)  NOT NULL,
    [is_public]  BIT            NOT NULL,
    [is_current] BIT            NOT NULL,
    [note]       NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_DIM_ITEM_NOTES] PRIMARY KEY CLUSTERED ([item_sk] ASC, [start_date] ASC)
);


GO
PRINT N'Creating Index [adw].[DIM_ITEM_NOTES].[IX01_DIM_ITEM_NOTES]...';


GO
CREATE NONCLUSTERED INDEX [IX01_DIM_ITEM_NOTES]
    ON [adw].[DIM_ITEM_NOTES]([is_current] ASC);


GO
PRINT N'Creating Table [adw].[FACT_ASDK_ITEM]...';


GO
CREATE TABLE [adw].[FACT_ASDK_ITEM] (
    [id]                           INT            NOT NULL,
    [id_by_project]                NVARCHAR (256) NOT NULL,
    [modified_date]                DATETIME2 (3)  NOT NULL,
    [item_type_sk]                 INT            NOT NULL,
    [status_sk]                    INT            NULL,
    [project_sk]                   INT            NULL,
    [reason_sk]                    INT            NULL,
    [category_sk]                  INT            NULL,
    [service_sk]                   INT            NULL,
    [impact_sk]                    INT            NULL,
    [previous_specialist_group_sk] INT            NULL,
    [previous_specialist_user_sk]  INT            NULL,
    [urgency_sk]                   INT            NULL,
    [priority_sk]                  INT            NULL,
    [registry_type_sk]             INT            NULL,
    [specialist_group_sk]          INT            NULL,
    [specialist_user_sk]           INT            NULL,
    [customer_user_sk]             INT            NULL,
    [author_user_sk]               INT            NULL,
    [company_sk]                   INT            NULL,
    [ci_sk]                        INT            NULL,
    [modifier_user_sk]             INT            NULL,
    [receptor_user_sk]             INT            NULL,
    [integration_sk]               INT            NULL,
    [calendar_sla_sk]              INT            NULL,
    [calendar_uc_sk]               INT            NULL,
    [calendar_ola_sk]              INT            NULL,
    [model_sk]                     INT            NULL,
    [sla_sk]                       INT            NULL,
    [uc_sk]                        INT            NULL,
    [ola_sk]                       INT            NULL,
    [provider_sk]                  INT            NULL,
    [unit_sk]                      INT            NULL,
    [previous_status_sk]           INT            NULL,
    [cost_model_sk]                INT            NULL,
    [profit_center_sk]             INT            NULL,
    [cost_center_sk]               INT            NULL,
    [interface_sk]                 NVARCHAR (100) NULL,
    [state_initial]                INT            NULL,
    [state_final]                  INT            NULL,
    [location_sk]                  INT            NULL,
    [contract_sk]                  INT            NULL,
    [applicant_sk]                 INT            NULL,
    [estimated_date]               DATETIME       NULL,
    [estimated_date_sk]            INT            NULL,
    [current_progress]             FLOAT (53)     NULL,
    [current_time]                 FLOAT (53)     NULL,
    [price]                        FLOAT (53)     NULL,
    [cost]                         FLOAT (53)     NULL,
    [effort]                       FLOAT (53)     NULL,
    [available_cost]               BIT            NULL,
    [available_effort]             BIT            NULL,
    [available_price]              BIT            NULL,
    [available_count]              BIT            NULL,
    [time]                         FLOAT (53)     NULL,
    [created_date]                 DATETIME       NULL,
    [created_date_sk]              INT            NULL,
    [opened_date]                  DATETIME       NULL,
    [open_date_sk]                 INT            NULL,
    [closed_date]                  DATETIME       NULL,
    [close_date_sk]                INT            NULL,
    [default_time_real_date]       DATETIME       NULL,
    [default_time_real_date_sk]    INT            NULL,
    [estimated_time]               FLOAT (53)     NULL,
    [solution_date]                DATETIME       NULL,
    [solution_date_key]            INT            NULL,
    [attention_date]               DATETIME       NULL,
    [attention_date_key]           INT            NULL,
    [author_email]                 NVARCHAR (510) NULL,
    [recipient_emails]             NVARCHAR (MAX) NULL,
    [rev]                          INT            NULL,
    CONSTRAINT [PK_FACT_ASDK_ITEM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Column Store Index [ADW].[FACT_ASDK_ITEM].[NCCIX01_FACT_ASDK_ITEM]...';


GO
CREATE COLUMNSTORE INDEX [NCCIX01_FACT_ASDK_ITEM]
    ON [adw].[FACT_ASDK_ITEM]([modified_date], [item_type_sk], [status_sk], [project_sk], [reason_sk], [category_sk], [service_sk], [impact_sk], [urgency_sk], [priority_sk], [registry_type_sk], [specialist_group_sk], [specialist_user_sk], [customer_user_sk], [author_user_sk], [company_sk], [ci_sk], [receptor_user_sk], [integration_sk], [calendar_sla_sk], [calendar_uc_sk], [calendar_ola_sk], [model_sk], [sla_sk], [uc_sk], [ola_sk], [provider_sk], [unit_sk], [cost_model_sk], [profit_center_sk], [cost_center_sk], [interface_sk], [location_sk], [contract_sk], [applicant_sk], [estimated_date], [estimated_date_sk], [price], [cost], [effort], [available_cost], [available_effort], [available_price], [available_count], [time], [created_date], [created_date_sk], [opened_date], [open_date_sk], [closed_date], [close_date_sk], [default_time_real_date], [default_time_real_date_sk], [estimated_time], [solution_date], [solution_date_key], [attention_date], [attention_date_key]);


GO
PRINT N'Creating Index [adw].[FACT_ASDK_ITEM].[IX01_FACT_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX01_FACT_ASDK_ITEM]
    ON [adw].[FACT_ASDK_ITEM]([opened_date] ASC, [open_date_sk] ASC, [solution_date_key] ASC, [close_date_sk] ASC, [registry_type_sk] ASC, [item_type_sk] ASC, [status_sk] ASC, [model_sk] ASC, [service_sk] ASC, [category_sk] ASC, [specialist_group_sk] ASC);


GO
PRINT N'Creating Index [adw].[FACT_ASDK_ITEM].[IX02_FACT_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX02_FACT_ASDK_ITEM]
    ON [adw].[FACT_ASDK_ITEM]([interface_sk] ASC);


GO
PRINT N'Creating Index [adw].[FACT_ASDK_ITEM].[IX03_FACT_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX03_FACT_ASDK_ITEM]
    ON [adw].[FACT_ASDK_ITEM]([item_type_sk] ASC, [project_sk] ASC, [opened_date] ASC);


GO
PRINT N'Creating Index [adw].[FACT_ASDK_ITEM].[IX04_FACT_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX04_FACT_ASDK_ITEM]
    ON [adw].[FACT_ASDK_ITEM]([project_sk] ASC, [item_type_sk] ASC, [specialist_user_sk] ASC, [opened_date] DESC)
    INCLUDE([id_by_project], [modified_date], [status_sk], [reason_sk], [category_sk], [service_sk], [impact_sk], [urgency_sk], [priority_sk], [registry_type_sk], [specialist_group_sk], [customer_user_sk], [author_user_sk], [company_sk], [ci_sk], [modifier_user_sk], [receptor_user_sk], [integration_sk], [calendar_sla_sk], [calendar_uc_sk], [calendar_ola_sk], [model_sk], [sla_sk], [uc_sk], [ola_sk], [provider_sk], [unit_sk], [previous_status_sk], [cost_model_sk], [profit_center_sk], [cost_center_sk], [interface_sk], [state_initial], [state_final], [location_sk], [contract_sk], [applicant_sk], [estimated_date], [current_progress], [current_time], [price], [cost], [effort], [closed_date], [default_time_real_date], [estimated_time]);


GO
PRINT N'Creating Table [adw].[FACT_ASDK_ITEM_FIELDS_REVISION]...';


GO
CREATE TABLE [adw].[FACT_ASDK_ITEM_FIELDS_REVISION] (
    [id]            INT            NOT NULL,
    [modified_date] DATETIME2 (3)  NOT NULL,
    [is_current]    BIT            NOT NULL,
    [add_int_1]     INT            NULL,
    [add_int_2]     INT            NULL,
    [add_int_3]     INT            NULL,
    [add_int_4]     INT            NULL,
    [add_int_5]     INT            NULL,
    [add_int_6]     INT            NULL,
    [add_int_7]     INT            NULL,
    [add_int_8]     INT            NULL,
    [add_int_9]     INT            NULL,
    [add_int_10]    INT            NULL,
    [add_str_1]     NVARCHAR (MAX) NULL,
    [add_str_2]     NVARCHAR (MAX) NULL,
    [add_str_3]     NVARCHAR (MAX) NULL,
    [add_str_4]     NVARCHAR (MAX) NULL,
    [add_str_5]     NVARCHAR (MAX) NULL,
    [add_str_6]     NVARCHAR (MAX) NULL,
    [add_str_7]     NVARCHAR (MAX) NULL,
    [add_str_8]     NVARCHAR (MAX) NULL,
    [add_str_9]     NVARCHAR (MAX) NULL,
    [add_str_10]    NVARCHAR (MAX) NULL,
    [add_date_1]    DATETIME       NULL,
    [add_date_2]    DATETIME       NULL,
    [add_date_3]    DATETIME       NULL,
    [add_date_4]    DATETIME       NULL,
    [add_date_5]    DATETIME       NULL,
    [add_date_6]    DATETIME       NULL,
    [add_date_7]    DATETIME       NULL,
    [add_date_8]    DATETIME       NULL,
    [add_date_9]    DATETIME       NULL,
    [add_date_10]   DATETIME       NULL,
    [add_float_1]   FLOAT (53)     NULL,
    [add_float_2]   FLOAT (53)     NULL,
    [add_float_3]   FLOAT (53)     NULL,
    [add_float_4]   FLOAT (53)     NULL,
    [add_float_5]   FLOAT (53)     NULL,
    [add_float_6]   FLOAT (53)     NULL,
    [add_float_7]   FLOAT (53)     NULL,
    [add_float_8]   FLOAT (53)     NULL,
    [add_float_9]   FLOAT (53)     NULL,
    [add_float_10]  FLOAT (53)     NULL,
    [add_bool_1]    BIT            NULL,
    [add_bool_2]    BIT            NULL,
    [add_bool_3]    BIT            NULL,
    [add_bool_4]    BIT            NULL,
    [add_bool_5]    BIT            NULL,
    [add_bool_6]    BIT            NULL,
    [add_bool_7]    BIT            NULL,
    [add_bool_8]    BIT            NULL,
    [add_bool_9]    BIT            NULL,
    [add_bool_10]   BIT            NULL,
    CONSTRAINT [PK_FACT_ASDK_ITEM_FIELDS_REVISION] PRIMARY KEY CLUSTERED ([id] ASC, [modified_date] ASC)
);


GO
PRINT N'Creating Index [adw].[FACT_ASDK_ITEM_FIELDS_REVISION].[IX01_FACT_ASDK_FLD_FIELD_REV]...';


GO
CREATE NONCLUSTERED INDEX [IX01_FACT_ASDK_FLD_FIELD_REV]
    ON [adw].[FACT_ASDK_ITEM_FIELDS_REVISION]([id] ASC, [modified_date] ASC, [add_int_10] ASC);


GO
PRINT N'Creating Table [adw].[FACT_ASDK_ITEM_REVISION]...';


GO
CREATE TABLE [adw].[FACT_ASDK_ITEM_REVISION] (
    [id]                           INT            NOT NULL,
    [id_by_project]                NVARCHAR (256) NOT NULL,
    [modified_date]                DATETIME2 (3)  NOT NULL,
    [date_sk]                      INT            NOT NULL,
    [rev]                          INT            NULL,
    [item_type_sk]                 INT            NOT NULL,
    [status_sk]                    INT            NULL,
    [project_sk]                   INT            NULL,
    [reason_sk]                    INT            NULL,
    [category_sk]                  INT            NULL,
    [service_sk]                   INT            NULL,
    [impact_sk]                    INT            NULL,
    [urgency_sk]                   INT            NULL,
    [priority_sk]                  INT            NULL,
    [previous_specialist_group_sk] INT            NULL,
    [previous_specialist_user_sk]  INT            NULL,
    [registry_type_sk]             INT            NULL,
    [specialist_group_sk]          INT            NULL,
    [specialist_user_sk]           INT            NULL,
    [customer_user_sk]             INT            NULL,
    [author_user_sk]               INT            NULL,
    [company_sk]                   INT            NULL,
    [ci_sk]                        INT            NULL,
    [modifier_user_sk]             INT            NULL,
    [receptor_user_sk]             INT            NULL,
    [integration_sk]               INT            NULL,
    [interface_sk]                 NVARCHAR (100) NULL,
    [calendar_sla_sk]              INT            NULL,
    [calendar_uc_sk]               INT            NULL,
    [calendar_ola_sk]              INT            NULL,
    [model_sk]                     INT            NULL,
    [sla_sk]                       INT            NULL,
    [uc_sk]                        INT            NULL,
    [ola_sk]                       INT            NULL,
    [provider_sk]                  INT            NULL,
    [unit_sk]                      INT            NULL,
    [previous_status_sk]           INT            NULL,
    [cost_model_sk]                INT            NULL,
    [profit_center_sk]             INT            NULL,
    [cost_center_sk]               INT            NULL,
    [state_initial]                INT            NULL,
    [state_final]                  INT            NULL,
    [location_sk]                  INT            NULL,
    [contract_sk]                  INT            NULL,
    [applicant_sk]                 INT            NULL,
    [estimated_date]               DATETIME       NULL,
    [current_progress]             FLOAT (53)     NULL,
    [current_time]                 FLOAT (53)     NULL,
    [current_cost]                 FLOAT (53)     NULL,
    [current_effort]               FLOAT (53)     NULL,
    [current_price]                FLOAT (53)     NULL,
    [time]                         FLOAT (53)     NULL,
    [note_count]                   FLOAT (53)     NULL,
    [private_note_count]           FLOAT (53)     NULL,
    CONSTRAINT [PK_FACT_ASDK_ITEM_REVISION] PRIMARY KEY CLUSTERED ([id] ASC, [modified_date] ASC)
);


GO
PRINT N'Creating Column Store Index [ADW].[FACT_ASDK_ITEM_REVISION].[NCCIX01_FACT_ASDK_ITEM_REVISION]...';


GO
CREATE COLUMNSTORE INDEX [NCCIX01_FACT_ASDK_ITEM_REVISION]
    ON [adw].[FACT_ASDK_ITEM_REVISION]([date_sk], [status_sk], [modified_date], [item_type_sk], [project_sk], [reason_sk], [category_sk], [service_sk], [impact_sk], [urgency_sk], [priority_sk], [previous_specialist_group_sk], [previous_specialist_user_sk], [registry_type_sk], [specialist_group_sk], [specialist_user_sk], [customer_user_sk], [author_user_sk], [company_sk], [ci_sk], [modifier_user_sk], [receptor_user_sk], [integration_sk], [interface_sk], [calendar_sla_sk], [calendar_uc_sk], [calendar_ola_sk], [model_sk], [sla_sk], [uc_sk], [ola_sk], [provider_sk], [unit_sk], [previous_status_sk], [cost_model_sk], [profit_center_sk], [cost_center_sk], [state_initial], [state_final], [location_sk], [contract_sk], [applicant_sk], [estimated_date], [current_progress], [current_time], [current_cost], [current_effort], [current_price], [time], [note_count], [private_note_count]);


GO
PRINT N'Creating Index [adw].[FACT_ASDK_ITEM_REVISION].[IX01_FACT_ASDK_ITEM_REVISION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_FACT_ASDK_ITEM_REVISION]
    ON [adw].[FACT_ASDK_ITEM_REVISION]([id] ASC, [modified_date] ASC);


GO
PRINT N'Creating Table [dbo].[AAM_ADDITIONAL_FIELD_CAT]...';


GO
CREATE TABLE [dbo].[AAM_ADDITIONAL_FIELD_CAT] (
    [id]            INT IDENTITY (1, 1) NOT NULL,
    [category_id]   INT NOT NULL,
    [config_id]     INT NOT NULL,
    [definition_id] INT NOT NULL,
    CONSTRAINT [PK_AAM_ADDITIONAL_FIELD_CAT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_ADDITIONAL_FIELD_CAT] UNIQUE NONCLUSTERED ([category_id] ASC, [definition_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_AGENT_TASK]...';


GO
CREATE TABLE [dbo].[AAM_AGENT_TASK] (
    [id]               INT            IDENTITY (1, 1) NOT NULL,
    [application_code] INT            NOT NULL,
    [action_code]      INT            NOT NULL,
    [request]          NVARCHAR (MAX) NULL,
    [creation_date]    DATETIME       NOT NULL,
    [user_id]          INT            NOT NULL,
    CONSTRAINT [PK_AAM_AGENT_TASK] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_AGENT_TASK_DETAIL]...';


GO
CREATE TABLE [dbo].[AAM_AGENT_TASK_DETAIL] (
    [id]        INT            IDENTITY (1, 1) NOT NULL,
    [task_id]   INT            NOT NULL,
    [device_id] INT            NOT NULL,
    [status]    INT            NOT NULL,
    [response]  NVARCHAR (MAX) NULL,
    PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_AGENT_TASK_DETAIL] UNIQUE NONCLUSTERED ([task_id] ASC, [device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_BIOS]...';


GO
CREATE TABLE [dbo].[AAM_BIOS] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [version]         NVARCHAR (100) NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    CONSTRAINT [PK_AAM_BIOS] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_BIOS] UNIQUE NONCLUSTERED ([manufacturer_id] ASC, [version] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CACHE]...';


GO
CREATE TABLE [dbo].[AAM_CACHE] (
    [id]       INT           IDENTITY (1, 1) NOT NULL,
    [name]     NVARCHAR (64) NOT NULL,
    [level]    INT           NOT NULL,
    [location] NVARCHAR (64) NOT NULL,
    CONSTRAINT [PK_AAM_CACHE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK_AAM_CACHE] UNIQUE NONCLUSTERED ([name] ASC, [level] ASC, [location] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_INSTANCE]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_INSTANCE] (
    [id]   INT           IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_INSTANCE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_LOCATION]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_LOCATION] (
    [id]   INT           IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_LOCATION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_NETWORK_PROFILE]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_NETWORK_PROFILE] (
    [subscription_id] INT           NOT NULL,
    [vm_id]           NVARCHAR (50) NOT NULL,
    [public_ip]       VARCHAR (50)  NULL,
    [interface_name]  NVARCHAR (80) NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_NETWORK_PROFILE] PRIMARY KEY CLUSTERED ([subscription_id] ASC, [vm_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_OS]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_OS] (
    [id]   INT           IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_OS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_OS_PROFILE]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_OS_PROFILE] (
    [subscription_id]    INT            NOT NULL,
    [vm_id]              NVARCHAR (50)  NOT NULL,
    [win_update_enabled] BIT            NULL,
    [user_name]          NVARCHAR (50)  NOT NULL,
    [computer_name]      NVARCHAR (100) NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_OS_PROFILE] PRIMARY KEY CLUSTERED ([subscription_id] ASC, [vm_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_PLATFORM]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_PLATFORM] (
    [id_type] INT           NOT NULL,
    [name]    NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_PLATFORM] PRIMARY KEY CLUSTERED ([id_type] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_SECURITY_PROFILE]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_SECURITY_PROFILE] (
    [subscription_id]     INT           NOT NULL,
    [vm_id]               NVARCHAR (50) NOT NULL,
    [secure_boot_enabled] BIT           NULL,
    [vtpm_enabled]        BIT           NULL,
    [security_type]       NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_SECURITY_PROFILE] PRIMARY KEY CLUSTERED ([subscription_id] ASC, [vm_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_STATE]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_STATE] (
    [id]   INT           IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_STATE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_STORAGE_PROFILE]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_STORAGE_PROFILE] (
    [subscription_id]   INT           NOT NULL,
    [vm_id]             NVARCHAR (50) NOT NULL,
    [publisher]         NVARCHAR (80) NOT NULL,
    [offer]             NVARCHAR (80) NOT NULL,
    [sku]               NVARCHAR (80) NOT NULL,
    [version]           NVARCHAR (80) NOT NULL,
    [exact_version]     NVARCHAR (80) NOT NULL,
    [storage_data_disk] INT           NULL,
    [os_disk_id]        INT           NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_STORAGE_PROFILE] PRIMARY KEY CLUSTERED ([subscription_id] ASC, [vm_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_SUBSCRIPTION]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_SUBSCRIPTION] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [name]            NVARCHAR (50)  NOT NULL,
    [platform]        INT            NOT NULL,
    [subscription_id] NVARCHAR (50)  NOT NULL,
    [configuration]   NVARCHAR (MAX) NOT NULL,
    [is_active]       BIT            NOT NULL,
    [created_date]    DATETIME       NOT NULL,
    [last_update]     DATETIME       NULL,
    [last_sync_date]  DATETIME       NULL,
    CONSTRAINT [PK_AAM_CLOUD_SUBSCRIPTION] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_CLOUD_SUBSCRIPTION] UNIQUE NONCLUSTERED ([name] ASC),
    CONSTRAINT [UK02_AAM_CLOUD_SUBSCRIPTION] UNIQUE NONCLUSTERED ([subscription_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_SYNCHRONIZATION]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] (
    [subscription_id]     INT            NOT NULL,
    [vm_id]               NVARCHAR (50)  NOT NULL,
    [name]                NVARCHAR (100) NOT NULL,
    [state_id]            INT            NOT NULL,
    [instance_type_id]    INT            NOT NULL,
    [operating_system_id] INT            NOT NULL,
    [cores]               INT            NULL,
    [storage]             INT            NULL,
    [zone_id]             INT            NOT NULL,
    [location_id]         INT            NOT NULL,
    [inventoried]         BIT            NULL,
    [created_date]        DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_SYNCHRONIZATION] PRIMARY KEY CLUSTERED ([subscription_id] ASC, [vm_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_SYNCHRONIZATION_DETAIL]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION_DETAIL] (
    [subscription_id]       INT           NOT NULL,
    [vm_id]                 NVARCHAR (50) NOT NULL,
    [ram]                   INT           NOT NULL,
    [provisioning_state_id] INT           NOT NULL,
    [diagnostics_enabled]   BIT           NOT NULL,
    [creation_date]         DATETIME      NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_SYNCHRONIZATION_DETAIL] PRIMARY KEY CLUSTERED ([subscription_id] ASC, [vm_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_TAGS]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_TAGS] (
    [subscription_id] INT            NOT NULL,
    [vm_id]           NVARCHAR (50)  NOT NULL,
    [tag_name]        NVARCHAR (512) NOT NULL,
    [tag_value]       NVARCHAR (256) NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_TAGS] PRIMARY KEY CLUSTERED ([subscription_id] ASC, [vm_id] ASC, [tag_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CLOUD_ZONE]...';


GO
CREATE TABLE [dbo].[AAM_CLOUD_ZONE] (
    [id]   INT           IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AAM_CLOUD_ZONE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CONFIG_ITEM_RELATION]...';


GO
CREATE TABLE [dbo].[AAM_CONFIG_ITEM_RELATION] (
    [configuration_id]         INT NOT NULL,
    [related_configuration_id] INT NOT NULL,
    [relation_type_id]         INT NOT NULL,
    CONSTRAINT [PK_AAM_CONFIG_ITEM_RELATION] PRIMARY KEY CLUSTERED ([configuration_id] ASC, [related_configuration_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_CONFIG_ITEM_RELATION].[IX01_CONFIG_ITEM_RELATION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_CONFIG_ITEM_RELATION]
    ON [dbo].[AAM_CONFIG_ITEM_RELATION]([configuration_id] ASC, [relation_type_id] ASC);


GO
PRINT N'Creating Table [dbo].[AAM_CONFIGURATION_ITEM]...';


GO
CREATE TABLE [dbo].[AAM_CONFIGURATION_ITEM] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [item_id]            INT            NOT NULL,
    [configuration_id]   INT            NOT NULL,
    [item_type]          NVARCHAR (100) NOT NULL,
    [item_data]          NVARCHAR (MAX) NULL,
    [item_modified_date] DATETIME       NULL,
    CONSTRAINT [PK_AAM_CONFIGURATION_ITEM] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_CONFIGURATION_ITEM] UNIQUE NONCLUSTERED ([item_id] ASC, [configuration_id] ASC, [item_type] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CONFLICT_RESOL_SETTI]...';


GO
CREATE TABLE [dbo].[AAM_CONFLICT_RESOL_SETTI] (
    [id]                     INT IDENTITY (1, 1) NOT NULL,
    [conflict_resolution_id] INT NOT NULL,
    [conflict_cause_id]      INT NOT NULL,
    [conflict_action_id]     INT NOT NULL,
    CONSTRAINT [PK_AAM_CONFLICT_RESOL_SETTI] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_CONFLICT_RESOLUTION]...';


GO
CREATE TABLE [dbo].[AAM_CONFLICT_RESOLUTION] (
    [id]                           INT IDENTITY (1, 1) NOT NULL,
    [auto_conflict_resolut_enable] BIT NOT NULL,
    [device_id]                    INT NOT NULL,
    CONSTRAINT [PK_AAM_CONFLICT_RESOLUTION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [alias]             NVARCHAR (50)  NULL,
    [name]              NVARCHAR (150) NOT NULL,
    [created_date]      DATETIME       NOT NULL,
    [description]       NVARCHAR (256) NULL,
    [username]          NVARCHAR (64)  NULL,
    [workgroup]         NVARCHAR (40)  NULL,
    [domain]            NVARCHAR (40)  NULL,
    [server]            NVARCHAR (50)  NULL,
    [guid]              NVARCHAR (80)  NOT NULL,
    [type]              INT            NOT NULL,
    [token]             NVARCHAR (255) NULL,
    [hardware_hash]     NVARCHAR (80)  NULL,
    [is_discovery]      BIT            NOT NULL,
    [is_active]         BIT            NOT NULL,
    [auto_setted_user]  BIT            NOT NULL,
    [status]            TINYINT        NOT NULL,
    [modification_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_DEVICE] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE].[IX01_AAM_DEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_DEVICE]
    ON [dbo].[AAM_DEVICE]([guid] ASC);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE].[IX02_AAM_DEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AAM_DEVICE]
    ON [dbo].[AAM_DEVICE]([is_active] ASC);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE].[IX03_AAM_DEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AAM_DEVICE]
    ON [dbo].[AAM_DEVICE]([name] ASC);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_ACTIVITY]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_ACTIVITY] (
    [id]             INT      IDENTITY (1, 1) NOT NULL,
    [date]           DATETIME NOT NULL,
    [device_id]      INT      NOT NULL,
    [user_id]        INT      NOT NULL,
    [application_id] INT      NOT NULL,
    [action_code]    INT      NOT NULL,
    [status]         INT      NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_ACTIVITY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_APPLICATION]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_APPLICATION] (
    [id]              INT            NOT NULL,
    [date]            DATETIME       NULL,
    [size]            BIGINT         NOT NULL,
    [source_path_id]  INT            NULL,
    [patch_code_id]   INT            NULL,
    [help_path_id]    INT            NULL,
    [support_path_id] INT            NULL,
    [update_path_id]  INT            NULL,
    [user_key]        NVARCHAR (255) NULL,
    CONSTRAINT [PK01_AAM_DEVICE_APPLICATION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_BIOS]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_BIOS] (
    [device_id] INT      NOT NULL,
    [bios_id]   INT      NOT NULL,
    [date]      DATETIME NULL,
    [rom_size]  INT      NULL,
    CONSTRAINT [PK_AAM_DEVICE_BIOS] PRIMARY KEY CLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_BOARDSLOT]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_BOARDSLOT] (
    [device_id]         INT            NOT NULL,
    [slot_id]           INT            NOT NULL,
    [name]              NVARCHAR (255) NOT NULL,
    [type]              NVARCHAR (255) NULL,
    [usage]             NVARCHAR (255) NULL,
    [krun_status]       CHAR (1)       NULL,
    [modification_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_BOARDSLOT] PRIMARY KEY CLUSTERED ([device_id] ASC, [slot_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_CONFIGURATION]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_CONFIGURATION] (
    [device_id]     INT           NOT NULL,
    [agent_version] NVARCHAR (15) NOT NULL,
    [profile_id]    INT           NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_CONFIGURATION] PRIMARY KEY CLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_CONFLICT]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_CONFLICT] (
    [id]                 INT      IDENTITY (1, 1) NOT NULL,
    [conflict_action_id] INT      NOT NULL,
    [conflict_cause_id]  INT      NOT NULL,
    [conflict_type_id]   INT      NOT NULL,
    [date]               DATETIME NOT NULL,
    [device_id]          INT      NOT NULL,
    [status_id]          INT      NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_CONFLICT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE_CONFLICT].[IX01_AAM_DEVICE_CONFLICT]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_DEVICE_CONFLICT]
    ON [dbo].[AAM_DEVICE_CONFLICT]([device_id] ASC);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_CONFLICT_ACT]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_CONFLICT_ACT] (
    [id]     INT            NOT NULL,
    [action] NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_CONFLICT_ACT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_CONFLICT_CAUSE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_CONFLICT_CAUSE] (
    [id]    INT            NOT NULL,
    [cause] NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_CONFLICT_CAUSE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_CONFLICT_STATU]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_CONFLICT_STATU] (
    [id]     INT            NOT NULL,
    [status] NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_CONFLICT_STATU] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_CONFLICT_TYPE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_CONFLICT_TYPE] (
    [id]   INT            NOT NULL,
    [type] NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_CONFLICT_TYPE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_DISK]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_DISK] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [device_id]         INT            NOT NULL,
    [disk_id]           INT            NOT NULL,
    [pnp_device_id]     NVARCHAR (255) NOT NULL,
    [serial]            NVARCHAR (255) NULL,
    [bus_type]          NVARCHAR (255) NULL,
    [media_type]        NVARCHAR (255) NOT NULL,
    [features]          NVARCHAR (500) NULL,
    [size]              BIGINT         NOT NULL,
    [krun_status]       CHAR (1)       NULL,
    [modification_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_DISK] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DEVICE_DISK] UNIQUE NONCLUSTERED ([device_id] ASC, [disk_id] ASC, [pnp_device_id] ASC, [serial] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE_DISK].[IX01_AAM_DEVICE_DISK]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_DEVICE_DISK]
    ON [dbo].[AAM_DEVICE_DISK]([media_type] ASC, [device_id] ASC);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_DISPLAY]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_DISPLAY] (
    [device_id]         INT            NOT NULL,
    [display_id]        INT            NOT NULL,
    [serial]            NVARCHAR (100) NOT NULL,
    [date]              DATETIME       NULL,
    [revision_number]   NVARCHAR (50)  NULL,
    [krun_status]       CHAR (1)       NULL,
    [modification_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_DISPLAY] PRIMARY KEY CLUSTERED ([device_id] ASC, [display_id] ASC, [serial] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_DRIVER]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_DRIVER] (
    [device_id]     INT            NOT NULL,
    [driver_id]     INT            NOT NULL,
    [pnp_device_id] NVARCHAR (255) NOT NULL,
    [status]        NVARCHAR (50)  NULL,
    [error]         NVARCHAR (255) NULL,
    [krun_status]   CHAR (1)       NULL,
    CONSTRAINT [PK_AAM_DEVICE_DRIVER] PRIMARY KEY CLUSTERED ([device_id] ASC, [driver_id] ASC, [pnp_device_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE_DRIVER].[IX01_AAM_DEVICE_DRIVER]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_DEVICE_DRIVER]
    ON [dbo].[AAM_DEVICE_DRIVER]([driver_id] ASC)
    INCLUDE([device_id]);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_FEATURE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_FEATURE] (
    [device_id]      INT NOT NULL,
    [virtualization] INT NULL,
    CONSTRAINT [PK_AAM_DEVICE_FEATURE] PRIMARY KEY CLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_FILE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_FILE] (
    [id]                INT          IDENTITY (1, 1) NOT NULL,
    [device_id]         INT          NOT NULL,
    [file_name_id]      INT          NOT NULL,
    [path_id]           INT          NOT NULL,
    [size]              BIGINT       NOT NULL,
    [modification_date] DATETIME     NULL,
    [krun_status]       NVARCHAR (1) NULL,
    CONSTRAINT [PK_AAM_DEVICE_FILE] PRIMARY KEY NONCLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DEVICE_FILE] UNIQUE CLUSTERED ([device_id] ASC, [file_name_id] ASC, [path_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_FILE_VERSION]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_FILE_VERSION] (
    [id]                INT          IDENTITY (1, 1) NOT NULL,
    [device_id]         INT          NOT NULL,
    [path_id]           INT          NOT NULL,
    [size]              BIGINT       NOT NULL,
    [modification_date] DATETIME     NULL,
    [krun_status]       NVARCHAR (1) NULL,
    [file_version_id]   INT          NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_FILE_VERSION] PRIMARY KEY NONCLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DEVICE_FILE_VERSION] UNIQUE CLUSTERED ([device_id] ASC, [file_version_id] ASC, [path_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_HARDWARE_REMOV]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_HARDWARE_REMOV] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [device_id]     INT            NOT NULL,
    [hardware_type] INT            NOT NULL,
    [type_id]       INT            NOT NULL,
    [manufacturer]  NVARCHAR (500) NULL,
    [model]         NVARCHAR (255) NULL,
    [serial]        NVARCHAR (255) NULL,
    [size]          BIGINT         NULL,
    [type]          NVARCHAR (60)  NULL,
    [name]          NVARCHAR (255) NULL,
    [features]      NVARCHAR (500) NULL,
    [status]        NVARCHAR (500) NULL,
    CONSTRAINT [PK_AAM_DEVICE_HARDWARE_REMOV] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_KEYBOARD]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_KEYBOARD] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [device_id]     INT            NOT NULL,
    [keyboard_id]   INT            NOT NULL,
    [pnp_device_id] NVARCHAR (255) NOT NULL,
    [type]          NVARCHAR (50)  NULL,
    [language]      NVARCHAR (50)  NULL,
    [country]       NVARCHAR (50)  NULL,
    [layout]        NVARCHAR (50)  NULL,
    [krun_status]   CHAR (1)       NULL,
    CONSTRAINT [PK_AAM_DEVICE_KEYBOARD] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_LOCATION]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_LOCATION] (
    [id]           INT        IDENTITY (1, 1) NOT NULL,
    [device_id]    INT        NOT NULL,
    [longitude]    FLOAT (53) NOT NULL,
    [latitude]     FLOAT (53) NOT NULL,
    [height]       FLOAT (53) NULL,
    [acceleration] FLOAT (53) NULL,
    CONSTRAINT [PK_AAM_DEVICE_LOCATION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_MEMBERSHIP]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_MEMBERSHIP] (
    [id]                INT             IDENTITY (1, 1) NOT NULL,
    [device_id]         INT             NOT NULL,
    [user_id]           INT             NULL,
    [group_id]          INT             NULL,
    [parent_group_id]   INT             NULL,
    [enabled]           BIT             NULL,
    [locked]            BIT             NULL,
    [password_change]   BIT             NULL,
    [password_expire]   BIT             NULL,
    [password_required] BIT             NULL,
    [description]       NVARCHAR (1000) NULL,
    [full_username]     NVARCHAR (1000) NULL,
    [krun_status]       CHAR (1)        NULL,
    CONSTRAINT [PK_DEVICE_GROUP_MEMBER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_DEVICE_MEMBERSHIP] UNIQUE NONCLUSTERED ([device_id] ASC, [user_id] ASC, [group_id] ASC, [parent_group_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_MEMORY]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_MEMORY] (
    [device_id]             INT    NOT NULL,
    [physical]              BIGINT NOT NULL,
    [available_physical]    BIGINT NOT NULL,
    [virtual]               BIGINT NOT NULL,
    [available_virtual]     BIGINT NOT NULL,
    [max_ram]               BIGINT NOT NULL,
    [page_memory]           BIGINT NOT NULL,
    [available_page_memory] BIGINT NOT NULL,
    [slot_count]            INT    NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_MEMORY] PRIMARY KEY CLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_MEMORYSLOT]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_MEMORYSLOT] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [device_id]         INT            NOT NULL,
    [handler]           NVARCHAR (60)  NOT NULL,
    [memory_id]         INT            NULL,
    [name]              NVARCHAR (255) NOT NULL,
    [size]              BIGINT         NOT NULL,
    [type]              NVARCHAR (60)  NULL,
    [speed]             INT            NOT NULL,
    [bank]              NVARCHAR (255) NULL,
    [serial]            NVARCHAR (255) NULL,
    [form_factor]       NVARCHAR (255) NULL,
    [krun_status]       CHAR (1)       NULL,
    [modification_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_MEMORYSLOT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_NETWORKADAPTER]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_NETWORKADAPTER] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [device_id]         INT            NOT NULL,
    [adapter_id]        INT            NOT NULL,
    [mac]               NVARCHAR (255) NULL,
    [speed]             BIGINT         NULL,
    [dhcp_enabled]      INT            NULL,
    [dhcp_address]      NVARCHAR (45)  NULL,
    [dhcp_obtained]     DATETIME       NULL,
    [dhcp_expired]      DATETIME       NULL,
    [lmhosts_enabled]   INT            NULL,
    [krun_status]       CHAR (1)       NULL,
    [modification_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_NETWORKADAPTER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DEVICE_NETWORKADAPTER] UNIQUE NONCLUSTERED ([device_id] ASC, [adapter_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_OS]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_OS] (
    [id]           INT            NOT NULL,
    [kernel]       NVARCHAR (50)  NULL,
    [extra]        NVARCHAR (100) NULL,
    [architecture] NVARCHAR (20)  NULL,
    [language]     NVARCHAR (60)  NULL,
    [locale]       NVARCHAR (60)  NULL,
    [os_type]      NVARCHAR (254) NULL,
    CONSTRAINT [PK01_AAM_DEVICE_OS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_PERSISTENCE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_PERSISTENCE] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [device_id]       INT            NOT NULL,
    [activation_date] DATETIME       NOT NULL,
    [message]         NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AAM_DEVICE_PERSISTENCE] PRIMARY KEY CLUSTERED ([id] ASC),
    UNIQUE NONCLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_PORTCONNECTOR]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_PORTCONNECTOR] (
    [device_id]    INT            NOT NULL,
    [connector_id] INT            NOT NULL,
    [name]         NVARCHAR (255) NOT NULL,
    [erd]          NVARCHAR (255) NOT NULL,
    [krun_status]  CHAR (1)       NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_PORTCONNECTOR] PRIMARY KEY CLUSTERED ([device_id] ASC, [connector_id] ASC, [name] ASC, [erd] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_PRINTER]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_PRINTER] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [device_id]         INT            NOT NULL,
    [name]              NVARCHAR (120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    [driver_id]         INT            NOT NULL,
    [description]       NVARCHAR (250) NULL,
    [port]              NVARCHAR (256) NULL,
    [krun_status]       CHAR (1)       NULL,
    [modification_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_PRINTER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DEVICE_PRINTER] UNIQUE NONCLUSTERED ([device_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_PROCESSORSLOT]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_PROCESSORSLOT] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [device_id]          INT            NOT NULL,
    [index]              INT            NOT NULL,
    [processor_id]       INT            NULL,
    [features]           NVARCHAR (500) NULL,
    [speed]              BIGINT         NULL,
    [serial]             NVARCHAR (255) NULL,
    [frecuency]          BIGINT         NULL,
    [socket]             NVARCHAR (255) NULL,
    [upgrade]            NVARCHAR (255) NULL,
    [core_count]         INT            NULL,
    [family]             NVARCHAR (255) NULL,
    [status]             INT            NOT NULL,
    [populated]          BIT            NOT NULL,
    [krun_status]        CHAR (1)       NULL,
    [logical_processors] INT            NULL,
    CONSTRAINT [PK_AAM_DEVICE_PROCESSORSLOT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DEVICE_PROCESSORSLOT] UNIQUE NONCLUSTERED ([device_id] ASC, [index] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_REC_ACT_SENT]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_REC_ACT_SENT] (
    [id]                    INT           IDENTITY (1, 1) NOT NULL,
    [activity_request_id]   INT           NOT NULL,
    [activity_status_id]    INT           NOT NULL,
    [send_date]             DATETIME      NULL,
    [fetch_date]            DATETIME      NULL,
    [answer_date]           DATETIME      NULL,
    [expire_date]           DATETIME      NULL,
    [description]           VARCHAR (200) NULL,
    [task_status_id]        INT           NULL,
    [inventory_file_result] VARCHAR (20)  NULL,
    CONSTRAINT [PK_AAM_DEVICE_REC_ACT_SENT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_REC_ACT_TYPE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_REC_ACT_TYPE] (
    [id]   INT          NOT NULL,
    [name] VARCHAR (20) NULL,
    CONSTRAINT [PK_AAM_DEVICE_REC_ACT_TYPE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_RECORD_ACT_REQ]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_RECORD_ACT_REQ] (
    [id]                      INT           IDENTITY (1, 1) NOT NULL,
    [task_detail_id]          INT           NULL,
    [device_id]               INT           NOT NULL,
    [user_id]                 INT           NULL,
    [request_date]            DATETIME      NOT NULL,
    [activity_record_type_id] INT           NOT NULL,
    [device_software_id]      INT           NULL,
    [activity_description]    VARCHAR (200) NULL,
    [device_name]             VARCHAR (500) NULL,
    [user_name]               VARCHAR (500) NULL,
    CONSTRAINT [PK_AAM_DEVICE_RECORD_ACT_REQ] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE_RECORD_ACT_REQ].[IX01_AAM_DEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_DEVICE]
    ON [dbo].[AAM_DEVICE_RECORD_ACT_REQ]([device_id] ASC);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_RECORD_ACT_STA]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_RECORD_ACT_STA] (
    [id]               INT          NOT NULL,
    [name]             VARCHAR (50) NULL,
    [activity_type_id] INT          NULL,
    CONSTRAINT [PK_AAM_DEVICE_RECORD_ACT_STA] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_RESPONSIBLE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_RESPONSIBLE] (
    [device_id] INT NOT NULL,
    [user_id]   INT NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_RESPONSIBLE] PRIMARY KEY CLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_SERVICE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_SERVICE] (
    [id]          INT             IDENTITY (1, 1) NOT NULL,
    [device_id]   INT             NOT NULL,
    [service_id]  INT             NOT NULL,
    [command]     NVARCHAR (2048) NOT NULL,
    [description] NVARCHAR (1024) NULL,
    [startup_id]  INT             NULL,
    [status_id]   INT             NULL,
    [krun_status] CHAR (1)        NULL,
    CONSTRAINT [PK_AAM_DEVICE_SERVICE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK_AAM_DEVICE_SERVICE] UNIQUE NONCLUSTERED ([device_id] ASC, [service_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_SETUP]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_SETUP] (
    [device_id]                 INT            NOT NULL,
    [version]                   NVARCHAR (255) NULL,
    [system_manufacturer_id]    INT            NOT NULL,
    [system_product]            NVARCHAR (255) NULL,
    [system_version]            NVARCHAR (255) NULL,
    [system_serial]             NVARCHAR (255) NULL,
    [system_id]                 NVARCHAR (255) NULL,
    [system_sku]                NVARCHAR (255) NULL,
    [baseboard_manufacturer_id] INT            NOT NULL,
    [baseboard_product]         NVARCHAR (255) NULL,
    [baseboard_version]         NVARCHAR (255) NULL,
    [baseboard_serial]          NVARCHAR (255) NULL,
    [baseboard_tag]             NVARCHAR (255) NULL,
    [chassis_manufacturer_id]   INT            NOT NULL,
    [chassis_type]              NVARCHAR (255) NULL,
    [chassis_security]          NVARCHAR (255) NULL,
    [chassis_lock]              INT            NULL,
    [chassis_version]           NVARCHAR (255) NULL,
    [chassis_serial]            NVARCHAR (255) NULL,
    [chassis_tag]               NVARCHAR (255) NULL,
    CONSTRAINT [PK_AAM_DEVICE_SETUP] PRIMARY KEY CLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE_SETUP].[IX01_AAM_DEVICE_SETUP]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_DEVICE_SETUP]
    ON [dbo].[AAM_DEVICE_SETUP]([system_manufacturer_id] ASC);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE_SETUP].[IX02_AAM_DEVICE_SETUP]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AAM_DEVICE_SETUP]
    ON [dbo].[AAM_DEVICE_SETUP]([chassis_manufacturer_id] ASC);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE_SETUP].[IX03_AAM_DEVICE_SETUP]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AAM_DEVICE_SETUP]
    ON [dbo].[AAM_DEVICE_SETUP]([baseboard_manufacturer_id] ASC);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_SHAREDRESOURCE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_SHAREDRESOURCE] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [device_id]   INT            NOT NULL,
    [path_id]     INT            NULL,
    [name]        NVARCHAR (80)  NOT NULL,
    [type]        NVARCHAR (30)  NOT NULL,
    [description] NVARCHAR (512) NULL,
    [krun_status] CHAR (1)       NULL,
    CONSTRAINT [PK_AAM_DEVICE_SHAREDRESOURCE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DEVICE_SHAREDRESOURCE] UNIQUE NONCLUSTERED ([device_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_SNMP_DATA]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_SNMP_DATA] (
    [id]        INT            IDENTITY (1, 1) NOT NULL,
    [device_id] INT            NOT NULL,
    [label]     NVARCHAR (256) NOT NULL,
    [oid]       VARCHAR (128)  NOT NULL,
    [value]     NVARCHAR (512) NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_SNMP_DATA] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_SOFT_UNINSTALL]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_SOFT_UNINSTALL] (
    [id]        INT           IDENTITY (1, 1) NOT NULL,
    [device_id] INT           NOT NULL,
    [software]  VARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_SOFT_UNINSTALL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_SOFTWARE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_SOFTWARE] (
    [id]                  INT            IDENTITY (1, 1) NOT NULL,
    [device_id]           INT            NOT NULL,
    [software_id]         INT            NOT NULL,
    [software_key_id]     INT            NULL,
    [product_code_id]     INT            NULL,
    [company]             NVARCHAR (255) NULL,
    [owner]               NVARCHAR (255) NULL,
    [install_path_id]     INT            NULL,
    [uninstall_string_id] INT            NULL,
    [system_component]    BIT            NOT NULL,
    [krun_status]         CHAR (1)       NULL,
    [modification_date]   DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_SOFTWARE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DEVICE_SOFTWARE] UNIQUE NONCLUSTERED ([device_id] ASC, [software_key_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE_SOFTWARE].[IX01_AAM_DEVICE_SOFTWARE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_DEVICE_SOFTWARE]
    ON [dbo].[AAM_DEVICE_SOFTWARE]([software_id] ASC)
    INCLUDE([device_id]);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE_SOFTWARE].[IX02_AAM_DEVICE_SOFTWARE_D]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AAM_DEVICE_SOFTWARE_D]
    ON [dbo].[AAM_DEVICE_SOFTWARE]([device_id] ASC)
    INCLUDE([company], [system_component], [krun_status]);


GO
PRINT N'Creating Index [dbo].[AAM_DEVICE_SOFTWARE].[IX03_AAM_DEVICE_SOFTWARE]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AAM_DEVICE_SOFTWARE]
    ON [dbo].[AAM_DEVICE_SOFTWARE]([device_id] ASC)
    INCLUDE([software_id]);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_STARTUPCOMMAND]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_STARTUPCOMMAND] (
    [device_id]   INT             NOT NULL,
    [name_id]     INT             NOT NULL,
    [path_id]     INT             NOT NULL,
    [command]     NVARCHAR (2048) NOT NULL,
    [type]        NVARCHAR (10)   NOT NULL,
    [krun_status] CHAR (1)        NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_STARTUPCOMMAND] PRIMARY KEY CLUSTERED ([device_id] ASC, [name_id] ASC, [path_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_TYPE]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_TYPE] (
    [id]      INT           IDENTITY (1, 1) NOT NULL,
    [name]    NVARCHAR (64) NOT NULL,
    [enabled] BIT           NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_TYPE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_UNITMAPPING]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_UNITMAPPING] (
    [device_id]   INT            NOT NULL,
    [unit]        NVARCHAR (150) NOT NULL,
    [path_id]     INT            NOT NULL,
    [server_id]   INT            NOT NULL,
    [krun_status] CHAR (1)       NULL,
    CONSTRAINT [PK_AAM_DEVICE_UNITMAPPING] PRIMARY KEY CLUSTERED ([device_id] ASC, [unit] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_VIDEOCARD]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_VIDEOCARD] (
    [device_id]    INT            NOT NULL,
    [videocard_id] INT            NOT NULL,
    [driver_name]  NVARCHAR (255) NOT NULL,
    [chipset]      NVARCHAR (255) NULL,
    [dac]          NVARCHAR (255) NULL,
    [memory_size]  BIGINT         NULL,
    [date]         DATETIME       NULL,
    [version]      NVARCHAR (255) NULL,
    [krun_status]  CHAR (1)       NULL,
    [version_bios] NVARCHAR (255) NULL,
    CONSTRAINT [PK_AAM_DEVICE_VIDEOCARD] PRIMARY KEY CLUSTERED ([device_id] ASC, [videocard_id] ASC, [driver_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DEVICE_WARRANTY]...';


GO
CREATE TABLE [dbo].[AAM_DEVICE_WARRANTY] (
    [device_id]         INT      NOT NULL,
    [created_date]      DATETIME NOT NULL,
    [start_date]        DATETIME NULL,
    [end_date]          DATETIME NULL,
    [modification_date] DATETIME NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_WARRANTY] PRIMARY KEY CLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DISK]...';


GO
CREATE TABLE [dbo].[AAM_DISK] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [model]           NVARCHAR (255) NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    CONSTRAINT [PK_AAM_DISK] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DISK] UNIQUE NONCLUSTERED ([manufacturer_id] ASC, [model] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DISPLAY]...';


GO
CREATE TABLE [dbo].[AAM_DISPLAY] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    [model]           NVARCHAR (50)  NOT NULL,
    [name]            NVARCHAR (100) NULL,
    CONSTRAINT [PK_AAM_DISPLAY] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DISPLAY] UNIQUE NONCLUSTERED ([manufacturer_id] ASC, [model] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_DRIVER]...';


GO
CREATE TABLE [dbo].[AAM_DRIVER] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [type]            NVARCHAR (40)  NULL,
    [name]            NVARCHAR (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    CONSTRAINT [PK_AAM_DRIVER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_DRIVER] UNIQUE NONCLUSTERED ([name] ASC, [type] ASC, [manufacturer_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_EMA_DEVICE]...';


GO
CREATE TABLE [dbo].[AAM_EMA_DEVICE] (
    [id]                     INT           IDENTITY (1, 1) NOT NULL,
    [device_id]              INT           NOT NULL,
    [agent_Identifier]       INT           NOT NULL,
    [agent_version]          INT           NOT NULL,
    [amt_control_mode]       VARCHAR (500) NULL,
    [amt_provisioning_mode]  VARCHAR (500) NULL,
    [amt_provisioning_state] VARCHAR (500) NULL,
    [computer_name]          VARCHAR (500) NULL,
    [endpoint_group_id]      VARCHAR (500) NULL,
    [endpoint_group_name]    VARCHAR (500) NULL,
    [endpoint_id]            VARCHAR (500) NULL,
    [is_amt_version_valid]   BIT           NOT NULL,
    [is_cira_connected]      BIT           NOT NULL,
    [is_connected]           BIT           NOT NULL,
    [last_update]            DATETIME      NOT NULL,
    [mefw_build_number]      INT           NOT NULL,
    [me_version]             VARCHAR (500) NULL,
    [node_identity]          INT           NOT NULL,
    [platform_type]          INT           NOT NULL,
    [power_state]            INT           NOT NULL,
    [power_state_update]     VARCHAR (500) NULL,
    CONSTRAINT [PK_AAM_EMA_DEVICE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_EMA_DEVICE] UNIQUE NONCLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_EMA_USER]...';


GO
CREATE TABLE [dbo].[AAM_EMA_USER] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [user_id]     INT            NOT NULL,
    [user_ema_id] VARCHAR (80)   NOT NULL,
    [sync]        BIT            NOT NULL,
    [password]    VARCHAR (2000) NOT NULL,
    [user_name]   VARCHAR (500)  NOT NULL,
    CONSTRAINT [PK_AAM_EMA_USER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_EMA_USER] UNIQUE NONCLUSTERED ([user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_EXTENSION]...';


GO
CREATE TABLE [dbo].[AAM_EXTENSION] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (255) NOT NULL,
    [category_id] INT            NOT NULL,
    [default]     BIT            NOT NULL,
    CONSTRAINT [PK_AAM_EXTENSION] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_EXTENSION] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_FILE_NAME]...';


GO
CREATE TABLE [dbo].[AAM_FILE_NAME] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [extension_id] INT            NOT NULL,
    [name]         NVARCHAR (256) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
    CONSTRAINT [PK_AAM_FILE_NAME] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_FILE_NAME] UNIQUE NONCLUSTERED ([extension_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_FILE_PRODUCT]...';


GO
CREATE TABLE [dbo].[AAM_FILE_PRODUCT] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    [name]            NVARCHAR (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_FILE_PRODUCT] UNIQUE NONCLUSTERED ([manufacturer_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_FILE_VERSION]...';


GO
CREATE TABLE [dbo].[AAM_FILE_VERSION] (
    [id]               INT            IDENTITY (1, 1) NOT NULL,
    [product_id]       INT            NULL,
    [product_version]  NVARCHAR (255) NULL,
    [file_name_id]     INT            NOT NULL,
    [file_version]     NVARCHAR (255) NULL,
    [file_description] NVARCHAR (255) NULL,
    [software_id]      INT            NULL,
    CONSTRAINT [PK_AAM_FILE_VERSION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_FILE_VERSION].[IX01_AAM_FILE_VERSION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_FILE_VERSION]
    ON [dbo].[AAM_FILE_VERSION]([file_name_id] ASC)
    INCLUDE([file_description], [file_version], [product_id], [product_version]);


GO
PRINT N'Creating Table [dbo].[AAM_GROUP_DEVICE]...';


GO
CREATE TABLE [dbo].[AAM_GROUP_DEVICE] (
    [group_id]  INT NOT NULL,
    [device_id] INT NOT NULL,
    CONSTRAINT [PK_AAM_GROUP_DEVICE] PRIMARY KEY CLUSTERED ([group_id] ASC, [device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_IDENTITY_CONFLICT_DET]...';


GO
CREATE TABLE [dbo].[AAM_IDENTITY_CONFLICT_DET] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [ip]                 NVARCHAR (50)  NOT NULL,
    [parent_node]        NVARCHAR (MAX) NOT NULL,
    [request_amount]     INT            NOT NULL,
    [device_conflict_id] INT            NOT NULL,
    CONSTRAINT [PK_AAM_IDENTITY_CONFLICT_DET] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_IDENTITY_CONFLICT_DET].[IX01_AAM_IDENTITY_CONFLICT_DET]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_IDENTITY_CONFLICT_DET]
    ON [dbo].[AAM_IDENTITY_CONFLICT_DET]([device_conflict_id] ASC);


GO
PRINT N'Creating Table [dbo].[AAM_KEYBOARD]...';


GO
CREATE TABLE [dbo].[AAM_KEYBOARD] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [description]     NVARCHAR (100) NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    CONSTRAINT [PK_AAM_KEYBOARD] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_LOCAL_GROUP]...';


GO
CREATE TABLE [dbo].[AAM_LOCAL_GROUP] (
    [id]     INT            IDENTITY (1, 1) NOT NULL,
    [domain] NVARCHAR (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    [name]   NVARCHAR (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    CONSTRAINT [PK_AAM_LOCAL_GROUP] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_LOCAL_GROUP] UNIQUE NONCLUSTERED ([domain] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_LOCAL_USER]...';


GO
CREATE TABLE [dbo].[AAM_LOCAL_USER] (
    [id]       INT            IDENTITY (1, 1) NOT NULL,
    [domain]   NVARCHAR (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    [username] NVARCHAR (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    CONSTRAINT [PK_AAM_LOCAL_USER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_LOCAL_USER] UNIQUE NONCLUSTERED ([domain] ASC, [username] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_LOGICAL_DISK]...';


GO
CREATE TABLE [dbo].[AAM_LOGICAL_DISK] (
    [device_diskid]     INT            NOT NULL,
    [unit]              NVARCHAR (255) NOT NULL,
    [type]              NVARCHAR (255) NULL,
    [size]              BIGINT         NULL,
    [free]              BIGINT         NULL,
    [name]              NVARCHAR (255) NULL,
    [serial]            NVARCHAR (255) NULL,
    [file_system]       NVARCHAR (255) NULL,
    [krun_status]       CHAR (1)       NULL,
    [modification_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_LOGICAL_DISK] PRIMARY KEY CLUSTERED ([device_diskid] ASC, [unit] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_LOGICAL_DISK].[IX01_AAM_LOGICAL_DISK]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_LOGICAL_DISK]
    ON [dbo].[AAM_LOGICAL_DISK]([device_diskid] ASC)
    INCLUDE([size], [free]);


GO
PRINT N'Creating Table [dbo].[AAM_MANUFACTURER]...';


GO
CREATE TABLE [dbo].[AAM_MANUFACTURER] (
    [id]   INT            IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (512) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    CONSTRAINT [PK_AAM_MANUFACTURER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_MANUFACTURER] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_MEMORY]...';


GO
CREATE TABLE [dbo].[AAM_MEMORY] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [model]           NVARCHAR (100) NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    CONSTRAINT [PK_AAM_MEMORY] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_MEMORY] UNIQUE NONCLUSTERED ([model] ASC, [manufacturer_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_NETWORKADAPTER]...';


GO
CREATE TABLE [dbo].[AAM_NETWORKADAPTER] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [name]            NVARCHAR (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    [manufacturer_id] INT            NOT NULL,
    [type_id]         INT            NOT NULL,
    CONSTRAINT [PK_AAM_NETWORKADAPTER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_NETWORKADAPTER] UNIQUE NONCLUSTERED ([name] ASC, [manufacturer_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_NETWORKADAPTER_ADDRES]...';


GO
CREATE TABLE [dbo].[AAM_NETWORKADAPTER_ADDRES] (
    [device_adapter_id] INT           NOT NULL,
    [ipaddress]         NVARCHAR (40) NOT NULL,
    [mask]              NVARCHAR (40) NOT NULL,
    [default]           INT           NOT NULL,
    [krun_status]       CHAR (1)      NULL,
    [modification_date] DATETIME      NOT NULL,
    CONSTRAINT [PK_AAM_NETWORKADAPTER_ADDRES] PRIMARY KEY CLUSTERED ([device_adapter_id] ASC, [ipaddress] ASC, [mask] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_NETWORKADAPTER_CONFIG]...';


GO
CREATE TABLE [dbo].[AAM_NETWORKADAPTER_CONFIG] (
    [device_adapter_id] INT           NOT NULL,
    [ipaddress]         NVARCHAR (40) NOT NULL,
    [type]              CHAR (1)      NOT NULL,
    [krun_status]       CHAR (1)      NOT NULL,
    [modification_date] DATETIME      NOT NULL,
    CONSTRAINT [PK_AAM_NETWORKADAPTER_CONFIG] PRIMARY KEY CLUSTERED ([device_adapter_id] ASC, [ipaddress] ASC, [type] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_NETWORKADAPTER_TYPE]...';


GO
CREATE TABLE [dbo].[AAM_NETWORKADAPTER_TYPE] (
    [id]   INT            IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AAM_NETWORKADAPTER_TYPE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AM_NETWORK_ADAPTER_TYPE] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_PATH]...';


GO
CREATE TABLE [dbo].[AAM_PATH] (
    [id]   INT            IDENTITY (1, 1) NOT NULL,
    [path] NVARCHAR (710) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    CONSTRAINT [PK_AAM_PATH] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_PATH] UNIQUE NONCLUSTERED ([path] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_PORTCONNECTOR]...';


GO
CREATE TABLE [dbo].[AAM_PORTCONNECTOR] (
    [id]   INT            IDENTITY (1, 1) NOT NULL,
    [type] NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AAM_PORTCONNECTOR] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_PORTCONNECTOR] UNIQUE NONCLUSTERED ([type] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_PRINTERDRIVER]...';


GO
CREATE TABLE [dbo].[AAM_PRINTERDRIVER] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [name]            NVARCHAR (150) NULL,
    [manufacturer_id] INT            NOT NULL,
    CONSTRAINT [PK_AAM_PRINTERDRIVER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_PRINTERDRIVER] UNIQUE NONCLUSTERED ([name] ASC, [manufacturer_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_PROCESSOR]...';


GO
CREATE TABLE [dbo].[AAM_PROCESSOR] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    [model]           NVARCHAR (255) NULL,
    [vpro]            BIT            NULL,
    CONSTRAINT [PK_AAM_PROCESSOR] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_PROCESSOR] UNIQUE NONCLUSTERED ([manufacturer_id] ASC, [model] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_PROCESSOR_CACHE]...';


GO
CREATE TABLE [dbo].[AAM_PROCESSOR_CACHE] (
    [device_processor_id] INT      NOT NULL,
    [cache_id]            INT      NOT NULL,
    [enabled]             INT      NOT NULL,
    [size]                INT      NOT NULL,
    [krun_status]         CHAR (1) NULL,
    CONSTRAINT [PK_AAM_PROCESSOR_CACHE] PRIMARY KEY CLUSTERED ([device_processor_id] ASC, [cache_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SERVER]...';


GO
CREATE TABLE [dbo].[AAM_SERVER] (
    [id]   INT            IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AAM_SERVER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_SERVER] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SERVICE]...';


GO
CREATE TABLE [dbo].[AAM_SERVICE] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [name]         NVARCHAR (255) NULL,
    [display_name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_AAM_SERVICE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_SERVICE] UNIQUE NONCLUSTERED ([name] ASC, [display_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SERVICE_STARTUP]...';


GO
CREATE TABLE [dbo].[AAM_SERVICE_STARTUP] (
    [id]   INT            IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_AAM_SERVICE_STARTUP] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_SERVICE_STARTUP] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SERVICE_STATUS]...';


GO
CREATE TABLE [dbo].[AAM_SERVICE_STATUS] (
    [id]   INT            IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_AAM_SERVICE_STATUS] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_SERVICE_STATUS] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SHAREDRESOURCE_PERM]...';


GO
CREATE TABLE [dbo].[AAM_SHAREDRESOURCE_PERM] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [shared_resource_id] INT            NOT NULL,
    [user_name]          NVARCHAR (255) NOT NULL,
    [type]               NVARCHAR (50)  NOT NULL,
    [access]             NVARCHAR (50)  NULL,
    [krun_status]        CHAR (1)       NULL,
    CONSTRAINT [PK_AAM_SHAREDRESOURCE_PERM] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_SHAREDRESOURCE_PERM] UNIQUE NONCLUSTERED ([shared_resource_id] ASC, [user_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SOFTWARE_CODE]...';


GO
CREATE TABLE [dbo].[AAM_SOFTWARE_CODE] (
    [id]   INT           IDENTITY (1, 1) NOT NULL,
    [code] VARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AAM_SOFTWARE_CODE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_SOFTWARE_CODE] UNIQUE NONCLUSTERED ([code] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SOFTWARE_INFO_AI]...';


GO
CREATE TABLE [dbo].[AAM_SOFTWARE_INFO_AI] (
    [id]                       INT            IDENTITY (1, 1) NOT NULL,
    [common_use_cases]         VARCHAR (1000) NULL,
    [created_date]             DATETIME       NOT NULL,
    [date_latest_version]      VARCHAR (100)  NULL,
    [details]                  NVARCHAR (MAX) NULL,
    [integration_dependencies] VARCHAR (1000) NULL,
    [introduction]             NVARCHAR (MAX) NULL,
    [latest_version]           VARCHAR (100)  NULL,
    [language]                 INT            NOT NULL,
    [license_type]             VARCHAR (100)  NULL,
    [modified_date]            DATETIME       NOT NULL,
    [open_source_alternatives] VARCHAR (600)  NULL,
    [os_compatibility]         VARCHAR (400)  NULL,
    [paid_alternatives]        VARCHAR (600)  NULL,
    [security_risk_category]   VARCHAR (400)  NULL,
    [software_id]              INT            NOT NULL,
    [software_type]            VARCHAR (400)  NULL,
    [system_requirements]      VARCHAR (MAX)  NULL,
    [web_download]             VARCHAR (1000) NULL,
    [web_manufacturer]         VARCHAR (1000) NULL,
    CONSTRAINT [PK_AAM_SOFTWARE_INFO_AI] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SOFTWARE_KEY]...';


GO
CREATE TABLE [dbo].[AAM_SOFTWARE_KEY] (
    [id]  INT            IDENTITY (1, 1) NOT NULL,
    [key] NVARCHAR (450) NOT NULL,
    CONSTRAINT [PK_AAM_SOFTWARE_KEY] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_SOFTWARE_KEY] UNIQUE NONCLUSTERED ([key] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SOFTWARE_PRODUCT]...';


GO
CREATE TABLE [dbo].[AAM_SOFTWARE_PRODUCT] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [name]            NVARCHAR (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    [type]            INT            NOT NULL,
    [platform]        INT            NOT NULL,
    CONSTRAINT [PK_AAM_SOFTWARE_PRODUCT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_SOFTWARE_PRODUCT] UNIQUE NONCLUSTERED ([manufacturer_id] ASC, [name] ASC, [type] ASC, [platform] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_SOFTWARE_PRODUCT].[IX01_AAM_SOFTWARE_PRODUCT]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_SOFTWARE_PRODUCT]
    ON [dbo].[AAM_SOFTWARE_PRODUCT]([type] ASC)
    INCLUDE([id], [name], [manufacturer_id], [platform]);


GO
PRINT N'Creating Table [dbo].[AAM_SOFTWARE_TYPE]...';


GO
CREATE TABLE [dbo].[AAM_SOFTWARE_TYPE] (
    [id]   INT          NOT NULL,
    [type] VARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AAM_SOFTWARE_TYPE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SOFTWARE_UNINSTALL]...';


GO
CREATE TABLE [dbo].[AAM_SOFTWARE_UNINSTALL] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [uninstall_string]   NVARCHAR (500) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    [additional_command] NVARCHAR (255) NULL,
    [update_date]        DATETIME       NULL,
    [update_user]        INT            NULL,
    CONSTRAINT [PK_AAM_SOFTWARE_UNINSTALL] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_SOFTWARE_UNINSTALL] UNIQUE NONCLUSTERED ([uninstall_string] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_SOFTWARE_VERSION]...';


GO
CREATE TABLE [dbo].[AAM_SOFTWARE_VERSION] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [product_id]   INT            NOT NULL,
    [version]      NVARCHAR (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    [is_inventory] BIT            NOT NULL,
    [parent_id]    INT            NULL,
    [is_permitted] INT            NOT NULL,
    CONSTRAINT [PK_AAM_SOFTWARE_VERSION] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_SOFTWARE_VERSION] UNIQUE NONCLUSTERED ([product_id] ASC, [version] ASC)
);


GO
PRINT N'Creating Index [dbo].[AAM_SOFTWARE_VERSION].[IX01_AAM_SOFTWARE_VERSION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AAM_SOFTWARE_VERSION]
    ON [dbo].[AAM_SOFTWARE_VERSION]([parent_id] ASC)
    INCLUDE([id]);


GO
PRINT N'Creating Table [dbo].[AAM_STARTUPCOMMAND]...';


GO
CREATE TABLE [dbo].[AAM_STARTUPCOMMAND] (
    [id]   INT            IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AAM_STARTUP_COMMAND] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAM_STARTUP_COMMAND] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_VIDEOCARD]...';


GO
CREATE TABLE [dbo].[AAM_VIDEOCARD] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [name]            NVARCHAR (255) NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    CONSTRAINT [PK_AAM_VIDEOCARD] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AAM_VIDEOCARD] UNIQUE NONCLUSTERED ([name] ASC, [manufacturer_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAM_WARRANTY_CONFIGURATION]...';


GO
CREATE TABLE [dbo].[AAM_WARRANTY_CONFIGURATION] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [manufacturer]      NVARCHAR (512) NOT NULL,
    [properties]        VARCHAR (1024) NOT NULL,
    [created_date]      DATETIME       NOT NULL,
    [modification_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_AAM_WARRANTY_CONFIGURATION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AAU_INSTALLER]...';


GO
CREATE TABLE [dbo].[AAU_INSTALLER] (
    [id]                   INT           IDENTITY (1, 1) NOT NULL,
    [installer_identifier] VARCHAR (200) NOT NULL,
    [file_name]            VARCHAR (250) NOT NULL,
    [version]              VARCHAR (100) NOT NULL,
    [modification_date]    DATETIME      NOT NULL,
    CONSTRAINT [PK01_AAU_INSTALLER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AAU_INSTALLER] UNIQUE NONCLUSTERED ([installer_identifier] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_ACTION]...';


GO
CREATE TABLE [dbo].[ADM_ACTION] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [name]          VARCHAR (255) NOT NULL,
    [enable]        INT           NOT NULL,
    [creation_date] DATETIME      NOT NULL,
    CONSTRAINT [PK_ADM_ACTION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_AGENT_PROF_ADD_FIELD]...';


GO
CREATE TABLE [dbo].[ADM_AGENT_PROF_ADD_FIELD] (
    [id]                  INT      IDENTITY (1, 1) NOT NULL,
    [additional_field_id] INT      NOT NULL,
    [agent_profile_id]    INT      NOT NULL,
    [modification_date]   DATETIME NOT NULL,
    [device_type]         INT      NOT NULL,
    [field_order]         INT      NOT NULL,
    CONSTRAINT [PK_ADM_AGENT_PROF_ADD_FIELD] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_AGENT_PROFILE]...';


GO
CREATE TABLE [dbo].[ADM_AGENT_PROFILE] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [name]          NVARCHAR (255) NOT NULL,
    [creation_date] DATETIME       NOT NULL,
    [creator_user]  INT            NOT NULL,
    [modified_user] INT            NULL,
    [modified_date] DATETIME       NULL,
    CONSTRAINT [PK_ADM_AGENT_PROFILE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ADM_AGENT_PROFILE] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_AGENT_PROFILE_APPLIC]...';


GO
CREATE TABLE [dbo].[ADM_AGENT_PROFILE_APPLIC] (
    [profile_id]     INT NOT NULL,
    [application_id] INT NOT NULL,
    CONSTRAINT [PK_ADM_AGENT_PROFILE_APPLIC] PRIMARY KEY CLUSTERED ([application_id] ASC, [profile_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_AGENT_PROFILE_CONSER]...';


GO
CREATE TABLE [dbo].[ADM_AGENT_PROFILE_CONSER] (
    [profile_id] INT NOT NULL,
    [node_id]    INT NOT NULL,
    [order]      INT NOT NULL,
    CONSTRAINT [PK_ADM_AGENT_PROFILE_CONSER] PRIMARY KEY CLUSTERED ([profile_id] ASC, [node_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_AGENT_PROFILE_EXCEP]...';


GO
CREATE TABLE [dbo].[ADM_AGENT_PROFILE_EXCEP] (
    [id]         INT            IDENTITY (1, 1) NOT NULL,
    [profile_id] INT            NOT NULL,
    [type]       INT            NOT NULL,
    [value]      NVARCHAR (512) NOT NULL,
    CONSTRAINT [PK_ADM_AGENT_PROFILE_EXCEP] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_ADM_AGENT_PROFILE_EXCEP] UNIQUE NONCLUSTERED ([profile_id] ASC, [type] ASC, [value] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_AGENT_PROFILE_EXT]...';


GO
CREATE TABLE [dbo].[ADM_AGENT_PROFILE_EXT] (
    [profile_id]   INT NOT NULL,
    [extension_id] INT NOT NULL,
    CONSTRAINT [PK_ADM_AGENT_PROFILE_EXT] PRIMARY KEY CLUSTERED ([profile_id] ASC, [extension_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_AGENT_PROFILE_SETTING]...';


GO
CREATE TABLE [dbo].[ADM_AGENT_PROFILE_SETTING] (
    [profile_id]       INT            NOT NULL,
    [setting]          NVARCHAR (MAX) NOT NULL,
    [enabled_p2p]      BIT            NOT NULL,
    [show_icon]        BIT            NOT NULL,
    [show_ars_icon]    BIT            NOT NULL,
    [setting_sections] NVARCHAR (MAX) NULL,
    [port_arc]         INT            NOT NULL,
    CONSTRAINT [PK_ADM_AGENT_PROFILE_SETTING] PRIMARY KEY CLUSTERED ([profile_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_AGENT_PROFILE_SURVEY]...';


GO
CREATE TABLE [dbo].[ADM_AGENT_PROFILE_SURVEY] (
    [id]                  INT      IDENTITY (1, 1) NOT NULL,
    [agent_profile_id]    INT      NOT NULL,
    [device_id]           INT      NOT NULL,
    [is_completed_survey] BIT      NOT NULL,
    [creation_date]       DATETIME NOT NULL,
    CONSTRAINT [PK_ADM_AGENT_PROFILE_SURVEY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_COMMUNICATION_NODE]...';


GO
CREATE TABLE [dbo].[ADM_COMMUNICATION_NODE] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (200) NOT NULL,
    [url]               NVARCHAR (250) NULL,
    [device_id]         INT            NULL,
    [address]           NVARCHAR (40)  NULL,
    [enabled]           BIT            NOT NULL,
    [parent_id]         INT            NULL,
    [node_type]         INT            NOT NULL,
    [last_update]       DATETIME       NOT NULL,
    [version]           NVARCHAR (100) NULL,
    [features]          NVARCHAR (250) NULL,
    [public_address]    NVARCHAR (40)  NULL,
    [trust_certificate] BIT            NOT NULL,
    CONSTRAINT [PK_ADM_COMMUNICATION_NODE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ADM_COMMUNICATION_NODE].[IX01_ADM_COMMUNICATION_NODE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ADM_COMMUNICATION_NODE]
    ON [dbo].[ADM_COMMUNICATION_NODE]([device_id] ASC, [last_update] DESC)
    INCLUDE([address]);


GO
PRINT N'Creating Index [dbo].[ADM_COMMUNICATION_NODE].[UX01_ADM_COMMUNICATION_NODE]...';


GO
CREATE UNIQUE NONCLUSTERED INDEX [UX01_ADM_COMMUNICATION_NODE]
    ON [dbo].[ADM_COMMUNICATION_NODE]([node_type] ASC, [device_id] ASC) WHERE [device_id] IS NOT NULL;


GO
PRINT N'Creating Table [dbo].[ADM_COMPONENT_REQUEST_DETAIL]...';


GO
CREATE TABLE [dbo].[ADM_COMPONENT_REQUEST_DETAIL] (
    [detail_id]     UNIQUEIDENTIFIER NOT NULL,
    [target_id]     INT              NOT NULL,
    [status]        TINYINT          NOT NULL,
    [request_date]  DATETIME2 (7)    NOT NULL,
    [modified_date] DATETIME2 (7)    NOT NULL,
    [download_date] DATETIME2 (7)    NULL,
    [document_id]   INT              NULL,
    [details]       NVARCHAR (MAX)   NULL,
    [user_id]       INT              NOT NULL,
    CONSTRAINT [PK_ADM_COMPONENT_REQUEST_DETAIL] PRIMARY KEY CLUSTERED ([detail_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_COMPONENT_REQUEST_STATUS]...';


GO
CREATE TABLE [dbo].[ADM_COMPONENT_REQUEST_STATUS] (
    [id]   TINYINT      NOT NULL,
    [name] VARCHAR (32) NOT NULL,
    CONSTRAINT [PK_ADM_COMPONENT_REQUEST_STATUS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_COMPONENT_REQUEST_TARGET]...';


GO
CREATE TABLE [dbo].[ADM_COMPONENT_REQUEST_TARGET] (
    [target_id]      INT           IDENTITY (1, 1) NOT NULL,
    [action_type]    TINYINT       NOT NULL,
    [component_type] TINYINT       NOT NULL,
    [device_id]      INT           NULL,
    [created_date]   DATETIME2 (7) NOT NULL,
    CONSTRAINT [PK_ADM_COMPONENT_REQUEST_TARGET] PRIMARY KEY CLUSTERED ([target_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_CONFIGURATION_GATEWAY]...';


GO
CREATE TABLE [dbo].[ADM_CONFIGURATION_GATEWAY] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [name]            NVARCHAR (255) NOT NULL,
    [address]         NVARCHAR (80)  NOT NULL,
    [port]            INT            NOT NULL,
    [is_ssl]          BIT            NOT NULL,
    [is_default]      BIT            NOT NULL,
    [is_active]       BIT            NOT NULL,
    [creator_user_id] INT            NOT NULL,
    [creation_date]   DATETIME       NOT NULL,
    [update_date]     DATETIME       NULL,
    [updater_user_id] INT            NULL,
    CONSTRAINT [PK_ADM_CONFIGURATION_GATEWAY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_CREDENTIAL]...';


GO
CREATE TABLE [dbo].[ADM_CREDENTIAL] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [credential_type] INT            NOT NULL,
    [username]        NVARCHAR (255) NOT NULL,
    [password]        NVARCHAR (255) NOT NULL,
    [description]     NVARCHAR (25)  NOT NULL,
    [additional_data] NVARCHAR (MAX) NULL,
    [creation_date]   DATETIME       NOT NULL,
    [creator_user]    INT            NOT NULL,
    [update_date]     DATETIME       NULL,
    [updater_user]    INT            NULL,
    CONSTRAINT [PK_ADM_CREDENTIAL] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ADM_CREDENTIAL] UNIQUE NONCLUSTERED ([description] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_DEVICE_CREDENTIAL]...';


GO
CREATE TABLE [dbo].[ADM_DEVICE_CREDENTIAL] (
    [id]            INT IDENTITY (1, 1) NOT NULL,
    [device_id]     INT NOT NULL,
    [feature_id]    INT NOT NULL,
    [credential_id] INT NOT NULL,
    CONSTRAINT [PK_ADM_DEVICE_CREDENTIAL] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_ADM_DEVICE_CREDENTIAL] UNIQUE NONCLUSTERED ([device_id] ASC, [feature_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_DEVICE_DISCOVERY]...';


GO
CREATE TABLE [dbo].[ADM_DEVICE_DISCOVERY] (
    [address]        NVARCHAR (40) NOT NULL,
    [discovered_by]  INT           NULL,
    [device_id]      INT           NOT NULL,
    [name]           NVARCHAR (50) NOT NULL,
    [discovery_date] DATETIME      NOT NULL,
    [update_date]    DATETIME      NULL,
    CONSTRAINT [PK_ADM_DEVICE_DISCOVERY] PRIMARY KEY CLUSTERED ([address] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_DEVICE_INVENTORY]...';


GO
CREATE TABLE [dbo].[ADM_DEVICE_INVENTORY] (
    [id]          INT      IDENTITY (1, 1) NOT NULL,
    [app_code]    INT      NOT NULL,
    [device_id]   INT      NOT NULL,
    [last_update] DATETIME NOT NULL,
    [type]        INT      NOT NULL,
    CONSTRAINT [PK_ADM_DEVICE_INVENTORY] PRIMARY KEY CLUSTERED ([device_id] ASC, [app_code] ASC, [type] ASC)
);


GO
PRINT N'Creating Index [dbo].[ADM_DEVICE_INVENTORY].[IX01_ADM_DEVICE_INVENTORY]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ADM_DEVICE_INVENTORY]
    ON [dbo].[ADM_DEVICE_INVENTORY]([device_id] ASC, [last_update] ASC)
    INCLUDE([type], [app_code]);


GO
PRINT N'Creating Table [dbo].[ADM_DEVICE_LICENSE]...';


GO
CREATE TABLE [dbo].[ADM_DEVICE_LICENSE] (
    [id]         INT IDENTITY (1, 1) NOT NULL,
    [product_id] INT NOT NULL,
    [device_id]  INT NOT NULL,
    CONSTRAINT [PK_AAM_DEVICE_LICENSE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_AAM_DEVICE_LICENSE] UNIQUE NONCLUSTERED ([product_id] ASC, [device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_DISCOVERY_CONFIG]...';


GO
CREATE TABLE [dbo].[ADM_DISCOVERY_CONFIG] (
    [node_id]       INT            NOT NULL,
    [configuration] NVARCHAR (MAX) NULL,
    [last_update]   DATETIME       NULL,
    CONSTRAINT [PK_ADM_DISCOVERY_CONFIG] PRIMARY KEY CLUSTERED ([node_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_DISCOVERY_MODEL]...';


GO
CREATE TABLE [dbo].[ADM_DISCOVERY_MODEL] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [name]            NVARCHAR (256) NOT NULL,
    [device_type_id]  INT            NOT NULL,
    [manufacturer_id] INT            NOT NULL,
    [enabled]         BIT            NOT NULL,
    [last_update]     DATETIME       NOT NULL,
    CONSTRAINT [PK_ADM_DISCOVERY_MODEL] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_ADM_DISCOVERY_MODEL] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_INVENTORY_EVENT]...';


GO
CREATE TABLE [dbo].[ADM_INVENTORY_EVENT] (
    [id]   VARCHAR (80)  NOT NULL,
    [type] VARCHAR (50)  NOT NULL,
    [data] VARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_ADM_INVENTORY_EVENT] PRIMARY KEY CLUSTERED ([id] ASC, [type] ASC)
);


GO
PRINT N'Creating Index [dbo].[ADM_INVENTORY_EVENT].[UX01_ADM_INVENTORY_EVENT]...';


GO
CREATE NONCLUSTERED INDEX [UX01_ADM_INVENTORY_EVENT]
    ON [dbo].[ADM_INVENTORY_EVENT]([type] ASC);


GO
PRINT N'Creating Table [dbo].[ADM_RELATION]...';


GO
CREATE TABLE [dbo].[ADM_RELATION] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [name]          VARCHAR (255) NOT NULL,
    [user_id]       INT           NOT NULL,
    [creation_date] DATETIME      NOT NULL,
    CONSTRAINT [PK_ADM_RELATION] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ADM_RELATION] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_RELATION_ACTION]...';


GO
CREATE TABLE [dbo].[ADM_RELATION_ACTION] (
    [id]          INT IDENTITY (1, 1) NOT NULL,
    [relation_id] INT NOT NULL,
    [action_id]   INT NOT NULL,
    [status]      INT NOT NULL,
    CONSTRAINT [PK_ADM_RELATION_ACTION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_RELATION_GROUP]...';


GO
CREATE TABLE [dbo].[ADM_RELATION_GROUP] (
    [id]              INT IDENTITY (1, 1) NOT NULL,
    [relation_id]     INT NOT NULL,
    [group_device_id] INT NOT NULL,
    [group_id]        INT NOT NULL,
    CONSTRAINT [PK_ADM_RELATION_GROUP] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_RELATION_USER]...';


GO
CREATE TABLE [dbo].[ADM_RELATION_USER] (
    [id]              INT IDENTITY (1, 1) NOT NULL,
    [relation_id]     INT NOT NULL,
    [group_device_id] INT NOT NULL,
    [user_id]         INT NOT NULL,
    CONSTRAINT [PK_ADM_RELATION_USER] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_RULESET]...';


GO
CREATE TABLE [dbo].[ADM_RULESET] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (255) NOT NULL,
    [creation_date]     DATETIME       NOT NULL,
    [usercreator_id]    INT            NOT NULL,
    [usereditor_id]     INT            NULL,
    [modification_date] DATETIME       NULL,
    [type]              INT            NOT NULL,
    [is_active]         BIT            NOT NULL,
    CONSTRAINT [PK_ADM_RULESET] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ADM_RULESET] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_RULESET_RULE]...';


GO
CREATE TABLE [dbo].[ADM_RULESET_RULE] (
    [id]         INT IDENTITY (1, 1) NOT NULL,
    [ruleset_id] INT NOT NULL,
    [afwrule_id] INT NOT NULL,
    CONSTRAINT [PK_ADM_RULESET_RULE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ADM_RULESET_RULE] UNIQUE NONCLUSTERED ([ruleset_id] ASC, [afwrule_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_SERVER_SETTING]...';


GO
CREATE TABLE [dbo].[ADM_SERVER_SETTING] (
    [node_id]             INT            NOT NULL,
    [storage_path]        NVARCHAR (250) NULL,
    [wakeonlan]           INT            NULL,
    [start_time]          INT            NULL,
    [finish_time]         INT            NULL,
    [local_copy]          BIT            NOT NULL,
    [last_execution]      DATETIME       NULL,
    [type_last_execution] INT            NULL,
    CONSTRAINT [PK_ADM_SERVER_SETTING] PRIMARY KEY CLUSTERED ([node_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_SNMP_IDENTIFIER]...';


GO
CREATE TABLE [dbo].[ADM_SNMP_IDENTIFIER] (
    [id]                 INT           IDENTITY (1, 1) NOT NULL,
    [device_identifier]  VARCHAR (128) NOT NULL,
    [discovery_model_id] INT           NOT NULL,
    CONSTRAINT [PK_ADM_SNMP_IDENTIFIER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_ADM_SNMP_IDENTIFIER] UNIQUE NONCLUSTERED ([device_identifier] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADM_SNMP_RULE]...';


GO
CREATE TABLE [dbo].[ADM_SNMP_RULE] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [label]              NVARCHAR (128) NOT NULL,
    [oid]                VARCHAR (128)  NOT NULL,
    [discovery_model_id] INT            NOT NULL,
    CONSTRAINT [PK_ADM_SNMP_RULE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADSS_CONFIGURATION]...';


GO
CREATE TABLE [dbo].[ADSS_CONFIGURATION] (
    [conf_id]           INT            IDENTITY (1, 1) NOT NULL,
    [conf_ldap_id]      INT            NULL,
    [conf_active]       INT            NULL,
    [conf_fields]       NVARCHAR (MAX) NULL,
    [conf_nodes]        NVARCHAR (MAX) NULL,
    [conf_ldap]         NVARCHAR (MAX) NULL,
    [conf_schedule_id]  INT            NULL,
    [modified_by]       INT            NULL,
    [modification_date] DATETIME       NULL,
    CONSTRAINT [PK_ADSS_CONFIGURATION] PRIMARY KEY CLUSTERED ([conf_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ADSS_CONFIGURATION].[UX_ADSS_CONFIGURATION]...';


GO
CREATE NONCLUSTERED INDEX [UX_ADSS_CONFIGURATION]
    ON [dbo].[ADSS_CONFIGURATION]([conf_schedule_id] ASC);


GO
PRINT N'Creating Table [dbo].[ADW_AREA_DIM]...';


GO
CREATE TABLE [dbo].[ADW_AREA_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_AREA_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_ARTICLE_CUBE]...';


GO
CREATE TABLE [dbo].[ADW_ARTICLE_CUBE] (
    [project_id]     INT        NULL,
    [state_id]       INT        NULL,
    [type_id]        INT        NULL,
    [author_id]      INT        NULL,
    [responsible_id] INT        NULL,
    [group_id]       INT        NULL,
    [modifier_id]    INT        NULL,
    [reason_id]      INT        NULL,
    [YEAR_MODIFIED]  INT        NULL,
    [MONTH_MODIFIED] INT        NULL,
    [DAY_MODIFIED]   INT        NULL,
    [YEAR_CREATED]   INT        NULL,
    [MONTH_CREATED]  INT        NULL,
    [DAY_CREATED]    INT        NULL,
    [YEAR_CLOSED]    INT        NULL,
    [MONTH_CLOSED]   INT        NULL,
    [DAY_CLOSED]     INT        NULL,
    [count]          INT        NULL,
    [hit]            FLOAT (53) NULL,
    [rating]         FLOAT (53) NULL
);


GO
PRINT N'Creating Table [dbo].[ADW_AUTHOR_DIM]...';


GO
CREATE TABLE [dbo].[ADW_AUTHOR_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_AUTHOR_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_BRAND_DIM]...';


GO
CREATE TABLE [dbo].[ADW_BRAND_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_BRAND_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_CATEGORY_DIM]...';


GO
CREATE TABLE [dbo].[ADW_CATEGORY_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_CATEGORY_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_CI_CUBE]...';


GO
CREATE TABLE [dbo].[ADW_CI_CUBE] (
    [state_id]        INT             NULL,
    [category_id]     INT             NULL,
    [responsible_id]  INT             NULL,
    [author_id]       INT             NULL,
    [modifier_id]     INT             NULL,
    [YEAR_MODIFIED]   INT             NULL,
    [MONTH_MODIFIED]  INT             NULL,
    [DAY_MODIFIED]    INT             NULL,
    [YEAR_CREATED]    INT             NULL,
    [MONTH_CREATED]   INT             NULL,
    [DAY_CREATED]     INT             NULL,
    [YEAR_CLOSED]     INT             NULL,
    [MONTH_CLOSED]    INT             NULL,
    [DAY_CLOSED]      INT             NULL,
    [impact_id]       INT             NULL,
    [brand_id]        INT             NULL,
    [model_id]        INT             NULL,
    [reason_id]       INT             NULL,
    [costcenter_id]   INT             NULL,
    [manufacturer_id] INT             NULL,
    [provider_id]     INT             NULL,
    [count]           INT             NULL,
    [price]           NUMERIC (17, 2) NULL
);


GO
PRINT N'Creating Table [dbo].[ADW_CI_DIM]...';


GO
CREATE TABLE [dbo].[ADW_CI_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_CI_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_COMPANY_DIM]...';


GO
CREATE TABLE [dbo].[ADW_COMPANY_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_COMPANY_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_COST_CENTER_DIM]...';


GO
CREATE TABLE [dbo].[ADW_COST_CENTER_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_COST_CENTER_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_CUSTOMER_DIM]...';


GO
CREATE TABLE [dbo].[ADW_CUSTOMER_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_CUSTOMER_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_DIM_DATE]...';


GO
CREATE TABLE [dbo].[ADW_DIM_DATE] (
    [id]                       INT           NOT NULL,
    [value]                    DATE          NOT NULL,
    [year]                     SMALLINT      NOT NULL,
    [semester]                 SMALLINT      NOT NULL,
    [quarter]                  TINYINT       NOT NULL,
    [month]                    TINYINT       NOT NULL,
    [week]                     TINYINT       NOT NULL,
    [month_name_spanish]       NVARCHAR (10) NULL,
    [month_name_english]       NVARCHAR (10) NULL,
    [month_name_portuguese]    NVARCHAR (10) NULL,
    [month_day]                TINYINT       NOT NULL,
    [week_day]                 TINYINT       NOT NULL,
    [week_day_name_spanish]    NVARCHAR (20) NOT NULL,
    [week_day_name_english]    NVARCHAR (20) NOT NULL,
    [week_day_name_portuguese] NVARCHAR (20) NOT NULL,
    CONSTRAINT [PK_ADW_DIM_DATE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_DIM_TIME]...';


GO
CREATE TABLE [dbo].[ADW_DIM_TIME] (
    [id]     INT      NOT NULL,
    [value]  TIME (7) NOT NULL,
    [hour]   TINYINT  NOT NULL,
    [minute] TINYINT  NOT NULL,
    [second] TINYINT  NULL,
    CONSTRAINT [PK_ADW_DIM_TIME] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_EVENT_CUBE]...';


GO
CREATE TABLE [dbo].[ADW_EVENT_CUBE] (
    [author_id]      INT          NULL,
    [responsible_id] INT          NULL,
    [state_id]       INT          NULL,
    [project_id]     INT          NULL,
    [YEAR_MODIFIED]  INT          NULL,
    [MONTH_MODIFIED] INT          NULL,
    [DAY_MODIFIED]   INT          NULL,
    [YEAR_CREATED]   INT          NULL,
    [MONTH_CREATED]  INT          NULL,
    [DAY_CREATED]    INT          NULL,
    [YEAR_CLOSED]    INT          NULL,
    [MONTH_CLOSED]   INT          NULL,
    [DAY_CLOSED]     INT          NULL,
    [modifier_id]    INT          NULL,
    [type_id]        INT          NULL,
    [priority_id]    INT          NULL,
    [reason_id]      INT          NULL,
    [group_id]       INT          NULL,
    [ci_id]          INT          NULL,
    [recurrence]     INT          NULL,
    [count]          INT          NULL,
    [value]          DECIMAL (18) NULL
);


GO
PRINT N'Creating Table [dbo].[ADW_EVENT_TYPE_DIM]...';


GO
CREATE TABLE [dbo].[ADW_EVENT_TYPE_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_EVENT_TYPE_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_GROUP_DIM]...';


GO
CREATE TABLE [dbo].[ADW_GROUP_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_GROUP_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_IMPACT_DIM]...';


GO
CREATE TABLE [dbo].[ADW_IMPACT_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_IMPACT_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_ITEM_CUBE]...';


GO
CREATE TABLE [dbo].[ADW_ITEM_CUBE] (
    [project_id]       INT        NULL,
    [modifier_id]      INT        NULL,
    [author_id]        INT        NULL,
    [responsible_id]   INT        NULL,
    [YEAR_MODIFIED]    INT        NULL,
    [MONTH_MODIFIED]   INT        NULL,
    [DAY_MODIFIED]     INT        NULL,
    [YEAR_CREATED]     INT        NULL,
    [MONTH_CREATED]    INT        NULL,
    [DAY_CREATED]      INT        NULL,
    [YEAR_CLOSED]      INT        NULL,
    [MONTH_CLOSED]     INT        NULL,
    [DAY_CLOSED]       INT        NULL,
    [state_id]         INT        NULL,
    [model_id]         INT        NULL,
    [impact_id]        INT        NULL,
    [urgency_id]       INT        NULL,
    [priority_id]      INT        NULL,
    [category_id]      INT        NULL,
    [service_id]       INT        NULL,
    [registry_type_id] INT        NULL,
    [customer_id]      INT        NULL,
    [company_id]       INT        NULL,
    [sla_id]           INT        NULL,
    [uc_id]            INT        NULL,
    [ola_id]           INT        NULL,
    [reason_id]        INT        NULL,
    [group_id]         INT        NULL,
    [ci_id]            INT        NULL,
    [provider_id]      INT        NULL,
    [unit_id]          INT        NULL,
    [type_id]          INT        NULL,
    [price]            FLOAT (53) NULL,
    [cost]             FLOAT (53) NULL,
    [effort]           FLOAT (53) NULL,
    [estimated_time]   INT        NULL,
    [current_progress] INT        NULL,
    [current_time]     INT        NULL,
    [count]            INT        NULL
);


GO
PRINT N'Creating Table [dbo].[ADW_ITEM_TYPE_DIM]...';


GO
CREATE TABLE [dbo].[ADW_ITEM_TYPE_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_ITEM_TYPE_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_MANUFACTURER_DIM]...';


GO
CREATE TABLE [dbo].[ADW_MANUFACTURER_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_MANUFACTURER_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_MODEL_DIM]...';


GO
CREATE TABLE [dbo].[ADW_MODEL_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_MODEL_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_MODIFIER_DIM]...';


GO
CREATE TABLE [dbo].[ADW_MODIFIER_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_MODIFIER_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_OLA_DIM]...';


GO
CREATE TABLE [dbo].[ADW_OLA_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_OLA_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_PRIORITY_DIM]...';


GO
CREATE TABLE [dbo].[ADW_PRIORITY_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_PRIORITY_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_PROJECT_DIM]...';


GO
CREATE TABLE [dbo].[ADW_PROJECT_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_PROJECT_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_PROVIDER_DIM]...';


GO
CREATE TABLE [dbo].[ADW_PROVIDER_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_PROVIDER_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_REASON_DIM]...';


GO
CREATE TABLE [dbo].[ADW_REASON_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_REASON_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_REGISTRY_TYPE_DIM]...';


GO
CREATE TABLE [dbo].[ADW_REGISTRY_TYPE_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_REGISTRY_TYPE_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_RESPONSIBLE_DIM]...';


GO
CREATE TABLE [dbo].[ADW_RESPONSIBLE_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_RESPONSIBLE_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_SERVICE_CUBE]...';


GO
CREATE TABLE [dbo].[ADW_SERVICE_CUBE] (
    [responsible_id] INT NULL,
    [project_id]     INT NULL,
    [state_id]       INT NULL,
    [author_id]      INT NULL,
    [modifier_id]    INT NULL,
    [YEAR_MODIFIED]  INT NULL,
    [MONTH_MODIFIED] INT NULL,
    [DAY_MODIFIED]   INT NULL,
    [YEAR_CREATED]   INT NULL,
    [MONTH_CREATED]  INT NULL,
    [DAY_CREATED]    INT NULL,
    [YEAR_CLOSED]    INT NULL,
    [MONTH_CLOSED]   INT NULL,
    [DAY_CLOSED]     INT NULL,
    [impact_id]      INT NULL,
    [stage_id]       INT NULL,
    [type_id]        INT NULL,
    [reason_id]      INT NULL,
    [group_id]       INT NULL,
    [count]          INT NULL
);


GO
PRINT N'Creating Table [dbo].[ADW_SERVICE_DIM]...';


GO
CREATE TABLE [dbo].[ADW_SERVICE_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_SERVICE_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_SERVICE_STAGE_DIM]...';


GO
CREATE TABLE [dbo].[ADW_SERVICE_STAGE_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_SERVICE_STAGE_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_SERVICE_TYPE_DIM]...';


GO
CREATE TABLE [dbo].[ADW_SERVICE_TYPE_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_SERVICE_TYPE_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_SLA_DIM]...';


GO
CREATE TABLE [dbo].[ADW_SLA_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_SLA_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_STATUS_DIM]...';


GO
CREATE TABLE [dbo].[ADW_STATUS_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_STATUS_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_TIME_ZONE]...';


GO
CREATE TABLE [dbo].[ADW_TIME_ZONE] (
    [name]    NVARCHAR (256) NOT NULL,
    [display] NVARCHAR (256) NOT NULL,
    CONSTRAINT [PK_ADW_TIME_ZONE] PRIMARY KEY CLUSTERED ([name] ASC),
    CONSTRAINT [UX_ADW_TIME_ZONE] UNIQUE NONCLUSTERED ([display] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_TYPE_DIM]...';


GO
CREATE TABLE [dbo].[ADW_TYPE_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_TYPE_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_UC_DIM]...';


GO
CREATE TABLE [dbo].[ADW_UC_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_UC_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ADW_URGENCY_DIM]...';


GO
CREATE TABLE [dbo].[ADW_URGENCY_DIM] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ADW_URGENCY_DIM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_CATEGORY]...';


GO
CREATE TABLE [dbo].[AES_CATEGORY] (
    [id]   INT          NOT NULL,
    [name] VARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AES_CATEGORY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_COMPLIANCE_MONITOR]...';


GO
CREATE TABLE [dbo].[AES_COMPLIANCE_MONITOR] (
    [id]                 INT              IDENTITY (1, 1) NOT NULL,
    [detail_criteria_id] INT              NOT NULL,
    [device_id]          UNIQUEIDENTIFIER NOT NULL,
    [state]              BIT              NOT NULL,
    [error_message]      VARCHAR (4000)   NULL,
    CONSTRAINT [PK_AES_COMPLIANCE_MONITOR] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AES_COMPLIANCE_MONITOR] UNIQUE NONCLUSTERED ([device_id] ASC, [detail_criteria_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_CRITERIA]...';


GO
CREATE TABLE [dbo].[AES_CRITERIA] (
    [id]          INT IDENTITY (1, 1) NOT NULL,
    [policy_id]   INT NOT NULL,
    [product_id]  INT NOT NULL,
    [category_id] INT NOT NULL,
    CONSTRAINT [PK_AES_CRITERIA] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_CVE]...';


GO
CREATE TABLE [dbo].[AES_CVE] (
    [Id]                          INT            NOT NULL,
    [cve]                         VARCHAR (100)  NOT NULL,
    [severity]                    INT            NOT NULL,
    [description]                 VARCHAR (4096) NOT NULL,
    [treatment_status]            INT            NOT NULL,
    [Cwe]                         VARCHAR (20)   NULL,
    [LastUpdate]                  DATETIME2 (7)  NULL,
    [Published]                   DATETIME2 (7)  NULL,
    [ResolutionVersion]           VARCHAR (1000) NULL,
    [ResolutionText]              VARCHAR (4096) NULL,
    [SeverityIndex]               INT            NULL,
    [Cvss20AccessComplexity]      CHAR (1)       NULL,
    [Cvss20AccessVector]          CHAR (1)       NULL,
    [Cvss20Authentication]        CHAR (1)       NULL,
    [Cvss20AvailabilityImpact]    CHAR (1)       NULL,
    [Cvss20ConfidentialityImpact] CHAR (1)       NULL,
    [Cvss20IntegrityImpact]       CHAR (1)       NULL,
    [Cvss20Score]                 CHAR (5)       NULL,
    [Cvss20Source]                NVARCHAR (100) NULL,
    [Cvss30AttackComplexity]      CHAR (1)       NULL,
    [Cvss30AttackVector]          CHAR (1)       NULL,
    [Cvss30AvailabilityImpact]    CHAR (1)       NULL,
    [Cvss30BaseScore]             CHAR (5)       NULL,
    [Cvss30BaseSeverity]          CHAR (1)       NULL,
    [Cvss30ConfidentialityImpact] CHAR (1)       NULL,
    [Cvss30ExploitabilityScore]   CHAR (5)       NULL,
    [Cvss30ImpactScore]           CHAR (5)       NULL,
    [Cvss30IntegrityImpact]       CHAR (1)       NULL,
    [Cvss30PrivilegesRequired]    CHAR (1)       NULL,
    [Cvss30Scope]                 CHAR (1)       NULL,
    [Cvss30Vector]                VARCHAR (50)   NULL,
    [created_at]                  DATETIME2 (7)  NULL,
    [updated_at]                  DATETIME2 (7)  NULL,
    CONSTRAINT [PK_AES_CVE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AES_CVE].[IX01_AES_CVE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AES_CVE]
    ON [dbo].[AES_CVE]([Cwe] ASC, [Cvss20AccessComplexity] ASC, [Cvss20AccessVector] ASC, [Cvss20Authentication] ASC, [Cvss20AvailabilityImpact] ASC, [Cvss20ConfidentialityImpact] ASC, [Cvss20IntegrityImpact] ASC, [Cvss30AttackComplexity] ASC, [Cvss30AttackVector] ASC, [Cvss30AvailabilityImpact] ASC, [Cvss30BaseSeverity] ASC, [Cvss30ConfidentialityImpact] ASC, [Cvss30IntegrityImpact] ASC, [Cvss30PrivilegesRequired] ASC);


GO
PRINT N'Creating Index [dbo].[AES_CVE].[IX02_AES_CVE]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AES_CVE]
    ON [dbo].[AES_CVE]([cve] ASC)
    INCLUDE([SeverityIndex], [Cwe], [Published], [severity]);


GO
PRINT N'Creating Table [dbo].[AES_CVE_TREATMENT]...';


GO
CREATE TABLE [dbo].[AES_CVE_TREATMENT] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [cve_id]          INT            NOT NULL,
    [status]          INT            NOT NULL,
    [description]     VARCHAR (4096) NOT NULL,
    [date]            DATETIME2 (7)  NULL,
    [user_created_id] INT            NOT NULL,
    [created_at]      DATETIME2 (7)  NOT NULL,
    [updated_at]      DATETIME2 (7)  NULL,
    CONSTRAINT [PK_AES_CVE_TREATMENT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_CVE_URL]...';


GO
CREATE TABLE [dbo].[AES_CVE_URL] (
    [id]     INT            IDENTITY (1, 1) NOT NULL,
    [cve_id] INT            NOT NULL,
    [url]    VARCHAR (2000) NOT NULL,
    CONSTRAINT [PK_AES_CVE_URL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_DETAIL_CRITERIA]...';


GO
CREATE TABLE [dbo].[AES_DETAIL_CRITERIA] (
    [id]              INT           IDENTITY (1, 1) NOT NULL,
    [active]          BIT           NOT NULL,
    [criteria_id]     INT           NOT NULL,
    [method_id]       INT           NOT NULL,
    [parameter_value] VARCHAR (500) NULL,
    CONSTRAINT [PK_AES_DETAIL_CRITERIA] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_DEVICE]...';


GO
CREATE TABLE [dbo].[AES_DEVICE] (
    [id]               UNIQUEIDENTIFIER NOT NULL,
    [group_id]         INT              NULL,
    [platform_id]      INT              NOT NULL,
    [raw_id]           NVARCHAR (100)   NOT NULL,
    [hardware_hash]    NVARCHAR (100)   NULL,
    [ip]               NVARCHAR (2000)  NOT NULL,
    [name]             NVARCHAR (150)   NOT NULL,
    [operating_system] NVARCHAR (150)   NOT NULL,
    [version]          VARCHAR (25)     NULL,
    [version_catalog]  VARCHAR (25)     NULL,
    [state]            TINYINT          NULL,
    [status_date]      DATETIME2 (7)    NULL,
    [last_updated]     DATETIME2 (7)    NULL,
    [last_scan]        DATETIME2 (7)    NULL,
    CONSTRAINT [PK_AES_DEVICE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AES_DEVICE].[IX01_AES_DEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AES_DEVICE]
    ON [dbo].[AES_DEVICE]([hardware_hash] ASC);


GO
PRINT N'Creating Table [dbo].[AES_DEVICE_REMEDIATION]...';


GO
CREATE TABLE [dbo].[AES_DEVICE_REMEDIATION] (
    [device_id]     UNIQUEIDENTIFIER NOT NULL,
    [action_id]     INT              NOT NULL,
    [state]         INT              NOT NULL,
    [error_message] VARCHAR (4000)   NULL,
    [last_updated]  DATETIME2 (7)    NOT NULL,
    CONSTRAINT [PK_AES_DEVICE_REMEDIATION] PRIMARY KEY CLUSTERED ([device_id] ASC, [action_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_DEVICE_VULNERABILITY]...';


GO
CREATE TABLE [dbo].[AES_DEVICE_VULNERABILITY] (
    [device_id]  UNIQUEIDENTIFIER NOT NULL,
    [product_id] INT              NOT NULL,
    [cve_id]     INT              NOT NULL,
    [signature]  INT              NOT NULL,
    [version]    VARCHAR (150)    NOT NULL,
    [date]       DATETIME2 (7)    NOT NULL,
    CONSTRAINT [PK_AES_DEVICE_VULNERABILITY] PRIMARY KEY CLUSTERED ([device_id] ASC, [signature] ASC, [cve_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AES_DEVICE_VULNERABILITY].[IX01_AES_DEVICE_VULNERABILITY]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AES_DEVICE_VULNERABILITY]
    ON [dbo].[AES_DEVICE_VULNERABILITY]([cve_id] ASC, [device_id] ASC);


GO
PRINT N'Creating Table [dbo].[AES_DEVICE_VULNERABILITY_COUNTER]...';


GO
CREATE TABLE [dbo].[AES_DEVICE_VULNERABILITY_COUNTER] (
    [device_id]    UNIQUEIDENTIFIER NOT NULL,
    [low]          INT              NOT NULL,
    [moderate]     INT              NOT NULL,
    [important]    INT              NOT NULL,
    [critical]     INT              NOT NULL,
    [last_updated] DATETIME2 (7)    NOT NULL,
    CONSTRAINT [PK_AES_DEVICE_VULNERABILITY_COUNTER] PRIMARY KEY CLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_GROUP]...';


GO
CREATE TABLE [dbo].[AES_GROUP] (
    [id]   INT            IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (256) NOT NULL,
    CONSTRAINT [PK_AES_GROUP] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_GROUP_COMPLIANCE]...';


GO
CREATE TABLE [dbo].[AES_GROUP_COMPLIANCE] (
    [id]                    INT IDENTITY (1, 1) NOT NULL,
    [group_id]              INT NOT NULL,
    [date_id]               INT NOT NULL,
    [compliant_devices]     INT NOT NULL,
    [non_compliant_devices] INT NOT NULL,
    CONSTRAINT [PK_AES_GROUP_COMPLIANCE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_METHOD]...';


GO
CREATE TABLE [dbo].[AES_METHOD] (
    [id]             INT           NOT NULL,
    [name]           VARCHAR (100) NOT NULL,
    [type]           INT           NOT NULL,
    [parameter_type] INT           NOT NULL,
    [remediation_id] INT           NULL,
    CONSTRAINT [PK_AES_METHOD] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_PLATFORM]...';


GO
CREATE TABLE [dbo].[AES_PLATFORM] (
    [id]   INT          NOT NULL,
    [name] VARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AES_PLATFORM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_POLICY]...';


GO
CREATE TABLE [dbo].[AES_POLICY] (
    [id]            INT             IDENTITY (1, 1) NOT NULL,
    [platform_id]   INT             NOT NULL,
    [active]        BIT             NOT NULL,
    [check_time]    INT             NOT NULL,
    [creation_date] DATETIME2 (7)   NOT NULL,
    [description]   NVARCHAR (4000) NOT NULL,
    [name]          NVARCHAR (500)  NOT NULL,
    CONSTRAINT [PK_AES_POLICY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_POLICY_GROUP]...';


GO
CREATE TABLE [dbo].[AES_POLICY_GROUP] (
    [group_id]  INT NOT NULL,
    [policy_id] INT NOT NULL,
    CONSTRAINT [PK_AES_POLICY_GROUP] PRIMARY KEY CLUSTERED ([policy_id] ASC, [group_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_PRODUCT]...';


GO
CREATE TABLE [dbo].[AES_PRODUCT] (
    [id]          INT            NOT NULL,
    [name]        NVARCHAR (100) NOT NULL,
    [platform_id] INT            NOT NULL,
    [vendor_id]   INT            NULL,
    CONSTRAINT [PK_AES_PRODUCT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_PRODUCT_CATEGORY]...';


GO
CREATE TABLE [dbo].[AES_PRODUCT_CATEGORY] (
    [product_id]  INT NOT NULL,
    [category_id] INT NOT NULL,
    CONSTRAINT [PK_AES_PRODUCT_CATEGORY] PRIMARY KEY CLUSTERED ([product_id] ASC, [category_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_PRODUCT_METHOD]...';


GO
CREATE TABLE [dbo].[AES_PRODUCT_METHOD] (
    [product_id] INT NOT NULL,
    [method_id]  INT NOT NULL,
    CONSTRAINT [PK_AES_PRODUCT_METHOD] PRIMARY KEY CLUSTERED ([product_id] ASC, [method_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_REMEDIATION_ACTION]...';


GO
CREATE TABLE [dbo].[AES_REMEDIATION_ACTION] (
    [id]              INT             IDENTITY (1, 1) NOT NULL,
    [product_id]      INT             NOT NULL,
    [method_id]       INT             NOT NULL,
    [user_created_id] INT             NULL,
    [creation_date]   DATETIME2 (7)   NOT NULL,
    [parameters]      NVARCHAR (4000) NULL,
    CONSTRAINT [PK_AES_REMEDIATION_ACTION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_SIGNATURE]...';


GO
CREATE TABLE [dbo].[AES_SIGNATURE] (
    [id]         INT            NOT NULL,
    [product_id] INT            NOT NULL,
    [name]       NVARCHAR (100) NOT NULL,
    CONSTRAINT [PK_AES_SIGNATURE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AES_VENDOR]...';


GO
CREATE TABLE [dbo].[AES_VENDOR] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (100) NOT NULL,
    CONSTRAINT [PK_AES_VENDOR] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ACTIONS]...';


GO
CREATE TABLE [dbo].[AFLS_ACTIONS] (
    [acti_id]    INT            IDENTITY (1, 1) NOT NULL,
    [acti_name]  NVARCHAR (200) NOT NULL,
    [acti_css]   NVARCHAR (100) NOT NULL,
    [acti_order] NVARCHAR (100) NOT NULL,
    CONSTRAINT [PK_AFLS_ACTION] PRIMARY KEY CLUSTERED ([acti_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ADDITIONAL_FIELD_CONCEPT]...';


GO
CREATE TABLE [dbo].[AFLS_ADDITIONAL_FIELD_CONCEPT] (
    [Id]           INT IDENTITY (1, 1) NOT NULL,
    [DefinitionId] INT NULL,
    [ConceptId]    INT NULL,
    CONSTRAINT [PK_AFLS_ADDITIONAL_FIELD_CONCEPT] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ALERT_ARCHIVES]...';


GO
CREATE TABLE [dbo].[AFLS_ALERT_ARCHIVES] (
    [Id]           INT            IDENTITY (1, 1) NOT NULL,
    [AlertId]      INT            NOT NULL,
    [StatusId]     INT            NOT NULL,
    [SeverityId]   INT            NOT NULL,
    [CategoryId]   INT            NOT NULL,
    [ProjectId]    INT            NULL,
    [Title]        NVARCHAR (50)  NOT NULL,
    [CreationDate] DATETIME       NOT NULL,
    [Description]  NVARCHAR (MAX) NULL,
    [Detail]       NVARCHAR (MAX) NULL,
    [ItemId]       INT            NULL,
    CONSTRAINT [PK_AFLS_ALERT_ARCHIVES] PRIMARY KEY NONCLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_ALERT_ARCHIVES].[IX01_AFLS_ALERT_ARCHIVES]...';


GO
CREATE CLUSTERED INDEX [IX01_AFLS_ALERT_ARCHIVES]
    ON [dbo].[AFLS_ALERT_ARCHIVES]([ItemId] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_ALERT_STATUS]...';


GO
CREATE TABLE [dbo].[AFLS_ALERT_STATUS] (
    [Id_Status] INT IDENTITY (1, 1) NOT NULL,
    [Id_Alert]  INT NOT NULL,
    [Status]    BIT NULL,
    CONSTRAINT [PK_AFLS_ALERT_STATUS] PRIMARY KEY CLUSTERED ([Id_Status] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ALERT_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_ALERT_TYPE] (
    [Id]               INT            IDENTITY (1, 1) NOT NULL,
    [Name]             NVARCHAR (50)  NOT NULL,
    [IdCategoryParent] INT            NOT NULL,
    [ReferenceValue]   NVARCHAR (100) NULL,
    [IsActive]         BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_ALERT_TYPE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ALERTS_NOTIFICATIONS]...';


GO
CREATE TABLE [dbo].[AFLS_ALERTS_NOTIFICATIONS] (
    [alert_id]           INT            IDENTITY (1, 1) NOT NULL,
    [alert_module]       NVARCHAR (64)  NULL,
    [alert_message]      NVARCHAR (512) NULL,
    [alert_created_date] DATETIME       NOT NULL,
    [user_id]            INT            NOT NULL,
    [alert_state]        BIT            NOT NULL,
    PRIMARY KEY CLUSTERED ([alert_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ALERTS_PERMISSIONS_EXTENSION]...';


GO
CREATE TABLE [dbo].[AFLS_ALERTS_PERMISSIONS_EXTENSION] (
    [Id]          INT IDENTITY (1, 1) NOT NULL,
    [Role_Id]     INT NOT NULL,
    [Category_Id] INT NOT NULL,
    CONSTRAINT [PK_ALERTS_PERMISSIONS_EXTENSION] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_API_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_API_TYPE] (
    [typeapi_id]   INT        IDENTITY (1, 1) NOT NULL,
    [typeapi_name] NCHAR (30) NULL,
    CONSTRAINT [PK_AFLS_API_TYPE] PRIMARY KEY CLUSTERED ([typeapi_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_APP_LOG]...';


GO
CREATE TABLE [dbo].[AFLS_APP_LOG] (
    [alog_id]             INT            IDENTITY (1, 1) NOT NULL,
    [alog_user_id]        INT            NOT NULL,
    [alog_generate_date]  DATETIME       NOT NULL,
    [alog_log]            NVARCHAR (MAX) NOT NULL,
    [alog_request_entity] NVARCHAR (128) NOT NULL,
    [alog_request_verb]   NVARCHAR (32)  NULL,
    PRIMARY KEY CLUSTERED ([alog_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ASSIGNMENT_ENGINE_LOG]...';


GO
CREATE TABLE [dbo].[AFLS_ASSIGNMENT_ENGINE_LOG] (
    [aelog_id]                        INT        IDENTITY (1, 1) NOT NULL,
    [aelog_assignmentenginerequestid] INT        NOT NULL,
    [aelog_generation]                INT        NOT NULL,
    [aelog_setupgeneration]           INT        NOT NULL,
    [aelog_setuppupulationsize]       INT        NOT NULL,
    [aelog_evaluationscore]           FLOAT (53) NOT NULL,
    [aelog_generatedat]               DATETIME   NOT NULL,
    CONSTRAINT [PK_AFLS_ASSIGNMENT_ENGINE_LOG] PRIMARY KEY CLUSTERED ([aelog_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ASSIGNMENT_ENGINE_REQUEST]...';


GO
CREATE TABLE [dbo].[AFLS_ASSIGNMENT_ENGINE_REQUEST] (
    [aerequest_id]                INT            IDENTITY (1, 1) NOT NULL,
    [aerequest_tenantid]          INT            NOT NULL,
    [aerequest_priority]          INT            NOT NULL,
    [aerequest_bodyproblem]       NVARCHAR (MAX) NOT NULL,
    [aerequest_status]            VARCHAR (20)   NOT NULL,
    [aerequest_createdat]         DATETIME       NOT NULL,
    [aerequest_bodysolution]      NVARCHAR (MAX) NULL,
    [aerequest_initdateexecution] DATETIME       NULL,
    [aerequest_enddateexecution]  DATETIME       NULL,
    [provider_id]                 INT            NULL,
    [error_messages]              NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AFLS_ASSIGNMENT_ENGINE_REQUEST] PRIMARY KEY CLUSTERED ([aerequest_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ASSING_PROVIDER_SETTING]...';


GO
CREATE TABLE [dbo].[AFLS_ASSING_PROVIDER_SETTING] (
    [Id]             INT             IDENTITY (1, 1) NOT NULL,
    [Type]           INT             NOT NULL,
    [Time]           INT             NOT NULL,
    [Qualification]  DECIMAL (18, 2) NOT NULL,
    [Accomplishment] DECIMAL (18, 2) NOT NULL,
    [Reply]          DECIMAL (18, 2) NOT NULL,
    CONSTRAINT [PK_AFLS_ASSING_PROVIDER_SETTING] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ASSING_PROVIDER_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_ASSING_PROVIDER_TYPE] (
    [Id]       INT           IDENTITY (1, 1) NOT NULL,
    [Name]     NVARCHAR (50) NOT NULL,
    [IsActive] BIT           NOT NULL,
    CONSTRAINT [PK_AFLS_ASSING_PROVIDER_TYPE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ATTACHMENTS]...';


GO
CREATE TABLE [dbo].[AFLS_ATTACHMENTS] (
    [attc_id]               INT              IDENTITY (1, 1) NOT NULL,
    [work_id]               INT              NULL,
    [attc_description]      NVARCHAR (MAX)   NULL,
    [attc_file_path]        NVARCHAR (MAX)   NULL,
    [attc_real_file_name]   NVARCHAR (MAX)   NULL,
    [attc_server_file_name] NVARCHAR (MAX)   NULL,
    [attc_file_extension]   NVARCHAR (MAX)   NULL,
    [attc_file_size]        NVARCHAR (MAX)   NULL,
    [attc_creation_date]    DATETIME         NOT NULL,
    [attc_type_sign]        NVARCHAR (100)   NULL,
    [attc_latitude]         DECIMAL (20, 14) NULL,
    [attc_longitude]        DECIMAL (20, 14) NULL,
    [attc_address]          NVARCHAR (MAX)   NULL,
    [attc_type_id]          INT              NOT NULL,
    [attc_object_id]        INT              NULL,
    CONSTRAINT [PK_AFLS_ATTACHMENTS] PRIMARY KEY CLUSTERED ([attc_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ATTACHMENTS_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_ATTACHMENTS_TYPE] (
    [attc_type_id]          INT           IDENTITY (1, 1) NOT NULL,
    [attc_type_name]        VARCHAR (100) NULL,
    [attc_type_description] VARCHAR (500) NULL,
    [state]                 BIT           NOT NULL,
    CONSTRAINT [PK_AFLS_ATTACHMENTS_TYPE] PRIMARY KEY CLUSTERED ([attc_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ATTENDAMENT_HELPER]...';


GO
CREATE TABLE [dbo].[AFLS_ATTENDAMENT_HELPER] (
    [aah_Id]          INT      IDENTITY (1, 1) NOT NULL,
    [work_id]         INT      NULL,
    [work_attendant]  INT      NULL,
    [date_assignment] DATETIME NULL,
    [is_reassigned]   BIT      NOT NULL,
    PRIMARY KEY CLUSTERED ([aah_Id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_ATTENDAMENT_HELPER].[IDX001_AFLS_ATTENDAMENT_HELPER]...';


GO
CREATE NONCLUSTERED INDEX [IDX001_AFLS_ATTENDAMENT_HELPER]
    ON [dbo].[AFLS_ATTENDAMENT_HELPER]([is_reassigned] ASC, [date_assignment] ASC)
    INCLUDE([aah_Id], [work_id], [work_attendant]);


GO
PRINT N'Creating Index [dbo].[AFLS_ATTENDAMENT_HELPER].[IX_AFLS_AFLS_ATTENDAMENT_HELPER_work_id]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFLS_AFLS_ATTENDAMENT_HELPER_work_id]
    ON [dbo].[AFLS_ATTENDAMENT_HELPER]([work_id] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_AVAILABILITIES]...';


GO
CREATE TABLE [dbo].[AFLS_AVAILABILITIES] (
    [avai_id]         INT      IDENTITY (1, 1) NOT NULL,
    [avai_day]        INT      NOT NULL,
    [avai_hour_start] DATETIME NOT NULL,
    [avai_hour_end]   DATETIME NOT NULL,
    CONSTRAINT [PK_AFLS_AVAILABILITY] PRIMARY KEY CLUSTERED ([avai_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_CALENDAR]...';


GO
CREATE TABLE [dbo].[AFLS_CALENDAR] (
    [cale_id]          INT            IDENTITY (1, 1) NOT NULL,
    [cale_name]        NVARCHAR (100) NOT NULL,
    [cale_description] NVARCHAR (MAX) NULL,
    [cale_enable]      BIT            NOT NULL,
    [cale_loadholiday] BIT            NOT NULL,
    [tent_id]          INT            NOT NULL,
    [cale_type]        NVARCHAR (20)  NOT NULL,
    CONSTRAINT [PK_AFLS_CALENDAR] PRIMARY KEY CLUSTERED ([cale_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_CALENDAR_EXCEPTION]...';


GO
CREATE TABLE [dbo].[AFLS_CALENDAR_EXCEPTION] (
    [caex_id]             INT      IDENTITY (1, 1) NOT NULL,
    [cale_id]             INT      NULL,
    [caex_date]           DATETIME NOT NULL,
    [caex_is_restriction] BIT      NOT NULL,
    CONSTRAINT [PK_AFLS_CALENDAR_EXCEPTION] PRIMARY KEY CLUSTERED ([caex_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_CALENDAR_EXCEPTION].[IX01_AFLS_CALENDAR_EXCEPTION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_CALENDAR_EXCEPTION]
    ON [dbo].[AFLS_CALENDAR_EXCEPTION]([caex_id] ASC, [cale_id] ASC)
    INCLUDE([caex_date], [caex_is_restriction]);


GO
PRINT N'Creating Table [dbo].[AFLS_CALENDAR_SCHEDULE]...';


GO
CREATE TABLE [dbo].[AFLS_CALENDAR_SCHEDULE] (
    [casc_id]         INT      IDENTITY (1, 1) NOT NULL,
    [casc_day]        INT      NOT NULL,
    [casc_hour_start] DATETIME NOT NULL,
    [casc_hour_end]   DATETIME NOT NULL,
    [cale_id]         INT      NULL,
    CONSTRAINT [PK_AFLS_CALENDAR_SCHEDULE] PRIMARY KEY CLUSTERED ([casc_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_CALENDARS_EVENTS]...';


GO
CREATE TABLE [dbo].[AFLS_CALENDARS_EVENTS] (
    [calev_id]        INT      IDENTITY (1, 1) NOT NULL,
    [cale_id]         INT      NOT NULL,
    [calev_status]    INT      NOT NULL,
    [calev_startdate] DATETIME NOT NULL,
    CONSTRAINT [PK_AFLS_CALENDARS_EVENTS] PRIMARY KEY CLUSTERED ([calev_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_CALENDARS_EVENTS].[IX01_AFLS_CALENDARS_EVENTS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_CALENDARS_EVENTS]
    ON [dbo].[AFLS_CALENDARS_EVENTS]([cale_id] ASC)
    INCLUDE([calev_status], [calev_startdate]);


GO
PRINT N'Creating Table [dbo].[AFLS_CATEGORIES]...';


GO
CREATE TABLE [dbo].[AFLS_CATEGORIES] (
    [cate_id]       INT            IDENTITY (1, 1) NOT NULL,
    [cate_name]     NVARCHAR (100) NULL,
    [cate_priority] INT            NULL,
    CONSTRAINT [PK_AFLS_TYPE_CLIENTS] PRIMARY KEY CLUSTERED ([cate_id] ASC),
    CONSTRAINT [UQ_AFLS_CATEGORIES_NAME] UNIQUE NONCLUSTERED ([cate_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_CHANGES]...';


GO
CREATE TABLE [dbo].[AFLS_CHANGES] (
    [chng_id]         INT            IDENTITY (1, 1) NOT NULL,
    [chng_type]       NVARCHAR (50)  NOT NULL,
    [revi_id]         INT            NULL,
    [rela_id]         INT            NULL,
    [chng_attributes] NVARCHAR (50)  NOT NULL,
    [chng_old_value]  NVARCHAR (MAX) NULL,
    [chng_new_value]  NVARCHAR (MAX) NULL,
    [chng_data]       NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AFLS_CHANGES] PRIMARY KEY CLUSTERED ([chng_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_CHANGES].[IX01_AFLS_CHANGES]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_CHANGES]
    ON [dbo].[AFLS_CHANGES]([revi_id] ASC);


GO
PRINT N'Creating Index [dbo].[AFLS_CHANGES].[IX02_AFLS_CHANGES]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFLS_CHANGES]
    ON [dbo].[AFLS_CHANGES]([rela_id] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_CHANNELS]...';


GO
CREATE TABLE [dbo].[AFLS_CHANNELS] (
    [Id]          INT           IDENTITY (1, 1) NOT NULL,
    [ChannelName] NVARCHAR (50) NOT NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_CHRONOS_ALARMS]...';


GO
CREATE TABLE [dbo].[AFLS_CHRONOS_ALARMS] (
    [chalarm_id]             INT      IDENTITY (1, 1) NOT NULL,
    [chalarm_type]           INT      NOT NULL,
    [chalarm_docid]          INT      NOT NULL,
    [chalarm_docstatusid]    INT      NULL,
    [chalarm_itemtime_id]    INT      NULL,
    [chalarm_action]         INT      NOT NULL,
    [chalarm_expirationdate] DATETIME NOT NULL,
    [chalarm_status]         INT      NOT NULL,
    [chalarm_provider_id]    INT      NULL,
    CONSTRAINT [PK_AFLS_CHRONOS_ALARMS] PRIMARY KEY CLUSTERED ([chalarm_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_CHRONOS_ALARMS].[IX01_AFLS_CHRONOS_ALARMS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_CHRONOS_ALARMS]
    ON [dbo].[AFLS_CHRONOS_ALARMS]([chalarm_type] ASC, [chalarm_docid] ASC)
    INCLUDE([chalarm_docstatusid], [chalarm_itemtime_id], [chalarm_action], [chalarm_expirationdate], [chalarm_provider_id]);


GO
PRINT N'Creating Index [dbo].[AFLS_CHRONOS_ALARMS].[IX02_AFLS_CHRONOS_ALARMS]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFLS_CHRONOS_ALARMS]
    ON [dbo].[AFLS_CHRONOS_ALARMS]([chalarm_docid] ASC, [chalarm_itemtime_id] ASC, [chalarm_status] ASC, [chalarm_provider_id] ASC)
    INCLUDE([chalarm_type], [chalarm_docstatusid], [chalarm_action], [chalarm_expirationdate]);


GO
PRINT N'Creating Table [dbo].[AFLS_CHRONOS_EVENTS]...';


GO
CREATE TABLE [dbo].[AFLS_CHRONOS_EVENTS] (
    [chevent_id]              INT      IDENTITY (1, 1) NOT NULL,
    [chevent_itemtime_id]     INT      NOT NULL,
    [chevent_doc_id]          INT      NOT NULL,
    [chevent_doc_status]      INT      NOT NULL,
    [chevent_status]          INT      NOT NULL,
    [chevent_startdate]       DATETIME NOT NULL,
    [chevent_chronos_refresh] BIT      NOT NULL,
    [chevent_providerid]      INT      NULL,
    CONSTRAINT [PK_AFLS_CHRONOS_EVENTS] PRIMARY KEY CLUSTERED ([chevent_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_CHRONOS_EVENTS].[IX01_AFLS_CHRONOS_EVENTS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_CHRONOS_EVENTS]
    ON [dbo].[AFLS_CHRONOS_EVENTS]([chevent_doc_id] ASC)
    INCLUDE([chevent_providerid], [chevent_startdate], [chevent_itemtime_id], [chevent_doc_status]);


GO
PRINT N'Creating Table [dbo].[AFLS_CHRONOS_RESULTS]...';


GO
CREATE TABLE [dbo].[AFLS_CHRONOS_RESULTS] (
    [chresult_id]              INT             IDENTITY (1, 1) NOT NULL,
    [chresult_item_id]         INT             NOT NULL,
    [chresult_itemtime_id]     INT             NOT NULL,
    [chresult_estimateddate]   DATETIME        NULL,
    [chresult_estimatedtime]   INT             NULL,
    [chresult_startdate]       DATETIME        NULL,
    [chresult_enddate]         DATETIME        NULL,
    [chresult_enddatetime]     INT             NULL,
    [chresult_lastshot]        DATETIME        NULL,
    [chresult_currenttime]     INT             NULL,
    [chresult_currentprogress] DECIMAL (18, 2) NULL,
    [chresult_status]          INT             NOT NULL,
    [chresult_calendarid]      INT             NOT NULL,
    [chresult_complies]        INT             NULL,
    [chresult_agreetype]       INT             NULL,
    [chresult_providerid]      INT             NULL,
    CONSTRAINT [PK_AFLS_CHRONOS_RESULTS] PRIMARY KEY CLUSTERED ([chresult_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_CHRONOS_RESULTS].[IX01_AFLS_CHRONOS_RESULTS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_CHRONOS_RESULTS]
    ON [dbo].[AFLS_CHRONOS_RESULTS]([chresult_itemtime_id] ASC)
    INCLUDE([chresult_item_id], [chresult_estimatedtime], [chresult_currenttime]);


GO
PRINT N'Creating Index [dbo].[AFLS_CHRONOS_RESULTS].[IX02_AFLS_CHRONOS_RESULTS]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFLS_CHRONOS_RESULTS]
    ON [dbo].[AFLS_CHRONOS_RESULTS]([chresult_item_id] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_CLIENT_INVENTORY]...';


GO
CREATE TABLE [dbo].[AFLS_CLIENT_INVENTORY] (
    [cinv_id]           INT            IDENTITY (1, 1) NOT NULL,
    [cinv_client_id]    INT            NOT NULL,
    [cinv_product_id]   INT            NOT NULL,
    [cinv_work_id]      INT            NULL,
    [cinv_assign_date]  DATETIME       NOT NULL,
    [cinv_pickup_date]  DATETIME       NULL,
    [cinv_serial_num]   NVARCHAR (128) NOT NULL,
    [cinv_quantity]     INT            NOT NULL,
    [cinv_is_in_client] BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_CLIENT_INVENTORY] PRIMARY KEY CLUSTERED ([cinv_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_CLIENT_SERVICES]...';


GO
CREATE TABLE [dbo].[AFLS_CLIENT_SERVICES] (
    [clse_id] INT IDENTITY (1, 1) NOT NULL,
    [clie_id] INT NOT NULL,
    [cose_id] INT NULL,
    [sla_id]  INT NOT NULL,
    [serv_id] INT NOT NULL,
    CONSTRAINT [PK_AFLS_CLIENT_SERVICES] PRIMARY KEY CLUSTERED ([clse_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_CLIENT_SERVICES].[IX_AFLS_CLIENT_SERVICES_clie_id]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFLS_CLIENT_SERVICES_clie_id]
    ON [dbo].[AFLS_CLIENT_SERVICES]([clie_id] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_CLIENTS_PROJECTS]...';


GO
CREATE TABLE [dbo].[AFLS_CLIENTS_PROJECTS] (
    [user_id]    INT NOT NULL,
    [project_id] INT NOT NULL,
    CONSTRAINT [PK_AFLS_CLIENTS_PROJECTS] PRIMARY KEY CLUSTERED ([user_id] ASC, [project_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_CMDB]...';


GO
CREATE TABLE [dbo].[AFLS_CMDB] (
    [ac_id]               INT            IDENTITY (1, 1) NOT NULL,
    [ac_path]             NVARCHAR (256) NOT NULL,
    [ac_user]             NVARCHAR (256) NOT NULL,
    [ac_pass]             NVARCHAR (512) NOT NULL,
    [ac_aditional_fields] NVARCHAR (MAX) NULL,
    [ac_update_registers] BIT            NOT NULL,
    [ac_active]           BIT            NOT NULL,
    [ac_token]            NVARCHAR (MAX) NULL,
    PRIMARY KEY CLUSTERED ([ac_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_COMPANIES]...';


GO
CREATE TABLE [dbo].[AFLS_COMPANIES] (
    [comp_id]                INT              NOT NULL,
    [proj_id]                INT              NULL,
    [comp_active]            BIT              NOT NULL,
    [comp_name]              NVARCHAR (100)   NOT NULL,
    [comp_contact_name]      NVARCHAR (100)   NULL,
    [comp_contact_phone]     NVARCHAR (255)   NULL,
    [comp_contact_email]     NVARCHAR (255)   NULL,
    [comp_contact_address]   NVARCHAR (500)   NULL,
    [comp_contact_longitude] DECIMAL (20, 14) NOT NULL,
    [comp_contact_latitude]  DECIMAL (20, 14) NOT NULL,
    [comp_is_imported]       BIT              NOT NULL,
    [comp_imported_from]     NVARCHAR (100)   NULL,
    [comp_unique_reference]  NVARCHAR (255)   NOT NULL,
    CONSTRAINT [PK_AFLS_COMPANIES] PRIMARY KEY CLUSTERED ([comp_id] ASC),
    CONSTRAINT [UK01_AFLS_COMPANIES] UNIQUE NONCLUSTERED ([comp_name] ASC, [comp_imported_from] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_COMPANIES_PROJECTS]...';


GO
CREATE TABLE [dbo].[AFLS_COMPANIES_PROJECTS] (
    [company_id] INT NOT NULL,
    [project_id] INT NOT NULL,
    CONSTRAINT [PK_AFLS_COMPANIES_PROJECTS] PRIMARY KEY CLUSTERED ([company_id] ASC, [project_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_COMPANY_SERVICES]...';


GO
CREATE TABLE [dbo].[AFLS_COMPANY_SERVICES] (
    [cose_id] INT IDENTITY (1, 1) NOT NULL,
    [comp_id] INT NOT NULL,
    [serv_id] INT NOT NULL,
    [sla_id]  INT NOT NULL,
    CONSTRAINT [PK_AFLS_COMPANY_SERVICES] PRIMARY KEY CLUSTERED ([cose_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_COMPANY_SERVICES].[IX01_AFLS_COMPANY_SERVICES]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_COMPANY_SERVICES]
    ON [dbo].[AFLS_COMPANY_SERVICES]([comp_id] ASC)
    INCLUDE([serv_id], [sla_id]);


GO
PRINT N'Creating Table [dbo].[AFLS_CONNECTORS]...';


GO
CREATE TABLE [dbo].[AFLS_CONNECTORS] (
    [Id]           INT            IDENTITY (1, 1) NOT NULL,
    [Name]         NVARCHAR (50)  NOT NULL,
    [Asembly_path] NVARCHAR (500) NOT NULL,
    [IsActive]     BIT            NOT NULL,
    [Settings]     NVARCHAR (MAX) NOT NULL,
    [Class_name]   NVARCHAR (500) NOT NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_CONSOLE_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_CONSOLE_TYPE] (
    [typecon_id]   INT        IDENTITY (1, 1) NOT NULL,
    [typecon_name] NCHAR (10) NOT NULL,
    CONSTRAINT [PK_AFLS_CONSOLE_TYPE] PRIMARY KEY CLUSTERED ([typecon_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_DAYS_DOES_NOT_WORK_SPECIALIST]...';


GO
CREATE TABLE [dbo].[AFLS_DAYS_DOES_NOT_WORK_SPECIALIST] (
    [addnw_id]   INT      IDENTITY (1, 1) NOT NULL,
    [user_id]    INT      NOT NULL,
    [addnw_date] DATETIME NOT NULL,
    CONSTRAINT [PK_AFLS_DAYS_DOES_NOT_WORK_SPECIALIST] PRIMARY KEY CLUSTERED ([addnw_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ERROR_MESSAGES]...';


GO
CREATE TABLE [dbo].[AFLS_ERROR_MESSAGES] (
    [error_id]          SMALLINT       NOT NULL,
    [type_id]           TINYINT        NOT NULL,
    [error_name]        VARCHAR (50)   NOT NULL,
    [error_description] NVARCHAR (250) NOT NULL,
    [error_resource]    VARCHAR (255)  NOT NULL,
    [error_active]      BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_ERROR_MESSAGES] PRIMARY KEY CLUSTERED ([error_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ERROR_MOBILE_LOG]...';


GO
CREATE TABLE [dbo].[AFLS_ERROR_MOBILE_LOG] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [host]              VARCHAR (200)  NOT NULL,
    [endpoint]          VARCHAR (200)  NOT NULL,
    [specialist_id]     INT            NOT NULL,
    [method_name]       VARCHAR (200)  NOT NULL,
    [class_name]        VARCHAR (200)  NOT NULL,
    [android_version]   VARCHAR (200)  NOT NULL,
    [device_ref]        VARCHAR (200)  NOT NULL,
    [exception_message] NVARCHAR (MAX) NOT NULL,
    [error_date]        DATETIME       NOT NULL,
    [sync]              BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_ERROR_MOBILE_LOG] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ERROR_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_ERROR_TYPE] (
    [type_id]          TINYINT        NOT NULL,
    [type_name]        VARCHAR (50)   NOT NULL,
    [type_description] NVARCHAR (250) NOT NULL,
    [type_active]      BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_ERROR_TYPE] PRIMARY KEY CLUSTERED ([type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ESTABLISHMENT]...';


GO
CREATE TABLE [dbo].[AFLS_ESTABLISHMENT] (
    [esta_id]             INT              NOT NULL,
    [esta_code]           NVARCHAR (50)    NULL,
    [esta_name]           NVARCHAR (100)   NOT NULL,
    [esta_address]        NVARCHAR (200)   NULL,
    [esta_latitude]       DECIMAL (20, 14) NULL,
    [esta_longitude]      DECIMAL (20, 14) NULL,
    [esta_country]        NVARCHAR (200)   NULL,
    [esta_filter_address] BIT              NULL,
    PRIMARY KEY CLUSTERED ([esta_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_GROUP_AVAILABILITIES]...';


GO
CREATE TABLE [dbo].[AFLS_GROUP_AVAILABILITIES] (
    [grou_id] INT NOT NULL,
    [avai_id] INT NOT NULL,
    CONSTRAINT [PK_AFLS_GROUP_AVAILABILITIES] PRIMARY KEY CLUSTERED ([grou_id] ASC, [avai_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_GROUP_SERVICES]...';


GO
CREATE TABLE [dbo].[AFLS_GROUP_SERVICES] (
    [grou_id] INT NOT NULL,
    [serv_id] INT NOT NULL,
    CONSTRAINT [PK_AFLS_GROUP_SERVICES] PRIMARY KEY CLUSTERED ([grou_id] ASC, [serv_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_GROUP_SKILLS]...';


GO
CREATE TABLE [dbo].[AFLS_GROUP_SKILLS] (
    [grou_id]  INT NOT NULL,
    [skll_id]  INT NOT NULL,
    [score]    INT NOT NULL,
    [required] BIT NOT NULL,
    CONSTRAINT [PK_AFLS_GROUP_SKILLS] PRIMARY KEY CLUSTERED ([grou_id] ASC, [skll_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_GROUPS_CLIENT]...';


GO
CREATE TABLE [dbo].[AFLS_GROUPS_CLIENT] (
    [group_id] INT NOT NULL,
    CONSTRAINT [PK_AFLS_GROUPS_CLIENT] PRIMARY KEY CLUSTERED ([group_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_GROUPS_SPECIALISTS]...';


GO
CREATE TABLE [dbo].[AFLS_GROUPS_SPECIALISTS] (
    [grou_id]                    INT      NOT NULL,
    [grou_last_availability_mod] DATETIME NULL,
    CONSTRAINT [PK_AFLS_GROUPS_SPECIALISTS] PRIMARY KEY CLUSTERED ([grou_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_GROUPS_WEB]...';


GO
CREATE TABLE [dbo].[AFLS_GROUPS_WEB] (
    [grou_id] INT NOT NULL,
    CONSTRAINT [PK_AFLS_GROUPS_WEB] PRIMARY KEY CLUSTERED ([grou_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_IMPORT_FILE_PROCESS]...';


GO
CREATE TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS] (
    [id]               INT            IDENTITY (1, 1) NOT NULL,
    [file_name]        NVARCHAR (200) NULL,
    [state_id]         INT            NULL,
    [type_id]          INT            NULL,
    [date_register]    DATETIME       NOT NULL,
    [error_quantity]   INT            NULL,
    [success_quantity] INT            NULL,
    [line_quantity]    INT            NULL,
    [id_parent]        INT            NULL,
    CONSTRAINT [PK_AFLS_IMPORT_FILE_PROCESS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_IMPORT_FILE_PROCESS].[IX01_AFLS_IMPORT_FILE_PROCESS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_IMPORT_FILE_PROCESS]
    ON [dbo].[AFLS_IMPORT_FILE_PROCESS]([file_name] ASC, [state_id] ASC)
    INCLUDE([type_id], [date_register], [error_quantity], [success_quantity]);


GO
PRINT N'Creating Table [dbo].[AFLS_IMPORT_FILE_PROCESS_ERROR]...';


GO
CREATE TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS_ERROR] (
    [id]                     INT            IDENTITY (1, 1) NOT NULL,
    [import_file_process_id] INT            NOT NULL,
    [error_data]             NVARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_AFLS_IMPORT_FILES_PROCESS_ERROR] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_IMPORT_FILE_PROCESS_LOG]...';


GO
CREATE TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS_LOG] (
    [id]                     INT            IDENTITY (1, 1) NOT NULL,
    [import_file_process_id] INT            NULL,
    [file_name_error]        NVARCHAR (200) NULL,
    [date_sync]              DATETIME       NULL,
    [file_name_success]      NVARCHAR (200) NULL,
    CONSTRAINT [PK_AFLS_IMPORT_FILES_PROCESS_LOG] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_IMPORT_FILE_PROCESS_LOG].[IX01_AFLS_IMPORT_FILE_PROCESS_LOG]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_IMPORT_FILE_PROCESS_LOG]
    ON [dbo].[AFLS_IMPORT_FILE_PROCESS_LOG]([import_file_process_id] ASC)
    INCLUDE([file_name_error], [date_sync]);


GO
PRINT N'Creating Table [dbo].[AFLS_IMPORT_FILE_PROCESS_STATE]...';


GO
CREATE TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS_STATE] (
    [id]    INT            IDENTITY (1, 1) NOT NULL,
    [name]  NVARCHAR (200) NULL,
    [state] BIT            NULL,
    CONSTRAINT [PK_AFLS_IMPORT_FILE_PROCESS_STATE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_IMPORT_FILE_PROCESS_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS_TYPE] (
    [id]    INT            IDENTITY (1, 1) NOT NULL,
    [name]  NVARCHAR (100) NULL,
    [state] BIT            NULL,
    CONSTRAINT [PK_AFLS_IMPORT_FILE_PROCESS_TYPE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_LOCATION_CATEGORIES]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_LOCATION_CATEGORIES] (
    [aslc_id]          INT            IDENTITY (1, 1) NOT NULL,
    [aslc_name]        NVARCHAR (50)  NOT NULL,
    [aslc_description] NVARCHAR (MAX) NULL,
    [aslt_id]          INT            NOT NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_LOCATION_CATEGORIES] PRIMARY KEY CLUSTERED ([aslc_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_LOCATION_INFO]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_LOCATION_INFO] (
    [grou_id]            INT              IDENTITY (1, 1) NOT NULL,
    [grou_name]          NVARCHAR (256)   NOT NULL,
    [asli_latitude]      DECIMAL (20, 14) NULL,
    [asli_longitude]     DECIMAL (20, 14) NULL,
    [asli_address]       NVARCHAR (MAX)   NULL,
    [asli_addl_address]  NVARCHAR (MAX)   NULL,
    [asli_contact_name]  NVARCHAR (MAX)   NULL,
    [asli_contact_mail]  NVARCHAR (MAX)   NULL,
    [asli_contact_phone] NVARCHAR (MAX)   NULL,
    [aslc_id]            INT              NULL,
    [aslt_id]            INT              NULL,
    [aslt_path]          NVARCHAR (256)   NOT NULL,
    [asli_isdefault]     BIT              NULL,
    [asli_description]   NVARCHAR (256)   NULL,
    [asli_parent]        INT              NULL,
    [asli_is_active]     INT              NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_LOCATION_INFO] PRIMARY KEY CLUSTERED ([grou_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_LOCATION_TYPES]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_LOCATION_TYPES] (
    [aslt_id]          INT            IDENTITY (1, 1) NOT NULL,
    [aslt_name]        NVARCHAR (50)  NULL,
    [aslt_description] NVARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_LOCATION_TYPES] PRIMARY KEY CLUSTERED ([aslt_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_MEASURES]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_MEASURES] (
    [mea_id]          INT            IDENTITY (1, 1) NOT NULL,
    [mea_name]        NVARCHAR (100) NULL,
    [mea_description] NVARCHAR (255) NULL,
    [mea_active]      BIT            NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_MEASURES] PRIMARY KEY CLUSTERED ([mea_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_MOVEMENT_TYPES]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_MOVEMENT_TYPES] (
    [type_id]    INT           IDENTITY (1, 1) NOT NULL,
    [type_name]  NVARCHAR (64) NOT NULL,
    [type_inout] INT           NOT NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_MOVEMENT_TYPES] PRIMARY KEY CLUSTERED ([type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_MOVEMENTS]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] (
    [mov_id]             INT            IDENTITY (1, 1) NOT NULL,
    [mov_code_reference] NVARCHAR (128) NULL,
    [mov_buy_date]       DATETIME       NULL,
    [mov_register_date]  DATETIME       NOT NULL,
    [mov_descripcion]    NVARCHAR (256) NULL,
    [mov_third_id]       NVARCHAR (128) NULL,
    [mov_unit_value]     DECIMAL (38)   NULL,
    [mov_quantity]       INT            NOT NULL,
    [user_id]            INT            NOT NULL,
    [prod_id]            INT            NOT NULL,
    [grou_id]            INT            NULL,
    [type_id]            INT            NOT NULL,
    [mov_inout]          INT            NOT NULL,
    [work_id]            INT            NULL,
    [spec_id]            INT            NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_MOVEMENTS] PRIMARY KEY CLUSTERED ([mov_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_MOVEMENTS_DETAILS]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS_DETAILS] (
    [aimd_id]         INT            IDENTITY (1, 1) NOT NULL,
    [mov_id]          INT            NULL,
    [aimd_serial_num] NVARCHAR (128) NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_MOVEMENTS_DETAILS] PRIMARY KEY CLUSTERED ([aimd_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_PRODUCTS]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_PRODUCTS] (
    [prod_id]          INT             IDENTITY (1, 1) NOT NULL,
    [prod_type]        INT             NOT NULL,
    [prod_sku]         NVARCHAR (128)  NULL,
    [prod_quantity]    INT             NOT NULL,
    [prod_name]        NVARCHAR (300)  NOT NULL,
    [prod_description] NVARCHAR (300)  NULL,
    [mea_id]           INT             NOT NULL,
    [prod_cost]        DECIMAL (38, 2) NOT NULL,
    [prod_min_amount]  INT             NOT NULL,
    [tent_id]          INT             NOT NULL,
    [prod_active]      BIT             NOT NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_PRODUCTS] PRIMARY KEY CLUSTERED ([prod_id] ASC),
    CONSTRAINT [UK01_AFLS_INVENTORY_PRODUCTS] UNIQUE NONCLUSTERED ([prod_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] (
    [aipa_id]            INT            IDENTITY (1, 1) NOT NULL,
    [prod_id]            INT            NULL,
    [aipa_serial_num]    NVARCHAR (128) NULL,
    [group_id]           INT            NULL,
    [aipa_quantity]      INT            NULL,
    [aipa_specialist_id] INT            NULL,
    [date_id]            INT            NOT NULL,
    [last_enabled]       BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] PRIMARY KEY CLUSTERED ([aipa_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT].[IX01_AFLS_PRODUCTS_ASSIGNMENT]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_PRODUCTS_ASSIGNMENT]
    ON [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT]([aipa_specialist_id] ASC)
    INCLUDE([aipa_id], [prod_id], [aipa_serial_num], [group_id], [aipa_quantity], [date_id], [last_enabled]);


GO
PRINT N'Creating Index [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT].[IX02_AFLS_PRODUCTS_ASSIGNMENT]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFLS_PRODUCTS_ASSIGNMENT]
    ON [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT]([group_id] ASC)
    INCLUDE([aipa_id], [prod_id], [aipa_serial_num], [aipa_specialist_id], [aipa_quantity], [date_id], [last_enabled]);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_PRODUCTS_PURCHASE]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_PURCHASE] (
    [aipp_id]             INT             IDENTITY (1, 1) NOT NULL,
    [prod_id]             INT             NULL,
    [group_id]            INT             NULL,
    [aipp_entry_mov]      INT             NULL,
    [aipp_purchase]       DECIMAL (38, 2) NULL,
    [aipp_sum_unit_value] DECIMAL (38, 2) NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_PRODUCTS_PURCHASE] PRIMARY KEY CLUSTERED ([aipp_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] (
    [aipt_id]        INT            IDENTITY (0, 1) NOT NULL,
    [aipt_name]      NVARCHAR (128) NULL,
    [aipt_url_image] NVARCHAR (300) NULL,
    [aipt_is_active] BIT            NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_PRODUCTS_TYPE] PRIMARY KEY CLUSTERED ([aipt_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_INVENTORY_SERVICE_PRODUCTS]...';


GO
CREATE TABLE [dbo].[AFLS_INVENTORY_SERVICE_PRODUCTS] (
    [srsp_quantity] INT NOT NULL,
    [srsp_required] BIT NOT NULL,
    [serv_id]       INT NOT NULL,
    [prod_id]       INT NOT NULL,
    CONSTRAINT [PK_AFLS_INVENTORY_SERVICE_PRODUCTS] PRIMARY KEY CLUSTERED ([serv_id] ASC, [prod_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_JSONSCHEMA_ASMS]...';


GO
CREATE TABLE [dbo].[AFLS_JSONSCHEMA_ASMS] (
    [project_asms_id] INT            NOT NULL,
    [json_schema]     NVARCHAR (MAX) NOT NULL,
    [date_register]   DATETIME       NOT NULL,
    CONSTRAINT [PK_AFLS_JSONSCHEMA_ASMS] PRIMARY KEY CLUSTERED ([project_asms_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_LAST_LOCATION_SPECIALIST]...';


GO
CREATE TABLE [dbo].[AFLS_LAST_LOCATION_SPECIALIST] (
    [Id]        INT              IDENTITY (1, 1) NOT NULL,
    [User_id]   INT              NOT NULL,
    [Latitude]  DECIMAL (24, 14) NOT NULL,
    [Longitude] DECIMAL (24, 14) NOT NULL,
    [Date]      DATETIME         NOT NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_LAYERS]...';


GO
CREATE TABLE [dbo].[AFLS_LAYERS] (
    [layer_id]           INT           IDENTITY (1, 1) NOT NULL,
    [layer_name]         VARCHAR (50)  NOT NULL,
    [layer_creationdate] DATETIME      NOT NULL,
    [layer_modifieddate] DATETIME      NULL,
    [layer_description]  VARCHAR (255) NULL,
    [layer_icon]         VARCHAR (500) NOT NULL,
    [layer_is_active]    BIT           NOT NULL,
    [layer_is_deleted]   BIT           NOT NULL,
    CONSTRAINT [PK_AFLS_LAYERS] PRIMARY KEY CLUSTERED ([layer_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_LAYERS_POINTS]...';


GO
CREATE TABLE [dbo].[AFLS_LAYERS_POINTS] (
    [point_id]          INT              IDENTITY (1, 1) NOT NULL,
    [point_layer_id]    INT              NOT NULL,
    [point_longitude]   DECIMAL (20, 14) NOT NULL,
    [point_latitude]    DECIMAL (20, 14) NOT NULL,
    [point_name]        VARCHAR (100)    NOT NULL,
    [point_description] VARCHAR (255)    NULL,
    [point_is_active]   BIT              NOT NULL,
    CONSTRAINT [PK_AFLS_LAYERS_POINTS] PRIMARY KEY CLUSTERED ([point_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_LAYERS_PROPERTIES]...';


GO
CREATE TABLE [dbo].[AFLS_LAYERS_PROPERTIES] (
    [property_id]          INT           IDENTITY (1, 1) NOT NULL,
    [property_name]        VARCHAR (100) NULL,
    [property_description] VARCHAR (100) NULL,
    [property_latitude]    VARCHAR (100) NULL,
    [property_longitude]   VARCHAR (100) NULL,
    CONSTRAINT [PK_AFLS_LAYERS_PROPERTIES] PRIMARY KEY CLUSTERED ([property_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_LOCATIONS]...';


GO
CREATE TABLE [dbo].[AFLS_LOCATIONS] (
    [loct_id]                 INT              IDENTITY (1, 1) NOT NULL,
    [user_id]                 INT              NOT NULL,
    [loct_lon]                DECIMAL (20, 14) NOT NULL,
    [loct_lat]                DECIMAL (20, 14) NOT NULL,
    [loct_date]               DATETIME         NOT NULL,
    [loct_distance_from_last] DECIMAL (13, 6)  NULL,
    [loct_speed]              DECIMAL (13, 6)  NULL,
    [loct_accuraccy]          DECIMAL (13, 6)  NULL,
    [loct_altitude]           DECIMAL (13, 6)  NULL,
    [loct_provider]           NVARCHAR (20)    NULL,
    [loct_bearing]            DECIMAL (13, 6)  NULL,
    [loct_priority]           INT              NULL,
    [loct_device_id]          NVARCHAR (50)    NULL,
    [loct_metadata]           NVARCHAR (MAX)   NULL,
    [loct_sync_id]            BIGINT           NULL,
    CONSTRAINT [PK_AFLS_LOCATION] PRIMARY KEY CLUSTERED ([loct_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_LOCATIONS].[IX01_AFLS_LOCATIONS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_LOCATIONS]
    ON [dbo].[AFLS_LOCATIONS]([loct_date] ASC, [user_id] ASC)
    INCLUDE([loct_id], [loct_accuraccy], [loct_altitude], [loct_bearing], [loct_device_id], [loct_distance_from_last], [loct_lat], [loct_lon], [loct_priority], [loct_provider], [loct_speed], [loct_sync_id]);


GO
PRINT N'Creating Index [dbo].[AFLS_LOCATIONS].[IX02_AFLS_LOCATIONS]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFLS_LOCATIONS]
    ON [dbo].[AFLS_LOCATIONS]([user_id] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_LOCATIONS_HISTORY]...';


GO
CREATE TABLE [dbo].[AFLS_LOCATIONS_HISTORY] (
    [loct_hist_id]            INT              IDENTITY (1, 1) NOT NULL,
    [loct_id]                 INT              NOT NULL,
    [user_id]                 INT              NOT NULL,
    [loct_lon]                DECIMAL (20, 14) NOT NULL,
    [loct_lat]                DECIMAL (20, 14) NOT NULL,
    [loct_date]               DATETIME         NOT NULL,
    [loct_distance_from_last] DECIMAL (13, 6)  NULL,
    [loct_speed]              DECIMAL (13, 6)  NULL,
    [loct_accuraccy]          DECIMAL (13, 6)  NULL,
    [loct_altitude]           DECIMAL (13, 6)  NULL,
    [loct_provider]           NVARCHAR (40)    NULL,
    [loct_bearing]            DECIMAL (13, 6)  NULL,
    [loct_priority]           INT              NULL,
    [loct_device_id]          NVARCHAR (100)   NULL,
    [loct_metadata]           NVARCHAR (MAX)   NULL,
    [loct_sync_id]            BIGINT           NULL,
    CONSTRAINT [PK_AFLS_LOCATIONS_HISTORY] PRIMARY KEY CLUSTERED ([loct_hist_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_LOG_CRUD_ADDITIONAL_FIELD]...';


GO
CREATE TABLE [dbo].[AFLS_LOG_CRUD_ADDITIONAL_FIELD] (
    [Id]      INT      IDENTITY (1, 1) NOT NULL,
    [Concept] INT      NOT NULL,
    [Date]    DATETIME NOT NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_MAIL_TEMPLATES]...';


GO
CREATE TABLE [dbo].[AFLS_MAIL_TEMPLATES] (
    [mail_id]          INT            NOT NULL,
    [mail_title]       NVARCHAR (100) NOT NULL,
    [mail_description] NVARCHAR (100) NOT NULL,
    [mail_enable]      BIT            NOT NULL,
    [mail_content]     NVARCHAR (MAX) NULL,
    [mail_isdefault]   BIT            NOT NULL,
    [mail_type]        NVARCHAR (8)   NULL,
    PRIMARY KEY CLUSTERED ([mail_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]...';


GO
CREATE TABLE [dbo].[AFLS_MAIL_TEMPLATES_TOKENS] (
    [mail_id] INT NOT NULL,
    [tok_id]  INT NOT NULL,
    CONSTRAINT [PK_AFLS_MAIL_TEMPLATES_TOKENS] PRIMARY KEY CLUSTERED ([mail_id] ASC, [tok_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_MAPS_API_USED_CONSOLIDATED]...';


GO
CREATE TABLE [dbo].[AFLS_MAPS_API_USED_CONSOLIDATED] (
    [cons_id]            INT IDENTITY (1, 1) NOT NULL,
    [cons_module]        INT NOT NULL,
    [cons_functionality] INT NOT NULL,
    [cons_api_type]      INT NOT NULL,
    [cons_year]          INT NOT NULL,
    [cons_month]         INT NOT NULL,
    [cons_day]           INT NOT NULL,
    [cons_total]         INT NOT NULL,
    CONSTRAINT [PK_AFLS_MAPS_API_USED_CONSOLIDATED] PRIMARY KEY CLUSTERED ([cons_id] ASC),
    CONSTRAINT [IX_AFLS_MAPS_API_USED_CONSOLIDATED] UNIQUE NONCLUSTERED ([cons_module] ASC, [cons_functionality] ASC, [cons_api_type] ASC, [cons_year] ASC, [cons_month] ASC, [cons_day] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_MAPS_API_USED_LOG]...';


GO
CREATE TABLE [dbo].[AFLS_MAPS_API_USED_LOG] (
    [mapi_id]               INT            IDENTITY (1, 1) NOT NULL,
    [mapi_module]           INT            NOT NULL,
    [mapi_functionality]    INT            NOT NULL,
    [mapi_api_type]         INT            NOT NULL,
    [mapi_date_consumption] DATETIME       NOT NULL,
    [mapi_value_search]     NVARCHAR (MAX) NULL,
    [mapi_console_type]     INT            NOT NULL,
    [mapi_consolidated]     BIT            NOT NULL,
    [mapi_user_id]          INT            NOT NULL,
    CONSTRAINT [PK_AFLS_MAPS_API_USED_LOG] PRIMARY KEY CLUSTERED ([mapi_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_MEANS_TRANSPORT]...';


GO
CREATE TABLE [dbo].[AFLS_MEANS_TRANSPORT] (
    [tran_id]          INT            NOT NULL,
    [tran_name]        NVARCHAR (50)  NOT NULL,
    [tran_description] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AFLS_MEANS_TRANSPORT] PRIMARY KEY CLUSTERED ([tran_id] ASC),
    CONSTRAINT [UK01_AFLS_MEANS_TRANSPORT] UNIQUE NONCLUSTERED ([tran_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_MOBILE_FILE_PROCESS_DATA]...';


GO
CREATE TABLE [dbo].[AFLS_MOBILE_FILE_PROCESS_DATA] (
    [id]        UNIQUEIDENTIFIER NOT NULL,
    [file_name] NVARCHAR (200)   NOT NULL,
    [state]     VARCHAR (30)     NOT NULL,
    [type]      VARCHAR (30)     NOT NULL,
    CONSTRAINT [PK_AFLS_MOBILE_FILE_PROCESS_DATA] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_MOBILE_SETTINGS]...';


GO
CREATE TABLE [dbo].[AFLS_MOBILE_SETTINGS] (
    [mose_level] INT            NOT NULL,
    [mose_key]   NVARCHAR (100) NOT NULL,
    [mose_value] NVARCHAR (100) NOT NULL,
    CONSTRAINT [PK_AFLS_MOBILE_SETTINGS] PRIMARY KEY CLUSTERED ([mose_level] ASC, [mose_key] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_MODEL_ADDITIONAL_FIELDS]...';


GO
CREATE TABLE [dbo].[AFLS_MODEL_ADDITIONAL_FIELDS] (
    [model_id] INT NOT NULL,
    [addf_id]  INT NOT NULL,
    CONSTRAINT [PK_AFLS_MODEL_ADDITIONALD_FIELD] PRIMARY KEY CLUSTERED ([model_id] ASC, [addf_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_MODELS_EXTENSION]...';


GO
CREATE TABLE [dbo].[AFLS_MODELS_EXTENSION] (
    [modex_id]  INT IDENTITY (1, 1) NOT NULL,
    [model_id]  INT NULL,
    [survey_id] INT NULL,
    CONSTRAINT [PK_AFLS_MODELS_EXTENSION] PRIMARY KEY CLUSTERED ([modex_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_MODULE_FUNCTIONALITY]...';


GO
CREATE TABLE [dbo].[AFLS_MODULE_FUNCTIONALITY] (
    [modu_id]   INT        NOT NULL,
    [modu_name] NCHAR (50) NOT NULL,
    [func_id]   INT        NOT NULL,
    [func_name] NCHAR (60) NOT NULL,
    CONSTRAINT [PK_AFLS_MODULE_FUNCTIONALITY] PRIMARY KEY CLUSTERED ([modu_id] ASC, [func_id] ASC),
    CONSTRAINT [UK_AFLS_MODULE_FUNCTIONALITY] UNIQUE NONCLUSTERED ([modu_id] ASC, [func_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_NOTIFICATION_ALERT]...';


GO
CREATE TABLE [dbo].[AFLS_NOTIFICATION_ALERT] (
    [Id]             INT            IDENTITY (1, 1) NOT NULL,
    [IdAlert]        INT            NULL,
    [IdNotification] INT            NULL,
    [Parameters]     NVARCHAR (500) NULL,
    [FrontName]      NVARCHAR (50)  NOT NULL,
    [FrontId]        INT            NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_NOTIFICATIONS]...';


GO
CREATE TABLE [dbo].[AFLS_NOTIFICATIONS] (
    [noti_id]          INT            IDENTITY (1, 1) NOT NULL,
    [tent_id]          INT            NOT NULL,
    [noti_date]        DATETIME       NOT NULL,
    [noti_iditem]      INT            NOT NULL,
    [noti_tiditem]     NVARCHAR (50)  NOT NULL,
    [noti_tpitem]      NVARCHAR (200) NOT NULL,
    [noti_statusid]    INT            NOT NULL,
    [noti_statusname]  NVARCHAR (200) NOT NULL,
    [noti_fromid]      INT            NOT NULL,
    [noti_fromname]    NVARCHAR (200) NOT NULL,
    [noti_checked]     BIT            NOT NULL,
    [tpnt_id]          INT            NOT NULL,
    [noti_parameters]  NVARCHAR (200) NULL,
    [noti_priority]    INT            NOT NULL,
    [acti_id]          INT            NULL,
    [noti_author_acti] INT            NULL,
    CONSTRAINT [PK_AFLS_NOTIFICATION] PRIMARY KEY CLUSTERED ([noti_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PANIC_BUTTON]...';


GO
CREATE TABLE [dbo].[AFLS_PANIC_BUTTON] (
    [id]            INT              IDENTITY (1, 1) NOT NULL,
    [id_specialist] INT              NOT NULL,
    [lat]           DECIMAL (20, 14) NOT NULL,
    [lng]           DECIMAL (20, 14) NOT NULL,
    [created_date]  DATETIME         NOT NULL,
    [alert_date]    DATETIME         NOT NULL,
    [config]        VARCHAR (250)    NULL,
    CONSTRAINT [PK_AFLS_PANIC_BUTTON] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PRIORITY]...';


GO
CREATE TABLE [dbo].[AFLS_PRIORITY] (
    [id]   INT           NOT NULL,
    [name] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AFLS_PRIORITY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PROJECTS]...';


GO
CREATE TABLE [dbo].[AFLS_PROJECTS] (
    [proj_id]   INT            IDENTITY (1, 1) NOT NULL,
    [proj_name] NVARCHAR (100) NOT NULL,
    [tent_id]   INT            NOT NULL,
    CONSTRAINT [PK_AFLS_PROJECTS] PRIMARY KEY CLUSTERED ([proj_id] ASC),
    CONSTRAINT [UK01_AFLS_PROJECTS] UNIQUE NONCLUSTERED ([tent_id] ASC, [proj_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PROVIDER_ASSING_TURN]...';


GO
CREATE TABLE [dbo].[AFLS_PROVIDER_ASSING_TURN] (
    [Id]         INT      IDENTITY (1, 1) NOT NULL,
    [ProviderId] INT      NOT NULL,
    [ServiceId]  INT      NOT NULL,
    [LastAssing] DATETIME NOT NULL,
    CONSTRAINT [PK_AFLS_PROVIDER_ASSING_TURN] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PROVIDER_GENERAL_SCORE]...';


GO
CREATE TABLE [dbo].[AFLS_PROVIDER_GENERAL_SCORE] (
    [Id]             INT             IDENTITY (1, 1) NOT NULL,
    [ProviderId]     INT             NULL,
    [Qualification]  DECIMAL (18, 2) NOT NULL,
    [Accomplishment] DECIMAL (18, 2) NOT NULL,
    [Reply]          DECIMAL (18, 2) NOT NULL,
    CONSTRAINT [PK_AFLS_PROVIDER_GENERAL_SCORE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PROVIDER_GROUP]...';


GO
CREATE TABLE [dbo].[AFLS_PROVIDER_GROUP] (
    [id]                  INT IDENTITY (1, 1) NOT NULL,
    [group_id]            INT NOT NULL,
    [provider_id]         INT NULL,
    [created_by_provider] BIT NULL,
    CONSTRAINT [PK_AFLS_PROVIDER_GROUP] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PROVIDER_MONITOR_GROUPS]...';


GO
CREATE TABLE [dbo].[AFLS_PROVIDER_MONITOR_GROUPS] (
    [Id]         INT IDENTITY (1, 1) NOT NULL,
    [ProviderId] INT NOT NULL,
    [GroupId]    INT NULL,
    CONSTRAINT [PK_AFLS_PROVIDER_MONITOR_GROUPS] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PROVIDER_MONITORS]...';


GO
CREATE TABLE [dbo].[AFLS_PROVIDER_MONITORS] (
    [Id]         INT IDENTITY (1, 1) NOT NULL,
    [ProviderId] INT NOT NULL,
    [UserId]     INT NULL,
    CONSTRAINT [PK_AFLS_PROVIDER_MONITORS] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PROVIDER_SCORE]...';


GO
CREATE TABLE [dbo].[AFLS_PROVIDER_SCORE] (
    [Id]             INT             IDENTITY (1, 1) NOT NULL,
    [ProviderId]     INT             NULL,
    [Qualification]  DECIMAL (18, 2) NOT NULL,
    [Accomplishment] DECIMAL (18, 2) NOT NULL,
    [Reply]          DECIMAL (18, 2) NOT NULL,
    [DateScore]      DATETIME        NOT NULL,
    CONSTRAINT [PK_AFLS_PROVIDER_SCORE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_PROVIDER_SCORE].[IX01_AFLS_PROVIDER_SCORE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_PROVIDER_SCORE]
    ON [dbo].[AFLS_PROVIDER_SCORE]([ProviderId] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_PROVIDER_SERVICES]...';


GO
CREATE TABLE [dbo].[AFLS_PROVIDER_SERVICES] (
    [Id]         INT IDENTITY (1, 1) NOT NULL,
    [ProviderId] INT NULL,
    [ServiceId]  INT NULL,
    [SlaId]      INT NULL,
    CONSTRAINT [PK_AFLS_PROVIDER_SERVICES] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PROVIDER_SPECIALIST]...';


GO
CREATE TABLE [dbo].[AFLS_PROVIDER_SPECIALIST] (
    [ProviderId]   INT NOT NULL,
    [SpecialistId] INT NOT NULL,
    CONSTRAINT [PK_AFLS_PROVIDER_SPECIALIST] PRIMARY KEY CLUSTERED ([ProviderId] ASC, [SpecialistId] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PROVIDER_ZONE]...';


GO
CREATE TABLE [dbo].[AFLS_PROVIDER_ZONE] (
    [Id]         INT IDENTITY (1, 1) NOT NULL,
    [ProviderId] INT NULL,
    [ZoneId]     INT NULL,
    CONSTRAINT [PK_AFLS_PROVIDER_ZONE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_PROVIDERS]...';


GO
CREATE TABLE [dbo].[AFLS_PROVIDERS] (
    [ProviderId]     INT            IDENTITY (1, 1) NOT NULL,
    [Name]           NVARCHAR (50)  NOT NULL,
    [Description]    NVARCHAR (250) NOT NULL,
    [Type]           BIT            NOT NULL,
    [Priority]       INT            NOT NULL,
    [AssingType]     BIT            NULL,
    [ServiceDefault] BIT            NOT NULL,
    [IsActive]       BIT            NOT NULL,
    [IsDeleted]      BIT            NOT NULL,
    [creation_date]  DATETIME       NULL,
    CONSTRAINT [PK_AFLS_PROVIDERS] PRIMARY KEY CLUSTERED ([ProviderId] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_QUICK_ANSWERS]...';


GO
CREATE TABLE [dbo].[AFLS_QUICK_ANSWERS] (
    [qui_id]             INT            IDENTITY (1, 1) NOT NULL,
    [qui_name]           NVARCHAR (20)  NOT NULL,
    [object_id]          INT            NULL,
    [qui_answer_type_id] INT            NOT NULL,
    [qui_response]       NVARCHAR (MAX) NOT NULL,
    [qui_enable]         BIT            NOT NULL,
    [qui_count]          INT            NOT NULL,
    [qui_creation_date]  DATETIME       NULL,
    CONSTRAINT [PK_AFLS_QUICK_ANSWERS] PRIMARY KEY CLUSTERED ([qui_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_QUICK_ANSWERS_TOKEN]...';


GO
CREATE TABLE [dbo].[AFLS_QUICK_ANSWERS_TOKEN] (
    [tok_id]              INT            IDENTITY (1, 1) NOT NULL,
    [tok_placeholders]    NVARCHAR (200) NOT NULL,
    [tok_definition]      NVARCHAR (200) NOT NULL,
    [is_additional]       BIT            NULL,
    [id_additional_field] INT            NULL,
    CONSTRAINT [PK_AFLS_QUICK_ANSWERS_TOKEN] PRIMARY KEY CLUSTERED ([tok_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_QUICK_ANSWERS_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_QUICK_ANSWERS_TYPE] (
    [qui_type_id]  INT            IDENTITY (1, 1) NOT NULL,
    [qui_type_key] NVARCHAR (100) NOT NULL,
    CONSTRAINT [PK_AFLS_QUICK_ANSWERS_TYPE] PRIMARY KEY CLUSTERED ([qui_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_RELATION_ITEMS]...';


GO
CREATE TABLE [dbo].[AFLS_RELATION_ITEMS] (
    [ari_id]                INT           IDENTITY (1, 1) NOT NULL,
    [ari_source]            INT           NOT NULL,
    [ari_target]            INT           NOT NULL,
    [ari_created_date]      DATETIME      NOT NULL,
    [ari_created_by]        INT           NOT NULL,
    [ar_id]                 INT           NOT NULL,
    [ari_info]              VARCHAR (MAX) NOT NULL,
    [ari_source_reference]  NVARCHAR (50) NOT NULL,
    [ari_target_reference]  NVARCHAR (50) NOT NULL,
    [ari_source_concept_id] NVARCHAR (50) NOT NULL,
    [ari_target_concept_id] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AFLS_RELATION_ITEMS] PRIMARY KEY CLUSTERED ([ari_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_RELATION_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_RELATION_TYPE] (
    [art_id]           INT            IDENTITY (1, 1) NOT NULL,
    [art_name]         NVARCHAR (64)  NOT NULL,
    [art_description]  NVARCHAR (128) NULL,
    [art_is_dependent] BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_RELATION_TYPE] PRIMARY KEY CLUSTERED ([art_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_RELATIONS]...';


GO
CREATE TABLE [dbo].[AFLS_RELATIONS] (
    [rela_id]          INT           IDENTITY (1, 1) NOT NULL,
    [rela_object_type] NVARCHAR (50) NOT NULL,
    [rela_attribute]   NVARCHAR (50) NOT NULL,
    [revi_id]          INT           NOT NULL,
    [rela_operation]   NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AFLS_RELATIONS] PRIMARY KEY CLUSTERED ([rela_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_RELATIONS].[IX01_AFLS_RELATIONS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_RELATIONS]
    ON [dbo].[AFLS_RELATIONS]([revi_id] ASC)
    INCLUDE([rela_object_type], [rela_attribute], [rela_operation]);


GO
PRINT N'Creating Table [dbo].[AFLS_RELATIONSHIP]...';


GO
CREATE TABLE [dbo].[AFLS_RELATIONSHIP] (
    [ar_id]            INT           IDENTITY (1, 1) NOT NULL,
    [ar_name]          NVARCHAR (64) NOT NULL,
    [ar_is_active]     BIT           NOT NULL,
    [ar_source_name]   NVARCHAR (64) NOT NULL,
    [ar_target_name]   NVARCHAR (64) NOT NULL,
    [art_id]           INT           NOT NULL,
    [ar_source_origin] INT           NOT NULL,
    [ar_target_origin] INT           NOT NULL,
    [ar_created_date]  DATETIME      NOT NULL,
    CONSTRAINT [PK_AFLS_RELATIONSHIP] PRIMARY KEY CLUSTERED ([ar_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_REPORT_CAPACITY]...';


GO
CREATE TABLE [dbo].[AFLS_REPORT_CAPACITY] (
    [cap_id]    INT             IDENTITY (1, 1) NOT NULL,
    [user_id]   INT             NOT NULL,
    [cap_day]   INT             NOT NULL,
    [cap_hours] DECIMAL (18, 3) NULL,
    CONSTRAINT [PK_AFLS_REPORT_CAPACITY] PRIMARY KEY CLUSTERED ([cap_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_REPORT_ORDER_COST]...';


GO
CREATE TABLE [dbo].[AFLS_REPORT_ORDER_COST] (
    [FECHA]              DATETIME        NULL,
    [SERVICIO]           INT             NULL,
    [COMPANIA]           INT             NULL,
    [ESPECIALISTA]       INT             NULL,
    [COSTO_BASE_SERV]    DECIMAL (20, 2) NULL,
    [COSTO_INVENTARIO]   DECIMAL (20, 2) NULL,
    [COSTO_TRANSPORTE]   DECIMAL (20, 2) NULL,
    [COSTO_ESPECIALISTA] DECIMAL (20, 2) NULL,
    [COSTO_PROM_SERV]    DECIMAL (20, 2) NULL,
    [COSTO_PROM_INV]     DECIMAL (20, 2) NULL,
    [COSTO_PROM_TRANS]   DECIMAL (20, 2) NULL,
    [COSTO_PROM_ESP]     DECIMAL (20, 2) NULL,
    [COSTO_TOTAL]        DECIMAL (20, 2) NULL,
    [NUMERO_ORDENES]     INT             NULL
);


GO
PRINT N'Creating Table [dbo].[AFLS_REPORT_ORDERS]...';


GO
CREATE TABLE [dbo].[AFLS_REPORT_ORDERS] (
    [ESTADO]             INT      NULL,
    [TIPO_FECHA]         INT      NULL,
    [FECHA]              DATETIME NULL,
    [SERVICIO]           INT      NULL,
    [ESPECIALISTA]       INT      NULL,
    [CUMPLE_SLA]         INT      NULL,
    [NUMERO_ORDENES]     INT      NULL,
    [TIEMPO_PROMEDIO]    INT      NULL,
    [EJECUCION_PROMEDIO] INT      NULL
);


GO
PRINT N'Creating Table [dbo].[AFLS_REVIEWS]...';


GO
CREATE TABLE [dbo].[AFLS_REVIEWS] (
    [revi_id]          INT            IDENTITY (1, 1) NOT NULL,
    [revi_author]      NVARCHAR (150) NOT NULL,
    [revi_version]     INT            NOT NULL,
    [revi_comment]     NTEXT          NULL,
    [revi_entity_id]   INT            NOT NULL,
    [revi_entity_type] NVARCHAR (15)  NOT NULL,
    [tent_id]          INT            NOT NULL,
    [revi_date]        DATETIME       NOT NULL,
    [revi_sync]        BIT            NOT NULL,
    [revi_sync_id]     BIGINT         NULL,
    [revi_is_public]   BIT            NOT NULL,
    [revi_is_client]   BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_REVIEWS] PRIMARY KEY CLUSTERED ([revi_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_REVIEWS].[IX01_AFLS_REVIEWS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_REVIEWS]
    ON [dbo].[AFLS_REVIEWS]([revi_entity_id] ASC, [revi_entity_type] ASC, [revi_sync] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_SERVICE_TASKS]...';


GO
CREATE TABLE [dbo].[AFLS_SERVICE_TASKS] (
    [stask_id]          INT            IDENTITY (1, 1) NOT NULL,
    [stask_description] NVARCHAR (150) NOT NULL,
    [stask_service_id]  INT            NOT NULL,
    [stask_order]       INT            NOT NULL,
    CONSTRAINT [PK_AFLS_SERVICE_TASKS] PRIMARY KEY CLUSTERED ([stask_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_SERVICES]...';


GO
CREATE TABLE [dbo].[AFLS_SERVICES] (
    [serv_id]                          INT             IDENTITY (1, 1) NOT NULL,
    [proj_id]                          INT             NULL,
    [serv_name]                        NVARCHAR (100)  NOT NULL,
    [serv_execution_time]              INT             NOT NULL,
    [sla_id]                           INT             NOT NULL,
    [serv_type]                        INT             NOT NULL,
    [serv_provider_assignment_type]    INT             NOT NULL,
    [serv_active]                      BIT             NOT NULL,
    [serv_base_cost]                   DECIMAL (20, 2) NOT NULL,
    [serv_description]                 NVARCHAR (MAX)  NOT NULL,
    [serv_subject_default]             NVARCHAR (100)  NULL,
    [serv_is_priority_or_emregency]    BIT             NOT NULL,
    [serv_model_id]                    INT             NULL,
    [serv_calendar_id]                 INT             NOT NULL,
    [serv_time_planning]               INT             NOT NULL,
    [serv_default]                     BIT             NOT NULL,
    [ola_id]                           INT             NULL,
    [uc_id]                            INT             NULL,
    [serv_is_provide_all_ci]           BIT             NOT NULL,
    [serv_create_enable_by_specialist] BIT             NOT NULL,
    CONSTRAINT [PK_AFLS_SERVICES] PRIMARY KEY CLUSTERED ([serv_id] ASC),
    CONSTRAINT [UK01_AFLS_SERVICES] UNIQUE NONCLUSTERED ([serv_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_SERVICES_SKILLS]...';


GO
CREATE TABLE [dbo].[AFLS_SERVICES_SKILLS] (
    [service_id] INT NOT NULL,
    [skill_id]   INT NOT NULL,
    [weight]     INT NOT NULL,
    [required]   BIT NOT NULL,
    CONSTRAINT [PK_AFLS_SERVICES_SKILLS] PRIMARY KEY CLUSTERED ([service_id] ASC, [skill_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_SETTINGS]...';


GO
CREATE TABLE [dbo].[AFLS_SETTINGS] (
    [sett_id]          INT           IDENTITY (1, 1) NOT NULL,
    [sett_key]         NVARCHAR (55) NOT NULL,
    [sett_datatype]    VARCHAR (100) NOT NULL,
    [sett_options]     VARCHAR (MAX) NULL,
    [sett_length]      INT           NULL,
    [sett_label]       VARCHAR (100) NOT NULL,
    [sett_placeholder] VARCHAR (100) NULL,
    [sett_group]       VARCHAR (100) NOT NULL,
    [sett_is_active]   BIT           NOT NULL,
    [sett_order]       INT           NULL,
    [is_common]        BIT           NOT NULL,
    CONSTRAINT [PK_AFLS_SETTINGS] PRIMARY KEY CLUSTERED ([sett_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_SETTINGS_LOG]...';


GO
CREATE TABLE [dbo].[AFLS_SETTINGS_LOG] (
    [sett_log_id]           INT            IDENTITY (1, 1) NOT NULL,
    [sett_log_key]          NVARCHAR (55)  NOT NULL,
    [sett_log_value_before] NVARCHAR (MAX) NOT NULL,
    [sett_log_value_after]  NVARCHAR (MAX) NOT NULL,
    [sett_log_date]         DATETIME       NOT NULL,
    [sett_log_created]      INT            NOT NULL,
    CONSTRAINT [PK_AFLS_SETTINGS_LOG] PRIMARY KEY CLUSTERED ([sett_log_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_SIGNATURES]...';


GO
CREATE TABLE [dbo].[AFLS_SIGNATURES] (
    [sign_id]               INT            IDENTITY (1, 1) NOT NULL,
    [obj_id]                INT            NOT NULL,
    [obj_type]              NVARCHAR (100) NOT NULL,
    [sign_description]      NVARCHAR (MAX) NULL,
    [sign_file_path]        NVARCHAR (MAX) NULL,
    [sign_real_file_name]   NVARCHAR (MAX) NULL,
    [sign_server_file_name] NVARCHAR (MAX) NULL,
    [sign_file_extension]   NVARCHAR (MAX) NULL,
    [sign_file_size]        NVARCHAR (MAX) NULL,
    [sign_creation_date]    DATETIME       NOT NULL,
    CONSTRAINT [PK_AFLS_SIGNATURES] PRIMARY KEY CLUSTERED ([sign_id] ASC),
    CONSTRAINT [UQ_AFLS_SIGNATURES_OBJECT] UNIQUE NONCLUSTERED ([obj_id] ASC, [obj_type] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_SIGNATURES].[IX_AFLS_SIGNATURES_OBJECT]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFLS_SIGNATURES_OBJECT]
    ON [dbo].[AFLS_SIGNATURES]([obj_id] ASC, [obj_type] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_SKILLS]...';


GO
CREATE TABLE [dbo].[AFLS_SKILLS] (
    [skll_id]          INT            IDENTITY (1, 1) NOT NULL,
    [skll_name]        NVARCHAR (100) NOT NULL,
    [skll_description] NVARCHAR (255) NULL,
    [skll_isActive]    BIT            NULL,
    [creation_date]    DATETIME       NULL,
    CONSTRAINT [PK_AFLS_SKILLS] PRIMARY KEY CLUSTERED ([skll_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_SLA]...';


GO
CREATE TABLE [dbo].[AFLS_SLA] (
    [sla_id]           INT             IDENTITY (1, 1) NOT NULL,
    [name]             NVARCHAR (255)  NOT NULL,
    [description]      NVARCHAR (MAX)  NULL,
    [date_start]       DATETIME        NULL,
    [date_finish]      DATETIME        NULL,
    [penality]         DECIMAL (20, 2) NULL,
    [sla_date_review]  DATETIME        NULL,
    [finish_has_alarm] BIT             NULL,
    [finish_limitdays] INT             NULL,
    [review_has_alarm] BIT             NULL,
    [review_limitdays] INT             NULL,
    [sla_costse]       DECIMAL (20, 2) NULL,
    [proj_id]          INT             NULL,
    [is_deleted]       BIT             NULL,
    [agreement_type]   INT             NULL,
    CONSTRAINT [PK_AFLS_SLA] PRIMARY KEY CLUSTERED ([sla_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_SLA_ATTACHMENTS]...';


GO
CREATE TABLE [dbo].[AFLS_SLA_ATTACHMENTS] (
    [attc_id]               INT            IDENTITY (1, 1) NOT NULL,
    [sla_id]                INT            NOT NULL,
    [attc_description]      NVARCHAR (MAX) NULL,
    [attc_file_path]        NVARCHAR (MAX) NULL,
    [attc_real_file_name]   NVARCHAR (MAX) NULL,
    [attc_server_file_name] NVARCHAR (MAX) NULL,
    [attc_file_extension]   NVARCHAR (MAX) NULL,
    [attc_file_size]        NVARCHAR (MAX) NULL,
    [attc_creation_date]    DATETIME       NOT NULL,
    PRIMARY KEY CLUSTERED ([attc_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_SLA_TIMES]...';


GO
CREATE TABLE [dbo].[AFLS_SLA_TIMES] (
    [id]               INT             IDENTITY (1, 1) NOT NULL,
    [target]           DECIMAL (18, 2) NOT NULL,
    [compilance]       DECIMAL (18, 2) NOT NULL,
    [chronometer_Id]   INT             NOT NULL,
    [sla_Id]           INT             NOT NULL,
    [priority]         INT             NULL,
    [model_Id]         INT             NULL,
    [is_deleted]       BIT             NULL,
    [create_date]      DATETIME        NULL,
    [delete_date]      DATETIME        NULL,
    [default_sla_time] BIT             NOT NULL,
    [group_id]         INT             NULL,
    CONSTRAINT [PK_AFLS_SLA_TIMES] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_SPECIALIST_AVAILABILITY_CONSOLIDATED]...';


GO
CREATE TABLE [dbo].[AFLS_SPECIALIST_AVAILABILITY_CONSOLIDATED] (
    [spavco_id]         INT      IDENTITY (1, 1) NOT NULL,
    [specialist_id]     INT      NOT NULL,
    [spavco_number]     INT      NOT NULL,
    [spavco_day]        INT      NOT NULL,
    [spavco_begin_date] DATETIME NOT NULL,
    [spavco_end_date]   DATETIME NOT NULL,
    PRIMARY KEY CLUSTERED ([spavco_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_STATEMACHINE_STATE_EXTENSION]...';


GO
CREATE TABLE [dbo].[AFLS_STATEMACHINE_STATE_EXTENSION] (
    [st_ex_id]                   INT IDENTITY (1, 1) NOT NULL,
    [st_ex_id_state]             INT NOT NULL,
    [st_ex_monitor_available]    BIT NOT NULL,
    [st_ex_dispatcher_available] BIT NOT NULL,
    [st_ex_specialist_available] BIT NOT NULL,
    [st_ex_cost_specialist]      BIT NOT NULL,
    [st_ex_cost_displacement]    BIT NOT NULL,
    [st_ex_is_deleted]           BIT NOT NULL,
    CONSTRAINT [PK_AFLS_STATEMACHINE_STATE_EXTENSION] PRIMARY KEY CLUSTERED ([st_ex_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_STATES]...';


GO
CREATE TABLE [dbo].[AFLS_STATES] (
    [stat_id]            INT            IDENTITY (1, 1) NOT NULL,
    [stat_name]          NVARCHAR (50)  NOT NULL,
    [stat_icon]          NVARCHAR (255) NULL,
    [stat_color]         NVARCHAR (10)  NULL,
    [stat_list_style]    NVARCHAR (255) NULL,
    [stat_summary_style] NVARCHAR (255) NULL,
    CONSTRAINT [PK_AFLS_STATES] PRIMARY KEY CLUSTERED ([stat_id] ASC),
    CONSTRAINT [UQ_AFLS_STATES_NAME] UNIQUE NONCLUSTERED ([stat_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_TENANTS]...';


GO
CREATE TABLE [dbo].[AFLS_TENANTS] (
    [tent_id]        INT            IDENTITY (1, 1) NOT NULL,
    [tent_name]      NVARCHAR (100) NOT NULL,
    [tent_shortname] NVARCHAR (30)  NOT NULL,
    [tent_active]    BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_TENANTS] PRIMARY KEY CLUSTERED ([tent_id] ASC),
    CONSTRAINT [UQ_AFLS_TENANTS_SHORTNAME] UNIQUE NONCLUSTERED ([tent_shortname] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_TENANTS].[AFLS_Tenant_ShortName]...';


GO
CREATE NONCLUSTERED INDEX [AFLS_Tenant_ShortName]
    ON [dbo].[AFLS_TENANTS]([tent_shortname] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_THIRD_PARTY_COMPONENTS]...';


GO
CREATE TABLE [dbo].[AFLS_THIRD_PARTY_COMPONENTS] (
    [tpco_id]                      INT            IDENTITY (1, 1) NOT NULL,
    [tpco_name]                    NVARCHAR (100) NOT NULL,
    [tpco_class_name]              NVARCHAR (200) NOT NULL,
    [tpco_asembly_path]            NVARCHAR (200) NOT NULL,
    [tpco_active]                  BIT            NOT NULL,
    [tpco_description]             NVARCHAR (MAX) NULL,
    [tpco_type]                    NVARCHAR (20)  NOT NULL,
    [tpco_host_data_name]          NVARCHAR (256) NULL,
    [tpco_data_base_name]          NVARCHAR (128) NULL,
    [tpco_user_data_base]          NVARCHAR (256) NULL,
    [tpco_password_data_base]      NVARCHAR (256) NULL,
    [tpco_company_source_name]     NVARCHAR (128) NULL,
    [tpco_clients_source_name]     NVARCHAR (128) NULL,
    [tpco_dispatchers_source_name] NVARCHAR (128) NULL,
    [tpco_last_date_sync]          DATETIME       NULL,
    [tpco_project_id]              INT            NULL,
    [tpco_asdk_source_type]        INT            NULL,
    [tpco_auth_token]              NVARCHAR (800) NULL,
    CONSTRAINT [PK_AFLS_THIRD_PARTY_COMPONENTS] PRIMARY KEY CLUSTERED ([tpco_id] ASC),
    CONSTRAINT [UK01_AFLS_THIRD_PARTY_COMPONENTS] UNIQUE NONCLUSTERED ([tpco_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_THIRD_PARTY_INTEGRATIONS]...';


GO
CREATE TABLE [dbo].[AFLS_THIRD_PARTY_INTEGRATIONS] (
    [atpi_id]                   INT            IDENTITY (1, 1) NOT NULL,
    [atpi_product_id]           VARCHAR (50)   NOT NULL,
    [atpi_item_id]              VARCHAR (50)   NOT NULL,
    [atpi_external_id]          VARCHAR (50)   NOT NULL,
    [atpi_is_executed]          BIT            NULL,
    [atpi_is_notificated]       BIT            NULL,
    [atpi_final_substate]       INT            NULL,
    [atpi_error_message]        NVARCHAR (MAX) NULL,
    [atpi_date_notificated]     DATETIME       NULL,
    [atpi_attempts_notificated] INT            NOT NULL,
    [atpi_project_id]           INT            NULL,
    CONSTRAINT [PK_AFLS_THIRD_PARTY_INTEGRATIONS] PRIMARY KEY CLUSTERED ([atpi_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_THIRD_PARTY_NOTIFICATION_LOGS]...';


GO
CREATE TABLE [dbo].[AFLS_THIRD_PARTY_NOTIFICATION_LOGS] (
    [log_id]             INT      IDENTITY (1, 1) NOT NULL,
    [atpi_id]            INT      NOT NULL,
    [log_date]           DATETIME NOT NULL,
    [sub_state_id]       INT      NOT NULL,
    [error_id]           SMALLINT NOT NULL,
    [log_error_attempts] INT      NOT NULL,
    [last_error]         BIT      NOT NULL,
    CONSTRAINT [PK_AFLS_THIRD_PARTY_NOTIFICATION_LOGS] PRIMARY KEY CLUSTERED ([log_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_THIRD_PARTY_TRACE_LOGS]...';


GO
CREATE TABLE [dbo].[AFLS_THIRD_PARTY_TRACE_LOGS] (
    [tptl_id]                   INT            IDENTITY (1, 1) NOT NULL,
    [tptl_file_trace_name]      NVARCHAR (MAX) NULL,
    [tptl_error_quantity]       INT            NULL,
    [tptl_successfull_quantity] INT            NULL,
    [tptl_updated_quantity]     INT            NULL,
    [tptl_sync_date]            DATETIME       NULL,
    [type_user]                 TINYINT        NULL,
    [component]                 NVARCHAR (100) NULL,
    CONSTRAINT [PK_AFLS_THIRD_PARTY_TRACE_LOGS] PRIMARY KEY CLUSTERED ([tptl_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_TICKET_ID_SEQUENCES]...';


GO
CREATE TABLE [dbo].[AFLS_TICKET_ID_SEQUENCES] (
    [tent_id]       INT NOT NULL,
    [tick_sequence] INT NOT NULL,
    CONSTRAINT [PK_AFLS_TICKET_ID_SEQUENCE] PRIMARY KEY CLUSTERED ([tent_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_TYPE_AGREEMENT]...';


GO
CREATE TABLE [dbo].[AFLS_TYPE_AGREEMENT] (
    [id]   INT           IDENTITY (1, 1) NOT NULL,
    [name] NVARCHAR (50) NOT NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_TYPE_NOTIFICATIONS]...';


GO
CREATE TABLE [dbo].[AFLS_TYPE_NOTIFICATIONS] (
    [tpnt_id]   INT            IDENTITY (1, 1) NOT NULL,
    [tpnt_name] NVARCHAR (100) NOT NULL,
    CONSTRAINT [PK_AFLS_TYPE_NOTIFICATIONS] PRIMARY KEY CLUSTERED ([tpnt_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_TYPENOTIFICATIONS_ACTIONS]...';


GO
CREATE TABLE [dbo].[AFLS_TYPENOTIFICATIONS_ACTIONS] (
    [tpnt_id] INT NOT NULL,
    [acti_id] INT NOT NULL,
    CONSTRAINT [AFLS_TYPENOTIFICATIONS_ACTIONS_KEY] PRIMARY KEY CLUSTERED ([tpnt_id] ASC, [acti_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_USER_AVAILABILITIES]...';


GO
CREATE TABLE [dbo].[AFLS_USER_AVAILABILITIES] (
    [user_id] INT NOT NULL,
    [avai_id] INT NOT NULL,
    CONSTRAINT [PK_AFLS_USER_AVAILABILITIES] PRIMARY KEY CLUSTERED ([user_id] ASC, [avai_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_USER_SKILLS]...';


GO
CREATE TABLE [dbo].[AFLS_USER_SKILLS] (
    [aus_user_id]  INT          NOT NULL,
    [aus_skll_id]  INT          NOT NULL,
    [aus_score]    DECIMAL (18) NOT NULL,
    [aus_required] BIT          NOT NULL,
    CONSTRAINT [PK_AFLS_USER_SKILLS] PRIMARY KEY CLUSTERED ([aus_user_id] ASC, [aus_skll_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_USERS_CHANNEL]...';


GO
CREATE TABLE [dbo].[AFLS_USERS_CHANNEL] (
    [Id]        INT IDENTITY (1, 1) NOT NULL,
    [IdUser]    INT NOT NULL,
    [IdChannel] INT NOT NULL,
    [IsActive]  BIT NOT NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_USERS_CLIENTS]...';


GO
CREATE TABLE [dbo].[AFLS_USERS_CLIENTS] (
    [user_id]                INT              NOT NULL,
    [comp_id]                INT              NULL,
    [clie_address]           NVARCHAR (500)   NULL,
    [clie_addl_address_info] NVARCHAR (500)   NOT NULL,
    [clie_longitude]         DECIMAL (20, 14) NULL,
    [clie_latitude]          DECIMAL (20, 14) NULL,
    [clie_is_imported]       BIT              NOT NULL,
    [clie_imported_from]     NVARCHAR (100)   NULL,
    [clie_unique_reference]  NVARCHAR (255)   NOT NULL,
    CONSTRAINT [PK_AFLS_USERS_CLIENTS] PRIMARY KEY CLUSTERED ([user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_USERS_PROJECTS]...';


GO
CREATE TABLE [dbo].[AFLS_USERS_PROJECTS] (
    [user_id]    INT NOT NULL,
    [project_id] INT NOT NULL,
    CONSTRAINT [PK_AFLS_USERS_PROJECTS] PRIMARY KEY CLUSTERED ([user_id] ASC, [project_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_USERS_SPECIALISTS]...';


GO
CREATE TABLE [dbo].[AFLS_USERS_SPECIALISTS] (
    [user_id]                   INT              NOT NULL,
    [vehi_id]                   INT              NOT NULL,
    [posi_id]                   INT              NOT NULL,
    [spc_last_availability_mod] DATETIME         NULL,
    [spc_last_service_request]  DATETIME         NULL,
    [spc_initial_latitude]      DECIMAL (24, 14) NULL,
    [spc_initial_longitude]     DECIMAL (24, 14) NULL,
    [spc_initial_address]       NVARCHAR (200)   NULL,
    [spc_push_id]               NVARCHAR (500)   NULL,
    [spc_platform]              NVARCHAR (50)    NULL,
    [grou_id]                   INT              NULL,
    [spc_provider_id]           INT              NULL,
    [send_app_hybrid]           BIT              NULL,
    CONSTRAINT [PK_AFLS_USERS_SPECIALISTS] PRIMARY KEY CLUSTERED ([user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_USERS_WEB]...';


GO
CREATE TABLE [dbo].[AFLS_USERS_WEB] (
    [user_id]             INT            NOT NULL,
    [web_is_imported]     BIT            NOT NULL,
    [web_imported_from]   NVARCHAR (100) NULL,
    [web_massive_actions] BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_USERS_WEB] PRIMARY KEY CLUSTERED ([user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_VEHICLE_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_VEHICLE_TYPE] (
    [vehi_id]                INT             IDENTITY (1, 1) NOT NULL,
    [vehi_name]              NVARCHAR (200)  NOT NULL,
    [vehi_description]       NVARCHAR (200)  NOT NULL,
    [vehi_initial_cost]      DECIMAL (18, 2) NOT NULL,
    [vehi_cost_by_kilometer] DECIMAL (18, 2) NOT NULL,
    [vehi_active]            BIT             NOT NULL,
    [tran_id]                INT             NOT NULL,
    [vehi_tansit_modes]      NVARCHAR (200)  NULL,
    [creation_date]          DATETIME        NULL,
    PRIMARY KEY CLUSTERED ([vehi_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_VERSION]...';


GO
CREATE TABLE [dbo].[AFLS_VERSION] (
    [Key_version]   NVARCHAR (50) NOT NULL,
    [Value_version] NVARCHAR (50) NOT NULL
);


GO
PRINT N'Creating Table [dbo].[AFLS_VERSIONS]...';


GO
CREATE TABLE [dbo].[AFLS_VERSIONS] (
    [vers_comp] NVARCHAR (20) NOT NULL,
    [version]   NVARCHAR (15) NOT NULL,
    CONSTRAINT [PK_AFLS_VERSIONS] PRIMARY KEY CLUSTERED ([vers_comp] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WEBHOOKS_CONFIGURATION]...';


GO
CREATE TABLE [dbo].[AFLS_WEBHOOKS_CONFIGURATION] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [type_id]       INT           NOT NULL,
    [entity_id]     INT           NOT NULL,
    [configuration] VARCHAR (MAX) NOT NULL,
    [date_created]  DATETIME      NOT NULL,
    [is_active]     BIT           NOT NULL,
    CONSTRAINT [PK_AFLS_WEBHOOKS_CONFIGURATION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WEBHOOKS_TAGS]...';


GO
CREATE TABLE [dbo].[AFLS_WEBHOOKS_TAGS] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [type_id]       INT           NOT NULL,
    [label]         VARCHAR (250) NOT NULL,
    [value]         VARCHAR (250) NOT NULL,
    [is_additional] BIT           NOT NULL,
    [additional_id] INT           NULL,
    CONSTRAINT [PK_AFLS_WEBHOOKS_TAGS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WEBHOOKS_TYPE]...';


GO
CREATE TABLE [dbo].[AFLS_WEBHOOKS_TYPE] (
    [id]          INT           NOT NULL,
    [name]        VARCHAR (100) NOT NULL,
    [description] VARCHAR (255) NULL,
    CONSTRAINT [PK_AFLS_WEBHOOKS_TYPE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORK_POSITIONS]...';


GO
CREATE TABLE [dbo].[AFLS_WORK_POSITIONS] (
    [posi_id]       INT             IDENTITY (1, 1) NOT NULL,
    [tent_id]       INT             NOT NULL,
    [posi_name]     NVARCHAR (50)   NOT NULL,
    [posi_cost]     DECIMAL (22, 2) NOT NULL,
    [posi_active]   BIT             NOT NULL,
    [creation_date] DATETIME        NULL,
    [posi_tasks]    NVARCHAR (250)  NULL,
    CONSTRAINT [PK_AFLS_WORK_POSITIONS] PRIMARY KEY CLUSTERED ([posi_id] ASC),
    CONSTRAINT [UK01_AFLS_WORK_POSITIONS] UNIQUE NONCLUSTERED ([posi_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKDAYS]...';


GO
CREATE TABLE [dbo].[AFLS_WORKDAYS] (
    [workday_id]              INT            IDENTITY (1, 1) NOT NULL,
    [workday_name]            NVARCHAR (255) NOT NULL,
    [workday_start_hour]      INT            NOT NULL,
    [workday_end_hour]        INT            NOT NULL,
    [workday_icon_class]      NVARCHAR (255) NULL,
    [workday_acronym]         NVARCHAR (10)  NULL,
    [workday_active]          BIT            NOT NULL,
    [workday_date_start_hour] DATETIME       NULL,
    [workday_date_end_hour]   DATETIME       NULL,
    [workday_date_ref_hour]   DATETIME       NULL,
    CONSTRAINT [PK_AFLS_WORKDAYS] PRIMARY KEY CLUSTERED ([workday_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKFLOW_CHRONOMETERS]...';


GO
CREATE TABLE [dbo].[AFLS_WORKFLOW_CHRONOMETERS] (
    [wfc_id] INT IDENTITY (1, 1) NOT NULL,
    [wf_id]  INT NOT NULL,
    [cr_id]  INT NOT NULL,
    PRIMARY KEY CLUSTERED ([wfc_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKFLOWS]...';


GO
CREATE TABLE [dbo].[AFLS_WORKFLOWS] (
    [wf_id]          INT            IDENTITY (1, 1) NOT NULL,
    [wfcom_id]       INT            NOT NULL,
    [wf_enabled]     BIT            NOT NULL,
    [wf_deleted]     BIT            NOT NULL,
    [wf_name]        NVARCHAR (100) NOT NULL,
    [wf_description] NVARCHAR (200) NULL,
    [wf_id_model]    INT            NULL,
    PRIMARY KEY CLUSTERED ([wf_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKORDER_ASSIGN_LOGS]...';


GO
CREATE TABLE [dbo].[AFLS_WORKORDER_ASSIGN_LOGS] (
    [log_id]             INT      IDENTITY (1, 1) NOT NULL,
    [work_id]            INT      NOT NULL,
    [log_date]           DATETIME NOT NULL,
    [error_id]           SMALLINT NOT NULL,
    [log_error_attempts] INT      NOT NULL,
    [last_error]         BIT      NOT NULL,
    CONSTRAINT [PK_AFLS_WORKORDER_ASSIGN_LOGS] PRIMARY KEY CLUSTERED ([log_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKORDER_CONSOLIDATES]...';


GO
CREATE TABLE [dbo].[AFLS_WORKORDER_CONSOLIDATES] (
    [work_id]         INT             NOT NULL,
    [cons_service]    DECIMAL (20, 2) NOT NULL,
    [cons_products]   DECIMAL (20, 2) NOT NULL,
    [cons_specialist] DECIMAL (20, 2) NOT NULL,
    [cons_transport]  DECIMAL (20, 2) NOT NULL,
    PRIMARY KEY CLUSTERED ([work_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKORDER_PROVIDER_LOG]...';


GO
CREATE TABLE [dbo].[AFLS_WORKORDER_PROVIDER_LOG] (
    [Id]                 INT      IDENTITY (1, 1) NOT NULL,
    [WorkId]             INT      NOT NULL,
    [ProviderId]         INT      NULL,
    [State]              INT      NOT NULL,
    [CreationDate]       DATETIME NOT NULL,
    [ProviderActionDate] DATETIME NULL,
    [SlaId]              INT      NULL,
    CONSTRAINT [PK_AFLS_WORKORDER_PROVIDER_LOG] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDER_PROVIDER_LOG].[IX01_AFLS_WORKORDER_PROVIDER_LOG]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_WORKORDER_PROVIDER_LOG]
    ON [dbo].[AFLS_WORKORDER_PROVIDER_LOG]([WorkId] ASC);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDER_PROVIDER_LOG].[IX02_AFLS_WORKORDER_PROVIDER_LOG]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFLS_WORKORDER_PROVIDER_LOG]
    ON [dbo].[AFLS_WORKORDER_PROVIDER_LOG]([ProviderId] ASC);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDER_PROVIDER_LOG].[IX03_AFLS_WORKORDER_PROVIDER_LOG]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AFLS_WORKORDER_PROVIDER_LOG]
    ON [dbo].[AFLS_WORKORDER_PROVIDER_LOG]([State] ASC, [ProviderActionDate] ASC)
    INCLUDE([ProviderId]);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDER_PROVIDER_LOG].[IX04_AFLS_WORKORDER_PROVIDER_LOG]...';


GO
CREATE NONCLUSTERED INDEX [IX04_AFLS_WORKORDER_PROVIDER_LOG]
    ON [dbo].[AFLS_WORKORDER_PROVIDER_LOG]([CreationDate] ASC)
    INCLUDE([ProviderId], [State], [ProviderActionDate]);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKORDER_PROVIDER_STATUS]...';


GO
CREATE TABLE [dbo].[AFLS_WORKORDER_PROVIDER_STATUS] (
    [Id]     INT           IDENTITY (1, 1) NOT NULL,
    [Status] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AFLS_WORKORDER_PROVIDER_STATUS] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKORDER_TASKS]...';


GO
CREATE TABLE [dbo].[AFLS_WORKORDER_TASKS] (
    [wtask_id]                             INT           IDENTITY (1, 1) NOT NULL,
    [wtask_description]                    VARCHAR (MAX) NOT NULL,
    [wtask_work_id]                        INT           NOT NULL,
    [wtask_work_state_id]                  INT           NOT NULL,
    [wtask_attendant_id]                   INT           NULL,
    [wtask_attendant_name]                 NVARCHAR (50) NULL,
    [wtask_tentative_attention_start_date] DATETIME      NULL,
    [wtask_attention_start_date]           DATETIME      NULL,
    [wtask_attention_end_date]             DATETIME      NULL,
    [wtask_order]                          INT           NOT NULL,
    [wtask_manual_programmed]              BIT           NULL,
    PRIMARY KEY CLUSTERED ([wtask_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKORDERS]...';


GO
CREATE TABLE [dbo].[AFLS_WORKORDERS] (
    [work_id]                                INT              IDENTITY (1, 1) NOT NULL,
    [ticket_id]                              NVARCHAR (50)    NULL,
    [tent_id]                                INT              NOT NULL,
    [clie_id]                                INT              NOT NULL,
    [comp_id]                                INT              NULL,
    [work_contact_name]                      NVARCHAR (100)   NOT NULL,
    [work_contact_email]                     NVARCHAR (255)   NULL,
    [work_contact_phone]                     NVARCHAR (32)    NULL,
    [work_subject]                           NVARCHAR (100)   NOT NULL,
    [work_description]                       NVARCHAR (MAX)   NOT NULL,
    [serv_id]                                INT              NOT NULL,
    [work_longitude]                         DECIMAL (20, 14) NOT NULL,
    [work_latitude]                          DECIMAL (20, 14) NOT NULL,
    [work_address]                           NVARCHAR (500)   NOT NULL,
    [work_addl_address_info]                 NVARCHAR (500)   NOT NULL,
    [work_end_longitude]                     DECIMAL (20, 14) NULL,
    [work_end_latitude]                      DECIMAL (20, 14) NULL,
    [work_end_address]                       NVARCHAR (500)   NULL,
    [work_end_addl_address_info]             NVARCHAR (500)   NULL,
    [work_attention_start_date]              DATETIME         NULL,
    [work_attention_end_date]                DATETIME         NULL,
    [work_attendant]                         INT              NULL,
    [stat_id]                                INT              NOT NULL,
    [work_created_by]                        INT              NOT NULL,
    [work_created_date]                      DATETIME         NOT NULL,
    [work_version]                           INT              NOT NULL,
    [work_change_date]                       DATETIME         NULL,
    [work_max_attention_time]                DATETIME         NULL,
    [work_max_solution_time]                 DATETIME         NULL,
    [work_runtime]                           DECIMAL (8, 2)   NULL,
    [work_travel_start_date]                 DATETIME         NULL,
    [work_priority]                          INT              NULL,
    [work_assignment_type]                   INT              NULL,
    [work_tentative_travel_start_date]       DATETIME         NULL,
    [work_tentative_attention_start_date]    DATETIME         NULL,
    [work_tentative_attention_end_date]      DATETIME         NULL,
    [work_emergency]                         BIT              NOT NULL,
    [work_scheduler_attention_start_date]    DATETIME         NULL,
    [work_scheduler_attention_end_date]      DATETIME         NULL,
    [survey_id]                              NVARCHAR (100)   NULL,
    [work_sub_state_id]                      INT              NULL,
    [work_zone_id]                           INT              NULL,
    [work_external_reference]                NVARCHAR (100)   NULL,
    [work_sla_id]                            INT              NOT NULL,
    [work_token_assistme]                    NVARCHAR (50)    NULL,
    [work_client_cancelded]                  BIT              NULL,
    [work_provider_id]                       INT              NULL,
    [work_include_provider_statics]          BIT              NULL,
    [work_restriction_info]                  NVARCHAR (MAX)   NULL,
    [work_restriction_assignment_start_date] DATETIME         NULL,
    [work_ci]                                NVARCHAR (128)   NULL,
    [work_ci_name]                           NVARCHAR (256)   NULL,
    [work_order_expired]                     BIT              NOT NULL,
    [work_is_imported]                       BIT              NOT NULL,
    CONSTRAINT [PK_AFLS_WORKORDERS] PRIMARY KEY CLUSTERED ([work_id] ASC),
    CONSTRAINT [UK01_AFLS_WORKORDERS] UNIQUE NONCLUSTERED ([ticket_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDERS].[IX01_AFLS_WORKORDERS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFLS_WORKORDERS]
    ON [dbo].[AFLS_WORKORDERS]([stat_id] ASC, [tent_id] ASC)
    INCLUDE([work_provider_id], [ticket_id], [clie_id], [work_attendant], [work_created_date], [work_zone_id]);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDERS].[IX02_AFLS_WORKORDERS]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFLS_WORKORDERS]
    ON [dbo].[AFLS_WORKORDERS]([serv_id] ASC);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDERS].[IX03_AFLS_WORKORDERS]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AFLS_WORKORDERS]
    ON [dbo].[AFLS_WORKORDERS]([clie_id] ASC);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDERS].[IX04_AFLS_WORKORDERS]...';


GO
CREATE NONCLUSTERED INDEX [IX04_AFLS_WORKORDERS]
    ON [dbo].[AFLS_WORKORDERS]([work_provider_id] ASC);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDERS].[IX05_AFLS_WORKORDERS]...';


GO
CREATE NONCLUSTERED INDEX [IX05_AFLS_WORKORDERS]
    ON [dbo].[AFLS_WORKORDERS]([work_created_by] ASC, [work_tentative_attention_start_date] ASC);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDERS].[IX06_AFLS_WORKORDERS]...';


GO
CREATE NONCLUSTERED INDEX [IX06_AFLS_WORKORDERS]
    ON [dbo].[AFLS_WORKORDERS]([work_attendant] ASC, [work_tentative_attention_start_date] ASC)
    INCLUDE([work_id], [work_addl_address_info], [work_address], [work_assignment_type], [work_token_assistme], [work_attention_end_date], [work_attention_start_date], [work_change_date], [work_ci], [work_ci_name], [clie_id], [comp_id], [work_contact_email], [work_contact_name], [work_contact_phone], [work_created_date], [work_created_by], [work_end_addl_address_info], [work_end_address], [work_end_latitude], [work_end_longitude], [work_external_reference], [work_client_cancelded], [work_emergency], [work_latitude], [work_longitude], [work_max_attention_time], [work_max_solution_time], [work_priority], [work_provider_id], [work_restriction_assignment_start_date], [work_restriction_info], [work_runtime], [work_scheduler_attention_end_date], [work_scheduler_attention_start_date], [serv_id], [work_sla_id], [stat_id], [work_subject], [work_sub_state_id], [survey_id], [tent_id], [work_tentative_attention_end_date], [work_tentative_travel_start_date], [ticket_id], [work_travel_start_date], [work_version], [work_zone_id]);


GO
PRINT N'Creating Index [dbo].[AFLS_WORKORDERS].[IX07_AFLS_WORKORDERS]...';


GO
CREATE NONCLUSTERED INDEX [IX07_AFLS_WORKORDERS]
    ON [dbo].[AFLS_WORKORDERS]([work_created_date] ASC);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS]...';


GO
CREATE TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS] (
    [awsp_id]            INT            IDENTITY (1, 1) NOT NULL,
    [work_id]            INT            NOT NULL,
    [prod_id]            INT            NOT NULL,
    [product_quantity]   INT            NOT NULL,
    [awsp_serial_number] NVARCHAR (128) NULL,
    [return_inventory]   BIT            NOT NULL,
    CONSTRAINT [PK_AFLS_WORKORDERS_INVENTORY_PRODUCTS] PRIMARY KEY CLUSTERED ([awsp_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS]...';


GO
CREATE TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS] (
    [awspm_id] INT IDENTITY (1, 1) NOT NULL,
    [awsp_id]  INT NULL,
    [mov_id]   INT NULL,
    CONSTRAINT [PK_AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS] PRIMARY KEY CLUSTERED ([awspm_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_WORKORDERS_STATE_COST]...';


GO
CREATE TABLE [dbo].[AFLS_WORKORDERS_STATE_COST] (
    [awsc_id]                INT             IDENTITY (1, 1) NOT NULL,
    [awsc_work_id]           INT             NOT NULL,
    [awsc_status_id]         INT             NOT NULL,
    [awsc_substatus_id]      INT             NOT NULL,
    [awsc_startdate]         DATETIME        NOT NULL,
    [awsc_enddate]           DATETIME        NOT NULL,
    [awsc_specialistid]      INT             NULL,
    [awsc_travel_kilometers] DECIMAL (32, 2) NOT NULL,
    [awsc_travel_cost]       DECIMAL (32, 2) NOT NULL,
    [awsc_specialist_time]   DECIMAL (32, 2) NOT NULL,
    [awsc_specialist_cost]   DECIMAL (32, 2) NOT NULL,
    PRIMARY KEY CLUSTERED ([awsc_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ZONE_POLYGON]...';


GO
CREATE TABLE [dbo].[AFLS_ZONE_POLYGON] (
    [data_id]       INT        IDENTITY (1, 1) NOT NULL,
    [datazone_id]   INT        NOT NULL,
    [data_x]        FLOAT (53) NOT NULL,
    [data_y]        FLOAT (53) NOT NULL,
    [data_order_id] INT        NOT NULL,
    CONSTRAINT [PK_AFLS_ZONE_POLYGON] PRIMARY KEY CLUSTERED ([data_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ZONES]...';


GO
CREATE TABLE [dbo].[AFLS_ZONES] (
    [zone_id]             INT              IDENTITY (1, 1) NOT NULL,
    [zone_name]           NVARCHAR (255)   NOT NULL,
    [zone_creationdate]   DATETIME         NOT NULL,
    [zone_modifieddate]   DATETIME         NULL,
    [zone_description]    NVARCHAR (255)   NULL,
    [zone_radio]          FLOAT (53)       NULL,
    [zone_latitude]       DECIMAL (20, 14) NULL,
    [zone_longitude]      DECIMAL (20, 14) NULL,
    [zone_type]           NVARCHAR (100)   NULL,
    [zone_priority_order] INT              NOT NULL,
    [zone_is_active]      BIT              NOT NULL,
    [zone_is_deleted]     BIT              NOT NULL,
    CONSTRAINT [PK_AFLS_ZONES] PRIMARY KEY CLUSTERED ([zone_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFLS_ZONES_MOBILE_GROUPS]...';


GO
CREATE TABLE [dbo].[AFLS_ZONES_MOBILE_GROUPS] (
    [zomg_id] INT IDENTITY (1, 1) NOT NULL,
    [zone_id] INT NOT NULL,
    [grou_id] INT NOT NULL,
    CONSTRAINT [PK_AFLS_ZONES_MOBILE_GROUPS] PRIMARY KEY CLUSTERED ([zomg_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_ACCESS_TOKEN]...';


GO
CREATE TABLE [dbo].[AFW_ACCESS_TOKEN] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [application_id]  INT            NOT NULL,
    [user_id]         INT            NOT NULL,
    [creation_date]   DATETIME       NOT NULL,
    [expiration_date] DATETIME       NULL,
    [hash]            NVARCHAR (64)  NOT NULL,
    [description]     NVARCHAR (200) NOT NULL,
    [created_by]      INT            NULL,
    CONSTRAINT [PK_AFW_ACCESS_TOKEN] PRIMARY KEY NONCLUSTERED ([id] ASC),
    CONSTRAINT [UX_AFW_ACCESS_TOKEN] UNIQUE CLUSTERED ([hash] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_ADDITIONAL_FIELD]...';


GO
CREATE TABLE [dbo].[AFW_ADDITIONAL_FIELD] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (50)  NOT NULL,
    [description]       NVARCHAR (500) NULL,
    [definition_id]     INT            NOT NULL,
    [type_id]           INT            NOT NULL,
    [created_by]        INT            NOT NULL,
    [creation_date]     DATETIME       NOT NULL,
    [modification_date] DATETIME       NULL,
    [modified_by]       INT            NULL,
    [format_validator]  NVARCHAR (500) NULL,
    [help_message]      NVARCHAR (200) NULL,
    [keep_history]      BIT            NOT NULL,
    [label]             NVARCHAR (100) NULL,
    [order]             INT            NOT NULL,
    [is_active]         BIT            NOT NULL,
    CONSTRAINT [PK_AFW_ADDITIONAL_FIELD] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AFW_ADDITIONAL_FIELD] UNIQUE NONCLUSTERED ([definition_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_ADDITIONAL_FIELD_CONFIG]...';


GO
CREATE TABLE [dbo].[AFW_ADDITIONAL_FIELD_CONFIG] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [definition_id]      INT            NOT NULL,
    [serialize_settings] NVARCHAR (MAX) NOT NULL,
    [modified_by]        INT            NULL,
    [modification_date]  DATETIME       NULL,
    CONSTRAINT [PK_AFW_ADDITIONAL_FIELD_CONFIG] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_ADDITIONAL_FIELD_DEFINTION]...';


GO
CREATE TABLE [dbo].[AFW_ADDITIONAL_FIELD_DEFINTION] (
    [id]         INT IDENTITY (1, 1) NOT NULL,
    [concept_id] INT NOT NULL,
    CONSTRAINT [PK_AFW_ADDITIONAL_FIELD_DEFI] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_ADDITIONAL_FIELD_HISTORY]...';


GO
CREATE TABLE [dbo].[AFW_ADDITIONAL_FIELD_HISTORY] (
    [id]                INT                    IDENTITY (1, 1) NOT NULL,
    [field_id]          INT                    NOT NULL,
    [item_id]           INT                    NOT NULL,
    [modified_by]       INT                    NOT NULL,
    [modification_date] DATETIME               NOT NULL,
    [bool_value]        BIT SPARSE             NULL,
    [date_value]        DATETIME SPARSE        NULL,
    [float_value]       FLOAT (53) SPARSE      NULL,
    [integer_value]     BIGINT SPARSE          NULL,
    [text_value]        NVARCHAR (2000) SPARSE NULL,
    CONSTRAINT [PK_AFW_ADDITIONAL_FIELD_HIST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_HISTORY].[IX_BOOL_VALUE_HIST]...';


GO
CREATE NONCLUSTERED INDEX [IX_BOOL_VALUE_HIST]
    ON [dbo].[AFW_ADDITIONAL_FIELD_HISTORY]([bool_value] ASC) WHERE ([bool_value] IS NOT NULL);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_HISTORY].[IX_DATE_VALUE_HIST]...';


GO
CREATE NONCLUSTERED INDEX [IX_DATE_VALUE_HIST]
    ON [dbo].[AFW_ADDITIONAL_FIELD_HISTORY]([date_value] ASC) WHERE ([date_value] IS NOT NULL);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_HISTORY].[IX_FLOAT_VALUE_HIST]...';


GO
CREATE NONCLUSTERED INDEX [IX_FLOAT_VALUE_HIST]
    ON [dbo].[AFW_ADDITIONAL_FIELD_HISTORY]([float_value] ASC) WHERE ([float_value] IS NOT NULL);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_HISTORY].[IX_INTEGER_VALUE_HIST]...';


GO
CREATE NONCLUSTERED INDEX [IX_INTEGER_VALUE_HIST]
    ON [dbo].[AFW_ADDITIONAL_FIELD_HISTORY]([integer_value] ASC) WHERE ([integer_value] IS NOT NULL);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_HISTORY].[IX_ITEM_ID_HIST]...';


GO
CREATE NONCLUSTERED INDEX [IX_ITEM_ID_HIST]
    ON [dbo].[AFW_ADDITIONAL_FIELD_HISTORY]([item_id] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_HISTORY].[IX_TEXT_VALUE_HIST]...';


GO
CREATE NONCLUSTERED INDEX [IX_TEXT_VALUE_HIST]
    ON [dbo].[AFW_ADDITIONAL_FIELD_HISTORY]([text_value] ASC) WHERE ([text_value] IS NOT NULL);


GO
PRINT N'Creating Table [dbo].[AFW_ADDITIONAL_FIELD_LOOKUP]...';


GO
CREATE TABLE [dbo].[AFW_ADDITIONAL_FIELD_LOOKUP] (
    [id]                INT             IDENTITY (1, 1) NOT NULL,
    [field_id]          INT             NOT NULL,
    [order]             INT             NULL,
    [parent_id]         INT             NULL,
    [value]             NVARCHAR (2000) NOT NULL,
    [modified_by]       INT             NULL,
    [modification_date] DATETIME        NULL,
    CONSTRAINT [PK_AFW_ADDITIONAL_FIELD_LOOKUP] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_LOOKUP].[IX_AFW_ADDITIONAL_FIELD_LOOKUP]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_ADDITIONAL_FIELD_LOOKUP]
    ON [dbo].[AFW_ADDITIONAL_FIELD_LOOKUP]([field_id] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_ADDITIONAL_FIELD_VALUE]...';


GO
CREATE TABLE [dbo].[AFW_ADDITIONAL_FIELD_VALUE] (
    [id]                INT                    IDENTITY (1, 1) NOT NULL,
    [field_id]          INT                    NOT NULL,
    [item_id]           INT                    NOT NULL,
    [bool_value]        BIT SPARSE             NULL,
    [date_value]        DATETIME SPARSE        NULL,
    [float_value]       FLOAT (53) SPARSE      NULL,
    [integer_value]     BIGINT SPARSE          NULL,
    [text_value]        NVARCHAR (2000) SPARSE NULL,
    [modified_by]       INT                    NULL,
    [modification_date] DATETIME               NULL,
    CONSTRAINT [PK_AFW_ADDITIONAL_FIELD_VAL] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AFW_ADDITIONAL_FIELD_VAL] UNIQUE NONCLUSTERED ([field_id] ASC, [item_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_VALUE].[IX_BOOL_VALUE]...';


GO
CREATE NONCLUSTERED INDEX [IX_BOOL_VALUE]
    ON [dbo].[AFW_ADDITIONAL_FIELD_VALUE]([bool_value] ASC) WHERE ([bool_value] IS NOT NULL);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_VALUE].[IX_DATE_VALUE]...';


GO
CREATE NONCLUSTERED INDEX [IX_DATE_VALUE]
    ON [dbo].[AFW_ADDITIONAL_FIELD_VALUE]([date_value] ASC) WHERE ([date_value] IS NOT NULL);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_VALUE].[IX_FLOAT_VALUE]...';


GO
CREATE NONCLUSTERED INDEX [IX_FLOAT_VALUE]
    ON [dbo].[AFW_ADDITIONAL_FIELD_VALUE]([float_value] ASC) WHERE ([float_value] IS NOT NULL);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_VALUE].[IX_INTEGER_VALUE]...';


GO
CREATE NONCLUSTERED INDEX [IX_INTEGER_VALUE]
    ON [dbo].[AFW_ADDITIONAL_FIELD_VALUE]([integer_value] ASC) WHERE ([integer_value] IS NOT NULL);


GO
PRINT N'Creating Index [dbo].[AFW_ADDITIONAL_FIELD_VALUE].[IX_TEXT_VALUE]...';


GO
CREATE NONCLUSTERED INDEX [IX_TEXT_VALUE]
    ON [dbo].[AFW_ADDITIONAL_FIELD_VALUE]([text_value] ASC) WHERE ([text_value] IS NOT NULL);


GO
PRINT N'Creating Table [dbo].[AFW_ALERT]...';


GO
CREATE TABLE [dbo].[AFW_ALERT] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [category_id]   INT            NOT NULL,
    [severity_id]   INT            NOT NULL,
    [status_id]     INT            NOT NULL,
    [item_id]       INT            NULL,
    [project_id]    INT            NULL,
    [title]         NVARCHAR (50)  NOT NULL,
    [creation_date] DATETIME       NOT NULL,
    [description]   NVARCHAR (MAX) NULL,
    [detail]        NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AFW_ALERT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_ALERT].[IDX001_AFW_ALERT]...';


GO
CREATE NONCLUSTERED INDEX [IDX001_AFW_ALERT]
    ON [dbo].[AFW_ALERT]([item_id] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_ALERT].[IX10_AFW_ALERT]...';


GO
CREATE NONCLUSTERED INDEX [IX10_AFW_ALERT]
    ON [dbo].[AFW_ALERT]([creation_date] DESC, [status_id] ASC, [category_id] ASC)
    INCLUDE([id], [item_id], [project_id], [severity_id], [title]);


GO
PRINT N'Creating Table [dbo].[AFW_ALERT_CATEGORY]...';


GO
CREATE TABLE [dbo].[AFW_ALERT_CATEGORY] (
    [id]            INT            NOT NULL,
    [concept_id]    INT            NOT NULL,
    [parent_id]     INT            NULL,
    [severity_id]   INT            NOT NULL,
    [name]          NVARCHAR (50)  NOT NULL,
    [template]      NVARCHAR (255) NULL,
    [is_active]     BIT            NOT NULL,
    [delete_config] NVARCHAR (255) NULL,
    CONSTRAINT [PK_AFW_ALERT_CATEGORY] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AFW_ALERT_CATEGORY] UNIQUE NONCLUSTERED ([concept_id] ASC, [name] ASC, [parent_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_APPLICATION_CATEGORY]...';


GO
CREATE TABLE [dbo].[AFW_APPLICATION_CATEGORY] (
    [apca_id]          INT            IDENTITY (1, 1) NOT NULL,
    [apca_type]        INT            NOT NULL,
    [apca_name]        NVARCHAR (50)  NOT NULL,
    [apca_description] NVARCHAR (255) NULL,
    CONSTRAINT [PK_AFW_APPLICATION_CATEGORY] PRIMARY KEY CLUSTERED ([apca_id] ASC),
    CONSTRAINT [UX_AFW_APPLICATION_CATEGORY] UNIQUE NONCLUSTERED ([apca_type] ASC, [apca_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_APPLICATION_GROUP]...';


GO
CREATE TABLE [dbo].[AFW_APPLICATION_GROUP] (
    [appl_id]  INT NULL,
    [group_id] INT NOT NULL
);


GO
PRINT N'Creating Table [dbo].[AFW_APPLICATION_PROJECT]...';


GO
CREATE TABLE [dbo].[AFW_APPLICATION_PROJECT] (
    [appl_id] INT NULL,
    [proj_id] INT NOT NULL
);


GO
PRINT N'Creating Table [dbo].[AFW_APPLICATIONS]...';


GO
CREATE TABLE [dbo].[AFW_APPLICATIONS] (
    [appl_id]            INT            NOT NULL,
    [appl_acronym]       NVARCHAR (40)  NOT NULL,
    [appl_register_code] NVARCHAR (10)  NOT NULL,
    [appl_name]          NVARCHAR (100) NOT NULL,
    [appl_suite]         BIT            NOT NULL,
    [appl_parent_id]     INT            NULL,
    CONSTRAINT [PK_AFW_APPLICATIONS] PRIMARY KEY CLUSTERED ([appl_id] ASC),
    CONSTRAINT [UX_AFW_APPLICATIONS] UNIQUE NONCLUSTERED ([appl_acronym] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_ASSISTME_CONFIGURATION]...';


GO
CREATE TABLE [dbo].[AFW_ASSISTME_CONFIGURATION] (
    [Id]                   INT            IDENTITY (1, 1) NOT NULL,
    [WelcomeMessage]       NVARCHAR (100) NOT NULL,
    [Attendant]            NVARCHAR (25)  NOT NULL,
    [Needed]               NVARCHAR (25)  NOT NULL,
    [AssistMeURL]          NVARCHAR (200) NULL,
    [AboutUsURL]           NVARCHAR (200) NULL,
    [IsActive]             BIT            NOT NULL,
    [EnableRegisterClient] BIT            NOT NULL,
    CONSTRAINT [PK_AFW_ASSISTME_CONFIGURATION] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_ASSISTME_PREREGISTER]...';


GO
CREATE TABLE [dbo].[AFW_ASSISTME_PREREGISTER] (
    [Id]             INT              IDENTITY (1, 1) NOT NULL,
    [Name]           NVARCHAR (200)   NOT NULL,
    [Address]        NVARCHAR (250)   NULL,
    [AddressDetail]  NVARCHAR (50)    NULL,
    [Latitude]       DECIMAL (20, 14) NULL,
    [Longitude]      DECIMAL (20, 14) NULL,
    [UniqueCode]     NVARCHAR (50)    NOT NULL,
    [Email]          NVARCHAR (250)   NOT NULL,
    [Password]       NVARCHAR (250)   NOT NULL,
    [Phone]          NVARCHAR (50)    NULL,
    [Token]          NVARCHAR (250)   NOT NULL,
    [Activate]       BIT              NOT NULL,
    [ActivationDate] DATETIME         NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_ASSISTME_SERVICES]...';


GO
CREATE TABLE [dbo].[AFW_ASSISTME_SERVICES] (
    [Id]                    INT            IDENTITY (1, 1) NOT NULL,
    [Id_Config]             INT            NULL,
    [Serv_Name]             NVARCHAR (25)  NOT NULL,
    [Serv_Description]      NVARCHAR (200) NULL,
    [Serv_Icon]             NVARCHAR (25)  NOT NULL,
    [Serv_Refenrece_Id]     INT            NOT NULL,
    [Is_Active]             BIT            NOT NULL,
    [Is_Deleted]            BIT            NOT NULL,
    [Last_Inactivated_Date] DATETIME       NULL,
    CONSTRAINT [PK_AFW_ASSISTME_SERVICES] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_AUDIT]...';


GO
CREATE TABLE [dbo].[AFW_AUDIT] (
    [audi_id]             INT             IDENTITY (1, 1) NOT NULL,
    [audi_application_id] INT             NOT NULL,
    [audi_permission_id]  INT             NOT NULL,
    [audi_user_id]        INT             NOT NULL,
    [audi_machine_source] NVARCHAR (50)   NULL,
    [audi_ip_dest]        NVARCHAR (50)   NULL,
    [audi_machine_dest]   NVARCHAR (30)   NULL,
    [audi_start_date]     DATETIME        NOT NULL,
    [audi_end_date]       DATETIME        NULL,
    [audi_additional]     NVARCHAR (1000) NULL,
    CONSTRAINT [PK_AFW_AUDIT] PRIMARY KEY CLUSTERED ([audi_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_AUDIT].[IX_AFW_AUDIT_USERS]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_AUDIT_USERS]
    ON [dbo].[AFW_AUDIT]([audi_user_id] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_AUDIT].[IX02_AFW_AUDIT]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFW_AUDIT]
    ON [dbo].[AFW_AUDIT]([audi_start_date] DESC);


GO
PRINT N'Creating Table [dbo].[AFW_CATALOG]...';


GO
CREATE TABLE [dbo].[AFW_CATALOG] (
    [cata_id]           INT            IDENTITY (1, 1) NOT NULL,
    [cata_name]         NVARCHAR (200) NOT NULL,
    [cata_type]         NVARCHAR (1)   NOT NULL,
    [cata_status]       INT            NOT NULL,
    [cata_description]  NVARCHAR (250) NULL,
    [cata_num_rows]     INT            NULL,
    [cata_datatype]     NVARCHAR (50)  NULL,
    [cata_mask]         NVARCHAR (50)  NULL,
    [cata_max_length]   INT            NULL,
    [cata_parent_id]    INT            NULL,
    [cata_builtin]      BIT            NOT NULL,
    [modified_by]       INT            NULL,
    [modification_date] DATETIME       NULL,
    CONSTRAINT [PK_AFW_CATALOG] PRIMARY KEY CLUSTERED ([cata_id] ASC),
    CONSTRAINT [UX_AFW_CATALOG] UNIQUE NONCLUSTERED ([cata_name] ASC, [cata_parent_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_CATALOG_CODE]...';


GO
CREATE TABLE [dbo].[AFW_CATALOG_CODE] (
    [code_id]           INT            IDENTITY (1, 1) NOT NULL,
    [code_cata_id]      INT            NOT NULL,
    [code_order]        INT            NULL,
    [code_key]          NVARCHAR (500) NULL,
    [code_value]        NVARCHAR (500) NULL,
    [code_description]  NVARCHAR (500) NULL,
    [code_status]       INT            NOT NULL,
    [code_additional]   NVARCHAR (255) NOT NULL,
    [code_parent_id]    INT            NULL,
    [modified_by]       INT            NULL,
    [modification_date] DATETIME       NULL,
    CONSTRAINT [PK_AFW_CATALOG_CODE] PRIMARY KEY CLUSTERED ([code_id] ASC),
    CONSTRAINT [UX_AFW_CATALOG_CODE] UNIQUE NONCLUSTERED ([code_cata_id] ASC, [code_parent_id] ASC, [code_value] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_CATALOG_CODE].[IX01_AFW_CATALOG_CODE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_CATALOG_CODE]
    ON [dbo].[AFW_CATALOG_CODE]([code_cata_id] ASC)
    INCLUDE([code_value]);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_APPLICATION]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_APPLICATION] (
    [Id]       INT           IDENTITY (1, 1) NOT NULL,
    [Code]     INT           NOT NULL,
    [TenantId] INT           NULL,
    [Name]     VARCHAR (200) NOT NULL,
    CONSTRAINT [PK_AFW_CHAT_APPLICATION] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_AFW_CHAT_APPLICATION] UNIQUE NONCLUSTERED ([Code] ASC, [TenantId] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_ATTACHMENT]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_ATTACHMENT] (
    [Id]           INT             IDENTITY (1, 1) NOT NULL,
    [SessionId]    INT             NOT NULL,
    [PersonId]     INT             NOT NULL,
    [IsAgent]      INT             NOT NULL,
    [Name]         VARCHAR (300)   NOT NULL,
    [Content]      VARBINARY (MAX) NOT NULL,
    [Type]         VARCHAR (50)    NOT NULL,
    [UploadedDate] DATETIME        NULL,
    [FileSize]     BIGINT          NULL,
    CONSTRAINT [PK_AFW_CHAT_ATTACHMENT] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_ATTACHMENT].[IX01_AFW_CHAT_ATTACHMENT]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_CHAT_ATTACHMENT]
    ON [dbo].[AFW_CHAT_ATTACHMENT]([SessionId] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_ATTACHMENT].[IX02_AFW_CHAT_ATTACHMENT]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFW_CHAT_ATTACHMENT]
    ON [dbo].[AFW_CHAT_ATTACHMENT]([PersonId] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_AUTO_RESPONSE]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_AUTO_RESPONSE] (
    [Id]        INT            IDENTITY (1, 1) NOT NULL,
    [SettingId] INT            NOT NULL,
    [Name]      VARCHAR (500)  NOT NULL,
    [Response]  VARCHAR (2000) NOT NULL,
    CONSTRAINT [PK_AFW_CHAT_AUTO_RESPONSE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_CONNECTION]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_CONNECTION] (
    [Id]               VARCHAR (200)   NOT NULL,
    [ProjectClientId]  INT             NULL,
    [AgentId]          INT             NULL,
    [Status]           INT             NOT NULL,
    [StartDate]        DATETIME        NOT NULL,
    [EndDate]          DATETIME        NULL,
    [CustomParameters] NVARCHAR (2000) NULL,
    [UrlLocation]      NVARCHAR (2000) NULL,
    CONSTRAINT [PK_AFW_CHAT_CONNECTION] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_CONNECTION].[IX01_AFW_CHAT_CONNECTION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_CHAT_CONNECTION]
    ON [dbo].[AFW_CHAT_CONNECTION]([ProjectClientId] ASC) WHERE ProjectClientId IS NOT NULL;


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_CONNECTION].[IX02_AFW_CHAT_CONNECTION]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFW_CHAT_CONNECTION]
    ON [dbo].[AFW_CHAT_CONNECTION]([AgentId] ASC) WHERE AgentId IS NOT NULL;


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_CONNECTION].[IX03_AFW_CHAT_CONNECTION]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AFW_CHAT_CONNECTION]
    ON [dbo].[AFW_CHAT_CONNECTION]([ProjectClientId] ASC, [Status] ASC) WHERE ProjectClientId IS NOT NULL;


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_MESSAGE]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_MESSAGE] (
    [Id]        INT           IDENTITY (1, 1) NOT NULL,
    [SessionId] INT           NOT NULL,
    [PersonId]  INT           NOT NULL,
    [IsAgent]   INT           NOT NULL,
    [Message]   VARCHAR (MAX) NOT NULL,
    [MsgDate]   DATETIME      NULL,
    [Viewed]    INT           NOT NULL,
    [IsFile]    INT           NULL,
    [FileId]    INT           NULL,
    CONSTRAINT [PK_AFW_CHAT_MESSAGE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_MESSAGE].[IX01_AFW_CHAT_MESSAGE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_CHAT_MESSAGE]
    ON [dbo].[AFW_CHAT_MESSAGE]([SessionId] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_MESSAGE].[IX02_AFW_CHAT_MESSAGE]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFW_CHAT_MESSAGE]
    ON [dbo].[AFW_CHAT_MESSAGE]([PersonId] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_MESSAGE_MAIL]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_MESSAGE_MAIL] (
    [Id]           INT           IDENTITY (1, 1) NOT NULL,
    [PersonId]     INT           NOT NULL,
    [Name]         VARCHAR (100) NOT NULL,
    [Subject]      VARCHAR (400) NOT NULL,
    [Message]      VARCHAR (MAX) NOT NULL,
    [Email]        VARCHAR (200) NOT NULL,
    [Viewed]       INT           NOT NULL,
    [CreationDate] DATETIME      NOT NULL,
    [AssignedToId] INT           NULL,
    CONSTRAINT [PK_AFW_CHAT_MESSAGE_MAIL] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_MESSAGE_MAIL].[IX01_AFW_CHAT_MESSAGE_MAIL]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_CHAT_MESSAGE_MAIL]
    ON [dbo].[AFW_CHAT_MESSAGE_MAIL]([PersonId] ASC, [Viewed] ASC, [AssignedToId] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_PERSON]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_PERSON] (
    [Id]              INT            IDENTITY (1, 1) NOT NULL,
    [UserId]          INT            NOT NULL,
    [Name]            VARCHAR (100)  NOT NULL,
    [Email]           NVARCHAR (200) NOT NULL,
    [Country]         VARCHAR (200)  NULL,
    [Browser]         VARCHAR (200)  NULL,
    [OperatingSystem] VARCHAR (200)  NULL,
    CONSTRAINT [PK_AFW_CHAT_PERSON] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_AFW_CHAT_PERSON] UNIQUE NONCLUSTERED ([UserId] ASC, [Email] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_PROJECT]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_PROJECT] (
    [Id]            INT           IDENTITY (1, 1) NOT NULL,
    [ApplicationId] INT           NOT NULL,
    [CodeProject]   INT           NOT NULL,
    [Name]          VARCHAR (100) NOT NULL,
    [Active]        INT           NOT NULL,
    CONSTRAINT [PK_AFW_CHAT_PROJECT] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_AFW_CHAT_PROJECT] UNIQUE NONCLUSTERED ([CodeProject] ASC, [ApplicationId] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_PROJECT_AGENT]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_PROJECT_AGENT] (
    [Id]             INT IDENTITY (1, 1) NOT NULL,
    [ProjectId]      INT NOT NULL,
    [PersonId]       INT NOT NULL,
    [LevelAttention] INT NOT NULL,
    [Active]         INT NOT NULL,
    CONSTRAINT [PK_AFW_CHAT_PROJECT_AGENT] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_AFW_CHAT_PROJECT_AGENT] UNIQUE NONCLUSTERED ([ProjectId] ASC, [PersonId] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_PROJECT_CLIENT]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_PROJECT_CLIENT] (
    [Id]        INT IDENTITY (1, 1) NOT NULL,
    [ProjectId] INT NOT NULL,
    [PersonId]  INT NOT NULL,
    [RoleId]    INT NOT NULL,
    [Active]    INT NOT NULL,
    CONSTRAINT [PK_AFW_CHAT_PROJECT_CLIENT] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_AFW_CHAT_PROJECT_CLIENT] UNIQUE NONCLUSTERED ([ProjectId] ASC, [PersonId] ASC, [RoleId] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_PROJECT_CLIENT].[IX01_AFW_CHAT_PROJECT_CLIENT]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_CHAT_PROJECT_CLIENT]
    ON [dbo].[AFW_CHAT_PROJECT_CLIENT]([ProjectId] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_PROJECT_CLIENT].[IX02_AFW_CHAT_PROJECT_CLIENT]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFW_CHAT_PROJECT_CLIENT]
    ON [dbo].[AFW_CHAT_PROJECT_CLIENT]([PersonId] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_SESSION]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_SESSION] (
    [Id]                 INT           IDENTITY (1, 1) NOT NULL,
    [ConnectionIdAgent]  VARCHAR (200) NOT NULL,
    [ConnectionIdClient] VARCHAR (200) NOT NULL,
    [Active]             INT           NOT NULL,
    [Score]              TINYINT       NULL,
    [Duration]           FLOAT (53)    NULL,
    [IsTransfer]         INT           NOT NULL,
    [IsAgentChat]        INT           NOT NULL,
    [AgentChatUserId]    INT           NULL,
    [Comment]            VARCHAR (200) NULL,
    CONSTRAINT [PK_AFW_CHAT_SESSION] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_SESSION].[IX_AFW_CHAT_SESSION_CONNECTAGENT]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_CHAT_SESSION_CONNECTAGENT]
    ON [dbo].[AFW_CHAT_SESSION]([ConnectionIdAgent] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_SESSION].[IX_AFW_CHAT_SESSION_CONNECTAGENT_CONNECTCLIENT]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_CHAT_SESSION_CONNECTAGENT_CONNECTCLIENT]
    ON [dbo].[AFW_CHAT_SESSION]([ConnectionIdAgent] ASC, [ConnectionIdClient] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_CHAT_SESSION].[IX_AFW_CHAT_SESSION_CONNECTCLIENT]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_CHAT_SESSION_CONNECTCLIENT]
    ON [dbo].[AFW_CHAT_SESSION]([ConnectionIdClient] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_CHAT_SETTING]...';


GO
CREATE TABLE [dbo].[AFW_CHAT_SETTING] (
    [Id]                    INT           IDENTITY (1, 1) NOT NULL,
    [ApplicationId]         INT           NOT NULL,
    [EnableAutoAssignment]  INT           NOT NULL,
    [EnableChatSendMail]    INT           NOT NULL,
    [EnableScore]           INT           NOT NULL,
    [EnableCustomMessages]  INT           NOT NULL,
    [EnableAnonymousClient] INT           NOT NULL,
    [EnableMessageOffline]  INT           NOT NULL,
    [MaxAssignmentChat]     INT           NOT NULL,
    [MsgWelcome]            VARCHAR (500) NULL,
    [MsgLeave]              VARCHAR (500) NULL,
    [MsgNotAvailable]       VARCHAR (500) NULL,
    [MsgLeaveScore]         VARCHAR (500) NULL,
    [CreationDate]          DATETIME      NOT NULL,
    [ModificationDate]      DATETIME      NULL,
    [CreatedBy]             INT           NOT NULL,
    [ModifiedBy]            INT           NULL,
    [MaxAssignmentMail]     INT           NOT NULL,
    [SessionTime]           INT           NULL,
    CONSTRAINT [PK_AFW_CHAT_SETTING] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_COMMENTS]...';


GO
CREATE TABLE [dbo].[AFW_COMMENTS] (
    [Id]           INT            IDENTITY (1, 1) NOT NULL,
    [UserId]       INT            NOT NULL,
    [Title]        NVARCHAR (250) NULL,
    [Comment]      NVARCHAR (500) NOT NULL,
    [TypeId]       INT            NOT NULL,
    [CreationDate] DATETIME       NOT NULL,
    CONSTRAINT [PK_AFW_COMMENTS] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_COMMENTS_ASSIGNMENT]...';


GO
CREATE TABLE [dbo].[AFW_COMMENTS_ASSIGNMENT] (
    [Id]        INT IDENTITY (1, 1) NOT NULL,
    [CommentId] INT NOT NULL,
    [ConceptId] INT NOT NULL,
    [ItemId]    INT NOT NULL,
    CONSTRAINT [PK_AFW_COMMENTS_ASSIGNMENT] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_AFW_COMMENTS_ASSIGNMENT] UNIQUE NONCLUSTERED ([CommentId] ASC, [ConceptId] ASC, [ItemId] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_COMPANY]...';


GO
CREATE TABLE [dbo].[AFW_COMPANY] (
    [Id]               INT             IDENTITY (1, 1) NOT NULL,
    [Name]             NVARCHAR (200)  NOT NULL,
    [Contact]          NVARCHAR (100)  NULL,
    [Owner]            INT             NULL,
    [Address1]         NVARCHAR (200)  NOT NULL,
    [Address2]         NVARCHAR (200)  NULL,
    [Address3]         NVARCHAR (200)  NULL,
    [Phone1]           NVARCHAR (50)   NOT NULL,
    [Phone2]           NVARCHAR (50)   NULL,
    [Phone3]           NVARCHAR (50)   NULL,
    [Ext]              NVARCHAR (50)   NULL,
    [FaxNumber]        NVARCHAR (100)  NULL,
    [Mobil]            NVARCHAR (50)   NULL,
    [Description]      NVARCHAR (1000) NOT NULL,
    [Email]            NVARCHAR (100)  NOT NULL,
    [WebSiteURL]       NVARCHAR (250)  NULL,
    [Nit]              NVARCHAR (100)  NOT NULL,
    [CountryId]        INT             NULL,
    [CityId]           INT             NULL,
    [Location]         NVARCHAR (300)  NULL,
    [CreationDate]     DATETIME        NOT NULL,
    [ModificationDate] DATETIME        NULL,
    [CreatedBy]        INT             NOT NULL,
    [ModifiedBy]       INT             NULL,
    CONSTRAINT [PK_AFW_COMPANY] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_COMPANY_TYPES]...';


GO
CREATE TABLE [dbo].[AFW_COMPANY_TYPES] (
    [ProjectId] INT NOT NULL,
    [CompanyId] INT NOT NULL,
    [Type]      INT NOT NULL,
    [Status]    BIT NOT NULL,
    CONSTRAINT [PK_AFW_COMPANY_TYPES] PRIMARY KEY CLUSTERED ([ProjectId] ASC, [CompanyId] ASC, [Type] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_CONCEPT]...';


GO
CREATE TABLE [dbo].[AFW_CONCEPT] (
    [id]   INT           NOT NULL,
    [name] NVARCHAR (40) NOT NULL,
    CONSTRAINT [PK_AFW_OBJECT_TYPE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AFW_OBJECT_TYPE] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_CONCURRENCY_LOCK]...';


GO
CREATE TABLE [dbo].[AFW_CONCURRENCY_LOCK] (
    [id]           VARCHAR (255) NOT NULL,
    [locked_until] DATETIME      NOT NULL,
    [token]        VARCHAR (36)  NOT NULL,
    CONSTRAINT [PK_AFW_CONCURRENCY_LOCK] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AFW_CONCURRENCY_LOCK] UNIQUE NONCLUSTERED ([token] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_CONTENT]...';


GO
CREATE TABLE [dbo].[AFW_CONTENT] (
    [conte_guid] NVARCHAR (40)   NOT NULL,
    [conte_file] VARBINARY (MAX) NULL,
    CONSTRAINT [PK_AFW_CONTENT] PRIMARY KEY CLUSTERED ([conte_guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_CONTENT_HISTORY]...';


GO
CREATE TABLE [dbo].[AFW_CONTENT_HISTORY] (
    [cohi_id]      INT      IDENTITY (1, 1) NOT NULL,
    [cohi_user_id] INT      NOT NULL,
    [cohi_docu_id] INT      NOT NULL,
    [cohi_date]    DATETIME NOT NULL,
    [cohi_action]  INT      NOT NULL,
    CONSTRAINT [PK_AFW_CONTENT_HISTORY] PRIMARY KEY CLUSTERED ([cohi_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_DATA_PROTECTION]...';


GO
CREATE TABLE [dbo].[AFW_DATA_PROTECTION] (
    [id]      NVARCHAR (36) NOT NULL,
    [xml_key] VARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_AFW_DATA_PROTECTION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_DIM_DATE]...';


GO
CREATE TABLE [dbo].[AFW_DIM_DATE] (
    [id]    INT      IDENTITY (1, 1) NOT NULL,
    [value] DATE     NOT NULL,
    [year]  SMALLINT NOT NULL,
    [month] TINYINT  NOT NULL,
    [day]   TINYINT  NOT NULL,
    CONSTRAINT [PK_AFW_DIM_DATE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AFW_DIM_DATE] UNIQUE NONCLUSTERED ([value] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_DOCUMENT]...';


GO
CREATE TABLE [dbo].[AFW_DOCUMENT] (
    [docu_id]                 INT            IDENTITY (1, 1) NOT NULL,
    [docu_guid]               NVARCHAR (64)  NULL,
    [docu_parent_id]          INT            NOT NULL,
    [docu_name]               NVARCHAR (255) NOT NULL,
    [docu_description]        NVARCHAR (500) NULL,
    [docu_creation_date]      DATETIME       NOT NULL,
    [docu_created_by]         INT            NOT NULL,
    [docu_last_modified_date] DATETIME       NULL,
    [docu_last_modified_by]   INT            NULL,
    [docu_size]               BIGINT         NULL,
    [docu_deleted]            BIT            NOT NULL,
    [docu_encrypted]          BIT            NOT NULL,
    [docu_hash]               NVARCHAR (64)  NULL,
    [docu_public]             BIT            NOT NULL,
    [status]                  SMALLINT       NOT NULL,
    CONSTRAINT [PK_AFW_DOCUMENT] PRIMARY KEY CLUSTERED ([docu_id] ASC),
    CONSTRAINT [UX_FOLDER_DOCUMENT] UNIQUE NONCLUSTERED ([docu_name] ASC, [docu_parent_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_DOCUMENT].[IX01_AFW_DOCUMENT]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_DOCUMENT]
    ON [dbo].[AFW_DOCUMENT]([docu_guid] ASC) WITH (FILLFACTOR = 90);


GO
PRINT N'Creating Table [dbo].[AFW_EXTERNAL_AUTH_PROVIDERS]...';


GO
CREATE TABLE [dbo].[AFW_EXTERNAL_AUTH_PROVIDERS] (
    [id]                NVARCHAR (100) NOT NULL,
    [app_key]           NVARCHAR (100) NOT NULL,
    [name]              NVARCHAR (200) NOT NULL,
    [type]              INT            NOT NULL,
    [data]              NVARCHAR (MAX) NOT NULL,
    [enabled]           BIT            NOT NULL,
    [modified_by]       INT            NULL,
    [modification_date] DATETIME       NULL,
    CONSTRAINT [PK_AFW_EXTERNAL_AUTH_PROVIDERS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_EXTERNAL_AUTH_TYPES]...';


GO
CREATE TABLE [dbo].[AFW_EXTERNAL_AUTH_TYPES] (
    [exau_id]           INT            NOT NULL,
    [exau_name]         NVARCHAR (50)  NOT NULL,
    [exau_class_name]   NVARCHAR (255) NOT NULL,
    [exau_asembly_path] NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AFW_EXTERNAL_AUTH_TYPES] PRIMARY KEY CLUSTERED ([exau_id] ASC),
    CONSTRAINT [UX_AFW_EXTERNAL_AUTH_TYPES] UNIQUE NONCLUSTERED ([exau_name] ASC, [exau_class_name] ASC, [exau_asembly_path] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_FOLDER]...';


GO
CREATE TABLE [dbo].[AFW_FOLDER] (
    [fold_id]               INT            IDENTITY (1, 1) NOT NULL,
    [fold_name]             NVARCHAR (50)  NOT NULL,
    [fold_parent]           INT            NULL,
    [fold_creation_date]    DATETIME       NULL,
    [fold_modified_date]    DATETIME       NULL,
    [fold_user_id_create]   INT            NOT NULL,
    [fold_user_id_modified] INT            NULL,
    [fold_description]      NVARCHAR (500) NULL,
    [fold_application_id]   INT            NULL,
    [fold_order]            INT            NULL,
    [fold_guid]             NVARCHAR (64)  NULL,
    [fold_public]           BIT            NOT NULL,
    CONSTRAINT [PK_AFW_FOLDER] PRIMARY KEY CLUSTERED ([fold_id] ASC),
    CONSTRAINT [UX_AFW_FOLDER] UNIQUE NONCLUSTERED ([fold_name] ASC, [fold_parent] ASC, [fold_application_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_GROUP_LICENSE]...';


GO
CREATE TABLE [dbo].[AFW_GROUP_LICENSE] (
    [group_id]       INT NOT NULL,
    [application_id] INT NOT NULL,
    [quantity]       INT NOT NULL,
    CONSTRAINT [PK_AFW_GROUP_LICENSE] PRIMARY KEY CLUSTERED ([group_id] ASC, [application_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_GROUP_USER]...';


GO
CREATE TABLE [dbo].[AFW_GROUP_USER] (
    [grou_id] INT NOT NULL,
    [user_id] INT NOT NULL,
    CONSTRAINT [PK_AFW_GROUP_USER] PRIMARY KEY CLUSTERED ([grou_id] ASC, [user_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_GROUP_USER].[IX01_AFW_GROUP_USER]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_GROUP_USER]
    ON [dbo].[AFW_GROUP_USER]([user_id] ASC)
    INCLUDE([grou_id]);


GO
PRINT N'Creating Table [dbo].[AFW_GROUPS]...';


GO
CREATE TABLE [dbo].[AFW_GROUPS] (
    [grou_id]                INT             IDENTITY (1, 1) NOT NULL,
    [grou_name]              NVARCHAR (256)  NOT NULL,
    [grou_user_id]           INT             NOT NULL,
    [grou_is_active]         INT             NOT NULL,
    [grou_definition_ldap]   NVARCHAR (1000) NULL,
    [grou_description]       NVARCHAR (256)  NULL,
    [grou_parent]            INT             NULL,
    [grou_guid_ldap]         NVARCHAR (50)   NULL,
    [grou_class_type_ldap]   NVARCHAR (50)   NULL,
    [grou_authentication_id] INT             NOT NULL,
    CONSTRAINT [PK_AFW_GROUPS] PRIMARY KEY CLUSTERED ([grou_id] ASC),
    CONSTRAINT [UX01_AFW_GROUPS] UNIQUE NONCLUSTERED ([grou_name] ASC, [grou_authentication_id] ASC, [grou_parent] ASC, [grou_guid_ldap] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_GROUPS].[IX_AFW_GROUPS]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_GROUPS]
    ON [dbo].[AFW_GROUPS]([grou_guid_ldap] ASC, [grou_authentication_id] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_ITEM_MODEL]...';


GO
CREATE TABLE [dbo].[AFW_ITEM_MODEL] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [name]         NVARCHAR (50)  NOT NULL,
    [description]  NVARCHAR (250) NOT NULL,
    [item_type_id] INT            NULL,
    [script]       NVARCHAR (MAX) NULL,
    [is_deleted]   BIT            NOT NULL,
    [is_active]    BIT            NOT NULL,
    CONSTRAINT [PK_AFW_MODEL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_ITEM_TIMES]...';


GO
CREATE TABLE [dbo].[AFW_ITEM_TIMES] (
    [id]             INT            IDENTITY (1, 1) NOT NULL,
    [name]           NVARCHAR (50)  NOT NULL,
    [description]    NVARCHAR (250) NOT NULL,
    [builtin_id]     INT            NULL,
    [type_agree]     INT            NOT NULL,
    [is_deleted]     BIT            NOT NULL,
    [model_id]       INT            NULL,
    [apply_calendar] BIT            NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_LANGUAGE]...';


GO
CREATE TABLE [dbo].[AFW_LANGUAGE] (
    [id]          CHAR (2)      NOT NULL,
    [description] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AFW_LANGUAGE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_LDAP]...';


GO
CREATE TABLE [dbo].[AFW_LDAP] (
    [id]                        INT            IDENTITY (1, 1) NOT NULL,
    [name]                      NVARCHAR (255) NULL,
    [server_name]               NVARCHAR (500) NULL,
    [settings]                  NVARCHAR (500) NULL,
    [type]                      INT            NULL,
    [security]                  INT            NOT NULL,
    [maxinvalidpasswordattempt] INT            NULL,
    [enable]                    BIT            NOT NULL,
    [exau_id]                   INT            NULL,
    [modified_by]               INT            NULL,
    [modification_date]         DATETIME       NULL,
    CONSTRAINT [PK_AFW_LDAP] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AFW_LDAP] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_LICENSE]...';


GO
CREATE TABLE [dbo].[AFW_LICENSE] (
    [lice_id]             INT            IDENTITY (1, 1) NOT NULL,
    [lice_application_id] INT            NOT NULL,
    [lice_info]           NVARCHAR (MAX) NOT NULL,
    [lice_version]        INT            NOT NULL,
    [lice_parent_id]      INT            NULL,
    [lice_tenant_id]      INT            NULL,
    [lice_id_aranda]      INT            NOT NULL,
    CONSTRAINT [PK_AFW_LICENSE] PRIMARY KEY CLUSTERED ([lice_id] ASC),
    CONSTRAINT [UX_AFW_LICENSE] UNIQUE NONCLUSTERED ([lice_application_id] ASC, [lice_tenant_id] ASC, [lice_id_aranda] ASC, [lice_version] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_LICENSE].[IX_AFW_LICENSE_APPLICATION]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_LICENSE_APPLICATION]
    ON [dbo].[AFW_LICENSE]([lice_application_id] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_LICENSE].[IX_AFW_LICENSE_ARANDA]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_LICENSE_ARANDA]
    ON [dbo].[AFW_LICENSE]([lice_id_aranda] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_LICENSE_ASSIGNMENT]...';


GO
CREATE TABLE [dbo].[AFW_LICENSE_ASSIGNMENT] (
    [id]         INT IDENTITY (1, 1) NOT NULL,
    [group_id]   INT NULL,
    [user_id]    INT NULL,
    [appl_id]    INT NOT NULL,
    [named]      BIT NOT NULL,
    [license_id] INT NOT NULL,
    CONSTRAINT [PK_AFW_LICENSE_ASSIGNMENT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AFW_LICENSE_ASSIGNMENT] UNIQUE NONCLUSTERED ([group_id] ASC, [user_id] ASC, [appl_id] ASC, [named] ASC, [license_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_LICENSES_USED]...';


GO
CREATE TABLE [dbo].[AFW_LICENSES_USED] (
    [id]             INT IDENTITY (1, 1) NOT NULL,
    [application_id] INT NOT NULL,
    [token_id]       INT NOT NULL,
    [license_id]     INT NOT NULL,
    [named]          BIT NOT NULL,
    CONSTRAINT [PK_AFW_LICENSES_USED] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_LICENSE_USED] UNIQUE NONCLUSTERED ([token_id] ASC, [application_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_LOCATION]...';


GO
CREATE TABLE [dbo].[AFW_LOCATION] (
    [Id]     INT            IDENTITY (1, 1) NOT NULL,
    [Name]   NVARCHAR (250) NOT NULL,
    [Code]   NVARCHAR (250) NULL,
    [Parent] INT            NULL,
    [Type]   INT            NOT NULL,
    [Status] BIT            NOT NULL,
    CONSTRAINT [PK_AFW_LOCATION] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_MAIL]...';


GO
CREATE TABLE [dbo].[AFW_MAIL] (
    [mail_id]              BIGINT          IDENTITY (1, 1) NOT NULL,
    [mail_receiver]        NVARCHAR (2000) NOT NULL,
    [mail_subject]         NVARCHAR (255)  NOT NULL,
    [mail_body]            NVARCHAR (MAX)  NOT NULL,
    [mail_status]          INT             NOT NULL,
    [mail_sender]          NVARCHAR (255)  NOT NULL,
    [mail_sender_name]     NVARCHAR (255)  NULL,
    [mail_format]          INT             NOT NULL,
    [mail_category]        NVARCHAR (100)  NULL,
    [mail_server]          NVARCHAR (255)  NOT NULL,
    [mail_port]            INT             NOT NULL,
    [mail_user_account]    NVARCHAR (255)  NULL,
    [mail_user_password]   NVARCHAR (255)  NULL,
    [mail_created]         DATETIME        NOT NULL,
    [mail_ssl]             INT             NOT NULL,
    [mail_failed_attempts] INT             NOT NULL,
    [mail_headers]         NVARCHAR (MAX)  NULL,
    [message]              NVARCHAR (MAX)  NULL,
    [data]                 NVARCHAR (MAX)  NULL,
    [type]                 INT             NULL,
    [cc]                   NVARCHAR (2000) NULL,
    [bcc]                  NVARCHAR (2000) NULL,
    CONSTRAINT [PK_AFW_MAIL] PRIMARY KEY CLUSTERED ([mail_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_MAIL].[IX_AFW_MAIL]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_MAIL]
    ON [dbo].[AFW_MAIL]([mail_created] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_MAIL_ACCOUNT]...';


GO
CREATE TABLE [dbo].[AFW_MAIL_ACCOUNT] (
    [maac_id]            INT            IDENTITY (1, 1) NOT NULL,
    [maac_server_name]   NVARCHAR (255) NOT NULL,
    [maac_server_alias]  NVARCHAR (255) NULL,
    [maac_user_account]  NVARCHAR (255) NULL,
    [maac_user_password] NVARCHAR (255) NULL,
    [maac_is_ssl]        BIT            NOT NULL,
    [maac_sender_name]   NVARCHAR (255) NULL,
    [maac_port]          INT            NOT NULL,
    [maac_sender]        NVARCHAR (255) NOT NULL,
    [data]               NVARCHAR (MAX) NULL,
    [type]               INT            NULL,
    [modified_by]        INT            NULL,
    [modification_date]  DATETIME       NULL,
    CONSTRAINT [PK_AFW_MAIL_ACCOUNT] PRIMARY KEY CLUSTERED ([maac_id] ASC),
    CONSTRAINT [UX01_AFW_MAIL_ACCOUNT] UNIQUE NONCLUSTERED ([maac_server_name] ASC, [maac_sender] ASC, [type] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_MAIL_ACCOUNT_CONFIG]...';


GO
CREATE TABLE [dbo].[AFW_MAIL_ACCOUNT_CONFIG] (
    [maco_id] INT IDENTITY (1, 1) NOT NULL,
    [appl_id] INT NULL,
    [proj_id] INT NULL,
    [maac_id] INT NOT NULL,
    CONSTRAINT [PK_AFW_MAIL_ACCOUNT_CONFIG] PRIMARY KEY CLUSTERED ([maco_id] ASC),
    CONSTRAINT [UX_AFW_MAIL_ACCOUNT_CONFIG] UNIQUE NONCLUSTERED ([appl_id] ASC, [proj_id] ASC, [maac_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_MAIL_ACCOUNT_TEMPLATE]...';


GO
CREATE TABLE [dbo].[AFW_MAIL_ACCOUNT_TEMPLATE] (
    [mate_id] INT NOT NULL,
    [maac_id] INT NOT NULL,
    CONSTRAINT [PK_MAIL_ACCOUNT_TEMPLATE] PRIMARY KEY CLUSTERED ([mate_id] ASC, [maac_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_MAIL_ATTACHMENT]...';


GO
CREATE TABLE [dbo].[AFW_MAIL_ATTACHMENT] (
    [Id]     INT             IDENTITY (1, 1) NOT NULL,
    [MailId] BIGINT          NOT NULL,
    [Name]   NVARCHAR (200)  NOT NULL,
    [Data]   VARBINARY (MAX) NOT NULL,
    CONSTRAINT [PK_AFW_MAIL_ATTACHMENT] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_MAIL_HISTORY]...';


GO
CREATE TABLE [dbo].[AFW_MAIL_HISTORY] (
    [mahi_id]            BIGINT          NOT NULL,
    [mahi_receiver]      NVARCHAR (2000) NOT NULL,
    [mahi_subject]       NVARCHAR (255)  NOT NULL,
    [mahi_body]          NVARCHAR (MAX)  NOT NULL,
    [mahi_status]        INT             NOT NULL,
    [mahi_sender]        NVARCHAR (255)  NOT NULL,
    [mahi_sender_name]   NVARCHAR (255)  NULL,
    [mahi_format]        INT             NOT NULL,
    [mahi_category]      NVARCHAR (100)  NULL,
    [mahi_server]        NVARCHAR (255)  NOT NULL,
    [mahi_port]          INT             NOT NULL,
    [mahi_user_account]  NVARCHAR (255)  NULL,
    [mahi_user_password] NVARCHAR (255)  NULL,
    [mahi_created]       DATETIME        NOT NULL,
    [mahi_ssl]           INT             NOT NULL,
    [mahi_modified_date] DATETIME        NULL,
    [mahi_headers]       NVARCHAR (MAX)  NULL,
    [message]            NVARCHAR (MAX)  NULL,
    [data]               NVARCHAR (MAX)  NULL,
    [type]               INT             NULL,
    [cc]                 NVARCHAR (2000) NULL,
    [bcc]                NVARCHAR (2000) NULL,
    CONSTRAINT [PK_AFW_MAIL_HISTORY] PRIMARY KEY CLUSTERED ([mahi_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_MAIL_HISTORY].[IX01_AFW_MAIL_HISTORY]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_MAIL_HISTORY]
    ON [dbo].[AFW_MAIL_HISTORY]([mahi_created] DESC);


GO
PRINT N'Creating Table [dbo].[AFW_MAIL_TEMPLATE]...';


GO
CREATE TABLE [dbo].[AFW_MAIL_TEMPLATE] (
    [mate_id]           INT             IDENTITY (1, 1) NOT NULL,
    [mate_name]         NVARCHAR (50)   NOT NULL,
    [mate_subject]      NVARCHAR (100)  NULL,
    [mate_body]         NVARCHAR (MAX)  NULL,
    [mate_format]       INT             NOT NULL,
    [mate_project_id]   INT             NULL,
    [mate_category_id]  INT             NULL,
    [mate_is_default]   INT             NOT NULL,
    [mate_sender]       NVARCHAR (1000) NULL,
    [mate_sender_name]  NVARCHAR (1000) NULL,
    [modified_by]       INT             NULL,
    [modification_date] DATETIME        NULL,
    CONSTRAINT [PK_AFW_MAIL_TEMPLATE] PRIMARY KEY CLUSTERED ([mate_id] ASC),
    CONSTRAINT [UX_AFW_MAIL_TEMPLATE] UNIQUE NONCLUSTERED ([mate_name] ASC, [mate_project_id] ASC, [mate_category_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_NAMED_LICENSE]...';


GO
CREATE TABLE [dbo].[AFW_NAMED_LICENSE] (
    [user_id]        INT NOT NULL,
    [application_id] INT NOT NULL,
    CONSTRAINT [PK_AFW_NAMED_LICENSE] PRIMARY KEY CLUSTERED ([user_id] ASC, [application_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_PERMISSIONS]...';


GO
CREATE TABLE [dbo].[AFW_PERMISSIONS] (
    [perm_id]             INT            NOT NULL,
    [perm_name]           NVARCHAR (255) NULL,
    [perm_parent]         INT            NULL,
    [perm_is_active]      BIT            NOT NULL,
    [perm_application_id] INT            NOT NULL,
    [perm_concept_id]     INT            NULL,
    CONSTRAINT [PK_AFW_PERMISIONS] PRIMARY KEY CLUSTERED ([perm_id] ASC),
    CONSTRAINT [UX_AFW_PERMISIONS] UNIQUE NONCLUSTERED ([perm_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_PROJECT_GROUP]...';


GO
CREATE TABLE [dbo].[AFW_PROJECT_GROUP] (
    [proj_id] INT NOT NULL,
    [grou_id] INT NOT NULL,
    [type_id] INT NOT NULL,
    CONSTRAINT [UX_AFW_PROJECT_GROUP] UNIQUE NONCLUSTERED ([proj_id] ASC, [grou_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_PROJECT_USER]...';


GO
CREATE TABLE [dbo].[AFW_PROJECT_USER] (
    [proj_id] INT NOT NULL,
    [user_id] INT NOT NULL,
    [type_id] INT NOT NULL,
    CONSTRAINT [UX_AFW_PROJECT_USER] UNIQUE NONCLUSTERED ([proj_id] ASC, [user_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_PROJECTS]...';


GO
CREATE TABLE [dbo].[AFW_PROJECTS] (
    [proj_id]          INT            IDENTITY (1, 1) NOT NULL,
    [proj_name]        NVARCHAR (255) NOT NULL,
    [proj_owner_id]    INT            NOT NULL,
    [proj_state]       INT            NULL,
    [proj_description] NVARCHAR (255) NULL,
    CONSTRAINT [PK_AFW_PROJECTS] PRIMARY KEY CLUSTERED ([proj_id] ASC),
    CONSTRAINT [UX_AFW_PROJECTS] UNIQUE NONCLUSTERED ([proj_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_QUEUE]...';


GO
CREATE TABLE [dbo].[AFW_QUEUE] (
    [queu_id]               INT            IDENTITY (1, 1) NOT NULL,
    [queu_topic]            NVARCHAR (256) NOT NULL,
    [queu_message]          NVARCHAR (MAX) NOT NULL,
    [queu_retry_cycles]     INT            NULL,
    [queu_time_to_life]     DATETIME       NULL,
    [queu_time_lock]        DATETIME       NULL,
    [queu_max_retry_cycles] INT            NULL,
    [queu_creation_date]    DATETIME       NOT NULL,
    [version]               INT            NULL,
    CONSTRAINT [PK_AFW_QUEUE] PRIMARY KEY CLUSTERED ([queu_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_QUEUE].[IX_AFW_QUEUE]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_QUEUE]
    ON [dbo].[AFW_QUEUE]([queu_topic] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_ROLE_ACCESS]...';


GO
CREATE TABLE [dbo].[AFW_ROLE_ACCESS] (
    [roac_id]           INT      IDENTITY (1, 1) NOT NULL,
    [roac_proj_id]      INT      NULL,
    [roac_grou_id]      INT      NULL,
    [roac_role_id]      INT      NULL,
    [roac_user_id]      INT      NULL,
    [roac_proj_deny]    INT      NOT NULL,
    [roac_grou_parent]  INT      NULL,
    [modified_by]       INT      NULL,
    [modification_date] DATETIME NULL,
    CONSTRAINT [PK_AFW_ROLE_ACCESS] PRIMARY KEY CLUSTERED ([roac_id] ASC),
    CONSTRAINT [UX_ROLE_ACCESS] UNIQUE NONCLUSTERED ([roac_proj_id] ASC, [roac_grou_id] ASC, [roac_role_id] ASC, [roac_user_id] ASC, [roac_proj_deny] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_ROLE_ACCESS].[IX01_AFW_ROLE_ACCESS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_ROLE_ACCESS]
    ON [dbo].[AFW_ROLE_ACCESS]([roac_grou_id] ASC)
    INCLUDE([roac_role_id], [roac_user_id], [roac_proj_id]);


GO
PRINT N'Creating Index [dbo].[AFW_ROLE_ACCESS].[IX02_AFW_ROLE_ACCESS]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFW_ROLE_ACCESS]
    ON [dbo].[AFW_ROLE_ACCESS]([roac_user_id] ASC)
    INCLUDE([roac_role_id], [roac_proj_id]);


GO
PRINT N'Creating Table [dbo].[AFW_ROLE_ACCESS_OBJECT]...';


GO
CREATE TABLE [dbo].[AFW_ROLE_ACCESS_OBJECT] (
    [roao_Id]             INT      IDENTITY (1, 1) NOT NULL,
    [roao_role_access_id] INT      NOT NULL,
    [roao_object_type_id] INT      NOT NULL,
    [roao_object_id]      INT      NOT NULL,
    [modified_by]         INT      NULL,
    [modification_date]   DATETIME NULL,
    CONSTRAINT [PK_AFW_ROLE_ACCESS_OBJECT] PRIMARY KEY NONCLUSTERED ([roao_Id] ASC),
    CONSTRAINT [UX_AFW_ROLE_ACCESS_OBJECT] UNIQUE NONCLUSTERED ([roao_role_access_id] ASC, [roao_object_id] ASC, [roao_object_type_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_ROLE_ACCESS_OBJECT].[IX_AFW_ROLE_ACCESS]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_ROLE_ACCESS]
    ON [dbo].[AFW_ROLE_ACCESS_OBJECT]([roao_role_access_id] ASC, [roao_object_id] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_ROLE_PERMISSION]...';


GO
CREATE TABLE [dbo].[AFW_ROLE_PERMISSION] (
    [perm_id]           INT      NOT NULL,
    [role_id]           INT      NOT NULL,
    [is_audit]          INT      NOT NULL,
    [modified_by]       INT      NULL,
    [modification_date] DATETIME NULL,
    CONSTRAINT [PK_AFW_ROLE_PERMISSION] PRIMARY KEY CLUSTERED ([perm_id] ASC, [role_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_ROLE_PERMISSION].[IX_AFW_ROLE_PERMISSION]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_ROLE_PERMISSION]
    ON [dbo].[AFW_ROLE_PERMISSION]([role_id] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_ROLES]...';


GO
CREATE TABLE [dbo].[AFW_ROLES] (
    [role_id]             INT            IDENTITY (1, 1) NOT NULL,
    [role_name]           NVARCHAR (40)  NOT NULL,
    [role_description]    NVARCHAR (255) NULL,
    [role_is_active]      BIT            NOT NULL,
    [role_is_builtin]     BIT            NOT NULL,
    [role_application_id] INT            NOT NULL,
    [role_concept_id]     INT            NULL,
    [modified_by]         INT            NULL,
    [modification_date]   DATETIME       NULL,
    CONSTRAINT [PK_AFW_ROLES] PRIMARY KEY CLUSTERED ([role_id] ASC),
    CONSTRAINT [UX_AFW_ROLES] UNIQUE NONCLUSTERED ([role_name] ASC, [role_application_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_RULE]...';


GO
CREATE TABLE [dbo].[AFW_RULE] (
    [rule_id]           INT            IDENTITY (1, 1) NOT NULL,
    [rule_context_id]   INT            NOT NULL,
    [rule_project_id]   INT            NULL,
    [rule_created]      DATETIME       NOT NULL,
    [rule_modified]     DATETIME       NOT NULL,
    [rule_active]       INT            NOT NULL,
    [rule_definition]   NVARCHAR (MAX) NOT NULL,
    [rule_condition]    NVARCHAR (MAX) NOT NULL,
    [rule_eval_changed] NVARCHAR (MAX) NOT NULL,
    [rule_name]         NVARCHAR (255) NOT NULL,
    [rule_builtin]      CHAR (1)       NOT NULL,
    [rule_type]         NVARCHAR (255) NULL,
    [rule_order]        INT            NULL,
    [modified_by]       INT            NULL,
    CONSTRAINT [PK_AFW_RULE] PRIMARY KEY CLUSTERED ([rule_id] ASC),
    CONSTRAINT [UX_AFW_RULE] UNIQUE NONCLUSTERED ([rule_name] ASC, [rule_project_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_RULE].[IX01_AFW_RULE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_RULE]
    ON [dbo].[AFW_RULE]([rule_context_id] ASC, [rule_project_id] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_RULE].[IX02_AFW_RULE]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFW_RULE]
    ON [dbo].[AFW_RULE]([rule_context_id] ASC, [rule_type] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_RULE_ACTION]...';


GO
CREATE TABLE [dbo].[AFW_RULE_ACTION] (
    [ruac_id]             INT            IDENTITY (1, 1) NOT NULL,
    [ruac_rule_id]        INT            NOT NULL,
    [ruac_action_type_id] INT            NOT NULL,
    [ruac_order]          INT            NOT NULL,
    [ruac_parameters]     NVARCHAR (MAX) NULL,
    [modified_by]         INT            NULL,
    [modification_date]   DATETIME       NULL,
    CONSTRAINT [PK_AFW_RULE_ACTION] PRIMARY KEY CLUSTERED ([ruac_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_RULE_ACTION].[IX_RULE_ACTION]...';


GO
CREATE NONCLUSTERED INDEX [IX_RULE_ACTION]
    ON [dbo].[AFW_RULE_ACTION]([ruac_rule_id] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_RULE_ACTION_TYPE]...';


GO
CREATE TABLE [dbo].[AFW_RULE_ACTION_TYPE] (
    [acty_id]            INT            NOT NULL,
    [acty_context_id]    INT            NULL,
    [acty_name]          NVARCHAR (255) NOT NULL,
    [acty_class_name]    NVARCHAR (255) NOT NULL,
    [acty_assembly_path] NVARCHAR (255) NOT NULL,
    [ignore_condition]   BIT            NOT NULL,
    CONSTRAINT [PK_AFW_RULE_ACTION_TYPE] PRIMARY KEY CLUSTERED ([acty_id] ASC),
    CONSTRAINT [UX_AFW_RULE_ACTION_TYPE] UNIQUE NONCLUSTERED ([acty_name] ASC, [acty_class_name] ASC, [acty_assembly_path] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_RULE_CONTEXT]...';


GO
CREATE TABLE [dbo].[AFW_RULE_CONTEXT] (
    [ruco_id]          INT            NOT NULL,
    [ruco_assembly]    NVARCHAR (255) NOT NULL,
    [ruco_class_name]  NVARCHAR (255) NOT NULL,
    [ruco_property_id] NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_AFW_CONTEXT] PRIMARY KEY CLUSTERED ([ruco_id] ASC),
    CONSTRAINT [UX_AFW_CONTEXT] UNIQUE NONCLUSTERED ([ruco_class_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_RULE_EVALUATION_CACHE]...';


GO
CREATE TABLE [dbo].[AFW_RULE_EVALUATION_CACHE] (
    [context_id]      INT NOT NULL,
    [instance_id]     INT NOT NULL,
    [rule_id]         INT NOT NULL,
    [rule_evaluation] BIT NOT NULL,
    CONSTRAINT [PK_AFW_RULE_EVALUATION_CACHE] PRIMARY KEY CLUSTERED ([context_id] ASC, [instance_id] ASC, [rule_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_SATISFACTION_LEVEL]...';


GO
CREATE TABLE [dbo].[AFW_SATISFACTION_LEVEL] (
    [ConceptId] INT        NOT NULL,
    [Item]      INT        NOT NULL,
    [Value]     FLOAT (53) NOT NULL,
    CONSTRAINT [PK_AFW_SATISFACTION_LEVEL] PRIMARY KEY CLUSTERED ([ConceptId] ASC, [Item] ASC),
    CONSTRAINT [UX_AFW_SATISFACTION_LEVEL] UNIQUE NONCLUSTERED ([ConceptId] ASC, [Item] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_SCHEDULER]...';


GO
CREATE TABLE [dbo].[AFW_SCHEDULER] (
    [sche_id]             INT            IDENTITY (1, 1) NOT NULL,
    [sche_name]           NVARCHAR (50)  NOT NULL,
    [sche_description]    NVARCHAR (255) NULL,
    [sche_frecuency_type] NVARCHAR (50)  NOT NULL,
    [sche_recurse_every]  INT            NOT NULL,
    [sche_weekdays]       INT            NOT NULL,
    [sche_months]         INT            NOT NULL,
    [sche_cardinal_days]  INT            NOT NULL,
    [sche_ordinal_days]   INT            NOT NULL,
    [sche_start_date]     DATETIME       NULL,
    [sche_end_date]       DATETIME       NULL,
    [sche_task_id]        INT            NOT NULL,
    [sche_application_id] INT            NOT NULL,
    [sche_last_execution] DATETIME       NULL,
    [sche_next_execution] DATETIME       NULL,
    [sche_max_delay]      INT            NULL,
    [sche_creation_date]  DATETIME       NOT NULL,
    [sche_parameters]     NVARCHAR (MAX) NULL,
    [sche_builtin]        CHAR (1)       NOT NULL,
    [modified_by]         INT            NULL,
    [modification_date]   DATETIME       NULL,
    CONSTRAINT [PK_AFW_SCHEDULER] PRIMARY KEY CLUSTERED ([sche_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_SCHEDULER].[IX_AFW_SCHEDULER_EXECUTION]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_SCHEDULER_EXECUTION]
    ON [dbo].[AFW_SCHEDULER]([sche_next_execution] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_SETTINGS]...';


GO
CREATE TABLE [dbo].[AFW_SETTINGS] (
    [sett_id]             INT            IDENTITY (1, 1) NOT NULL,
    [sett_key]            NVARCHAR (55)  NOT NULL,
    [sett_application_id] INT            NOT NULL,
    [sett_value]          NVARCHAR (MAX) NOT NULL,
    [sett_description]    NVARCHAR (255) NULL,
    [sett_project_id]     INT            NULL,
    CONSTRAINT [PK_AFW_SETTINGS] PRIMARY KEY CLUSTERED ([sett_id] ASC),
    CONSTRAINT [UX_AFW_SETTINGS] UNIQUE NONCLUSTERED ([sett_key] ASC, [sett_application_id] ASC, [sett_project_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_SETTINGS].[IX_AFW_SETTINGS]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_SETTINGS]
    ON [dbo].[AFW_SETTINGS]([sett_key] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_ACTION_TYPE_CATALOGS]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_ACTION_TYPE_CATALOGS] (
    [actyca_id]                      INT            IDENTITY (1, 1) NOT NULL,
    [actyca_name]                    NVARCHAR (100) NOT NULL,
    [actyca_assembly_source_path]    NVARCHAR (MAX) NOT NULL,
    [actyca_class_action_name_space] NVARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_ACTION_TYPE_CATALOGS] PRIMARY KEY CLUSTERED ([actyca_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_ACTION_TYPE_STATE]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_ACTION_TYPE_STATE] (
    [actyst_id]             INT            IDENTITY (1, 1) NOT NULL,
    [actyst_state_id]       INT            NOT NULL,
    [actyst_action_type_id] INT            NOT NULL,
    [actyst_parameters]     NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_ACTION_TYPE_STATE] PRIMARY KEY CLUSTERED ([actyst_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_DEFINITION_CATALOGS]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_DEFINITION_CATALOGS] (
    [deca_id]           INT            IDENTITY (1, 1) NOT NULL,
    [deca_display_name] NVARCHAR (200) NOT NULL,
    [deca_description]  NVARCHAR (MAX) NULL,
    [deca_is_default]   BIT            NOT NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_DEFINITION_CATALOGS] PRIMARY KEY CLUSTERED ([deca_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_DEFINITIONS]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_DEFINITIONS] (
    [de_id]            INT            IDENTITY (1, 1) NOT NULL,
    [de_display_name]  NVARCHAR (200) NOT NULL,
    [de_description]   NVARCHAR (MAX) NULL,
    [de_project_id]    INT            NULL,
    [de_is_default]    BIT            NOT NULL,
    [de_created_at]    DATETIME       NOT NULL,
    [de_is_enabled]    BIT            NOT NULL,
    [de_branding]      NVARCHAR (MAX) NULL,
    [de_modificate_at] DATETIME       NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_DEFINITIONS] PRIMARY KEY CLUSTERED ([de_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_REASON_TRANSITION]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_REASON_TRANSITION] (
    [ratr_id]          INT            IDENTITY (1, 1) NOT NULL,
    [tr_id]            INT            NOT NULL,
    [ratr_description] NVARCHAR (200) NOT NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_REASON_TRANSITION] PRIMARY KEY CLUSTERED ([ratr_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_REASON_TRANSITION_CATALOG]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_REASON_TRANSITION_CATALOG] (
    [ratrca_id]          INT            IDENTITY (1, 1) NOT NULL,
    [trca_id]            INT            NOT NULL,
    [ratrca_description] NVARCHAR (200) NOT NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_REASON_TRANSITION_CATALOG] PRIMARY KEY CLUSTERED ([ratrca_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_STATE_CATALOGS]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_STATE_CATALOGS] (
    [stca_id]                     INT            IDENTITY (1, 1) NOT NULL,
    [stca_definition_catalogs_id] INT            NOT NULL,
    [stca_display_name]           NVARCHAR (200) NOT NULL,
    [stca_is_initial]             BIT            NOT NULL,
    [stca_is_end]                 BIT            NOT NULL,
    [stca_reference_app_id]       NVARCHAR (100) NULL,
    [stca_help_description]       NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_STATE_CATALOGS] PRIMARY KEY CLUSTERED ([stca_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_STATES]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_STATES] (
    [st_id]               INT            IDENTITY (1, 1) NOT NULL,
    [de_definition_id]    INT            NOT NULL,
    [st_display_name]     NVARCHAR (200) NOT NULL,
    [st_is_initial]       BIT            NOT NULL,
    [st_is_end]           BIT            NOT NULL,
    [st_reference_app_id] NVARCHAR (100) NULL,
    [st_help_description] NVARCHAR (MAX) NULL,
    [st_position_number]  INT            NOT NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_STATES] PRIMARY KEY CLUSTERED ([st_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_STATES_BY_ITEM_TIMES] (
    [id]      INT IDENTITY (1, 1) NOT NULL,
    [stateId] INT NOT NULL,
    [timeId]  INT NOT NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_STATES_BY_ITEM_TIMES] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_TRACE_CONTEXT]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_TRACE_CONTEXT] (
    [stc_id]         INT      IDENTITY (1, 1) NOT NULL,
    [stc_context_id] INT      NOT NULL,
    [stc_state_id]   INT      NOT NULL,
    [stc_tr_id]      INT      NULL,
    [stc_reason_id]  INT      NULL,
    [stc_date]       DATETIME NOT NULL,
    [stc_user_id]    INT      NOT NULL,
    PRIMARY KEY CLUSTERED ([stc_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_STATEMACHINE_TRACE_CONTEXT].[ID001_AFW_STATEMACHINE_TRACE_CONTEXT]...';


GO
CREATE NONCLUSTERED INDEX [ID001_AFW_STATEMACHINE_TRACE_CONTEXT]
    ON [dbo].[AFW_STATEMACHINE_TRACE_CONTEXT]([stc_context_id] ASC)
    INCLUDE([stc_id], [stc_date], [stc_reason_id], [stc_state_id], [stc_tr_id], [stc_user_id]);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_TRANSITION_CATALOGS]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_TRANSITION_CATALOGS] (
    [trca_id]                       INT            IDENTITY (1, 1) NOT NULL,
    [trca_state_catalogs_source_id] INT            NOT NULL,
    [trca_state_catalogs_target_id] INT            NOT NULL,
    [trca_display_name]             NVARCHAR (200) NULL,
    [trca_default_tran]             BIT            NOT NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_TRANSITION_CATALOGS] PRIMARY KEY CLUSTERED ([trca_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_STATEMACHINE_TRANSITIONS]...';


GO
CREATE TABLE [dbo].[AFW_STATEMACHINE_TRANSITIONS] (
    [tr_id]                       INT            IDENTITY (1, 1) NOT NULL,
    [tr_state_catalogs_source_id] INT            NOT NULL,
    [tr_state_catalogs_target_id] INT            NOT NULL,
    [tr_display_name]             NVARCHAR (200) NULL,
    [tr_default_tran]             BIT            NOT NULL,
    CONSTRAINT [PK_AFW_STATEMACHINE_TRANSITIONS] PRIMARY KEY CLUSTERED ([tr_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_SURVEY]...';


GO
CREATE TABLE [dbo].[AFW_SURVEY] (
    [Id]               INT             IDENTITY (1, 1) NOT NULL,
    [CompanyId]        INT             NULL,
    [ApplicationId]    INT             NOT NULL,
    [ProjectId]        INT             NULL,
    [CategoryId]       INT             NULL,
    [ConceptId]        INT             NULL,
    [Title]            NVARCHAR (1000) NOT NULL,
    [Name]             NVARCHAR (1000) NOT NULL,
    [Description]      NVARCHAR (2000) NULL,
    [StartDate]        DATETIME        NULL,
    [EndDate]          DATETIME        NULL,
    [Status]           INT             NOT NULL,
    [ExitPage]         NVARCHAR (500)  NULL,
    [Observations]     NVARCHAR (100)  NULL,
    [CreatedBy]        INT             NOT NULL,
    [ModifiedBy]       INT             NULL,
    [CreationDate]     DATETIME        NOT NULL,
    [ModificationDate] DATETIME        NULL,
    [IsDeleted]        INT             NULL,
    CONSTRAINT [PK_SURVEY] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_SURVEY_ANSWERS]...';


GO
CREATE TABLE [dbo].[AFW_SURVEY_ANSWERS] (
    [Id]               INT             IDENTITY (1, 1) NOT NULL,
    [Token]            NVARCHAR (100)  NOT NULL,
    [QuestionId]       INT             NOT NULL,
    [ResponseChoiceId] INT             NOT NULL,
    [ResponseValue]    NVARCHAR (4000) NULL,
    CONSTRAINT [PK_AFW_SURVEY_ANSWERS] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_SURVEY_CONFIGURATION]...';


GO
CREATE TABLE [dbo].[AFW_SURVEY_CONFIGURATION] (
    [Id]                INT           IDENTITY (1, 1) NOT NULL,
    [ApplicationId]     INT           NULL,
    [ProjectId]         INT           NOT NULL,
    [FrecuencyType]     INT           NULL,
    [InternalMonitors]  VARCHAR (MAX) NULL,
    [ExternalMonitors]  VARCHAR (MAX) NULL,
    [SatisfactionLevel] FLOAT (53)    NULL,
    CONSTRAINT [PK_CONFIGURATION] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_SURVEY_QRESP_CHOICE]...';


GO
CREATE TABLE [dbo].[AFW_SURVEY_QRESP_CHOICE] (
    [Id]            INT            IDENTITY (1, 1) NOT NULL,
    [QuestionId]    INT            NOT NULL,
    [Text]          NVARCHAR (200) NOT NULL,
    [ResponseOrder] INT            NOT NULL,
    CONSTRAINT [PK_AFW_SURVEY_QRESP_CHOICE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_SURVEY_QUESTION]...';


GO
CREATE TABLE [dbo].[AFW_SURVEY_QUESTION] (
    [Id]                     INT             IDENTITY (1, 1) NOT NULL,
    [QuestionTypeId]         INT             NOT NULL,
    [SurveyId]               INT             NOT NULL,
    [Title]                  NVARCHAR (4000) NOT NULL,
    [HelpText]               NVARCHAR (200)  NULL,
    [Mandatory]              INT             NOT NULL,
    [QuestionOrder]          INT             NOT NULL,
    [IncludedToReport]       INT             NOT NULL,
    [MaxValue]               INT             NULL,
    [JustificationRequired]  INT             NOT NULL,
    [JustificationLabel]     NVARCHAR (200)  NULL,
    [JustificationMandatory] INT             NOT NULL,
    [ChoiceMandatory]        INT             NOT NULL,
    [CreatedBy]              INT             NOT NULL,
    [CreationDate]           DATETIME        NOT NULL,
    [ModifiedBy]             INT             NULL,
    [ModificationDate]       DATETIME        NULL,
    [IsDeleted]              INT             NULL,
    CONSTRAINT [PK_AFW_QUESTION] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_SURVEY_QUESTION_TYPE]...';


GO
CREATE TABLE [dbo].[AFW_SURVEY_QUESTION_TYPE] (
    [Id]   INT           NOT NULL,
    [Name] NVARCHAR (70) NULL,
    CONSTRAINT [PK_QUESTION_TYPE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_SURVEY_USER]...';


GO
CREATE TABLE [dbo].[AFW_SURVEY_USER] (
    [Id]             INT            IDENTITY (1, 1) NOT NULL,
    [SurveyId]       INT            NOT NULL,
    [Token]          NVARCHAR (100) NOT NULL,
    [CreationDate]   DATETIME       NULL,
    [ConceptItemId]  INT            NULL,
    [InvitationSent] INT            NULL,
    [FinishedAt]     DATETIME       NULL,
    [DataConcept]    NVARCHAR (MAX) NULL,
    [Email]          NVARCHAR (100) NULL,
    CONSTRAINT [PK_SURVEY_USER] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_AFW_SURVEY_USER] UNIQUE NONCLUSTERED ([Token] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_TASKS]...';


GO
CREATE TABLE [dbo].[AFW_TASKS] (
    [task_id]           INT            NOT NULL,
    [task_name]         NVARCHAR (50)  NOT NULL,
    [task_class_name]   NVARCHAR (255) NOT NULL,
    [task_asembly_path] NVARCHAR (255) NOT NULL,
    [task_asynchronous] INT            NOT NULL,
    CONSTRAINT [PK_AFW_TASKS] PRIMARY KEY CLUSTERED ([task_id] ASC),
    CONSTRAINT [UX_AFW_TASKS] UNIQUE NONCLUSTERED ([task_name] ASC, [task_class_name] ASC, [task_asembly_path] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_TEMPLATES]...';


GO
CREATE TABLE [dbo].[AFW_TEMPLATES] (
    [Id]           INT            IDENTITY (1, 1) NOT NULL,
    [CategoryId]   INT            NOT NULL,
    [ProjectId]    INT            NULL,
    [CompanyId]    INT            NULL,
    [CreatedBy]    INT            NOT NULL,
    [ModifiedBy]   INT            NULL,
    [Name]         NVARCHAR (50)  NOT NULL,
    [Description]  NVARCHAR (250) NULL,
    [Template]     NVARCHAR (MAX) NOT NULL,
    [CreationDate] DATETIME       NOT NULL,
    [LastUpdate]   DATETIME       NULL,
    CONSTRAINT [PK_TEMPLATE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_USER_SESSION]...';


GO
CREATE TABLE [dbo].[AFW_USER_SESSION] (
    [id]             INT IDENTITY (1, 1) NOT NULL,
    [application_id] INT NOT NULL,
    [token_id]       INT NOT NULL,
    CONSTRAINT [PK_AFW_USER_SESSION] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_USER_SESSION] UNIQUE NONCLUSTERED ([token_id] ASC, [application_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_USER_SESSION_LOG]...';


GO
CREATE TABLE [dbo].[AFW_USER_SESSION_LOG] (
    [session_id]     INT            NOT NULL,
    [user_id]        INT            NOT NULL,
    [user_name]      NVARCHAR (255) NOT NULL,
    [login_date]     DATETIME       NULL,
    [logout_date]    DATETIME       NULL,
    [host]           NVARCHAR (50)  NULL,
    [application_id] INT            NOT NULL,
    CONSTRAINT [PK_AFW_USER_SESSION_LOG] PRIMARY KEY CLUSTERED ([session_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_USER_SESSION_LOG].[IX01_AFW_USER_SESSION_LOG]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_USER_SESSION_LOG]
    ON [dbo].[AFW_USER_SESSION_LOG]([login_date] DESC);


GO
PRINT N'Creating Table [dbo].[AFW_USER_SESSION_TOKEN]...';


GO
CREATE TABLE [dbo].[AFW_USER_SESSION_TOKEN] (
    [id]       INT           NOT NULL,
    [token]    NVARCHAR (40) NOT NULL,
    [validity] DATETIME      NOT NULL,
    CONSTRAINT [PK_USER_SESSION_TOKEN] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_USER_SESSION_TOKEN] UNIQUE NONCLUSTERED ([token] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_USERS]...';


GO
CREATE TABLE [dbo].[AFW_USERS] (
    [user_id]                INT             IDENTITY (1, 1) NOT NULL,
    [user_name]              NVARCHAR (255)  NOT NULL,
    [user_nick_name]         NVARCHAR (255)  NULL,
    [user_codperfil]         INT             NULL,
    [user_department_code]   INT             NULL,
    [user_address1]          NVARCHAR (255)  NULL,
    [user_address2]          NVARCHAR (255)  NULL,
    [user_address3]          NVARCHAR (255)  NULL,
    [user_phone1]            NVARCHAR (255)  NULL,
    [user_phone2]            NVARCHAR (255)  NULL,
    [user_phone3]            NVARCHAR (255)  NULL,
    [user_ext]               NVARCHAR (20)   NULL,
    [user_fax]               NVARCHAR (20)   NULL,
    [user_mobile]            NVARCHAR (255)  NULL,
    [user_email]             NVARCHAR (255)  NULL,
    [user_chief]             INT             NULL,
    [user_level_knowledge]   INT             NULL,
    [user_title_id]          INT             NULL,
    [user_comments]          NVARCHAR (255)  NULL,
    [user_level]             INT             NULL,
    [user_country_id]        INT             NULL,
    [user_city_id]           INT             NULL,
    [user_site_id]           INT             NULL,
    [user_building_id]       INT             NULL,
    [user_floor_id]          INT             NULL,
    [user_company_id]        INT             NULL,
    [user_numberdepid]       INT             NULL,
    [user_active]            BIT             NOT NULL,
    [user_birthdate]         DATETIME        NULL,
    [user_picture]           NVARCHAR (255)  NULL,
    [user_language]          NVARCHAR (5)    NULL,
    [user_identity_type]     NVARCHAR (20)   NULL,
    [user_identity_number]   NVARCHAR (14)   NULL,
    [user_builtin]           BIT             NOT NULL,
    [user_creation_date]     DATETIME        NOT NULL,
    [user_zone]              NVARCHAR (256)  NULL,
    [user_authentication_id] INT             NULL,
    [user_guid_ldap]         NVARCHAR (50)   NULL,
    [user_path_ldap]         NVARCHAR (1024) NULL,
    [user_last_login_date]   DATETIME        NULL,
    [update_date]            DATETIME        NULL,
    [identity_type_id]       INT             NULL,
    [modified_by]            INT             NULL,
    CONSTRAINT [PK_AFW_USERS] PRIMARY KEY CLUSTERED ([user_id] ASC),
    CONSTRAINT [UX_AFW_USERS] UNIQUE NONCLUSTERED ([user_nick_name] ASC, [user_authentication_id] ASC, [user_guid_ldap] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_USERS].[IX_AFW_USERS]...';


GO
CREATE NONCLUSTERED INDEX [IX_AFW_USERS]
    ON [dbo].[AFW_USERS]([user_guid_ldap] ASC, [user_authentication_id] ASC);


GO
PRINT N'Creating Index [dbo].[AFW_USERS].[IX02_AFW_USERS]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFW_USERS]
    ON [dbo].[AFW_USERS]([user_name] ASC)
    INCLUDE([user_id], [user_address1], [user_address2], [user_address3], [user_birthdate], [user_building_id], [user_chief], [user_city_id], [user_comments], [user_company_id], [user_country_id], [user_language], [user_department_code], [user_numberdepid], [user_identity_number], [user_identity_type], [user_email], [user_ext], [user_fax], [user_floor_id], [user_guid_ldap], [user_active], [user_builtin], [user_title_id], [user_mobile], [update_date], [user_phone1], [user_phone2], [user_phone3], [user_picture], [user_authentication_id], [user_site_id], [user_zone], [user_nick_name]);


GO
PRINT N'Creating Index [dbo].[AFW_USERS].[IX03_AFW_USERS]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AFW_USERS]
    ON [dbo].[AFW_USERS]([user_email] ASC);


GO
PRINT N'Creating Table [dbo].[AFW_USERS_AUTHENTICATION]...';


GO
CREATE TABLE [dbo].[AFW_USERS_AUTHENTICATION] (
    [usau_id]                        INT             NOT NULL,
    [usau_access_token]              NVARCHAR (255)  NULL,
    [usau_password]                  NVARCHAR (2000) NULL,
    [usau_password_salt]             NVARCHAR (128)  NULL,
    [usau_password_change_date]      DATETIME        NULL,
    [usau_num_fail_password_attempt] INT             NULL,
    [usau_password_expiration]       DATETIME        NULL,
    [usau_is_locked_out]             INT             NULL,
    [usau_last_locked_out_date]      DATETIME        NULL,
    [usau_last_change_request_date]  DATETIME        NULL,
    CONSTRAINT [PK_AFW_USERS_AUTHENTICATION] PRIMARY KEY CLUSTERED ([usau_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_WEBHOOK]...';


GO
CREATE TABLE [dbo].[AFW_WEBHOOK] (
    [id]                 BIGINT          IDENTITY (1, 1) NOT NULL,
    [verb]               NVARCHAR (10)   NOT NULL,
    [url]                NVARCHAR (MAX)  NOT NULL,
    [created]            DATETIME        NOT NULL,
    [remaining_attempts] SMALLINT        NULL,
    [headers]            NVARCHAR (MAX)  NULL,
    [body]               NVARCHAR (MAX)  NULL,
    [send_status]        SMALLINT        NULL,
    [content_type]       NVARCHAR (4000) NULL,
    [http_status_code]   SMALLINT        NULL,
    [response]           NVARCHAR (MAX)  NULL,
    [exception_web]      NVARCHAR (100)  NULL,
    [time_out]           NVARCHAR (30)   NULL,
    [modified_by]        INT             NULL,
    [modification_date]  DATETIME        NULL,
    CONSTRAINT [PK_AFW_WEBHOOK] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AFW_WEBHOOK_HISTORY]...';


GO
CREATE TABLE [dbo].[AFW_WEBHOOK_HISTORY] (
    [id]               BIGINT          NOT NULL,
    [body]             NVARCHAR (MAX)  NULL,
    [created]          DATETIME        NULL,
    [content_type]     NVARCHAR (4000) NULL,
    [exception_web]    NVARCHAR (100)  NULL,
    [send_status]      SMALLINT        NULL,
    [modified_date]    DATETIME        NULL,
    [headers]          NVARCHAR (MAX)  NULL,
    [http_status_code] SMALLINT        NULL,
    [response]         NVARCHAR (MAX)  NULL,
    [url]              NVARCHAR (MAX)  NOT NULL,
    [verb]             NVARCHAR (10)   NOT NULL,
    CONSTRAINT [PK_AFW_WEBHOOK_HISTORY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_WEBHOOK_HISTORY].[IX01_AFW_WEBHOOK_HISTORY]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_WEBHOOK_HISTORY]
    ON [dbo].[AFW_WEBHOOK_HISTORY]([modified_date] DESC);


GO
PRINT N'Creating Table [dbo].[AFW_WORKER_LOG]...';


GO
CREATE TABLE [dbo].[AFW_WORKER_LOG] (
    [work_id]             INT            IDENTITY (1, 1) NOT NULL,
    [work_task_id]        INT            NOT NULL,
    [work_creation_date]  DATETIME       NULL,
    [work_execution_date] DATETIME       NULL,
    [work_success]        INT            NOT NULL,
    [work_elapsed]        BIGINT         NOT NULL,
    [work_message]        NVARCHAR (MAX) NULL,
    [work_parameters]     NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AFW_WORKER_LOG] PRIMARY KEY CLUSTERED ([work_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AFW_WORKER_LOG].[IX01_AFW_WORKER_LOG]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AFW_WORKER_LOG]
    ON [dbo].[AFW_WORKER_LOG]([work_execution_date] ASC)
    INCLUDE([work_task_id], [work_creation_date], [work_success], [work_elapsed]);


GO
PRINT N'Creating Index [dbo].[AFW_WORKER_LOG].[IX02_AFW_WORKER_LOG]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AFW_WORKER_LOG]
    ON [dbo].[AFW_WORKER_LOG]([work_creation_date] DESC);


GO
PRINT N'Creating Table [dbo].[AI_ASSISTANT]...';


GO
CREATE TABLE [dbo].[AI_ASSISTANT] (
    [id]                      INT            IDENTITY (1, 1) NOT NULL,
    [task_id]                 INT            NOT NULL,
    [language]                NVARCHAR (6)   NOT NULL,
    [assistant_provider_id]   NVARCHAR (50)  NULL,
    [assistant_provider_name] NVARCHAR (100) NULL,
    [state]                   INT            NOT NULL,
    [state_sync]              INT            NULL,
    [date_start_sync]         DATETIME       NULL,
    [date_end_sync]           DATETIME       NULL,
    CONSTRAINT [PK_AI_ASSISTANT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AI_ASSISTANT] UNIQUE NONCLUSTERED ([task_id] ASC, [language] ASC)
);


GO
PRINT N'Creating Table [dbo].[AI_ENDPOINT]...';


GO
CREATE TABLE [dbo].[AI_ENDPOINT] (
    [id]             INT             IDENTITY (1, 1) NOT NULL,
    [name]           NVARCHAR (250)  NOT NULL,
    [provider_id]    INT             NOT NULL,
    [url]            NVARCHAR (500)  NOT NULL,
    [key]            NVARCHAR (4000) NOT NULL,
    [created_date]   DATETIME        NOT NULL,
    [application_id] INT             NULL,
    CONSTRAINT [PK_AI_ENDPOINT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AI_LOG]...';


GO
CREATE TABLE [dbo].[AI_LOG] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [created_date] DATETIME       NOT NULL,
    [user_id]      INT            NOT NULL,
    [data]         NVARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_AI_LOG] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AI_MODEL]...';


GO
CREATE TABLE [dbo].[AI_MODEL] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (250) NOT NULL,
    [endpoint_id] INT            NOT NULL,
    [model_type]  INT            NOT NULL,
    [language]    NVARCHAR (6)   NULL,
    CONSTRAINT [PK_AI_MODEL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AI_PROVIDER]...';


GO
CREATE TABLE [dbo].[AI_PROVIDER] (
    [id]   INT            NOT NULL,
    [name] NVARCHAR (250) NOT NULL,
    CONSTRAINT [PK_AI_PROVIDER] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AI_TASK]...';


GO
CREATE TABLE [dbo].[AI_TASK] (
    [id]                   INT            NOT NULL,
    [name]                 NVARCHAR (250) NOT NULL,
    [model_type]           INT            NOT NULL,
    [translation]          NVARCHAR (MAX) NOT NULL,
    [apply_multi_language] BIT            NOT NULL,
    [default_params]       NVARCHAR (MAX) NOT NULL,
    [enabled]              BIT            NOT NULL,
    [order]                INT            NOT NULL,
    CONSTRAINT [PK_AI_TASK] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AI_TASK_APPLICATION]...';


GO
CREATE TABLE [dbo].[AI_TASK_APPLICATION] (
    [task_id]        INT NOT NULL,
    [application_id] INT NOT NULL,
    CONSTRAINT [PK_AI_TASK_APPLICATION] PRIMARY KEY CLUSTERED ([task_id] ASC, [application_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AI_TASK_CONFIGURATION]...';


GO
CREATE TABLE [dbo].[AI_TASK_CONFIGURATION] (
    [task_id]         INT            NOT NULL,
    [model_id]        INT            NOT NULL,
    [params]          NVARCHAR (MAX) NOT NULL,
    [language]        NVARCHAR (6)   NOT NULL,
    [is_delete]       BIT            NOT NULL,
    [is_restart_sync] BIT            NOT NULL,
    CONSTRAINT [PK_AI_TASK_CONFIGURATION] PRIMARY KEY CLUSTERED ([task_id] ASC, [language] ASC)
);


GO
PRINT N'Creating Table [dbo].[AI_VECTOR]...';


GO
CREATE TABLE [dbo].[AI_VECTOR] (
    [id]                   INT             IDENTITY (1, 1) NOT NULL,
    [assistant_id]         INT             NOT NULL,
    [vector_provider_id]   NVARCHAR (100)  NULL,
    [vector_provider_name] NVARCHAR (100)  NULL,
    [type]                 NVARCHAR (100)  NULL,
    [type_id]              INT             NULL,
    [state]                INT             NOT NULL,
    [dynamic_type]         INT             NULL,
    [metadata]             NVARCHAR (1000) NULL,
    [hash_data]            NVARCHAR (50)   NULL,
    CONSTRAINT [PK_AI_VECTOR] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AI_VECTOR].[UX01_AI_VECTOR]...';


GO
CREATE UNIQUE NONCLUSTERED INDEX [UX01_AI_VECTOR]
    ON [dbo].[AI_VECTOR]([vector_provider_id] ASC) WHERE [vector_provider_id] IS NOT NULL;


GO
PRINT N'Creating Table [dbo].[AI_VECTOR_FILE]...';


GO
CREATE TABLE [dbo].[AI_VECTOR_FILE] (
    [id]               INT            IDENTITY (1, 1) NOT NULL,
    [vector_id]        INT            NOT NULL,
    [file_provider_id] NVARCHAR (100) NULL,
    [type]             NVARCHAR (100) NOT NULL,
    [type_id]          INT            NOT NULL,
    [date_created]     DATETIME       NOT NULL,
    [date_modified]    DATETIME       NULL,
    [date_sync]        DATETIME       NULL,
    [state]            INT            NOT NULL,
    CONSTRAINT [PK_AI_VECTOR_FILE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AIC_ATTACHMENT]...';


GO
CREATE TABLE [dbo].[AIC_ATTACHMENT] (
    [id]                 NVARCHAR (100) NOT NULL,
    [integration_id]     INT            NOT NULL,
    [external_id]        NVARCHAR (100) NOT NULL,
    [aranda_id]          INT            NOT NULL,
    [remaining_attempts] SMALLINT       NOT NULL,
    [created]            DATETIME       NOT NULL,
    [send_status]        SMALLINT       NULL,
    [modified_date]      DATETIME       NULL,
    [response]           NVARCHAR (MAX) NULL,
    [parameter_external] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AIC_ATTACHMENT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AIC_ATTACHMENT_HISTORY]...';


GO
CREATE TABLE [dbo].[AIC_ATTACHMENT_HISTORY] (
    [id]                 NVARCHAR (100) NOT NULL,
    [integration_id]     INT            NOT NULL,
    [aranda_id]          INT            NOT NULL,
    [external_id]        NVARCHAR (100) NOT NULL,
    [response]           NVARCHAR (MAX) NULL,
    [created]            DATETIME       NOT NULL,
    [send_status]        SMALLINT       NULL,
    [modified_date]      DATETIME       NULL,
    [parameter_external] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AIC_ATTACHMENT_HISTORY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AIC_ATTACHMENT_HISTORY].[IX01_AIC_ATTACHMENT_HISTORY]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AIC_ATTACHMENT_HISTORY]
    ON [dbo].[AIC_ATTACHMENT_HISTORY]([modified_date] ASC);


GO
PRINT N'Creating Table [dbo].[AIC_CONFIGURATION]...';


GO
CREATE TABLE [dbo].[AIC_CONFIGURATION] (
    [id]                            NVARCHAR (100) NOT NULL,
    [id_integration]                NVARCHAR (100) NOT NULL,
    [app_aranda_configuration]      NVARCHAR (MAX) NOT NULL,
    [app_integration_configuration] NVARCHAR (MAX) NOT NULL,
    [file_configuration]            NVARCHAR (MAX) NOT NULL,
    [last_update_dateTime]          DATETIME       NULL,
    [scheduling_id]                 INT            NULL,
    [reset_sync]                    BIT            NOT NULL,
    CONSTRAINT [PK_AIC_CONFIGURATION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AIC_DEFINITION]...';


GO
CREATE TABLE [dbo].[AIC_DEFINITION] (
    [id]                         NVARCHAR (100) NOT NULL,
    [title]                      NVARCHAR (70)  NOT NULL,
    [description]                NVARCHAR (255) NULL,
    [schema_file_configuration]  NVARCHAR (MAX) NOT NULL,
    [icon]                       NVARCHAR (MAX) NULL,
    [aranda_app]                 NVARCHAR (255) NOT NULL,
    [integration_app]            NVARCHAR (255) NOT NULL,
    [class_name]                 NVARCHAR (255) NOT NULL,
    [assembly_path]              NVARCHAR (MAX) NOT NULL,
    [task_scheduling]            BIT            NOT NULL,
    [default_file_configuration] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AIC_DEFINITION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_AFW_APPLICATION]...';


GO
CREATE TABLE [dbo].[AMDM_AFW_APPLICATION] (
    [afwapp_id]     INT            IDENTITY (1, 1) NOT NULL,
    [afwapp_bundle] NVARCHAR (512) NULL,
    [afwapp_name]   NVARCHAR (512) NULL,
    PRIMARY KEY CLUSTERED ([afwapp_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_AFW_APPLICATIONS_CLUSTER]...';


GO
CREATE TABLE [dbo].[AMDM_AFW_APPLICATIONS_CLUSTER] (
    [afwcluster_id]     INT            IDENTITY (1, 1) NOT NULL,
    [afwcluster_name]   NVARCHAR (200) NULL,
    [afwcluster_pageId] INT            NULL,
    PRIMARY KEY CLUSTERED ([afwcluster_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_AFW_APPLICATIONS_PAGE]...';


GO
CREATE TABLE [dbo].[AMDM_AFW_APPLICATIONS_PAGE] (
    [afwpage_id]   INT            IDENTITY (1, 1) NOT NULL,
    [afwpage_name] NVARCHAR (200) NULL,
    PRIMARY KEY CLUSTERED ([afwpage_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_AFW_APPS_PER_CLUSTERS]...';


GO
CREATE TABLE [dbo].[AMDM_AFW_APPS_PER_CLUSTERS] (
    [appcluster_afwappid]     INT NOT NULL,
    [appcluster_afwclusterid] INT NOT NULL,
    PRIMARY KEY CLUSTERED ([appcluster_afwappid] ASC, [appcluster_afwclusterid] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_AGENTTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_AGENTTYPE] (
    [agenttype_id]          INT             IDENTITY (1, 1) NOT NULL,
    [agenttype_bundleid]    NVARCHAR (64)   NULL,
    [agenttype_platformid]  INT             NULL,
    [agenttype_agentname]   NVARCHAR (64)   NULL,
    [agenttype_downloadurl] NVARCHAR (1024) NULL,
    PRIMARY KEY CLUSTERED ([agenttype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_ALERT_LOCATION]...';


GO
CREATE TABLE [dbo].[AMDM_ALERT_LOCATION] (
    [alertloc_id]         INT IDENTITY (1, 1) NOT NULL,
    [alertloc_alertid]    INT NULL,
    [alertloc_locationid] INT NULL,
    [alertloc_zoneid]     INT NULL,
    PRIMARY KEY CLUSTERED ([alertloc_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_ANDROIDFWUSERDETAILS]...';


GO
CREATE TABLE [dbo].[AMDM_ANDROIDFWUSERDETAILS] (
    [userafw_id]              INT            IDENTITY (1, 1) NOT NULL,
    [userafw_token]           NVARCHAR (512) NULL,
    [userafw_tokenset]        BIT            NULL,
    [userafw_deviceid]        INT            NULL,
    [userafw_googleuserid]    VARCHAR (1024) NULL,
    [userafw_isdeviceaccount] BIT            NULL,
    PRIMARY KEY CLUSTERED ([userafw_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APNSCERTIFICATE]...';


GO
CREATE TABLE [dbo].[AMDM_APNSCERTIFICATE] (
    [apns_id]               INT             IDENTITY (1, 1) NOT NULL,
    [apns_csrprivatekey]    VARBINARY (MAX) NULL,
    [apns_csrpublickey]     VARBINARY (MAX) NULL,
    [apns_finalpushcert]    VARBINARY (MAX) NULL,
    [apns_pushcertpassword] NVARCHAR (MAX)  NULL,
    [apns_pushcertexpiry]   DATETIME        NULL,
    [apns_updatecertdate]   DATETIME        NULL,
    [apns_topic]            NVARCHAR (MAX)  NULL,
    [apns_active]           BIT             NULL,
    [apns_statusgen]        INT             NULL,
    [apns_companymail]      NVARCHAR (MAX)  NULL,
    [apns_certificatename]  NVARCHAR (MAX)  NULL,
    [apns_companyname]      NVARCHAR (MAX)  NULL,
    [apns_certcode]         NVARCHAR (MAX)  NULL,
    [apns_scheduleId]       INT             NULL,
    CONSTRAINT [PK_AMDMAPNSCERTIFICATE] PRIMARY KEY CLUSTERED ([apns_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APNSGENERATIONSTATUS]...';


GO
CREATE TABLE [dbo].[AMDM_APNSGENERATIONSTATUS] (
    [apnsgenstat_id]   INT           NOT NULL,
    [apnsgenstat_name] NVARCHAR (64) NULL,
    CONSTRAINT [PK_AMDMAPNSGENERATIONSTATUS] PRIMARY KEY CLUSTERED ([apnsgenstat_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPBATTERYUSAGE_HEALTHINFO]...';


GO
CREATE TABLE [dbo].[AMDM_APPBATTERYUSAGE_HEALTHINFO] (
    [packagename]         VARCHAR (512) NOT NULL,
    [percentusage]        FLOAT (53)    NOT NULL,
    [devicehealthinfo_id] INT           NOT NULL,
    CONSTRAINT [PK_AMDM_APPBATTERYUSAGE_HEALTHINFO] PRIMARY KEY CLUSTERED ([packagename] ASC, [devicehealthinfo_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPCATEGORY]...';


GO
CREATE TABLE [dbo].[AMDM_APPCATEGORY] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (50)  NULL,
    [description] NVARCHAR (256) NULL,
    [parent_id]   INT            NULL,
    CONSTRAINT [PK_AMDMAPPCATEGORY] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [AK01_AMDMAPPCATEGORY] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPLICATION_METRICS]...';


GO
CREATE TABLE [dbo].[AMDM_APPLICATION_METRICS] (
    [user_id]          INT      NOT NULL,
    [device_id]        INT      NOT NULL,
    [app_id]           INT      NOT NULL,
    [dimdate_id]       INT      NOT NULL,
    [usetime]          INT      NULL,
    [celldata]         BIGINT   NULL,
    [totalworkingtime] INT      NULL,
    [lastupdate]       DATETIME NULL,
    CONSTRAINT [PK_AMDMAPPLICATIONMETRICS] PRIMARY KEY CLUSTERED ([user_id] ASC, [device_id] ASC, [app_id] ASC, [dimdate_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPRAMUSAGE_HEALTHINFO]...';


GO
CREATE TABLE [dbo].[AMDM_APPRAMUSAGE_HEALTHINFO] (
    [packagename]         VARCHAR (512) NOT NULL,
    [percentusage]        FLOAT (53)    NOT NULL,
    [devicehealthinfo_id] INT           NOT NULL,
    CONSTRAINT [PK_AMDM_APPRAMUSAGE_HEALTHINFO] PRIMARY KEY CLUSTERED ([packagename] ASC, [devicehealthinfo_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPS_AFW_ASSIGNED]...';


GO
CREATE TABLE [dbo].[AMDM_APPS_AFW_ASSIGNED] (
    [id]             INT            IDENTITY (1, 1) NOT NULL,
    [googleuserid]   VARCHAR (1024) NULL,
    [googledeviceid] VARCHAR (1024) NULL,
    [bundleid]       NVARCHAR (512) NULL,
    [synchronized]   BIT            NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPS_AFWMANAGEDPROPERTIES]...';


GO
CREATE TABLE [dbo].[AMDM_APPS_AFWMANAGEDPROPERTIES] (
    [appsmp_id]                INT            IDENTITY (1, 1) NOT NULL,
    [appsmp_propertyname]      NVARCHAR (128) NULL,
    [appsmp_propertytypevalue] NVARCHAR (20)  NULL,
    [appsmp_propertyvalue]     NVARCHAR (MAX) NULL,
    [appsmp_appsinfobundleid]  NVARCHAR (513) NULL,
    PRIMARY KEY CLUSTERED ([appsmp_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPS_ASSIGNED]...';


GO
CREATE TABLE [dbo].[AMDM_APPS_ASSIGNED] (
    [user_id]          INT       NOT NULL,
    [app_id]           INT       NOT NULL,
    [google_device_id] CHAR (16) NOT NULL,
    [synchronized]     BIT       NULL,
    CONSTRAINT [PK_AMDM_APPS_ASSIGNED] PRIMARY KEY CLUSTERED ([user_id] ASC, [app_id] ASC, [google_device_id] ASC) WITH (FILLFACTOR = 80, PAD_INDEX = ON)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPS_NONSYSTEMAPPS]...';


GO
CREATE TABLE [dbo].[AMDM_APPS_NONSYSTEMAPPS] (
    [app_id]         INT          IDENTITY (1, 1) NOT NULL,
    [app_name]       VARCHAR (64) NULL,
    [app_bundleid]   VARCHAR (64) NULL,
    [app_platformid] INT          NOT NULL,
    PRIMARY KEY CLUSTERED ([app_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPSINFO_CATEGORY]...';


GO
CREATE TABLE [dbo].[AMDM_APPSINFO_CATEGORY] (
    [application_id] INT NOT NULL,
    [appcategory_id] INT NOT NULL,
    CONSTRAINT [PK_AMDMAPPSINFORMATIONAPPCATEGORY] PRIMARY KEY CLUSTERED ([application_id] ASC, [appcategory_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPSINFORMATION]...';


GO
CREATE TABLE [dbo].[AMDM_APPSINFORMATION] (
    [id]               INT             IDENTITY (1, 1) NOT NULL,
    [bundleid]         NVARCHAR (512)  NULL,
    [version]          NVARCHAR (64)   NULL,
    [iconurl]          NVARCHAR (512)  NULL,
    [supporteddevices] NVARCHAR (2048) NULL,
    [companydev]       NVARCHAR (128)  NULL,
    [lastupdate]       DATETIME        NULL,
    [nextupdate]       DATETIME        NULL,
    [avgrating]        NCHAR (20)      NULL,
    [iostrackid]       VARCHAR (64)    NULL,
    [iscorporate]      BIT             NULL,
    [isprocessed]      BIT             NULL,
    [price]            VARCHAR (16)    NULL,
    [appfile]          NVARCHAR (MAX)  NULL,
    [appiconfile]      NVARCHAR (MAX)  NULL,
    [platform_id]      INT             NULL,
    [hasdevicecount]   BIT             NULL,
    [devicecount]      INT             NULL,
    [issystem]         BIT             NOT NULL,
    [isvisible]        BIT             NOT NULL,
    [isafw]            BIT             NOT NULL,
    [isprivate]        BIT             NOT NULL,
    [urlexternal]      NVARCHAR (2048) NULL,
    [isproductive]     BIT             NULL,
    [synchronized]     BIT             NULL,
    CONSTRAINT [PK_AMDMAPPSINFORMATION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_APPSINFORMATION].[IX01_AMDMAPPSINFORMATION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMAPPSINFORMATION]
    ON [dbo].[AMDM_APPSINFORMATION]([id] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_APPSINFORMATION].[IX02_AMDMAPPSINFORMATION]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AMDMAPPSINFORMATION]
    ON [dbo].[AMDM_APPSINFORMATION]([bundleid] ASC, [platform_id] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_APPSINFORMATION_TMP]...';


GO
CREATE TABLE [dbo].[AMDM_APPSINFORMATION_TMP] (
    [app_id]          INT            IDENTITY (1, 1) NOT NULL,
    [app_productId]   NVARCHAR (512) NULL,
    [app_productType] NVARCHAR (50)  NULL,
    PRIMARY KEY CLUSTERED ([app_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_APPSINFORMATIONDETAIL]...';


GO
CREATE TABLE [dbo].[AMDM_APPSINFORMATIONDETAIL] (
    [appsinfodetail_id]          INT            IDENTITY (1, 1) NOT NULL,
    [appsinfodetail_lang]        NCHAR (20)     NULL,
    [appsinfodetail_name]        NVARCHAR (512) NULL,
    [appsinfodetail_description] NVARCHAR (MAX) NULL,
    [appsinfodetail_urldownload] NVARCHAR (512) NULL,
    [appsinfodetail_genres]      NVARCHAR (64)  NULL,
    [appsinfodetail_appid]       INT            NULL,
    PRIMARY KEY CLUSTERED ([appsinfodetail_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_APPSINFORMATIONDETAIL].[IX01_AMDMAPPSINFORMATIONDETAIL]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMAPPSINFORMATIONDETAIL]
    ON [dbo].[AMDM_APPSINFORMATIONDETAIL]([appsinfodetail_appid] ASC)
    INCLUDE([appsinfodetail_description], [appsinfodetail_genres], [appsinfodetail_lang], [appsinfodetail_name], [appsinfodetail_urldownload]);


GO
PRINT N'Creating Table [dbo].[AMDM_APPSINFORMATIONEXE]...';


GO
CREATE TABLE [dbo].[AMDM_APPSINFORMATIONEXE] (
    [appsinfoexe_id]    INT            IDENTITY (1, 1) NOT NULL,
    [appsinfoexe_name]  NVARCHAR (50)  NULL,
    [appsinfoexe_value] NVARCHAR (512) NULL,
    [appsinfoexe_appid] INT            NULL,
    CONSTRAINT [PK_AMDMAPPSINFORMATIONEXE] PRIMARY KEY CLUSTERED ([appsinfoexe_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_BINARYRESOURCES]...';


GO
CREATE TABLE [dbo].[AMDM_BINARYRESOURCES] (
    [bres_Id]    INT             IDENTITY (1, 1) NOT NULL,
    [bres_name]  VARCHAR (128)   NOT NULL,
    [bres_value] VARBINARY (MAX) NOT NULL,
    PRIMARY KEY CLUSTERED ([bres_Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_CALENDAR]...';


GO
CREATE TABLE [dbo].[AMDM_CALENDAR] (
    [cal_id]           INT           IDENTITY (1, 1) NOT NULL,
    [cal_creationdate] DATETIME      NULL,
    [cal_modifieddate] DATETIME      NULL,
    [cal_name]         VARCHAR (50)  NOT NULL,
    [cal_description]  VARCHAR (200) NOT NULL,
    CONSTRAINT [PK_AMDMCALENDAR] PRIMARY KEY CLUSTERED ([cal_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_CALENDAR_ALARM]...';


GO
CREATE TABLE [dbo].[AMDM_CALENDAR_ALARM] (
    [Id]         INT         IDENTITY (1, 1) NOT NULL,
    [Type]       VARCHAR (8) NOT NULL,
    [ScheduleId] INT         NOT NULL,
    [CalendarId] INT         NOT NULL,
    CONSTRAINT [PK_AMDMCALENDARALARM] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_CALENDAR_OFFDAYS]...';


GO
CREATE TABLE [dbo].[AMDM_CALENDAR_OFFDAYS] (
    [off_id]          INT           IDENTITY (1, 1) NOT NULL,
    [off_calendarid]  INT           NOT NULL,
    [off_day]         DATETIME      NULL,
    [off_description] VARCHAR (300) NOT NULL,
    CONSTRAINT [PK_AMDMCALENDAROFFDAYS] PRIMARY KEY CLUSTERED ([off_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_CALENDAR_SCHEDULES]...';


GO
CREATE TABLE [dbo].[AMDM_CALENDAR_SCHEDULES] (
    [sch_id]          INT IDENTITY (1, 1) NOT NULL,
    [sch_calendarid]  INT NOT NULL,
    [sch_startminute] INT NOT NULL,
    [sch_endminute]   INT NOT NULL,
    [sch_weekday]     INT NOT NULL,
    CONSTRAINT [PK_AMDMCALENDARSCHEDULES] PRIMARY KEY CLUSTERED ([sch_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_CMDB_ITEMINFOCONFIG]...';


GO
CREATE TABLE [dbo].[AMDM_CMDB_ITEMINFOCONFIG] (
    [iteminfo_id]     INT            IDENTITY (1, 1) NOT NULL,
    [iteminfo_typeid] INT            NULL,
    [iteminfo_value]  VARCHAR (2048) NULL,
    PRIMARY KEY CLUSTERED ([iteminfo_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_CMDB_ITEMINFOCONFIGV9]...';


GO
CREATE TABLE [dbo].[AMDM_CMDB_ITEMINFOCONFIGV9] (
    [iteminfov9_id]         INT            IDENTITY (1, 1) NOT NULL,
    [iteminfov9_typeid]     INT            NULL,
    [iteminfov9_value]      VARCHAR (2048) NULL,
    [iteminfov9_ciid]       INT            NULL,
    [iteminfov9_isreverse]  BIT            NULL,
    [iteminfov9_categoryid] INT            NULL,
    [iteminfov9_itemname]   VARCHAR (256)  NULL,
    PRIMARY KEY CLUSTERED ([iteminfov9_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_CMDREQ_SCRIPTCMD_STATUS]...';


GO
CREATE TABLE [dbo].[AMDM_CMDREQ_SCRIPTCMD_STATUS] (
    [id]                   INT IDENTITY (1, 1) NOT NULL,
    [commandrequest_id]    INT NULL,
    [scriptcommandtype_id] INT NULL,
    [device_id]            INT NULL,
    [managementproject_id] INT NULL,
    [status_id]            INT NULL,
    [order]                INT NULL,
    [errortype_id]         INT NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_COMMANDACTIONRESULTTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_COMMANDACTIONRESULTTYPE] (
    [cmdactresype_id]   INT           NOT NULL,
    [cmdactresype_name] NVARCHAR (64) NULL,
    CONSTRAINT [PK_AMDMCOMMANDACTIONRESULTTYPE] PRIMARY KEY CLUSTERED ([cmdactresype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_COMMANDACTIONTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_COMMANDACTIONTYPE] (
    [cmdactype_id]   INT           NOT NULL,
    [cmdactype_name] NVARCHAR (64) NULL,
    CONSTRAINT [PK_AMDMCOMMANDACTIONTYPE] PRIMARY KEY CLUSTERED ([cmdactype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_COMMANDERRORTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_COMMANDERRORTYPE] (
    [cmderrtype_id]   INT           NOT NULL,
    [cmderrtype_name] NVARCHAR (64) NULL,
    CONSTRAINT [PK_AMDMCOMMANDERRORTYPE] PRIMARY KEY CLUSTERED ([cmderrtype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_COMMANDREQUEST]...';


GO
CREATE TABLE [dbo].[AMDM_COMMANDREQUEST] (
    [cmdreq_id]            INT      IDENTITY (1, 1) NOT NULL,
    [cmdreq_policyid]      INT      NULL,
    [cmdreq_ruleid]        INT      NULL,
    [cmdreq_expenseid]     INT      NULL,
    [cmdreq_requestdate]   DATETIME NOT NULL,
    [cmdreq_commandtypeid] INT      NOT NULL,
    [cmdreq_targettypeid]  INT      NOT NULL,
    [cmdreq_deviceid]      INT      NULL,
    [cmdreq_groupid]       INT      NULL,
    [cmdreq_userid]        INT      NULL,
    [cmdreq_manprojectid]  INT      NULL,
    CONSTRAINT [PK_AMDMCOMMANDREQUEST] PRIMARY KEY CLUSTERED ([cmdreq_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_COMMANDREQUEST].[IX01_AMDMCOMMANDREQUEST]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMCOMMANDREQUEST]
    ON [dbo].[AMDM_COMMANDREQUEST]([cmdreq_groupid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_COMMANDREQUEST].[IX02_AMDMCOMMANDREQUEST]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AMDMCOMMANDREQUEST]
    ON [dbo].[AMDM_COMMANDREQUEST]([cmdreq_deviceid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_COMMANDREQUEST].[IX03_AMDMCOMMANDREQUEST]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AMDMCOMMANDREQUEST]
    ON [dbo].[AMDM_COMMANDREQUEST]([cmdreq_targettypeid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_COMMANDREQUEST].[IX04_AMDMCOMMANDREQUEST]...';


GO
CREATE NONCLUSTERED INDEX [IX04_AMDMCOMMANDREQUEST]
    ON [dbo].[AMDM_COMMANDREQUEST]([cmdreq_commandtypeid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_COMMANDREQUEST].[IX05_AMDMCOMMANDREQUEST]...';


GO
CREATE NONCLUSTERED INDEX [IX05_AMDMCOMMANDREQUEST]
    ON [dbo].[AMDM_COMMANDREQUEST]([cmdreq_policyid] ASC)
    INCLUDE([cmdreq_deviceid]);


GO
PRINT N'Creating Index [dbo].[AMDM_COMMANDREQUEST].[IX06_AMDM_COMMANDREQUEST]...';


GO
CREATE NONCLUSTERED INDEX [IX06_AMDM_COMMANDREQUEST]
    ON [dbo].[AMDM_COMMANDREQUEST]([cmdreq_id] ASC, [cmdreq_manprojectid] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_COMMANDREQUESTACTION]...';


GO
CREATE TABLE [dbo].[AMDM_COMMANDREQUESTACTION] (
    [reqaction_id]           INT IDENTITY (1, 1) NOT NULL,
    [reqaction_requestid]    INT NOT NULL,
    [reqaction_actiontypeid] INT NOT NULL,
    CONSTRAINT [PK_AMDMCOMMANDREQUESTACTION] PRIMARY KEY CLUSTERED ([reqaction_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_COMMANDREQUESTACTION].[IX01_AMDMCOMMANDREQUESTACTION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMCOMMANDREQUESTACTION]
    ON [dbo].[AMDM_COMMANDREQUESTACTION]([reqaction_actiontypeid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_COMMANDREQUESTACTION].[IX02_AMDMCOMMANDREQUESTACTION]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AMDMCOMMANDREQUESTACTION]
    ON [dbo].[AMDM_COMMANDREQUESTACTION]([reqaction_requestid] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_COMMANDSTATUS]...';


GO
CREATE TABLE [dbo].[AMDM_COMMANDSTATUS] (
    [cmdstat_id]   INT           NOT NULL,
    [cmdstat_name] NVARCHAR (64) NULL,
    CONSTRAINT [PK_AMDMCOMMANDSTATUS] PRIMARY KEY CLUSTERED ([cmdstat_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_COMMANDTARGETPROT]...';


GO
CREATE TABLE [dbo].[AMDM_COMMANDTARGETPROT] (
    [cmdprot_id]   INT           NOT NULL,
    [cmdprot_name] NVARCHAR (16) NULL,
    CONSTRAINT [PK_AMDMCOMMANDTARGETPROT] PRIMARY KEY CLUSTERED ([cmdprot_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_COMMANDTARGETTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_COMMANDTARGETTYPE] (
    [cmdtgtype_id]   INT           NOT NULL,
    [cmdtgtype_name] NVARCHAR (16) NULL,
    CONSTRAINT [PK_AMDMCOMMANDTARGETTYPE] PRIMARY KEY CLUSTERED ([cmdtgtype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_COMMANDTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_COMMANDTYPE] (
    [cmdtype_id]   INT           NOT NULL,
    [cmdtype_name] NVARCHAR (16) NULL,
    CONSTRAINT [PK_AMDMCOMMANDTYPE] PRIMARY KEY CLUSTERED ([cmdtype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_CURRENCY]...';


GO
CREATE TABLE [dbo].[AMDM_CURRENCY] (
    [currency_id]     INT          NOT NULL,
    [currency_name]   VARCHAR (50) NOT NULL,
    [currency_symbol] VARCHAR (3)  NOT NULL,
    PRIMARY KEY CLUSTERED ([currency_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DATABASEINFO]...';


GO
CREATE TABLE [dbo].[AMDM_DATABASEINFO] (
    [key]         NVARCHAR (64)  NOT NULL,
    [value]       NVARCHAR (64)  NOT NULL,
    [description] NVARCHAR (128) NULL,
    PRIMARY KEY CLUSTERED ([key] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DB_EXPENSESDEVICES]...';


GO
CREATE TABLE [dbo].[AMDM_DB_EXPENSESDEVICES] (
    [iddevice]       INT            NOT NULL,
    [devicename]     NVARCHAR (256) NULL,
    [username]       NVARCHAR (256) NULL,
    [planname]       NVARCHAR (256) NULL,
    [carriername]    NVARCHAR (256) NULL,
    [ollocaldata]    BIT            NULL,
    [ollocalvoice]   BIT            NULL,
    [olroamingdata]  BIT            NULL,
    [olroamingvoice] BIT            NULL,
    PRIMARY KEY CLUSTERED ([iddevice] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DB_EXPENSESPLANS]...';


GO
CREATE TABLE [dbo].[AMDM_DB_EXPENSESPLANS] (
    [PlanName]     NVARCHAR (256) NULL,
    [LocalData]    FLOAT (53)     NULL,
    [RoamingData]  FLOAT (53)     NULL,
    [LocalVoice]   FLOAT (53)     NULL,
    [RoamingVoice] FLOAT (53)     NULL
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICE]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICE] (
    [id]                        INT              IDENTITY (1, 1) NOT NULL,
    [name]                      NVARCHAR (128)   NULL,
    [status_id]                 INT              NOT NULL,
    [user_id]                   INT              NOT NULL,
    [companyowned]              BIT              NOT NULL,
    [platform_id]               INT              NOT NULL,
    [osversion]                 NVARCHAR (32)    NULL,
    [uniquedeviceidentifier]    NVARCHAR (128)   NULL,
    [gcmregistrationid]         NVARCHAR (1024)  NULL,
    [apnsapppushtoken]          NVARCHAR (128)   NULL,
    [mdmpushmagic]              NVARCHAR (128)   NULL,
    [apnsmdmpushtoken]          NVARCHAR (128)   NULL,
    [windowsmdmchanneluri]      NVARCHAR (512)   NULL,
    [windowsappchanneluri]      NVARCHAR (512)   NULL,
    [lastupdatehw]              DATETIME         NULL,
    [lastupdatesw]              DATETIME         NULL,
    [lastupdatenw]              DATETIME         NULL,
    [lastupdateloc]             DATETIME         NULL,
    [devicehardware_id]         INT              NULL,
    [devicenetwork_id]          INT              NULL,
    [enrollmentrecord_id]       INT              NULL,
    [enrollmentdate]            DATETIME         NULL,
    [imei]                      NVARCHAR (64)    NULL,
    [totalinternalstorage]      BIGINT           NOT NULL,
    [currentnetworkcarrier]     NVARCHAR (64)    NULL,
    [phonenumber]               NVARCHAR (32)    NULL,
    [serialnumber]              NVARCHAR (64)    NULL,
    [unlocktoken]               VARCHAR (8000)   NULL,
    [manufacturer]              NVARCHAR (128)   NULL,
    [model]                     NVARCHAR (32)    NULL,
    [simcarrier]                NVARCHAR (32)    NULL,
    [devicetype]                NVARCHAR (32)    NULL,
    [policy_id]                 INT              NULL,
    [latitude]                  DECIMAL (20, 14) NULL,
    [longitude]                 DECIMAL (20, 14) NULL,
    [lastreported]              DATETIME         NULL,
    [fulfilledpolicy]           BIT              NULL,
    [lastappliedpolicy]         DATETIME         NULL,
    [policyversion]             INT              NULL,
    [badge]                     INT              NULL,
    [namefixed]                 BIT              NULL,
    [agentversion]              VARCHAR (32)     NULL,
    [ruleset_id]                INT              NULL,
    [lastappliedruleset]        DATETIME         NULL,
    [rulesetversion]            INT              NULL,
    [issecuritybroken]          BIT              NULL,
    [compromisedsecuritydevice] VARCHAR (16)     NULL,
    [alertstatusdeviceabsent]   BIT              NOT NULL,
    [guid]                      VARCHAR (50)     NULL,
    [expenseplan_id]            INT              NULL,
    [lastappliedexpense]        DATETIME         NULL,
    [calendar_id]               INT              NULL,
    [cicmdb]                    INT              NULL,
    [tracking]                  INT              NOT NULL,
    [appisenrolled]             BIT              NULL,
    [windowsnextnonce]          VARCHAR (128)    NULL,
    [androidfwprofileready]     BIT              NULL,
    [windowslastpassword]       VARCHAR (16)     NULL,
    [androidforworktokenset]    BIT              NOT NULL,
    [androidforworkmode_id]     INT              NULL,
    [lostmode]                  BIT              NOT NULL,
    [lostmodepassword]          NVARCHAR (10)    NULL,
    [agentprofile_id]           INT              NULL,
    [uuidios]                   NVARCHAR (128)   NULL,
    [isknox]                    BIT              NOT NULL,
    [istotallocked]             BIT              NOT NULL,
    [metricsstartdate]          DATETIME         NULL,
    [healthdevicestartdate]     DATETIME         NULL,
    CONSTRAINT [PK_AMDM_DEVICE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICE].[IX01_AMDMDEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMDEVICE]
    ON [dbo].[AMDM_DEVICE]([status_id] ASC, [policy_id] ASC)
    INCLUDE([id], [name], [user_id], [companyowned], [platform_id], [osversion], [enrollmentdate], [devicetype], [lastreported], [fulfilledpolicy], [lastappliedpolicy], [policyversion]);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICE].[IX02_AMDMDEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AMDMDEVICE]
    ON [dbo].[AMDM_DEVICE]([status_id] ASC, [fulfilledpolicy] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICE].[IX03_AMDMDEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AMDMDEVICE]
    ON [dbo].[AMDM_DEVICE]([uniquedeviceidentifier] ASC)
    INCLUDE([apnsapppushtoken], [status_id]);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICE].[IX04_AMDMDEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX04_AMDMDEVICE]
    ON [dbo].[AMDM_DEVICE]([user_id] ASC)
    INCLUDE([status_id]);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICE_HEALTHINFO]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICE_HEALTHINFO] (
    [id]                         INT           IDENTITY (1, 1) NOT NULL,
    [totalexternalstorage]       BIGINT        NULL,
    [usedexternalstorage]        BIGINT        NULL,
    [percentusedexternalstorage] INT           NULL,
    [totalinternalstorage]       BIGINT        NULL,
    [usedinternalstorage]        BIGINT        NULL,
    [percentusedinternalstorage] INT           NULL,
    [totalstorage]               BIGINT        NULL,
    [usedstorage]                BIGINT        NULL,
    [percentusedstorage]         INT           NULL,
    [totalrammemory]             BIGINT        NULL,
    [usedrammemory]              BIGINT        NULL,
    [percentusedrammemory]       INT           NULL,
    [percentbatterylevel]        INT           NULL,
    [simcarrier]                 VARCHAR (64)  NULL,
    [signalstrength]             INT           NULL,
    [ssid]                       VARCHAR (128) NULL,
    [wifisignalstrength]         INT           NULL,
    [device_id]                  INT           NOT NULL,
    [date_id]                    INT           NOT NULL,
    [time_id]                    INT           NOT NULL,
    [last]                       BIT           NOT NULL,
    [recorddate]                 DATETIME      NOT NULL,
    CONSTRAINT [PK_AMDM_DEVICE_HEALTHINFO] PRIMARY KEY CLUSTERED ([device_id] ASC, [date_id] ASC, [time_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICE_HEALTHINFO].[IX01_AMDM_DEVICE_HEALTHINFO]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDM_DEVICE_HEALTHINFO]
    ON [dbo].[AMDM_DEVICE_HEALTHINFO]([last] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICE_RCSESSION]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICE_RCSESSION] (
    [device_rcsession_id]          INT IDENTITY (1, 1) NOT NULL,
    [device_rcsession_deviceid]    INT NULL,
    [device_rcsession_rcsessionid] INT NULL,
    PRIMARY KEY CLUSTERED ([device_rcsession_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEAFWMODE]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEAFWMODE] (
    [afwmode_id]   INT           NOT NULL,
    [afwmode_name] NVARCHAR (20) NULL,
    PRIMARY KEY CLUSTERED ([afwmode_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEAGENTPROFILE]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEAGENTPROFILE] (
    [devagentprofile_id]            INT            IDENTITY (1, 1) NOT NULL,
    [devagentprofile_name]          NVARCHAR (255) NULL,
    [devagentprofile_creationdate]  DATETIME       NULL,
    [devagentprofile_usercreatorid] INT            NULL,
    PRIMARY KEY CLUSTERED ([devagentprofile_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEAGENTPROFILEDETAIL]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEAGENTPROFILEDETAIL] (
    [devagentprofiledet_id]        INT             IDENTITY (1, 1) NOT NULL,
    [devagentprofiledet_name]      NVARCHAR (50)   NULL,
    [devagentprofiledet_value]     NVARCHAR (1024) NULL,
    [devagentprofiledet_profileid] INT             NULL,
    PRIMARY KEY CLUSTERED ([devagentprofiledet_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEENROLLSTATUS]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEENROLLSTATUS] (
    [enrstat_id]   INT           NOT NULL,
    [enrstat_name] NVARCHAR (16) NULL,
    CONSTRAINT [PK_AMDMDEVICEENROLLSTATUS] PRIMARY KEY CLUSTERED ([enrstat_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEEVENT]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEEVENT] (
    [devevent_id]                 INT            IDENTITY (1, 1) NOT NULL,
    [devevent_evtypeid]           INT            NOT NULL,
    [devevent_message]            NVARCHAR (512) NULL,
    [devevent_date]               DATETIME       NOT NULL,
    [devevent_deviceid]           INT            NOT NULL,
    [devevent_notificationtypeid] INT            NOT NULL,
    [devevent_userid]             INT            NULL,
    [devevent_manprojectid]       INT            NULL,
    CONSTRAINT [PK_AMDM_DEVICEEVENT] PRIMARY KEY CLUSTERED ([devevent_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICEEVENT].[IX01_AMDM_DEVICEEVENT]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDM_DEVICEEVENT]
    ON [dbo].[AMDM_DEVICEEVENT]([devevent_date] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICEEVENT].[IX05_AMDM_DEVICEEVENT]...';


GO
CREATE NONCLUSTERED INDEX [IX05_AMDM_DEVICEEVENT]
    ON [dbo].[AMDM_DEVICEEVENT]([devevent_deviceid] ASC, [devevent_date] DESC);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEEVENTTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEEVENTTYPE] (
    [deventtype_id]   INT           NOT NULL,
    [deventtype_name] NVARCHAR (64) NULL,
    CONSTRAINT [PK_AMDMDEVICEEVENTTYPE] PRIMARY KEY CLUSTERED ([deventtype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEEXPENSE]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEEXPENSE] (
    [devexp_id]               INT          IDENTITY (1, 1) NOT NULL,
    [devexp_deviceid]         INT          NULL,
    [devexp_planid]           INT          NOT NULL,
    [devexp_daily_datausage]  FLOAT (53)   NULL,
    [devexp_daily_voiceusage] FLOAT (53)   NULL,
    [devexp_daily_isroaming]  BIT          NULL,
    [devexp_lastupdate]       DATETIME     NOT NULL,
    [devexp_numbercalled]     VARCHAR (20) NULL,
    [devexp_daily_costvoice]  FLOAT (53)   NULL,
    [devexp_guid]             VARCHAR (50) NULL,
    [devexp_active]           BIT          NULL,
    CONSTRAINT [PK_AMDMDEVICEEXPENSE] PRIMARY KEY CLUSTERED ([devexp_id] ASC),
    CONSTRAINT [AK01_AMDMDEVICEEXPENSE] UNIQUE NONCLUSTERED ([devexp_guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICEEXPENSE].[IX01_AMDMDEVICEEXPENSE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMDEVICEEXPENSE]
    ON [dbo].[AMDM_DEVICEEXPENSE]([devexp_lastupdate] ASC, [devexp_planid] ASC, [devexp_daily_isroaming] ASC)
    INCLUDE([devexp_daily_voiceusage], [devexp_daily_datausage], [devexp_daily_costvoice], [devexp_deviceid]);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEFLAGS]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEFLAGS] (
    [id]        INT           IDENTITY (1, 1) NOT NULL,
    [device_id] INT           NOT NULL,
    [flag_id]   INT           NOT NULL,
    [value]     NVARCHAR (50) NULL,
    CONSTRAINT [PK_AMDM_DEVICEFLAGS] PRIMARY KEY CLUSTERED ([device_id] ASC, [flag_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEHARDWARE]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEHARDWARE] (
    [devh_id]                       INT             IDENTITY (1, 1) NOT NULL,
    [devh_buildversion]             NVARCHAR (128)  NULL,
    [devh_firmwareversion]          NVARCHAR (64)   NULL,
    [devh_phonenumber]              NVARCHAR (32)   NULL,
    [devh_udid]                     NVARCHAR (128)  NULL,
    [devh_imei]                     NVARCHAR (64)   NULL,
    [devh_modelname]                NVARCHAR (64)   NULL,
    [devh_devicetype]               INT             NULL,
    [devh_osversion]                NVARCHAR (32)   NULL,
    [devh_batterylevel]             REAL            NOT NULL,
    [devh_devicename]               NVARCHAR (128)  NULL,
    [devh_totalinternalstorage]     BIGINT          NOT NULL,
    [devh_availableinternalstorage] BIGINT          NOT NULL,
    [devh_devicemanufacturer]       NVARCHAR (64)   NULL,
    [devh_productname]              NVARCHAR (64)   NULL,
    [devh_modelnumber]              NVARCHAR (32)   NULL,
    [devh_serialnumber]             NVARCHAR (64)   NULL,
    [devh_simserialnumber]          NVARCHAR (64)   NULL,
    [devh_processorarchitecture]    NVARCHAR (64)   NULL,
    [devh_devicelanguage]           NVARCHAR (32)   NULL,
    [devh_devicelocaltime]          DATETIME        NULL,
    [devh_isrooted]                 BIT             NULL,
    [devh_availablerammemory]       BIGINT          NULL,
    [devh_totalrammemory]           BIGINT          NULL,
    [devh_availableexternalstorage] BIGINT          NULL,
    [devh_totalexternalstorage]     BIGINT          NULL,
    [devh_cellulartechnology]       NVARCHAR (16)   NULL,
    [devh_meid]                     NVARCHAR (64)   NULL,
    [devh_sensors]                  NVARCHAR (2048) NULL,
    [devh_locationavailable]        BIT             NULL,
    [devh_batteryhealth]            NVARCHAR (30)   NULL,
    [devh_batteryvoltage]           NVARCHAR (20)   NULL,
    [devh_batterytechnology]        NVARCHAR (30)   NULL,
    [devh_batterytemperature]       NVARCHAR (20)   NULL,
    [devh_cpucores]                 NVARCHAR (15)   NULL,
    [devh_cpufrequency]             NVARCHAR (25)   NULL,
    [devh_cpuname]                  NVARCHAR (100)  NULL,
    [devh_screenresolution]         NVARCHAR (25)   NULL,
    [devh_screensize]               NVARCHAR (20)   NULL,
    CONSTRAINT [PK_AMDMDEVICEHARDWARE] PRIMARY KEY CLUSTERED ([devh_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICELOCATION]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICELOCATION] (
    [id]             INT              IDENTITY (1, 1) NOT NULL,
    [device_id]      INT              NULL,
    [latitude]       DECIMAL (20, 14) NULL,
    [longitude]      DECIMAL (20, 14) NULL,
    [altitude]       DECIMAL (20, 14) NULL,
    [reportdate]     DATETIME         NULL,
    [islastlocation] BIT              NULL,
    CONSTRAINT [PK_AMDMDEVICELOCATION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICELOCATION].[IX01_AMDM_DEVICELOCATION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDM_DEVICELOCATION]
    ON [dbo].[AMDM_DEVICELOCATION]([device_id] ASC)
    INCLUDE([altitude], [islastlocation], [latitude], [longitude], [reportdate]);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICELOG]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICELOG] (
    [id]        INT             IDENTITY (1, 1) NOT NULL,
    [device_id] INT             NOT NULL,
    [lastsync]  DATETIME        NULL,
    [log]       VARBINARY (MAX) NULL,
    CONSTRAINT [PK_AMDMDEVICELOG] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEMACADDRESS]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEMACADDRESS] (
    [devmac_id]          INT           IDENTITY (1, 1) NOT NULL,
    [devmac_deviceid]    INT           NOT NULL,
    [devmac_address]     NVARCHAR (32) NULL,
    [devmac_ipv4]        NVARCHAR (50) NULL,
    [devmac_ipv6]        NVARCHAR (50) NULL,
    [devmac_isconnected] NVARCHAR (10) NULL,
    [devmac_type]        NVARCHAR (20) NULL,
    CONSTRAINT [PK_AMDMDEVICEMACADDRESS] PRIMARY KEY CLUSTERED ([devmac_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEMODELS]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEMODELS] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [name]              VARCHAR (64)   NULL,
    [commercialname]    VARCHAR (64)   NULL,
    [platform_id]       INT            NOT NULL,
    [manufacturer_id]   INT            NULL,
    [cpu_name]          NVARCHAR (100) NULL,
    [cpu_frequency]     BIGINT         NULL,
    [cpu_cores]         INT            NULL,
    [battery_tech]      NVARCHAR (50)  NULL,
    [battery_voltage]   NVARCHAR (20)  NULL,
    [screen_resolution] NVARCHAR (20)  NULL,
    [screen_size]       NVARCHAR (10)  NULL,
    CONSTRAINT [PK_AMDMDEVICEMODELS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICENETWORK]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICENETWORK] (
    [devn_id]                    INT             IDENTITY (1, 1) NOT NULL,
    [devn_BluetoothMac]          NVARCHAR (64)   NULL,
    [devn_currentnetworkcarrier] NVARCHAR (32)   NULL,
    [devh_simcarrier]            NVARCHAR (32)   NULL,
    [devn_wifimac]               NVARCHAR (64)   NULL,
    [devn_currentmcc]            NVARCHAR (16)   NULL,
    [devn_currentmnc]            NVARCHAR (16)   NULL,
    [devn_isroaming]             BIT             NULL,
    [devh_dataroamingenabled]    BIT             NULL,
    [devh_iccid]                 NVARCHAR (64)   NULL,
    [devh_ssid]                  NVARCHAR (64)   NULL,
    [devh_lastconnectiondate]    DATETIME        NULL,
    [devn_phonenumber]           NVARCHAR (32)   NULL,
    [devn_ipwifi]                NVARCHAR (64)   NULL,
    [devh_ssidlist]              NVARCHAR (1024) NULL,
    CONSTRAINT [PK_AMDMDEVICENETWORK] PRIMARY KEY CLUSTERED ([devn_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICEPLATFORM]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICEPLATFORM] (
    [platf_id]   INT           NOT NULL,
    [platf_name] NVARCHAR (32) NULL,
    CONSTRAINT [PK_AMDM_DEVICEPLATFORM] PRIMARY KEY CLUSTERED ([platf_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICERESETEMAIL]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICERESETEMAIL] (
    [device_id] INT NOT NULL,
    [email_id]  INT NOT NULL,
    CONSTRAINT [PK_AMDM_DEVICE_RESET_EMAIL] PRIMARY KEY CLUSTERED ([device_id] ASC, [email_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICESCHEDULETASK]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICESCHEDULETASK] (
    [devs_id]         INT           IDENTITY (1, 1) NOT NULL,
    [devs_deviceid]   INT           NOT NULL,
    [devs_scheduleid] INT           NOT NULL,
    [devs_tasktype]   NVARCHAR (50) NULL,
    CONSTRAINT [PK_AMDM_DEVICESCHEDULETASK] PRIMARY KEY CLUSTERED ([devs_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICESOFTWARE]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICESOFTWARE] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [packagename] NVARCHAR (256) NULL,
    [targetsdk]   NVARCHAR (64)  NULL,
    [device_id]   INT            NOT NULL,
    [appname]     NVARCHAR (256) NULL,
    [dynamicsize] BIGINT         NULL,
    [storagesize] BIGINT         NULL,
    [version]     NVARCHAR (64)  NULL,
    [appinfo_id]  INT            NULL,
    [origin]      NVARCHAR (16)  NULL,
    [issystem]    BIT            NULL,
    [isupdated]   BIT            NOT NULL,
    CONSTRAINT [PK_AMDMDEVICESOFTWARE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICESOFTWARE].[IX01_AMDMDEVICESOFTWARE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMDEVICESOFTWARE]
    ON [dbo].[AMDM_DEVICESOFTWARE]([device_id] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICESOFTWARE].[IX02_AMDMDEVICESOFTWARE]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AMDMDEVICESOFTWARE]
    ON [dbo].[AMDM_DEVICESOFTWARE]([packagename] ASC, [version] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_DEVICESOFTWARE].[IX03_AMDMDEVICESOFTWARE]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AMDMDEVICESOFTWARE]
    ON [dbo].[AMDM_DEVICESOFTWARE]([packagename] ASC, [device_id] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVICESTATUS]...';


GO
CREATE TABLE [dbo].[AMDM_DEVICESTATUS] (
    [devstat_id]   INT           NOT NULL,
    [devstat_name] NVARCHAR (32) NULL,
    CONSTRAINT [PK_AMDMDEVICESTATUS] PRIMARY KEY CLUSTERED ([devstat_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DEVMODEL_PACKAGE]...';


GO
CREATE TABLE [dbo].[AMDM_DEVMODEL_PACKAGE] (
    [id]          INT IDENTITY (1, 1) NOT NULL,
    [package_id]  INT NULL,
    [devmodel_id] INT NULL,
    CONSTRAINT [PK_AMDMDEVMODELPACKAGE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DOUBLE_VALIDATION_CODES]...';


GO
CREATE TABLE [dbo].[AMDM_DOUBLE_VALIDATION_CODES] (
    [id]             INT      IDENTITY (1, 1) NOT NULL,
    [requestdate]    DATETIME NOT NULL,
    [expirationdate] DATETIME NOT NULL,
    [user_id]        INT      NOT NULL,
    [validationcode] CHAR (6) NOT NULL,
    [action_id]      INT      NOT NULL,
    CONSTRAINT [PK_AMDMDOUBLEVALIDATIONCODES] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_DYNAMICGROUP]...';


GO
CREATE TABLE [dbo].[AMDM_DYNAMICGROUP] (
    [dyngr_id]          INT            IDENTITY (1, 1) NOT NULL,
    [dyngr_name]        NVARCHAR (64)  NULL,
    [dyngr_description] NVARCHAR (256) NULL,
    [dyngr_createdby]   INT            NOT NULL,
    [dyngr_createddate] DATETIME       NOT NULL,
    [dyngr_isactive]    BIT            NOT NULL,
    CONSTRAINT [PK_AMDM_DYNAMICGROUP] PRIMARY KEY CLUSTERED ([dyngr_id] ASC) ON [PRIMARY]
);


GO
PRINT N'Creating Table [dbo].[AMDM_DYNAMICGROUPPARAMS]...';


GO
CREATE TABLE [dbo].[AMDM_DYNAMICGROUPPARAMS] (
    [dyngrparam_id]             INT IDENTITY (1, 1) NOT NULL,
    [dyngrparam_type]           INT NOT NULL,
    [dyngrparam_value]          INT NULL,
    [dyngrparam_iddynamicgroup] INT NOT NULL,
    CONSTRAINT [PK_AMDMDYNAMICGROUPPARAMS] PRIMARY KEY CLUSTERED ([dyngrparam_id] ASC) ON [PRIMARY]
);


GO
PRINT N'Creating Table [dbo].[AMDM_DYNAMICGROUPPARAMTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_DYNAMICGROUPPARAMTYPE] (
    [dyngrpartyp_id]   INT           NOT NULL,
    [dyngrpartyp_name] NVARCHAR (64) NULL,
    CONSTRAINT [PK_AMDMDYNAMICGROUPPARAMTYPE] PRIMARY KEY CLUSTERED ([dyngrpartyp_id] ASC) ON [PRIMARY]
);


GO
PRINT N'Creating Table [dbo].[AMDM_EMAIL]...';


GO
CREATE TABLE [dbo].[AMDM_EMAIL] (
    [id]     INT            IDENTITY (1, 1) NOT NULL,
    [email]  NVARCHAR (255) NULL,
    [enable] BIT            NULL,
    CONSTRAINT [PK_AMDM_DEVICERESETEMAIL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_ENROLLMENTERROR]...';


GO
CREATE TABLE [dbo].[AMDM_ENROLLMENTERROR] (
    [enrerr_id]   INT           NOT NULL,
    [enrerr_name] NVARCHAR (64) NULL,
    CONSTRAINT [PK_AMDMENROLLMENTERROR] PRIMARY KEY CLUSTERED ([enrerr_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_EVENT_MANAGEMENT]...';


GO
CREATE TABLE [dbo].[AMDM_EVENT_MANAGEMENT] (
    [id]               INT           IDENTITY (1, 1) NOT NULL,
    [file_name]        VARCHAR (80)  NOT NULL,
    [event_type_id]    INT           NOT NULL,
    [event_status_id]  INT           NOT NULL,
    [file_type]        VARCHAR (10)  NOT NULL,
    [total_successful] INT           NOT NULL,
    [total_failed]     INT           NOT NULL,
    [upload_date]      DATETIME      NOT NULL,
    [error_log]        VARCHAR (150) NULL,
    [row_date]         DATETIME      NOT NULL,
    CONSTRAINT [PK_AMDM_EVENT_MANAGEMENT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_EVENT_STATUS]...';


GO
CREATE TABLE [dbo].[AMDM_EVENT_STATUS] (
    [id]       INT          IDENTITY (1, 1) NOT NULL,
    [name]     VARCHAR (50) NOT NULL,
    [row_date] DATETIME     NOT NULL,
    CONSTRAINT [PK_AMDM_EVENT_STATUS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_EVENT_TYPE]...';


GO
CREATE TABLE [dbo].[AMDM_EVENT_TYPE] (
    [id]       INT          IDENTITY (1, 1) NOT NULL,
    [name]     VARCHAR (50) NOT NULL,
    [active]   BIT          NOT NULL,
    [row_date] DATETIME     NOT NULL,
    CONSTRAINT [PK_AMDM_EVENT_TYPE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_EXPENSE_COUNTRYCODE]...';


GO
CREATE TABLE [dbo].[AMDM_EXPENSE_COUNTRYCODE] (
    [countrycode_id]   INT          NOT NULL,
    [countrycode_name] VARCHAR (50) NULL,
    [countrycode_code] VARCHAR (10) NULL,
    [codestore]        VARCHAR (3)  NULL,
    CONSTRAINT [PK_AMDM_EXPENSE_COUNTRYCODE] PRIMARY KEY CLUSTERED ([countrycode_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_EXPENSECARRIER]...';


GO
CREATE TABLE [dbo].[AMDM_EXPENSECARRIER] (
    [carrier_id]   INT          IDENTITY (1, 1) NOT NULL,
    [carrier_name] VARCHAR (64) NULL,
    PRIMARY KEY CLUSTERED ([carrier_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_EXPENSEPLAN]...';


GO
CREATE TABLE [dbo].[AMDM_EXPENSEPLAN] (
    [plan_id]                   INT           IDENTITY (1, 1) NOT NULL,
    [plan_name]                 VARCHAR (64)  NOT NULL,
    [plan_description]          VARCHAR (256) NULL,
    [plan_voicesize]            INT           NOT NULL,
    [plan_measurevoicesize]     VARCHAR (50)  NOT NULL,
    [plan_costunitvoice]        FLOAT (53)    NULL,
    [plan_datasize]             INT           NOT NULL,
    [plan_measuredatasize]      VARCHAR (50)  NOT NULL,
    [plan_costunitdata]         FLOAT (53)    NULL,
    [plan_roamingvoicesize]     INT           NULL,
    [plan_roamingcostunitvoice] FLOAT (53)    NULL,
    [plan_roamingdatasize]      INT           NULL,
    [plan_roamingcostunitdata]  FLOAT (53)    NULL,
    [plan_billingcicledate]     INT           NOT NULL,
    [plan_expensecarrier_id]    INT           NOT NULL,
    [plan_exceptions]           VARCHAR (MAX) NULL,
    [plan_currency]             INT           NULL,
    [plan_correctionfactor]     FLOAT (53)    NOT NULL,
    [plan_createddate]          DATETIME      NOT NULL,
    [plan_userid]               INT           NOT NULL,
    [plan_shared]               BIT           NULL,
    [plan_modificationdate]     DATETIME      NULL,
    [plan_rulesetexpenseplanid] INT           NULL,
    PRIMARY KEY CLUSTERED ([plan_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_EXPENSEPLAN_CALLCOST]...';


GO
CREATE TABLE [dbo].[AMDM_EXPENSEPLAN_CALLCOST] (
    [callcost_id]            INT          IDENTITY (1, 1) NOT NULL,
    [callcost_pattern]       VARCHAR (15) NULL,
    [callcost_localcost]     FLOAT (53)   NULL,
    [callcost_roamingcost]   FLOAT (53)   NULL,
    [callcost_countrycodeid] INT          NULL,
    [callcost_planid]        INT          NULL,
    PRIMARY KEY CLUSTERED ([callcost_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_EXPENSEPLANSUMMARY]...';


GO
CREATE TABLE [dbo].[AMDM_EXPENSEPLANSUMMARY] (
    [plansum_id]               INT        IDENTITY (1, 1) NOT NULL,
    [plansum_localdata]        FLOAT (53) NULL,
    [plansum_localvoice]       FLOAT (53) NULL,
    [plansum_roamingdata]      FLOAT (53) NULL,
    [plansum_roamingvoice]     FLOAT (53) NULL,
    [plansum_planid]           INT        NULL,
    [plansum_refreshdate]      DATETIME   NULL,
    [plansum_localvoicecost]   FLOAT (53) NULL,
    [plansum_roamingvoicecost] FLOAT (53) NULL,
    PRIMARY KEY CLUSTERED ([plansum_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_FLAGDEVICE]...';


GO
CREATE TABLE [dbo].[AMDM_FLAGDEVICE] (
    [id]   INT           NOT NULL,
    [flag] NVARCHAR (50) NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_GROUP]...';


GO
CREATE TABLE [dbo].[AMDM_GROUP] (
    [group_id] INT IDENTITY (1, 1) NOT NULL,
    CONSTRAINT [PK_AMDMGROUP] PRIMARY KEY CLUSTERED ([group_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_GROUPDEVICE]...';


GO
CREATE TABLE [dbo].[AMDM_GROUPDEVICE] (
    [groupdev_id] INT IDENTITY (1, 1) NOT NULL,
    [group_id]    INT NOT NULL,
    [dev_id]      INT NOT NULL,
    PRIMARY KEY CLUSTERED ([groupdev_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_GROUPUSERS_POLICY]...';


GO
CREATE TABLE [dbo].[AMDM_GROUPUSERS_POLICY] (
    [guserspolicy_id]       INT IDENTITY (1, 1) NOT NULL,
    [guserspolicy_groupid]  INT NULL,
    [guserspolicy_policyid] INT NULL,
    PRIMARY KEY CLUSTERED ([guserspolicy_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_HIDDEN_PACKAGE]...';


GO
CREATE TABLE [dbo].[AMDM_HIDDEN_PACKAGE] (
    [id]      INT            IDENTITY (1, 1) NOT NULL,
    [package] NVARCHAR (64)  NULL,
    [name]    NVARCHAR (128) NULL,
    CONSTRAINT [PK_AMDMHIDDENPACKAGE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_AMDMHIDDENPACKAGE] UNIQUE NONCLUSTERED ([package] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_HISTORY_COMMANDREQACTION]...';


GO
CREATE TABLE [dbo].[AMDM_HISTORY_COMMANDREQACTION] (
    [reqaction_id]           INT NULL,
    [reqaction_requestid]    INT NULL,
    [reqaction_actiontypeid] INT NULL
);


GO
PRINT N'Creating Table [dbo].[AMDM_HISTORY_COMMANDREQUEST]...';


GO
CREATE TABLE [dbo].[AMDM_HISTORY_COMMANDREQUEST] (
    [cmdreq_id]            INT      NULL,
    [cmdreq_policyid]      INT      NULL,
    [cmdreq_ruleid]        INT      NULL,
    [cmdreq_expenseid]     INT      NULL,
    [cmdreq_requestdate]   DATETIME NULL,
    [cmdreq_commandtypeid] INT      NULL,
    [cmdreq_targettypeid]  INT      NULL,
    [cmdreq_deviceid]      INT      NULL,
    [cmdreq_groupid]       INT      NULL,
    [cmdreq_userid]        INT      NULL,
    [cmdreq_manprojectid]  INT      NULL
);


GO
PRINT N'Creating Table [dbo].[AMDM_HISTORY_REQACTIONPARAM]...';


GO
CREATE TABLE [dbo].[AMDM_HISTORY_REQACTIONPARAM] (
    [actparams_id]         INT            NULL,
    [actparams_actionid]   INT            NULL,
    [actparams_paramname]  NVARCHAR (64)  NULL,
    [actparams_paramvalue] NVARCHAR (MAX) NULL
);


GO
PRINT N'Creating Table [dbo].[AMDM_HISTORY_SENTCOMMAND]...';


GO
CREATE TABLE [dbo].[AMDM_HISTORY_SENTCOMMAND] (
    [sentcmd_id]               INT           NULL,
    [sentcmd_requestid]        INT           NULL,
    [sentcmd_statusid]         INT           NULL,
    [sentcmd_deviceid]         INT           NULL,
    [sentcmd_expirydate]       DATETIME      NULL,
    [sentcmd_errortypeid]      INT           NULL,
    [sentcmd_uuid]             NVARCHAR (64) NULL,
    [sentcmd_targetprotocolid] INT           NULL,
    [sentcmd_sendDate]         DATETIME      NULL,
    [sentcmd_fetchDate]        DATETIME      NULL,
    [sentcmd_answerDate]       DATETIME      NULL
);


GO
PRINT N'Creating Table [dbo].[AMDM_IOS_PENDINGENROLL_DATA]...';


GO
CREATE TABLE [dbo].[AMDM_IOS_PENDINGENROLL_DATA] (
    [iospendingenroll_id]          INT           IDENTITY (1, 1) NOT NULL,
    [iospendingenroll_devid]       INT           NULL,
    [iospendingenroll_startdate]   DATETIME      NULL,
    [iospendingenroll_finishdate]  DATETIME      NULL,
    [iospendingenroll_enrollcode]  VARCHAR (32)  NULL,
    [iospendingenroll_username]    VARCHAR (128) NULL,
    [iospendingenroll_providerid]  INT           NULL,
    [iospendingenroll_packagename] VARCHAR (32)  NULL,
    [iospendingenroll_iostrackid]  VARCHAR (64)  NULL,
    PRIMARY KEY CLUSTERED ([iospendingenroll_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_IOSSERIES]...';


GO
CREATE TABLE [dbo].[AMDM_IOSSERIES] (
    [ioss_id]             INT           IDENTITY (1, 1) NOT NULL,
    [ioss_commercialname] NVARCHAR (50) NULL,
    [ioss_ordernumber]    NVARCHAR (50) NULL,
    PRIMARY KEY CLUSTERED ([ioss_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_MANAGEMENTPROJECT]...';


GO
CREATE TABLE [dbo].[AMDM_MANAGEMENTPROJECT] (
    [manproject_id]          INT            IDENTITY (1, 1) NOT NULL,
    [manproject_name]        NVARCHAR (512) NULL,
    [manproject_statusid]    INT            NULL,
    [manproject_startdate]   DATETIME       NULL,
    [manproject_finishdate]  DATETIME       NULL,
    [manproject_userid]      INT            NULL,
    [manproject_createddate] DATETIME       NULL,
    [manproject_scheduleid]  INT            NULL,
    PRIMARY KEY CLUSTERED ([manproject_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_MANPROJACTION_SCRIPTCMD]...';


GO
CREATE TABLE [dbo].[AMDM_MANPROJACTION_SCRIPTCMD] (
    [id]                  INT IDENTITY (1, 1) NOT NULL,
    [manprojectaction_id] INT NULL,
    [scriptcommand_id]    INT NULL,
    [order]               INT NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_MANPROJECT_ACTION]...';


GO
CREATE TABLE [dbo].[AMDM_MANPROJECT_ACTION] (
    [manprojectaction_id]         INT             IDENTITY (1, 1) NOT NULL,
    [manprojectaction_typeid]     INT             NULL,
    [manprojectaction_parameters] NVARCHAR (2048) NULL,
    [manprojectaction_projectid]  INT             NULL,
    PRIMARY KEY CLUSTERED ([manprojectaction_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_MANPROJECT_ACTION_TYPE]...';


GO
CREATE TABLE [dbo].[AMDM_MANPROJECT_ACTION_TYPE] (
    [manprojectactiontype_id]   INT           NOT NULL,
    [manprojectactiontype_name] NVARCHAR (30) NULL,
    PRIMARY KEY CLUSTERED ([manprojectactiontype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_MANPROJECT_DEVICE]...';


GO
CREATE TABLE [dbo].[AMDM_MANPROJECT_DEVICE] (
    [id]                   INT      IDENTITY (1, 1) NOT NULL,
    [device_id]            INT      NULL,
    [managementproject_id] INT      NULL,
    [status_id]            INT      NULL,
    [errortype_id]         INT      NULL,
    [lastupdate]           DATETIME NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_MANPROJECT_NOTIFICATION]...';


GO
CREATE TABLE [dbo].[AMDM_MANPROJECT_NOTIFICATION] (
    [id]         INT             IDENTITY (1, 1) NOT NULL,
    [recipients] NVARCHAR (2048) NULL,
    [title]      NVARCHAR (512)  NULL,
    [message]    NVARCHAR (2048) NULL,
    [type_id]    INT             NULL,
    [project_id] INT             NULL,
    [sent]       BIT             NULL,
    CONSTRAINT [PK_AMDM_MANPROJECT_NOTIFICATION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_MANPROJECT_NOTIFY_TYPE]...';


GO
CREATE TABLE [dbo].[AMDM_MANPROJECT_NOTIFY_TYPE] (
    [manprojectnotifytype_id]   INT           NOT NULL,
    [manprojectnotifytype_name] NVARCHAR (15) NULL,
    PRIMARY KEY CLUSTERED ([manprojectnotifytype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_MANPROJECT_STATUS]...';


GO
CREATE TABLE [dbo].[AMDM_MANPROJECT_STATUS] (
    [manprojectstatus_id]   INT           NOT NULL,
    [manprojectstatus_name] NVARCHAR (30) NULL,
    PRIMARY KEY CLUSTERED ([manprojectstatus_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_MOBILEADONS]...';


GO
CREATE TABLE [dbo].[AMDM_MOBILEADONS] (
    [id]      INT             IDENTITY (1, 1) NOT NULL,
    [name]    NVARCHAR (50)   NULL,
    [url]     NVARCHAR (1024) NULL,
    [version] NVARCHAR (50)   NULL,
    CONSTRAINT [PK_AMDM_MOBILEADONS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_MOBILEMANUFACTURERS]...';


GO
CREATE TABLE [dbo].[AMDM_MOBILEMANUFACTURERS] (
    [mobman_id]       INT            IDENTITY (1, 1) NOT NULL,
    [mobman_name]     NVARCHAR (128) NULL,
    [mobman_platform] INT            NOT NULL,
    CONSTRAINT [PK_AMDMMOBILEMANUFACTURERS] PRIMARY KEY CLUSTERED ([mobman_id] ASC) ON [PRIMARY]
);


GO
PRINT N'Creating Table [dbo].[AMDM_MOBILEPLATFORMSVERSIONS]...';


GO
CREATE TABLE [dbo].[AMDM_MOBILEPLATFORMSVERSIONS] (
    [platformver_id]          INT            IDENTITY (100000, 1) NOT NULL,
    [platformver_version]     NVARCHAR (16)  NULL,
    [platformver_platform]    INT            NOT NULL,
    [platformver_description] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AMDMMOBILEPLATFVERSIONS] PRIMARY KEY CLUSTERED ([platformver_id] ASC) ON [PRIMARY]
);


GO
PRINT N'Creating Table [dbo].[AMDM_NOTIFICATIONTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_NOTIFICATIONTYPE] (
    [devnottype_id]   INT           NOT NULL,
    [devnottype_name] NVARCHAR (16) NULL,
    CONSTRAINT [PK_AMDMNOTIFICATIONTYPE] PRIMARY KEY CLUSTERED ([devnottype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_OWNERSHIP_TYPE]...';


GO
CREATE TABLE [dbo].[AMDM_OWNERSHIP_TYPE] (
    [owntype_id]   INT           NOT NULL,
    [owntype_name] NVARCHAR (16) NULL,
    PRIMARY KEY CLUSTERED ([owntype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_PENDINGENROLL]...';


GO
CREATE TABLE [dbo].[AMDM_PENDINGENROLL] (
    [penr_id]                       INT             IDENTITY (1, 1) NOT NULL,
    [penr_idenrollmentflags]        INT             NOT NULL,
    [penr_statusid]                 INT             NOT NULL,
    [penr_remainingauthattemps]     INT             NOT NULL,
    [penr_imei]                     NVARCHAR (64)   NULL,
    [penr_uuid]                     NVARCHAR (64)   NULL,
    [penr_iosappapnstoken]          NVARCHAR (128)  NULL,
    [penr_iostopic]                 NVARCHAR (128)  NULL,
    [penr_iosunlocktoken]           VARCHAR (8000)  NULL,
    [penr_iosmdmapnsoken]           NVARCHAR (128)  NULL,
    [penr_iosmdmpushmagic]          NVARCHAR (128)  NULL,
    [penr_androidgcmregistrationid] NVARCHAR (1024) NULL,
    [penr_mobileuserid]             INT             NOT NULL,
    [penr_email]                    NVARCHAR (128)  NULL,
    [penr_expirydate]               DATETIME        NOT NULL,
    [penr_platformid]               INT             NOT NULL,
    [penr_enrollmentcode]           NVARCHAR (16)   NULL,
    [penr_passcode]                 NVARCHAR (16)   NULL,
    [penr_urltomobileconfig]        NVARCHAR (512)  NULL,
    [penr_urltocontrolapplication]  NVARCHAR (512)  NULL,
    [penr_companyowned]             BIT             NOT NULL,
    [penr_message]                  NVARCHAR (32)   NULL,
    [penr_devicename]               NVARCHAR (128)  NULL,
    [penr_requestdate]              DATETIME        NOT NULL,
    [penr_errorid]                  INT             NULL,
    [penr_afwcapable]               BIT             NULL,
    [penr_uuidios]                  NVARCHAR (64)   NULL,
    [has_massive_enrollment]        BIT             NOT NULL,
    CONSTRAINT [PK_AMDMPENDINGENROLL] PRIMARY KEY CLUSTERED ([penr_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_PENDINGENROLL].[IX_penr_errorid]...';


GO
CREATE NONCLUSTERED INDEX [IX_penr_errorid]
    ON [dbo].[AMDM_PENDINGENROLL]([penr_errorid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_PENDINGENROLL].[IX_penr_idenrollmentflags]...';


GO
CREATE NONCLUSTERED INDEX [IX_penr_idenrollmentflags]
    ON [dbo].[AMDM_PENDINGENROLL]([penr_idenrollmentflags] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_PENDINGENROLL].[IX_penr_mobileuserid]...';


GO
CREATE NONCLUSTERED INDEX [IX_penr_mobileuserid]
    ON [dbo].[AMDM_PENDINGENROLL]([penr_mobileuserid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_PENDINGENROLL].[IX_penr_platformid]...';


GO
CREATE NONCLUSTERED INDEX [IX_penr_platformid]
    ON [dbo].[AMDM_PENDINGENROLL]([penr_platformid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_PENDINGENROLL].[IX_penr_statusid]...';


GO
CREATE NONCLUSTERED INDEX [IX_penr_statusid]
    ON [dbo].[AMDM_PENDINGENROLL]([penr_statusid] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_PENDINGENROLLFLAGS]...';


GO
CREATE TABLE [dbo].[AMDM_PENDINGENROLLFLAGS] (
    [penrf_id]                      INT IDENTITY (1, 1) NOT NULL,
    [penrf_iosauthenticated]        BIT NOT NULL,
    [penrf_iostokenupdated]         BIT NOT NULL,
    [penrf_iosappauthenticated]     BIT NOT NULL,
    [penrf_iosapptermsaccepted]     BIT NOT NULL,
    [penrf_iosappapnstokenupdated]  BIT NOT NULL,
    [penrf_androidappauthenticated] BIT NOT NULL,
    [penrf_androidapptermsaccepted] BIT NOT NULL,
    [penrf_androidappadminaccepted] BIT NOT NULL,
    [penrf_androidappgcmidupdated]  BIT NOT NULL,
    [penrf_iosprofiledownloaded]    BIT NOT NULL,
    [penrf_iosappdownloaded]        BIT NOT NULL,
    [penrf_androidappdownloaded]    BIT NOT NULL,
    [penrf_w10workplacecreated]     BIT NOT NULL,
    [penrf_w10appauthenticated]     BIT NOT NULL,
    [penrf_w10termsaccepted]        BIT NOT NULL,
    [penrf_dispatchertermsaccepted] BIT NOT NULL,
    CONSTRAINT [PK_AMDMPENDINGENROLLFLAGS] PRIMARY KEY CLUSTERED ([penrf_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICY]...';


GO
CREATE TABLE [dbo].[AMDM_POLICY] (
    [policy_id]           INT           IDENTITY (1, 1) NOT NULL,
    [policy_policyname]   NVARCHAR (64) NULL,
    [policy_createby]     INT           NOT NULL,
    [policy_modifiedby]   INT           NULL,
    [policy_lastmodified] DATETIME      NULL,
    [policy_createdate]   DATETIME      NULL,
    [policy_platformid]   INT           NULL,
    [policy_ApprovedBy]   INT           NULL,
    [policy_lastapproved] DATETIME      NULL,
    [policy_status]       INT           NOT NULL,
    [policy_version]      INT           NOT NULL,
    [policy_isgeneric]    BIT           NULL,
    [policy_isafw]        BIT           NULL,
    CONSTRAINT [PK_AMDMPOLICY] PRIMARY KEY CLUSTERED ([policy_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_POLICY].[IX01_AMDMPOLICY]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMPOLICY]
    ON [dbo].[AMDM_POLICY]([policy_platformid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_POLICY].[IX02_AMDMPOLICY]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AMDMPOLICY]
    ON [dbo].[AMDM_POLICY]([policy_modifiedby] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_POLICY].[IX03_AMDMPOLICY]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AMDMPOLICY]
    ON [dbo].[AMDM_POLICY]([policy_createby] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYFULFILLMENTPROBLEM]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYFULFILLMENTPROBLEM] (
    [fulfilledprom_id]              INT           IDENTITY (1, 1) NOT NULL,
    [fulfilledprom_deviceid]        INT           NULL,
    [fulfilledprom_problemtype]     INT           NULL,
    [fulfilledprom_problemitemid]   VARCHAR (64)  NULL,
    [fulfilledprom_problemitemdesc] VARCHAR (256) NULL,
    PRIMARY KEY CLUSTERED ([fulfilledprom_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYFULFILLPROBLEMTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYFULFILLPROBLEMTYPE] (
    [fulfilledpromtype_id]   INT           NOT NULL,
    [fulfilledpromtype_name] NVARCHAR (64) NULL,
    PRIMARY KEY CLUSTERED ([fulfilledpromtype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYITEM]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYITEM] (
    [politem_id]              INT IDENTITY (1, 1) NOT NULL,
    [politem_policyid]        INT NULL,
    [politem_policyitemtype]  INT NOT NULL,
    [politem_policyversionid] INT NULL,
    CONSTRAINT [PK_AMDMPOLICYITEM] PRIMARY KEY CLUSTERED ([politem_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_POLICYITEM].[IX01_AMDMPOLICYITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMPOLICYITEM]
    ON [dbo].[AMDM_POLICYITEM]([politem_policyitemtype] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_POLICYITEM].[IX02_AMDMPOLICYITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AMDMPOLICYITEM]
    ON [dbo].[AMDM_POLICYITEM]([politem_policyid] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYITEMTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYITEMTYPE] (
    [politemtype_id]   INT           NOT NULL,
    [politemtype_name] NVARCHAR (64) NULL,
    CONSTRAINT [PK_AMDMPOLICYITEMTYPE] PRIMARY KEY CLUSTERED ([politemtype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYITEMTYPEPARAMETER]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYITEMTYPEPARAMETER] (
    [politemparam_id]             INT            IDENTITY (1, 1) NOT NULL,
    [politemparam_name]           NVARCHAR (128) NULL,
    [politemparam_value]          NVARCHAR (MAX) NULL,
    [politemparam_policyitemid]   INT            NOT NULL,
    [politemparam_parammainappid] INT            NULL,
    CONSTRAINT [PK_AMDMPOLICYITEMTYPEPARAMETER] PRIMARY KEY CLUSTERED ([politemparam_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_POLICYITEMTYPEPARAMETER].[IX01_AMDMPOLICYITEMTYPEPARAMETER]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMPOLICYITEMTYPEPARAMETER]
    ON [dbo].[AMDM_POLICYITEMTYPEPARAMETER]([politemparam_policyitemid] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYPARAMAPP]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYPARAMAPP] (
    [poliparamapp_id]        INT            IDENTITY (1, 1) NOT NULL,
    [poliparamapp_packageid] NVARCHAR (512) NULL,
    [poliparamapp_logo]      NVARCHAR (512) NULL,
    [poliparamapp_appname]   NVARCHAR (512) NULL,
    [poliparamapp_typeapp]   NVARCHAR (50)  NULL,
    [poliparamapp_price]     NVARCHAR (50)  NULL,
    [poliparamapp_mainappid] INT            NULL,
    PRIMARY KEY CLUSTERED ([poliparamapp_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYPARAMAPPMAIN]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYPARAMAPPMAIN] (
    [poliparammainapp_id]        INT IDENTITY (1, 1) NOT NULL,
    [poliparammainapp_forcesafe] BIT NOT NULL,
    PRIMARY KEY CLUSTERED ([poliparammainapp_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYPARAMAPPPERMISSION]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYPARAMAPPPERMISSION] (
    [poliparamappper_id]             INT            IDENTITY (1, 1) NOT NULL,
    [poliparamappper_name]           NVARCHAR (512) NULL,
    [poliparamappper_value]          NVARCHAR (512) NULL,
    [poliparamappper_poliparamappid] INT            NULL,
    PRIMARY KEY CLUSTERED ([poliparamappper_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYSTATUSTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYSTATUSTYPE] (
    [polstatype_id]   INT           NOT NULL,
    [polstatype_name] NVARCHAR (16) NULL,
    PRIMARY KEY CLUSTERED ([polstatype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYTARGET_TEMP]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYTARGET_TEMP] (
    [poltar_id]       INT          IDENTITY (1, 1) NOT NULL,
    [poltar_policyid] INT          NULL,
    [poltar_targetid] INT          NULL,
    [poltar_guid]     VARCHAR (50) NULL,
    [poltar_type]     INT          NULL,
    PRIMARY KEY CLUSTERED ([poltar_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_POLICYVERSION]...';


GO
CREATE TABLE [dbo].[AMDM_POLICYVERSION] (
    [policy_id]           INT           IDENTITY (1, 1) NOT NULL,
    [policy_policyname]   NVARCHAR (64) NULL,
    [policy_createby]     INT           NULL,
    [policy_modifiedby]   INT           NULL,
    [policy_ApprovedBy]   INT           NULL,
    [policy_lastmodified] DATETIME      NULL,
    [policy_lastapproved] DATETIME      NULL,
    [policy_createdate]   DATETIME      NULL,
    [policy_platformid]   INT           NULL,
    [policy_parentpolicy] INT           NULL,
    [policy_version]      INT           NULL,
    CONSTRAINT [PK_AMDMPOLICYVERSION] PRIMARY KEY CLUSTERED ([policy_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_PUSHREQUEST]...';


GO
CREATE TABLE [dbo].[AMDM_PUSHREQUEST] (
    [pushreq_id]               INT             IDENTITY (1, 1) NOT NULL,
    [pushreq_platform]         NVARCHAR (32)   NULL,
    [pushreq_protocol]         NVARCHAR (32)   NULL,
    [pushreq_androidGCMID]     NVARCHAR (1024) NULL,
    [pushreq_iosToken]         NVARCHAR (128)  NULL,
    [pushreq_w10channeluri]    NVARCHAR (512)  NULL,
    [pushreq_iosSilent]        BIT             NULL,
    [pushreq_iosMessage]       NVARCHAR (128)  NULL,
    [pushreq_iosPushMagic]     NVARCHAR (128)  NULL,
    [pushreq_iosBadgeNumber]   INT             NULL,
    [pushreq_iosCommandId]     NVARCHAR (64)   NULL,
    [pushreq_attempCount]      INT             NULL,
    [pushreq_inProgress]       BIT             NULL,
    [pushreq_requestDate]      DATETIME        NULL,
    [pushreq_attempDate]       DATETIME        NULL,
    [pushreq_guid]             VARCHAR (64)    NULL,
    [pushreq_sound]            VARCHAR (32)    NULL,
    [pushreq_handle]           VARCHAR (512)   NULL,
    [pushreq_headers]          VARCHAR (256)   NULL,
    [pushreq_payload]          VARCHAR (512)   NULL,
    [pushreq_certificate]      VARCHAR (MAX)   NULL,
    [pushreq_certpassword]     VARCHAR (64)    NULL,
    [pushreq_tag]              VARCHAR (MAX)   NULL,
    [pushreq_iosisproduction]  BIT             NULL,
    [pushreq_errormessage]     VARCHAR (2048)  NULL,
    [pushreq_remainingattemps] INT             NULL,
    [pushreq_appcode]          VARCHAR (16)    NULL,
    [pushreq_certcode]         VARCHAR (64)    NULL,
    [pushreq_providerid]       INT             NULL,
    CONSTRAINT [PK_AMDMPUSHREQUEST] PRIMARY KEY CLUSTERED ([pushreq_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_PUSHREQUESTCL]...';


GO
CREATE TABLE [dbo].[AMDM_PUSHREQUESTCL] (
    [pushreq_id]               INT             IDENTITY (1, 1) NOT NULL,
    [pushreq_platform]         NVARCHAR (32)   NULL,
    [pushreq_protocol]         NVARCHAR (32)   NULL,
    [pushreq_androidGCMID]     NVARCHAR (1024) NULL,
    [pushreq_iosToken]         NVARCHAR (128)  NULL,
    [pushreq_w10channeluri]    NVARCHAR (512)  NULL,
    [pushreq_iosSilent]        BIT             NULL,
    [pushreq_iosMessage]       NVARCHAR (128)  NULL,
    [pushreq_iosPushMagic]     NVARCHAR (128)  NULL,
    [pushreq_iosBadgeNumber]   INT             NULL,
    [pushreq_iosCommandId]     NVARCHAR (64)   NULL,
    [pushreq_attempCount]      INT             NULL,
    [pushreq_requestDate]      DATETIME        NULL,
    [pushreq_attempDate]       DATETIME        NULL,
    [pushreq_guid]             VARCHAR (64)    NULL,
    [pushreq_sound]            VARCHAR (32)    NULL,
    [pushreq_handle]           VARCHAR (512)   NULL,
    [pushreq_headers]          VARCHAR (256)   NULL,
    [pushreq_payload]          VARCHAR (512)   NULL,
    [pushreq_certificate]      VARCHAR (32)    NULL,
    [pushreq_certpassword]     VARCHAR (64)    NULL,
    [pushreq_tag]              VARCHAR (64)    NULL,
    [pushreq_iosisproduction]  BIT             NULL,
    [pushreq_errormessage]     VARCHAR (1024)  NULL,
    [pushreq_remainingattemps] INT             NULL,
    [pushreq_success]          BIT             NULL,
    [pushreq_appcode]          VARCHAR (16)    NULL,
    [pushreq_certcode]         VARCHAR (64)    NULL,
    [pushreq_providerid]       INT             NULL,
    CONSTRAINT [PK_AMDMPUSHREQUESTCL] PRIMARY KEY CLUSTERED ([pushreq_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_PUSHREQUESTCL].[IX01_AMDM_PUSHREQUESTCL]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDM_PUSHREQUESTCL]
    ON [dbo].[AMDM_PUSHREQUESTCL]([pushreq_requestDate] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_RCSESSION]...';


GO
CREATE TABLE [dbo].[AMDM_RCSESSION] (
    [rcsession_id]                  INT           IDENTITY (1, 1) NOT NULL,
    [rcsession_guid]                VARCHAR (50)  NULL,
    [rcsession_devicename]          VARCHAR (128) NULL,
    [rcsession_startdate]           DATETIME      NOT NULL,
    [rcsession_enddate]             DATETIME      NULL,
    [rcsession_protocolversion]     VARCHAR (16)  NOT NULL,
    [rcsession_isclientavailable]   BIT           NOT NULL,
    [rcsession_isserveravailable]   BIT           NOT NULL,
    [rcsession_ischallengerequired] BIT           NOT NULL,
    [rcsession_statusid]            INT           NOT NULL,
    [rcsession_iscontrolallowed]    BIT           NOT NULL,
    [rcsession_endreason]           VARCHAR (64)  NULL,
    [rcsession_userid]              INT           NULL,
    CONSTRAINT [PK_AMDMRCSESSION] PRIMARY KEY CLUSTERED ([rcsession_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_RCSESSIONFILES]...';


GO
CREATE TABLE [dbo].[AMDM_RCSESSIONFILES] (
    [id]          INT             IDENTITY (1, 1) NOT NULL,
    [guid]        NVARCHAR (50)   NULL,
    [content]     VARBINARY (MAX) NULL,
    [description] NVARCHAR (2048) NULL,
    [sessionguid] NVARCHAR (50)   NULL,
    [textcontent] NVARCHAR (MAX)  NULL,
    PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_AMDM_RCSESSIONFILES] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_RCSESSIONMEDIA]...';


GO
CREATE TABLE [dbo].[AMDM_RCSESSIONMEDIA] (
    [rcsessionmedia_id]          INT             IDENTITY (1, 1) NOT NULL,
    [rcsessionmedia_type]        NVARCHAR (20)   NULL,
    [rcsessionmedia_content]     VARBINARY (MAX) NULL,
    [rcsessionmedia_rcsessionid] INT             NULL,
    PRIMARY KEY CLUSTERED ([rcsessionmedia_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_RCSESSIONSTATUS]...';


GO
CREATE TABLE [dbo].[AMDM_RCSESSIONSTATUS] (
    [rcsesstat_id]   INT          NOT NULL,
    [rcsesstat_name] VARCHAR (64) NOT NULL,
    CONSTRAINT [PK_AMDMRCSESSIONSTATUS] PRIMARY KEY CLUSTERED ([rcsesstat_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_REPORT_FACT_APPLICATIONS]...';


GO
CREATE TABLE [dbo].[AMDM_REPORT_FACT_APPLICATIONS] (
    [dimPlatform]         VARCHAR (16) NULL,
    [dimAppSource]        VARCHAR (16) NULL,
    [dimAppCategory]      VARCHAR (64) NULL,
    [meaApplicationCount] INT          NULL
);


GO
PRINT N'Creating Table [dbo].[AMDM_REPORT_FACT_DEVICES]...';


GO
CREATE TABLE [dbo].[AMDM_REPORT_FACT_DEVICES] (
    [dimDevStatus]     VARCHAR (32) NULL,
    [dimPlatform]      VARCHAR (32) NULL,
    [dimManufacturer]  VARCHAR (64) NULL,
    [dimDevType]       VARCHAR (32) NULL,
    [dimSecurityState] VARCHAR (32) NULL,
    [dimPropertyType]  VARCHAR (32) NULL,
    [dimEnrollDate]    VARCHAR (32) NULL,
    [dimLastSeenDate]  VARCHAR (32) NULL,
    [dimOsVersion]     VARCHAR (32) NULL,
    [dimDevModel]      VARCHAR (32) NULL,
    [dimSimCarrier]    VARCHAR (64) NULL,
    [dimPolicy]        VARCHAR (64) NULL,
    [meaDeviceCount]   INT          NULL
);


GO
PRINT N'Creating Table [dbo].[AMDM_REPORT_FACT_ENROLLMENTS]...';


GO
CREATE TABLE [dbo].[AMDM_REPORT_FACT_ENROLLMENTS] (
    [dimDate]             DATETIME     NULL,
    [dimPlatform]         VARCHAR (32) NULL,
    [dimEnrollmentStatus] VARCHAR (32) NULL,
    [measEnrollments]     INT          NULL
);


GO
PRINT N'Creating Table [dbo].[AMDM_REPORT_FACT_POLICIES]...';


GO
CREATE TABLE [dbo].[AMDM_REPORT_FACT_POLICIES] (
    [dimPolicyStatus]    VARCHAR (32) NULL,
    [dimPlatform]        VARCHAR (32) NULL,
    [meaFulfillCount]    INT          NULL,
    [meaNotFulfillCount] INT          NULL,
    [meaPolicyCount]     INT          NULL
);


GO
PRINT N'Creating Table [dbo].[AMDM_REQACTIONPARAM]...';


GO
CREATE TABLE [dbo].[AMDM_REQACTIONPARAM] (
    [actparams_id]         INT            IDENTITY (1, 1) NOT NULL,
    [actparams_actionid]   INT            NOT NULL,
    [actparams_paramname]  NVARCHAR (64)  NULL,
    [actparams_paramvalue] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AMDMREQACTIONPARAM] PRIMARY KEY CLUSTERED ([actparams_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_REQACTIONPARAM].[IX_actparams_actionid]...';


GO
CREATE NONCLUSTERED INDEX [IX_actparams_actionid]
    ON [dbo].[AMDM_REQACTIONPARAM]([actparams_actionid] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_RULE_TYPE]...';


GO
CREATE TABLE [dbo].[AMDM_RULE_TYPE] (
    [rtype_id]   INT          NOT NULL,
    [rtype_name] VARCHAR (50) NOT NULL,
    PRIMARY KEY CLUSTERED ([rtype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_RULESET]...';


GO
CREATE TABLE [dbo].[AMDM_RULESET] (
    [ruleset_id]               INT          IDENTITY (1, 1) NOT NULL,
    [ruleset_name]             VARCHAR (50) NOT NULL,
    [ruleset_creationdate]     DATETIME     NOT NULL,
    [ruleset_usercreatorid]    INT          NOT NULL,
    [ruleset_lastuserid]       INT          NOT NULL,
    [ruleset_lastmodification] DATETIME     NULL,
    [ruleset_haveGeofencing]   BIT          NULL,
    [ruleset_haveWififencing]  BIT          NULL,
    [ruleset_haveUserlogged]   BIT          NULL,
    [ruleset_haveUnenroll]     BIT          NULL,
    [ruleset_haveRooted]       BIT          NULL,
    [ruleset_haveFullFillment] BIT          NULL,
    [ruleset_haveWorkHorary]   BIT          NULL,
    [ruleset_haveNewInventory] BIT          NULL,
    [ruleset_haveExpense]      BIT          NULL,
    [ruleset_haveLoginFailed]  BIT          NULL,
    [ruleset_version]          INT          NULL,
    PRIMARY KEY CLUSTERED ([ruleset_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_RULESET_RULE]...';


GO
CREATE TABLE [dbo].[AMDM_RULESET_RULE] (
    [rset_id]          INT IDENTITY (1, 1) NOT NULL,
    [rset_rulesetid]   INT NOT NULL,
    [rset_afwruleid]   INT NOT NULL,
    [rset_rule_typeid] INT NOT NULL,
    PRIMARY KEY CLUSTERED ([rset_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_RULESETEXPENSEPLAN]...';


GO
CREATE TABLE [dbo].[AMDM_RULESETEXPENSEPLAN] (
    [rulesetplan_id]               INT      IDENTITY (1, 1) NOT NULL,
    [rulesetplan_creationdate]     DATETIME NULL,
    [rulesetplan_usercreatorid]    INT      NULL,
    [rulesetplan_lastuserid]       INT      NULL,
    [rulesetplan_lastmodification] DATETIME NULL,
    [rulesetplan_version]          INT      NULL,
    PRIMARY KEY CLUSTERED ([rulesetplan_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_RULESETEXPENSEPLAN_RULE]...';


GO
CREATE TABLE [dbo].[AMDM_RULESETEXPENSEPLAN_RULE] (
    [rsetexpplan_rule_id]           INT IDENTITY (1, 1) NOT NULL,
    [rsetexpplan_rulesetexpplan_id] INT NULL,
    [rsetexpplan_afwruleid]         INT NULL,
    [rsetexpplan_rule_typeid]       INT NULL,
    PRIMARY KEY CLUSTERED ([rsetexpplan_rule_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_SAFEDEVICES]...';


GO
CREATE TABLE [dbo].[AMDM_SAFEDEVICES] (
    [safedev_id]               INT           IDENTITY (1, 1) NOT NULL,
    [safedev_modelname]        VARCHAR (200) NULL,
    [safedev_modeldescription] VARCHAR (500) NULL,
    CONSTRAINT [PK_AMDMSAFEDEVICES] PRIMARY KEY CLUSTERED ([safedev_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_SCRIPT_COMMAND]...';


GO
CREATE TABLE [dbo].[AMDM_SCRIPT_COMMAND] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (256) NULL,
    [description] NVARCHAR (512) NULL,
    [is_active]   BIT            NULL,
    [script]      NVARCHAR (MAX) NULL,
    [user_id]     INT            NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_SCRIPTCOMMAND_TYPE]...';


GO
CREATE TABLE [dbo].[AMDM_SCRIPTCOMMAND_TYPE] (
    [id]                   INT           NOT NULL,
    [command_text]         NVARCHAR (50) NULL,
    [parameters]           INT           NULL,
    [commandactiontype_id] INT           NULL,
    [is_visible]           BIT           NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_SECURITYVALIDATION_ACTION]...';


GO
CREATE TABLE [dbo].[AMDM_SECURITYVALIDATION_ACTION] (
    [id]   INT           NOT NULL,
    [name] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AMDMSECURITYVALIDATIONACTION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_SENTCOMMAND]...';


GO
CREATE TABLE [dbo].[AMDM_SENTCOMMAND] (
    [sentcmd_id]               INT           IDENTITY (1, 1) NOT NULL,
    [sentcmd_requestid]        INT           NOT NULL,
    [sentcmd_statusid]         INT           NOT NULL,
    [sentcmd_deviceid]         INT           NOT NULL,
    [sentcmd_expirydate]       DATETIME      NOT NULL,
    [sentcmd_errortypeid]      INT           NOT NULL,
    [sentcmd_uuid]             NVARCHAR (64) NULL,
    [sentcmd_targetprotocolid] INT           NULL,
    [sentcmd_sendDate]         DATETIME      NULL,
    [sentcmd_fetchDate]        DATETIME      NULL,
    [sentcmd_answerDate]       DATETIME      NULL,
    CONSTRAINT [PK_AMDMSENTCOMMAND] PRIMARY KEY CLUSTERED ([sentcmd_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_SENTCOMMAND].[IX02_AMDM_SENTCOMMAND]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AMDM_SENTCOMMAND]
    ON [dbo].[AMDM_SENTCOMMAND]([sentcmd_requestid] ASC, [sentcmd_expirydate] DESC, [sentcmd_deviceid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_SENTCOMMAND].[IX03_AMDM_SENTCOMMAND]...';


GO
CREATE NONCLUSTERED INDEX [IX03_AMDM_SENTCOMMAND]
    ON [dbo].[AMDM_SENTCOMMAND]([sentcmd_deviceid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_SENTCOMMAND].[IX04_AMDM_SENTCOMMAND]...';


GO
CREATE NONCLUSTERED INDEX [IX04_AMDM_SENTCOMMAND]
    ON [dbo].[AMDM_SENTCOMMAND]([sentcmd_uuid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_SENTCOMMAND].[IX05_AMDM_SENTCOMMAND]...';


GO
CREATE NONCLUSTERED INDEX [IX05_AMDM_SENTCOMMAND]
    ON [dbo].[AMDM_SENTCOMMAND]([sentcmd_sendDate] ASC, [sentcmd_requestid] ASC, [sentcmd_statusid] ASC)
    INCLUDE([sentcmd_expirydate]);


GO
PRINT N'Creating Index [dbo].[AMDM_SENTCOMMAND].[IX06_AMDM_SENTCOMMAND]...';


GO
CREATE NONCLUSTERED INDEX [IX06_AMDM_SENTCOMMAND]
    ON [dbo].[AMDM_SENTCOMMAND]([sentcmd_statusid] ASC, [sentcmd_deviceid] ASC, [sentcmd_targetprotocolid] ASC, [sentcmd_sendDate] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_SENTCOMMAND].[IX08_AMDM_SENTCOMMAND]...';


GO
CREATE NONCLUSTERED INDEX [IX08_AMDM_SENTCOMMAND]
    ON [dbo].[AMDM_SENTCOMMAND]([sentcmd_statusid] ASC, [sentcmd_expirydate] ASC)
    INCLUDE([sentcmd_requestid], [sentcmd_deviceid]);


GO
PRINT N'Creating Index [dbo].[AMDM_SENTCOMMAND].[IX09_AMDM_SENTCOMMAND]...';


GO
CREATE NONCLUSTERED INDEX [IX09_AMDM_SENTCOMMAND]
    ON [dbo].[AMDM_SENTCOMMAND]([sentcmd_id] ASC, [sentcmd_errortypeid] ASC, [sentcmd_deviceid] ASC, [sentcmd_requestid] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_SENTCOMMANDLOG]...';


GO
CREATE TABLE [dbo].[AMDM_SENTCOMMANDLOG] (
    [sentcmdlg_id]            INT      IDENTITY (1, 1) NOT NULL,
    [sentcmdlg_statusid]      INT      NOT NULL,
    [sentcmdlg_sentcommandid] INT      NOT NULL,
    [sentcmdlg_statusdate]    DATETIME NOT NULL,
    CONSTRAINT [PK_AMDMSENTCOMMANDLOG] PRIMARY KEY CLUSTERED ([sentcmdlg_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_SENTCOMMANDLOG].[IX01_AMDMSENTCOMMANDLOG]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AMDMSENTCOMMANDLOG]
    ON [dbo].[AMDM_SENTCOMMANDLOG]([sentcmdlg_sentcommandid] ASC);


GO
PRINT N'Creating Index [dbo].[AMDM_SENTCOMMANDLOG].[IX02_AMDMSENTCOMMANDLOG]...';


GO
CREATE NONCLUSTERED INDEX [IX02_AMDMSENTCOMMANDLOG]
    ON [dbo].[AMDM_SENTCOMMANDLOG]([sentcmdlg_statusid] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_SYSTEMAPP]...';


GO
CREATE TABLE [dbo].[AMDM_SYSTEMAPP] (
    [systemapp_id]      INT            IDENTITY (1, 1) NOT NULL,
    [systemapp_package] VARCHAR (1024) NULL,
    [systemapp_typeid]  INT            NULL,
    CONSTRAINT [PK_AMDM_SYSTEMAPP] PRIMARY KEY CLUSTERED ([systemapp_id] ASC),
    CONSTRAINT [UK01_AMDMSYSTEMAPP] UNIQUE NONCLUSTERED ([systemapp_package] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_SYSTEMAPPTYPE]...';


GO
CREATE TABLE [dbo].[AMDM_SYSTEMAPPTYPE] (
    [sysapptype_id]   INT          NOT NULL,
    [sysapptype_name] VARCHAR (30) NULL,
    PRIMARY KEY CLUSTERED ([sysapptype_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_USER]...';


GO
CREATE TABLE [dbo].[AMDM_USER] (
    [user_id]              INT            IDENTITY (1, 1) NOT NULL,
    [user_tenantid]        INT            NOT NULL,
    [user_projectid]       INT            NOT NULL,
    [user_name]            NVARCHAR (MAX) NULL,
    [user_fullname]        NVARCHAR (MAX) NULL,
    [user_isadministrator] BIT            NOT NULL,
    [user_email]           NVARCHAR (MAX) NULL,
    [user_domain]          NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AMDMUSER] PRIMARY KEY CLUSTERED ([user_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AMDM_USER].[IX_user_tenantid]...';


GO
CREATE NONCLUSTERED INDEX [IX_user_tenantid]
    ON [dbo].[AMDM_USER]([user_tenantid] ASC);


GO
PRINT N'Creating Table [dbo].[AMDM_USER_CONTENTLOCK]...';


GO
CREATE TABLE [dbo].[AMDM_USER_CONTENTLOCK] (
    [userlock_id]               INT           IDENTITY (1, 1) NOT NULL,
    [userlock_userid]           INT           NULL,
    [userlock_username]         VARCHAR (255) NULL,
    [userlock_authenticationid] INT           NULL,
    PRIMARY KEY CLUSTERED ([userlock_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_VPP_ASSIGNLICENSES]...';


GO
CREATE TABLE [dbo].[AMDM_VPP_ASSIGNLICENSES] (
    [id]          INT      IDENTITY (1, 1) NOT NULL,
    [app_id]      INT      NOT NULL,
    [start_date]  DATETIME NULL,
    [finish_date] DATETIME NULL,
    [is_active]   BIT      NULL,
    CONSTRAINT [PK_AMDM_VPP_ASSIGNLICENSES] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_VPP_ASSIGNLICENSESDETAIL]...';


GO
CREATE TABLE [dbo].[AMDM_VPP_ASSIGNLICENSESDETAIL] (
    [id]                INT             IDENTITY (1, 1) NOT NULL,
    [serial_number]     NVARCHAR (50)   NULL,
    [error_code]        INT             NULL,
    [error_message]     NVARCHAR (1024) NULL,
    [assignlicenses_id] INT             NULL,
    CONSTRAINT [PK_AMDM_VPP_ASSIGNLICENSESDETAIL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_WEEKDAY]...';


GO
CREATE TABLE [dbo].[AMDM_WEEKDAY] (
    [day_id]   INT          NOT NULL,
    [day_name] VARCHAR (50) NOT NULL,
    CONSTRAINT [PK_AMDMCALENDARWEEKDAY] PRIMARY KEY CLUSTERED ([day_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_ZONE]...';


GO
CREATE TABLE [dbo].[AMDM_ZONE] (
    [zone_id]           INT           IDENTITY (1, 1) NOT NULL,
    [zone_name]         VARCHAR (80)  NOT NULL,
    [zone_creationdate] DATETIME      NULL,
    [zone_modifieddate] DATETIME      NULL,
    [zone_description]  VARCHAR (200) NULL,
    [zone_radio]        FLOAT (53)    NULL,
    [zone_longitude]    FLOAT (53)    NULL,
    [zone_latitude]     FLOAT (53)    NULL,
    [zone_type]         NCHAR (10)    NULL,
    CONSTRAINT [PK_AMDMZONE] PRIMARY KEY CLUSTERED ([zone_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AMDM_ZONEPOLIGON]...';


GO
CREATE TABLE [dbo].[AMDM_ZONEPOLIGON] (
    [data_id]      INT        IDENTITY (1, 1) NOT NULL,
    [data_zoneid]  INT        NOT NULL,
    [data_x]       FLOAT (53) NOT NULL,
    [data_y]       FLOAT (53) NOT NULL,
    [data_orderid] INT        NOT NULL,
    CONSTRAINT [PK_AMDMZONEPOLIGON] PRIMARY KEY CLUSTERED ([data_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ANM_DEVICE_METRIC]...';


GO
CREATE TABLE [dbo].[ANM_DEVICE_METRIC] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [device_id]     INT            NOT NULL,
    [metric_id]     INT            NOT NULL,
    [monitor_id]    INT            NOT NULL,
    [sampling_date] DATETIME       NOT NULL,
    [serie]         NVARCHAR (512) NULL,
    [value]         FLOAT (53)     NOT NULL,
    CONSTRAINT [PK_ANM_DEVICE_METRIC] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ANM_DEVICE_MONITOR]...';


GO
CREATE TABLE [dbo].[ANM_DEVICE_MONITOR] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [credential_id]     INT            NULL,
    [device_id]         INT            NOT NULL,
    [name]              NVARCHAR (50)  NOT NULL,
    [type]              INT            NOT NULL,
    [settings]          NVARCHAR (MAX) NOT NULL,
    [modification_date] DATETIME       NOT NULL,
    [is_active]         BIT            NOT NULL,
    CONSTRAINT [PK_ANM_DEVICE_MONITOR] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ANM_DEVICE_MONITOR] UNIQUE NONCLUSTERED ([device_id] ASC, [type] ASC)
);


GO
PRINT N'Creating Table [dbo].[ANM_MONITOR_METRIC]...';


GO
CREATE TABLE [dbo].[ANM_MONITOR_METRIC] (
    [id]      INT            NOT NULL,
    [name]    NVARCHAR (50)  NOT NULL,
    [metrics] NVARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_ANM_MONITOR_METRIC] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_APPLICABLE_SERV_PACK]...';


GO
CREATE TABLE [dbo].[APM_APPLICABLE_SERV_PACK] (
    [id]                INT IDENTITY (1, 1) NOT NULL,
    [scaned_product_id] INT NOT NULL,
    [service_pack_id]   INT NOT NULL,
    [region_id]         INT NOT NULL,
    CONSTRAINT [PK_APM_APPLICABLE_SERV_PACK] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_BULLETIN_DETAIL]...';


GO
CREATE TABLE [dbo].[APM_BULLETIN_DETAIL] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [bulletin_page] VARCHAR (1024) NULL,
    [date_posted]   DATETIME       NOT NULL,
    [date_revised]  DATETIME       NULL,
    [bulletin_id]   VARCHAR (100)  NOT NULL,
    [summary]       VARCHAR (MAX)  NULL,
    [title]         VARCHAR (400)  NOT NULL,
    CONSTRAINT [PK_APM_BULLETIN_DETAIL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_CATALOG]...';


GO
CREATE TABLE [dbo].[APM_CATALOG] (
    [id]                    INT            IDENTITY (1, 1) NOT NULL,
    [creation_date]         DATETIME       NOT NULL,
    [catalog_type]          INT            NOT NULL,
    [filename]              NVARCHAR (250) NOT NULL,
    [version]               NVARCHAR (250) NULL,
    [catalog_date]          NVARCHAR (20)  NULL,
    [file_size]             BIGINT         NULL,
    [document_id]           INT            NULL,
    [download_is_completed] BIT            NOT NULL,
    [download_status]       INT            NULL,
    [modified_date]         DATETIME       NULL,
    CONSTRAINT [PK_APM_CATALOG] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_APM_CATALOG] UNIQUE NONCLUSTERED ([catalog_type] ASC, [filename] ASC, [version] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_CATALOG_CONTROL]...';


GO
CREATE TABLE [dbo].[APM_CATALOG_CONTROL] (
    [id]            INT          IDENTITY (1, 1) NOT NULL,
    [last_id]       INT          NOT NULL,
    [modified_date] DATETIME     NOT NULL,
    [table_name]    VARCHAR (50) NOT NULL,
    CONSTRAINT [PK_APM_CATALOG_CONTROL] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_APM_CATALOG_CONTROL] UNIQUE NONCLUSTERED ([table_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_CATEGORY]...';


GO
CREATE TABLE [dbo].[APM_CATEGORY] (
    [id]           INT          IDENTITY (1, 1) NOT NULL,
    [name]         VARCHAR (64) NOT NULL,
    [created_date] DATETIME     NOT NULL,
    CONSTRAINT [PK_APM_CATEGORY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_DOWNLOAD_DETAIL]...';


GO
CREATE TABLE [dbo].[APM_DOWNLOAD_DETAIL] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [language_id]        INT            NOT NULL,
    [shavlik_file_name]  VARCHAR (100)  NULL,
    [size]               BIGINT         NOT NULL,
    [url]                VARCHAR (1024) NOT NULL,
    [patch_detail_id]    INT            NULL,
    [service_pack_id]    INT            NULL,
    [download_date]      DATETIME       NULL,
    [scheduled_date]     DATETIME       NULL,
    [download_status_id] INT            NOT NULL,
    [automatic_install]  BIT            NULL,
    CONSTRAINT [PK_APM_DOWNLOAD_DETAIL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[APM_DOWNLOAD_DETAIL].[IX01_APM_DOWNLOAD_DETAIL]...';


GO
CREATE NONCLUSTERED INDEX [IX01_APM_DOWNLOAD_DETAIL]
    ON [dbo].[APM_DOWNLOAD_DETAIL]([language_id] ASC, [service_pack_id] ASC);


GO
PRINT N'Creating Index [dbo].[APM_DOWNLOAD_DETAIL].[IX02_APM_DOWNLOAD_DETAIL]...';


GO
CREATE NONCLUSTERED INDEX [IX02_APM_DOWNLOAD_DETAIL]
    ON [dbo].[APM_DOWNLOAD_DETAIL]([language_id] ASC, [patch_detail_id] ASC);


GO
PRINT N'Creating Index [dbo].[APM_DOWNLOAD_DETAIL].[IX03_APM_DOWNLOAD_DETAIL]...';


GO
CREATE NONCLUSTERED INDEX [IX03_APM_DOWNLOAD_DETAIL]
    ON [dbo].[APM_DOWNLOAD_DETAIL]([service_pack_id] ASC, [language_id] ASC);


GO
PRINT N'Creating Index [dbo].[APM_DOWNLOAD_DETAIL].[IX04_APM_DOWNLOAD_DETAIL]...';


GO
CREATE NONCLUSTERED INDEX [IX04_APM_DOWNLOAD_DETAIL]
    ON [dbo].[APM_DOWNLOAD_DETAIL]([patch_detail_id] ASC, [language_id] ASC);


GO
PRINT N'Creating Table [dbo].[APM_DOWNLOAD_STATUS]...';


GO
CREATE TABLE [dbo].[APM_DOWNLOAD_STATUS] (
    [id]          INT          NOT NULL,
    [status_name] VARCHAR (50) NOT NULL,
    CONSTRAINT [PK_APM_DOWNLOAD_STATUS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_LANGUAGE]...';


GO
CREATE TABLE [dbo].[APM_LANGUAGE] (
    [id]          INT           IDENTITY (1, 1) NOT NULL,
    [language_id] INT           NOT NULL,
    [long_name]   VARCHAR (100) NULL,
    [short_name]  VARCHAR (50)  NULL,
    CONSTRAINT [PK_APM_LANGUAGE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_PATCH]...';


GO
CREATE TABLE [dbo].[APM_PATCH] (
    [id]                INT              IDENTITY (1, 1) NOT NULL,
    [external_patch_id] UNIQUEIDENTIFIER NOT NULL,
    [version]           VARCHAR (20)     NULL,
    [publish_date]      DATETIME         NULL,
    [url_release_note]  VARCHAR (1024)   NULL,
    [severity]          SMALLINT         NOT NULL,
    [description]       VARCHAR (MAX)    NULL,
    [kb_id]             VARCHAR (32)     NULL,
    [language]          CHAR (5)         NULL,
    [architecture]      VARCHAR (6)      NULL,
    [title]             VARCHAR (1024)   NOT NULL,
    [size]              BIGINT           NULL,
    [provider_id]       SMALLINT         NOT NULL,
    [created_date]      DATETIME         NOT NULL,
    CONSTRAINT [PK_APM_PATCH] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_APM_PATCH] UNIQUE NONCLUSTERED ([provider_id] ASC, [external_patch_id] ASC, [version] ASC, [language] ASC, [architecture] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_PATCH_CATEGORY]...';


GO
CREATE TABLE [dbo].[APM_PATCH_CATEGORY] (
    [patch_id]      INT      NOT NULL,
    [category_id]   INT      NOT NULL,
    [modified_date] DATETIME NOT NULL,
    [created_date]  DATETIME NOT NULL,
    CONSTRAINT [PK_APM_PATCH_CATEGORY] PRIMARY KEY CLUSTERED ([patch_id] ASC, [category_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_PATCH_DETAIL]...';


GO
CREATE TABLE [dbo].[APM_PATCH_DETAIL] (
    [id]                    INT           IDENTITY (1, 1) NOT NULL,
    [date_released]         DATETIME2 (7) NULL,
    [date_updated]          DATETIME      NULL,
    [informational_comment] VARCHAR (MAX) NULL,
    [is_deployable]         BIT           NOT NULL,
    [is_downloadable]       BIT           NOT NULL,
    [is_signed_by_vendor]   BIT           NOT NULL,
    [kb_number]             VARCHAR (100) NULL,
    [name]                  VARCHAR (100) NOT NULL,
    [patch_type_id]         INT           NULL,
    [severity_id]           INT           NULL,
    [guid]                  VARCHAR (100) NULL,
    [uninstallable]         BIT           NOT NULL,
    [cve_ids]               VARCHAR (MAX) NULL,
    [bulletin_id]           INT           NOT NULL,
    CONSTRAINT [PK_APM_PATCH_DETAIL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[APM_PATCH_DETAIL].[UX01_APM_PATCH_DETAIL]...';


GO
CREATE UNIQUE NONCLUSTERED INDEX [UX01_APM_PATCH_DETAIL]
    ON [dbo].[APM_PATCH_DETAIL]([guid] ASC);


GO
PRINT N'Creating Table [dbo].[APM_PATCH_DOWNLOAD]...';


GO
CREATE TABLE [dbo].[APM_PATCH_DOWNLOAD] (
    [id]                 INT      IDENTITY (1, 1) NOT NULL,
    [patch_id]           INT      NOT NULL,
    [download_date]      DATETIME NULL,
    [schedule_date]      DATETIME NULL,
    [download_status_id] INT      NULL,
    [automatic_install]  BIT      NULL,
    [modified_date]      DATETIME NOT NULL,
    [created_date]       DATETIME NOT NULL,
    CONSTRAINT [PK_APM_PATCH_DOWNLOAD] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_APM_PATCH_DOWNLOAD] UNIQUE NONCLUSTERED ([patch_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[APM_PATCH_DOWNLOAD].[IX01_APM_PATCH_DOWNLOAD]...';


GO
CREATE NONCLUSTERED INDEX [IX01_APM_PATCH_DOWNLOAD]
    ON [dbo].[APM_PATCH_DOWNLOAD]([patch_id] ASC)
    INCLUDE([download_status_id], [download_date], [schedule_date]);


GO
PRINT N'Creating Table [dbo].[APM_PATCH_LITE]...';


GO
CREATE TABLE [dbo].[APM_PATCH_LITE] (
    [id]           INT      IDENTITY (1, 1) NOT NULL,
    [patch_id]     INT      NOT NULL,
    [type]         SMALLINT NOT NULL,
    [created_date] DATETIME NOT NULL,
    CONSTRAINT [PK_APM_PATCH_LITE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_PATCH_PRODUCT]...';


GO
CREATE TABLE [dbo].[APM_PATCH_PRODUCT] (
    [patch_id]     INT      NOT NULL,
    [product_id]   INT      NOT NULL,
    [created_date] DATETIME NOT NULL,
    CONSTRAINT [PK_APM_PATCH_PRODUCT] PRIMARY KEY CLUSTERED ([patch_id] ASC, [product_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_PATCH_TYPE]...';


GO
CREATE TABLE [dbo].[APM_PATCH_TYPE] (
    [id]   INT          NOT NULL,
    [name] VARCHAR (50) NOT NULL,
    CONSTRAINT [PK_APM_PATCH_TYPE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_PRODUCT]...';


GO
CREATE TABLE [dbo].[APM_PRODUCT] (
    [id]           INT           IDENTITY (1, 1) NOT NULL,
    [name]         VARCHAR (255) NOT NULL,
    [created_date] DATETIME      NOT NULL,
    CONSTRAINT [PK_APM_PRODUCT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_APM_PRODUCT] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_PRODUCT_DETAIL]...';


GO
CREATE TABLE [dbo].[APM_PRODUCT_DETAIL] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [created_date]       DATETIME       NOT NULL,
    [end_of_life_date]   DATETIME       NULL,
    [legacy_product_bit] BIT            NOT NULL,
    [lifecycle_url]      VARCHAR (1024) NULL,
    [parent_id]          INT            NULL,
    [product_id]         INT            NULL,
    [name]               VARCHAR (200)  NULL,
    [update_date]        DATETIME       NULL,
    [architectures]      VARCHAR (50)   NULL,
    CONSTRAINT [PK_APM_PRODUCT_DETAIL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_PRODUCT_PATCH]...';


GO
CREATE TABLE [dbo].[APM_PRODUCT_PATCH] (
    [id]         INT IDENTITY (1, 1) NOT NULL,
    [product_id] INT NOT NULL,
    [patch_id]   INT NOT NULL,
    CONSTRAINT [PK_APM_PRODUCT_PATCH] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_PRODUCT_SERVICE_PACK]...';


GO
CREATE TABLE [dbo].[APM_PRODUCT_SERVICE_PACK] (
    [id]              INT IDENTITY (1, 1) NOT NULL,
    [product_id]      INT NOT NULL,
    [service_pack_id] INT NOT NULL,
    CONSTRAINT [PK_APM_PRODUCT_SERVICE_PACK] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_REGION]...';


GO
CREATE TABLE [dbo].[APM_REGION] (
    [id]          INT IDENTITY (1, 1) NOT NULL,
    [region_id]   INT NOT NULL,
    [language_id] INT NOT NULL,
    CONSTRAINT [PK_APM_REGION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_SCAN_PATCH]...';


GO
CREATE TABLE [dbo].[APM_SCAN_PATCH] (
    [scan_result_id] INT      NOT NULL,
    [patch_id]       INT      NOT NULL,
    [is_installed]   BIT      NOT NULL,
    [created_date]   DATETIME NOT NULL,
    CONSTRAINT [PK_APM_SCAN_PATCH] PRIMARY KEY CLUSTERED ([scan_result_id] ASC, [patch_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_SCAN_RESULT]...';


GO
CREATE TABLE [dbo].[APM_SCAN_RESULT] (
    [id]             INT          IDENTITY (1, 1) NOT NULL,
    [device_id]      INT          NOT NULL,
    [inventory_date] DATETIME     NOT NULL,
    [provider_id]    SMALLINT     NOT NULL,
    [version]        VARCHAR (50) NULL,
    [created_date]   DATETIME     NOT NULL,
    CONSTRAINT [PK_APM_SCAN_RESULT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_APM_SCAN_RESULT] UNIQUE NONCLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_SCANNED_PATCHES]...';


GO
CREATE TABLE [dbo].[APM_SCANNED_PATCHES] (
    [id]                INT IDENTITY (1, 1) NOT NULL,
    [scaned_product_id] INT NOT NULL,
    [patch_id]          INT NOT NULL,
    [region_id]         INT NOT NULL,
    [is_installed]      INT NOT NULL,
    CONSTRAINT [PK_APM_SCANNED_PATCHES] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_SCANNED_PRODUCTS]...';


GO
CREATE TABLE [dbo].[APM_SCANNED_PRODUCTS] (
    [id]             INT IDENTITY (1, 1) NOT NULL,
    [scan_result_id] INT NOT NULL,
    [product_id]     INT NOT NULL,
    CONSTRAINT [PK_APM_SCANNED_PRODUCTS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_SERVICE_PACK_DETAIL]...';


GO
CREATE TABLE [dbo].[APM_SERVICE_PACK_DETAIL] (
    [id]                  INT           IDENTITY (1, 1) NOT NULL,
    [created_date]        DATETIME      NOT NULL,
    [end_of_life_date]    DATETIME      NULL,
    [is_deployable]       BIT           NOT NULL,
    [is_signed_by_vendor] BIT           NOT NULL,
    [name]                VARCHAR (200) NULL,
    [ordinal]             INT           NOT NULL,
    [guid]                VARCHAR (100) NOT NULL,
    [update_date]         DATETIME      NULL,
    CONSTRAINT [PK_APM_SERVICE_PACK_DETAIL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_SEVERITY]...';


GO
CREATE TABLE [dbo].[APM_SEVERITY] (
    [id]          INT           NOT NULL,
    [name]        NVARCHAR (50) NULL,
    [description] VARCHAR (100) NULL,
    CONSTRAINT [PK_APM_PATCH_SEVERITY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_SHAVLIK_SCAN_RESULT]...';


GO
CREATE TABLE [dbo].[APM_SHAVLIK_SCAN_RESULT] (
    [id]              INT           IDENTITY (1, 1) NOT NULL,
    [device_id]       INT           NOT NULL,
    [scan_date]       DATETIME      NOT NULL,
    [scanned_by]      VARCHAR (64)  NULL,
    [scanner_version] VARCHAR (256) NULL,
    [hash]            VARCHAR (50)  NOT NULL,
    CONSTRAINT [PK_APM_SHAVLIK_SCAN_RESULT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APM_UPDATE_SETUPPROJECT]...';


GO
CREATE TABLE [dbo].[APM_UPDATE_SETUPPROJECT] (
    [id]               INT           IDENTITY (1, 1) NOT NULL,
    [class_type]       INT           NOT NULL,
    [update_id]        INT           NOT NULL,
    [language]         NVARCHAR (50) NULL,
    [setupproject_id]  INT           NULL,
    [scan_language_id] INT           NULL,
    [in_process]       BIT           NOT NULL,
    [created_date]     DATETIME      NULL,
    [modified_date]    DATETIME      NULL,
    CONSTRAINT [UX_APM_UPDATE_SETUPPROJECT] UNIQUE NONCLUSTERED ([class_type] ASC, [update_id] ASC, [language] ASC, [scan_language_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APR_ACCESS_CONTROL]...';


GO
CREATE TABLE [dbo].[APR_ACCESS_CONTROL] (
    [user_id]   INT NOT NULL,
    [domain_id] INT NOT NULL,
    CONSTRAINT [PK_APR_ACCESS_CONTROL] PRIMARY KEY CLUSTERED ([user_id] ASC, [domain_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APR_ANSWER]...';


GO
CREATE TABLE [dbo].[APR_ANSWER] (
    [question_id] INT            NOT NULL,
    [user_id]     INT            NOT NULL,
    [answer]      NVARCHAR (255) COLLATE Latin1_General_CS_AS NULL,
    CONSTRAINT [PK_APR_ANSWER] PRIMARY KEY CLUSTERED ([question_id] ASC, [user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APR_AUDIT]...';


GO
CREATE TABLE [dbo].[APR_AUDIT] (
    [id]          INT           IDENTITY (1, 1) NOT NULL,
    [action_id]   INT           NULL,
    [user_id]     INT           NOT NULL,
    [ip]          VARCHAR (255) NULL,
    [action_date] DATETIME      NULL,
    [auxiliary]   VARCHAR (50)  NULL,
    [type]        INT           NULL,
    [domain_id]   INT           NOT NULL,
    CONSTRAINT [PK_APR_AUDIT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APR_DOMAIN]...';


GO
CREATE TABLE [dbo].[APR_DOMAIN] (
    [id]        INT            NOT NULL,
    [user_name] VARCHAR (255)  NOT NULL,
    [password]  VARCHAR (1000) NOT NULL,
    [server_id] INT            NOT NULL,
    [base_dn]   VARCHAR (255)  NOT NULL,
    CONSTRAINT [PK_APR_DOMAIN] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APR_QUESTION]...';


GO
CREATE TABLE [dbo].[APR_QUESTION] (
    [id]    INT             IDENTITY (1, 1) NOT NULL,
    [text]  NVARCHAR (4000) NOT NULL,
    [state] BIT             NOT NULL,
    CONSTRAINT [PK_APR_QUESTION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APR_TEMPLATE]...';


GO
CREATE TABLE [dbo].[APR_TEMPLATE] (
    [id]        INT            IDENTITY (1, 1) NOT NULL,
    [name]      NVARCHAR (100) NOT NULL,
    [action_id] INT            NOT NULL,
    [domain_id] INT            NOT NULL,
    [subject]   NVARCHAR (255) NOT NULL,
    [body]      NVARCHAR (MAX) NOT NULL,
    [type_id]   INT            NOT NULL,
    CONSTRAINT [PK_APR_TEMPLATE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_APR_TEMPLATE] UNIQUE NONCLUSTERED ([action_id] ASC, [domain_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[APR_TOKEN]...';


GO
CREATE TABLE [dbo].[APR_TOKEN] (
    [token]           VARCHAR (40) NOT NULL,
    [user_id]         INT          NOT NULL,
    [domain_id]       INT          NOT NULL,
    [creation_date]   DATETIME     NOT NULL,
    [expiration_date] DATETIME     NOT NULL,
    [is_valid]        BIT          NOT NULL,
    CONSTRAINT [PK_APR_TOKEN] PRIMARY KEY CLUSTERED ([token] ASC)
);


GO
PRINT N'Creating Table [dbo].[APR_USER]...';


GO
CREATE TABLE [dbo].[APR_USER] (
    [id]              INT           NOT NULL,
    [alternate_email] VARCHAR (255) NOT NULL,
    CONSTRAINT [PK_APR_USER] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_CONSUMPTION_CUBE]...';


GO
CREATE TABLE [dbo].[APWM_CONSUMPTION_CUBE] (
    [date]         DATE           NOT NULL,
    [group]        NVARCHAR (255) NOT NULL,
    [policy]       NVARCHAR (255) NOT NULL,
    [watts]        FLOAT (53)     NOT NULL,
    [co2]          FLOAT (53)     NOT NULL,
    [cost]         FLOAT (53)     NOT NULL,
    [saving_watts] FLOAT (53)     NOT NULL,
    [saving_co2]   FLOAT (53)     NOT NULL,
    [saving_cost]  FLOAT (53)     NOT NULL,
    CONSTRAINT [PK_APWM_CONSUMPTION_CUBE] PRIMARY KEY CLUSTERED ([date] ASC, [group] ASC, [policy] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_DEVICE_CONSUM_CUBE]...';


GO
CREATE TABLE [dbo].[APWM_DEVICE_CONSUM_CUBE] (
    [device]       NVARCHAR (128) NOT NULL,
    [date]         DATE           NOT NULL,
    [watts]        FLOAT (53)     NOT NULL,
    [co2]          FLOAT (53)     NOT NULL,
    [cost]         FLOAT (53)     NOT NULL,
    [saving_watts] FLOAT (53)     NOT NULL,
    [saving_co2]   FLOAT (53)     NOT NULL,
    [saving_cost]  FLOAT (53)     NOT NULL,
    CONSTRAINT [PK_APWM_DEVICE_CONSUM_CUBE] PRIMARY KEY CLUSTERED ([date] ASC, [device] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_HOUR_CONSUM_CUBE]...';


GO
CREATE TABLE [dbo].[APWM_HOUR_CONSUM_CUBE] (
    [hour]         INT        NOT NULL,
    [watts]        FLOAT (53) NOT NULL,
    [co2]          FLOAT (53) NOT NULL,
    [cost]         FLOAT (53) NOT NULL,
    [saving_watts] FLOAT (53) NOT NULL,
    [saving_co2]   FLOAT (53) NOT NULL,
    [saving_cost]  FLOAT (53) NOT NULL
);


GO
PRINT N'Creating Table [dbo].[APWM_KW_PRICES]...';


GO
CREATE TABLE [dbo].[APWM_KW_PRICES] (
    [id]       INT        IDENTITY (1, 1) NOT NULL,
    [group_id] INT        NOT NULL,
    [day]      INT        NOT NULL,
    [hour]     INT        NOT NULL,
    [price]    FLOAT (53) NULL,
    CONSTRAINT [PK_APWM_KW_PRICES] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_POLICY]...';


GO
CREATE TABLE [dbo].[APWM_POLICY] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [name]            NVARCHAR (100) NOT NULL,
    [creator_user_id] INT            NOT NULL,
    [creation_date]   DATETIME       NOT NULL,
    [editor_user_id]  INT            NULL,
    [edit_date]       DATETIME       NULL,
    [platform]        INT            NOT NULL,
    [version]         INT            NOT NULL,
    [status]          INT            NULL,
    CONSTRAINT [PK_AAM_POLICY] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_AAM_POLICY] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_POLICY_ASSIGNMENT]...';


GO
CREATE TABLE [dbo].[APWM_POLICY_ASSIGNMENT] (
    [device_id] INT NOT NULL,
    [policy_id] INT NOT NULL,
    CONSTRAINT [PK_APWM_POLICY_ASSIGNMENT] PRIMARY KEY CLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_POLICY_DAY]...';


GO
CREATE TABLE [dbo].[APWM_POLICY_DAY] (
    [id]                  INT  IDENTITY (1, 1) NOT NULL,
    [policy_inventory_id] INT  NOT NULL,
    [date]                DATE NOT NULL,
    CONSTRAINT [PK_APWM_POLICY_DAY] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_APWM_POLICY_DAY] UNIQUE NONCLUSTERED ([policy_inventory_id] ASC, [date] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_POLICY_HOUR]...';


GO
CREATE TABLE [dbo].[APWM_POLICY_HOUR] (
    [id]            INT        IDENTITY (1, 1) NOT NULL,
    [policy_day_id] INT        NOT NULL,
    [date]          DATETIME   NOT NULL,
    [off]           FLOAT (53) NOT NULL,
    [on]            FLOAT (53) NOT NULL,
    [sleep]         FLOAT (53) NOT NULL,
    [group_id]      INT        NULL,
    [plan_id]       INT        NOT NULL,
    [watts]         FLOAT (53) NULL,
    [co2]           FLOAT (53) NULL,
    [cost]          FLOAT (53) NULL,
    [full_watts]    FLOAT (53) NULL,
    [full_co2]      FLOAT (53) NULL,
    [full_cost]     FLOAT (53) NULL,
    CONSTRAINT [PK_APWM_POLICY_HOUR] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_POLICY_INVENTORY]...';


GO
CREATE TABLE [dbo].[APWM_POLICY_INVENTORY] (
    [id]         INT      IDENTITY (1, 1) NOT NULL,
    [policy_id]  INT      NOT NULL,
    [device_id]  INT      NOT NULL,
    [start_date] DATETIME NOT NULL,
    [end_date]   DATETIME NOT NULL,
    CONSTRAINT [PK_APWM_POLICY_INVENTORY] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_APWM_POLICY_INVENTORY] UNIQUE NONCLUSTERED ([policy_id] ASC, [device_id] ASC, [start_date] ASC, [end_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_POLICY_ITEM]...';


GO
CREATE TABLE [dbo].[APWM_POLICY_ITEM] (
    [id]        INT IDENTITY (1, 1) NOT NULL,
    [device_id] INT NULL,
    [group_id]  INT NULL,
    [policy_id] INT NOT NULL,
    CONSTRAINT [PK_APWM_POLICY_ITEM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_POLICY_SOFTWARE]...';


GO
CREATE TABLE [dbo].[APWM_POLICY_SOFTWARE] (
    [id]                  INT           IDENTITY (1, 1) NOT NULL,
    [policy_inventory_id] INT           NOT NULL,
    [name]                VARCHAR (255) NOT NULL,
    [times]               INT           NOT NULL,
    CONSTRAINT [PK_APWM_SOFTWARE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_APWM_POLICY_SOFTWARE] UNIQUE NONCLUSTERED ([policy_inventory_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_POLICY_TYPE]...';


GO
CREATE TABLE [dbo].[APWM_POLICY_TYPE] (
    [id]        INT           IDENTITY (1, 1) NOT NULL,
    [type]      INT           NOT NULL,
    [policy_id] INT           NOT NULL,
    [data]      VARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_APWM_POLICY_TYPE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_POLICY_USB]...';


GO
CREATE TABLE [dbo].[APWM_POLICY_USB] (
    [id]                  INT IDENTITY (1, 1) NOT NULL,
    [policy_inventory_id] INT NOT NULL,
    [times]               INT NOT NULL,
    CONSTRAINT [PK_APWM_POLICY_USB] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_APWM_POLICY_USB] UNIQUE NONCLUSTERED ([policy_inventory_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[APWM_PROFILE]...';


GO
CREATE TABLE [dbo].[APWM_PROFILE] (
    [device_type] INT           NOT NULL,
    [name]        NVARCHAR (20) NOT NULL,
    [on]          FLOAT (53)    NOT NULL,
    [sleep]       FLOAT (53)    NOT NULL,
    [offhd]       FLOAT (53)    NOT NULL,
    [monitor]     FLOAT (53)    NOT NULL,
    CONSTRAINT [PK001_APWM_PROFILE] PRIMARY KEY CLUSTERED ([device_type] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_APPLICATION]...';


GO
CREATE TABLE [dbo].[AQM_APPLICATION] (
    [Id]           INT            IDENTITY (1, 1) NOT NULL,
    [Code]         INT            NOT NULL,
    [Acronym]      NVARCHAR (10)  NOT NULL,
    [BuiltIn]      BIT            NOT NULL,
    [Version]      NVARCHAR (50)  NOT NULL,
    [Manufacturer] NVARCHAR (100) NOT NULL,
    [Name]         VARCHAR (255)  NOT NULL,
    [Suite]        BIT            NULL,
    [ParentId]     INT            NULL,
    [Enabled]      BIT            NULL,
    CONSTRAINT [PK_AQM_APPLICATION] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX01_AQM_APPLICATION] UNIQUE NONCLUSTERED ([Acronym] ASC, [Version] ASC),
    CONSTRAINT [UX02_AQM_APPLICATION] UNIQUE NONCLUSTERED ([Code] ASC, [Version] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_APPLICATION_DATASOURCE]...';


GO
CREATE TABLE [dbo].[AQM_APPLICATION_DATASOURCE] (
    [Id]            INT IDENTITY (1, 1) NOT NULL,
    [ApplicationId] INT NOT NULL,
    [DatasourceId]  INT NOT NULL,
    CONSTRAINT [PK_AQM_APPLICATION_DATASOURCE] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX01_AQM_APPLICATION_DATASOURCE] UNIQUE NONCLUSTERED ([ApplicationId] ASC, [DatasourceId] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_DATA_ACCESS_RULE]...';


GO
CREATE TABLE [dbo].[AQM_DATA_ACCESS_RULE] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (30)  NOT NULL,
    [datasource_name]   NVARCHAR (30)  NOT NULL,
    [user_group_assign] NVARCHAR (MAX) NULL,
    [tables]            NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AQM_DATA_ACCESS_RULE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_DATASOURCE]...';


GO
CREATE TABLE [dbo].[AQM_DATASOURCE] (
    [Id]           INT            IDENTITY (1, 1) NOT NULL,
    [Name]         NVARCHAR (50)  NOT NULL,
    [Provider]     NVARCHAR (50)  NOT NULL,
    [CreationDate] DATETIME       NOT NULL,
    [Description]  VARCHAR (255)  NULL,
    [ModifiedDate] DATETIME       NULL,
    [Parameters]   NVARCHAR (MAX) NULL,
    [Filter]       NVARCHAR (255) NULL,
    [IsOlap]       BIT            NOT NULL,
    CONSTRAINT [PK_AQM_DATASOURCE] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX01_AQM_DATASOURCE] UNIQUE NONCLUSTERED ([Name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_DATASOURCE_CACHE]...';


GO
CREATE TABLE [dbo].[AQM_DATASOURCE_CACHE] (
    [id]              INT          IDENTITY (1, 1) NOT NULL,
    [user_id]         INT          NOT NULL,
    [connection_name] VARCHAR (50) NULL,
    CONSTRAINT [PK_AQM_DATASOURCE_CACHE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_DATASOURCE2]...';


GO
CREATE TABLE [dbo].[AQM_DATASOURCE2] (
    [name]              VARCHAR (30)   NOT NULL,
    [connection_string] NVARCHAR (MAX) NOT NULL,
    [provider]          VARCHAR (35)   NOT NULL,
    [creation_date]     DATETIME       NOT NULL,
    [modification_date] DATETIME       NOT NULL,
    [modifier_user_id]  INT            NOT NULL,
    [creator_user_id]   INT            NOT NULL,
    CONSTRAINT [PK_AQM_DATASOURCE2] PRIMARY KEY CLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_DOCUMENT]...';


GO
CREATE TABLE [dbo].[AQM_DOCUMENT] (
    [Id]             INT            IDENTITY (1, 1) NOT NULL,
    [DocumentId]     INT            NOT NULL,
    [IsPublished]    BIT            NOT NULL,
    [TemplateId]     INT            NULL,
    [Type]           INT            NOT NULL,
    [Tags]           NVARCHAR (255) NULL,
    [TotalDownloads] INT            NOT NULL,
    [ImageUrl]       NVARCHAR (500) NULL,
    [InStore]        BIT            NOT NULL,
    [StoreDate]      DATETIME       NULL,
    [StoreGuid]      VARCHAR (64)   NULL,
    [ReloadTime]     INT            NULL,
    [ProviderId]     INT            NOT NULL,
    CONSTRAINT [PK_AQM_DOCUMENT] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX01_AQM_DOCUMENT] UNIQUE NONCLUSTERED ([DocumentId] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_DOCUMENT_SCHEDULE]...';


GO
CREATE TABLE [dbo].[AQM_DOCUMENT_SCHEDULE] (
    [Id]           INT      IDENTITY (1, 1) NOT NULL,
    [DocumentId]   INT      NOT NULL,
    [SchedulerId]  INT      NOT NULL,
    [UserId]       INT      NOT NULL,
    [CreationDate] DATETIME NULL,
    CONSTRAINT [PK01_AQM_REPORT_SCHEDULE] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_DOCUMENT_TEST]...';


GO
CREATE TABLE [dbo].[AQM_DOCUMENT_TEST] (
    [id]             INT           IDENTITY (1, 1) NOT NULL,
    [date]           DATETIME      NULL,
    [acronym]        VARCHAR (20)  NULL,
    [version]        VARCHAR (10)  NULL,
    [type]           VARCHAR (100) NULL,
    [name]           VARCHAR (510) NULL,
    [error_message]  VARCHAR (MAX) NULL,
    [execution_time] FLOAT (53)    NULL,
    [result]         VARCHAR (50)  NULL,
    CONSTRAINT [PK_AQM_DOCUMENT_TEST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_EXPORT_REQUEST]...';


GO
CREATE TABLE [dbo].[AQM_EXPORT_REQUEST] (
    [Id]               INT            IDENTITY (1, 1) NOT NULL,
    [CreationDate]     DATETIME       NOT NULL,
    [UserId]           INT            NOT NULL,
    [DocumentId]       INT            NOT NULL,
    [ContentManagerId] INT            NULL,
    [Status]           INT            NOT NULL,
    [DocumentUrl]      NVARCHAR (255) NULL,
    CONSTRAINT [PK_AQM_EXPORT_REQUEST] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_EXPORT_STATUS]...';


GO
CREATE TABLE [dbo].[AQM_EXPORT_STATUS] (
    [id]          BIGINT         IDENTITY (1, 1) NOT NULL,
    [document_id] INT            NOT NULL,
    [status]      INT            NOT NULL,
    [value]       NVARCHAR (MAX) NULL,
    [user_id]     INT            NOT NULL,
    CONSTRAINT [PK_AQM_EXPORT_STATUS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_FAVORITE]...';


GO
CREATE TABLE [dbo].[AQM_FAVORITE] (
    [Id]          INT IDENTITY (1, 1) NOT NULL,
    [DocumentId]  INT NOT NULL,
    [ContentType] INT NOT NULL,
    [UserId]      INT NOT NULL,
    CONSTRAINT [PK_AQM_FAVORITE] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX01_AQM_FAVORITE] UNIQUE NONCLUSTERED ([DocumentId] ASC, [ContentType] ASC, [UserId] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_FOLDER_PERMISSION_REQUEST]...';


GO
CREATE TABLE [dbo].[AQM_FOLDER_PERMISSION_REQUEST] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [creation_date] DATETIME       NOT NULL,
    [end_date]      DATETIME       NULL,
    [username]      NVARCHAR (510) NOT NULL,
    [provider_id]   INT            NOT NULL,
    [objectid]      INT            NOT NULL,
    [concept_type]  INT            NOT NULL,
    [data_command]  NVARCHAR (MAX) NOT NULL,
    [status]        INT            NOT NULL,
    [message]       NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_AQM_FOLDER_PERMISSION_REQUEST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AQM_FOLDER_PERMISSION_REQUEST].[IX01_AQM_FOLDER_PERMISSION_REQUEST]...';


GO
CREATE NONCLUSTERED INDEX [IX01_AQM_FOLDER_PERMISSION_REQUEST]
    ON [dbo].[AQM_FOLDER_PERMISSION_REQUEST]([username] ASC, [provider_id] ASC, [objectid] ASC, [concept_type] ASC);


GO
PRINT N'Creating Table [dbo].[AQM_FOLDER_SETTING]...';


GO
CREATE TABLE [dbo].[AQM_FOLDER_SETTING] (
    [Id]            INT            IDENTITY (1, 1) NOT NULL,
    [FolderId]      INT            NOT NULL,
    [IconClass]     NVARCHAR (100) NULL,
    [ApplicationId] INT            NULL,
    [BuiltIn]       BIT            NOT NULL,
    CONSTRAINT [PK_AQM_FOLDER] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX01_AQM_FOLDER] UNIQUE NONCLUSTERED ([FolderId] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_REPORT]...';


GO
CREATE TABLE [dbo].[AQM_REPORT] (
    [repo_id]               INT            IDENTITY (1, 1) NOT NULL,
    [repo_folder_id]        INT            NOT NULL,
    [repo_name]             NVARCHAR (255) NULL,
    [repo_report]           NTEXT          NULL,
    [repo_create_date]      DATETIME       NULL,
    [repo_modified_date]    DATETIME       NULL,
    [repo_user_id_create]   INT            NULL,
    [repo_user_id_modified] INT            NULL,
    [repo_order]            INT            NULL,
    [repo_description]      NVARCHAR (255) NULL,
    CONSTRAINT [PK_AQM_REPORT] PRIMARY KEY CLUSTERED ([repo_id] ASC),
    CONSTRAINT [UX_AQM_REPORT] UNIQUE NONCLUSTERED ([repo_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_REPORT_DB_STORAGE]...';


GO
CREATE TABLE [dbo].[AQM_REPORT_DB_STORAGE] (
    [report_guid] UNIQUEIDENTIFIER NULL,
    [definition]  NVARCHAR (MAX)   NULL
);


GO
PRINT N'Creating Index [dbo].[AQM_REPORT_DB_STORAGE].[CIX_AQM_REPORT_DB_STORAGE]...';


GO
CREATE NONCLUSTERED INDEX [CIX_AQM_REPORT_DB_STORAGE]
    ON [dbo].[AQM_REPORT_DB_STORAGE]([report_guid] ASC);


GO
PRINT N'Creating Table [dbo].[AQM_REPORT2]...';


GO
CREATE TABLE [dbo].[AQM_REPORT2] (
    [guid]              UNIQUEIDENTIFIER NOT NULL,
    [name]              NVARCHAR (30)    NULL,
    [description]       NVARCHAR (150)   NULL,
    [tags]              NVARCHAR (100)   NULL,
    [type]              VARCHAR (10)     NOT NULL,
    [creation_date]     DATETIME         NOT NULL,
    [modification_date] DATETIME         NOT NULL,
    [creator_user_id]   INT              NOT NULL,
    [modifier_user_id]  INT              NOT NULL,
    [storage_source]    CHAR (2)         NULL,
    CONSTRAINT [PK_AQM_REPORT2] PRIMARY KEY CLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_STORE_ACCOUNT]...';


GO
CREATE TABLE [dbo].[AQM_STORE_ACCOUNT] (
    [Id]      INT            IDENTITY (1, 1) NOT NULL,
    [Email]   NVARCHAR (128) NOT NULL,
    [Enabled] BIT            NOT NULL,
    [Token]   NVARCHAR (128) NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_AQM_STORE_ACCOUNT] UNIQUE NONCLUSTERED ([Email] ASC)
);


GO
PRINT N'Creating Table [dbo].[AQM_TRANSLATE]...';


GO
CREATE TABLE [dbo].[AQM_TRANSLATE] (
    [Id]            INT           IDENTITY (1, 1) NOT NULL,
    [DocumentId]    INT           NOT NULL,
    [Language]      NVARCHAR (10) NOT NULL,
    [AqmDocumentId] INT           NOT NULL,
    CONSTRAINT [PK_AQM_TRANSLATE] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX01_AQM_TRANSLATE] UNIQUE NONCLUSTERED ([AqmDocumentId] ASC, [Language] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_CATEGORY_SETUPPROJECT]...';


GO
CREATE TABLE [dbo].[ASD_CATEGORY_SETUPPROJECT] (
    [id]                 INT      IDENTITY (1, 1) NOT NULL,
    [setup_project_id]   INT      NOT NULL,
    [portal_category_id] INT      NOT NULL,
    [creation_date]      DATETIME NOT NULL,
    CONSTRAINT [PK_ASD_CATEGORY_SETUPPROJECT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_CATEGORY_USERGROUP]...';


GO
CREATE TABLE [dbo].[ASD_CATEGORY_USERGROUP] (
    [id]                 INT      IDENTITY (1, 1) NOT NULL,
    [group_id]           INT      NOT NULL,
    [portal_category_id] INT      NOT NULL,
    [creation_date]      DATETIME NOT NULL,
    CONSTRAINT [PK_ASD_CATEGORY_USERGROUP] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASD_CATEGORY_USERGROUP] UNIQUE NONCLUSTERED ([group_id] ASC, [portal_category_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_EXEC_NOTIFICATION]...';


GO
CREATE TABLE [dbo].[ASD_EXEC_NOTIFICATION] (
    [id]           INT IDENTITY (1, 1) NOT NULL,
    [execution_id] INT NOT NULL,
    [user_id]      INT NOT NULL,
    CONSTRAINT [PK_ASD_EXEC_NOTIFICATION] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_ASD_EXEC_NOTIFICATION] UNIQUE NONCLUSTERED ([execution_id] ASC, [user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_EXEC_PACK_DEVICE_HIST]...';


GO
CREATE TABLE [dbo].[ASD_EXEC_PACK_DEVICE_HIST] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [execution_id]  INT           NOT NULL,
    [package_id]    INT           NOT NULL,
    [device_id]     INT           NOT NULL,
    [status]        INT           NOT NULL,
    [status_date]   DATETIME      NOT NULL,
    [error_message] VARCHAR (MAX) NULL,
    [creation_date] DATETIME      NOT NULL,
    CONSTRAINT [PK_ASD_EXEC_PACK_DEVICE_HIST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_EXEC_PACKAGE_DEVICE]...';


GO
CREATE TABLE [dbo].[ASD_EXEC_PACKAGE_DEVICE] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [execution_id]  INT           NOT NULL,
    [package_id]    INT           NOT NULL,
    [device_id]     INT           NOT NULL,
    [status]        INT           NOT NULL,
    [status_date]   DATETIME      NOT NULL,
    [error_message] VARCHAR (250) NULL,
    [creation_date] DATETIME      NOT NULL,
    CONSTRAINT [PK_ASD_EXEC_PACKAGE_DEVICE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_ASD_EXEC_PACKAGE_DEVICE] UNIQUE NONCLUSTERED ([execution_id] ASC, [package_id] ASC, [device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_EXEC_TEMPLATE_CRED]...';


GO
CREATE TABLE [dbo].[ASD_EXEC_TEMPLATE_CRED] (
    [id]              INT IDENTITY (1, 1) NOT NULL,
    [setupproject_id] INT NOT NULL,
    [credential_id]   INT NOT NULL,
    CONSTRAINT [PK_ASD_EXEC_TEMPLATE_CRED] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_EXEC_TEMPLATE_NOTIF]...';


GO
CREATE TABLE [dbo].[ASD_EXEC_TEMPLATE_NOTIF] (
    [id]              INT IDENTITY (1, 1) NOT NULL,
    [setupproject_id] INT NOT NULL,
    [user_id]         INT NOT NULL,
    CONSTRAINT [PK_ASD_EXEC_TEMPLATE_NOTIF] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_ASD_EXEC_TEMPLATE_NOTIF] UNIQUE NONCLUSTERED ([setupproject_id] ASC, [user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_EXEC_TEMPLATE_OBJ]...';


GO
CREATE TABLE [dbo].[ASD_EXEC_TEMPLATE_OBJ] (
    [id]              INT IDENTITY (1, 1) NOT NULL,
    [setupproject_id] INT NOT NULL,
    [device_id]       INT NULL,
    [group_id]        INT NULL,
    CONSTRAINT [PK_ASD_EXEC_TEMPLATE_OBJ] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_EXECUTION]...';


GO
CREATE TABLE [dbo].[ASD_EXECUTION] (
    [id]                     INT           IDENTITY (1, 1) NOT NULL,
    [setupproject_id]        INT           NOT NULL,
    [creator_user]           INT           NOT NULL,
    [creation_date]          DATETIME      NOT NULL,
    [download_date]          DATETIME      NULL,
    [execution_date]         DATETIME      NULL,
    [execution_next_restart] BIT           NOT NULL,
    [status]                 INT           NOT NULL,
    [update_date]            DATETIME      NULL,
    [profile_id]             INT           NULL,
    [type]                   INT           NOT NULL,
    [retry]                  INT           NULL,
    [retry_interval]         INT           NULL,
    [execution_name]         VARCHAR (100) NULL,
    [scheduler_id]           INT           NULL,
    [notification_date]      DATETIME      NULL,
    [notification_time]      INT           NULL,
    [last_notification_date] DATETIME      NULL,
    CONSTRAINT [PK_ASD_EXECUTION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_EXECUTION_CREDENTIAL]...';


GO
CREATE TABLE [dbo].[ASD_EXECUTION_CREDENTIAL] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [execution_id] INT            NOT NULL,
    [username]     NVARCHAR (255) NOT NULL,
    [password]     NVARCHAR (255) NOT NULL,
    [description]  NVARCHAR (25)  NOT NULL,
    CONSTRAINT [PK_ASD_EXECUTION_CREDENTIAL] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASD_EXECUTION_CREDENTIAL] UNIQUE NONCLUSTERED ([execution_id] ASC, [username] ASC, [password] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_EXECUTION_DEVICE]...';


GO
CREATE TABLE [dbo].[ASD_EXECUTION_DEVICE] (
    [id]              INT      IDENTITY (1, 1) NOT NULL,
    [execution_id]    INT      NOT NULL,
    [device_id]       INT      NOT NULL,
    [status]          INT      NOT NULL,
    [executionstart]  DATETIME NULL,
    [executionfinish] DATETIME NULL,
    [update_date]     DATETIME NULL,
    CONSTRAINT [PK_ASD_EXECUTION_DEVICE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASD_EXECUTION_DEVICE] UNIQUE NONCLUSTERED ([execution_id] ASC, [device_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASD_EXECUTION_DEVICE].[IX01_ASD_EXECUTION_DEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASD_EXECUTION_DEVICE]
    ON [dbo].[ASD_EXECUTION_DEVICE]([device_id] ASC, [status] ASC);


GO
PRINT N'Creating Table [dbo].[ASD_EXECUTION_OBJECT]...';


GO
CREATE TABLE [dbo].[ASD_EXECUTION_OBJECT] (
    [id]           INT IDENTITY (1, 1) NOT NULL,
    [execution_id] INT NOT NULL,
    [device_id]    INT NULL,
    [group_id]     INT NULL,
    CONSTRAINT [PK_ASD_EXECUTION_OBJECT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_EXECUTION_PACKAGE]...';


GO
CREATE TABLE [dbo].[ASD_EXECUTION_PACKAGE] (
    [id]                       INT            IDENTITY (1, 1) NOT NULL,
    [execution_id]             INT            NOT NULL,
    [package_id]               INT            NOT NULL,
    [package_order]            INT            NOT NULL,
    [package_comand]           NVARCHAR (MAX) NULL,
    [package_executable]       BIT            NOT NULL,
    [package_destination_path] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_ASD_EXECUTION_PACKAGE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASD_EXECUTION_PACKAGE] UNIQUE NONCLUSTERED ([execution_id] ASC, [package_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_PACKAGE]...';


GO
CREATE TABLE [dbo].[ASD_PACKAGE] (
    [id]               INT             IDENTITY (1, 1) NOT NULL,
    [name]             NVARCHAR (250)  NOT NULL,
    [type]             INT             NOT NULL,
    [document_id]      INT             NULL,
    [version]          NVARCHAR (250)  NULL,
    [platform]         INT             NOT NULL,
    [architecture]     INT             NULL,
    [description]      NVARCHAR (512)  NULL,
    [install_cmd_line] NVARCHAR (2048) NULL,
    [output]           NVARCHAR (256)  NULL,
    [action_type]      INT             NULL,
    CONSTRAINT [PK_ASD_PACKAGE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASD_PACKAGE] UNIQUE NONCLUSTERED ([name] ASC, [type] ASC, [platform] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_PORTAL_CATEGORY]...';


GO
CREATE TABLE [dbo].[ASD_PORTAL_CATEGORY] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [name]          NVARCHAR (200) NOT NULL,
    [is_active]     BIT            NOT NULL,
    [creation_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_ASD_PORTAL_CATEGORY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_SETUPPROJECT]...';


GO
CREATE TABLE [dbo].[ASD_SETUPPROJECT] (
    [id]                INT             IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (250)  NOT NULL,
    [description]       NVARCHAR (4000) NULL,
    [creation_date]     DATETIME        NOT NULL,
    [creator_user]      INT             NOT NULL,
    [update_date]       DATETIME        NULL,
    [updater_user]      INT             NULL,
    [type]              INT             NOT NULL,
    [platform]          INT             NOT NULL,
    [lastexecution_id]  INT             NULL,
    [agentprofile_id]   INT             NULL,
    [notification_time] INT             NULL,
    [notification_date] DATETIME        NULL,
    CONSTRAINT [PK_ASD_SETUPPROJECT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASD_SETUPPROJECT] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASD_SETUPPROJECT_PACKAGE]...';


GO
CREATE TABLE [dbo].[ASD_SETUPPROJECT_PACKAGE] (
    [id]                       INT            IDENTITY (1, 1) NOT NULL,
    [setupproject_id]          INT            NOT NULL,
    [package_id]               INT            NOT NULL,
    [package_order]            INT            NOT NULL,
    [package_comand]           NVARCHAR (MAX) NULL,
    [package_executable]       BIT            NOT NULL,
    [package_destination_path] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_ASD_SETUPPROJECT_PACKAGE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASD_SETUPPROJECT_PACKAGE] UNIQUE NONCLUSTERED ([setupproject_id] ASC, [package_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDC_ADDITIONAL_FIELD_MODEL]...';


GO
CREATE TABLE [dbo].[ASDC_ADDITIONAL_FIELD_MODEL] (
    [Id]           INT IDENTITY (1, 1) NOT NULL,
    [DefinitionId] INT NULL,
    [ModelId]      INT NULL,
    CONSTRAINT [PK_ADDITIONAL_FIELD_MODEL] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_ADDITIONAL_FIELD_MODEL] UNIQUE NONCLUSTERED ([DefinitionId] ASC, [ModelId] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDC_ADDITIONAL_FIELD_ROLE]...';


GO
CREATE TABLE [dbo].[ASDC_ADDITIONAL_FIELD_ROLE] (
    [Id]       INT IDENTITY (1, 1) NOT NULL,
    [RoleId]   INT NOT NULL,
    [Status]   INT NOT NULL,
    [ConfigId] INT NOT NULL,
    CONSTRAINT [PK_ADDITIONAL_FIELD_ROLE] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_ADDITIONAL_FIELD_ROLE] UNIQUE NONCLUSTERED ([RoleId] ASC, [Status] ASC, [ConfigId] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_AGENT_GROUP]...';


GO
CREATE TABLE [dbo].[ASDK_AGENT_GROUP] (
    [agent_id] INT NOT NULL,
    [group_id] INT NOT NULL
);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY] (
    [ctg_index]          INT             IDENTITY (1, 1) NOT NULL,
    [ctg_caption]        NVARCHAR (100)  NULL,
    [ctg_parent]         INT             NULL,
    [ctg_imageindex]     INT             NULL,
    [fl_str_hierarchy]   NVARCHAR (2000) NULL,
    [fl_int_status_id]   INT             NULL,
    [fl_str_description] NVARCHAR (MAX)  NULL,
    [fl_str_image]       NVARCHAR (MAX)  NULL,
    [fl_int_image_id]    INT             NULL,
    [is_delete]          BIT             NOT NULL,
    [guid]               NVARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY] PRIMARY KEY CLUSTERED ([ctg_index] ASC),
    CONSTRAINT [UX_ASDK_CATEGORY] UNIQUE NONCLUSTERED ([ctg_caption] ASC, [ctg_parent] ASC),
    CONSTRAINT [UX02_ASDK_CATEGORY] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_CATEGORY].[IX01_ASDK_CATEGORY]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_CATEGORY]
    ON [dbo].[ASDK_CATEGORY]([ctg_parent] ASC)
    INCLUDE([ctg_caption]);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_CLOSED] (
    [ctg_index]          INT             NOT NULL,
    [ctg_caption]        NVARCHAR (100)  NULL,
    [ctg_parent]         INT             NULL,
    [ctg_imageindex]     INT             NULL,
    [fl_str_hierarchy]   NVARCHAR (2000) NULL,
    [fl_int_status_id]   INT             NULL,
    [ctg_service_id]     INT             NULL,
    [fl_str_description] NVARCHAR (MAX)  NULL,
    [fl_str_image]       NVARCHAR (MAX)  NULL,
    [fl_int_image_id]    INT             NULL,
    [is_visible_user]    BIT             NOT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_CLOSED] PRIMARY KEY CLUSTERED ([ctg_index] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_FIELD]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_FIELD] (
    [category_id] INT NOT NULL,
    [field_id]    INT NOT NULL,
    [type]        INT NULL,
    [service_id]  INT NOT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_FIELD] PRIMARY KEY CLUSTERED ([category_id] ASC, [field_id] ASC, [service_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_FIELD_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_FIELD_CLOSED] (
    [category_id] INT NOT NULL,
    [field_id]    INT NOT NULL,
    [type]        INT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_FIELD_CLOSED] PRIMARY KEY CLUSTERED ([category_id] ASC, [field_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_HIERARCHY]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_HIERARCHY] (
    [ctg_index]        INT            NOT NULL,
    [language_id]      CHAR (2)       NOT NULL,
    [fl_str_hierarchy] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_HIERARCHY] PRIMARY KEY CLUSTERED ([ctg_index] ASC, [language_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_CATEGORY_HIERARCHY].[IX01_ASDK_CAT_HIERARCHY_LANG]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_CAT_HIERARCHY_LANG]
    ON [dbo].[ASDK_CATEGORY_HIERARCHY]([language_id] ASC)
    INCLUDE([ctg_index], [fl_str_hierarchy]);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_PROJECT]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_PROJECT] (
    [category_id] INT NOT NULL,
    [project_id]  INT NOT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_PROJECT] PRIMARY KEY CLUSTERED ([category_id] ASC, [project_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_SERVICE]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_SERVICE] (
    [category_id]     INT           NOT NULL,
    [service_id]      INT           NOT NULL,
    [status_id]       INT           NOT NULL,
    [is_visible_user] BIT           NOT NULL,
    [is_visible_home] BIT           NOT NULL,
    [guid]            NVARCHAR (36) NOT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_SERVICE] PRIMARY KEY CLUSTERED ([category_id] ASC, [service_id] ASC),
    CONSTRAINT [UX01_ASDK_CATEGORY_SERVICE] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_SERVICE_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_SERVICE_CLOSED] (
    [category_id]     INT NOT NULL,
    [service_id]      INT NOT NULL,
    [status_id]       INT NOT NULL,
    [is_visible_user] BIT NOT NULL,
    [is_visible_home] BIT NOT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_SERVICE_CLOSED] PRIMARY KEY CLUSTERED ([category_id] ASC, [service_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_TIME]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_TIME] (
    [category_id] INT NOT NULL,
    [time_id]     INT NOT NULL,
    [type]        INT NULL,
    [service_id]  INT NOT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_TIME] PRIMARY KEY CLUSTERED ([category_id] ASC, [time_id] ASC, [service_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_TIME_DEFAULT]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_TIME_DEFAULT] (
    [category_id] INT NOT NULL,
    [service_id]  INT NOT NULL,
    [time_id]     INT NOT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_TIME_DEFAULT] PRIMARY KEY CLUSTERED ([category_id] ASC, [service_id] ASC, [time_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_TYPE]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_TYPE] (
    [caty_category_id] INT NOT NULL,
    [caty_type_rec_id] INT NOT NULL,
    [caty_model_id]    INT NULL,
    [cost_model_id]    INT NULL,
    [script_id]        INT NULL,
    [caty_service_id]  INT NOT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_TYPE] PRIMARY KEY CLUSTERED ([caty_category_id] ASC, [caty_type_rec_id] ASC, [caty_service_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_CATEGORY_TYPE].[IX01_ASDK_CATEGORY_TYPE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_CATEGORY_TYPE]
    ON [dbo].[ASDK_CATEGORY_TYPE]([caty_service_id] ASC)
    INCLUDE([caty_model_id]);


GO
PRINT N'Creating Table [dbo].[ASDK_CATEGORY_TYPE_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_CATEGORY_TYPE_CLOSED] (
    [caty_category_id] INT NOT NULL,
    [caty_type_rec_id] INT NOT NULL,
    [caty_model_id]    INT NULL,
    [cost_model_id]    INT NULL,
    [script_id]        INT NULL,
    [caty_service_id]  INT NOT NULL,
    CONSTRAINT [PK_ASDK_CATEGORY_TYPE_CLOSED] PRIMARY KEY CLUSTERED ([caty_category_id] ASC, [caty_type_rec_id] ASC, [caty_service_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT] (
    [id]                    INT            IDENTITY (1, 1) NOT NULL,
    [author_id]             INT            NULL,
    [group_id]              INT            NULL,
    [responsible_id]        INT            NULL,
    [identifier]            NVARCHAR (256) NULL,
    [description]           NVARCHAR (MAX) NULL,
    [priority_id]           INT            NULL,
    [type_id]               INT            NULL,
    [state_id]              INT            NULL,
    [record_id]             NVARCHAR (255) NULL,
    [ci_id]                 INT            NULL,
    [recurrence]            INT            NULL,
    [opened_date]           DATETIME       NULL,
    [created_date]          DATETIME       NULL,
    [last_correlation_date] DATETIME       NULL,
    [closed_date]           DATETIME       NULL,
    [value]                 DECIMAL (18)   NULL,
    [project_id]            INT            NULL,
    [previous_state_id]     INT            NULL,
    [modifier_id]           INT            NULL,
    [modified_date]         DATETIME       NULL,
    [reason_id]             INT            NULL,
    [source_name]           NVARCHAR (256) NULL,
    [machine_name]          NVARCHAR (256) NULL,
    [log_name]              NVARCHAR (256) NULL,
    CONSTRAINT [PK_ASDK_EVENT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_CI]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_CI] (
    [eve_id]     INT      NOT NULL,
    [ci_id]      INT      NOT NULL,
    [cause_id]   INT      NOT NULL,
    [modifer_id] INT      NULL,
    [created]    DATETIME NULL,
    CONSTRAINT [PK_ASDK_EVENT_CI] PRIMARY KEY CLUSTERED ([eve_id] ASC, [ci_id] ASC, [cause_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_CI_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_CI_CLOSED] (
    [eve_id]     INT      NOT NULL,
    [ci_id]      INT      NOT NULL,
    [cause_id]   INT      NULL,
    [modifer_id] INT      NULL,
    [created]    DATETIME NULL,
    CONSTRAINT [PK_ASDK_EVENT_CI_CLOSED] PRIMARY KEY CLUSTERED ([eve_id] ASC, [ci_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_CI_DW]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_CI_DW] (
    [eve_id]               INT            NOT NULL,
    [ci_id]                INT            NOT NULL,
    [cause_id]             INT            NOT NULL,
    [modifer_id]           INT            NULL,
    [created]              DATETIME       NOT NULL,
    [relation_source_name] NVARCHAR (255) NULL,
    [relation_target_name] NVARCHAR (255) NULL,
    [author_name]          NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASDK_EVENT_CI_DW] PRIMARY KEY CLUSTERED ([eve_id] ASC, [ci_id] ASC, [cause_id] ASC, [created] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_CONDITION]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_CONDITION] (
    [id]             INT             IDENTITY (1, 1) NOT NULL,
    [config_id]      INT             NOT NULL,
    [operator_name]  NVARCHAR (5)    NULL,
    [field_id]       INT             NULL,
    [operator_id]    INT             NULL,
    [value]          NVARCHAR (255)  NULL,
    [text]           NVARCHAR (1500) NULL,
    [label]          NVARCHAR (1500) NULL,
    [field_name]     NVARCHAR (255)  NULL,
    [table_id]       INT             NULL,
    [value_name]     NVARCHAR (4000) NULL,
    [type_id]        INT             NULL,
    [field_value]    NVARCHAR (255)  NULL,
    [operator_value] NVARCHAR (50)   NULL,
    [field2_value]   NVARCHAR (255)  NULL,
    [field2_name]    NVARCHAR (255)  NULL,
    [function_id]    INT             NULL,
    [function_value] NVARCHAR (255)  NULL,
    [function_name]  NVARCHAR (255)  NULL,
    [value2]         NVARCHAR (255)  NULL,
    [value2_name]    NVARCHAR (255)  NULL,
    [TABLE_ID2]      INT             NULL,
    [FIELD_ID2]      INT             NULL,
    [CONDITION_TYPE] INT             NULL,
    CONSTRAINT [PK_ASDK_EVENT_CONDITION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_CONFIG]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_CONFIG] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [name]               NVARCHAR (250) NULL,
    [server]             NVARCHAR (250) NULL,
    [user_name]          NVARCHAR (250) NULL,
    [domain]             NVARCHAR (250) NULL,
    [password]           NVARCHAR (250) NULL,
    [log_name]           NVARCHAR (250) NULL,
    [source]             NVARCHAR (250) NULL,
    [project_id]         INT            NULL,
    [schedule_id]        INT            NULL,
    [description]        NVARCHAR (250) NULL,
    [active]             BIT            NOT NULL,
    [correlation]        NVARCHAR (MAX) NULL,
    [correlation_clause] NVARCHAR (MAX) NULL,
    [last_execution]     DATETIME       NULL,
    CONSTRAINT [PK_ASDK_EVENT_CONFIG] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_DW]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_DW] (
    [id]                    INT            NOT NULL,
    [author_id]             INT            NULL,
    [group_id]              INT            NULL,
    [responsible_id]        INT            NULL,
    [identifier]            NVARCHAR (256) NULL,
    [description]           NVARCHAR (MAX) NULL,
    [priority_id]           INT            NULL,
    [type_id]               INT            NULL,
    [state_id]              INT            NULL,
    [record_id]             NVARCHAR (255) NULL,
    [ci_id]                 INT            NULL,
    [recurrence]            INT            NULL,
    [opened_date]           DATETIME       NULL,
    [created_date]          DATETIME       NULL,
    [last_correlation_date] DATETIME       NULL,
    [closed_date]           DATETIME       NULL,
    [value]                 DECIMAL (18)   NULL,
    [project_id]            INT            NULL,
    [previous_state_id]     INT            NULL,
    [modifier_id]           INT            NULL,
    [modified_date]         DATETIME       NOT NULL,
    [reason_id]             INT            NULL,
    [source_name]           NVARCHAR (256) NULL,
    [machine_name]          NVARCHAR (256) NULL,
    [log_name]              NVARCHAR (256) NULL,
    [responsible_name]      NVARCHAR (250) NULL,
    [group_name]            NVARCHAR (250) NULL,
    [ci_name]               NVARCHAR (250) NULL,
    [state_name]            NVARCHAR (255) NULL,
    [state_color]           NVARCHAR (255) NULL,
    [reason_name]           NVARCHAR (255) NULL,
    [priority_name]         NVARCHAR (255) NULL,
    [author_name]           NVARCHAR (255) NULL,
    [modifier_name]         NVARCHAR (255) NULL,
    [project_name]          NVARCHAR (255) NULL,
    [type_name]             NVARCHAR (255) NULL,
    [note]                  NVARCHAR (MAX) NULL,
    [state_final]           INT            NULL,
    CONSTRAINT [PK_ASDK_EVENT_DW] PRIMARY KEY CLUSTERED ([id] ASC, [modified_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_DW_LAST]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_DW_LAST] (
    [id]                    INT            NOT NULL,
    [author_id]             INT            NULL,
    [group_id]              INT            NULL,
    [responsible_id]        INT            NULL,
    [identifier]            NVARCHAR (256) NULL,
    [description]           NVARCHAR (MAX) NULL,
    [priority_id]           INT            NULL,
    [type_id]               INT            NULL,
    [state_id]              INT            NULL,
    [record_id]             NVARCHAR (255) NULL,
    [ci_id]                 INT            NULL,
    [recurrence]            INT            NULL,
    [opened_date]           DATETIME       NULL,
    [created_date]          DATETIME       NULL,
    [last_correlation_date] DATETIME       NULL,
    [closed_date]           DATETIME       NULL,
    [value]                 DECIMAL (18)   NULL,
    [project_id]            INT            NULL,
    [previous_state_id]     INT            NULL,
    [modifier_id]           INT            NULL,
    [modified_date]         DATETIME       NOT NULL,
    [reason_id]             INT            NULL,
    [source_name]           NVARCHAR (256) NULL,
    [machine_name]          NVARCHAR (256) NULL,
    [log_name]              NVARCHAR (256) NULL,
    [responsible_name]      NVARCHAR (250) NULL,
    [group_name]            NVARCHAR (250) NULL,
    [ci_name]               NVARCHAR (250) NULL,
    [state_name]            NVARCHAR (255) NULL,
    [state_color]           NVARCHAR (255) NULL,
    [reason_name]           NVARCHAR (255) NULL,
    [priority_name]         NVARCHAR (255) NULL,
    [author_name]           NVARCHAR (255) NULL,
    [modifier_name]         NVARCHAR (255) NULL,
    [project_name]          NVARCHAR (255) NULL,
    [type_name]             NVARCHAR (255) NULL,
    [note]                  NVARCHAR (MAX) NULL,
    [state_final]           INT            NULL,
    CONSTRAINT [PK_ASDK_EVENT_DW_LAST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_HISTORY]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_HISTORY] (
    [eve_id_hist]     INT            IDENTITY (1, 1) NOT NULL,
    [eve_id]          INT            NOT NULL,
    [eve_version]     INT            NULL,
    [eve_autor]       INT            NULL,
    [eve_group]       INT            NULL,
    [eve_respo]       INT            NULL,
    [eve_subje]       NVARCHAR (256) NULL,
    [eve_descr]       NVARCHAR (MAX) NULL,
    [eve_prior]       INT            NULL,
    [eve_type]        CHAR (1)       NULL,
    [eve_statu]       INT            NULL,
    [eve_guid]        NVARCHAR (255) NULL,
    [id_ci]           INT            NULL,
    [eve_recur]       INT            NULL,
    [eve_date_regist] DATETIME       NULL,
    [eve_date_create] DATETIME       NULL,
    [eve_date_termin] DATETIME       NULL,
    [eve_date_close]  DATETIME       NULL,
    [id_project]      INT            NULL,
    CONSTRAINT [PK_ASDK_EVENT_HISTORY] PRIMARY KEY CLUSTERED ([eve_id_hist] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_HISTORY_CLOSE]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_HISTORY_CLOSE] (
    [eve_id_hist]     INT            NOT NULL,
    [eve_id]          INT            NOT NULL,
    [eve_version]     INT            NULL,
    [eve_autor]       INT            NULL,
    [eve_group]       INT            NULL,
    [eve_respo]       INT            NULL,
    [eve_subje]       NVARCHAR (256) NULL,
    [eve_descr]       NVARCHAR (MAX) NULL,
    [eve_prior]       INT            NULL,
    [eve_type]        CHAR (1)       NULL,
    [eve_statu]       INT            NULL,
    [eve_guid]        NVARCHAR (255) NULL,
    [id_ci]           INT            NULL,
    [eve_recur]       INT            NULL,
    [eve_date_regist] DATETIME       NULL,
    [eve_date_create] DATETIME       NULL,
    [eve_date_termin] DATETIME       NULL,
    [eve_date_close]  DATETIME       NULL,
    [id_project]      INT            NULL,
    CONSTRAINT [PK_ASDK_EVENT_HISTORY_CLOSE] PRIMARY KEY CLUSTERED ([eve_id_hist] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_ITEM]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_ITEM] (
    [eve_id]     INT      NOT NULL,
    [ite_id]     INT      NOT NULL,
    [eve_cause]  INT      NULL,
    [modifer_id] INT      NULL,
    [created]    DATETIME NULL,
    CONSTRAINT [PK_ASDK_EVENT_ITEM] PRIMARY KEY CLUSTERED ([eve_id] ASC, [ite_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_ITEM_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_ITEM_CLOSED] (
    [eve_id]     INT      NOT NULL,
    [ite_id]     INT      NOT NULL,
    [eve_cause]  INT      NULL,
    [modifer_id] INT      NULL,
    [created]    DATETIME NULL,
    CONSTRAINT [PK_ASDK_EVENT_ITEM_CLOSED] PRIMARY KEY CLUSTERED ([eve_id] ASC, [ite_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_ITEM_DW]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_ITEM_DW] (
    [eve_id]               INT            NOT NULL,
    [ite_id]               INT            NOT NULL,
    [eve_cause]            INT            NOT NULL,
    [modifer_id]           INT            NULL,
    [created]              DATETIME       NOT NULL,
    [relation_source_name] NVARCHAR (255) NULL,
    [relation_target_name] NVARCHAR (255) NULL,
    [author_name]          NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASDK_EVENT_ITEM_DW] PRIMARY KEY CLUSTERED ([eve_id] ASC, [ite_id] ASC, [eve_cause] ASC, [created] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_RELATED]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_RELATED] (
    [eve_father_id] INT      NOT NULL,
    [eve_child_id]  INT      NOT NULL,
    [eve_cause]     INT      NOT NULL,
    [eve_author]    INT      NULL,
    [eve_date]      DATETIME NULL,
    CONSTRAINT [PK_ASDK_EVENT_RELATED] PRIMARY KEY CLUSTERED ([eve_father_id] ASC, [eve_child_id] ASC, [eve_cause] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_RELATED_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_RELATED_CLOSED] (
    [eve_father_id] INT      NOT NULL,
    [eve_child_id]  INT      NOT NULL,
    [eve_cause]     INT      NOT NULL,
    [eve_author]    INT      NULL,
    [eve_date]      DATETIME NULL,
    CONSTRAINT [PK_ASDK_EVENT_RELATED_CLOSED] PRIMARY KEY CLUSTERED ([eve_father_id] ASC, [eve_child_id] ASC, [eve_cause] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_RELATED_DW]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_RELATED_DW] (
    [eve_father_id]        INT            NOT NULL,
    [eve_child_id]         INT            NOT NULL,
    [eve_cause]            INT            NOT NULL,
    [eve_author]           INT            NULL,
    [eve_date]             DATETIME       NOT NULL,
    [relation_source_name] NVARCHAR (255) NULL,
    [relation_target_name] NVARCHAR (255) NULL,
    [author_name]          NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASDK_EVENT_RELATED_DW] PRIMARY KEY CLUSTERED ([eve_father_id] ASC, [eve_child_id] ASC, [eve_cause] ASC, [eve_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_EVENT_SNAPSHOT]...';


GO
CREATE TABLE [dbo].[ASDK_EVENT_SNAPSHOT] (
    [eve_id]          INT            NOT NULL,
    [eve_date_termin] DATETIME       NULL,
    [eve_date_create] DATETIME       NULL,
    [eve_date_regist] DATETIME       NULL,
    [eve_recur]       INT            NULL,
    [id_ci]           INT            NULL,
    [eve_guid]        NVARCHAR (255) NULL,
    [eve_statu]       INT            NULL,
    [eve_type]        CHAR (1)       NULL,
    [eve_prior]       INT            NULL,
    [eve_descr]       NVARCHAR (MAX) NULL,
    [eve_subje]       NVARCHAR (256) NULL,
    [eve_respo]       INT            NULL,
    [eve_group]       INT            NULL,
    [eve_autor]       INT            NULL,
    [eve_date_close]  DATETIME       NULL,
    [eve_versi]       INT            NULL,
    [eve_id_snap]     INT            IDENTITY (1, 1) NOT NULL,
    [eve_value]       DECIMAL (18)   NULL,
    [id_project]      INT            NULL,
    CONSTRAINT [PK_ASDK_EVENT_SNAPSHOT] PRIMARY KEY CLUSTERED ([eve_id_snap] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_FILEREPOSITORY]...';


GO
CREATE TABLE [dbo].[ASDK_FILEREPOSITORY] (
    [id]           VARCHAR (50) NOT NULL,
    [user_id]      INT          NOT NULL,
    [item_id]      INT          NOT NULL,
    [type_id]      INT          NOT NULL,
    [created_date] DATETIME     NOT NULL,
    [file_id]      INT          NOT NULL,
    CONSTRAINT [PK_ASDK_FILEREPOSITORY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_IMPORT_PARTITION]...';


GO
CREATE TABLE [dbo].[ASDK_IMPORT_PARTITION] (
    [id]        INT            IDENTITY (1, 1) NOT NULL,
    [import_id] INT            NOT NULL,
    [data_json] NVARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_ASDK_IMPORT_PARTITION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_IMPORTS]...';


GO
CREATE TABLE [dbo].[ASDK_IMPORTS] (
    [id]                           INT             IDENTITY (1, 1) NOT NULL,
    [file_name]                    VARCHAR (255)   NOT NULL,
    [date_import]                  DATETIME        NOT NULL,
    [date_end]                     DATETIME        NULL,
    [state]                        BIT             NULL,
    [file]                         VARBINARY (MAX) NULL,
    [json_projects_details]        VARCHAR (MAX)   NULL,
    [json_models_details]          VARCHAR (MAX)   NULL,
    [user_id]                      INT             NULL,
    [has_exception_project]        BIT             NULL,
    [has_exception_model]          BIT             NULL,
    [number_files]                 TINYINT         NULL,
    [type_id]                      INT             NULL,
    [project_id]                   INT             NULL,
    [date_scheduled_execution]     DATETIME        NULL,
    [scheduled_exec_prevalidation] BIT             NULL,
    [bulk_batch_size]              INT             NULL,
    CONSTRAINT [PK_ASDK_IMPORTS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [id_by_project]      NVARCHAR (256) NOT NULL,
    [rev]                INT            NULL,
    [subject]            NVARCHAR (400) NULL,
    [type_id]            INT            NOT NULL,
    [state_id]           INT            NOT NULL,
    [project_id]         INT            NOT NULL,
    [reason_id]          INT            NULL,
    [category_id]        INT            NULL,
    [service_id]         INT            NULL,
    [impact_id]          INT            NULL,
    [urgency_id]         INT            NULL,
    [priority_id]        INT            NULL,
    [registry_type_id]   INT            NULL,
    [description]        NVARCHAR (MAX) NOT NULL,
    [description_nohtml] NVARCHAR (MAX) NULL,
    [group_id]           INT            NULL,
    [responsible_id]     INT            NULL,
    [customer_id]        INT            NULL,
    [author_id]          INT            NOT NULL,
    [company_id]         INT            NULL,
    [ci_id]              INT            NULL,
    [modifier_id]        INT            NULL,
    [receptor_id]        INT            NULL,
    [integration_id]     INT            NULL,
    [opened_date]        DATETIME       NOT NULL,
    [closed_date]        DATETIME       NULL,
    [modified_date]      DATETIME       NULL,
    [created_date]       DATETIME       NULL,
    [calendar_sla_id]    INT            NULL,
    [calendar_uc_id]     INT            NULL,
    [calendar_ola_id]    INT            NULL,
    [commentary]         NVARCHAR (MAX) NULL,
    [commentary_nohtml]  NVARCHAR (MAX) NULL,
    [cause]              NVARCHAR (MAX) NULL,
    [cause_nohtml]       NVARCHAR (MAX) NULL,
    [model_id]           INT            NULL,
    [sla_id]             INT            NULL,
    [uc_id]              INT            NULL,
    [ola_id]             INT            NULL,
    [provider_id]        INT            NULL,
    [unit_id]            INT            NULL,
    [survey_token]       NVARCHAR (100) NULL,
    [previous_status_id] INT            NULL,
    [price]              FLOAT (53)     NULL,
    [cost]               FLOAT (53)     NULL,
    [effort]             FLOAT (53)     NULL,
    [cost_model_id]      INT            NULL,
    [income_center_id]   INT            NULL,
    [cost_center_id]     INT            NULL,
    [interface_id]       NVARCHAR (100) NULL,
    [available_cost]     BIT            NULL,
    [available_effort]   BIT            NULL,
    [available_price]    BIT            NULL,
    [available_count]    BIT            NULL,
    [author_email]       NVARCHAR (255) NULL,
    [add_int_1]          INT            NULL,
    [add_int_2]          INT            NULL,
    [add_int_3]          INT            NULL,
    [add_int_4]          INT            NULL,
    [add_int_5]          INT            NULL,
    [add_int_6]          INT            NULL,
    [add_int_7]          INT            NULL,
    [add_int_8]          INT            NULL,
    [add_int_9]          INT            NULL,
    [add_int_10]         INT            NULL,
    [add_str_1]          NVARCHAR (MAX) NULL,
    [add_str_2]          NVARCHAR (MAX) NULL,
    [add_str_3]          NVARCHAR (MAX) NULL,
    [add_str_4]          NVARCHAR (MAX) NULL,
    [add_str_5]          NVARCHAR (MAX) NULL,
    [add_str_6]          NVARCHAR (MAX) NULL,
    [add_str_7]          NVARCHAR (MAX) NULL,
    [add_str_8]          NVARCHAR (MAX) NULL,
    [add_str_9]          NVARCHAR (MAX) NULL,
    [add_str_10]         NVARCHAR (MAX) NULL,
    [add_date_1]         DATETIME       NULL,
    [add_date_2]         DATETIME       NULL,
    [add_date_3]         DATETIME       NULL,
    [add_date_4]         DATETIME       NULL,
    [add_date_5]         DATETIME       NULL,
    [add_date_6]         DATETIME       NULL,
    [add_date_7]         DATETIME       NULL,
    [add_date_8]         DATETIME       NULL,
    [add_date_9]         DATETIME       NULL,
    [add_date_10]        DATETIME       NULL,
    [add_float_1]        FLOAT (53)     NULL,
    [add_float_2]        FLOAT (53)     NULL,
    [add_float_3]        FLOAT (53)     NULL,
    [add_float_4]        FLOAT (53)     NULL,
    [add_float_5]        FLOAT (53)     NULL,
    [add_float_6]        FLOAT (53)     NULL,
    [add_float_7]        FLOAT (53)     NULL,
    [add_float_8]        FLOAT (53)     NULL,
    [add_float_9]        FLOAT (53)     NULL,
    [add_float_10]       FLOAT (53)     NULL,
    [add_bool_1]         BIT            NULL,
    [add_bool_2]         BIT            NULL,
    [add_bool_3]         BIT            NULL,
    [add_bool_4]         BIT            NULL,
    [add_bool_5]         BIT            NULL,
    [add_bool_6]         BIT            NULL,
    [add_bool_7]         BIT            NULL,
    [add_bool_8]         BIT            NULL,
    [add_bool_9]         BIT            NULL,
    [add_bool_10]        BIT            NULL,
    [location_id]        INT            NULL,
    [contract_id]        INT            NULL,
    [applicant_id]       INT            NULL,
    [recipient_emails]   NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_ASDK_ITEM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND001_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND001_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([type_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND002_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND002_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([project_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND003_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND003_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([state_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND004_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND004_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([reason_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND005_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND005_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([category_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND006_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND006_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([service_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND007_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND007_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([impact_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND008_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND008_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([urgency_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND009_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND009_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([priority_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND010_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND010_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([registry_type_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND011_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND011_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([group_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND012_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND012_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([responsible_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND013_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND013_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([customer_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND014_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND014_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([author_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND015_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND015_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([company_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND016_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND016_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([ci_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND017_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND017_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([receptor_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND018_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND018_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([modifier_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND019_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND019_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([sla_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND020_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND020_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([uc_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND021_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND021_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([ola_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND022_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND022_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([provider_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IND023_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IND023_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([unit_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IX01_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_ITEM]
    ON [dbo].[ASDK_ITEM]([add_int_3] ASC, [type_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IX02_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX02_ASDK_ITEM]
    ON [dbo].[ASDK_ITEM]([type_id] ASC, [project_id] ASC, [opened_date] ASC)
    INCLUDE([id_by_project], [rev], [subject], [state_id], [reason_id], [category_id], [service_id], [impact_id], [urgency_id], [priority_id], [registry_type_id], [description], [description_nohtml], [group_id], [responsible_id], [customer_id], [author_id], [company_id], [ci_id], [modifier_id], [receptor_id], [integration_id], [closed_date], [modified_date], [calendar_sla_id], [calendar_uc_id], [calendar_ola_id], [commentary_nohtml], [cause_nohtml], [model_id], [sla_id], [uc_id], [ola_id], [provider_id], [unit_id], [survey_token], [price], [cost], [effort], [cost_model_id], [income_center_id], [cost_center_id], [interface_id], [add_int_1], [add_int_2], [add_int_3], [add_int_4], [add_int_5], [add_int_6], [add_int_7], [add_int_8], [add_str_1], [add_str_2], [add_str_3], [add_str_4], [add_str_5], [add_date_1], [add_date_2], [add_date_3], [add_date_4], [add_date_5], [add_date_6], [add_date_7], [add_date_8], [add_bool_1], [add_bool_2], [add_bool_3], [location_id], [contract_id], [applicant_id]);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IX03_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX03_ASDK_ITEM]
    ON [dbo].[ASDK_ITEM]([type_id] ASC)
    INCLUDE([add_int_3]);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IX04_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX04_ASDK_ITEM]
    ON [dbo].[ASDK_ITEM]([responsible_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IX05_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX05_ASDK_ITEM]
    ON [dbo].[ASDK_ITEM]([state_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IX06_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX06_ASDK_ITEM]
    ON [dbo].[ASDK_ITEM]([applicant_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IX07_ASDK_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX07_ASDK_ITEM]
    ON [dbo].[ASDK_ITEM]([service_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM].[IX24_AFW_ITEM]...';


GO
CREATE NONCLUSTERED INDEX [IX24_AFW_ITEM]
    ON [dbo].[ASDK_ITEM]([id] ASC, [customer_id] ASC)
    INCLUDE([id_by_project], [project_id], [subject], [type_id], [service_id]);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_ACCOUNTING]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_ACCOUNTING] (
    [id]               INT        IDENTITY (1, 1) NOT NULL,
    [item_id]          INT        NULL,
    [user_id]          INT        NULL,
    [value_date]       DATETIME   NULL,
    [effort]           FLOAT (53) NULL,
    [cost]             FLOAT (53) NULL,
    [price]            FLOAT (53) NULL,
    [cost_surcharge]   FLOAT (53) NULL,
    [price_surcharge]  FLOAT (53) NULL,
    [cost_percentage]  FLOAT (53) NULL,
    [price_percentage] FLOAT (53) NULL,
    CONSTRAINT [PK_ASDK_ITEM_ACCOUNTING] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_ARTICLE]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_ARTICLE] (
    [item_id]          INT      NOT NULL,
    [article_id]       INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASDK_ITEM_ARTICLE] PRIMARY KEY CLUSTERED ([item_id] ASC, [article_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_ARTICLE_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_ARTICLE_CLOSED] (
    [item_id]          INT      NOT NULL,
    [article_id]       INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASDK_ITEM_ARTICLE_CLOSED] PRIMARY KEY CLUSTERED ([item_id] ASC, [article_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_ARTICLE_DW]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_ARTICLE_DW] (
    [item_id]              INT            NOT NULL,
    [article_id]           INT            NOT NULL,
    [relation_type_id]     INT            NOT NULL,
    [author_id]            INT            NULL,
    [created_date]         DATETIME       NOT NULL,
    [relation_source_name] NVARCHAR (255) NULL,
    [relation_target_name] NVARCHAR (255) NULL,
    [author_name]          NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASDK_ITEM_ARTICLE_DW] PRIMARY KEY CLUSTERED ([item_id] ASC, [article_id] ASC, [relation_type_id] ASC, [created_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_CI]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_CI] (
    [item_id]          INT      NOT NULL,
    [ci_id]            INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASDK_ITEM_CI] PRIMARY KEY CLUSTERED ([item_id] ASC, [ci_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_CI_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_CI_CLOSED] (
    [item_id]          INT      NOT NULL,
    [ci_id]            INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASDK_ITEM_CI_CLOSED] PRIMARY KEY CLUSTERED ([item_id] ASC, [ci_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_CI_DW]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_CI_DW] (
    [item_id]              INT            NOT NULL,
    [ci_id]                INT            NOT NULL,
    [relation_type_id]     INT            NOT NULL,
    [author_id]            INT            NULL,
    [created_date]         DATETIME       NOT NULL,
    [relation_source_name] NVARCHAR (255) NULL,
    [relation_target_name] NVARCHAR (255) NULL,
    [author_name]          NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASDK_ITEM_CI_DW] PRIMARY KEY CLUSTERED ([item_id] ASC, [ci_id] ASC, [relation_type_id] ASC, [created_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_DW_LAST_OLD]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_DW_LAST_OLD] (
    [id]                 INT            NOT NULL,
    [id_by_project]      NVARCHAR (256) NOT NULL,
    [rev]                INT            NULL,
    [subject]            NVARCHAR (400) NULL,
    [type_id]            INT            NOT NULL,
    [state_id]           INT            NULL,
    [project_id]         INT            NULL,
    [reason_id]          INT            NULL,
    [category_id]        INT            NULL,
    [service_id]         INT            NULL,
    [impact_id]          INT            NULL,
    [urgency_id]         INT            NULL,
    [priority_id]        INT            NULL,
    [registry_type_id]   INT            NULL,
    [description]        NVARCHAR (MAX) NULL,
    [description_nohtml] NVARCHAR (MAX) NULL,
    [group_id]           INT            NULL,
    [responsible_id]     INT            NULL,
    [customer_id]        INT            NULL,
    [author_id]          INT            NULL,
    [company_id]         INT            NULL,
    [ci_id]              INT            NULL,
    [modifier_id]        INT            NULL,
    [receptor_id]        INT            NULL,
    [integration_id]     INT            NULL,
    [opened_date]        DATETIME       NULL,
    [closed_date]        DATETIME       NULL,
    [modified_date]      DATETIME       NOT NULL,
    [created_date]       DATETIME       NULL,
    [calendar_sla_id]    INT            NULL,
    [calendar_uc_id]     INT            NULL,
    [calendar_ola_id]    INT            NULL,
    [commentary]         NVARCHAR (MAX) NULL,
    [commentary_nohtml]  NVARCHAR (MAX) NULL,
    [cause]              NVARCHAR (MAX) NULL,
    [cause_nohtml]       NVARCHAR (MAX) NULL,
    [model_id]           INT            NULL,
    [sla_id]             INT            NULL,
    [uc_id]              INT            NULL,
    [ola_id]             INT            NULL,
    [provider_id]        INT            NULL,
    [unit_id]            INT            NULL,
    [survey_token]       NVARCHAR (100) NULL,
    [previous_status_id] INT            NULL,
    [price]              FLOAT (53)     NULL,
    [cost]               FLOAT (53)     NULL,
    [effort]             FLOAT (53)     NULL,
    [cost_model_id]      INT            NULL,
    [income_center_id]   INT            NULL,
    [cost_center_id]     INT            NULL,
    [interface_id]       NVARCHAR (100) NULL,
    [available_cost]     BIT            NULL,
    [available_effort]   BIT            NULL,
    [available_price]    BIT            NULL,
    [available_count]    BIT            NULL,
    [author_email]       NVARCHAR (255) NULL,
    [add_int_1]          INT            NULL,
    [add_int_2]          INT            NULL,
    [add_int_3]          INT            NULL,
    [add_int_4]          INT            NULL,
    [add_int_5]          INT            NULL,
    [add_int_6]          INT            NULL,
    [add_int_7]          INT            NULL,
    [add_int_8]          INT            NULL,
    [add_int_9]          INT            NULL,
    [add_int_10]         INT            NULL,
    [add_str_1]          NVARCHAR (MAX) NULL,
    [add_str_2]          NVARCHAR (MAX) NULL,
    [add_str_3]          NVARCHAR (MAX) NULL,
    [add_str_4]          NVARCHAR (MAX) NULL,
    [add_str_5]          NVARCHAR (MAX) NULL,
    [add_str_6]          NVARCHAR (MAX) NULL,
    [add_str_7]          NVARCHAR (MAX) NULL,
    [add_str_8]          NVARCHAR (MAX) NULL,
    [add_str_9]          NVARCHAR (MAX) NULL,
    [add_str_10]         NVARCHAR (MAX) NULL,
    [add_date_1]         DATETIME       NULL,
    [add_date_2]         DATETIME       NULL,
    [add_date_3]         DATETIME       NULL,
    [add_date_4]         DATETIME       NULL,
    [add_date_5]         DATETIME       NULL,
    [add_date_6]         DATETIME       NULL,
    [add_date_7]         DATETIME       NULL,
    [add_date_8]         DATETIME       NULL,
    [add_date_9]         DATETIME       NULL,
    [add_date_10]        DATETIME       NULL,
    [add_float_1]        FLOAT (53)     NULL,
    [add_float_2]        FLOAT (53)     NULL,
    [add_float_3]        FLOAT (53)     NULL,
    [add_float_4]        FLOAT (53)     NULL,
    [add_float_5]        FLOAT (53)     NULL,
    [add_float_6]        FLOAT (53)     NULL,
    [add_float_7]        FLOAT (53)     NULL,
    [add_float_8]        FLOAT (53)     NULL,
    [add_float_9]        FLOAT (53)     NULL,
    [add_float_10]       FLOAT (53)     NULL,
    [add_bool_1]         BIT            NULL,
    [add_bool_2]         BIT            NULL,
    [add_bool_3]         BIT            NULL,
    [add_bool_4]         BIT            NULL,
    [add_bool_5]         BIT            NULL,
    [add_bool_6]         BIT            NULL,
    [add_bool_7]         BIT            NULL,
    [add_bool_8]         BIT            NULL,
    [add_bool_9]         BIT            NULL,
    [add_bool_10]        BIT            NULL,
    [state_name]         NVARCHAR (255) NULL,
    [project_name]       NVARCHAR (255) NULL,
    [reason_name]        NVARCHAR (255) NULL,
    [category_name]      NVARCHAR (255) NULL,
    [category_hierarchy] NVARCHAR (255) NULL,
    [service_name]       NVARCHAR (255) NULL,
    [impact_name]        NVARCHAR (255) NULL,
    [urgency_name]       NVARCHAR (255) NULL,
    [priority_name]      NVARCHAR (255) NULL,
    [registry_type_name] NVARCHAR (255) NULL,
    [group_name]         NVARCHAR (255) NULL,
    [responsible_name]   NVARCHAR (255) NULL,
    [customer_name]      NVARCHAR (255) NULL,
    [author_name]        NVARCHAR (255) NULL,
    [company_name]       NVARCHAR (255) NULL,
    [ci_name]            NVARCHAR (255) NULL,
    [ci_serial]          NVARCHAR (255) NULL,
    [ci_asset_tag]       NVARCHAR (255) NULL,
    [modifier_name]      NVARCHAR (255) NULL,
    [receptor_name]      NVARCHAR (255) NULL,
    [model_name]         NVARCHAR (255) NULL,
    [sla_name]           NVARCHAR (255) NULL,
    [uc_name]            NVARCHAR (255) NULL,
    [ola_name]           NVARCHAR (255) NULL,
    [provider_name]      NVARCHAR (255) NULL,
    [unit_name]          NVARCHAR (255) NULL,
    [type_name]          NVARCHAR (255) NULL,
    [calendar_sla_name]  NVARCHAR (255) NULL,
    [calendar_uc_name]   NVARCHAR (255) NULL,
    [calendar_ola_name]  NVARCHAR (255) NULL,
    [status_color]       NVARCHAR (255) NULL,
    [estimated_date]     DATETIME       NULL,
    [real_date]          DATETIME       NULL,
    [estimated_time]     FLOAT (53)     NULL,
    [current_progress]   FLOAT (53)     NULL,
    [current_time]       FLOAT (53)     NULL,
    [note]               NVARCHAR (MAX) NULL,
    [state_final]        INT            NULL,
    [location_id]        INT            NULL,
    [contract_id]        INT            NULL,
    [state_initial]      INT            NULL,
    [applicant_id]       INT            NULL,
    [applicant_name]     NVARCHAR (510) NULL,
    [opened_date_sk]     AS             YEAR(opened_date) * 10000 + MONTH([opened_date]) * 100 + DAY([opened_date]) PERSISTED,
    [solution_date_sk]   AS             YEAR([estimated_date]) * 10000 + MONTH([estimated_date]) * 100 + DAY([estimated_date]) PERSISTED,
    [closed_date_sk]     AS             YEAR([closed_date]) * 10000 + MONTH([closed_date]) * 100 + DAY([closed_date]) PERSISTED,
    CONSTRAINT [PK_ASDK_ITEM_DW_LAST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM_DW_LAST_OLD].[IX01_ASDK_ITEM_DW_LAST]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_ITEM_DW_LAST]
    ON [dbo].[ASDK_ITEM_DW_LAST_OLD]([type_id] ASC, [project_id] ASC, [opened_date] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM_DW_LAST_OLD].[IX02_ASDK_ITEM_DW_LAST]...';


GO
CREATE NONCLUSTERED INDEX [IX02_ASDK_ITEM_DW_LAST]
    ON [dbo].[ASDK_ITEM_DW_LAST_OLD]([interface_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM_DW_LAST_OLD].[IX03_ASDK_ITEM_DW_LAST]...';


GO
CREATE NONCLUSTERED INDEX [IX03_ASDK_ITEM_DW_LAST]
    ON [dbo].[ASDK_ITEM_DW_LAST_OLD]([add_int_10] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM_DW_LAST_OLD].[IX04_ASDK_ITEM_DW_LAST]...';


GO
CREATE NONCLUSTERED INDEX [IX04_ASDK_ITEM_DW_LAST]
    ON [dbo].[ASDK_ITEM_DW_LAST_OLD]([type_id] ASC, [model_id] ASC, [project_id] ASC, [opened_date] DESC)
    INCLUDE([responsible_id], [state_id], [group_id], [customer_id], [company_id], [service_id], [category_id]);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_DW_OLD]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_DW_OLD] (
    [id]                 INT            NOT NULL,
    [id_by_project]      NVARCHAR (256) NOT NULL,
    [rev]                INT            NULL,
    [subject]            NVARCHAR (400) NULL,
    [type_id]            INT            NOT NULL,
    [state_id]           INT            NULL,
    [project_id]         INT            NULL,
    [reason_id]          INT            NULL,
    [category_id]        INT            NULL,
    [service_id]         INT            NULL,
    [impact_id]          INT            NULL,
    [urgency_id]         INT            NULL,
    [priority_id]        INT            NULL,
    [registry_type_id]   INT            NULL,
    [description]        NVARCHAR (MAX) NULL,
    [description_nohtml] NVARCHAR (MAX) NULL,
    [group_id]           INT            NULL,
    [responsible_id]     INT            NULL,
    [customer_id]        INT            NULL,
    [author_id]          INT            NULL,
    [company_id]         INT            NULL,
    [ci_id]              INT            NULL,
    [modifier_id]        INT            NULL,
    [receptor_id]        INT            NULL,
    [integration_id]     INT            NULL,
    [opened_date]        DATETIME       NULL,
    [closed_date]        DATETIME       NULL,
    [modified_date]      DATETIME2 (3)  NOT NULL,
    [created_date]       DATETIME       NULL,
    [calendar_sla_id]    INT            NULL,
    [calendar_uc_id]     INT            NULL,
    [calendar_ola_id]    INT            NULL,
    [commentary]         NVARCHAR (MAX) NULL,
    [commentary_nohtml]  NVARCHAR (MAX) NULL,
    [cause]              NVARCHAR (MAX) NULL,
    [cause_nohtml]       NVARCHAR (MAX) NULL,
    [model_id]           INT            NULL,
    [sla_id]             INT            NULL,
    [uc_id]              INT            NULL,
    [ola_id]             INT            NULL,
    [provider_id]        INT            NULL,
    [unit_id]            INT            NULL,
    [survey_token]       NVARCHAR (100) NULL,
    [previous_status_id] INT            NULL,
    [price]              FLOAT (53)     NULL,
    [cost]               FLOAT (53)     NULL,
    [effort]             FLOAT (53)     NULL,
    [cost_model_id]      INT            NULL,
    [income_center_id]   INT            NULL,
    [cost_center_id]     INT            NULL,
    [interface_id]       NVARCHAR (100) NULL,
    [available_cost]     BIT            NULL,
    [available_effort]   BIT            NULL,
    [available_price]    BIT            NULL,
    [available_count]    BIT            NULL,
    [author_email]       NVARCHAR (255) NULL,
    [add_int_1]          INT            NULL,
    [add_int_2]          INT            NULL,
    [add_int_3]          INT            NULL,
    [add_int_4]          INT            NULL,
    [add_int_5]          INT            NULL,
    [add_int_6]          INT            NULL,
    [add_int_7]          INT            NULL,
    [add_int_8]          INT            NULL,
    [add_int_9]          INT            NULL,
    [add_int_10]         INT            NULL,
    [add_str_1]          NVARCHAR (MAX) NULL,
    [add_str_2]          NVARCHAR (MAX) NULL,
    [add_str_3]          NVARCHAR (MAX) NULL,
    [add_str_4]          NVARCHAR (MAX) NULL,
    [add_str_5]          NVARCHAR (MAX) NULL,
    [add_str_6]          NVARCHAR (MAX) NULL,
    [add_str_7]          NVARCHAR (MAX) NULL,
    [add_str_8]          NVARCHAR (MAX) NULL,
    [add_str_9]          NVARCHAR (MAX) NULL,
    [add_str_10]         NVARCHAR (MAX) NULL,
    [add_date_1]         DATETIME       NULL,
    [add_date_2]         DATETIME       NULL,
    [add_date_3]         DATETIME       NULL,
    [add_date_4]         DATETIME       NULL,
    [add_date_5]         DATETIME       NULL,
    [add_date_6]         DATETIME       NULL,
    [add_date_7]         DATETIME       NULL,
    [add_date_8]         DATETIME       NULL,
    [add_date_9]         DATETIME       NULL,
    [add_date_10]        DATETIME       NULL,
    [add_float_1]        FLOAT (53)     NULL,
    [add_float_2]        FLOAT (53)     NULL,
    [add_float_3]        FLOAT (53)     NULL,
    [add_float_4]        FLOAT (53)     NULL,
    [add_float_5]        FLOAT (53)     NULL,
    [add_float_6]        FLOAT (53)     NULL,
    [add_float_7]        FLOAT (53)     NULL,
    [add_float_8]        FLOAT (53)     NULL,
    [add_float_9]        FLOAT (53)     NULL,
    [add_float_10]       FLOAT (53)     NULL,
    [add_bool_1]         BIT            NULL,
    [add_bool_2]         BIT            NULL,
    [add_bool_3]         BIT            NULL,
    [add_bool_4]         BIT            NULL,
    [add_bool_5]         BIT            NULL,
    [add_bool_6]         BIT            NULL,
    [add_bool_7]         BIT            NULL,
    [add_bool_8]         BIT            NULL,
    [add_bool_9]         BIT            NULL,
    [add_bool_10]        BIT            NULL,
    [state_name]         NVARCHAR (255) NULL,
    [project_name]       NVARCHAR (255) NULL,
    [reason_name]        NVARCHAR (255) NULL,
    [category_name]      NVARCHAR (255) NULL,
    [category_hierarchy] NVARCHAR (255) NULL,
    [service_name]       NVARCHAR (255) NULL,
    [impact_name]        NVARCHAR (255) NULL,
    [urgency_name]       NVARCHAR (255) NULL,
    [priority_name]      NVARCHAR (255) NULL,
    [registry_type_name] NVARCHAR (255) NULL,
    [group_name]         NVARCHAR (255) NULL,
    [responsible_name]   NVARCHAR (255) NULL,
    [customer_name]      NVARCHAR (255) NULL,
    [author_name]        NVARCHAR (255) NULL,
    [company_name]       NVARCHAR (255) NULL,
    [ci_name]            NVARCHAR (255) NULL,
    [ci_serial]          NVARCHAR (255) NULL,
    [ci_asset_tag]       NVARCHAR (255) NULL,
    [modifier_name]      NVARCHAR (255) NULL,
    [receptor_name]      NVARCHAR (255) NULL,
    [model_name]         NVARCHAR (255) NULL,
    [sla_name]           NVARCHAR (255) NULL,
    [uc_name]            NVARCHAR (255) NULL,
    [ola_name]           NVARCHAR (255) NULL,
    [provider_name]      NVARCHAR (255) NULL,
    [unit_name]          NVARCHAR (255) NULL,
    [type_name]          NVARCHAR (255) NULL,
    [calendar_sla_name]  NVARCHAR (255) NULL,
    [calendar_uc_name]   NVARCHAR (255) NULL,
    [calendar_ola_name]  NVARCHAR (255) NULL,
    [status_color]       NVARCHAR (255) NULL,
    [estimated_date]     DATETIME       NULL,
    [real_date]          DATETIME       NULL,
    [estimated_time]     FLOAT (53)     NULL,
    [current_progress]   FLOAT (53)     NULL,
    [current_time]       FLOAT (53)     NULL,
    [note]               NVARCHAR (MAX) NULL,
    [state_final]        INT            NULL,
    [location_id]        INT            NULL,
    [contract_id]        INT            NULL,
    [state_initial]      INT            NULL,
    [applicant_id]       INT            NULL,
    [applicant_name]     NVARCHAR (510) NULL,
    CONSTRAINT [PK_ASDK_ITEM_DW] PRIMARY KEY CLUSTERED ([id] ASC, [modified_date] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_ITEM_DW_OLD].[IX01_ASDK_ITEM_DW]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_ITEM_DW]
    ON [dbo].[ASDK_ITEM_DW_OLD]([type_id] ASC, [project_id] ASC, [opened_date] ASC);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_FOLLOWUP]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_FOLLOWUP] (
    [user_id]      INT      NOT NULL,
    [item_id]      INT      NOT NULL,
    [created_date] DATETIME NULL,
    CONSTRAINT [PK_ASDK_ITEM_FOLLOWUP] PRIMARY KEY CLUSTERED ([user_id] ASC, [item_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_IDS]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_IDS] (
    [project_id]   INT NOT NULL,
    [item_type_id] INT NOT NULL,
    [item_id]      INT NULL,
    CONSTRAINT [PK_ASDK_ITEM_IDS] PRIMARY KEY CLUSTERED ([project_id] ASC, [item_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_IMP]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_IMP] (
    [id]                   INT            IDENTITY (1, 1) NOT NULL,
    [id_by_project]        NVARCHAR (256) NOT NULL,
    [rev]                  INT            NULL,
    [subject]              NVARCHAR (256) NULL,
    [type_id]              INT            NOT NULL,
    [state_id]             INT            NULL,
    [project_id]           INT            NULL,
    [reason_id]            INT            NULL,
    [category_id]          INT            NULL,
    [service_id]           INT            NULL,
    [impact_id]            INT            NULL,
    [urgency_id]           INT            NULL,
    [priority_id]          INT            NULL,
    [registry_type_id]     INT            NULL,
    [description]          NVARCHAR (MAX) NULL,
    [description_nohtml]   NVARCHAR (MAX) NULL,
    [group_id]             INT            NULL,
    [responsible_id]       INT            NULL,
    [customer_id]          INT            NULL,
    [author_id]            INT            NULL,
    [company_id]           INT            NULL,
    [ci_id]                INT            NULL,
    [modifier_id]          INT            NULL,
    [receptor_id]          INT            NULL,
    [integration_id]       INT            NULL,
    [opened_date]          DATETIME       NULL,
    [closed_date]          DATETIME       NULL,
    [modified_date]        DATETIME       NOT NULL,
    [created_date]         DATETIME       NULL,
    [calendar_sla_id]      INT            NULL,
    [calendar_uc_id]       INT            NULL,
    [calendar_ola_id]      INT            NULL,
    [commentary]           NVARCHAR (MAX) NULL,
    [commentary_nohtml]    NVARCHAR (MAX) NULL,
    [cause]                NVARCHAR (MAX) NULL,
    [cause_nohtml]         NVARCHAR (MAX) NULL,
    [model_id]             INT            NULL,
    [sla_id]               INT            NULL,
    [uc_id]                INT            NULL,
    [ola_id]               INT            NULL,
    [provider_id]          INT            NULL,
    [unit_id]              INT            NULL,
    [survey_token]         NVARCHAR (100) NULL,
    [previous_status_id]   INT            NULL,
    [price]                FLOAT (53)     NULL,
    [cost]                 FLOAT (53)     NULL,
    [effort]               FLOAT (53)     NULL,
    [cost_model_id]        INT            NULL,
    [income_center_id]     INT            NULL,
    [cost_center_id]       INT            NULL,
    [interface_id]         NVARCHAR (100) NULL,
    [available_cost]       BIT            NULL,
    [available_effort]     BIT            NULL,
    [available_price]      BIT            NULL,
    [available_count]      BIT            NULL,
    [author_email]         NVARCHAR (255) NULL,
    [add_int_1]            INT            NULL,
    [add_int_2]            INT            NULL,
    [add_int_3]            INT            NULL,
    [add_int_4]            INT            NULL,
    [add_int_5]            INT            NULL,
    [add_int_6]            INT            NULL,
    [add_int_7]            INT            NULL,
    [add_int_8]            INT            NULL,
    [add_int_9]            INT            NULL,
    [add_int_10]           INT            NULL,
    [add_str_1]            NVARCHAR (MAX) NULL,
    [add_str_2]            NVARCHAR (MAX) NULL,
    [add_str_3]            NVARCHAR (MAX) NULL,
    [add_str_4]            NVARCHAR (MAX) NULL,
    [add_str_5]            NVARCHAR (MAX) NULL,
    [add_str_6]            NVARCHAR (MAX) NULL,
    [add_str_7]            NVARCHAR (MAX) NULL,
    [add_str_8]            NVARCHAR (MAX) NULL,
    [add_str_9]            NVARCHAR (MAX) NULL,
    [add_str_10]           NVARCHAR (MAX) NULL,
    [add_date_1]           DATETIME       NULL,
    [add_date_2]           DATETIME       NULL,
    [add_date_3]           DATETIME       NULL,
    [add_date_4]           DATETIME       NULL,
    [add_date_5]           DATETIME       NULL,
    [add_date_6]           DATETIME       NULL,
    [add_date_7]           DATETIME       NULL,
    [add_date_8]           DATETIME       NULL,
    [add_date_9]           DATETIME       NULL,
    [add_date_10]          DATETIME       NULL,
    [add_float_1]          FLOAT (53)     NULL,
    [add_float_2]          FLOAT (53)     NULL,
    [add_float_3]          FLOAT (53)     NULL,
    [add_float_4]          FLOAT (53)     NULL,
    [add_float_5]          FLOAT (53)     NULL,
    [add_float_6]          FLOAT (53)     NULL,
    [add_float_7]          FLOAT (53)     NULL,
    [add_float_8]          FLOAT (53)     NULL,
    [add_float_9]          FLOAT (53)     NULL,
    [add_float_10]         FLOAT (53)     NULL,
    [add_bool_1]           BIT            NULL,
    [add_bool_2]           BIT            NULL,
    [add_bool_3]           BIT            NULL,
    [add_bool_4]           BIT            NULL,
    [add_bool_5]           BIT            NULL,
    [add_bool_6]           BIT            NULL,
    [add_bool_7]           BIT            NULL,
    [add_bool_8]           BIT            NULL,
    [add_bool_9]           BIT            NULL,
    [add_bool_10]          BIT            NULL,
    [state_name]           NVARCHAR (255) NULL,
    [project_name]         NVARCHAR (255) NULL,
    [reason_name]          NVARCHAR (255) NULL,
    [category_name]        NVARCHAR (255) NULL,
    [category_hierarchy]   NVARCHAR (255) NULL,
    [service_name]         NVARCHAR (255) NULL,
    [impact_name]          NVARCHAR (255) NULL,
    [urgency_name]         NVARCHAR (255) NULL,
    [priority_name]        NVARCHAR (255) NULL,
    [registry_type_name]   NVARCHAR (255) NULL,
    [group_name]           NVARCHAR (255) NULL,
    [responsible_name]     NVARCHAR (255) NULL,
    [customer_name]        NVARCHAR (255) NULL,
    [author_name]          NVARCHAR (255) NULL,
    [company_name]         NVARCHAR (255) NULL,
    [ci_name]              NVARCHAR (255) NULL,
    [ci_serial]            NVARCHAR (255) NULL,
    [ci_asset_tag]         NVARCHAR (255) NULL,
    [modifier_name]        NVARCHAR (255) NULL,
    [receptor_name]        NVARCHAR (255) NULL,
    [model_name]           NVARCHAR (255) NULL,
    [sla_name]             NVARCHAR (255) NULL,
    [uc_name]              NVARCHAR (255) NULL,
    [ola_name]             NVARCHAR (255) NULL,
    [provider_name]        NVARCHAR (255) NULL,
    [unit_name]            NVARCHAR (255) NULL,
    [type_name]            NVARCHAR (255) NULL,
    [calendar_sla_name]    NVARCHAR (255) NULL,
    [calendar_uc_name]     NVARCHAR (255) NULL,
    [calendar_ola_name]    NVARCHAR (255) NULL,
    [status_color]         NVARCHAR (255) NULL,
    [estimated_date]       DATETIME       NULL,
    [real_date]            DATETIME       NULL,
    [estimated_time]       FLOAT (53)     NULL,
    [current_progress]     FLOAT (53)     NULL,
    [current_time]         FLOAT (53)     NULL,
    [note]                 NVARCHAR (MAX) NULL,
    [state_final]          INT            NULL,
    [old_category_id]      INT            NULL,
    [old_service_id]       INT            NULL,
    [old_state_id]         INT            NULL,
    [old_impact_id]        INT            NULL,
    [old_urgency_id]       INT            NULL,
    [old_priority_id]      INT            NULL,
    [old_registry_type_id] INT            NULL,
    [old_sla_id]           INT            NULL,
    [old_uc_id]            INT            NULL,
    [old_ola_id]           INT            NULL,
    [location_id]          INT            NULL,
    [contract_id]          INT            NULL,
    CONSTRAINT [PK_ASDK_ITEM_IMP] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_LOAD]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_LOAD] (
    [id]         INT IDENTITY (1, 1) NOT NULL,
    [project_id] INT NULL,
    [type_id]    INT NULL,
    [group_id]   INT NULL,
    [user_id]    INT NULL,
    [load]       INT NULL,
    [profile_id] INT NULL,
    CONSTRAINT [PK_ASDK_ITEM_LOAD] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_RELATION]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_RELATION] (
    [source_id]        INT      NOT NULL,
    [target_id]        INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASDK_ITEM_RELATION] PRIMARY KEY CLUSTERED ([source_id] ASC, [target_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_RELATION_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_RELATION_CLOSED] (
    [source_id]        INT      NOT NULL,
    [target_id]        INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASDK_ITEM_RELATION_CLOSED] PRIMARY KEY CLUSTERED ([source_id] ASC, [target_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_RELATION_DW]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_RELATION_DW] (
    [source_id]            INT            NOT NULL,
    [target_id]            INT            NOT NULL,
    [relation_type_id]     INT            NOT NULL,
    [author_id]            INT            NULL,
    [created_date]         DATETIME       NOT NULL,
    [relation_source_name] NVARCHAR (255) NULL,
    [relation_target_name] NVARCHAR (255) NULL,
    [author_name]          NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASDK_ITEM_RELATION_DW] PRIMARY KEY CLUSTERED ([source_id] ASC, [target_id] ASC, [relation_type_id] ASC, [created_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_STAGE]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_STAGE] (
    [item_id]                   INT      NOT NULL,
    [construction_initial_date] DATETIME NULL,
    [construction_final_date]   DATETIME NULL,
    [construction_duration]     INT      NULL,
    [test_initial_date]         DATETIME NULL,
    [test_final_date]           DATETIME NULL,
    [test_duration]             INT      NULL,
    [instalation_initial_date]  DATETIME NULL,
    [instalation_final_date]    DATETIME NULL,
    [instalation_duration]      INT      NULL,
    [pso_initial_date]          DATETIME NULL,
    [pso_final_date]            DATETIME NULL,
    [pso_duration]              INT      NULL,
    [created_date]              DATETIME NOT NULL
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_STAGE_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_STAGE_CLOSED] (
    [item_id]                   INT      NOT NULL,
    [construction_initial_date] DATETIME NULL,
    [construction_final_date]   DATETIME NULL,
    [construction_duration]     INT      NULL,
    [test_initial_date]         DATETIME NULL,
    [test_final_date]           DATETIME NULL,
    [test_duration]             INT      NULL,
    [instalation_initial_date]  DATETIME NULL,
    [instalation_final_date]    DATETIME NULL,
    [instalation_duration]      INT      NULL,
    [pso_initial_date]          DATETIME NULL,
    [pso_final_date]            DATETIME NULL,
    [pso_duration]              INT      NULL,
    [created_date]              DATETIME NOT NULL
);


GO
PRINT N'Creating Table [dbo].[ASDK_ITEM_STORAGE]...';


GO
CREATE TABLE [dbo].[ASDK_ITEM_STORAGE] (
    [partition_key]     VARCHAR (128) NOT NULL,
    [row_key]           VARCHAR (36)  NOT NULL,
    [item_id]           INT           NULL,
    [json_value]        VARCHAR (MAX) NULL,
    [error_value]       VARCHAR (MAX) NULL,
    [status]            INT           NOT NULL,
    [modification_date] DATETIME      NULL,
    [creation_date]     DATETIME      NOT NULL,
    [tenant_id]         INT           NOT NULL,
    [user_id]           INT           NOT NULL,
    CONSTRAINT [UX01_ASDK_ITEM_STORAGE] UNIQUE NONCLUSTERED ([partition_key] ASC, [row_key] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_LDAP_SERVICE]...';


GO
CREATE TABLE [dbo].[ASDK_LDAP_SERVICE] (
    [ldap_id]    INT NOT NULL,
    [project_id] INT NOT NULL,
    [service_id] INT NOT NULL,
    [active]     BIT NOT NULL,
    CONSTRAINT [UX01_ASDK_LDAP_SERVICE] UNIQUE NONCLUSTERED ([ldap_id] ASC, [project_id] ASC, [service_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_MAIL_CONFIG]...';


GO
CREATE TABLE [dbo].[ASDK_MAIL_CONFIG] (
    [cnf_id]           INT            IDENTITY (1, 1) NOT NULL,
    [cnf_name]         NVARCHAR (80)  NULL,
    [cnf_type_email]   INT            NULL,
    [cnf_server]       NVARCHAR (60)  NULL,
    [cnf_port]         INT            NULL,
    [cnf_user]         NVARCHAR (80)  NULL,
    [cnf_pass]         NVARCHAR (255) NULL,
    [cnf_folder]       NVARCHAR (50)  NULL,
    [cnf_script]       INT            NULL,
    [cnf_SSL]          INT            NULL,
    [cnf_delete_mails] BIT            NOT NULL,
    [cnf_schedule_id]  INT            NULL,
    [cnf_state]        BIT            NOT NULL,
    [last_execution]   DATETIME       NULL,
    [setting_oauth]    NVARCHAR (MAX) NULL,
    [cnf_save_pdf]     BIT            NULL,
    CONSTRAINT [PK_ASDK_MAIL_CONFIG] PRIMARY KEY CLUSTERED ([cnf_id] ASC),
    CONSTRAINT [UX_ASDK_MAIL_CONFIG] UNIQUE NONCLUSTERED ([cnf_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_MAIL_FILTER]...';


GO
CREATE TABLE [dbo].[ASDK_MAIL_FILTER] (
    [id]               INT           IDENTITY (1, 1) NOT NULL,
    [cnf_id]           INT           NOT NULL,
    [cnf_filterString] NVARCHAR (50) NOT NULL,
    [cnf_filter_type]  INT           NULL,
    CONSTRAINT [PK_ASDK_MAIL_FILTER] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_MAIL_LOG]...';


GO
CREATE TABLE [dbo].[ASDK_MAIL_LOG] (
    [plap_id]          INT             IDENTITY (1, 1) NOT NULL,
    [plap_id_asdk]     INT             NOT NULL,
    [plap_msg_id]      VARCHAR (500)   NOT NULL,
    [plap_msg_subject] NVARCHAR (1000) NULL,
    [plap_createdate]  DATETIME        NULL,
    [plap_arrivedate]  DATETIME        NULL,
    [type]             INT             NULL,
    [item_type]        INT             NULL,
    [unique_id]        VARCHAR (255)   NULL,
    [config_id]        INT             NULL,
    CONSTRAINT [PK_ASDK_MAIL_LOG] PRIMARY KEY CLUSTERED ([plap_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_MAIL_LOG].[IX01_ASDK_MAIL_LOG]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_MAIL_LOG]
    ON [dbo].[ASDK_MAIL_LOG]([config_id] ASC, [unique_id] ASC)
    INCLUDE([item_type], [plap_arrivedate], [plap_createdate], [plap_id_asdk], [plap_msg_id], [plap_msg_subject], [type]);


GO
PRINT N'Creating Index [dbo].[ASDK_MAIL_LOG].[IX02_ASDK_MAIL_LOG]...';


GO
CREATE UNIQUE NONCLUSTERED INDEX [IX02_ASDK_MAIL_LOG]
    ON [dbo].[ASDK_MAIL_LOG]([plap_msg_id] ASC, [config_id] ASC)
    INCLUDE([plap_id], [plap_createdate], [plap_arrivedate], [plap_id_asdk], [unique_id], [plap_msg_subject], [type], [item_type]) WITH (FILLFACTOR = 80);


GO
PRINT N'Creating Table [dbo].[ASDK_MAIL_TEMPLATE]...';


GO
CREATE TABLE [dbo].[ASDK_MAIL_TEMPLATE] (
    [plte_id]                    INT            IDENTITY (1, 1) NOT NULL,
    [plte_name]                  NVARCHAR (100) NOT NULL,
    [plte_created]               DATETIME       NULL,
    [author_id]                  INT            NULL,
    [status_id]                  INT            NULL,
    [type_id]                    INT            NOT NULL,
    [project_id]                 INT            NOT NULL,
    [category_id]                INT            NULL,
    [customer_id]                INT            NULL,
    [service_id]                 INT            NULL,
    [description]                NVARCHAR (MAX) NULL,
    [urgency_id]                 INT            NULL,
    [registry_type_id]           INT            NULL,
    [enable_auto_categorization] BIT            NULL,
    [delimiter_signature]        NVARCHAR (MAX) NULL,
    [effective_percentage]       INT            NULL,
    [extract_additional_field]   BIT            NULL,
    [extract_additional_list]    BIT            NULL,
    CONSTRAINT [PK_ASDK_MAIL_TEMPLATE] PRIMARY KEY CLUSTERED ([plte_id] ASC),
    CONSTRAINT [UX_ASDK_MAIL_TEMPLATE] UNIQUE NONCLUSTERED ([project_id] ASC, [type_id] ASC, [plte_name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_MATRIX_PRIORITY]...';


GO
CREATE TABLE [dbo].[ASDK_MATRIX_PRIORITY] (
    [mapr_impa_id] INT NOT NULL,
    [mapr_urge_id] INT NOT NULL,
    [mapr_prio_id] INT NOT NULL,
    [project_id]   INT NULL,
    [type_id]      INT NULL,
    CONSTRAINT [UX_ASDK_MATRIX_PRIORITY] UNIQUE NONCLUSTERED ([mapr_impa_id] ASC, [mapr_urge_id] ASC, [project_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_METRICS]...';


GO
CREATE TABLE [dbo].[ASDK_METRICS] (
    [METRIC_ID]   INT             IDENTITY (1, 1) NOT NULL,
    [NAME]        NVARCHAR (50)   NULL,
    [DESCRIPTION] NVARCHAR (1000) NULL,
    [LAST_DATE]   DATETIME        NULL,
    [LIMIT_TYPE]  INT             NULL,
    [schedule_id] INT             NULL,
    CONSTRAINT [PK_ASDK_METRICS] PRIMARY KEY CLUSTERED ([METRIC_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_METRICS_DATA]...';


GO
CREATE TABLE [dbo].[ASDK_METRICS_DATA] (
    [METRIC_ID]  INT          NOT NULL,
    [SERVICE_ID] INT          NOT NULL,
    [REG_DATE]   DATETIME     NOT NULL,
    [REG_VALUE]  DECIMAL (18) NULL,
    CONSTRAINT [PK_ASDK_METRICS_DATA] PRIMARY KEY CLUSTERED ([METRIC_ID] ASC, [SERVICE_ID] ASC, [REG_DATE] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_MODEL_COST_PRICE]...';


GO
CREATE TABLE [dbo].[ASDK_MODEL_COST_PRICE] (
    [mod_id]      INT            IDENTITY (1, 1) NOT NULL,
    [mod_name]    NVARCHAR (50)  NOT NULL,
    [description] NVARCHAR (250) NULL,
    [proyect_id]  INT            NULL,
    [guid]        NVARCHAR (36)  NULL,
    CONSTRAINT [PK_ASDK_MODEL_COST_PRICE] PRIMARY KEY CLUSTERED ([mod_id] ASC),
    CONSTRAINT [UX_ASDK_MODEL_COST_PRICE] UNIQUE NONCLUSTERED ([proyect_id] ASC, [mod_name] ASC),
    CONSTRAINT [UX02_ASDK_MODEL_COST_PRICE] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_MODEL_VARI]...';


GO
CREATE TABLE [dbo].[ASDK_MODEL_VARI] (
    [mod_identity]     INT            IDENTITY (1, 1) NOT NULL,
    [mod_id]           INT            NOT NULL,
    [mod_type_unid]    INT            NOT NULL,
    [mod_vari]         INT            NOT NULL,
    [mod_id_type]      INT            NOT NULL,
    [mod_value]        NUMERIC (18)   NULL,
    [mod_description]  NVARCHAR (250) NULL,
    [mod_surcharge_id] INT            NULL,
    [item_type]        INT            NULL,
    CONSTRAINT [PK_ASDK_MODEL_VARI] PRIMARY KEY CLUSTERED ([mod_identity] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_PRODUCT]...';


GO
CREATE TABLE [dbo].[ASDK_PRODUCT] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (250) NOT NULL,
    [description] NVARCHAR (500) NOT NULL,
    [is_active]   BIT            NOT NULL,
    CONSTRAINT [PK_ASDK_PRODUCT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_PRODUCT_RESOURCE]...';


GO
CREATE TABLE [dbo].[ASDK_PRODUCT_RESOURCE] (
    [resource_id] INT NOT NULL,
    [product_id]  INT NOT NULL,
    CONSTRAINT [PK_ASDK_PRODUCT_RESOURCE] PRIMARY KEY CLUSTERED ([resource_id] ASC, [product_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_PRODUCT_SERVICE]...';


GO
CREATE TABLE [dbo].[ASDK_PRODUCT_SERVICE] (
    [service_id] INT NOT NULL,
    [product_id] INT NOT NULL,
    CONSTRAINT [PK_ASDK_PRODUCT_SERVICE] PRIMARY KEY CLUSTERED ([service_id] ASC, [product_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_PROJECT_SERVICE]...';


GO
CREATE TABLE [dbo].[ASDK_PROJECT_SERVICE] (
    [project_id] INT NOT NULL,
    [service_id] INT NOT NULL,
    CONSTRAINT [PK_ASDK_PROJECT_SERVICE] PRIMARY KEY CLUSTERED ([project_id] ASC, [service_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_RESOURCE]...';


GO
CREATE TABLE [dbo].[ASDK_RESOURCE] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [name]          NVARCHAR (250) NOT NULL,
    [description]   NVARCHAR (500) NOT NULL,
    [type_resource] INT            NOT NULL,
    CONSTRAINT [PK_ASDK_RESOURCE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SCHEDULED_ACTION]...';


GO
CREATE TABLE [dbo].[ASDK_SCHEDULED_ACTION] (
    [id]           INT           IDENTITY (1, 1) NOT NULL,
    [name]         VARCHAR (255) NOT NULL,
    [project_id]   INT           NOT NULL,
    [is_active]    BIT           NOT NULL,
    [type]         INT           NOT NULL,
    [template_id]  INT           NOT NULL,
    [number_items] INT           NOT NULL,
    [schedule_id]  INT           NOT NULL,
    CONSTRAINT [PK_ASDK_SCHEDULED_ACTION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SCHEDULED_STATUS]...';


GO
CREATE TABLE [dbo].[ASDK_SCHEDULED_STATUS] (
    [item_id]        INT      NOT NULL,
    [state_id]       INT      NOT NULL,
    [scheduled_date] DATETIME NOT NULL,
    CONSTRAINT [PK_ASDK_SCHEDULED_STATUS] PRIMARY KEY CLUSTERED ([item_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE] (
    [id]                INT             IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (255)  NULL,
    [description]       NVARCHAR (4000) NULL,
    [responsible_id]    INT             NULL,
    [impact_id]         INT             NULL,
    [group_id]          INT             NULL,
    [project_id]        INT             NULL,
    [sla_id]            INT             NULL,
    [uc_id]             INT             NULL,
    [ola_id]            INT             NULL,
    [state_id]          INT             NULL,
    [author_id]         INT             NULL,
    [type_id]           INT             NULL,
    [opened_date]       DATETIME        NULL,
    [reason_id]         INT             NULL,
    [closed_date]       DATETIME        NULL,
    [previous_state_id] INT             NULL,
    [modified_date]     DATETIME        NULL,
    [modifier_id]       INT             NULL,
    [cost_center_id]    INT             NULL,
    [income_center_id]  INT             NULL,
    [image_name]        NVARCHAR (MAX)  NULL,
    [image_id]          INT             NULL,
    [priority_sla]      NVARCHAR (40)   NULL,
    [is_delete]         BIT             NOT NULL,
    [guid]              NVARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASDK_SERVICE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASDK_SERVICE] UNIQUE NONCLUSTERED ([project_id] ASC, [name] ASC),
    CONSTRAINT [UX02_ASDK_SERVICE] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_ACCOUNTING]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_ACCOUNTING] (
    [id]           INT           IDENTITY (1, 1) NOT NULL,
    [item_type_id] INT           NOT NULL,
    [service_id]   INT           NOT NULL,
    [count]        INT           NULL,
    [price]        FLOAT (53)    NULL,
    [cost]         FLOAT (53)    NULL,
    [effort]       FLOAT (53)    NULL,
    [guid]         NVARCHAR (36) NOT NULL,
    CONSTRAINT [PK_ASDK_SERVICE_ACCOUNTING] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASDK_SERVICE_ACCOUNTING] UNIQUE NONCLUSTERED ([item_type_id] ASC, [service_id] ASC),
    CONSTRAINT [UX02_ASDK_SERVICE_ACCOUNTING] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_ACCOUNTING_DETAIL]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_ACCOUNTING_DETAIL] (
    [id]           INT        IDENTITY (1, 1) NOT NULL,
    [value_date]   DATETIME   NOT NULL,
    [item_type_id] INT        NOT NULL,
    [service_id]   INT        NOT NULL,
    [price]        FLOAT (53) NULL,
    [cost]         FLOAT (53) NULL,
    [effort]       FLOAT (53) NULL,
    CONSTRAINT [PK_ASDK_SERVICE_ACCOUNTING_DETAIL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_BAG]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_BAG] (
    [id]           INT           IDENTITY (1, 1) NOT NULL,
    [start_date]   DATETIME      NULL,
    [end_date]     DATETIME      NULL,
    [type_id]      INT           NULL,
    [service_id]   INT           NOT NULL,
    [value]        FLOAT (53)    NULL,
    [item_type_id] INT           NOT NULL,
    [state_id]     INT           NULL,
    [remaining]    FLOAT (53)    NULL,
    [guid]         NVARCHAR (36) NOT NULL,
    CONSTRAINT [PK_ASDK_SERVICE_BAG] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASDK_SERVICE_BAG] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_BPROCESS]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_BPROCESS] (
    [service_id]       INT      NOT NULL,
    [bprocess_id]      INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASDK_SERVICE_BPROCESS] PRIMARY KEY CLUSTERED ([service_id] ASC, [bprocess_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_BPROCESS_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_BPROCESS_CLOSED] (
    [service_id]       INT      NOT NULL,
    [bprocess_id]      INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASDK_SERVICE_BPROCESS_CLOSED] PRIMARY KEY CLUSTERED ([service_id] ASC, [bprocess_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_CASH]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_CASH] (
    [service_id] INT             NOT NULL,
    [cash_id]    INT             NOT NULL,
    [value]      NUMERIC (18, 3) NULL
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_CONTRACT]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_CONTRACT] (
    [serv_ident_service] INT NOT NULL,
    [serv_ident_contrac] INT NOT NULL,
    CONSTRAINT [PK_SERVICE_CONTRACT] PRIMARY KEY CLUSTERED ([serv_ident_service] ASC, [serv_ident_contrac] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_CONTRACT_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_CONTRACT_CLOSED] (
    [serv_ident_service] INT NOT NULL,
    [serv_ident_contrac] INT NOT NULL,
    CONSTRAINT [PK_SERVICE_CONTRACT_CLOSED] PRIMARY KEY CLUSTERED ([serv_ident_service] ASC, [serv_ident_contrac] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_DW]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_DW] (
    [id]                INT             NOT NULL,
    [name]              NVARCHAR (255)  NULL,
    [description]       NVARCHAR (4000) NULL,
    [responsible_id]    INT             NULL,
    [impact_id]         INT             NULL,
    [group_id]          INT             NULL,
    [project_id]        INT             NULL,
    [sla_id]            INT             NULL,
    [uc_id]             INT             NULL,
    [ola_id]            INT             NULL,
    [state_id]          INT             NULL,
    [author_id]         INT             NULL,
    [type_id]           INT             NULL,
    [opened_date]       DATETIME        NULL,
    [reason_id]         INT             NULL,
    [closed_date]       DATETIME        NULL,
    [previous_state_id] INT             NULL,
    [modified_date]     DATETIME        NOT NULL,
    [modifier_id]       INT             NULL,
    [cost_center_id]    INT             NULL,
    [income_center_id]  INT             NULL,
    [state_name]        NVARCHAR (255)  NULL,
    [impact_name]       NVARCHAR (255)  NULL,
    [responsible_name]  NVARCHAR (255)  NULL,
    [reason_name]       NVARCHAR (255)  NULL,
    [state_color]       NVARCHAR (255)  NULL,
    [group_name]        NVARCHAR (255)  NULL,
    [sla_name]          NVARCHAR (255)  NULL,
    [uc_name]           NVARCHAR (255)  NULL,
    [ola_name]          NVARCHAR (255)  NULL,
    [stage_id]          INT             NULL,
    [author_name]       NVARCHAR (255)  NULL,
    [modifier_name]     NVARCHAR (255)  NULL,
    [project_name]      NVARCHAR (255)  NULL,
    [type_name]         NVARCHAR (255)  NULL,
    [stage_name]        NVARCHAR (255)  NULL,
    [state_final]       INT             NULL,
    [note]              NVARCHAR (MAX)  NULL,
    [image_name]        NVARCHAR (MAX)  NULL,
    [image_id]          INT             NULL,
    [priority_sla]      NVARCHAR (40)   NULL,
    [is_delete]         BIT             NOT NULL,
    [guid]              NVARCHAR (36)   NULL,
    CONSTRAINT [PK_ASDK_SERVICE_DW] PRIMARY KEY CLUSTERED ([id] ASC, [modified_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_DW_LAST]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_DW_LAST] (
    [id]                INT             NOT NULL,
    [name]              NVARCHAR (255)  NULL,
    [description]       NVARCHAR (4000) NULL,
    [responsible_id]    INT             NULL,
    [impact_id]         INT             NULL,
    [group_id]          INT             NULL,
    [project_id]        INT             NULL,
    [sla_id]            INT             NULL,
    [uc_id]             INT             NULL,
    [ola_id]            INT             NULL,
    [state_id]          INT             NULL,
    [author_id]         INT             NULL,
    [type_id]           INT             NULL,
    [opened_date]       DATETIME        NULL,
    [reason_id]         INT             NULL,
    [closed_date]       DATETIME        NULL,
    [previous_state_id] INT             NULL,
    [modified_date]     DATETIME        NOT NULL,
    [modifier_id]       INT             NULL,
    [cost_center_id]    INT             NULL,
    [income_center_id]  INT             NULL,
    [state_name]        NVARCHAR (255)  NULL,
    [impact_name]       NVARCHAR (255)  NULL,
    [responsible_name]  NVARCHAR (255)  NULL,
    [reason_name]       NVARCHAR (255)  NULL,
    [state_color]       NVARCHAR (255)  NULL,
    [group_name]        NVARCHAR (255)  NULL,
    [sla_name]          NVARCHAR (255)  NULL,
    [uc_name]           NVARCHAR (255)  NULL,
    [ola_name]          NVARCHAR (255)  NULL,
    [stage_id]          INT             NULL,
    [author_name]       NVARCHAR (255)  NULL,
    [modifier_name]     NVARCHAR (255)  NULL,
    [project_name]      NVARCHAR (255)  NULL,
    [type_name]         NVARCHAR (255)  NULL,
    [stage_name]        NVARCHAR (255)  NULL,
    [state_final]       INT             NULL,
    [note]              NVARCHAR (MAX)  NULL,
    [image_name]        NVARCHAR (MAX)  NULL,
    [image_id]          INT             NULL,
    [priority_sla]      NVARCHAR (40)   NULL,
    [is_delete]         BIT             NOT NULL,
    [guid]              NVARCHAR (36)   NULL,
    CONSTRAINT [PK_ASDK_SERVICE_DW_LAST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_GROUP]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_GROUP] (
    [FL_INT_SERVICE_ID] INT NOT NULL,
    [GRP_ID]            INT NOT NULL,
    [profile_id]        INT NOT NULL,
    CONSTRAINT [PK_ASDK_SERVICE_GROUP] PRIMARY KEY CLUSTERED ([FL_INT_SERVICE_ID] ASC, [GRP_ID] ASC, [profile_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_SERVICE_GROUP].[ind01_asdk_service_group]...';


GO
CREATE NONCLUSTERED INDEX [ind01_asdk_service_group]
    ON [dbo].[ASDK_SERVICE_GROUP]([FL_INT_SERVICE_ID] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_SERVICE_GROUP].[ind02_asdk_service_group]...';


GO
CREATE NONCLUSTERED INDEX [ind02_asdk_service_group]
    ON [dbo].[ASDK_SERVICE_GROUP]([GRP_ID] ASC);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_GROUP_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_GROUP_CLOSED] (
    [FL_INT_SERVICE_ID] INT NOT NULL,
    [GRP_ID]            INT NOT NULL,
    [profile_id]        INT NOT NULL,
    CONSTRAINT [PK_ASDK_SERVICE_GROUP_CLOSED] PRIMARY KEY CLUSTERED ([FL_INT_SERVICE_ID] ASC, [GRP_ID] ASC, [profile_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_SELF]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_SELF] (
    [parent_id]        INT      NOT NULL,
    [child_id]         INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASDK_SERVICE_SELF] PRIMARY KEY CLUSTERED ([parent_id] ASC, [child_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_SELF_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_SELF_CLOSED] (
    [parent_id]        INT      NOT NULL,
    [child_id]         INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASDK_SERVICE_SELF_CLOSED] PRIMARY KEY CLUSTERED ([parent_id] ASC, [child_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_SELF_DW]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_SELF_DW] (
    [parent_id]            INT            NOT NULL,
    [child_id]             INT            NOT NULL,
    [relation_type_id]     INT            NOT NULL,
    [author_id]            INT            NULL,
    [created_date]         DATETIME       NOT NULL,
    [relation_source_name] NVARCHAR (255) NULL,
    [relation_target_name] NVARCHAR (255) NULL,
    [author_name]          NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASDK_SERVICE_SELF_DW] PRIMARY KEY CLUSTERED ([parent_id] ASC, [child_id] ASC, [relation_type_id] ASC, [created_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_STAGE]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_STAGE] (
    [service_id]     INT      NOT NULL,
    [stage_id]       INT      NOT NULL,
    [estimated_date] DATETIME NULL,
    [real_date]      DATETIME NULL,
    CONSTRAINT [PK_ASDK_SERVICE_STAGE] PRIMARY KEY CLUSTERED ([service_id] ASC, [stage_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_STAGE_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_STAGE_CLOSED] (
    [service_id]     INT      NOT NULL,
    [stage_id]       INT      NOT NULL,
    [estimated_date] DATETIME NULL,
    [real_date]      DATETIME NULL,
    CONSTRAINT [PK_ASDK_SERVICE_STAGE_CLOSED] PRIMARY KEY CLUSTERED ([service_id] ASC, [stage_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_TYPE]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_TYPE] (
    [service_id]    INT           NOT NULL,
    [type_id]       INT           NOT NULL,
    [model_id]      INT           NULL,
    [cost_model_id] INT           NULL,
    [category_id]   INT           NULL,
    [script_id]     INT           NULL,
    [guid]          NVARCHAR (36) NOT NULL,
    CONSTRAINT [PK_ASDK_SERVICE_TYPE] PRIMARY KEY CLUSTERED ([service_id] ASC, [type_id] ASC),
    CONSTRAINT [UX01_ASDK_SERVICE_TYPE] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICE_TYPE_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICE_TYPE_CLOSED] (
    [service_id]    INT NOT NULL,
    [type_id]       INT NOT NULL,
    [model_id]      INT NULL,
    [cost_model_id] INT NULL,
    [category_id]   INT NULL,
    [script_id]     INT NULL,
    CONSTRAINT [PK_ASDK_SERVICE_TYPE_CLOSED] PRIMARY KEY CLUSTERED ([service_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SERVICEPROFILE_SPECIALIST]...';


GO
CREATE TABLE [dbo].[ASDK_SERVICEPROFILE_SPECIALIST] (
    [id]            INT IDENTITY (1, 1) NOT NULL,
    [service_id]    INT NOT NULL,
    [profile_id]    INT NOT NULL,
    [specialist_id] INT NOT NULL,
    CONSTRAINT [PK_ASDK_SERVICEPROFILE_SPE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SHOPPING_CART]...';


GO
CREATE TABLE [dbo].[ASDK_SHOPPING_CART] (
    [id]                INT           IDENTITY (1, 1) NOT NULL,
    [json_value]        VARCHAR (MAX) NULL,
    [json_error]        VARCHAR (MAX) NULL,
    [status]            INT           NOT NULL,
    [creation_date]     DATETIME      NOT NULL,
    [modification_date] DATETIME      NULL,
    [user_id]           INT           NOT NULL,
    [item_id]           INT           NULL,
    [subject]           VARCHAR (MAX) NULL,
    [project_id]        INT           NULL,
    [service_id]        INT           NULL,
    [category_id]       INT           NULL,
    [is_notified]       BIT           NOT NULL,
    [guid]              VARCHAR (36)  NOT NULL,
    CONSTRAINT [PK_ASDK_SHOPPING_CART] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA]...';


GO
CREATE TABLE [dbo].[ASDK_SLA] (
    [SLA_ID]                  INT             IDENTITY (1, 1) NOT NULL,
    [NAME]                    NVARCHAR (255)  NOT NULL,
    [DESCRIPCION]             NVARCHAR (4000) NULL,
    [DATE_START]              DATETIME        NULL,
    [DATE_FINISH]             DATETIME        NULL,
    [FL_INT_SLASTATE]         INT             NULL,
    [sla_date_review]         DATETIME        NULL,
    [FL_INT_FINISH_HAS_ALARM] BIT             NOT NULL,
    [FL_INT_FINISH_LIMITDAYS] INT             NULL,
    [FL_INT_REVIEW_HAS_ALARM] BIT             NOT NULL,
    [FL_INT_REVIEW_LIMITDAYS] INT             NULL,
    [contract_type]           INT             NULL,
    [proj_id]                 INT             NULL,
    [reason_id]               INT             NULL,
    [finish_template_id]      INT             NULL,
    [review_template_id]      INT             NULL,
    [sla_date_open]           DATETIME        NULL,
    [sla_date_close]          DATETIME        NULL,
    [previous_status_id]      INT             NULL,
    [sla_modified_date]       DATETIME        NULL,
    [sla_modifier_id]         INT             NULL,
    [calendar_id]             INT             NULL,
    [finish_schedule_flag]    BIT             NOT NULL,
    [review_schedule_flag]    BIT             NOT NULL,
    [is_delete]               BIT             NOT NULL,
    [guid]                    NVARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASDK_SLA] PRIMARY KEY CLUSTERED ([SLA_ID] ASC),
    CONSTRAINT [UX_ASDK_SLA] UNIQUE NONCLUSTERED ([proj_id] ASC, [contract_type] ASC, [NAME] ASC),
    CONSTRAINT [UX02_ASDK_SLA] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_SLA].[ridx10_asdk_sla]...';


GO
CREATE NONCLUSTERED INDEX [ridx10_asdk_sla]
    ON [dbo].[ASDK_SLA]([FL_INT_SLASTATE] ASC, [contract_type] ASC, [DATE_START] ASC, [DATE_FINISH] ASC);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_CATEGORY]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_CATEGORY] (
    [sla_id]      INT NULL,
    [category_id] INT NOT NULL,
    [ser_id]      INT NOT NULL,
    CONSTRAINT [PK_ASDK_SLA_CATEGORY] PRIMARY KEY CLUSTERED ([category_id] ASC, [ser_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_SLA_CATEGORY].[IX01_ASDK_SLA_CATEGORY]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_SLA_CATEGORY]
    ON [dbo].[ASDK_SLA_CATEGORY]([sla_id] ASC, [ser_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_CI]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_CI] (
    [sla_id] INT NULL,
    [ci_id]  INT NOT NULL,
    [ser_id] INT NOT NULL,
    CONSTRAINT [PK_ASDK_SLA_CI] PRIMARY KEY CLUSTERED ([ci_id] ASC, [ser_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_SLA_CI].[IX01_ASDK_SLA_CI]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_SLA_CI]
    ON [dbo].[ASDK_SLA_CI]([sla_id] ASC, [ser_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_CLOSED] (
    [SLA_ID]                  INT             NOT NULL,
    [NAME]                    NVARCHAR (255)  NOT NULL,
    [DESCRIPCION]             NVARCHAR (4000) NULL,
    [DATE_START]              DATETIME        NULL,
    [DATE_FINISH]             DATETIME        NULL,
    [FL_INT_SLASTATE]         INT             NULL,
    [sla_date_review]         DATETIME        NULL,
    [FL_INT_FINISH_HAS_ALARM] BIT             NOT NULL,
    [FL_INT_FINISH_LIMITDAYS] INT             NULL,
    [FL_INT_REVIEW_HAS_ALARM] BIT             NOT NULL,
    [FL_INT_REVIEW_LIMITDAYS] INT             NULL,
    [contract_type]           INT             NULL,
    [proj_id]                 INT             NULL,
    [reason_id]               INT             NULL,
    [finish_template_id]      INT             NULL,
    [review_template_id]      INT             NULL,
    [sla_date_open]           DATETIME        NULL,
    [sla_date_close]          DATETIME        NULL,
    [previous_status_id]      INT             NULL,
    [sla_modified_date]       DATETIME        NULL,
    [sla_modifier_id]         INT             NULL,
    [calendar_id]             INT             NULL,
    [finish_schedule_flag]    BIT             NOT NULL,
    [review_schedule_flag]    BIT             NOT NULL,
    [state_name]              NVARCHAR (255)  NULL,
    [state_color]             NVARCHAR (255)  NULL,
    [reason_name]             NVARCHAR (255)  NULL
);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_CONTRACT]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_CONTRACT] (
    [slco_sla_id]      INT NOT NULL,
    [slco_contract_id] INT NOT NULL,
    CONSTRAINT [PK_ASDK_SLA_CONTRACT] PRIMARY KEY CLUSTERED ([slco_sla_id] ASC, [slco_contract_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_CONTRACT_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_CONTRACT_CLOSED] (
    [slco_sla_id]      INT NOT NULL,
    [slco_contract_id] INT NOT NULL,
    CONSTRAINT [PK_ASDK_SLA_CONTRACT_CLOSED] PRIMARY KEY CLUSTERED ([slco_sla_id] ASC, [slco_contract_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_GROUP]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_GROUP] (
    [sla_id]  INT NULL,
    [grou_id] INT NOT NULL,
    [ser_id]  INT NOT NULL,
    [type_id] INT NOT NULL,
    CONSTRAINT [PK_ASDK_SLA_GROUP] PRIMARY KEY CLUSTERED ([grou_id] ASC, [ser_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_LOCATION]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_LOCATION] (
    [sla_id]      INT NULL,
    [location_id] INT NOT NULL,
    [ser_id]      INT NOT NULL,
    CONSTRAINT [PK_ASDK_SLA_LOCATION] PRIMARY KEY CLUSTERED ([location_id] ASC, [ser_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_SLA_LOCATION].[IX01_ASDK_SLA_LOCATION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_SLA_LOCATION]
    ON [dbo].[ASDK_SLA_LOCATION]([sla_id] ASC, [ser_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_METRICS]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_METRICS] (
    [SLA_ID]    INT             NOT NULL,
    [METRIC_ID] INT             NOT NULL,
    [LIMIT]     DECIMAL (10, 2) NULL,
    CONSTRAINT [PK_ASK_SLA_METRICS] PRIMARY KEY CLUSTERED ([SLA_ID] ASC, [METRIC_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_METRICS_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_METRICS_CLOSED] (
    [SLA_ID]      INT             NOT NULL,
    [METRIC_ID]   INT             NOT NULL,
    [LIMIT]       DECIMAL (10, 2) NULL,
    [SLA_NAME]    NVARCHAR (255)  NULL,
    [METRIC_NAME] NVARCHAR (255)  NULL
);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_TIMES]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_TIMES] (
    [sla_id]     INT            NOT NULL,
    [time_id]    INT            NOT NULL,
    [target]     INT            NULL,
    [compliance] INT            NULL,
    [priority]   NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_ASDK_SLA_TIMES] PRIMARY KEY CLUSTERED ([sla_id] ASC, [time_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_TIMES_CLOSED]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_TIMES_CLOSED] (
    [sla_id]     INT            NOT NULL,
    [time_id]    INT            NOT NULL,
    [target]     INT            NULL,
    [compliance] INT            NULL,
    [priority]   NVARCHAR (MAX) NULL,
    [sla_name]   NVARCHAR (255) NULL,
    [time_name]  NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASDK_SLA_TIMES_CLOSED] PRIMARY KEY CLUSTERED ([sla_id] ASC, [time_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_USER]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_USER] (
    [sla_id]  INT NULL,
    [user_id] INT NOT NULL,
    [ser_id]  INT NOT NULL,
    CONSTRAINT [PK_ASDK_SLA_USER] PRIMARY KEY CLUSTERED ([user_id] ASC, [ser_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_SLA_USER].[IX01_ASDK_SLA_USER]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASDK_SLA_USER]
    ON [dbo].[ASDK_SLA_USER]([sla_id] ASC, [ser_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASDK_SLA_USER].[IX02_ASDK_SLA_USER]...';


GO
CREATE NONCLUSTERED INDEX [IX02_ASDK_SLA_USER]
    ON [dbo].[ASDK_SLA_USER]([ser_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASDK_SLA_VENDOR]...';


GO
CREATE TABLE [dbo].[ASDK_SLA_VENDOR] (
    [sla_id]     INT NULL,
    [company_id] INT NOT NULL,
    [ser_id]     INT NOT NULL,
    [type_id]    INT NOT NULL,
    CONSTRAINT [PK_ASDK_SLA_VENDOR] PRIMARY KEY CLUSTERED ([company_id] ASC, [type_id] ASC, [ser_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_TEMPLATES]...';


GO
CREATE TABLE [dbo].[ASDK_TEMPLATES] (
    [FL_INT_ID]           INT            IDENTITY (1, 1) NOT NULL,
    [FL_STR_NAME]         NVARCHAR (100) NULL,
    [FL_INT_USER_ID]      INT            NULL,
    [FL_INT_TYPE_CASE_ID] INT            NOT NULL,
    [category_id]         INT            NULL,
    [service_id]          INT            NULL,
    [impact_id]           INT            NULL,
    [urgency_id]          INT            NULL,
    [priority_id]         INT            NULL,
    [group_id]            INT            NULL,
    [responsible_id]      INT            NULL,
    [customer_id]         INT            NULL,
    [company_id]          INT            NULL,
    [ci_id]               INT            NULL,
    [project_id]          INT            NULL,
    [subject]             NVARCHAR (256) NULL,
    [description]         NVARCHAR (MAX) NULL,
    [is_scheduled_action] BIT            NOT NULL,
    CONSTRAINT [PK_ASDK_TEMPLATES] PRIMARY KEY CLUSTERED ([FL_INT_ID] ASC),
    CONSTRAINT [UX_ASDK_TEMPLATES] UNIQUE NONCLUSTERED ([project_id] ASC, [FL_STR_NAME] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASDK_VIEW]...';


GO
CREATE TABLE [dbo].[ASDK_VIEW] (
    [fevi_id]             INT             IDENTITY (1, 1) NOT NULL,
    [fevi_project]        INT             NULL,
    [fevi_name]           NVARCHAR (50)   NOT NULL,
    [fevi_description]    NVARCHAR (500)  NULL,
    [fevi_select_clause]  NVARCHAR (3000) NULL,
    [fevi_where_clause]   NVARCHAR (4000) NULL,
    [fevi_appli_category] INT             NULL,
    [model_id]            INT             NULL,
    [conditions]          NVARCHAR (1000) NULL,
    [builtin]             BIT             NULL,
    CONSTRAINT [PK_ASDK_VIEW] PRIMARY KEY CLUSTERED ([fevi_id] ASC),
    CONSTRAINT [UK_ASDK_VIEW] UNIQUE NONCLUSTERED ([fevi_project] ASC, [model_id] ASC, [fevi_name] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_VIEW].[IND_01_ASDK_VIEW]...';


GO
CREATE NONCLUSTERED INDEX [IND_01_ASDK_VIEW]
    ON [dbo].[ASDK_VIEW]([fevi_name] ASC);


GO
PRINT N'Creating Table [dbo].[ASDK_VIEW_SELECT]...';


GO
CREATE TABLE [dbo].[ASDK_VIEW_SELECT] (
    [fese_id]              INT IDENTITY (1, 1) NOT NULL,
    [fese_frontend_view]   INT NOT NULL,
    [fese_column_id]       INT NOT NULL,
    [fese_column_position] INT NOT NULL,
    CONSTRAINT [PK_ASDK_VIEW_SELECT] PRIMARY KEY CLUSTERED ([fese_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASDK_VIEW_SELECT].[IND_01_ASDK_VIEW_SELECT]...';


GO
CREATE NONCLUSTERED INDEX [IND_01_ASDK_VIEW_SELECT]
    ON [dbo].[ASDK_VIEW_SELECT]([fese_frontend_view] ASC);


GO
PRINT N'Creating Table [dbo].[ASDK_VIEW_WHERE]...';


GO
CREATE TABLE [dbo].[ASDK_VIEW_WHERE] (
    [fewh_frontend_view]    INT             NOT NULL,
    [fewh_logical_operator] NVARCHAR (5)    NULL,
    [fewh_column_position]  INT             NULL,
    [fewh_column_id]        INT             NULL,
    [fewh_operator_id]      INT             NULL,
    [fewh_value]            NVARCHAR (255)  NULL,
    [fewh_parsed_expr]      NVARCHAR (1500) NULL,
    [fewh_unparsed_expr]    NVARCHAR (1500) NULL,
    [fewh_id]               INT             IDENTITY (1, 1) NOT NULL,
    [fewh_column_name]      NVARCHAR (255)  NULL,
    [TABLE_ID]              INT             NULL,
    [VALUE_TEXT]            NVARCHAR (4000) NULL,
    [field_type_id]         INT             NULL,
    [field_value]           NVARCHAR (255)  NULL,
    [operator_value]        NVARCHAR (50)   NULL,
    [field2_value]          NVARCHAR (255)  NULL,
    [field2_name]           NVARCHAR (255)  NULL,
    [function_id]           INT             NULL,
    [function_value]        NVARCHAR (255)  NULL,
    [function_name]         NVARCHAR (255)  NULL,
    [value2]                NVARCHAR (255)  NULL,
    [value2_name]           NVARCHAR (255)  NULL,
    [TABLE_ID2]             INT             NULL,
    [FIELD_ID2]             INT             NULL,
    [CONDITION_TYPE]        INT             NULL,
    CONSTRAINT [PK_ASDK_VIEW_WHERE] PRIMARY KEY CLUSTERED ([fewh_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_CONSOLIDATE_CONTROL]...';


GO
CREATE TABLE [dbo].[ASM_CONSOLIDATE_CONTROL] (
    [id]        TINYINT  NOT NULL,
    [last_id]   BIGINT   NULL,
    [last_date] DATETIME NULL,
    CONSTRAINT [PK_ASM_CONSOLIDATE_CONTROL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_CURRENCY]...';


GO
CREATE TABLE [dbo].[ASM_CURRENCY] (
    [id]     INT          IDENTITY (1, 1) NOT NULL,
    [name]   VARCHAR (50) NULL,
    [symbol] VARCHAR (10) NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_DEVICE_USAGE_DAY]...';


GO
CREATE TABLE [dbo].[ASM_DEVICE_USAGE_DAY] (
    [device_id] INT    NOT NULL,
    [date_id]   INT    NOT NULL,
    [duration]  BIGINT NOT NULL,
    CONSTRAINT [PK_ASM_DEVICE_USAGE_DAY] PRIMARY KEY CLUSTERED ([device_id] ASC, [date_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_FILE_GROUP]...';


GO
CREATE TABLE [dbo].[ASM_FILE_GROUP] (
    [id]              INT IDENTITY (1, 1) NOT NULL,
    [file_rule_id]    INT NOT NULL,
    [file_version_id] INT NOT NULL,
    CONSTRAINT [PK_ASM_FILE_GROUP] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_FILE_RULE]...';


GO
CREATE TABLE [dbo].[ASM_FILE_RULE] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    [version]           NVARCHAR (255) NULL,
    [file_product_name] NVARCHAR (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    [software_id]       INT            NOT NULL,
    [update]            DATETIME       NOT NULL,
    CONSTRAINT [PK_ASM_FILE_RULE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_LICENSE_ASSIGNMENT]...';


GO
CREATE TABLE [dbo].[ASM_LICENSE_ASSIGNMENT] (
    [id]          INT IDENTITY (1, 1) NOT NULL,
    [device_id]   INT NOT NULL,
    [software_id] INT NULL,
    [license_id]  INT NOT NULL,
    CONSTRAINT [PK_ASM_LICENSE_ASSIGMENT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASM_LICENSE_ASSIGMENT] UNIQUE NONCLUSTERED ([device_id] ASC, [license_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_LICENSE_PACKAGE]...';


GO
CREATE TABLE [dbo].[ASM_LICENSE_PACKAGE] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [type_id]            INT            NOT NULL,
    [quantity]           INT            NOT NULL,
    [unit_cost]          FLOAT (53)     NULL,
    [creation_date]      DATETIME       NOT NULL,
    [expiration_date]    DATETIME       NULL,
    [activation_date]    DATETIME       NOT NULL,
    [package_name]       VARCHAR (128)  NOT NULL,
    [invoice_id]         INT            NULL,
    [file_id]            INT            NULL,
    [currency_id]        INT            NULL,
    [license_package_id] INT            NOT NULL,
    [description]        VARCHAR (1024) NULL,
    CONSTRAINT [PK_ASM_LICENSE_PACKAGE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_LICENSE_PACKAGE_EVENT]...';


GO
CREATE TABLE [dbo].[ASM_LICENSE_PACKAGE_EVENT] (
    [id]                 INT      IDENTITY (1, 1) NOT NULL,
    [execution]          BIT      NOT NULL,
    [execution_date]     DATETIME NOT NULL,
    [license_package_id] INT      NOT NULL,
    [licensing_event_id] INT      NOT NULL,
    [licensing_id]       INT      NOT NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_LICENSE_SERIAL]...';


GO
CREATE TABLE [dbo].[ASM_LICENSE_SERIAL] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [serial_number] VARCHAR (128) NULL,
    [license_id]    INT           NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_LICENSE_SOFTWARE]...';


GO
CREATE TABLE [dbo].[ASM_LICENSE_SOFTWARE] (
    [id]                 INT IDENTITY (1, 1) NOT NULL,
    [software_id]        INT NOT NULL,
    [license_package_id] INT NOT NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_LICENSE_TYPE]...';


GO
CREATE TABLE [dbo].[ASM_LICENSE_TYPE] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (255) NOT NULL,
    [description] NVARCHAR (300) NULL,
    CONSTRAINT [PK_ASM_LICENSE_TYPE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASM_LICENSE_TYPE] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_LICENSING]...';


GO
CREATE TABLE [dbo].[ASM_LICENSING] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [name]          VARCHAR (255) NULL,
    [user_creator]  INT           NULL,
    [user_modifier] INT           NULL,
    [creation_date] DATETIME      NULL,
    [updating_date] DATETIME      NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_LICENSING_EVENT]...';


GO
CREATE TABLE [dbo].[ASM_LICENSING_EVENT] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [licensing_id] INT            NOT NULL,
    [description]  VARCHAR (1024) NULL,
    [destination]  VARCHAR (1024) NULL,
    [message]      VARCHAR (1024) NULL,
    [severity]     INT            NULL,
    [subject]      VARCHAR (256)  NULL,
    [title]        VARCHAR (256)  NULL,
    [type]         INT            NULL,
    [unit]         INT            NULL,
    [value]        INT            NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_SOFT_USAGE_CONFIG_LIST]...';


GO
CREATE TABLE [dbo].[ASM_SOFT_USAGE_CONFIG_LIST] (
    [id]                       INT IDENTITY (1, 1) NOT NULL,
    [software_version_id]      INT NOT NULL,
    [software_usage_config_id] INT NOT NULL,
    CONSTRAINT [PK_ASM_SOFT_USAGE_CONFIG_LIST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_SOFTWARE_CATEGORY]...';


GO
CREATE TABLE [dbo].[ASM_SOFTWARE_CATEGORY] (
    [software_id] INT NOT NULL,
    [category_id] INT NOT NULL,
    CONSTRAINT [PK_ASM_CATALOG_CATEGORY] PRIMARY KEY CLUSTERED ([software_id] ASC, [category_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_SOFTWARE_FILE_SUGGES]...';


GO
CREATE TABLE [dbo].[ASM_SOFTWARE_FILE_SUGGES] (
    [id]                  INT  IDENTITY (1, 1) NOT NULL,
    [software_version_id] INT  NOT NULL,
    [file_version_id]     INT  NOT NULL,
    [score]               REAL NOT NULL,
    CONSTRAINT [PK_ASM_SOFTWARE_FILE_SUGGES] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_ASM_SOFTWARE_FILE_SUGGES] UNIQUE NONCLUSTERED ([file_version_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_SOFTWARE_GROUP]...';


GO
CREATE TABLE [dbo].[ASM_SOFTWARE_GROUP] (
    [id]               INT IDENTITY (1, 1) NOT NULL,
    [software_id]      INT NOT NULL,
    [software_rule_id] INT NOT NULL,
    CONSTRAINT [PK_ASM_SOFTWARE_GROUP] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_SOFTWARE_RULE]...';


GO
CREATE TABLE [dbo].[ASM_SOFTWARE_RULE] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    [software_id]       INT            NOT NULL,
    [manufacturer_name] NVARCHAR (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    [version]           NVARCHAR (255) NULL,
    [update]            DATETIME       NOT NULL,
    CONSTRAINT [PK_ASM_SOFTWARE_RULE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_SOFTWARE_USAGE]...';


GO
CREATE TABLE [dbo].[ASM_SOFTWARE_USAGE] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [device_id]     INT            NOT NULL,
    [file_id]       INT            NOT NULL,
    [logon_user_id] INT            NOT NULL,
    [title]         NVARCHAR (255) NULL,
    [from_date]     DATETIME       NOT NULL,
    [to_date]       DATETIME       NOT NULL,
    [cpu]           TINYINT        NOT NULL,
    [memory]        BIGINT         NOT NULL,
    CONSTRAINT [PK_ASM_SOFTWARE_USAGE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASM_SOFTWARE_USAGE].[IX01_ASM_SOFTWARE_USAGE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASM_SOFTWARE_USAGE]
    ON [dbo].[ASM_SOFTWARE_USAGE]([device_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASM_SOFTWARE_USAGE].[IX02_ASM_SOFTWARE_USAGE]...';


GO
CREATE NONCLUSTERED INDEX [IX02_ASM_SOFTWARE_USAGE]
    ON [dbo].[ASM_SOFTWARE_USAGE]([from_date] ASC, [device_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASM_SOFTWARE_USAGE_CONFIG]...';


GO
CREATE TABLE [dbo].[ASM_SOFTWARE_USAGE_CONFIG] (
    [id]               INT          IDENTITY (1, 1) NOT NULL,
    [profile_id]       INT          NOT NULL,
    [measurement_days] VARCHAR (50) NOT NULL,
    [start_time]       INT          NOT NULL,
    [end_time]         INT          NOT NULL,
    [list_type]        INT          NOT NULL,
    [idle_time]        INT          NULL,
    [idle_detection]   BIT          NULL,
    CONSTRAINT [PK_ASM_SOFTWARE_USAGE_CONFIG] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_SOFTWARE_USAGE_DAY]...';


GO
CREATE TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY] (
    [date_id]       INT     NOT NULL,
    [device_id]     INT     NOT NULL,
    [file_id]       INT     NOT NULL,
    [logon_user_id] INT     NOT NULL,
    [duration]      BIGINT  NOT NULL,
    [cpu]           TINYINT NOT NULL,
    [memory]        BIGINT  NOT NULL
);


GO
PRINT N'Creating Index [dbo].[ASM_SOFTWARE_USAGE_DAY].[UX01_ASM_SOFTWARE_USAGE_DAY]...';


GO
CREATE UNIQUE CLUSTERED INDEX [UX01_ASM_SOFTWARE_USAGE_DAY]
    ON [dbo].[ASM_SOFTWARE_USAGE_DAY]([date_id] ASC, [device_id] ASC, [file_id] ASC, [logon_user_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASM_SOFTWARE_USAGE_DETAIL]...';


GO
CREATE TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] (
    [device_id]      INT     NOT NULL,
    [file_id]        INT     NOT NULL,
    [logon_user_id]  INT     NOT NULL,
    [date_id]        INT     NOT NULL,
    [window_info_id] INT     NOT NULL,
    [duration]       INT     NOT NULL,
    [cpu]            TINYINT NOT NULL,
    [memory]         BIGINT  NOT NULL
);


GO
PRINT N'Creating Index [dbo].[ASM_SOFTWARE_USAGE_DETAIL].[UX01_ASM_SOFTWARE_USAGE_DETAIL]...';


GO
CREATE UNIQUE CLUSTERED INDEX [UX01_ASM_SOFTWARE_USAGE_DETAIL]
    ON [dbo].[ASM_SOFTWARE_USAGE_DETAIL]([date_id] ASC, [device_id] ASC, [file_id] ASC, [logon_user_id] ASC, [window_info_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASM_SOFTWARE_USAGE_MONTH]...';


GO
CREATE TABLE [dbo].[ASM_SOFTWARE_USAGE_MONTH] (
    [id]            INT     IDENTITY (1, 1) NOT NULL,
    [year]          INT     NOT NULL,
    [month]         INT     NOT NULL,
    [device_id]     INT     NOT NULL,
    [file_id]       INT     NOT NULL,
    [logon_user_id] INT     NOT NULL,
    [duration]      BIGINT  NOT NULL,
    [cpu]           TINYINT NOT NULL,
    [memory]        BIGINT  NOT NULL,
    CONSTRAINT [PK_ASM_SOFTWARE_USAGE_MONTH] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASM_SOFTWARE_USAGE_MONTH] UNIQUE NONCLUSTERED ([year] ASC, [month] ASC, [device_id] ASC, [file_id] ASC, [logon_user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASM_WINDOW_INFORMATION]...';


GO
CREATE TABLE [dbo].[ASM_WINDOW_INFORMATION] (
    [id]         INT            IDENTITY (1, 1) NOT NULL,
    [title]      NVARCHAR (255) NOT NULL,
    [title_hash] VARCHAR (255)  NOT NULL,
    CONSTRAINT [PK_ASM_WINDOW_INFORMATION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_ADVANCED_SHIFTS]...';


GO
CREATE TABLE [dbo].[ASMS_ADVANCED_SHIFTS] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (255) NOT NULL,
    [description]       NVARCHAR (255) NULL,
    [project_id]        INT            NOT NULL,
    [group_id]          INT            NOT NULL,
    [time_zone]         NVARCHAR (256) NOT NULL,
    [active_date]       DATETIME       NULL,
    [inactive_date]     DATETIME       NULL,
    [creation_date]     DATETIME       NULL,
    [modification_date] DATETIME       NULL,
    CONSTRAINT [PK_ASMS_ADVANCED_SHIFTS] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_ADVANCED_SHIFTS] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_AI_GROUP_SUGGESTION]...';


GO
CREATE TABLE [dbo].[ASMS_AI_GROUP_SUGGESTION] (
    [item_id]             INT           NOT NULL,
    [group_original_id]   INT           NULL,
    [groups_suggested_id] INT           NULL,
    [origin_id]           INT           NOT NULL,
    [tracking_id]         NVARCHAR (50) NOT NULL,
    [created_date]        DATETIME      NOT NULL,
    CONSTRAINT [UX01_ASMS_AI_GROUP_SUGGESTION] UNIQUE NONCLUSTERED ([item_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_APPROVALS]...';


GO
CREATE TABLE [dbo].[ASMS_APPROVALS] (
    [id]                       INT            IDENTITY (1, 1) NOT NULL,
    [name]                     NVARCHAR (100) NOT NULL,
    [description]              NVARCHAR (250) NULL,
    [status_id]                INT            NOT NULL,
    [by_ammount]               INT            NULL,
    [by_percent]               INT            NULL,
    [approved_status_id]       INT            NULL,
    [refused_status_id]        INT            NULL,
    [approved_reason_id]       INT            NULL,
    [refused_reason_id]        INT            NULL,
    [more_status_id]           INT            NULL,
    [more_reason_id]           INT            NULL,
    [model_id]                 INT            NULL,
    [item_type_id]             INT            NOT NULL,
    [project_id]               INT            NULL,
    [is_active]                INT            NOT NULL,
    [template_id]              INT            NULL,
    [server_id]                INT            NULL,
    [profile_id]               INT            NULL,
    [responsible_boss_approve] BIT            NOT NULL,
    [customer_boss_approve]    BIT            NOT NULL,
    [guid]                     NVARCHAR (36)  NOT NULL,
    [approved_type_id]         INT            NULL,
    [disapproval_amount]       INT            NULL,
    [disapproval_percent]      INT            NULL,
    [schedule_id]              INT            NULL,
    [max_number_attempts]      INT            NULL,
    [reminder_active]          BIT            NULL,
    [reminder_date]            DATETIME       NULL,
    CONSTRAINT [PK_ASMS_APPROVALS] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_APPROVALS] UNIQUE NONCLUSTERED ([item_type_id] ASC, [project_id] ASC, [model_id] ASC, [name] ASC),
    CONSTRAINT [UX02_ASMS_APPROVALS] UNIQUE NONCLUSTERED ([item_type_id] ASC, [project_id] ASC, [model_id] ASC, [status_id] ASC),
    CONSTRAINT [UX03_ASMS_APPROVALS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_APPROVALS].[IND02_ASMS_APPROVALS]...';


GO
CREATE NONCLUSTERED INDEX [IND02_ASMS_APPROVALS]
    ON [dbo].[ASMS_APPROVALS]([approved_status_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASMS_APPROVALS].[IND03_ASMS_APPROVALS]...';


GO
CREATE NONCLUSTERED INDEX [IND03_ASMS_APPROVALS]
    ON [dbo].[ASMS_APPROVALS]([refused_status_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_APPROVALS_DATA]...';


GO
CREATE TABLE [dbo].[ASMS_APPROVALS_DATA] (
    [id]              INT             IDENTITY (1, 1) NOT NULL,
    [item_id]         INT             NOT NULL,
    [item_type_id]    INT             NOT NULL,
    [process_id]      INT             NOT NULL,
    [status_id]       INT             NOT NULL,
    [result]          INT             NULL,
    [executed_action] NVARCHAR (4000) NULL,
    [created_date]    DATETIME        NULL,
    CONSTRAINT [PK_ASMS_APPROVALS_DATA] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_APPROVALS_DATA_CLOSED]...';


GO
CREATE TABLE [dbo].[ASMS_APPROVALS_DATA_CLOSED] (
    [id]              INT             NOT NULL,
    [item_id]         INT             NOT NULL,
    [item_type_id]    INT             NOT NULL,
    [process_id]      INT             NOT NULL,
    [status_id]       INT             NOT NULL,
    [result]          INT             NULL,
    [executed_action] NVARCHAR (4000) NULL,
    [status_name]     NVARCHAR (50)   NULL,
    [status_color]    NVARCHAR (12)   NULL,
    [created_date]    DATETIME        NULL,
    CONSTRAINT [PK_ASMS_APPROVALS_DATA_CLOSED] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_APPROVALS_DETAIL]...';


GO
CREATE TABLE [dbo].[ASMS_APPROVALS_DETAIL] (
    [result_id]         INT             NOT NULL,
    [user_id]           INT             NOT NULL,
    [group_id]          INT             NULL,
    [result]            INT             NULL,
    [description]       NVARCHAR (4000) NULL,
    [voted_date]        DATETIME        NULL,
    [user_id_optional]  INT             NULL,
    [attempts_executed] INT             NOT NULL,
    [added_by]          INT             NULL
);


GO
PRINT N'Creating Table [dbo].[ASMS_APPROVALS_DETAIL_CLOSED]...';


GO
CREATE TABLE [dbo].[ASMS_APPROVALS_DETAIL_CLOSED] (
    [result_id]          INT             NOT NULL,
    [user_id]            INT             NOT NULL,
    [group_id]           INT             NULL,
    [result]             INT             NULL,
    [description]        NVARCHAR (4000) NULL,
    [voted_date]         DATETIME        NULL,
    [user_name]          NVARCHAR (255)  NULL,
    [group_name]         NVARCHAR (256)  NULL,
    [user_id_optional]   INT             NULL,
    [user_name_optional] NVARCHAR (255)  NULL,
    [added_by]           INT             NULL
);


GO
PRINT N'Creating Table [dbo].[ASMS_APPROVALS_GROUP]...';


GO
CREATE TABLE [dbo].[ASMS_APPROVALS_GROUP] (
    [process_id] INT NOT NULL,
    [group_id]   INT NOT NULL,
    CONSTRAINT [PK_ASMS_APPROVALS_GROUP] PRIMARY KEY CLUSTERED ([process_id] ASC, [group_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_APPROVALS_PROFILES]...';


GO
CREATE TABLE [dbo].[ASMS_APPROVALS_PROFILES] (
    [id]                INT             IDENTITY (1, 1) NOT NULL,
    [approval_id]       INT             NULL,
    [profile_id]        INT             NULL,
    [condition]         NVARCHAR (4000) NULL,
    [structure]         NVARCHAR (4000) NULL,
    [assing_specialist] BIT             NOT NULL,
    [text_condition]    NVARCHAR (4000) NULL,
    CONSTRAINT [PK_ASMS_APPROVALS_PROFILES] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_BANNER]...';


GO
CREATE TABLE [dbo].[ASMS_BANNER] (
    [FL_INT_ID]          INT            IDENTITY (1, 1) NOT NULL,
    [name]               NVARCHAR (50)  NOT NULL,
    [description]        NVARCHAR (250) NULL,
    [state]              INT            NULL,
    [FL_STR_BANNER_TEXT] NVARCHAR (MAX) NULL,
    [FL_INT_PROJECT_ID]  INT            NULL,
    CONSTRAINT [PK_ASMS_BANNER] PRIMARY KEY CLUSTERED ([FL_INT_ID] ASC),
    CONSTRAINT [UX_ASMS_BANNER] UNIQUE NONCLUSTERED ([FL_INT_PROJECT_ID] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_BPROCESS]...';


GO
CREATE TABLE [dbo].[ASMS_BPROCESS] (
    [id]          INT             IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (255)  NULL,
    [description] NVARCHAR (4000) NULL,
    [model]       NVARCHAR (MAX)  NULL,
    CONSTRAINT [PK_ASMS_BPROCESS] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_BPROCESS] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_BPROCESS_INSTANCE]...';


GO
CREATE TABLE [dbo].[ASMS_BPROCESS_INSTANCE] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [process_id]    INT           NOT NULL,
    [user_id]       INT           NOT NULL,
    [state]         VARCHAR (MAX) NULL,
    [start_date]    DATETIME      NULL,
    [end_date]      DATETIME      NULL,
    [modifier_id]   INT           NULL,
    [modified_date] DATETIME      NULL,
    CONSTRAINT [PK_ASMS_PROCESS_INSTANCE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_BPROCESS_PROJECT]...';


GO
CREATE TABLE [dbo].[ASMS_BPROCESS_PROJECT] (
    [bprocess_id] INT NOT NULL,
    [project_id]  INT NOT NULL,
    CONSTRAINT [PK_ASMS_BPROCESS_PROJECT] PRIMARY KEY CLUSTERED ([bprocess_id] ASC, [project_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_BRAND]...';


GO
CREATE TABLE [dbo].[ASMS_BRAND] (
    [id]             INT            IDENTITY (1, 1) NOT NULL,
    [name]           NVARCHAR (50)  NOT NULL,
    [description]    NVARCHAR (250) NOT NULL,
    [is_default]     BIT            NOT NULL,
    [login_position] NVARCHAR (10)  NULL,
    CONSTRAINT [PK_ASMS_BRAND] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_BRAND_CONSOLE]...';


GO
CREATE TABLE [dbo].[ASMS_BRAND_CONSOLE] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [brand_id]        INT            NULL,
    [console_id]      INT            NULL,
    [colors]          NVARCHAR (MAX) NULL,
    [images]          NVARCHAR (MAX) NULL,
    [carrusel_images] NVARCHAR (MAX) NULL,
    [is_bulitin]      BIT            NOT NULL,
    [css_file]        VARCHAR (MAX)  NULL,
    [html]            VARCHAR (MAX)  NULL,
    [path]            VARCHAR (2000) NULL,
    [texts]           VARCHAR (MAX)  NULL,
    [fonts]           VARCHAR (MAX)  NULL,
    CONSTRAINT [PK_ASMS_BRAND_CONSOLE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_BRAND_CONSOLE] UNIQUE NONCLUSTERED ([brand_id] ASC, [console_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_CALENDAR]...';


GO
CREATE TABLE [dbo].[ASMS_CALENDAR] (
    [CALENDAR_ID]          INT             IDENTITY (1, 1) NOT NULL,
    [CALENDAR_NAME]        NVARCHAR (250)  NOT NULL,
    [CALENDAR_DESCRIPTION] NVARCHAR (4000) NOT NULL,
    [SDB_LAST_SHOT]        DATETIME        NULL,
    [time_zone]            NVARCHAR (256)  NULL,
    [next_active_date]     DATETIME        NULL,
    [next_inactive_date]   DATETIME        NULL,
    [is_change]            BIT             NULL,
    [guid]                 NVARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASMS_CALENDAR] PRIMARY KEY CLUSTERED ([CALENDAR_ID] ASC),
    CONSTRAINT [UX_ASMS_CALENDAR] UNIQUE NONCLUSTERED ([CALENDAR_NAME] ASC),
    CONSTRAINT [UX02_ASDK_CALENDAR] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_CALENDAR_DAYS]...';


GO
CREATE TABLE [dbo].[ASMS_CALENDAR_DAYS] (
    [day_id]      INT           IDENTITY (1, 1) NOT NULL,
    [CALENDAR_ID] INT           NOT NULL,
    [FECHA]       DATETIME      NOT NULL,
    [guid]        NVARCHAR (36) NOT NULL,
    CONSTRAINT [PK_ASMS_CALENDAR_DAYS] PRIMARY KEY CLUSTERED ([day_id] ASC),
    CONSTRAINT [UX01_ASMS_CALENDAR_DAYS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_CALENDAR_DAYS].[IND01_ASMS_CALENDAR_DAYS]...';


GO
CREATE NONCLUSTERED INDEX [IND01_ASMS_CALENDAR_DAYS]
    ON [dbo].[ASMS_CALENDAR_DAYS]([CALENDAR_ID] ASC, [FECHA] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_CALENDAR_HOURS]...';


GO
CREATE TABLE [dbo].[ASMS_CALENDAR_HOURS] (
    [hour_id]    INT           IDENTITY (1, 1) NOT NULL,
    [cale_id]    INT           NULL,
    [start_date] DATETIME      NULL,
    [end_date]   DATETIME      NULL,
    [guid]       NVARCHAR (36) NOT NULL,
    [start_time] TIME (7)      NULL,
    [end_time]   TIME (7)      NULL,
    CONSTRAINT [PK_ASMS_CALENDAR_HOURS] PRIMARY KEY CLUSTERED ([hour_id] ASC),
    CONSTRAINT [UX01_ASMS_CALENDAR_HOURS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_CATEGORY_RELATION]...';


GO
CREATE TABLE [dbo].[ASMS_CATEGORY_RELATION] (
    [relation_id]        INT NOT NULL,
    [source_category_id] INT NOT NULL,
    [target_category_id] INT NOT NULL,
    [builtin]            BIT NOT NULL,
    CONSTRAINT [UX01_ASMS_CATEGORY_RELATION] UNIQUE NONCLUSTERED ([relation_id] ASC, [source_category_id] ASC, [target_category_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_CHANGE_SET]...';


GO
CREATE TABLE [dbo].[ASMS_CHANGE_SET] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [name]          VARCHAR (255) NOT NULL,
    [description]   VARCHAR (255) NULL,
    [is_active]     BIT           NOT NULL,
    [is_close]      BIT           NOT NULL,
    [creation_date] DATETIME      NOT NULL,
    [user_id]       INT           NOT NULL,
    [json_data]     VARCHAR (MAX) NULL,
    [error]         VARCHAR (MAX) NULL,
    [guid]          VARCHAR (36)  NOT NULL,
    PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_CHANGE_SET] UNIQUE NONCLUSTERED ([name] ASC),
    CONSTRAINT [UX02_ASMS_CHANGE_SET] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_CHANGE_SET_IMPORT]...';


GO
CREATE TABLE [dbo].[ASMS_CHANGE_SET_IMPORT] (
    [id]          INT           IDENTITY (1, 1) NOT NULL,
    [file_name]   VARCHAR (255) NOT NULL,
    [date_import] DATETIME      NOT NULL,
    [date_end]    DATETIME      NULL,
    [status]      INT           NOT NULL,
    [user_id]     INT           NOT NULL,
    [json_data]   VARCHAR (MAX) NULL,
    [error]       VARCHAR (MAX) NULL,
    [guid]        VARCHAR (36)  NOT NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_CHANGE_SET_OPERATION]...';


GO
CREATE TABLE [dbo].[ASMS_CHANGE_SET_OPERATION] (
    [id]            INT           IDENTITY (1, 1) NOT NULL,
    [change_set_id] INT           NOT NULL,
    [operation]     INT           NOT NULL,
    [table]         VARCHAR (255) NOT NULL,
    [query]         VARCHAR (MAX) NOT NULL,
    [observations]  VARCHAR (MAX) NULL,
    [status]        BIT           NOT NULL,
    PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_COMPANY]...';


GO
CREATE TABLE [dbo].[ASMS_COMPANY] (
    [Id]               INT             IDENTITY (1, 1) NOT NULL,
    [Name]             NVARCHAR (200)  NOT NULL,
    [Contact]          VARCHAR (100)   NULL,
    [Owner]            INT             NULL,
    [Address1]         NVARCHAR (255)  NULL,
    [Address2]         NVARCHAR (255)  NULL,
    [Address3]         NVARCHAR (255)  NULL,
    [Phone1]           NVARCHAR (50)   NULL,
    [Phone2]           NVARCHAR (50)   NULL,
    [Phone3]           NVARCHAR (50)   NULL,
    [Ext]              NVARCHAR (50)   NULL,
    [Fax]              NVARCHAR (50)   NULL,
    [Mobil]            NVARCHAR (50)   NULL,
    [Description]      NVARCHAR (1000) NULL,
    [Email]            NVARCHAR (100)  NULL,
    [WebSite]          NVARCHAR (250)  NULL,
    [Nit]              NVARCHAR (100)  NULL,
    [CountryId]        INT             NULL,
    [CityId]           INT             NULL,
    [Location]         VARCHAR (300)   NULL,
    [VENDOR_STATUS]    INT             NULL,
    [CreationDate]     DATETIME        NULL,
    [ModificationDate] DATETIME        NULL,
    [CreatedBy]        INT             NULL,
    [ModifiedBy]       INT             NULL,
    [LocationId]       INT             NULL,
    CONSTRAINT [PK_ASMS_COMPANY] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [UX_ASMS_COMPANY] UNIQUE NONCLUSTERED ([Name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_CONCURRENCY]...';


GO
CREATE TABLE [dbo].[ASMS_CONCURRENCY] (
    [user_id]      INT      NOT NULL,
    [item_type_id] INT      NOT NULL,
    [item_id]      INT      NOT NULL,
    [last_access]  DATETIME NULL,
    CONSTRAINT [PK_ASMS_CONCURRENCY] PRIMARY KEY CLUSTERED ([user_id] ASC, [item_type_id] ASC, [item_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_CONTRACT]...';


GO
CREATE TABLE [dbo].[ASMS_CONTRACT] (
    [ContractId]            INT             IDENTITY (1, 1) NOT NULL,
    [NumberContract]        NVARCHAR (60)   NULL,
    [ContractIni]           DATETIME        NULL,
    [ContractFin]           DATETIME        NULL,
    [ContractValue]         NUMERIC (17, 2) NULL,
    [VENDORID]              INT             NULL,
    [FL_STR_DESCRIPTION]    NVARCHAR (500)  NULL,
    [FL_STR_CONTRACT_TYPE]  INT             NULL,
    [FL_INT_HAS_ALARM]      BIT             NOT NULL,
    [FL_INT_LIMITDAYS]      INT             NULL,
    [FL_STR_STATUSCONTRACT] INT             NULL,
    [FL_INT_USER_ID]        INT             NULL,
    [type_id]               INT             NULL,
    [class_id]              INT             NULL,
    [template_id]           INT             NULL,
    [con_modified_date]     DATETIME        NULL,
    [con_modifier_id]       INT             NULL,
    [schedule_flag]         BIT             NULL,
    [vendor_id_contract]    INT             NULL,
    [area_id]               INT             NULL,
    [area_id_contract]      INT             NULL,
    [days_warranty]         INT             NULL,
    CONSTRAINT [PK_ASMS_CONTRACT] PRIMARY KEY CLUSTERED ([ContractId] ASC),
    CONSTRAINT [UX_ASMS_CONTRACT] UNIQUE NONCLUSTERED ([VENDORID] ASC, [NumberContract] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_CONTRACT_SELF]...';


GO
CREATE TABLE [dbo].[ASMS_CONTRACT_SELF] (
    [parent_id] INT NOT NULL,
    [child_id]  INT NOT NULL,
    CONSTRAINT [PK_ASMS_CONTRACT_SELF] PRIMARY KEY CLUSTERED ([parent_id] ASC, [child_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_COST]...';


GO
CREATE TABLE [dbo].[ASMS_COST] (
    [id]             INT             IDENTITY (1, 1) NOT NULL,
    [cost_center_id] INT             NOT NULL,
    [value_date]     DATETIME        NULL,
    [value]          NUMERIC (17, 2) NULL,
    [name]           NVARCHAR (700)  NULL,
    [parent_id]      INT             NULL,
    [type]           INT             NULL,
    [description]    NVARCHAR (4000) NULL,
    [parent_type]    INT             NULL,
    [original_value] NUMERIC (17, 2) NULL,
    [expense_type]   INT             NULL,
    CONSTRAINT [PK_ASMS_COST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_COST_CENTER]...';


GO
CREATE TABLE [dbo].[ASMS_COST_CENTER] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (50)  NULL,
    [description] NVARCHAR (250) NULL,
    [code]        NVARCHAR (50)  NULL,
    [type]        INT            NOT NULL,
    [parent_id]   INT            NULL,
    [guid]        NVARCHAR (36)  NOT NULL,
    CONSTRAINT [PK_ASMS_COST_CENTER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_COST_CENTER] UNIQUE NONCLUSTERED ([name] ASC, [type] ASC, [parent_id] ASC),
    CONSTRAINT [UX02_ASMS_COST_CENTER] UNIQUE NONCLUSTERED ([code] ASC, [type] ASC),
    CONSTRAINT [UX03_ASMS_COST_CENTER] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_COST_CENTER_CONTRACT]...';


GO
CREATE TABLE [dbo].[ASMS_COST_CENTER_CONTRACT] (
    [FL_INT_COSTCENTER_SUPPORT_ID] INT            IDENTITY (1, 1) NOT NULL,
    [FL_INT_COUNTABLESUPPORT_ID]   INT            NOT NULL,
    [FL_STR_COSTCENTER_ID]         INT            NOT NULL,
    [FL_INT_PERCENTAGE]            NUMERIC (5, 2) NULL,
    [item_type_id]                 INT            NOT NULL,
    CONSTRAINT [PK_ASMS_COST_CENTER_CONTRACT] PRIMARY KEY CLUSTERED ([FL_INT_COSTCENTER_SUPPORT_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_COST_CENTER_PROJECT]...';


GO
CREATE TABLE [dbo].[ASMS_COST_CENTER_PROJECT] (
    [proj_id] INT NOT NULL,
    [cost_id] INT NOT NULL,
    CONSTRAINT [PK_ASMS_COST_CENTER_PROJECT] PRIMARY KEY CLUSTERED ([proj_id] ASC, [cost_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_DISPLAY]...';


GO
CREATE TABLE [dbo].[ASMS_DISPLAY] (
    [id]             INT            NOT NULL,
    [application_id] INT            NOT NULL,
    [name]           NVARCHAR (400) NULL,
    [key_name]       NVARCHAR (400) NOT NULL,
    [seq_order]      INT            NOT NULL,
    [region]         INT            NOT NULL,
    CONSTRAINT [PK_ASMS_DISPLAY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_EXECUTE_CONDITION]...';


GO
CREATE TABLE [dbo].[ASMS_EXECUTE_CONDITION] (
    [item_id]             INT      NOT NULL,
    [container_condition] INT      NOT NULL,
    [condition_id]        INT      NOT NULL,
    [type_id]             INT      NOT NULL,
    [start_date]          DATETIME NOT NULL,
    [end_date]            DATETIME NOT NULL,
    [execute]             DATETIME NULL,
    [last_value]          BIT      NOT NULL,
    CONSTRAINT [PK_ASMS_EXECUTE_CONDITION] PRIMARY KEY NONCLUSTERED ([container_condition] ASC, [condition_id] ASC, [type_id] ASC, [item_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_EXECUTE_CONDITION].[IX01_ASMS_EXECUTE_CONDITION]...';


GO
CREATE CLUSTERED INDEX [IX01_ASMS_EXECUTE_CONDITION]
    ON [dbo].[ASMS_EXECUTE_CONDITION]([start_date] ASC, [end_date] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS] (
    [id]                       INT            IDENTITY (1, 1) NOT NULL,
    [name]                     NVARCHAR (50)  NOT NULL,
    [caption]                  NVARCHAR (50)  NULL,
    [description]              NVARCHAR (250) NOT NULL,
    [field_type_id]            INT            NOT NULL,
    [field_order]              INT            NULL,
    [model_id]                 INT            NULL,
    [item_type_id]             INT            NOT NULL,
    [project_id]               INT            NULL,
    [builtin_id]               INT            NULL,
    [catalog_id]               INT            NULL,
    [datasource_id]            INT            NULL,
    [is_delete]                BIT            NOT NULL,
    [guid]                     NVARCHAR (36)  NOT NULL,
    [restrict_level]           BIT            NULL,
    [length]                   INT            NULL,
    [has_dependencies]         BIT            NULL,
    [enable_predictive_search] BIT            NULL,
    [use_thousand]             BIT            NOT NULL,
    [enable_math_operations]   BIT            NOT NULL,
    CONSTRAINT [PK_ASMS_FIELDS] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_FIELDS] UNIQUE NONCLUSTERED ([item_type_id] ASC, [project_id] ASC, [model_id] ASC, [name] ASC, [caption] ASC),
    CONSTRAINT [UX02_ASMS_FIELDS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_BUILTIN]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_BUILTIN] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [name]          NVARCHAR (50)  NULL,
    [caption]       NVARCHAR (50)  NULL,
    [description]   NVARCHAR (250) NULL,
    [field_type_id] INT            NULL,
    [item_type_id]  INT            NOT NULL,
    [catalog_id]    INT            NULL,
    CONSTRAINT [PK_ASMS_FIELDS_BUILTIN] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_FIELDS_BUILTIN] UNIQUE NONCLUSTERED ([item_type_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_DATA]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_DATA] (
    [item_id]      INT             NOT NULL,
    [field_id]     INT             NOT NULL,
    [item_type_id] INT             NOT NULL,
    [string_value] NVARCHAR (4000) NULL,
    [int_value]    INT             NULL,
    [date_value]   DATETIME        NULL,
    [bool_value]   BIT             NULL,
    [float_value]  FLOAT (53)      NULL,
    [last_update]  DATETIME        NOT NULL,
    CONSTRAINT [PK_ASMS_FIELDS_DATA] PRIMARY KEY CLUSTERED ([item_id] ASC, [field_id] ASC, [item_type_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_FIELDS_DATA].[IX01_ASMS_FIELDS_DATA]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_FIELDS_DATA]
    ON [dbo].[ASMS_FIELDS_DATA]([field_id] ASC)
    INCLUDE([float_value], [bool_value], [date_value], [string_value], [int_value]);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_DATA_CLOSED]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_DATA_CLOSED] (
    [item_id]          INT             NOT NULL,
    [field_id]         INT             NOT NULL,
    [item_type_id]     INT             NOT NULL,
    [string_value]     NVARCHAR (4000) NULL,
    [int_value]        INT             NULL,
    [date_value]       DATETIME        NULL,
    [bool_value]       BIT             NULL,
    [float_value]      FLOAT (53)      NULL,
    [field_name]       NVARCHAR (50)   NULL,
    [field_type_id]    INT             NULL,
    [field_catalog_id] INT             NULL,
    [field_order]      INT             NULL,
    [last_update]      DATETIME        NOT NULL,
    CONSTRAINT [PK_ASMS_FIELDS_DATA_CLOSED] PRIMARY KEY CLUSTERED ([item_id] ASC, [field_id] ASC, [item_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_DATA_DW]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_DATA_DW] (
    [item_id]       INT             NOT NULL,
    [field_id]      INT             NOT NULL,
    [item_type_id]  INT             NOT NULL,
    [string_value]  NVARCHAR (4000) NULL,
    [int_value]     INT             NULL,
    [date_value]    DATETIME        NULL,
    [bool_value]    BIT             NULL,
    [float_value]   FLOAT (53)      NULL,
    [field_name]    NVARCHAR (50)   NULL,
    [field_type_id] INT             NULL,
    [modified_date] DATETIME        NOT NULL,
    CONSTRAINT [PK_ASMS_FIELDS_DATA_DW] PRIMARY KEY CLUSTERED ([item_id] ASC, [field_id] ASC, [item_type_id] ASC, [modified_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_DATA_HIST]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_DATA_HIST] (
    [item_id]       INT             NOT NULL,
    [field_id]      INT             NOT NULL,
    [item_type_id]  INT             NOT NULL,
    [baseline_id]   INT             NOT NULL,
    [string_value]  NVARCHAR (4000) NULL,
    [int_value]     INT             NULL,
    [date_value]    DATETIME        NULL,
    [bool_value]    BIT             NULL,
    [float_value]   FLOAT (53)      NULL,
    [field_name]    NVARCHAR (50)   NULL,
    [field_type_id] INT             NULL,
    CONSTRAINT [PK_ASMS_FIELDS_DATA_HIST] PRIMARY KEY CLUSTERED ([item_id] ASC, [field_id] ASC, [item_type_id] ASC, [baseline_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_DATASOURCE]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_DATASOURCE] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [value]             NVARCHAR (MAX) NULL,
    [guid]              VARCHAR (36)   NOT NULL,
    [trust_certificate] BIT            NULL,
    CONSTRAINT [PK_ASMS_FIELDS_DATASOURCE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_FIELDS_DATASOURCE] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_DEPENDENTS]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_DEPENDENTS] (
    [id]            INT IDENTITY (1, 1) NOT NULL,
    [source_id]     INT NOT NULL,
    [target_id]     INT NOT NULL,
    [order]         INT NOT NULL,
    [value]         INT NULL,
    [inherit_value] BIT NOT NULL,
    [visible]       BIT NULL,
    [editable]      BIT NULL,
    [mandatory]     BIT NULL,
    CONSTRAINT [PK_ASMS_FIELDS_DEPENDENTS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_DEPENDENTS_VALUES]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_DEPENDENTS_VALUES] (
    [dependent_id] INT NOT NULL,
    [value]        INT NOT NULL
);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_MATH]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_MATH] (
    [id]         INT           IDENTITY (1, 1) NOT NULL,
    [field_id]   INT           NOT NULL,
    [created_at] DATETIME2 (7) NOT NULL,
    [updated_at] DATETIME2 (7) NULL,
    CONSTRAINT [PK_ASMS_FIELDS_MATH] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_MATH_ELEMENTS]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_MATH_ELEMENTS] (
    [id]                INT             IDENTITY (1, 1) NOT NULL,
    [math_operation_id] INT             NOT NULL,
    [order]             INT             NOT NULL,
    [type]              TINYINT         NOT NULL,
    [field_id]          INT             NULL,
    [const_value]       DECIMAL (18, 6) NULL,
    [operator]          TINYINT         NULL,
    CONSTRAINT [PK_ASMS_FIELDS_MATH_ELEMENTS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_FIELDS_MATH_ELEMENTS].[IX01_ASMS_FIELDS_MATH_ELEMENTS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_FIELDS_MATH_ELEMENTS]
    ON [dbo].[ASMS_FIELDS_MATH_ELEMENTS]([math_operation_id] ASC, [order] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_STATUS]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_STATUS] (
    [field_id]   INT NOT NULL,
    [status_id]  INT NOT NULL,
    [console_id] INT NOT NULL,
    [visible]    BIT NULL,
    [editable]   BIT NULL,
    [mandatory]  BIT NULL,
    CONSTRAINT [PK_ASMS_FIELDS_STATUS] PRIMARY KEY CLUSTERED ([field_id] ASC, [status_id] ASC, [console_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_FIELDS_STATUS].[IX01_ASMS_FIELDS_STATUS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_FIELDS_STATUS]
    ON [dbo].[ASMS_FIELDS_STATUS]([status_id] ASC, [console_id] ASC)
    INCLUDE([visible], [editable], [mandatory]);


GO
PRINT N'Creating Table [dbo].[ASMS_FIELDS_VALUES]...';


GO
CREATE TABLE [dbo].[ASMS_FIELDS_VALUES] (
    [id]             INT           IDENTITY (1, 1) NOT NULL,
    [field_id]       INT           NULL,
    [value]          NVARCHAR (50) NULL,
    [parent_id]      INT           NULL,
    [guid]           NVARCHAR (36) NOT NULL,
    [restrict_level] BIT           NULL,
    CONSTRAINT [PK_ASMS_FIELDS_VALUES] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_FIELDS_VALUES] UNIQUE NONCLUSTERED ([field_id] ASC, [value] ASC, [parent_id] ASC),
    CONSTRAINT [UX02_ASMS_FIELDS_VALUES] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FILE]...';


GO
CREATE TABLE [dbo].[ASMS_FILE] (
    [id]            INT             IDENTITY (1, 1) NOT NULL,
    [name]          NVARCHAR (250)  NULL,
    [file_size]     INT             NULL,
    [type]          NVARCHAR (250)  NULL,
    [file_content]  VARBINARY (MAX) NULL,
    [created_date]  DATETIME        NULL,
    [modified_date] DATETIME        NULL,
    [created_by]    INT             NULL,
    [modified_by]   INT             NULL,
    CONSTRAINT [PK_ASMS_FILE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FOLDER]...';


GO
CREATE TABLE [dbo].[ASMS_FOLDER] (
    [ctg_index]          INT             IDENTITY (1, 1) NOT NULL,
    [ctg_caption]        NVARCHAR (100)  NULL,
    [ctg_parent]         INT             NULL,
    [ctg_imageindex]     INT             NULL,
    [fl_str_hierarchy]   NVARCHAR (2000) NULL,
    [fl_int_status_id]   INT             NULL,
    [ctg_project_id]     INT             NULL,
    [fl_str_description] NVARCHAR (MAX)  NULL,
    [fl_str_image]       NVARCHAR (MAX)  NULL,
    [fl_int_image_id]    INT             NULL,
    [guid]               NVARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASMS_FOLDER] PRIMARY KEY CLUSTERED ([ctg_index] ASC),
    CONSTRAINT [UX01_ASMS_FOLDER] UNIQUE NONCLUSTERED ([ctg_caption] ASC, [ctg_project_id] ASC, [ctg_parent] ASC),
    CONSTRAINT [UX02_ASMS_FOLDER] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FOLDER_ITEM]...';


GO
CREATE TABLE [dbo].[ASMS_FOLDER_ITEM] (
    [type_id]   INT NOT NULL,
    [folder_id] INT NOT NULL,
    [item_id]   INT NOT NULL,
    CONSTRAINT [PK_ASMS_FOLDER_ITEM] PRIMARY KEY CLUSTERED ([type_id] ASC, [folder_id] ASC, [item_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FOLDER_ITEM_CLOSED]...';


GO
CREATE TABLE [dbo].[ASMS_FOLDER_ITEM_CLOSED] (
    [type_id]   INT NOT NULL,
    [folder_id] INT NOT NULL,
    [item_id]   INT NOT NULL,
    CONSTRAINT [PK_ASMS_FOLDER_ITEM_CLOSED] PRIMARY KEY CLUSTERED ([type_id] ASC, [folder_id] ASC, [item_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FOLDER_TYPE]...';


GO
CREATE TABLE [dbo].[ASMS_FOLDER_TYPE] (
    [caty_category_id] INT NOT NULL,
    [caty_type_rec_id] INT NOT NULL,
    [caty_count]       INT NOT NULL,
    CONSTRAINT [PK_ASMS_FOLDER_TYPE] PRIMARY KEY CLUSTERED ([caty_type_rec_id] ASC, [caty_category_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FORM]...';


GO
CREATE TABLE [dbo].[ASMS_FORM] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [name]         NVARCHAR (50)  NOT NULL,
    [description]  NVARCHAR (250) NOT NULL,
    [is_active]    BIT            NOT NULL,
    [layout]       NVARCHAR (MAX) NULL,
    [item_type_id] INT            NOT NULL,
    [model_id]     INT            NULL,
    [project_id]   INT            NULL,
    CONSTRAINT [PK_ASMS_FORM] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_FORM] UNIQUE NONCLUSTERED ([item_type_id] ASC, [project_id] ASC, [model_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FORM_SECTIONS]...';


GO
CREATE TABLE [dbo].[ASMS_FORM_SECTIONS] (
    [id]          INT             IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (500)  NOT NULL,
    [description] NVARCHAR (4000) NULL,
    [sec_order]   INT             NOT NULL,
    [form_id]     INT             NOT NULL,
    [guid]        NVARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASMS_FORM_SECTIONS] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_FORM_SECTIONS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_FORMS]...';


GO
CREATE TABLE [dbo].[ASMS_FORMS] (
    [id]          INT             IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (500)  NOT NULL,
    [description] NVARCHAR (4000) NULL,
    [project_id]  INT             NULL,
    [model_id]    INT             NULL,
    [type_id]     INT             NULL,
    [enable]      BIT             NULL,
    [guid]        NVARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASMS_FORMS] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_FORMS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_GEOFENCE]...';


GO
CREATE TABLE [dbo].[ASMS_GEOFENCE] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (50)  NULL,
    [description] NVARCHAR (250) NULL,
    [geometry]    NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_ASMS_GEOFENCE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_GROUP_PROJECT]...';


GO
CREATE TABLE [dbo].[ASMS_GROUP_PROJECT] (
    [project_id] INT NOT NULL,
    [group_id]   INT NOT NULL,
    [profile_id] INT NOT NULL,
    CONSTRAINT [PK_ASMS_GROUP_PROJECT] PRIMARY KEY CLUSTERED ([project_id] ASC, [group_id] ASC, [profile_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_GROUP_SPECIAL]...';


GO
CREATE TABLE [dbo].[ASMS_GROUP_SPECIAL] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [group_id]    INT            NOT NULL,
    [icon]        NVARCHAR (100) NOT NULL,
    [description] NVARCHAR (100) NULL,
    CONSTRAINT [PK_ASMS_GROUP_SPECIAL] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_GROUP_USER]...';


GO
CREATE TABLE [dbo].[ASMS_GROUP_USER] (
    [group_id]   INT NOT NULL,
    [user_id]    INT NOT NULL,
    [project_id] INT NULL,
    [type_id]    INT NULL,
    CONSTRAINT [UX01_ASMS_GROUP_USER] UNIQUE CLUSTERED ([user_id] ASC, [group_id] ASC, [project_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_GROUP_VIEW]...';


GO
CREATE TABLE [dbo].[ASMS_GROUP_VIEW] (
    [group_id] INT NOT NULL,
    [view_id]  INT NOT NULL,
    CONSTRAINT [PK_ASMS_GROUP_VIEW] PRIMARY KEY CLUSTERED ([group_id] ASC, [view_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_HISTORY]...';


GO
CREATE TABLE [dbo].[ASMS_HISTORY] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [item_id]            INT            NOT NULL,
    [item_type_id]       INT            NOT NULL,
    [item_rev]           INT            NULL,
    [description]        NVARCHAR (MAX) NULL,
    [created]            DATETIME       NOT NULL,
    [author_id]          INT            NOT NULL,
    [action_id]          INT            NOT NULL,
    [visible]            BIT            NOT NULL,
    [description_nohtml] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_ASMS_HISTORY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_HISTORY].[IND01_ASMS_HISTORY]...';


GO
CREATE NONCLUSTERED INDEX [IND01_ASMS_HISTORY]
    ON [dbo].[ASMS_HISTORY]([item_id] ASC, [item_type_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_HISTORY_CLOSED]...';


GO
CREATE TABLE [dbo].[ASMS_HISTORY_CLOSED] (
    [id]                 INT            NOT NULL,
    [item_id]            INT            NOT NULL,
    [item_type_id]       INT            NOT NULL,
    [item_rev]           INT            NULL,
    [description]        NVARCHAR (MAX) NULL,
    [created]            DATETIME       NOT NULL,
    [author_id]          INT            NOT NULL,
    [author_name]        NVARCHAR (255) NOT NULL,
    [action_id]          INT            NOT NULL,
    [visible]            BIT            NOT NULL,
    [description_nohtml] NVARCHAR (MAX) NULL
);


GO
PRINT N'Creating Index [dbo].[ASMS_HISTORY_CLOSED].[IX01_ASMS_HISTORY_CLOSED]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_HISTORY_CLOSED]
    ON [dbo].[ASMS_HISTORY_CLOSED]([item_id] ASC, [item_type_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_IMPORT]...';


GO
CREATE TABLE [dbo].[ASMS_IMPORT] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [file_id]         INT            NOT NULL,
    [type]            INT            NOT NULL,
    [additional_data] NVARCHAR (MAX) NULL,
    [result]          NVARCHAR (MAX) NULL,
    [finish_date]     DATETIME       NULL,
    [user_id]         INT            NOT NULL,
    [create_date]     DATETIME       NULL,
    [type_action]     INT            NOT NULL,
    CONSTRAINT [PK_ASMS_IMPORT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_INTEGRATION_CATEGORY]...';


GO
CREATE TABLE [dbo].[ASMS_INTEGRATION_CATEGORY] (
    [integration_id] INT           NOT NULL,
    [model_id]       INT           NOT NULL,
    [path_url]       VARCHAR (255) NOT NULL,
    CONSTRAINT [UX01_ASMS_INTEGRATION_CATEGORY] UNIQUE NONCLUSTERED ([integration_id] ASC, [model_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_INTEGRATIONS]...';


GO
CREATE TABLE [dbo].[ASMS_INTEGRATIONS] (
    [id]                  INT            IDENTITY (1, 1) NOT NULL,
    [name]                NVARCHAR (50)  NOT NULL,
    [description]         NVARCHAR (250) NULL,
    [webservice_url]      NVARCHAR (MAX) NULL,
    [webservice_user]     NVARCHAR (250) NULL,
    [webservice_password] NVARCHAR (250) NULL,
    [gui_url]             NVARCHAR (MAX) NULL,
    [gui_user]            NVARCHAR (250) NULL,
    [gui_password]        NVARCHAR (250) NULL,
    [item_type_id]        INT            NOT NULL,
    [user_id]             INT            NOT NULL,
    [active]              BIT            NOT NULL,
    [project_id]          INT            NULL,
    [responsible_id]      INT            NULL,
    [default_path_url]    NVARCHAR (255) NULL,
    [token]               NVARCHAR (512) NULL,
    CONSTRAINT [PK_ASMS_INTEGRATIONS] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_INTEGRATIONS] UNIQUE NONCLUSTERED ([item_type_id] ASC, [name] ASC),
    CONSTRAINT [UX02_ASMS_INTEGRATIONS] UNIQUE NONCLUSTERED ([item_type_id] ASC, [user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_INTERFACE]...';


GO
CREATE TABLE [dbo].[ASMS_INTERFACE] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [builtin_id]   INT            NOT NULL,
    [label]        NVARCHAR (MAX) NULL,
    [model_id]     INT            NULL,
    [project_id]   INT            NULL,
    [item_type_id] INT            NULL,
    [guid]         NVARCHAR (36)  NOT NULL,
    CONSTRAINT [PK_ASMS_INTERFACE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_INTERFACE] UNIQUE NONCLUSTERED ([builtin_id] ASC, [model_id] ASC, [project_id] ASC, [item_type_id] ASC),
    CONSTRAINT [UX02_ASMS_INTERFACE] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_INTERFACE].[IX01_ASMS_INTERFACE]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_INTERFACE]
    ON [dbo].[ASMS_INTERFACE]([model_id] ASC, [item_type_id] ASC)
    INCLUDE([builtin_id], [label]);


GO
PRINT N'Creating Table [dbo].[ASMS_INTERFACE_BUILTIN]...';


GO
CREATE TABLE [dbo].[ASMS_INTERFACE_BUILTIN] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [resource_name] NVARCHAR (MAX) NULL,
    [member]        NVARCHAR (MAX) NULL,
    [field_type_id] INT            NULL,
    [select_member] NVARCHAR (MAX) NULL,
    [class_name]    NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASMS_INTERFACE_BUILTIN] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_INTERFACE_CONSTANTS]...';


GO
CREATE TABLE [dbo].[ASMS_INTERFACE_CONSTANTS] (
    [id]    INT            IDENTITY (1, 1) NOT NULL,
    [name]  NVARCHAR (255) NULL,
    [value] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASMS_INTERFACE_CONSTANTS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_INTERFACE_FUNCTIONS]...';


GO
CREATE TABLE [dbo].[ASMS_INTERFACE_FUNCTIONS] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [field_type_id] INT            NOT NULL,
    [name]          NVARCHAR (255) NULL,
    [value]         NVARCHAR (255) NULL,
    [parameters]    NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_ASMS_INTERFACE_FUNCTIONS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_INTERFACE_OPERATORS]...';


GO
CREATE TABLE [dbo].[ASMS_INTERFACE_OPERATORS] (
    [id]    INT            IDENTITY (1, 1) NOT NULL,
    [name]  NVARCHAR (255) NULL,
    [value] NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASMS_INTERFACE_OPERATORS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_INTERFACE_STATUS]...';


GO
CREATE TABLE [dbo].[ASMS_INTERFACE_STATUS] (
    [interface_id] INT NOT NULL,
    [status_id]    INT NOT NULL,
    [console_id]   INT NOT NULL,
    [visible]      BIT NULL,
    [editable]     BIT NULL,
    [mandatory]    BIT NULL,
    CONSTRAINT [PK_ASMS_INTERFACE_STATUS] PRIMARY KEY CLUSTERED ([interface_id] ASC, [status_id] ASC, [console_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_INTERFACE_TYPE]...';


GO
CREATE TABLE [dbo].[ASMS_INTERFACE_TYPE] (
    [interface_id]   INT NOT NULL,
    [item_type_id]   INT NOT NULL,
    [interface_type] INT NOT NULL,
    CONSTRAINT [PK_ASMS_INTERFACE_TYPE] PRIMARY KEY CLUSTERED ([interface_id] ASC, [item_type_id] ASC, [interface_type] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_INTERFACE_TYPE_CONSTANTS]...';


GO
CREATE TABLE [dbo].[ASMS_INTERFACE_TYPE_CONSTANTS] (
    [constant_id]   INT NOT NULL,
    [field_type_id] INT NOT NULL,
    CONSTRAINT [PK_ASMS_INTERFACE_TYPE_CONSTANTS] PRIMARY KEY CLUSTERED ([constant_id] ASC, [field_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_INTERFACE_TYPE_OPERATORS]...';


GO
CREATE TABLE [dbo].[ASMS_INTERFACE_TYPE_OPERATORS] (
    [operator_id]   INT NOT NULL,
    [field_type_id] INT NOT NULL,
    CONSTRAINT [PK_ASMS_INTERFACE_TYPE_OPERATORS] PRIMARY KEY CLUSTERED ([operator_id] ASC, [field_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_ITEM_CACHE]...';


GO
CREATE TABLE [dbo].[ASMS_ITEM_CACHE] (
    [work_id]    INT      NOT NULL,
    [item_id]    INT      NOT NULL,
    [type]       INT      NOT NULL,
    [created_at] DATETIME NOT NULL,
    CONSTRAINT [PK_ASMS_ITEM_CACHE] PRIMARY KEY CLUSTERED ([work_id] ASC),
    CONSTRAINT [UX01_ASMS_ITEM_CACHE] UNIQUE NONCLUSTERED ([item_id] ASC, [type] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_ITEM_CONDITION]...';


GO
CREATE TABLE [dbo].[ASMS_ITEM_CONDITION] (
    [id]             INT             IDENTITY (1, 1) NOT NULL,
    [condition_id]   INT             NULL,
    [field_id]       INT             NOT NULL,
    [operador]       CHAR (20)       NULL,
    [valor]          NVARCHAR (100)  NULL,
    [field_id2]      INT             NULL,
    [condition_type] INT             NULL,
    [label]          NVARCHAR (4000) NULL,
    [text]           NVARCHAR (4000) NULL,
    [operator_id]    INT             NULL,
    [table_id]       INT             NULL,
    [value_text]     NVARCHAR (4000) NULL,
    [field_type_id]  INT             NULL,
    [field_name]     NVARCHAR (255)  NULL,
    [field_value]    NVARCHAR (255)  NULL,
    [operator_value] NVARCHAR (50)   NULL,
    [table_id2]      INT             NULL,
    [field2_value]   NVARCHAR (255)  NULL,
    [field2_name]    NVARCHAR (255)  NULL,
    [function_id]    INT             NULL,
    [function_value] NVARCHAR (255)  NULL,
    [function_name]  NVARCHAR (255)  NULL,
    [value2]         NVARCHAR (255)  NULL,
    [value2_name]    NVARCHAR (255)  NULL,
    [type_id]        INT             NOT NULL,
    [data_id]        INT             NOT NULL,
    CONSTRAINT [PK_ASMS_ITEM_CONDITION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_ITEM_WEBHOOK]...';


GO
CREATE TABLE [dbo].[ASMS_ITEM_WEBHOOK] (
    [item_Id]      INT           NOT NULL,
    [webhook_id]   INT           NOT NULL,
    [rule_id]      INT           NOT NULL,
    [item_type_id] INT           NOT NULL,
    [process]      BIT           NOT NULL,
    [process_date] SMALLDATETIME NOT NULL
);


GO
PRINT N'Creating Table [dbo].[ASMS_LAST_EXECUTE_TASK]...';


GO
CREATE TABLE [dbo].[ASMS_LAST_EXECUTE_TASK] (
    [task_id]      INT      NOT NULL,
    [last_execute] DATETIME NOT NULL
);


GO
PRINT N'Creating Table [dbo].[ASMS_LINKS]...';


GO
CREATE TABLE [dbo].[ASMS_LINKS] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [name]         NVARCHAR (100) NOT NULL,
    [description]  NVARCHAR (400) NULL,
    [url]          NVARCHAR (255) NOT NULL,
    [image_id]     INT            NULL,
    [image_name]   NVARCHAR (100) NULL,
    [authenticate] INT            NOT NULL,
    [project_id]   INT            NOT NULL,
    CONSTRAINT [PK_ASMS_LINKS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_LOCATION]...';


GO
CREATE TABLE [dbo].[ASMS_LOCATION] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [project_id]    INT            NOT NULL,
    [name]          NVARCHAR (255) NOT NULL,
    [description]   NVARCHAR (255) NOT NULL,
    [department_id] INT            NULL,
    [numberdep_id]  INT            NULL,
    [country_id]    INT            NULL,
    [city_id]       INT            NOT NULL,
    [site_id]       INT            NULL,
    [building_id]   INT            NULL,
    [floor_id]      INT            NULL,
    [company_id]    INT            NULL,
    [address]       NVARCHAR (255) NOT NULL,
    [phone]         NVARCHAR (255) NULL,
    [guid]          NVARCHAR (36)  NOT NULL,
    [last_update]   DATETIME       NOT NULL,
    CONSTRAINT [PK_LOCATION] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_LOCATION] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_MAIL_TEMPLATE]...';


GO
CREATE TABLE [dbo].[ASMS_MAIL_TEMPLATE] (
    [id]          INT             IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (50)   NOT NULL,
    [subject]     NVARCHAR (255)  NULL,
    [body]        NVARCHAR (MAX)  NULL,
    [is_html]     BIT             NOT NULL,
    [project_id]  INT             NULL,
    [type_id]     INT             NULL,
    [model_id]    INT             NULL,
    [is_default]  BIT             NOT NULL,
    [sender]      NVARCHAR (1000) NULL,
    [sender_name] NVARCHAR (1000) NULL,
    [is_builtin]  BIT             NOT NULL,
    [guid]        VARCHAR (36)    NOT NULL,
    [hide_header] BIT             NULL,
    CONSTRAINT [PK_ASMS_MAIL_TEMPLATE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_MAIL_TEMPLATE] UNIQUE NONCLUSTERED ([name] ASC, [project_id] ASC, [type_id] ASC, [model_id] ASC),
    CONSTRAINT [UX02_ASMS_MAIL_TEMPLATE] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_MAP_COUNTRY]...';


GO
CREATE TABLE [dbo].[ASMS_MAP_COUNTRY] (
    [id]           INT             IDENTITY (1, 1) NOT NULL,
    [provider_id]  INT             NOT NULL,
    [country_code] INT             NOT NULL,
    [zoom]         INT             NOT NULL,
    [coordinates]  NVARCHAR (1000) NULL,
    CONSTRAINT [PK_ASMS_MAP_COUNTRY] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_MAP_PROVIDERS]...';


GO
CREATE TABLE [dbo].[ASMS_MAP_PROVIDERS] (
    [id]         INT            IDENTITY (1, 1) NOT NULL,
    [name]       NVARCHAR (50)  NOT NULL,
    [api_key]    NVARCHAR (200) NULL,
    [client_key] NVARCHAR (200) NULL,
    [token]      NVARCHAR (200) NULL,
    [is_default] BIT            NOT NULL,
    CONSTRAINT [PK_ASMS_MAP_PROVIDERS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_MODEL]...';


GO
CREATE TABLE [dbo].[ASMS_MODEL] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [name]               NVARCHAR (100) NOT NULL,
    [description]        NVARCHAR (250) NOT NULL,
    [item_type_id]       INT            NOT NULL,
    [script]             NVARCHAR (MAX) NULL,
    [builtin]            BIT            NULL,
    [active]             BIT            NULL,
    [default_time_id]    INT            NULL,
    [default_profile_id] INT            NULL,
    [instructions]       NVARCHAR (MAX) NULL,
    [is_delete]          BIT            NOT NULL,
    [guid]               NVARCHAR (36)  NOT NULL,
    [recalculate_date]   BIT            NULL,
    CONSTRAINT [PK_ASMS_MODEL] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_MODEL] UNIQUE NONCLUSTERED ([item_type_id] ASC, [name] ASC, [builtin] ASC),
    CONSTRAINT [UX02_ASMS_MODEL] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_MODEL_TYPE]...';


GO
CREATE TABLE [dbo].[ASMS_MODEL_TYPE] (
    [model_id]      INT NOT NULL,
    [type_id]       INT NOT NULL,
    [model_case_id] INT NULL
);


GO
PRINT N'Creating Table [dbo].[ASMS_MODELPROFILES]...';


GO
CREATE TABLE [dbo].[ASMS_MODELPROFILES] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (50)  NULL,
    [description]       NVARCHAR (250) NULL,
    [model_id]          INT            NULL,
    [type]              INT            NULL,
    [project_id]        INT            NULL,
    [condition]         NVARCHAR (MAX) NULL,
    [structure]         NVARCHAR (MAX) NULL,
    [text]              NVARCHAR (MAX) NULL,
    [assign_specialist] BIT            NOT NULL,
    [guid]              VARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASMS_MODELPROFILES] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_MODELPROFILES] UNIQUE NONCLUSTERED ([type] ASC, [project_id] ASC, [model_id] ASC, [name] ASC),
    CONSTRAINT [UX02_ASMS_MODELPROFILES] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_NEWS]...';


GO
CREATE TABLE [dbo].[ASMS_NEWS] (
    [fl_news_id]        INT            IDENTITY (1, 1) NOT NULL,
    [fl_cod_user]       INT            NOT NULL,
    [fl_news_title]     NVARCHAR (140) NOT NULL,
    [fl_news]           NVARCHAR (MAX) NULL,
    [fl_news_date]      DATETIME       NULL,
    [fl_news_order]     INT            NOT NULL,
    [fl_visible]        INT            NULL,
    [FL_PROJECT_ID]     INT            NULL,
    [FL_PUBLISH_DATE]   DATETIME       NULL,
    [fl_news_subtitle]  NVARCHAR (250) NULL,
    [fl_priority]       BIT            NULL,
    [fl_show_on_client] BIT            NULL,
    [fl_novelty_days]   INT            NULL,
    CONSTRAINT [PK_ASMS_NEWS] PRIMARY KEY CLUSTERED ([fl_news_id] ASC),
    CONSTRAINT [UX_ASMS_NEWS] UNIQUE NONCLUSTERED ([FL_PROJECT_ID] ASC, [fl_news_title] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_NOTIFICATIONS_QUEUE]...';


GO
CREATE TABLE [dbo].[ASMS_NOTIFICATIONS_QUEUE] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [message_body]      NVARCHAR (MAX) NOT NULL,
    [message_type]      TINYINT        NOT NULL,
    [status]            TINYINT        NOT NULL,
    [retry_count]       TINYINT        NOT NULL,
    [created_date]      DATETIME       NOT NULL,
    [last_Attempt_date] DATETIME       NULL,
    [processed_date]    DATETIME       NULL,
    [error_message]     NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_ASMS_NOTIFICATIONS_QUEUE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_NOTIFICATIONS_QUEUE_HISTORY]...';


GO
CREATE TABLE [dbo].[ASMS_NOTIFICATIONS_QUEUE_HISTORY] (
    [id]                INT            NOT NULL,
    [message_body]      NVARCHAR (MAX) NOT NULL,
    [message_type]      TINYINT        NOT NULL,
    [status]            TINYINT        NOT NULL,
    [retry_count]       TINYINT        NOT NULL,
    [created_date]      DATETIME       NOT NULL,
    [last_Attempt_date] DATETIME       NULL,
    [processed_date]    DATETIME       NULL,
    [error_message]     NVARCHAR (MAX) NULL
);


GO
PRINT N'Creating Index [dbo].[ASMS_NOTIFICATIONS_QUEUE_HISTORY].[UX_ASMS_NOTIFICATIONS_QUEUE_HISTORY]...';


GO
CREATE NONCLUSTERED INDEX [UX_ASMS_NOTIFICATIONS_QUEUE_HISTORY]
    ON [dbo].[ASMS_NOTIFICATIONS_QUEUE_HISTORY]([created_date] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_POSITIONS]...';


GO
CREATE TABLE [dbo].[ASMS_POSITIONS] (
    [id]           INT             IDENTITY (1, 1) NOT NULL,
    [item_id]      INT             NOT NULL,
    [item_type_id] INT             NOT NULL,
    [protocol]     NVARCHAR (128)  NULL,
    [servertime]   DATETIME        NULL,
    [devicetime]   DATETIME        NULL,
    [valid]        BIT             NULL,
    [latitude]     FLOAT (53)      NULL,
    [longitude]    FLOAT (53)      NULL,
    [altitude]     FLOAT (53)      NULL,
    [speed]        FLOAT (53)      NULL,
    [course]       FLOAT (53)      NULL,
    [address]      NVARCHAR (512)  NULL,
    [attributes]   NVARCHAR (4000) NULL,
    [accuracy]     FLOAT (53)      NOT NULL,
    [created_date] DATETIME        NOT NULL,
    CONSTRAINT [PK_ASMS_POSITION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_POSITIONS_LAST]...';


GO
CREATE TABLE [dbo].[ASMS_POSITIONS_LAST] (
    [id]           INT             NOT NULL,
    [item_id]      INT             NOT NULL,
    [item_type_id] INT             NOT NULL,
    [protocol]     NVARCHAR (128)  NULL,
    [servertime]   DATETIME        NULL,
    [devicetime]   DATETIME        NULL,
    [valid]        BIT             NULL,
    [latitude]     FLOAT (53)      NULL,
    [longitude]    FLOAT (53)      NULL,
    [altitude]     FLOAT (53)      NULL,
    [speed]        FLOAT (53)      NULL,
    [course]       FLOAT (53)      NULL,
    [address]      NVARCHAR (512)  NULL,
    [attributes]   NVARCHAR (4000) NULL,
    [accuracy]     FLOAT (53)      NOT NULL,
    CONSTRAINT [PK_ASMS_POSITION_LAST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_PRIVATE_DOCUMENT]...';


GO
CREATE TABLE [dbo].[ASMS_PRIVATE_DOCUMENT] (
    [id] INT NOT NULL,
    CONSTRAINT [PK_ASMS_PRIVATE_DOCUMENT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_PROFILE_CONDITIONS]...';


GO
CREATE TABLE [dbo].[ASMS_PROFILE_CONDITIONS] (
    [ID]             INT             IDENTITY (1, 1) NOT NULL,
    [CONDITION_ID]   INT             NULL,
    [PROFILE_ID]     INT             NOT NULL,
    [FIELD_ID]       INT             NOT NULL,
    [OPERADOR]       CHAR (20)       NULL,
    [VALOR]          NVARCHAR (100)  NULL,
    [FIELD_ID2]      INT             NULL,
    [CONDITION_TYPE] INT             NULL,
    [LABEL]          NVARCHAR (4000) NULL,
    [TEXT]           NVARCHAR (4000) NULL,
    [OPERATOR_ID]    INT             NULL,
    [TABLE_ID]       INT             NULL,
    [VALUE_TEXT]     NVARCHAR (4000) NULL,
    [field_type_id]  INT             NULL,
    [field_name]     NVARCHAR (255)  NULL,
    [field_value]    NVARCHAR (255)  NULL,
    [operator_value] NVARCHAR (50)   NULL,
    [TABLE_ID2]      INT             NULL,
    [field2_value]   NVARCHAR (255)  NULL,
    [field2_name]    NVARCHAR (255)  NULL,
    [function_id]    INT             NULL,
    [function_value] NVARCHAR (255)  NULL,
    [function_name]  NVARCHAR (255)  NULL,
    [value2]         NVARCHAR (255)  NULL,
    [value2_name]    NVARCHAR (255)  NULL,
    [approval_id]    INT             NULL,
    CONSTRAINT [PK_ASMS_PROFILE_CONDITIONS] PRIMARY KEY CLUSTERED ([ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_PROFILES]...';


GO
CREATE TABLE [dbo].[ASMS_PROFILES] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (50)  NULL,
    [description] NVARCHAR (250) NULL,
    [cost]        FLOAT (53)     NULL,
    [price]       FLOAT (53)     NULL,
    [guid]        NVARCHAR (36)  NOT NULL,
    CONSTRAINT [PK_AMSM_PROFILES] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_PROFILES] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_PROJECT_CONTRACT]...';


GO
CREATE TABLE [dbo].[ASMS_PROJECT_CONTRACT] (
    [cont_contractid] INT NOT NULL,
    [cont_projectid]  INT NOT NULL,
    CONSTRAINT [PK_ASMS_PROJECT_CONTRACT] PRIMARY KEY CLUSTERED ([cont_contractid] ASC, [cont_projectid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_PROJECT_EXTERNAL_AUTH]...';


GO
CREATE TABLE [dbo].[ASMS_PROJECT_EXTERNAL_AUTH] (
    [proj_id]          INT            NOT NULL,
    [external_auth_id] NVARCHAR (100) NOT NULL,
    CONSTRAINT [PK_ASMS_PROJECT_EXTERNAL_AUTH] PRIMARY KEY CLUSTERED ([proj_id] ASC, [external_auth_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_PROJECT_GROUP]...';


GO
CREATE TABLE [dbo].[ASMS_PROJECT_GROUP] (
    [proj_id]     INT NOT NULL,
    [grou_id]     INT NOT NULL,
    [type_id]     INT NOT NULL,
    [calendar_id] INT NULL,
    [profile_id]  INT NULL,
    CONSTRAINT [PX_ASMS_PROJECT_GROUP] PRIMARY KEY CLUSTERED ([proj_id] ASC, [grou_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_PROJECT_LOCATION]...';


GO
CREATE TABLE [dbo].[ASMS_PROJECT_LOCATION] (
    [project_id]  INT NOT NULL,
    [location_id] INT NOT NULL,
    CONSTRAINT [UX_ASMS_PROJECT_LOCATION] UNIQUE NONCLUSTERED ([project_id] ASC, [location_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_PROJECT_USER]...';


GO
CREATE TABLE [dbo].[ASMS_PROJECT_USER] (
    [proj_id]     INT NOT NULL,
    [user_id]     INT NOT NULL,
    [type_id]     INT NOT NULL,
    [profile_id]  INT NULL,
    [calendar_id] INT NULL,
    CONSTRAINT [PX_ASMS_PROJECT_USER] PRIMARY KEY CLUSTERED ([proj_id] ASC, [user_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_PROJECT_USER].[IX01_ASMS_PROJECT_USER]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_PROJECT_USER]
    ON [dbo].[ASMS_PROJECT_USER]([user_id] ASC, [type_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_PROJECT_VENDOR]...';


GO
CREATE TABLE [dbo].[ASMS_PROJECT_VENDOR] (
    [VENDOR_ID] INT NOT NULL,
    [proj_id]   INT NOT NULL,
    [type_id]   INT NOT NULL,
    CONSTRAINT [PK_ASMS_PROJECT_VENDOR] PRIMARY KEY CLUSTERED ([VENDOR_ID] ASC, [type_id] ASC, [proj_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_PROJECTS]...';


GO
CREATE TABLE [dbo].[ASMS_PROJECTS] (
    [proj_id]          INT            IDENTITY (1, 1) NOT NULL,
    [proj_name]        NVARCHAR (255) NOT NULL,
    [proj_owner_id]    INT            NOT NULL,
    [proj_state]       INT            NULL,
    [proj_description] NVARCHAR (255) NULL,
    [proj_image]       NVARCHAR (MAX) NULL,
    [proj_image_id]    INT            NULL,
    [proj_is_delete]   BIT            NOT NULL,
    [proj_guid]        NVARCHAR (36)  NOT NULL,
    CONSTRAINT [PK_ASMS_PROJECTS] PRIMARY KEY CLUSTERED ([proj_id] ASC) WITH (FILLFACTOR = 90),
    CONSTRAINT [UX_ASMS_PROJECTS] UNIQUE NONCLUSTERED ([proj_name] ASC),
    CONSTRAINT [UX02_ASMS_PROJECTS] UNIQUE NONCLUSTERED ([proj_guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_RELATION_CLASS]...';


GO
CREATE TABLE [dbo].[ASMS_RELATION_CLASS] (
    [source_type] INT NOT NULL,
    [target_type] INT NOT NULL,
    CONSTRAINT [PK_ASMS_RELATION_CLASS] PRIMARY KEY CLUSTERED ([source_type] ASC, [target_type] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_RELATION_TYPE]...';


GO
CREATE TABLE [dbo].[ASMS_RELATION_TYPE] (
    [id]                        INT           IDENTITY (1, 1) NOT NULL,
    [source_name]               NVARCHAR (50) NOT NULL,
    [target_name]               NVARCHAR (50) NOT NULL,
    [source_type]               INT           NOT NULL,
    [target_type]               INT           NOT NULL,
    [built_in]                  BIT           NOT NULL,
    [behavior_id]               INT           NULL,
    [is_complementary_relation] BIT           NOT NULL,
    CONSTRAINT [PK_ASMS_RELATION_TYPE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_RELATION_TYPE] UNIQUE NONCLUSTERED ([source_type] ASC, [target_type] ASC, [source_name] ASC, [built_in] ASC),
    CONSTRAINT [UX02_ASMS_RELATION_TYPE] UNIQUE NONCLUSTERED ([source_type] ASC, [target_type] ASC, [target_name] ASC, [built_in] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_RISK]...';


GO
CREATE TABLE [dbo].[ASMS_RISK] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (255) NOT NULL,
    [model_id]    INT            NOT NULL,
    [low_range]   INT            NULL,
    [high_range]  INT            NULL,
    [status_id]   INT            NULL,
    [active]      BIT            NOT NULL,
    [description] NVARCHAR (250) NULL,
    CONSTRAINT [PK_ASMS_RISK] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_RISK] UNIQUE NONCLUSTERED ([model_id] ASC, [name] ASC),
    CONSTRAINT [UX02_ASMS_RISK] UNIQUE NONCLUSTERED ([model_id] ASC, [status_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_RISK_ANSWER]...';


GO
CREATE TABLE [dbo].[ASMS_RISK_ANSWER] (
    [id]             INT      IDENTITY (1, 1) NOT NULL,
    [question_id]    INT      NULL,
    [response]       INT      NULL,
    [user_id]        INT      NULL,
    [date_response]  DATETIME NULL,
    [item_id]        INT      NULL,
    [question_score] INT      NULL,
    CONSTRAINT [PK_ASMS_RISK_ANSWER] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_RISK_QUESTION]...';


GO
CREATE TABLE [dbo].[ASMS_RISK_QUESTION] (
    [id]             INT             IDENTITY (1, 1) NOT NULL,
    [risk_id]        INT             NULL,
    [question]       NVARCHAR (4000) NULL,
    [positive_score] INT             NULL,
    [negative_score] INT             NULL,
    CONSTRAINT [PK_ASMS_RISK_QUESTION] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_RISK_QUESTION] UNIQUE NONCLUSTERED ([risk_id] ASC, [question] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_ROUTING]...';


GO
CREATE TABLE [dbo].[ASMS_ROUTING] (
    [rout_id]              INT      IDENTITY (1, 1) NOT NULL,
    [rout_inactiveuser]    INT      NOT NULL,
    [rout_initialdate]     DATETIME NOT NULL,
    [rout_finaldate]       DATETIME NOT NULL,
    [rout_cause]           INT      NOT NULL,
    [rout_notifyrouting]   INT      NULL,
    [rout_notifyaproved]   INT      NULL,
    [rout_balance_default] INT      NULL,
    [rout_createuser]      INT      NOT NULL,
    [rout_createdate]      DATETIME NOT NULL,
    [rout_status]          INT      NOT NULL,
    [calendar_id]          INT      NULL,
    [shift_id]             INT      NULL,
    CONSTRAINT [PK_ASMS_ROUTING] PRIMARY KEY CLUSTERED ([rout_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_ROUTING_CONFIG]...';


GO
CREATE TABLE [dbo].[ASMS_ROUTING_CONFIG] (
    [roco_id]       INT IDENTITY (1, 1) NOT NULL,
    [roco_routing]  INT NOT NULL,
    [roco_group]    INT NULL,
    [roco_newuser]  INT NULL,
    [roco_balance]  INT NULL,
    [roco_casetype] INT NULL,
    [roco_project]  INT NOT NULL,
    CONSTRAINT [PK_ASMS_ROUTING_CONFIG] PRIMARY KEY CLUSTERED ([roco_id] ASC),
    CONSTRAINT [UX_ASMS_ROUTING_CONFIG] UNIQUE NONCLUSTERED ([roco_routing] ASC, [roco_group] ASC, [roco_project] ASC, [roco_casetype] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_ROUTING_EXEC]...';


GO
CREATE TABLE [dbo].[ASMS_ROUTING_EXEC] (
    [roex_id]             INT      IDENTITY (1, 1) NOT NULL,
    [roex_caseid]         INT      NOT NULL,
    [roex_casetype]       INT      NOT NULL,
    [roex_inactiveuser]   INT      NOT NULL,
    [roex_resposibleuser] INT      NOT NULL,
    [roex_date]           DATETIME NOT NULL,
    [roex_routing]        INT      NOT NULL,
    [roex_voting]         INT      NULL,
    CONSTRAINT [PK_ASMS_ROUTING_EXEC] PRIMARY KEY CLUSTERED ([roex_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_ROUTING_MANUAL]...';


GO
CREATE TABLE [dbo].[ASMS_ROUTING_MANUAL] (
    [roma_id]          INT      IDENTITY (1, 1) NOT NULL,
    [roma_caseid]      INT      NOT NULL,
    [roma_casetype]    INT      NOT NULL,
    [roma_initialuser] INT      NOT NULL,
    [roma_finaluser]   INT      NOT NULL,
    [roma_modifyuser]  INT      NOT NULL,
    [roma_date]        DATETIME NOT NULL,
    [roma_cause]       INT      NOT NULL,
    CONSTRAINT [PK_ASMS_ROUTING_MANUAL] PRIMARY KEY CLUSTERED ([roma_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_RULES]...';


GO
CREATE TABLE [dbo].[ASMS_RULES] (
    [RULE_ID]           INT             IDENTITY (1, 1) NOT NULL,
    [ACTIVA]            INT             NULL,
    [CONDICIONES]       NVARCHAR (255)  NULL,
    [FL_INT_PROJECT_ID] INT             NULL,
    [FL_DAT_MODIFIED]   DATETIME        NULL,
    [FL_DAT_INSERTED]   DATETIME        NULL,
    [TABLE_ID]          INT             NULL,
    [LABEL]             NVARCHAR (4000) NULL,
    [TEXT]              NVARCHAR (4000) NULL,
    [model_id]          INT             NULL,
    [name]              NVARCHAR (255)  NULL,
    [description]       NVARCHAR (250)  NULL,
    [common_id]         INT             NULL,
    [rule_type]         INT             NULL,
    [rule_assembly]     VARBINARY (MAX) NULL,
    [rule_order]        INT             NOT NULL,
    [guid]              NVARCHAR (36)   NOT NULL,
    [clone_change]      BIT             NOT NULL,
    [user_change_id]    INT             NULL,
    CONSTRAINT [PK_ASMS_RULES] PRIMARY KEY CLUSTERED ([RULE_ID] ASC),
    CONSTRAINT [UX01_ASMS_RULES] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_RULES].[IX01_ASMS_RULES]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_RULES]
    ON [dbo].[ASMS_RULES]([FL_DAT_MODIFIED] ASC);


GO
PRINT N'Creating Index [dbo].[ASMS_RULES].[IX02_ASMS_RULES]...';


GO
CREATE NONCLUSTERED INDEX [IX02_ASMS_RULES]
    ON [dbo].[ASMS_RULES]([model_id] ASC, [FL_INT_PROJECT_ID] ASC, [ACTIVA] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_RULES_ACTIONS]...';


GO
CREATE TABLE [dbo].[ASMS_RULES_ACTIONS] (
    [ACTION_ID]   INT           IDENTITY (1, 1) NOT NULL,
    [RULE_ID]     INT           NOT NULL,
    [ACTION_TYPE] INT           NOT NULL,
    [ORDEN]       INT           NOT NULL,
    [guid]        NVARCHAR (36) NOT NULL,
    CONSTRAINT [PK_ASMS_RULES_ACTIONS] PRIMARY KEY CLUSTERED ([ACTION_ID] ASC),
    CONSTRAINT [UX01_ASMS_RULES_ACTIONS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_RULES_ACTIONS].[IND01_ASMS_RULES_ACTIONS]...';


GO
CREATE NONCLUSTERED INDEX [IND01_ASMS_RULES_ACTIONS]
    ON [dbo].[ASMS_RULES_ACTIONS]([RULE_ID] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_RULES_ACTIONS_TYPES]...';


GO
CREATE TABLE [dbo].[ASMS_RULES_ACTIONS_TYPES] (
    [ACTION_TYPE]      INT            NOT NULL,
    [ACTION_NAME]      NVARCHAR (250) NULL,
    [ACTION_PROCEDURE] NVARCHAR (250) NULL,
    [class]            INT            NOT NULL,
    CONSTRAINT [PK_ASMS_RULES_ACTIONS_TYPES] PRIMARY KEY CLUSTERED ([ACTION_TYPE] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_RULES_CONDITIONS]...';


GO
CREATE TABLE [dbo].[ASMS_RULES_CONDITIONS] (
    [ID]             INT             IDENTITY (1, 1) NOT NULL,
    [CONDITION_ID]   INT             NULL,
    [RULE_ID]        INT             NOT NULL,
    [FIELD_ID]       INT             NOT NULL,
    [OPERADOR]       CHAR (20)       NULL,
    [VALOR]          NVARCHAR (100)  NULL,
    [FIELD_ID2]      INT             NULL,
    [CONDITION_TYPE] INT             NULL,
    [LABEL]          NVARCHAR (4000) NULL,
    [TEXT]           NVARCHAR (4000) NULL,
    [OPERATOR_ID]    INT             NULL,
    [TABLE_ID]       INT             NULL,
    [VALUE_TEXT]     NVARCHAR (4000) NULL,
    [field_type_id]  INT             NULL,
    [field_name]     NVARCHAR (255)  NULL,
    [field_value]    NVARCHAR (255)  NULL,
    [operator_value] NVARCHAR (50)   NULL,
    [TABLE_ID2]      INT             NULL,
    [field2_value]   NVARCHAR (255)  NULL,
    [field2_name]    NVARCHAR (255)  NULL,
    [function_id]    INT             NULL,
    [function_value] NVARCHAR (255)  NULL,
    [function_name]  NVARCHAR (255)  NULL,
    [value2]         NVARCHAR (255)  NULL,
    [value2_name]    NVARCHAR (255)  NULL,
    [time_dependent] BIT             NOT NULL,
    [guid]           NVARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASMS_RULES_CONDITIONS] PRIMARY KEY CLUSTERED ([ID] ASC),
    CONSTRAINT [UX01_ASMS_RULES_CONDITIONS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_RULES_CONDITIONS].[IX01_ASMS_RULES_CONDITIONS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_RULES_CONDITIONS]
    ON [dbo].[ASMS_RULES_CONDITIONS]([RULE_ID] ASC, [time_dependent] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_RULES_PARAM]...';


GO
CREATE TABLE [dbo].[ASMS_RULES_PARAM] (
    [PARAM_ID]    NVARCHAR (50)  NOT NULL,
    [ACTION_ID]   INT            NOT NULL,
    [PARAM_VALUE] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_ASMS_RULES_PARAM] PRIMARY KEY CLUSTERED ([PARAM_ID] ASC, [ACTION_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_RULES_TYPE_ACTIONS]...';


GO
CREATE TABLE [dbo].[ASMS_RULES_TYPE_ACTIONS] (
    [TABLE_ID]    INT NOT NULL,
    [ACTION_TYPE] INT NOT NULL,
    CONSTRAINT [PK_ASMS_RULES_TYPE_ACTIONS] PRIMARY KEY CLUSTERED ([TABLE_ID] ASC, [ACTION_TYPE] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_SCRIPT]...';


GO
CREATE TABLE [dbo].[ASMS_SCRIPT] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (50)  NOT NULL,
    [description] NVARCHAR (250) NULL,
    [text]        NVARCHAR (MAX) NULL,
    [model_id]    INT            NOT NULL,
    [guid]        NVARCHAR (36)  NOT NULL,
    CONSTRAINT [PK_ASMS_SCRIPT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_SCRIPT] UNIQUE NONCLUSTERED ([model_id] ASC, [name] ASC),
    CONSTRAINT [UX02_ASMS_SCRIPT] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_SECTION_FIELDS]...';


GO
CREATE TABLE [dbo].[ASMS_SECTION_FIELDS] (
    [section_id]  INT NOT NULL,
    [field_id]    INT NOT NULL,
    [field_order] INT NOT NULL,
    CONSTRAINT [PK_ASMS_SECTION_FIELDS] PRIMARY KEY CLUSTERED ([section_id] ASC, [field_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_SENTIMENT_ANALYSIS]...';


GO
CREATE TABLE [dbo].[ASMS_SENTIMENT_ANALYSIS] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [item_id]            INT            NOT NULL,
    [general_perception] NVARCHAR (20)  NULL,
    [final_perception]   NVARCHAR (20)  NULL,
    [date_analysis]      DATETIME       NOT NULL,
    [log]                NVARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_ASMS_SENTIMENT_ANALYSIS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_SERVICE_CI]...';


GO
CREATE TABLE [dbo].[ASMS_SERVICE_CI] (
    [service_id] INT NOT NULL,
    [ci_id]      INT NOT NULL
);


GO
PRINT N'Creating Table [dbo].[ASMS_SERVICE_CI_CLOSED]...';


GO
CREATE TABLE [dbo].[ASMS_SERVICE_CI_CLOSED] (
    [service_id] INT NOT NULL,
    [ci_id]      INT NOT NULL
);


GO
PRINT N'Creating Table [dbo].[ASMS_SETTINGS]...';


GO
CREATE TABLE [dbo].[ASMS_SETTINGS] (
    [sett_id]             INT            IDENTITY (1, 1) NOT NULL,
    [sett_key]            NVARCHAR (55)  NOT NULL,
    [sett_application_id] INT            NOT NULL,
    [sett_value]          NVARCHAR (MAX) NULL,
    [sett_description]    NVARCHAR (255) NULL,
    [sett_project_id]     INT            NULL,
    [sett_type_id]        INT            NULL,
    [guid]                NVARCHAR (36)  NOT NULL,
    CONSTRAINT [PK_ASMS_SETTINGS] PRIMARY KEY CLUSTERED ([sett_id] ASC),
    CONSTRAINT [UX_ASMS_SETTINGS] UNIQUE NONCLUSTERED ([sett_key] ASC, [sett_application_id] ASC, [sett_project_id] ASC, [sett_type_id] ASC),
    CONSTRAINT [UX02_ASMS_SETTINGS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_SHIFT_STRIP]...';


GO
CREATE TABLE [dbo].[ASMS_SHIFT_STRIP] (
    [id]            INT      IDENTITY (1, 1) NOT NULL,
    [shift_id]      INT      NOT NULL,
    [start_date]    DATETIME NULL,
    [end_date]      DATETIME NULL,
    [start_time]    TIME (7) NULL,
    [end_time]      TIME (7) NULL,
    [creation_date] DATETIME NULL,
    CONSTRAINT [PK_ASMS_SHIFT_STRIP] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_SHIFT_USER]...';


GO
CREATE TABLE [dbo].[ASMS_SHIFT_USER] (
    [user_id]       INT      NOT NULL,
    [shift_id]      INT      NOT NULL,
    [creation_date] DATETIME NULL,
    CONSTRAINT [PK_ASMS_SHIFT_USER] PRIMARY KEY CLUSTERED ([user_id] ASC, [shift_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_SHIFTS]...';


GO
CREATE TABLE [dbo].[ASMS_SHIFTS] (
    [id]          INT      IDENTITY (1, 1) NOT NULL,
    [start_date]  DATETIME NULL,
    [end_date]    DATETIME NULL,
    [calendar_id] INT      NULL,
    [user_id]     INT      NULL,
    [group_id]    INT      NULL,
    CONSTRAINT [PK_ASMS_SHIFTS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_STAR_RATING]...';


GO
CREATE TABLE [dbo].[ASMS_STAR_RATING] (
    [id]           INT            IDENTITY (1, 1) NOT NULL,
    [item_id]      NVARCHAR (100) NOT NULL,
    [item_type_id] INT            NOT NULL,
    [score]        DECIMAL (4, 2) NOT NULL,
    [comments]     NVARCHAR (500) NULL,
    [data]         NVARCHAR (MAX) NULL,
    [origin]       INT            NOT NULL,
    [date_created] DATETIME       NOT NULL,
    [user_id]      INT            NOT NULL,
    CONSTRAINT [PK_ASMS_STAR_RATING] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_STATUS]...';


GO
CREATE TABLE [dbo].[ASMS_STATUS] (
    [stat_id]                   INT            IDENTITY (1, 1) NOT NULL,
    [stat_app_category]         INT            NULL,
    [stat_name]                 NVARCHAR (50)  NOT NULL,
    [stat_description]          NVARCHAR (250) NOT NULL,
    [stat_background_color_rgb] NVARCHAR (12)  NULL,
    [stat_project]              INT            NULL,
    [stat_model_id]             INT            NULL,
    [stat_built_in]             BIT            NOT NULL,
    [stat_behavior]             INT            NULL,
    [stat_final]                INT            NULL,
    [stat_initial]              INT            NULL,
    [stat_stage_id]             INT            NULL,
    [stat_note]                 BIT            NULL,
    [stat_delete]               BIT            NOT NULL,
    [guid]                      NVARCHAR (36)  NOT NULL,
    CONSTRAINT [PK_ASMS_STATUS] PRIMARY KEY CLUSTERED ([stat_id] ASC),
    CONSTRAINT [UX_ASMS_STATUS] UNIQUE NONCLUSTERED ([stat_app_category] ASC, [stat_project] ASC, [stat_model_id] ASC, [stat_name] ASC),
    CONSTRAINT [UX02_ASMS_STATUS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_STATUS_COORDINATE]...';


GO
CREATE TABLE [dbo].[ASMS_STATUS_COORDINATE] (
    [stat_id]    INT             NOT NULL,
    [position_x] DECIMAL (18, 5) NOT NULL,
    [position_y] DECIMAL (18, 5) NOT NULL,
    CONSTRAINT [PK_ASMS_STATUS_COORDINATE] PRIMARY KEY CLUSTERED ([stat_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_STATUS_REASON]...';


GO
CREATE TABLE [dbo].[ASMS_STATUS_REASON] (
    [reas_id]            INT            IDENTITY (1, 1) NOT NULL,
    [reas_description]   NVARCHAR (255) NULL,
    [reas_transition_id] INT            NULL,
    [reas_delete]        BIT            NOT NULL,
    [guid]               NVARCHAR (36)  NOT NULL,
    CONSTRAINT [PK_ASMS_STATUS_REASON] PRIMARY KEY CLUSTERED ([reas_id] ASC),
    CONSTRAINT [UK01_ASMS_STATUS_REASON] UNIQUE NONCLUSTERED ([reas_description] ASC, [reas_transition_id] ASC),
    CONSTRAINT [UX02_ASMS_STATUS_REASON] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_STATUS_STAGE]...';


GO
CREATE TABLE [dbo].[ASMS_STATUS_STAGE] (
    [id]           INT           IDENTITY (1, 1) NOT NULL,
    [item_type_id] INT           NOT NULL,
    [name]         NVARCHAR (18) NULL,
    [is_final]     BIT           NULL,
    CONSTRAINT [PK_ASMS_STATUS_STAGE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_STATUS_TRANSITION]...';


GO
CREATE TABLE [dbo].[ASMS_STATUS_TRANSITION] (
    [sttr_id]       INT           IDENTITY (1, 1) NOT NULL,
    [sttr_code_ini] INT           NULL,
    [sttr_code_fin] INT           NULL,
    [sttr_category] INT           NULL,
    [sttr_project]  INT           NULL,
    [sttr_model_id] INT           NULL,
    [sttr_delete]   BIT           NOT NULL,
    [guid]          NVARCHAR (36) NOT NULL,
    CONSTRAINT [PK_ASMS_STATUS_TRANSITION] PRIMARY KEY CLUSTERED ([sttr_id] ASC),
    CONSTRAINT [UX_ASMS_STATUS_TRANSITION] UNIQUE NONCLUSTERED ([sttr_category] ASC, [sttr_project] ASC, [sttr_model_id] ASC, [sttr_code_ini] ASC, [sttr_code_fin] ASC),
    CONSTRAINT [UX02_ASMS_STATUS_TRANSITION] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_SURVEY]...';


GO
CREATE TABLE [dbo].[ASMS_SURVEY] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [name]               NVARCHAR (50)  NOT NULL,
    [description]        NVARCHAR (250) NULL,
    [model_id]           INT            NULL,
    [solved_status_id]   INT            NULL,
    [canceled_status_id] INT            NULL,
    [survey_id]          INT            NULL,
    [schedule_id]        INT            NULL,
    [template_id]        INT            NULL,
    [is_active]          BIT            NULL,
    [project_id]         INT            NULL,
    [item_type_id]       INT            NOT NULL,
    [server_id]          INT            NULL,
    CONSTRAINT [PK_ASMS_SURVEY] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_SURVEY] UNIQUE NONCLUSTERED ([item_type_id] ASC, [model_id] ASC, [project_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_SURVEY_DATA]...';


GO
CREATE TABLE [dbo].[ASMS_SURVEY_DATA] (
    [item_id]      INT            NOT NULL,
    [survey_id]    INT            NOT NULL,
    [item_type_id] INT            NOT NULL,
    [token]        NVARCHAR (100) NOT NULL,
    [state_id]     INT            NOT NULL,
    [is_current]   BIT            NULL,
    [created_date] DATETIME       NOT NULL,
    CONSTRAINT [PK_ASMS_SURVEY_DATA] PRIMARY KEY CLUSTERED ([item_id] ASC, [survey_id] ASC, [item_type_id] ASC, [state_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TASK_CONDITIONS]...';


GO
CREATE TABLE [dbo].[ASMS_TASK_CONDITIONS] (
    [ID]             INT             IDENTITY (1, 1) NOT NULL,
    [CONDITION_ID]   INT             NULL,
    [TASK_ID]        INT             NOT NULL,
    [FIELD_ID]       INT             NOT NULL,
    [OPERADOR]       CHAR (20)       NULL,
    [VALOR]          NVARCHAR (100)  NULL,
    [FIELD_ID2]      INT             NULL,
    [CONDITION_TYPE] INT             NULL,
    [LABEL]          NVARCHAR (4000) NULL,
    [TEXT]           NVARCHAR (4000) NULL,
    [OPERATOR_ID]    INT             NULL,
    [TABLE_ID]       INT             NULL,
    [VALUE_TEXT]     NVARCHAR (4000) NULL,
    [field_type_id]  INT             NULL,
    [field_name]     NVARCHAR (255)  NULL,
    [field_value]    NVARCHAR (255)  NULL,
    [operator_value] NVARCHAR (50)   NULL,
    [TABLE_ID2]      INT             NULL,
    [field2_value]   NVARCHAR (255)  NULL,
    [field2_name]    NVARCHAR (255)  NULL,
    [function_id]    INT             NULL,
    [function_value] NVARCHAR (255)  NULL,
    [function_name]  NVARCHAR (255)  NULL,
    [value2]         NVARCHAR (255)  NULL,
    [value2_name]    NVARCHAR (255)  NULL,
    [guid]           NVARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASMS_TASK_CONDITIONS] PRIMARY KEY CLUSTERED ([ID] ASC),
    CONSTRAINT [UX01_ASMS_TASK_CONDITIONS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TASK_PREDECESSOR]...';


GO
CREATE TABLE [dbo].[ASMS_TASK_PREDECESSOR] (
    [id]        INT IDENTITY (1, 1) NOT NULL,
    [parent_id] INT NOT NULL,
    [child_id]  INT NOT NULL,
    [model_id]  INT NOT NULL,
    CONSTRAINT [PK_ASMS_TASK_PREDECESSOR] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_TASK_PREDECESSOR] UNIQUE NONCLUSTERED ([parent_id] ASC, [child_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TASK_STATUS]...';


GO
CREATE TABLE [dbo].[ASMS_TASK_STATUS] (
    [task_id]   INT NOT NULL,
    [status_id] INT NOT NULL,
    [block]     BIT NULL,
    [depend]    BIT NULL,
    CONSTRAINT [PK_ASMS_TASK_STATUS] PRIMARY KEY CLUSTERED ([task_id] ASC, [status_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TASK_TEMPLATE]...';


GO
CREATE TABLE [dbo].[ASMS_TASK_TEMPLATE] (
    [id]               INT            IDENTITY (1, 1) NOT NULL,
    [name]             NVARCHAR (256) NOT NULL,
    [description]      NVARCHAR (MAX) NULL,
    [duration]         INT            NOT NULL,
    [model_id]         INT            NOT NULL,
    [offset]           INT            NULL,
    [task_model_id]    INT            NULL,
    [profile_id]       INT            NULL,
    [type_id]          INT            NOT NULL,
    [depend_condition] NVARCHAR (MAX) NULL,
    [depend_structure] NVARCHAR (MAX) NULL,
    [depend_text]      NVARCHAR (MAX) NULL,
    [guid]             NVARCHAR (36)  NOT NULL,
    [afls_service_id]  INT            NULL,
    CONSTRAINT [PK_ASMS_TASK_TEMPLATE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_TASK_TEMPLATE] UNIQUE NONCLUSTERED ([model_id] ASC, [name] ASC),
    CONSTRAINT [UX02_ASMS_TASK_TEMPLATE] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TEMPLATES]...';


GO
CREATE TABLE [dbo].[ASMS_TEMPLATES] (
    [id]      INT            IDENTITY (1, 1) NOT NULL,
    [name]    NVARCHAR (50)  NOT NULL,
    [type_id] INT            NOT NULL,
    [text]    NVARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_ASMS_TEMPLATES] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_TEMPLATES] UNIQUE NONCLUSTERED ([type_id] ASC, [name] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TIMES]...';


GO
CREATE TABLE [dbo].[ASMS_TIMES] (
    [id]                INT            IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (50)  NOT NULL,
    [start_state_id]    INT            NULL,
    [end_state_id]      INT            NULL,
    [model_id]          INT            NOT NULL,
    [type_agree]        INT            NOT NULL,
    [builtin_id]        INT            NULL,
    [target]            INT            NULL,
    [compliance]        INT            NULL,
    [priority]          NVARCHAR (MAX) NULL,
    [type_id]           INT            NOT NULL,
    [start_condition]   NVARCHAR (MAX) NULL,
    [end_condition]     NVARCHAR (MAX) NULL,
    [running_condition] NVARCHAR (MAX) NULL,
    [start_structure]   NVARCHAR (MAX) NULL,
    [end_structure]     NVARCHAR (MAX) NULL,
    [running_structure] NVARCHAR (MAX) NULL,
    [start_text]        NVARCHAR (MAX) NULL,
    [end_text]          NVARCHAR (MAX) NULL,
    [running_text]      NVARCHAR (MAX) NULL,
    [is_delete]         BIT            NOT NULL,
    [guid]              NVARCHAR (36)  NOT NULL,
    [reactive_time]     BIT            NOT NULL,
    [recalculate_date]  BIT            NOT NULL,
    CONSTRAINT [PK_ASMS_TIMES] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMSTIMES] UNIQUE NONCLUSTERED ([name] ASC, [model_id] ASC),
    CONSTRAINT [UX02_ASMS_TIMES] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TIMES_BUILTIN]...';


GO
CREATE TABLE [dbo].[ASMS_TIMES_BUILTIN] (
    [id]           INT           IDENTITY (1, 1) NOT NULL,
    [name]         NVARCHAR (50) NOT NULL,
    [item_type_id] INT           NOT NULL,
    [type_agree]   INT           NOT NULL,
    [is_default]   BIT           NOT NULL,
    CONSTRAINT [PK_ASMS_TIMES_BUILTIN] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TIMES_CONDITIONS]...';


GO
CREATE TABLE [dbo].[ASMS_TIMES_CONDITIONS] (
    [ID]             INT             IDENTITY (1, 1) NOT NULL,
    [CONDITION_ID]   INT             NULL,
    [TIME_ID]        INT             NOT NULL,
    [FIELD_ID]       INT             NOT NULL,
    [OPERADOR]       CHAR (20)       NULL,
    [VALOR]          NVARCHAR (100)  NULL,
    [FIELD_ID2]      INT             NULL,
    [CONDITION_TYPE] INT             NULL,
    [LABEL]          NVARCHAR (4000) NULL,
    [TEXT]           NVARCHAR (4000) NULL,
    [OPERATOR_ID]    INT             NULL,
    [TABLE_ID]       INT             NULL,
    [VALUE_TEXT]     NVARCHAR (4000) NULL,
    [field_type_id]  INT             NULL,
    [field_name]     NVARCHAR (255)  NULL,
    [field_value]    NVARCHAR (255)  NULL,
    [operator_value] NVARCHAR (50)   NULL,
    [TABLE_ID2]      INT             NULL,
    [field2_value]   NVARCHAR (255)  NULL,
    [field2_name]    NVARCHAR (255)  NULL,
    [function_id]    INT             NULL,
    [function_value] NVARCHAR (255)  NULL,
    [function_name]  NVARCHAR (255)  NULL,
    [value2]         NVARCHAR (255)  NULL,
    [value2_name]    NVARCHAR (255)  NULL,
    [class]          INT             NOT NULL,
    [time_dependent] BIT             NOT NULL,
    [guid]           NVARCHAR (36)   NOT NULL,
    CONSTRAINT [PK_ASMS_TIMES_CONDITIONS] PRIMARY KEY CLUSTERED ([ID] ASC),
    CONSTRAINT [UX01_ASMS_TIMES_CONDITIONS] UNIQUE NONCLUSTERED ([guid] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_TIMES_CONDITIONS].[IX01_ASMS_TIMES_CONDITIONS]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_TIMES_CONDITIONS]
    ON [dbo].[ASMS_TIMES_CONDITIONS]([TIME_ID] ASC, [time_dependent] ASC);


GO
PRINT N'Creating Table [dbo].[ASMS_TIMES_DATA_CLOSED]...';


GO
CREATE TABLE [dbo].[ASMS_TIMES_DATA_CLOSED] (
    [item_id]              INT            NOT NULL,
    [time_id]              INT            NOT NULL,
    [item_type_id]         INT            NOT NULL,
    [estimated_time]       FLOAT (53)     NULL,
    [estimated_date]       DATETIME       NULL,
    [end_time]             FLOAT (53)     NULL,
    [end_date]             DATETIME       NULL,
    [start_date]           DATETIME       NULL,
    [sdb_last_shot]        DATETIME       NULL,
    [sdb_current_time]     FLOAT (53)     NULL,
    [sdb_current_progress] FLOAT (53)     NULL,
    [status_type]          BIT            NOT NULL,
    [calendar_id]          INT            NULL,
    [complies]             BIT            NULL,
    [type_agree]           INT            NULL,
    [start_state_id]       INT            NULL,
    [end_state_id]         INT            NULL,
    [time_name]            NVARCHAR (50)  NULL,
    [time_type_id]         INT            NOT NULL,
    [start_condition]      NVARCHAR (MAX) NULL,
    [end_condition]        NVARCHAR (MAX) NULL,
    [running_condition]    NVARCHAR (MAX) NULL,
    [recalculate_date]     BIT            NOT NULL,
    [sdb_total_paused]     FLOAT (53)     NULL,
    [sdb_temporal_paused]  FLOAT (53)     NULL,
    [sdb_current_paused]   FLOAT (53)     NOT NULL,
    CONSTRAINT [PK_ASMS_TIMES_DATA_CLOSED] PRIMARY KEY CLUSTERED ([item_id] ASC, [time_id] ASC, [item_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TIMES_STATUS]...';


GO
CREATE TABLE [dbo].[ASMS_TIMES_STATUS] (
    [status_id] INT NOT NULL,
    [time_id]   INT NOT NULL,
    [timer]     BIT NULL,
    CONSTRAINT [PK_ASMS_TIMES_STATUS] PRIMARY KEY CLUSTERED ([status_id] ASC, [time_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TOUR]...';


GO
CREATE TABLE [dbo].[ASMS_TOUR] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (50)  NOT NULL,
    [description] NVARCHAR (250) NULL,
    [is_active]   BIT            NOT NULL,
    [page]        NVARCHAR (250) NULL,
    CONSTRAINT [PK_ASMS_TOUR] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TOUR_STEP]...';


GO
CREATE TABLE [dbo].[ASMS_TOUR_STEP] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [name]            NVARCHAR (250) NULL,
    [tour_id]         INT            NOT NULL,
    [step_order]      INT            NOT NULL,
    [selector]        NVARCHAR (250) NULL,
    [description]     NVARCHAR (MAX) NULL,
    [keycode]         NVARCHAR (250) NULL,
    [event_selector]  NVARCHAR (250) NULL,
    [event_type]      NVARCHAR (250) NULL,
    [event]           NVARCHAR (250) NULL,
    [next_button]     BIT            NOT NULL,
    [previous_button] BIT            NOT NULL,
    [finish_button]   BIT            NOT NULL,
    CONSTRAINT [PK_ASMS_TOUR_STEP] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TOUR_USER]...';


GO
CREATE TABLE [dbo].[ASMS_TOUR_USER] (
    [id]        INT IDENTITY (1, 1) NOT NULL,
    [wizard_id] INT NOT NULL,
    [tour_id]   INT NOT NULL,
    CONSTRAINT [PK_ASMS_TOUR_USER] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TRANSLATION]...';


GO
CREATE TABLE [dbo].[ASMS_TRANSLATION] (
    [trans_id]       INT             IDENTITY (1, 1) NOT NULL,
    [type_id]        INT             NOT NULL,
    [language_id]    CHAR (2)        NOT NULL,
    [instance_id]    INT             NOT NULL,
    [value]          NVARCHAR (MAX)  NOT NULL,
    [value_text]     VARBINARY (MAX) NULL,
    [file_extension] VARCHAR (5)     NULL,
    [value_name]     AS              CAST (JSON_VALUE([value], '$.Name') AS NVARCHAR (255)),
    [fileextension]  VARCHAR (5)     NULL,
    CONSTRAINT [PK_ASMS_TRANSLATION] PRIMARY KEY CLUSTERED ([trans_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_TRANSLATION].[IX01_ASMS_TRANSLATION]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_TRANSLATION]
    ON [dbo].[ASMS_TRANSLATION]([type_id] ASC, [language_id] ASC, [instance_id] ASC)
    INCLUDE([value_name]);


GO
PRINT N'Creating Index [dbo].[ASMS_TRANSLATION].[IX02_ASMS_TRANSLATION]...';


GO
CREATE NONCLUSTERED INDEX [IX02_ASMS_TRANSLATION]
    ON [dbo].[ASMS_TRANSLATION]([instance_id] ASC, [language_id] ASC, [type_id] ASC)
    INCLUDE([value_name]);


GO
PRINT N'Creating Table [dbo].[ASMS_TYPE_CONDITION]...';


GO
CREATE TABLE [dbo].[ASMS_TYPE_CONDITION] (
    [id]               INT            IDENTITY (1, 1) NOT NULL,
    [depend_condition] NVARCHAR (MAX) NULL,
    [depend_structure] NVARCHAR (MAX) NULL,
    [depend_text]      NVARCHAR (MAX) NULL,
    [type_id]          INT            NOT NULL,
    [data_id]          INT            NOT NULL,
    CONSTRAINT [PK_ASMS_TYPE_CONDITION] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASMS_TYPE_CONDITION] UNIQUE NONCLUSTERED ([type_id] ASC, [data_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_TYPES]...';


GO
CREATE TABLE [dbo].[ASMS_TYPES] (
    [id]   INT           NOT NULL,
    [name] NVARCHAR (50) NOT NULL,
    CONSTRAINT [PK_ASMS_TYPES] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_USER_ACCESS]...';


GO
CREATE TABLE [dbo].[ASMS_USER_ACCESS] (
    [user_id]    INT NOT NULL,
    [project_id] INT NOT NULL,
    [type_id]    INT NOT NULL,
    CONSTRAINT [UX01_ASMS_USER_ACCESS] UNIQUE NONCLUSTERED ([user_id] ASC, [project_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_USER_CACHE]...';


GO
CREATE TABLE [dbo].[ASMS_USER_CACHE] (
    [id]        INT           IDENTITY (1, 1) NOT NULL,
    [type_id]   INT           NOT NULL,
    [user_id]   INT           NOT NULL,
    [date]      DATETIME      NOT NULL,
    [json_data] VARCHAR (MAX) NOT NULL,
    CONSTRAINT [PK_ASMS_USER_CACHE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_USER_EVENTS]...';


GO
CREATE TABLE [dbo].[ASMS_USER_EVENTS] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [event_type]         INT            NOT NULL,
    [user_id]            INT            NOT NULL,
    [data]               NVARCHAR (MAX) NOT NULL,
    [created_date]       DATETIME       NOT NULL,
    [application_module] NVARCHAR (50)  NULL,
    CONSTRAINT [PK_ASMS_USER_EVENTS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_USER_LOCATION]...';


GO
CREATE TABLE [dbo].[ASMS_USER_LOCATION] (
    [user_id]     INT NOT NULL,
    [location_id] INT NOT NULL,
    [is_default]  BIT NOT NULL,
    CONSTRAINT [PK_ASMS_USER_LOCATION] PRIMARY KEY CLUSTERED ([user_id] ASC, [location_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_USER_MOBILE]...';


GO
CREATE TABLE [dbo].[ASMS_USER_MOBILE] (
    [user_id]    INT           NOT NULL,
    [platform]   TINYINT       NOT NULL,
    [token_push] VARCHAR (255) NOT NULL
);


GO
PRINT N'Creating Table [dbo].[ASMS_USER_VENDOR]...';


GO
CREATE TABLE [dbo].[ASMS_USER_VENDOR] (
    [user_id]   INT NOT NULL,
    [VENDOR_ID] INT NOT NULL,
    CONSTRAINT [PK_ASMS_USER_VENDOR] PRIMARY KEY CLUSTERED ([user_id] ASC, [VENDOR_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_VIEW_FILTER]...';


GO
CREATE TABLE [dbo].[ASMS_VIEW_FILTER] (
    [id]                INT           IDENTITY (1, 1) NOT NULL,
    [name]              VARCHAR (255) NOT NULL,
    [user_id]           INT           NOT NULL,
    [type]              TINYINT       NOT NULL,
    [filter]            VARCHAR (MAX) NOT NULL,
    [columns]           VARCHAR (MAX) NOT NULL,
    [creation_date]     DATETIME      NOT NULL,
    [modification_date] DATETIME      NULL,
    CONSTRAINT [PK_ASMS_VIEW_FILTER] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_ASMS_VIEW_FILTER] UNIQUE NONCLUSTERED ([name] ASC, [user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_WEBSERVICES]...';


GO
CREATE TABLE [dbo].[ASMS_WEBSERVICES] (
    [webl_id]      INT             IDENTITY (1, 1) NOT NULL,
    [web_url]      NVARCHAR (4000) NULL,
    [web_method]   INT             NULL,
    [web_item]     INT             NULL,
    [web_value]    NVARCHAR (MAX)  NULL,
    [web_user]     NVARCHAR (250)  NULL,
    [web_password] NVARCHAR (4000) NULL,
    CONSTRAINT [PK_ASMS_WEBSERVICES] PRIMARY KEY CLUSTERED ([webl_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_WIZARD]...';


GO
CREATE TABLE [dbo].[ASMS_WIZARD] (
    [id]          INT            IDENTITY (1, 1) NOT NULL,
    [name]        NVARCHAR (50)  NOT NULL,
    [description] NVARCHAR (250) NULL,
    [is_active]   BIT            NOT NULL,
    CONSTRAINT [PK_ASMS_WIZARD] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_WIZARD_TOUR]...';


GO
CREATE TABLE [dbo].[ASMS_WIZARD_TOUR] (
    [wizard_id]  INT NOT NULL,
    [tour_id]    INT NOT NULL,
    [step_order] INT NOT NULL,
    CONSTRAINT [PK_ASMS_WIZARD_TOUR] PRIMARY KEY CLUSTERED ([wizard_id] ASC, [tour_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASMS_WIZARD_USER]...';


GO
CREATE TABLE [dbo].[ASMS_WIZARD_USER] (
    [id]              INT      IDENTITY (1, 1) NOT NULL,
    [wizard_id]       INT      NOT NULL,
    [user_id]         INT      NOT NULL,
    [current_tour_id] INT      NULL,
    [start_date]      DATETIME NULL,
    [end_date]        DATETIME NULL,
    [is_active]       BIT      NOT NULL,
    CONSTRAINT [PK_ASMS_WIZARD_USER] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_ARTICLE]...';


GO
CREATE TABLE [dbo].[ASS_ARTICLE] (
    [id]                     INT             IDENTITY (1, 1) NOT NULL,
    [state_id]               INT             NOT NULL,
    [hit]                    FLOAT (53)      NULL,
    [rating]                 FLOAT (53)      NULL,
    [identifier]             NVARCHAR (255)  NULL,
    [title]                  NVARCHAR (255)  NOT NULL,
    [description]            NVARCHAR (255)  NULL,
    [content]                NVARCHAR (MAX)  NULL,
    [keyword]                NVARCHAR (255)  NULL,
    [modified_date]          DATETIME        NULL,
    [created_date]           DATETIME        NULL,
    [type_id]                INT             NOT NULL,
    [class_id]               INT             NULL,
    [url]                    NVARCHAR (1000) NULL,
    [is_public]              INT             NULL,
    [author_id]              INT             NOT NULL,
    [responsible_id]         INT             NOT NULL,
    [group_id]               INT             NOT NULL,
    [modifier_id]            INT             NOT NULL,
    [reason_id]              INT             NULL,
    [interface_id]           NVARCHAR (100)  NULL,
    [project_id]             INT             NOT NULL,
    [closed_date]            DATETIME        NULL,
    [previous_status_id]     INT             NULL,
    [integration_id]         INT             NULL,
    [enable_groups_relation] BIT             NULL,
    CONSTRAINT [PK_ASS_ARTICLE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_ASS_ARTICLE] UNIQUE NONCLUSTERED ([project_id] ASC, [title] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASS_ARTICLE].[IND01_ASS_ARTICLE]...';


GO
CREATE NONCLUSTERED INDEX [IND01_ASS_ARTICLE]
    ON [dbo].[ASS_ARTICLE]([project_id] ASC, [type_id] ASC);


GO
PRINT N'Creating Table [dbo].[ASS_ARTICLE_DW]...';


GO
CREATE TABLE [dbo].[ASS_ARTICLE_DW] (
    [id]                     INT             NOT NULL,
    [state_id]               INT             NULL,
    [hit]                    FLOAT (53)      NULL,
    [rating]                 FLOAT (53)      NULL,
    [identifier]             NVARCHAR (255)  NULL,
    [title]                  NVARCHAR (255)  NOT NULL,
    [description]            NVARCHAR (255)  NULL,
    [content]                NVARCHAR (MAX)  NULL,
    [keyword]                NVARCHAR (255)  NULL,
    [modified_date]          DATETIME        NOT NULL,
    [created_date]           DATETIME        NULL,
    [type_id]                INT             NULL,
    [class_id]               INT             NULL,
    [url]                    NVARCHAR (1000) NULL,
    [is_public]              INT             NULL,
    [author_id]              INT             NULL,
    [responsible_id]         INT             NULL,
    [group_id]               INT             NULL,
    [modifier_id]            INT             NULL,
    [reason_id]              INT             NULL,
    [interface_id]           NVARCHAR (100)  NULL,
    [project_id]             INT             NULL,
    [closed_date]            DATETIME        NULL,
    [previous_status_id]     INT             NULL,
    [integration_id]         INT             NULL,
    [state_name]             NVARCHAR (255)  NULL,
    [state_color]            NVARCHAR (255)  NULL,
    [state_final]            INT             NULL,
    [type_name]              NVARCHAR (255)  NULL,
    [reason_name]            NVARCHAR (255)  NULL,
    [responsible_name]       NVARCHAR (255)  NULL,
    [group_name]             NVARCHAR (255)  NULL,
    [author_name]            NVARCHAR (255)  NULL,
    [modifier_name]          NVARCHAR (255)  NULL,
    [project_name]           NVARCHAR (255)  NULL,
    [note]                   NVARCHAR (MAX)  NULL,
    [enable_groups_relation] BIT             NULL,
    CONSTRAINT [PK_ASS_ARTICLE_DW] PRIMARY KEY CLUSTERED ([id] ASC, [modified_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_ARTICLE_DW_LAST]...';


GO
CREATE TABLE [dbo].[ASS_ARTICLE_DW_LAST] (
    [id]                     INT             NOT NULL,
    [state_id]               INT             NULL,
    [hit]                    FLOAT (53)      NULL,
    [rating]                 FLOAT (53)      NULL,
    [identifier]             NVARCHAR (255)  NULL,
    [title]                  NVARCHAR (255)  NOT NULL,
    [description]            NVARCHAR (255)  NULL,
    [content]                NVARCHAR (MAX)  NULL,
    [keyword]                NVARCHAR (255)  NULL,
    [modified_date]          DATETIME        NULL,
    [created_date]           DATETIME        NULL,
    [type_id]                INT             NULL,
    [class_id]               INT             NULL,
    [url]                    NVARCHAR (1000) NULL,
    [is_public]              INT             NULL,
    [author_id]              INT             NULL,
    [responsible_id]         INT             NULL,
    [group_id]               INT             NULL,
    [modifier_id]            INT             NULL,
    [reason_id]              INT             NULL,
    [interface_id]           NVARCHAR (100)  NULL,
    [project_id]             INT             NULL,
    [closed_date]            DATETIME        NULL,
    [previous_status_id]     INT             NULL,
    [integration_id]         INT             NULL,
    [state_name]             NVARCHAR (255)  NULL,
    [state_color]            NVARCHAR (255)  NULL,
    [state_final]            INT             NULL,
    [type_name]              NVARCHAR (255)  NULL,
    [reason_name]            NVARCHAR (255)  NULL,
    [responsible_name]       NVARCHAR (255)  NULL,
    [group_name]             NVARCHAR (255)  NULL,
    [author_name]            NVARCHAR (255)  NULL,
    [modifier_name]          NVARCHAR (255)  NULL,
    [project_name]           NVARCHAR (255)  NULL,
    [note]                   NVARCHAR (255)  NULL,
    [enable_groups_relation] BIT             NULL,
    CONSTRAINT [PK_ASS_ARTICLE_DW_LAST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_ARTICLE_GROUP]...';


GO
CREATE TABLE [dbo].[ASS_ARTICLE_GROUP] (
    [article_id] INT NOT NULL,
    [group_id]   INT NOT NULL,
    [type_id]    INT NOT NULL,
    CONSTRAINT [PK_ASS_ARTICLE_GROUP] PRIMARY KEY CLUSTERED ([article_id] ASC, [group_id] ASC, [type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_ARTICLE_SELF]...';


GO
CREATE TABLE [dbo].[ASS_ARTICLE_SELF] (
    [arse_article_parent] INT      NOT NULL,
    [arse_article_child]  INT      NOT NULL,
    [relation_type_id]    INT      NOT NULL,
    [author_id]           INT      NULL,
    [created_date]        DATETIME NULL,
    CONSTRAINT [PK_ASS_ARTICLE_SELF] PRIMARY KEY CLUSTERED ([arse_article_parent] ASC, [arse_article_child] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_ARTICLE_SELF_CLOSED]...';


GO
CREATE TABLE [dbo].[ASS_ARTICLE_SELF_CLOSED] (
    [arse_article_parent] INT      NOT NULL,
    [arse_article_child]  INT      NOT NULL,
    [relation_type_id]    INT      NOT NULL,
    [author_id]           INT      NULL,
    [created_date]        DATETIME NULL,
    CONSTRAINT [PK_ASS_ARTICLE_SELF_CLOSED] PRIMARY KEY CLUSTERED ([arse_article_parent] ASC, [arse_article_child] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_ARTICLE_SELF_DW]...';


GO
CREATE TABLE [dbo].[ASS_ARTICLE_SELF_DW] (
    [arse_article_parent]  INT            NOT NULL,
    [arse_article_child]   INT            NOT NULL,
    [relation_type_id]     INT            NOT NULL,
    [author_id]            INT            NULL,
    [created_date]         DATETIME       NOT NULL,
    [relation_source_name] NVARCHAR (255) NULL,
    [relation_target_name] NVARCHAR (255) NULL,
    [author_name]          NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASS_ARTICLE_SELF_DW] PRIMARY KEY CLUSTERED ([arse_article_parent] ASC, [arse_article_child] ASC, [relation_type_id] ASC, [created_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_ARTICLE_VERSION]...';


GO
CREATE TABLE [dbo].[ASS_ARTICLE_VERSION] (
    [id]           INT             NOT NULL,
    [identifier]   NVARCHAR (255)  NULL,
    [title]        NVARCHAR (255)  NOT NULL,
    [description]  NVARCHAR (255)  NULL,
    [content]      NVARCHAR (MAX)  NULL,
    [keyword]      NVARCHAR (255)  NULL,
    [created_date] DATETIME        NULL,
    [version]      INT             NOT NULL,
    [is_active]    BIT             NOT NULL,
    [url]          NVARCHAR (1000) NULL,
    [is_public]    BIT             NOT NULL,
    [rating]       FLOAT (53)      NULL,
    CONSTRAINT [PK_ASS_ARTICLE_VERSION] PRIMARY KEY CLUSTERED ([id] ASC, [version] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_CI_ARTICLE]...';


GO
CREATE TABLE [dbo].[ASS_CI_ARTICLE] (
    [ciar_ci_id]       INT      NOT NULL,
    [ciar_article_id]  INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASS_CI_ARTICLE] PRIMARY KEY CLUSTERED ([ciar_ci_id] ASC, [ciar_article_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_CI_ARTICLE_CLOSED]...';


GO
CREATE TABLE [dbo].[ASS_CI_ARTICLE_CLOSED] (
    [ciar_ci_id]       INT      NOT NULL,
    [ciar_article_id]  INT      NOT NULL,
    [relation_type_id] INT      NOT NULL,
    [author_id]        INT      NULL,
    [created_date]     DATETIME NULL,
    CONSTRAINT [PK_ASS_CI_ARTICLE_CLOSED] PRIMARY KEY CLUSTERED ([ciar_ci_id] ASC, [ciar_article_id] ASC, [relation_type_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_CI_ARTICLE_DW]...';


GO
CREATE TABLE [dbo].[ASS_CI_ARTICLE_DW] (
    [ciar_ci_id]           INT            NOT NULL,
    [ciar_article_id]      INT            NOT NULL,
    [relation_type_id]     INT            NOT NULL,
    [author_id]            INT            NULL,
    [created_date]         DATETIME       NOT NULL,
    [relation_source_name] NVARCHAR (255) NULL,
    [relation_target_name] NVARCHAR (255) NULL,
    [author_name]          NVARCHAR (255) NULL,
    CONSTRAINT [PK_ASS_CI_ARTICLE_DW] PRIMARY KEY CLUSTERED ([ciar_ci_id] ASC, [ciar_article_id] ASC, [relation_type_id] ASC, [created_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_FAVORITE]...';


GO
CREATE TABLE [dbo].[ASS_FAVORITE] (
    [favo_user_id]    INT NOT NULL,
    [favo_article_id] INT NOT NULL,
    CONSTRAINT [PK_ASS_FAVORITE] PRIMARY KEY CLUSTERED ([favo_user_id] ASC, [favo_article_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_HIT]...';


GO
CREATE TABLE [dbo].[ASS_HIT] (
    [FL_INT_SOLUTION_ID]  INT      NOT NULL,
    [FL_INT_USER_ID]      INT      NOT NULL,
    [FL_DATE_HIT_CREATED] DATETIME NOT NULL,
    CONSTRAINT [PK_ASS_HIT] PRIMARY KEY CLUSTERED ([FL_INT_SOLUTION_ID] ASC, [FL_INT_USER_ID] ASC, [FL_DATE_HIT_CREATED] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_KEYWORD]...';


GO
CREATE TABLE [dbo].[ASS_KEYWORD] (
    [keyw_idx_catalog_id] INT             IDENTITY (1, 1) NOT NULL,
    [keyw_word]           NVARCHAR (4000) NULL,
    [keyw_solution_id]    INT             NOT NULL,
    [keyw_public]         INT             NOT NULL,
    [keyw_relevance]      INT             NOT NULL,
    [keyw_lru]            DATETIME        NOT NULL,
    CONSTRAINT [PK_ASS_KEYWORD] PRIMARY KEY CLUSTERED ([keyw_idx_catalog_id] ASC),
    CONSTRAINT [UK01_ASS_KEYWORD] UNIQUE NONCLUSTERED ([keyw_word] ASC, [keyw_solution_id] ASC) ON [PRIMARY]
);


GO
PRINT N'Creating Table [dbo].[ASS_RATING]...';


GO
CREATE TABLE [dbo].[ASS_RATING] (
    [FL_INT_SOLUTION_ID]     INT            NOT NULL,
    [FL_INT_USER_ID]         INT            NOT NULL,
    [FL_DATE_RATING_CREATED] DATETIME       NOT NULL,
    [FL_INT_RATING]          INT            NOT NULL,
    [FL_STR_RATING_COMMENT]  NVARCHAR (255) NULL,
    [VERSION]                INT            NOT NULL,
    CONSTRAINT [PK_ASS_RATING] PRIMARY KEY CLUSTERED ([FL_INT_SOLUTION_ID] ASC, [FL_INT_USER_ID] ASC, [VERSION] ASC)
);


GO
PRINT N'Creating Table [dbo].[ASS_SEARCH_RESULT]...';


GO
CREATE TABLE [dbo].[ASS_SEARCH_RESULT] (
    [sere_id]          INT             IDENTITY (1, 1) NOT NULL,
    [sere_user_id]     INT             NOT NULL,
    [sere_category_id] INT             NULL,
    [sere_type_id]     INT             NULL,
    [sere_project_id]  INT             NOT NULL,
    [sere_word]        NVARCHAR (4000) NOT NULL,
    [sere_first_date]  DATETIME        NOT NULL,
    [sere_last_date]   DATETIME        NOT NULL,
    [sere_counter]     INT             NULL
);


GO
PRINT N'Creating Index [dbo].[ASS_SEARCH_RESULT].[PK_ASS_SEARCH_RESULT]...';


GO
CREATE UNIQUE NONCLUSTERED INDEX [PK_ASS_SEARCH_RESULT]
    ON [dbo].[ASS_SEARCH_RESULT]([sere_user_id] ASC, [sere_category_id] ASC, [sere_type_id] ASC, [sere_project_id] ASC, [sere_word] ASC);


GO
PRINT N'Creating Table [dbo].[AVS_AUDIT]...';


GO
CREATE TABLE [dbo].[AVS_AUDIT] (
    [audit_user_id]          INT      NOT NULL,
    [audit_device_id]        INT      NOT NULL,
    [audit_group_support_id] INT      NULL,
    [module]                 INT      NOT NULL,
    [action]                 INT      NOT NULL,
    [date_key]               INT      NOT NULL,
    [time_key]               INT      NOT NULL,
    [creation_date]          DATETIME NOT NULL,
    CONSTRAINT [PK01_AVS_AUDIT] PRIMARY KEY CLUSTERED ([audit_user_id] ASC, [audit_device_id] ASC, [module] ASC, [action] ASC, [date_key] ASC, [time_key] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_AUDIT_DEVICE]...';


GO
CREATE TABLE [dbo].[AVS_AUDIT_DEVICE] (
    [id]               INT           IDENTITY (1, 1) NOT NULL,
    [device_id]        INT           NOT NULL,
    [hardware_hash]    NVARCHAR (80) NOT NULL,
    [name]             NVARCHAR (60) NOT NULL,
    [model]            NVARCHAR (60) NOT NULL,
    [operating_system] NVARCHAR (60) NOT NULL,
    [serial_number]    VARCHAR (60)  NOT NULL,
    [type]             NVARCHAR (60) NOT NULL,
    [start_date]       DATETIME      NOT NULL,
    [end_date]         DATETIME      NULL,
    [is_current]       BIT           NOT NULL,
    CONSTRAINT [PK01_AVS_AUDIT_DEVICE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AVS_AUDIT_DEVICE].[IX_AVS_AUDIT_DEVICE]...';


GO
CREATE NONCLUSTERED INDEX [IX_AVS_AUDIT_DEVICE]
    ON [dbo].[AVS_AUDIT_DEVICE]([is_current] DESC);


GO
PRINT N'Creating Table [dbo].[AVS_AUDIT_FILE_LIST]...';


GO
CREATE TABLE [dbo].[AVS_AUDIT_FILE_LIST] (
    [audit_user_id]          INT             NOT NULL,
    [audit_device_id]        INT             NOT NULL,
    [audit_group_support_id] INT             NULL,
    [action]                 INT             NOT NULL,
    [date_key]               INT             NOT NULL,
    [time_key]               INT             NOT NULL,
    [creation_date]          DATETIME        NOT NULL,
    [message]                NVARCHAR (4000) NULL,
    [directory]              NVARCHAR (4000) NOT NULL,
    [source]                 BIT             NOT NULL,
    CONSTRAINT [PK01_AVS_AUDIT_FILE_LIST] PRIMARY KEY CLUSTERED ([audit_user_id] ASC, [audit_device_id] ASC, [action] ASC, [date_key] ASC, [time_key] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_AUDIT_FILE_TRANSFER]...';


GO
CREATE TABLE [dbo].[AVS_AUDIT_FILE_TRANSFER] (
    [audit_user_id]          INT             NOT NULL,
    [audit_device_id]        INT             NOT NULL,
    [audit_group_support_id] INT             NULL,
    [action]                 INT             NOT NULL,
    [date_key]               INT             NOT NULL,
    [time_key]               INT             NOT NULL,
    [creation_date]          DATETIME        NOT NULL,
    [target_path]            NVARCHAR (4000) NOT NULL,
    [source_path]            NVARCHAR (4000) NOT NULL,
    [file_name]              NVARCHAR (4000) NOT NULL,
    [mode]                   BIT             NOT NULL,
    CONSTRAINT [PK01_AVS_AUDIT_FILE_TRANSFER] PRIMARY KEY CLUSTERED ([audit_user_id] ASC, [audit_device_id] ASC, [action] ASC, [date_key] ASC, [time_key] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_AUDIT_GROUP_SUPPORT]...';


GO
CREATE TABLE [dbo].[AVS_AUDIT_GROUP_SUPPORT] (
    [id]                 INT            IDENTITY (1, 1) NOT NULL,
    [group_support_id]   INT            NOT NULL,
    [name]               NVARCHAR (60)  NOT NULL,
    [code]               VARCHAR (40)   NOT NULL,
    [description]        NVARCHAR (255) NOT NULL,
    [session_support]    BIT            NOT NULL,
    [parent_id]          INT            NULL,
    [name_parent]        NVARCHAR (60)  NULL,
    [description_parent] NVARCHAR (255) NULL,
    [start_date]         DATETIME       NOT NULL,
    [end_date]           DATETIME       NULL,
    [is_current]         BIT            NOT NULL,
    CONSTRAINT [PK01_AVS_AUDIT_GROUP_SUPPORT] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AVS_AUDIT_GROUP_SUPPORT].[IX_AVS_AUDIT_GROUP_SUPPORT]...';


GO
CREATE NONCLUSTERED INDEX [IX_AVS_AUDIT_GROUP_SUPPORT]
    ON [dbo].[AVS_AUDIT_GROUP_SUPPORT]([is_current] DESC);


GO
PRINT N'Creating Table [dbo].[AVS_AUDIT_RECORDING]...';


GO
CREATE TABLE [dbo].[AVS_AUDIT_RECORDING] (
    [audit_user_id]          INT          NOT NULL,
    [audit_device_id]        INT          NOT NULL,
    [audit_group_support_id] INT          NULL,
    [date_key]               INT          NOT NULL,
    [time_key]               INT          NOT NULL,
    [creation_date]          DATETIME     NOT NULL,
    [start_date_key]         INT          NOT NULL,
    [start_time_key]         INT          NOT NULL,
    [start_datetime]         DATETIME     NOT NULL,
    [end_date_key]           INT          NOT NULL,
    [end_time_key]           INT          NOT NULL,
    [end_datetime]           DATETIME     NOT NULL,
    [file_name]              VARCHAR (40) NOT NULL,
    CONSTRAINT [PK01_AVS_AUDIT_RECORDING] PRIMARY KEY CLUSTERED ([audit_user_id] ASC, [audit_device_id] ASC, [date_key] ASC, [time_key] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_AUDIT_USERS]...';


GO
CREATE TABLE [dbo].[AVS_AUDIT_USERS] (
    [id]             INT            IDENTITY (1, 1) NOT NULL,
    [user_id]        INT            NOT NULL,
    [user_name]      NVARCHAR (255) NOT NULL,
    [user_nick_name] NVARCHAR (255) NULL,
    [user_phone1]    NVARCHAR (255) NULL,
    [user_email]     NVARCHAR (255) NULL,
    [start_date]     DATETIME       NOT NULL,
    [end_date]       DATETIME       NULL,
    [is_current]     BIT            NOT NULL,
    CONSTRAINT [PK_AVS_AUDIT_USERS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Index [dbo].[AVS_AUDIT_USERS].[IX_AVS_AUDIT_USERS]...';


GO
CREATE NONCLUSTERED INDEX [IX_AVS_AUDIT_USERS]
    ON [dbo].[AVS_AUDIT_USERS]([is_current] DESC);


GO
PRINT N'Creating Table [dbo].[AVS_DEVICE]...';


GO
CREATE TABLE [dbo].[AVS_DEVICE] (
    [id]                INT           IDENTITY (1, 1) NOT NULL,
    [hardware_hash]     NVARCHAR (80) NOT NULL,
    [name]              NVARCHAR (60) NOT NULL,
    [model]             NVARCHAR (60) NOT NULL,
    [operating_system]  NVARCHAR (60) NOT NULL,
    [serial_number]     VARCHAR (60)  NOT NULL,
    [status]            INT           NOT NULL,
    [type]              NVARCHAR (60) NOT NULL,
    [modification_date] DATETIME      NOT NULL,
    [version]           VARCHAR (100) NULL,
    CONSTRAINT [PK01_AVS_DEVICE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_AVS_DEVICE] UNIQUE NONCLUSTERED ([hardware_hash] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_DEVICE_GROUP_SUPPORT]...';


GO
CREATE TABLE [dbo].[AVS_DEVICE_GROUP_SUPPORT] (
    [id]               INT IDENTITY (1, 1) NOT NULL,
    [device_id]        INT NOT NULL,
    [group_support_id] INT NOT NULL,
    CONSTRAINT [PK01_AVS_DEVICE_GROUP_SUPPORT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_AVS_DEVICE_GROUP_SUPPORT] UNIQUE NONCLUSTERED ([device_id] ASC, [group_support_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_DEVICE_LICENSE]...';


GO
CREATE TABLE [dbo].[AVS_DEVICE_LICENSE] (
    [id]         INT          IDENTITY (1, 1) NOT NULL,
    [license_id] INT          NOT NULL,
    [device_id]  INT          NOT NULL,
    [token]      VARCHAR (40) NOT NULL,
    CONSTRAINT [PK01_AVS_DEVICE_LICENSE] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_AVS_DEVICE_LICENSE] UNIQUE NONCLUSTERED ([device_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_GROUP_SUPPORT]...';


GO
CREATE TABLE [dbo].[AVS_GROUP_SUPPORT] (
    [id]              INT            IDENTITY (1, 1) NOT NULL,
    [name]            NVARCHAR (60)  NOT NULL,
    [parent]          INT            NULL,
    [code]            VARCHAR (40)   NOT NULL,
    [description]     NVARCHAR (255) NOT NULL,
    [session_support] BIT            NOT NULL,
    CONSTRAINT [PK01_AVS_GROUP_SUPPORT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_AVS_GROUP_SUPPORT] UNIQUE NONCLUSTERED ([name] ASC, [parent] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_GROUP_SUPPORT_PERMISSION]...';


GO
CREATE TABLE [dbo].[AVS_GROUP_SUPPORT_PERMISSION] (
    [id]               INT IDENTITY (1, 1) NOT NULL,
    [group_support_id] INT NOT NULL,
    [user_id]          INT NULL,
    [group_user_id]    INT NULL,
    CONSTRAINT [PK01_AVS_GROUP_SUPPORT_PERMISSION] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_AVS_GROUP_SUPPORT_PERMISSION] UNIQUE NONCLUSTERED ([group_support_id] ASC, [user_id] ASC, [group_user_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_LICENSE_COUNT]...';


GO
CREATE TABLE [dbo].[AVS_LICENSE_COUNT] (
    [id]          INT IDENTITY (1, 1) NOT NULL,
    [type]        INT NOT NULL,
    [license_id]  INT NOT NULL,
    [total_count] INT NOT NULL,
    [row_count]   INT NOT NULL,
    CONSTRAINT [PK01_AVS_LICENSE_COUNT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_AVS_LICENSE_COUNT] UNIQUE NONCLUSTERED ([type] ASC, [license_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_PROFILE_AGENT]...';


GO
CREATE TABLE [dbo].[AVS_PROFILE_AGENT] (
    [id]                INT           IDENTITY (1, 1) NOT NULL,
    [name]              NVARCHAR (50) NOT NULL,
    [code]              VARCHAR (40)  NOT NULL,
    [password]          NVARCHAR (50) NOT NULL,
    [confirm_user]      BIT           NOT NULL,
    [one_time_password] BIT           NOT NULL,
    [creation_date]     DATETIME      NOT NULL,
    [modification_date] DATETIME      NOT NULL,
    CONSTRAINT [PK01_AVS_PROFILE_AGENT] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX01_AVS_PROFILE_AGENT] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[AVS_SESSION]...';


GO
CREATE TABLE [dbo].[AVS_SESSION] (
    [id]              INT      IDENTITY (1, 1) NOT NULL,
    [device_id]       INT      NOT NULL,
    [user_id]         INT      NOT NULL,
    [expiration_date] DATETIME NULL,
    [license_id]      INT      NULL,
    CONSTRAINT [PK01_AVS_SESSION] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_AUDIT]...';


GO
CREATE TABLE [dbo].[CMDB_AUDIT] (
    [FL_INT_AUDIT_ID]       INT             IDENTITY (1, 1) NOT NULL,
    [FL_STR_DESCRIPTION]    NVARCHAR (4000) NULL,
    [FL_DAT_AUDITSTART]     DATETIME        NULL,
    [FL_DAT_AUDITEND]       DATETIME        NULL,
    [FL_INT_LIMIT_DAYS]     INT             NULL,
    [FL_INT_RESPONSIBLE_ID] INT             NULL,
    [FL_BOL_HASALARM]       BIT             NOT NULL,
    [projectid]             INT             NULL,
    [name]                  NVARCHAR (50)   NULL,
    [template_id]           INT             NULL,
    [aud_modified_date]     DATETIME        NULL,
    [aud_modifier_id]       INT             NULL,
    [schedule_flag]         BIT             NOT NULL,
    CONSTRAINT [PK_CMDB_AUDIT] PRIMARY KEY CLUSTERED ([FL_INT_AUDIT_ID] ASC),
    CONSTRAINT [UX_CMDB_AUDIT] UNIQUE NONCLUSTERED ([name] ASC, [projectid] ASC)
);


GO
PRINT N'Creating Index [dbo].[CMDB_AUDIT].[IND01_CMDB_AUDIT]...';


GO
CREATE NONCLUSTERED INDEX [IND01_CMDB_AUDIT]
    ON [dbo].[CMDB_AUDIT]([FL_INT_RESPONSIBLE_ID] ASC);


GO
PRINT N'Creating Table [dbo].[CMDB_BASELINE]...';


GO
CREATE TABLE [dbo].[CMDB_BASELINE] (
    [cibl_id]          INT            IDENTITY (1, 1) NOT NULL,
    [cibl_userid]      INT            NULL,
    [cibl_created]     DATETIME       NULL,
    [cibl_description] NVARCHAR (MAX) NULL,
    CONSTRAINT [PK_CMDB_BASELINE] PRIMARY KEY CLUSTERED ([cibl_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[CMDB_BASELINE].[IND01_CMDB_BASELINE]...';


GO
CREATE NONCLUSTERED INDEX [IND01_CMDB_BASELINE]
    ON [dbo].[CMDB_BASELINE]([cibl_userid] ASC);


GO
PRINT N'Creating Table [dbo].[CMDB_CI]...';


GO
CREATE TABLE [dbo].[CMDB_CI] (
    [id]                  INT             IDENTITY (1, 1) NOT NULL,
    [barcode]             NVARCHAR (200)  NULL,
    [rfid]                NVARCHAR (200)  NULL,
    [name]                NVARCHAR (200)  NOT NULL,
    [state_id]            INT             NULL,
    [model_id]            INT             NULL,
    [serial]              NVARCHAR (80)   NULL,
    [asset_tag]           NVARCHAR (200)  NULL,
    [price]               NUMERIC (17, 2) NULL,
    [impact_id]           INT             NULL,
    [description]         NVARCHAR (1000) NULL,
    [category_id]         INT             NULL,
    [brand_id]            INT             NULL,
    [manufacturer_id]     INT             NULL,
    [provider_id]         INT             NULL,
    [unit_id]             INT             NULL,
    [unit_size]           NVARCHAR (70)   NULL,
    [installation_date]   DATETIME        NULL,
    [responsible_id]      INT             NULL,
    [reponsible_date]     DATETIME        NULL,
    [checkin_date]        DATETIME        NULL,
    [accept_date]         DATETIME        NULL,
    [license_number]      NVARCHAR (100)  NULL,
    [useful_life]         INT             NULL,
    [depreciation_method] INT             NULL,
    [residual_value]      NUMERIC (17, 2) NULL,
    [checkout_date]       DATETIME        NULL,
    [image_file_name]     NVARCHAR (500)  NULL,
    [costcenter_id]       INT             NULL,
    [created_date]        DATETIME        NULL,
    [modified_date]       DATETIME        NULL,
    [modifier_id]         INT             NULL,
    [author_id]           INT             NULL,
    [version]             INT             NULL,
    [interface_id]        NVARCHAR (100)  NULL,
    [type_id]             INT             NULL,
    [reason_id]           INT             NULL,
    [closed_date]         DATETIME        NULL,
    [previous_status_id]  INT             NULL,
    [risk_level]          INT             NULL,
    [integration_id]      INT             NULL,
    [location_id]         INT             NULL,
    [file_id]             INT             NULL,
    [group_id]            INT             NULL,
    CONSTRAINT [PK_CMDB_CI] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UX_CMDB_CI] UNIQUE NONCLUSTERED ([name] ASC, [integration_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[CMDB_CI].[IND01_CMDB_CI]...';


GO
CREATE NONCLUSTERED INDEX [IND01_CMDB_CI]
    ON [dbo].[CMDB_CI]([responsible_id] ASC);


GO
PRINT N'Creating Index [dbo].[CMDB_CI].[IND02_CMDB_CI]...';


GO
CREATE NONCLUSTERED INDEX [IND02_CMDB_CI]
    ON [dbo].[CMDB_CI]([category_id] ASC);


GO
PRINT N'Creating Index [dbo].[CMDB_CI].[IND04_CMDB_CI]...';


GO
CREATE NONCLUSTERED INDEX [IND04_CMDB_CI]
    ON [dbo].[CMDB_CI]([state_id] ASC);


GO
PRINT N'Creating Index [dbo].[CMDB_CI].[IND05_CMDB_CI]...';


GO
CREATE NONCLUSTERED INDEX [IND05_CMDB_CI]
    ON [dbo].[CMDB_CI]([brand_id] ASC);


GO
PRINT N'Creating Index [dbo].[CMDB_CI].[IND06_CMDB_CI]...';


GO
CREATE NONCLUSTERED INDEX [IND06_CMDB_CI]
    ON [dbo].[CMDB_CI]([model_id] ASC);


GO
PRINT N'Creating Index [dbo].[CMDB_CI].[IND07_CMDB_CI]...';


GO
CREATE NONCLUSTERED INDEX [IND07_CMDB_CI]
    ON [dbo].[CMDB_CI]([costcenter_id] ASC);


GO
PRINT N'Creating Index [dbo].[CMDB_CI].[IND08_CMDB_CI]...';


GO
CREATE NONCLUSTERED INDEX [IND08_CMDB_CI]
    ON [dbo].[CMDB_CI]([interface_id] ASC);


GO
PRINT N'Creating Index [dbo].[CMDB_CI].[IX01_CMDB_CI]...';


GO
CREATE NONCLUSTERED INDEX [IX01_CMDB_CI]
    ON [dbo].[CMDB_CI]([reason_id] ASC);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_AUDIT]...';


GO
CREATE TABLE [dbo].[CMDB_CI_AUDIT] (
    [ci_ciid]    INT NOT NULL,
    [ci_auditid] INT NOT NULL,
    CONSTRAINT [PK_CMDB_CI_AUDIT] PRIMARY KEY CLUSTERED ([ci_ciid] ASC, [ci_auditid] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_BASELINE]...';


GO
CREATE TABLE [dbo].[CMDB_CI_BASELINE] (
    [ci_id]       INT NOT NULL,
    [baseline_id] INT NOT NULL,
    CONSTRAINT [PK_CMDB_CI_BASELINE] PRIMARY KEY CLUSTERED ([ci_id] ASC, [baseline_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_CI]...';


GO
CREATE TABLE [dbo].[CMDB_CI_CI] (
    [FL_INT_CI_PARENT_ID]    INT      NOT NULL,
    [FL_INT_CI_CHILD_ID]     INT      NOT NULL,
    [FL_STR_RELATIONTYPE_ID] INT      NOT NULL,
    [author_id]              INT      NULL,
    [created_date]           DATETIME NULL,
    CONSTRAINT [PK_CMDB_CI_CI] PRIMARY KEY CLUSTERED ([FL_INT_CI_PARENT_ID] ASC, [FL_INT_CI_CHILD_ID] ASC, [FL_STR_RELATIONTYPE_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_CI_CLOSED]...';


GO
CREATE TABLE [dbo].[CMDB_CI_CI_CLOSED] (
    [FL_INT_CI_PARENT_ID]    INT      NOT NULL,
    [FL_INT_CI_CHILD_ID]     INT      NOT NULL,
    [FL_STR_RELATIONTYPE_ID] INT      NOT NULL,
    [author_id]              INT      NULL,
    [created_date]           DATETIME NULL,
    CONSTRAINT [PK_CMDB_CI_CI_CLOSED] PRIMARY KEY CLUSTERED ([FL_INT_CI_PARENT_ID] ASC, [FL_INT_CI_CHILD_ID] ASC, [FL_STR_RELATIONTYPE_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_CI_DW]...';


GO
CREATE TABLE [dbo].[CMDB_CI_CI_DW] (
    [FL_INT_CI_PARENT_ID]    INT            NOT NULL,
    [FL_INT_CI_CHILD_ID]     INT            NOT NULL,
    [FL_STR_RELATIONTYPE_ID] INT            NOT NULL,
    [author_id]              INT            NULL,
    [created_date]           DATETIME       NOT NULL,
    [relation_source_name]   NVARCHAR (255) NULL,
    [relation_target_name]   NVARCHAR (255) NULL,
    [author_name]            NVARCHAR (255) NULL,
    CONSTRAINT [PK_CMDB_CI_CI_DW] PRIMARY KEY CLUSTERED ([FL_INT_CI_PARENT_ID] ASC, [FL_INT_CI_CHILD_ID] ASC, [FL_STR_RELATIONTYPE_ID] ASC, [created_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_CI_HIST]...';


GO
CREATE TABLE [dbo].[CMDB_CI_CI_HIST] (
    [FL_INT_CI_PARENT_ID]    INT      NOT NULL,
    [FL_INT_CI_CHILD_ID]     INT      NOT NULL,
    [fl_int_bl_id]           INT      NOT NULL,
    [FL_STR_RELATIONTYPE_ID] INT      NOT NULL,
    [author_id]              INT      NULL,
    [created_date]           DATETIME NULL,
    CONSTRAINT [PK_CMDB_CI_CI_HIST] PRIMARY KEY CLUSTERED ([FL_INT_CI_PARENT_ID] ASC, [FL_INT_CI_CHILD_ID] ASC, [fl_int_bl_id] ASC, [FL_STR_RELATIONTYPE_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_CONTRACT]...';


GO
CREATE TABLE [dbo].[CMDB_CI_CONTRACT] (
    [FL_INT_COUNTABLESUPPORT_ID] INT NOT NULL,
    [FL_INT_CI_ID]               INT NOT NULL
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_CONTRACT_CLOSED]...';


GO
CREATE TABLE [dbo].[CMDB_CI_CONTRACT_CLOSED] (
    [FL_INT_COUNTABLESUPPORT_ID] INT NOT NULL,
    [FL_INT_CI_ID]               INT NOT NULL
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_DW]...';


GO
CREATE TABLE [dbo].[CMDB_CI_DW] (
    [id]                  INT             NOT NULL,
    [barcode]             NVARCHAR (200)  NULL,
    [rfid]                NVARCHAR (200)  NULL,
    [name]                NVARCHAR (200)  NOT NULL,
    [state_id]            INT             NULL,
    [model_id]            INT             NULL,
    [serial]              NVARCHAR (80)   NULL,
    [asset_tag]           NVARCHAR (200)  NULL,
    [price]               NUMERIC (17, 2) NULL,
    [impact_id]           INT             NULL,
    [description]         NVARCHAR (1000) NULL,
    [category_id]         INT             NULL,
    [brand_id]            INT             NULL,
    [manufacturer_id]     INT             NULL,
    [provider_id]         INT             NULL,
    [unit_id]             INT             NULL,
    [unit_size]           NVARCHAR (70)   NULL,
    [installation_date]   DATETIME        NULL,
    [responsible_id]      INT             NULL,
    [reponsible_date]     DATETIME        NULL,
    [checkin_date]        DATETIME        NULL,
    [accept_date]         DATETIME        NULL,
    [license_number]      NVARCHAR (100)  NULL,
    [useful_life]         INT             NULL,
    [depreciation_method] INT             NULL,
    [residual_value]      NUMERIC (17, 2) NULL,
    [checkout_date]       DATETIME        NULL,
    [image_file_name]     NVARCHAR (500)  NULL,
    [costcenter_id]       INT             NULL,
    [created_date]        DATETIME        NULL,
    [modified_date]       DATETIME        NOT NULL,
    [modifier_id]         INT             NULL,
    [author_id]           INT             NULL,
    [version]             INT             NULL,
    [interface_id]        NVARCHAR (100)  NULL,
    [type_id]             INT             NULL,
    [reason_id]           INT             NULL,
    [closed_date]         DATETIME        NULL,
    [previous_status_id]  INT             NULL,
    [risk_level]          INT             NULL,
    [integration_id]      INT             NULL,
    [state_name]          NVARCHAR (200)  NULL,
    [responsible_name]    NVARCHAR (200)  NULL,
    [reason_name]         NVARCHAR (200)  NULL,
    [provider_name]       NVARCHAR (200)  NULL,
    [manufacturer_name]   NVARCHAR (200)  NULL,
    [state_color]         NVARCHAR (200)  NULL,
    [state_final]         INT             NULL,
    [model_name]          NVARCHAR (200)  NULL,
    [impact_name]         NVARCHAR (200)  NULL,
    [category_name]       NVARCHAR (200)  NULL,
    [brand_name]          NVARCHAR (200)  NULL,
    [costcenter_name]     NVARCHAR (200)  NULL,
    [category_image]      NVARCHAR (MAX)  NULL,
    [author_name]         NVARCHAR (255)  NULL,
    [modifier_name]       NVARCHAR (255)  NULL,
    [type_name]           NVARCHAR (255)  NULL,
    [unit_name]           NVARCHAR (255)  NULL,
    [note]                NVARCHAR (MAX)  NULL,
    [location_id]         INT             NULL,
    [file_id]             INT             NULL,
    [group_id]            INT             NULL,
    [group_name]          NVARCHAR (256)  NULL,
    CONSTRAINT [PK_CMDB_CI_DW] PRIMARY KEY CLUSTERED ([id] ASC, [modified_date] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_DW_LAST]...';


GO
CREATE TABLE [dbo].[CMDB_CI_DW_LAST] (
    [id]                  INT             NOT NULL,
    [barcode]             NVARCHAR (200)  NULL,
    [rfid]                NVARCHAR (200)  NULL,
    [name]                NVARCHAR (200)  NOT NULL,
    [state_id]            INT             NULL,
    [model_id]            INT             NULL,
    [serial]              NVARCHAR (80)   NULL,
    [asset_tag]           NVARCHAR (200)  NULL,
    [price]               NUMERIC (17, 2) NULL,
    [impact_id]           INT             NULL,
    [description]         NVARCHAR (1000) NULL,
    [category_id]         INT             NULL,
    [brand_id]            INT             NULL,
    [manufacturer_id]     INT             NULL,
    [provider_id]         INT             NULL,
    [unit_id]             INT             NULL,
    [unit_size]           NVARCHAR (70)   NULL,
    [installation_date]   DATETIME        NULL,
    [responsible_id]      INT             NULL,
    [reponsible_date]     DATETIME        NULL,
    [checkin_date]        DATETIME        NULL,
    [accept_date]         DATETIME        NULL,
    [license_number]      NVARCHAR (100)  NULL,
    [useful_life]         INT             NULL,
    [depreciation_method] INT             NULL,
    [residual_value]      NUMERIC (17, 2) NULL,
    [checkout_date]       DATETIME        NULL,
    [image_file_name]     NVARCHAR (500)  NULL,
    [costcenter_id]       INT             NULL,
    [created_date]        DATETIME        NULL,
    [modified_date]       DATETIME        NOT NULL,
    [modifier_id]         INT             NULL,
    [author_id]           INT             NULL,
    [version]             INT             NULL,
    [interface_id]        NVARCHAR (100)  NULL,
    [type_id]             INT             NULL,
    [reason_id]           INT             NULL,
    [closed_date]         DATETIME        NULL,
    [previous_status_id]  INT             NULL,
    [risk_level]          INT             NULL,
    [integration_id]      INT             NULL,
    [state_name]          NVARCHAR (200)  NULL,
    [responsible_name]    NVARCHAR (200)  NULL,
    [reason_name]         NVARCHAR (200)  NULL,
    [provider_name]       NVARCHAR (200)  NULL,
    [manufacturer_name]   NVARCHAR (200)  NULL,
    [state_color]         NVARCHAR (200)  NULL,
    [state_final]         INT             NULL,
    [model_name]          NVARCHAR (200)  NULL,
    [impact_name]         NVARCHAR (200)  NULL,
    [category_name]       NVARCHAR (200)  NULL,
    [brand_name]          NVARCHAR (200)  NULL,
    [costcenter_name]     NVARCHAR (200)  NULL,
    [category_image]      NVARCHAR (MAX)  NULL,
    [author_name]         NVARCHAR (255)  NULL,
    [modifier_name]       NVARCHAR (255)  NULL,
    [type_name]           NVARCHAR (255)  NULL,
    [unit_name]           NVARCHAR (255)  NULL,
    [note]                NVARCHAR (MAX)  NULL,
    [location_id]         INT             NULL,
    [file_id]             INT             NULL,
    [group_id]            INT             NULL,
    [group_name]          NVARCHAR (256)  NULL,
    CONSTRAINT [PK_CMDB_CI_DW_LAST] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_HIST]...';


GO
CREATE TABLE [dbo].[CMDB_CI_HIST] (
    [id]                  INT             NOT NULL,
    [fl_int_bl_id]        INT             NOT NULL,
    [barcode]             NVARCHAR (200)  NULL,
    [rfid]                NVARCHAR (200)  NULL,
    [name]                NVARCHAR (200)  NOT NULL,
    [state_id]            INT             NULL,
    [model_id]            INT             NULL,
    [serial]              NVARCHAR (80)   NULL,
    [asset_tag]           NVARCHAR (200)  NULL,
    [price]               NUMERIC (17, 2) NULL,
    [impact_id]           INT             NULL,
    [description]         NVARCHAR (1000) NULL,
    [category_id]         INT             NULL,
    [brand_id]            INT             NULL,
    [manufacturer_id]     INT             NULL,
    [provider_id]         INT             NULL,
    [unit_id]             INT             NULL,
    [unit_size]           NVARCHAR (70)   NULL,
    [installation_date]   DATETIME        NULL,
    [responsible_id]      INT             NULL,
    [reponsible_date]     DATETIME        NULL,
    [checkin_date]        DATETIME        NULL,
    [accept_date]         DATETIME        NULL,
    [license_number]      NVARCHAR (100)  NULL,
    [useful_life]         INT             NULL,
    [depreciation_method] INT             NULL,
    [residual_value]      NUMERIC (17, 2) NULL,
    [checkout_date]       DATETIME        NULL,
    [image_file_name]     NVARCHAR (500)  NULL,
    [costcenter_id]       INT             NULL,
    [created_date]        DATETIME        NULL,
    [modified_date]       DATETIME        NULL,
    [modifier_id]         INT             NULL,
    [author_id]           INT             NULL,
    [version]             INT             NULL,
    [interface_id]        NVARCHAR (100)  NULL,
    [type_id]             INT             NULL,
    [reason_id]           INT             NULL,
    [state_name]          NVARCHAR (200)  NULL,
    [responsible_name]    NVARCHAR (200)  NULL,
    [reason_name]         NVARCHAR (200)  NULL,
    [provider_name]       NVARCHAR (200)  NULL,
    [manufacturer_name]   NVARCHAR (200)  NULL,
    [state_color]         NVARCHAR (200)  NULL,
    [model_name]          NVARCHAR (200)  NULL,
    [impact_name]         NVARCHAR (200)  NULL,
    [category_name]       NVARCHAR (200)  NULL,
    [brand_name]          NVARCHAR (200)  NULL,
    [costcenter_name]     NVARCHAR (200)  NULL,
    [closed_date]         DATETIME        NULL,
    [previous_status_id]  INT             NULL,
    [category_image]      NVARCHAR (MAX)  NULL,
    [risk_level]          INT             NULL,
    [integration_id]      INT             NULL,
    [location_id]         INT             NULL,
    [file_id]             INT             NULL,
    [group_id]            INT             NULL,
    [group_name]          NVARCHAR (256)  NULL,
    CONSTRAINT [PK_CMDB_CI_HIST] PRIMARY KEY CLUSTERED ([fl_int_bl_id] ASC, [id] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_INTEGRATIONS]...';


GO
CREATE TABLE [dbo].[CMDB_CI_INTEGRATIONS] (
    [id]             INT            IDENTITY (1, 1) NOT NULL,
    [ci_id]          INT            NOT NULL,
    [ci_projectid]   INT            NULL,
    [ci_content]     NVARCHAR (MAX) NULL,
    [integration_id] INT            NULL,
    [operation]      TINYINT        NOT NULL,
    [status]         TINYINT        NOT NULL,
    [user_id]        INT            NULL,
    CONSTRAINT [PK_CMDB_CI_INTEGRATIONS] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_PROJECT]...';


GO
CREATE TABLE [dbo].[CMDB_CI_PROJECT] (
    [ci_ciid]      INT NOT NULL,
    [ci_projectid] INT NOT NULL,
    CONSTRAINT [PK_CMDB_CI_PROJECT] PRIMARY KEY CLUSTERED ([ci_ciid] ASC, [ci_projectid] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_PROJECT_CLOSED]...';


GO
CREATE TABLE [dbo].[CMDB_CI_PROJECT_CLOSED] (
    [ci_ciid]      INT NOT NULL,
    [ci_projectid] INT NOT NULL,
    CONSTRAINT [PK_CMDB_CI_PROJECT_CLOSED] PRIMARY KEY CLUSTERED ([ci_ciid] ASC, [ci_projectid] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_USER]...';


GO
CREATE TABLE [dbo].[CMDB_CI_USER] (
    [FL_INT_USER_ID] INT NOT NULL,
    [FL_INT_CI_ID]   INT NOT NULL,
    CONSTRAINT [PK_CMDB_CI_USER] PRIMARY KEY CLUSTERED ([FL_INT_USER_ID] ASC, [FL_INT_CI_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_USER_CLOSED]...';


GO
CREATE TABLE [dbo].[CMDB_CI_USER_CLOSED] (
    [FL_INT_USER_ID] INT NOT NULL,
    [FL_INT_CI_ID]   INT NOT NULL,
    CONSTRAINT [PK_CMDB_CI_USER_CLOSED] PRIMARY KEY CLUSTERED ([FL_INT_USER_ID] ASC, [FL_INT_CI_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_CI_USER_HIST]...';


GO
CREATE TABLE [dbo].[CMDB_CI_USER_HIST] (
    [fl_int_bl_id]   INT NOT NULL,
    [fl_int_user_id] INT NOT NULL,
    [fl_int_ci_id]   INT NOT NULL,
    CONSTRAINT [PK_CMDB_CI_USER_HIST] PRIMARY KEY CLUSTERED ([fl_int_bl_id] ASC, [fl_int_user_id] ASC, [fl_int_ci_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[CMDB_CI_USER_HIST].[IND01_CMDB_CI_USER_HIST]...';


GO
CREATE NONCLUSTERED INDEX [IND01_CMDB_CI_USER_HIST]
    ON [dbo].[CMDB_CI_USER_HIST]([fl_int_bl_id] ASC);


GO
PRINT N'Creating Index [dbo].[CMDB_CI_USER_HIST].[IND02_CMDB_CI_USER_HIST]...';


GO
CREATE NONCLUSTERED INDEX [IND02_CMDB_CI_USER_HIST]
    ON [dbo].[CMDB_CI_USER_HIST]([fl_int_ci_id] ASC);


GO
PRINT N'Creating Table [dbo].[CMDB_COMPONENT]...';


GO
CREATE TABLE [dbo].[CMDB_COMPONENT] (
    [FL_INT_COMPONENT_ID]   INT             IDENTITY (1, 1) NOT NULL,
    [FL_INT_CI_ID]          INT             NOT NULL,
    [FL_INT_TYPE_ITEM_ID]   INT             NULL,
    [FL_STR_COMPONENT_NAME] NVARCHAR (100)  NOT NULL,
    [FL_STR_DESCRIPTION]    NVARCHAR (1000) NULL,
    CONSTRAINT [PK_CMDB_COMPONENT] PRIMARY KEY CLUSTERED ([FL_INT_COMPONENT_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_COMPONENT_CLOSED]...';


GO
CREATE TABLE [dbo].[CMDB_COMPONENT_CLOSED] (
    [FL_INT_COMPONENT_ID]   INT             NOT NULL,
    [FL_INT_CI_ID]          INT             NOT NULL,
    [FL_INT_TYPE_ITEM_ID]   INT             NULL,
    [FL_STR_COMPONENT_NAME] NVARCHAR (100)  NOT NULL,
    [FL_STR_DESCRIPTION]    NVARCHAR (1000) NULL,
    [FL_STR_TYPE_NAME]      NVARCHAR (1000) NULL,
    CONSTRAINT [PK_CMDB_COMPONENT_CLOSED] PRIMARY KEY CLUSTERED ([FL_INT_COMPONENT_ID] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_COMPONENT_HIST]...';


GO
CREATE TABLE [dbo].[CMDB_COMPONENT_HIST] (
    [FL_INT_COMPONENT_ID]   INT             NOT NULL,
    [fl_int_bl_id]          INT             NOT NULL,
    [FL_INT_CI_ID]          INT             NOT NULL,
    [FL_INT_TYPE_ITEM_ID]   INT             NULL,
    [FL_STR_COMPONENT_NAME] NVARCHAR (100)  NOT NULL,
    [FL_STR_DESCRIPTION]    NVARCHAR (1000) NULL,
    [FL_STR_TYPE_NAME]      NVARCHAR (1000) NULL,
    CONSTRAINT [PK_CMDB_COMPONENT_HIST] PRIMARY KEY CLUSTERED ([FL_INT_COMPONENT_ID] ASC, [fl_int_bl_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_OUTPUT_ORDER]...';


GO
CREATE TABLE [dbo].[CMDB_OUTPUT_ORDER] (
    [id]            INT            IDENTITY (1, 1) NOT NULL,
    [author_id]     INT            NOT NULL,
    [created_date]  DATETIME       NULL,
    [authorizer_id] INT            NOT NULL,
    [comments]      NVARCHAR (100) NULL,
    [closed_date]   DATETIME       NULL,
    [order_status]  TINYINT        NOT NULL,
    CONSTRAINT [PK_CMDB_OUTPUT_ORDER] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_OUTPUT_ORDER_CI]...';


GO
CREATE TABLE [dbo].[CMDB_OUTPUT_ORDER_CI] (
    [order_id]       INT            NOT NULL,
    [ci_id]          INT            NOT NULL,
    [responsible_id] INT            NOT NULL,
    [observations]   NVARCHAR (100) NOT NULL,
    [state_id]       INT            NOT NULL,
    [reason_id]      INT            NULL,
    [costcenter_id]  INT            NULL,
    [location_id]    INT            NOT NULL,
    [last_state]     INT            NULL,
    CONSTRAINT [PK_CMDB_OUTPUT_ORDER_CI] PRIMARY KEY CLUSTERED ([order_id] ASC, [ci_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[CMDB_PROJECT_GROUP_CATEGORY]...';


GO
CREATE TABLE [dbo].[CMDB_PROJECT_GROUP_CATEGORY] (
    [proj_id]     INT NOT NULL,
    [grou_id]     INT NOT NULL,
    [category_id] INT NOT NULL,
    CONSTRAINT [PK_CMDB_PROJECT_GROUP_CATEGORY] PRIMARY KEY CLUSTERED ([proj_id] ASC, [grou_id] ASC, [category_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DASH_BOARD]...';


GO
CREATE TABLE [dbo].[DASH_BOARD] (
    [boar_id]          INT            IDENTITY (1, 1) NOT NULL,
    [boar_project]     INT            NULL,
    [boar_name]        NVARCHAR (50)  NOT NULL,
    [boar_state]       BIT            NOT NULL,
    [boar_order]       INT            NULL,
    [boar_definition]  NVARCHAR (MAX) NULL,
    [boar_folder]      INT            NOT NULL,
    [boar_description] NVARCHAR (255) NULL,
    [boar_frecuency]   INT            NULL,
    CONSTRAINT [PK_DASH_BOARD] PRIMARY KEY CLUSTERED ([boar_id] ASC),
    CONSTRAINT [UX_DASH_BOARD] UNIQUE NONCLUSTERED ([boar_name] ASC, [boar_folder] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_AGGREGATE]...';


GO
CREATE TABLE [dbo].[DMM_AGGREGATE] (
    [id]           UNIQUEIDENTIFIER NOT NULL,
    [function]     VARCHAR (15)     NOT NULL,
    [created_date] DATETIME         NOT NULL,
    CONSTRAINT [PK_DMM_AGGREGATE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_AGGREGATE_TRANSLATION]...';


GO
CREATE TABLE [dbo].[DMM_AGGREGATE_TRANSLATION] (
    [aggregate_id] UNIQUEIDENTIFIER NOT NULL,
    [language_id]  CHAR (2)         NOT NULL,
    [name]         VARCHAR (30)     NOT NULL,
    [created_date] DATETIME         NOT NULL,
    CONSTRAINT [PK_DMM_AGGREGATE_TRANSLATION] PRIMARY KEY CLUSTERED ([language_id] ASC, [aggregate_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_ATTRIBUTE]...';


GO
CREATE TABLE [dbo].[DMM_ATTRIBUTE] (
    [id]           UNIQUEIDENTIFIER NOT NULL,
    [type]         VARCHAR (10)     NOT NULL,
    [column_id]    UNIQUEIDENTIFIER NOT NULL,
    [can_sort]     BIT              NOT NULL,
    [can_filter]   BIT              NOT NULL,
    [created_date] DATETIME         NOT NULL,
    CONSTRAINT [PK_DMM_ATTRIBUTE] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_ATTRIBUTE_TRANSLATION]...';


GO
CREATE TABLE [dbo].[DMM_ATTRIBUTE_TRANSLATION] (
    [attribute_id] UNIQUEIDENTIFIER NOT NULL,
    [language_id]  CHAR (2)         NOT NULL,
    [name]         VARCHAR (50)     NOT NULL,
    [created_date] DATETIME         NOT NULL,
    CONSTRAINT [PK_DMM_ATTRIBUTE_TRANSLATION] PRIMARY KEY CLUSTERED ([language_id] ASC, [attribute_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_COLUMN]...';


GO
CREATE TABLE [dbo].[DMM_COLUMN] (
    [id]           UNIQUEIDENTIFIER NOT NULL,
    [name]         VARCHAR (30)     NOT NULL,
    [dataset_id]   UNIQUEIDENTIFIER NOT NULL,
    [unique_key]   BIT              NOT NULL,
    [created_date] DATETIME         NOT NULL,
    CONSTRAINT [PK_DMM_COLUMN] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_DATA_TYPE]...';


GO
CREATE TABLE [dbo].[DMM_DATA_TYPE] (
    [id]           INT          NOT NULL,
    [name]         VARCHAR (40) NOT NULL,
    [created_date] DATETIME     NOT NULL,
    PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_DMM_DATA_TYPE] UNIQUE NONCLUSTERED ([name] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_DATA_TYPE_COLUMN]...';


GO
CREATE TABLE [dbo].[DMM_DATA_TYPE_COLUMN] (
    [column_id]    UNIQUEIDENTIFIER NOT NULL,
    [data_type_id] INT              NOT NULL,
    [length]       VARCHAR (20)     NULL,
    [created_date] DATETIME         NOT NULL,
    CONSTRAINT [UK01_DMM_DATA_TYPE_COLUMN] UNIQUE NONCLUSTERED ([column_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_DATASET]...';


GO
CREATE TABLE [dbo].[DMM_DATASET] (
    [id]               UNIQUEIDENTIFIER NOT NULL,
    [name]             VARCHAR (35)     NOT NULL,
    [type]             VARCHAR (10)     NOT NULL,
    [created_date]     DATETIME         NOT NULL,
    [base_object_type] CHAR (2)         NOT NULL,
    [is_external]      BIT              NOT NULL,
    CONSTRAINT [PK_DMM_DATASET] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_DATASET_PARAMETERS]...';


GO
CREATE TABLE [dbo].[DMM_DATASET_PARAMETERS] (
    [id]              UNIQUEIDENTIFIER NOT NULL,
    [dataset_id]      UNIQUEIDENTIFIER NOT NULL,
    [parameter_order] INT              NOT NULL,
    CONSTRAINT [PK_DMM_DATASET_PARAMETERS] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_DMM_DATASET_PARAMETERS] UNIQUE NONCLUSTERED ([dataset_id] ASC, [parameter_order] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_DATASET_PARAMETERS_MAPPING]...';


GO
CREATE TABLE [dbo].[DMM_DATASET_PARAMETERS_MAPPING] (
    [parameter_id]      UNIQUEIDENTIFIER NOT NULL,
    [map_to_dataset_id] UNIQUEIDENTIFIER NOT NULL,
    [map_to_column_id]  UNIQUEIDENTIFIER NOT NULL,
    CONSTRAINT [PK_DMM_DATASET_PARAMETERS_MAPPING] PRIMARY KEY CLUSTERED ([parameter_id] ASC, [map_to_dataset_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_DATASET_TRANSLATION]...';


GO
CREATE TABLE [dbo].[DMM_DATASET_TRANSLATION] (
    [dataset_id]   UNIQUEIDENTIFIER NOT NULL,
    [language_id]  CHAR (2)         NOT NULL,
    [model_name]   VARCHAR (50)     NOT NULL,
    [created_date] DATETIME         NOT NULL,
    CONSTRAINT [PK_DMM_DATASET_TRANSLATION] PRIMARY KEY CLUSTERED ([language_id] ASC, [dataset_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_METRIC]...';


GO
CREATE TABLE [dbo].[DMM_METRIC] (
    [id]           UNIQUEIDENTIFIER NOT NULL,
    [aggregate_id] UNIQUEIDENTIFIER NOT NULL,
    [attribute_id] UNIQUEIDENTIFIER NOT NULL,
    [created_date] DATETIME         NOT NULL,
    CONSTRAINT [PK_DMM_METRIC] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_METRIC_TRANSLATION]...';


GO
CREATE TABLE [dbo].[DMM_METRIC_TRANSLATION] (
    [metric_id]    UNIQUEIDENTIFIER NOT NULL,
    [language_id]  CHAR (2)         NOT NULL,
    [name]         VARCHAR (60)     NOT NULL,
    [created_date] DATETIME         NOT NULL,
    CONSTRAINT [PK_DMM_METRIC_TRANSLATION] PRIMARY KEY CLUSTERED ([language_id] ASC, [metric_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_RELATIONSHIP]...';


GO
CREATE TABLE [dbo].[DMM_RELATIONSHIP] (
    [id]            UNIQUEIDENTIFIER NOT NULL,
    [inner_dataset] UNIQUEIDENTIFIER NOT NULL,
    [outer_dataset] UNIQUEIDENTIFIER NOT NULL,
    [inner_column]  UNIQUEIDENTIFIER NOT NULL,
    [outer_column]  UNIQUEIDENTIFIER NOT NULL,
    [created_date]  DATETIME         NOT NULL,
    CONSTRAINT [PK_DMM_RELATIONSHIP] PRIMARY KEY CLUSTERED ([id] ASC),
    CONSTRAINT [UK01_DMM_RELATIONSHIP] UNIQUE NONCLUSTERED ([inner_dataset] ASC, [outer_dataset] ASC, [inner_column] ASC, [outer_column] ASC)
);


GO
PRINT N'Creating Table [dbo].[DMM_RELATIONSHIP_TRANSLATION]...';


GO
CREATE TABLE [dbo].[DMM_RELATIONSHIP_TRANSLATION] (
    [relationship_id] UNIQUEIDENTIFIER NOT NULL,
    [language_id]     CHAR (2)         NOT NULL,
    [name]            VARCHAR (40)     NOT NULL,
    [created_date]    DATETIME         NOT NULL,
    CONSTRAINT [PK_DMM_RELATIONSHIP_TRANSLATION] PRIMARY KEY CLUSTERED ([language_id] ASC, [relationship_id] ASC)
);


GO
PRINT N'Creating Table [dbo].[STG_SOFTWARE_USAGE]...';


GO
CREATE TABLE [dbo].[STG_SOFTWARE_USAGE] (
    [device_id]     INT      NULL,
    [file_id]       INT      NULL,
    [logon_user_id] INT      NULL,
    [from_date]     DATETIME NULL,
    [to_date]       DATETIME NULL,
    [cpu]           TINYINT  NULL,
    [memory]        BIGINT   NULL
);


GO
PRINT N'Creating Table [dbo].[TEAMS_USER_REFERENCE]...';


GO
CREATE TABLE [dbo].[TEAMS_USER_REFERENCE] (
    [user_id]                INT            NOT NULL,
    [conversation_reference] VARCHAR (MAX)  NULL,
    [user_name]              NVARCHAR (255) NOT NULL,
    CONSTRAINT [PK_TEAMS_USER_REFERENCE] PRIMARY KEY CLUSTERED ([user_id] ASC)
);


GO
PRINT N'Creating Synonym [dbo].[AAM_NETWORKADAPTER_ADDRESS]...';


GO
CREATE SYNONYM [dbo].[AAM_NETWORKADAPTER_ADDRESS] FOR dbo.AAM_NETWORKADAPTER_ADDRES;


GO
PRINT N'Creating Synonym [dbo].[ASMS_AI_ASSISTANT]...';


GO
CREATE SYNONYM [dbo].[ASMS_AI_ASSISTANT] FOR dbo.AI_ASSISTANT;


GO
PRINT N'Creating Synonym [dbo].[ASMS_AI_ENDPOINT]...';


GO
CREATE SYNONYM [dbo].[ASMS_AI_ENDPOINT] FOR dbo.AI_ENDPOINT;


GO
PRINT N'Creating Synonym [dbo].[ASMS_AI_LOG]...';


GO
CREATE SYNONYM [dbo].[ASMS_AI_LOG] FOR dbo.AI_LOG;


GO
PRINT N'Creating Synonym [dbo].[ASMS_AI_MODEL]...';


GO
CREATE SYNONYM [dbo].[ASMS_AI_MODEL] FOR dbo.AI_MODEL;


GO
PRINT N'Creating Synonym [dbo].[ASMS_AI_PROVIDER]...';


GO
CREATE SYNONYM [dbo].[ASMS_AI_PROVIDER] FOR dbo.AI_PROVIDER;


GO
PRINT N'Creating Synonym [dbo].[ASMS_AI_TASK]...';


GO
CREATE SYNONYM [dbo].[ASMS_AI_TASK] FOR dbo.AI_TASK;


GO
PRINT N'Creating Synonym [dbo].[ASMS_AI_TASK_CONFIGURATION]...';


GO
CREATE SYNONYM [dbo].[ASMS_AI_TASK_CONFIGURATION] FOR dbo.AI_TASK_CONFIGURATION;


GO
PRINT N'Creating Synonym [dbo].[ASMS_AI_VECTOR]...';


GO
CREATE SYNONYM [dbo].[ASMS_AI_VECTOR] FOR dbo.AI_VECTOR;


GO
PRINT N'Creating Synonym [dbo].[ASMS_AI_VECTOR_FILE]...';


GO
CREATE SYNONYM [dbo].[ASMS_AI_VECTOR_FILE] FOR dbo.AI_VECTOR_FILE;


GO
PRINT N'Creating Synonym [dbo].[ASMS_LANGUAGE]...';


GO
CREATE SYNONYM [dbo].[ASMS_LANGUAGE] FOR [dbo].[AFW_LANGUAGE];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE]
    ADD DEFAULT (1) FOR [is_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE]
    ADD DEFAULT ((0)) FOR [auto_setted_user];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE]
    ADD DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE]
    ADD CONSTRAINT [DF01_AAM_DEVICE] DEFAULT ((0)) FOR [status];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_DEVICE_created_date]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE]
    ADD CONSTRAINT [DF02_AAM_DEVICE_created_date] DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_APPLICATION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION]
    ADD DEFAULT 0 FOR [size];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_BOARDSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_BOARDSLOT]
    ADD CONSTRAINT [DF01_AAM_DEVICE_BOARDSLOT] DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_DEVICE_BOARDSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_BOARDSLOT]
    ADD CONSTRAINT [DF02_AAM_DEVICE_BOARDSLOT] DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_DISK]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DISK]
    ADD CONSTRAINT [DF01_AAM_DEVICE_DISK] DEFAULT (0) FOR [size];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_DEVICE_DISK]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DISK]
    ADD CONSTRAINT [DF02_AAM_DEVICE_DISK] DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AAM_DEVICE_DISK]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DISK]
    ADD CONSTRAINT [DF03_AAM_DEVICE_DISK] DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_DISPLAY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DISPLAY]
    ADD CONSTRAINT [DF01_AAM_DEVICE_DISPLAY] DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_DEVICE_DISPLAY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DISPLAY]
    ADD CONSTRAINT [DF02_AAM_DEVICE_DISPLAY] DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_DRIVER]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DRIVER]
    ADD DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_FILE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_FILE]
    ADD CONSTRAINT [DF01_AAM_DEVICE_FILE] DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_FILE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_FILE_VERSION]
    ADD CONSTRAINT [DF01_AAM_DEVICE_FILE_VERSION] DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_KEYBOARD]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_KEYBOARD]
    ADD DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_MEMBERSHIP]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMBERSHIP]
    ADD DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_MEMORY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORY]
    ADD DEFAULT (0) FOR [physical];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_MEMORY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORY]
    ADD DEFAULT (0) FOR [available_physical];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_MEMORY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORY]
    ADD DEFAULT (0) FOR [virtual];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_MEMORY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORY]
    ADD DEFAULT (0) FOR [available_virtual];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_MEMORY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORY]
    ADD DEFAULT (0) FOR [max_ram];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_MEMORY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORY]
    ADD DEFAULT (0) FOR [page_memory];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_MEMORY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORY]
    ADD DEFAULT (0) FOR [available_page_memory];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_MEMORY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORY]
    ADD DEFAULT (0) FOR [slot_count];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_MEMORYSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORYSLOT]
    ADD CONSTRAINT [DF01_AAM_DEVICE_MEMORYSLOT] DEFAULT (0) FOR [size];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_DEVICE_MEMORYSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORYSLOT]
    ADD CONSTRAINT [DF02_AAM_DEVICE_MEMORYSLOT] DEFAULT (0) FOR [speed];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AAM_DEVICE_MEMORYSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORYSLOT]
    ADD CONSTRAINT [DF03_AAM_DEVICE_MEMORYSLOT] DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_AAM_DEVICE_MEMORYSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORYSLOT]
    ADD CONSTRAINT [DF04_AAM_DEVICE_MEMORYSLOT] DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_NETWORKADAPTE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_NETWORKADAPTER]
    ADD CONSTRAINT [DF01_AAM_DEVICE_NETWORKADAPTE] DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_DEVICE_NETWORKADAPTE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_NETWORKADAPTER]
    ADD CONSTRAINT [DF02_AAM_DEVICE_NETWORKADAPTE] DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_PORTCONNECTOR]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PORTCONNECTOR]
    ADD DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_PRINTER]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PRINTER]
    ADD CONSTRAINT [DF01_AAM_DEVICE_PRINTER] DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_DEVICE_PRINTER]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PRINTER]
    ADD CONSTRAINT [DF02_AAM_DEVICE_PRINTER] DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_PROCESSORSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PROCESSORSLOT]
    ADD CONSTRAINT [DF01_AAM_DEVICE_PROCESSORSLOT] DEFAULT 0 FOR [status];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_DEVICE_PROCESSORSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PROCESSORSLOT]
    ADD CONSTRAINT [DF02_AAM_DEVICE_PROCESSORSLOT] DEFAULT 1 FOR [populated];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AAM_DEVICE_PROCESSORSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PROCESSORSLOT]
    ADD CONSTRAINT [DF03_AAM_DEVICE_PROCESSORSLOT] DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_SERVICE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SERVICE]
    ADD DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_SHAREDRESOURCE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SHAREDRESOURCE]
    ADD DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE]
    ADD CONSTRAINT [DF01_AAM_DEVICE_SOFTWARE] DEFAULT 0 FOR [system_component];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_DEVICE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE]
    ADD CONSTRAINT [DF02_AAM_DEVICE_SOFTWARE] DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AAM_DEVICE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE]
    ADD CONSTRAINT [DF03_AAM_DEVICE_SOFTWARE] DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_STARTUPCOMMAND]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_STARTUPCOMMAND]
    ADD DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_TYPE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_TYPE]
    ADD CONSTRAINT [DF01_AAM_DEVICE_TYPE] DEFAULT 1 FOR [enabled];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_DEVICE_UNITMAPPING]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_UNITMAPPING]
    ADD DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_DEVICE_VIDEOCARD]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_VIDEOCARD]
    ADD CONSTRAINT [DF01_AAM_DEVICE_VIDEOCARD] DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_LOGICAL_DISK]...';


GO
ALTER TABLE [dbo].[AAM_LOGICAL_DISK]
    ADD DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_LOGICAL_DISK]...';


GO
ALTER TABLE [dbo].[AAM_LOGICAL_DISK]
    ADD DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_NETWORKADAPTER_ADDRES]...';


GO
ALTER TABLE [dbo].[AAM_NETWORKADAPTER_ADDRES]
    ADD CONSTRAINT [DF01_AAM_NETWORKADAPTER_ADDRES] DEFAULT ('D') FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_NETWORKADAPTER_ADDRES]...';


GO
ALTER TABLE [dbo].[AAM_NETWORKADAPTER_ADDRES]
    ADD CONSTRAINT [DF02_AAM_NETWORKADAPTER_ADDRES] DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_NETWORKADAPTER_CONFIG]...';


GO
ALTER TABLE [dbo].[AAM_NETWORKADAPTER_CONFIG]
    ADD CONSTRAINT [DF01_AAM_NETWORKADAPTER_CONFIG] DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_PROCESSOR_CACHE]...';


GO
ALTER TABLE [dbo].[AAM_PROCESSOR_CACHE]
    ADD DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AAM_SHAREDRESOURCE_PERM]...';


GO
ALTER TABLE [dbo].[AAM_SHAREDRESOURCE_PERM]
    ADD DEFAULT 'D' FOR [krun_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_SOFTWARE_PRODUCT]...';


GO
ALTER TABLE [dbo].[AAM_SOFTWARE_PRODUCT]
    ADD CONSTRAINT [DF01_AAM_SOFTWARE_PRODUCT] DEFAULT 1 FOR [platform];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAM_SOFTWARE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_SOFTWARE_VERSION]
    ADD CONSTRAINT [DF01_AAM_SOFTWARE_VERSION] DEFAULT 1 FOR [is_inventory];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AAM_SOFTWARE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_SOFTWARE_VERSION]
    ADD CONSTRAINT [DF02_AAM_SOFTWARE_VERSION] DEFAULT 1 FOR [is_permitted];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AAU_INSTALLER]...';


GO
ALTER TABLE [dbo].[AAU_INSTALLER]
    ADD CONSTRAINT [DF01_AAU_INSTALLER] DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ADM_AGENT_PROFILE_SETTING]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_SETTING]
    ADD DEFAULT 0 FOR [enabled_p2p];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ADM_AGENT_PROFILE_SETTING]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_SETTING]
    ADD DEFAULT 0 FOR [show_icon];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ADM_AGENT_PROFILE_SETTING]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_SETTING]
    ADD DEFAULT 0 FOR [show_ars_icon];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ADM_AGENT_PROFILE_SETTING]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_SETTING]
    ADD DEFAULT 5050 FOR [port_arc];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ADM_COMMUNICATION_NODE]...';


GO
ALTER TABLE [dbo].[ADM_COMMUNICATION_NODE]
    ADD DEFAULT GETDATE() FOR [last_update];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ADM_COMMUNICATION_NODE]...';


GO
ALTER TABLE [dbo].[ADM_COMMUNICATION_NODE]
    ADD CONSTRAINT [DF01_ADM_COMMUNICATION_NODE] DEFAULT (0) FOR [trust_certificate];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ADM_COMPONENT_REQUEST_DETAIL]...';


GO
ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_DETAIL]
    ADD CONSTRAINT [DF01_ADM_COMPONENT_REQUEST_DETAIL] DEFAULT NEWID() FOR [detail_id];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ADM_CONFIGURATION_GATEWAY]...';


GO
ALTER TABLE [dbo].[ADM_CONFIGURATION_GATEWAY]
    ADD CONSTRAINT [DF01_ADM_CONFIGURATION_GATEWAY] DEFAULT 1 FOR [is_ssl];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ADM_CONFIGURATION_GATEWAY]...';


GO
ALTER TABLE [dbo].[ADM_CONFIGURATION_GATEWAY]
    ADD CONSTRAINT [DF02_ADM_CONFIGURATION_GATEWAY] DEFAULT 1 FOR [is_active];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ADM_CREDENTIAL]...';


GO
ALTER TABLE [dbo].[ADM_CREDENTIAL]
    ADD CONSTRAINT [DF01_ADM_CREDENTIAL] DEFAULT 1 FOR [credential_type];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ADM_DEVICE_INVENTORY]...';


GO
ALTER TABLE [dbo].[ADM_DEVICE_INVENTORY]
    ADD DEFAULT (0) FOR [type];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ADM_DISCOVERY_MODEL]...';


GO
ALTER TABLE [dbo].[ADM_DISCOVERY_MODEL]
    ADD CONSTRAINT [DF01_ADM_DISCOVERY_MODEL] DEFAULT GETUTCDATE() FOR [last_update];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ADM_RULESET]...';


GO
ALTER TABLE [dbo].[ADM_RULESET]
    ADD DEFAULT (0) FOR [type];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ADM_RULESET]...';


GO
ALTER TABLE [dbo].[ADM_RULESET]
    ADD DEFAULT (0) FOR [is_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ADM_SERVER_SETTING]...';


GO
ALTER TABLE [dbo].[ADM_SERVER_SETTING]
    ADD DEFAULT 0 FOR [local_copy];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AES_CVE]...';


GO
ALTER TABLE [dbo].[AES_CVE]
    ADD CONSTRAINT [DF01_AES_CVE] DEFAULT (0) FOR [treatment_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AES_DEVICE]...';


GO
ALTER TABLE [dbo].[AES_DEVICE]
    ADD CONSTRAINT [DF01_AES_DEVICE] DEFAULT (1) FOR [platform_id];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AES_POLICY]...';


GO
ALTER TABLE [dbo].[AES_POLICY]
    ADD CONSTRAINT [DF01_AES_POLICY] DEFAULT (1) FOR [platform_id];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_ALERT_TYPE]...';


GO
ALTER TABLE [dbo].[AFLS_ALERT_TYPE]
    ADD CONSTRAINT [DF01_AFLS_ALERT_TYPE] DEFAULT (1) FOR [IsActive];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_ASSING_PROVIDER_TYPE]...';


GO
ALTER TABLE [dbo].[AFLS_ASSING_PROVIDER_TYPE]
    ADD CONSTRAINT [DF01_AFLS_ASSING_PROVIDER_TYPE] DEFAULT (0) FOR [IsActive];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_ATTACHMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_ATTACHMENTS]
    ADD CONSTRAINT [DF01_AFLS_ATTACHMENTS] DEFAULT (1) FOR [attc_type_id];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_CALENDAR]...';


GO
ALTER TABLE [dbo].[AFLS_CALENDAR]
    ADD CONSTRAINT [DF01_AFLS_CALENDAR] DEFAULT 'Global' FOR [cale_type];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFLS_CALENDAR]...';


GO
ALTER TABLE [dbo].[AFLS_CALENDAR]
    ADD CONSTRAINT [DF02_AFLS_CALENDAR] DEFAULT (1) FOR [cale_enable];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AFLS_CALENDAR]...';


GO
ALTER TABLE [dbo].[AFLS_CALENDAR]
    ADD CONSTRAINT [DF03_AFLS_CALENDAR] DEFAULT (0) FOR [cale_loadholiday];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_CHRONOS_EVENTS]...';


GO
ALTER TABLE [dbo].[AFLS_CHRONOS_EVENTS]
    ADD CONSTRAINT [DF01_AFLS_CHRONOS_EVENTS] DEFAULT (0) FOR [chevent_chronos_refresh];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_CHRONOS_RESULTS]...';


GO
ALTER TABLE [dbo].[AFLS_CHRONOS_RESULTS]
    ADD CONSTRAINT [DF01_AFLS_CHRONOS_RESULTS] DEFAULT (0) FOR [chresult_currenttime];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFLS_CHRONOS_RESULTS]...';


GO
ALTER TABLE [dbo].[AFLS_CHRONOS_RESULTS]
    ADD CONSTRAINT [DF02_AFLS_CHRONOS_RESULTS] DEFAULT (0) FOR [chresult_status];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AFLS_CHRONOS_RESULTS]...';


GO
ALTER TABLE [dbo].[AFLS_CHRONOS_RESULTS]
    ADD CONSTRAINT [DF03_AFLS_CHRONOS_RESULTS] DEFAULT (1) FOR [chresult_complies];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_CLIENT_INVENTORY]...';


GO
ALTER TABLE [dbo].[AFLS_CLIENT_INVENTORY]
    ADD DEFAULT ((0)) FOR [cinv_is_in_client];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_COMPANIES]...';


GO
ALTER TABLE [dbo].[AFLS_COMPANIES]
    ADD CONSTRAINT [DF01_AFLS_COMPANIES] DEFAULT (0) FOR [comp_is_imported];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_CONNECTORS]...';


GO
ALTER TABLE [dbo].[AFLS_CONNECTORS]
    ADD DEFAULT 1 FOR [IsActive];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT]
    ADD CONSTRAINT [DF01_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] DEFAULT (1) FOR [last_enabled];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_LAYERS]...';


GO
ALTER TABLE [dbo].[AFLS_LAYERS]
    ADD CONSTRAINT [DF01_AFLS_LAYERS] DEFAULT (0) FOR [layer_is_deleted];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_MAIL_TEMPLATES]...';


GO
ALTER TABLE [dbo].[AFLS_MAIL_TEMPLATES]
    ADD DEFAULT 1 FOR [mail_isdefault];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_PROVIDER_ASSING_TURN]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_ASSING_TURN]
    ADD CONSTRAINT [DF01_AFLS_PROVIDER_ASSING_TURN] DEFAULT GETDATE() FOR [LastAssing];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_PROVIDERS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDERS]
    ADD CONSTRAINT [DF01_AFLS_PROVIDERS] DEFAULT (0) FOR [Type];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFLS_PROVIDERS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDERS]
    ADD CONSTRAINT [DF02_AFLS_PROVIDERS] DEFAULT (1) FOR [Priority];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AFLS_PROVIDERS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDERS]
    ADD CONSTRAINT [DF03_AFLS_PROVIDERS] DEFAULT (1) FOR [AssingType];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_AFLS_PROVIDERS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDERS]
    ADD CONSTRAINT [DF04_AFLS_PROVIDERS] DEFAULT (0) FOR [ServiceDefault];


GO
PRINT N'Creating Default Constraint [dbo].[DF05_AFLS_PROVIDERS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDERS]
    ADD CONSTRAINT [DF05_AFLS_PROVIDERS] DEFAULT (1) FOR [IsActive];


GO
PRINT N'Creating Default Constraint [dbo].[DF06_AFLS_PROVIDERS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDERS]
    ADD CONSTRAINT [DF06_AFLS_PROVIDERS] DEFAULT (0) FOR [IsDeleted];


GO
PRINT N'Creating Default Constraint [dbo].[DF07_AFLS_PROVIDERS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDERS]
    ADD CONSTRAINT [DF07_AFLS_PROVIDERS] DEFAULT GETDATE() FOR [creation_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_QUICK_ANSWERS]...';


GO
ALTER TABLE [dbo].[AFLS_QUICK_ANSWERS]
    ADD DEFAULT 0 FOR [qui_count];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_REVIEWS]...';


GO
ALTER TABLE [dbo].[AFLS_REVIEWS]
    ADD DEFAULT 0 FOR [revi_is_public];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_REVIEWS]...';


GO
ALTER TABLE [dbo].[AFLS_REVIEWS]
    ADD DEFAULT 0 FOR [revi_is_client];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES]
    ADD CONSTRAINT [DF01_AFLS_SERVICES] DEFAULT (0) FOR [serv_type];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFLS_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES]
    ADD CONSTRAINT [DF02_AFLS_SERVICES] DEFAULT (1) FOR [serv_provider_assignment_type];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AFLS_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES]
    ADD CONSTRAINT [DF03_AFLS_SERVICES] DEFAULT (0) FOR [serv_is_priority_or_emregency];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_AFLS_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES]
    ADD CONSTRAINT [DF04_AFLS_SERVICES] DEFAULT (0) FOR [serv_default];


GO
PRINT N'Creating Default Constraint [dbo].[DF05_AFLS_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES]
    ADD CONSTRAINT [DF05_AFLS_SERVICES] DEFAULT (0) FOR [serv_is_provide_all_ci];


GO
PRINT N'Creating Default Constraint [dbo].[DF06_AFLS_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES]
    ADD CONSTRAINT [DF06_AFLS_SERVICES] DEFAULT (0) FOR [serv_create_enable_by_specialist];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_SETTINGS]...';


GO
ALTER TABLE [dbo].[AFLS_SETTINGS]
    ADD CONSTRAINT [DF01_AFLS_SETTINGS] DEFAULT (0) FOR [is_common];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_SKILLS]...';


GO
ALTER TABLE [dbo].[AFLS_SKILLS]
    ADD DEFAULT 1 FOR [skll_isActive];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_SLA]...';


GO
ALTER TABLE [dbo].[AFLS_SLA]
    ADD CONSTRAINT [DF01_AFLS_SLA] DEFAULT (0) FOR [finish_has_alarm];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFLS_SLA]...';


GO
ALTER TABLE [dbo].[AFLS_SLA]
    ADD CONSTRAINT [DF02_AFLS_SLA] DEFAULT (0) FOR [review_has_alarm];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AFLS_SLA]...';


GO
ALTER TABLE [dbo].[AFLS_SLA]
    ADD CONSTRAINT [DF03_AFLS_SLA] DEFAULT (0) FOR [is_deleted];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_SLA_TIMES]...';


GO
ALTER TABLE [dbo].[AFLS_SLA_TIMES]
    ADD CONSTRAINT [DF01_AFLS_SLA_TIMES] DEFAULT (0) FOR [is_deleted];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFLS_SLA_TIMES]...';


GO
ALTER TABLE [dbo].[AFLS_SLA_TIMES]
    ADD CONSTRAINT [DF02_AFLS_SLA_TIMES] DEFAULT (0) FOR [default_sla_time];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_THIRD_PARTY_INTEGRATIONS]...';


GO
ALTER TABLE [dbo].[AFLS_THIRD_PARTY_INTEGRATIONS]
    ADD CONSTRAINT [DF01_AFLS_THIRD_PARTY_INTEGRATIONS] DEFAULT 0 FOR [atpi_attempts_notificated];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_USERS_CHANNEL]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_CHANNEL]
    ADD DEFAULT (0) FOR [IsActive];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_USERS_CLIENTS]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_CLIENTS]
    ADD CONSTRAINT [DF01_AFLS_USERS_CLIENTS] DEFAULT '' FOR [clie_addl_address_info];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFLS_USERS_CLIENTS]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_CLIENTS]
    ADD CONSTRAINT [DF02_AFLS_USERS_CLIENTS] DEFAULT (0) FOR [clie_is_imported];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_USERS_WEB]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_WEB]
    ADD CONSTRAINT [DF01_AFLS_USERS_WEB] DEFAULT (0) FOR [web_is_imported];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFLS_USERS_WEB]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_WEB]
    ADD CONSTRAINT [DF02_AFLS_USERS_WEB] DEFAULT (0) FOR [web_massive_actions];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_VEHICLE_TYPE]...';


GO
ALTER TABLE [dbo].[AFLS_VEHICLE_TYPE]
    ADD CONSTRAINT [DF01_AFLS_VEHICLE_TYPE] DEFAULT GETDATE() FOR [creation_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_WORK_POSITIONS]...';


GO
ALTER TABLE [dbo].[AFLS_WORK_POSITIONS]
    ADD CONSTRAINT [DF01_AFLS_WORK_POSITIONS] DEFAULT (0) FOR [posi_active];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFLS_WORK_POSITIONS]...';


GO
ALTER TABLE [dbo].[AFLS_WORK_POSITIONS]
    ADD CONSTRAINT [DF02_AFLS_WORK_POSITIONS] DEFAULT GETDATE() FOR [creation_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_WORKDAYS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKDAYS]
    ADD DEFAULT 1 FOR [workday_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_WORKFLOWS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKFLOWS]
    ADD DEFAULT 1 FOR [wf_enabled];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_WORKFLOWS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKFLOWS]
    ADD DEFAULT 0 FOR [wf_deleted];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_WORKORDER_PROVIDER_LOG]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDER_PROVIDER_LOG]
    ADD CONSTRAINT [DF01_AFLS_WORKORDER_PROVIDER_LOG] DEFAULT GETDATE() FOR [CreationDate];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_WORKORDER_TASKS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDER_TASKS]
    ADD DEFAULT 2 FOR [wtask_work_state_id];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS]
    ADD CONSTRAINT [DF01_AFLS_WORKORDERS] DEFAULT '' FOR [work_addl_address_info];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS]
    ADD CONSTRAINT [DF02_AFLS_WORKORDERS] DEFAULT '' FOR [work_end_addl_address_info];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS]
    ADD CONSTRAINT [DF03_AFLS_WORKORDERS] DEFAULT (1) FOR [work_assignment_type];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS]
    ADD CONSTRAINT [DF04_AFLS_WORKORDERS] DEFAULT (0) FOR [work_emergency];


GO
PRINT N'Creating Default Constraint [dbo].[DF05_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS]
    ADD CONSTRAINT [DF05_AFLS_WORKORDERS] DEFAULT (0) FOR [work_include_provider_statics];


GO
PRINT N'Creating Default Constraint [dbo].[DF06_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS]
    ADD CONSTRAINT [DF06_AFLS_WORKORDERS] DEFAULT (0) FOR [work_order_expired];


GO
PRINT N'Creating Default Constraint [dbo].[DF07_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS]
    ADD CONSTRAINT [DF07_AFLS_WORKORDERS] DEFAULT (0) FOR [work_is_imported];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_WORKORDERS_INVENTORY_PRODUCTS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS]
    ADD CONSTRAINT [DF01_AFLS_WORKORDERS_INVENTORY_PRODUCTS] DEFAULT 0 FOR [return_inventory];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_WORKORDERS_STATE_COST]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS_STATE_COST]
    ADD DEFAULT 0 FOR [awsc_travel_kilometers];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_WORKORDERS_STATE_COST]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS_STATE_COST]
    ADD DEFAULT 0 FOR [awsc_travel_cost];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_WORKORDERS_STATE_COST]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS_STATE_COST]
    ADD DEFAULT 0 FOR [awsc_specialist_time];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFLS_WORKORDERS_STATE_COST]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS_STATE_COST]
    ADD DEFAULT 0 FOR [awsc_specialist_cost];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFLS_ZONES]...';


GO
ALTER TABLE [dbo].[AFLS_ZONES]
    ADD CONSTRAINT [DF01_AFLS_ZONES] DEFAULT (0) FOR [zone_is_deleted];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ACCESS_TOKEN]...';


GO
ALTER TABLE [dbo].[AFW_ACCESS_TOKEN]
    ADD DEFAULT GETUTCDATE() FOR [creation_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ADDITIONAL_FIELD]...';


GO
ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD]
    ADD DEFAULT 0 FOR [keep_history];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ADDITIONAL_FIELD]...';


GO
ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD]
    ADD DEFAULT 0 FOR [order];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ADDITIONAL_FIELD]...';


GO
ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD]
    ADD DEFAULT 0 FOR [is_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ALERT]...';


GO
ALTER TABLE [dbo].[AFW_ALERT]
    ADD DEFAULT GETDATE() FOR [creation_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ALERT_CATEGORY]...';


GO
ALTER TABLE [dbo].[AFW_ALERT_CATEGORY]
    ADD DEFAULT 1 FOR [severity_id];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ALERT_CATEGORY]...';


GO
ALTER TABLE [dbo].[AFW_ALERT_CATEGORY]
    ADD DEFAULT 0 FOR [is_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_APPLICATIONS]...';


GO
ALTER TABLE [dbo].[AFW_APPLICATIONS]
    ADD DEFAULT 0 FOR [appl_suite];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFW_ASSISTME_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AFW_ASSISTME_CONFIGURATION]
    ADD CONSTRAINT [DF01_AFW_ASSISTME_CONFIGURATION] DEFAULT (0) FOR [EnableRegisterClient];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFW_ASSISTME_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AFW_ASSISTME_CONFIGURATION]
    ADD CONSTRAINT [DF02_AFW_ASSISTME_CONFIGURATION] DEFAULT (0) FOR [IsActive];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ASSISTME_PREREGISTER]...';


GO
ALTER TABLE [dbo].[AFW_ASSISTME_PREREGISTER]
    ADD DEFAULT 0 FOR [Activate];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFW_ASSISTME_SERVICES]...';


GO
ALTER TABLE [dbo].[AFW_ASSISTME_SERVICES]
    ADD CONSTRAINT [DF01_AFW_ASSISTME_SERVICES] DEFAULT (0) FOR [Is_Active];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFW_ASSISTME_SERVICES]...';


GO
ALTER TABLE [dbo].[AFW_ASSISTME_SERVICES]
    ADD CONSTRAINT [DF02_AFW_ASSISTME_SERVICES] DEFAULT (0) FOR [Is_Deleted];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CATALOG]...';


GO
ALTER TABLE [dbo].[AFW_CATALOG]
    ADD DEFAULT '' FOR [cata_name];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CATALOG]...';


GO
ALTER TABLE [dbo].[AFW_CATALOG]
    ADD DEFAULT '' FOR [cata_type];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CATALOG]...';


GO
ALTER TABLE [dbo].[AFW_CATALOG]
    ADD DEFAULT 0 FOR [cata_builtin];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CATALOG_CODE]...';


GO
ALTER TABLE [dbo].[AFW_CATALOG_CODE]
    ADD DEFAULT 1 FOR [code_status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CATALOG_CODE]...';


GO
ALTER TABLE [dbo].[AFW_CATALOG_CODE]
    ADD DEFAULT '' FOR [code_additional];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CHAT_ATTACHMENT]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_ATTACHMENT]
    ADD DEFAULT 0 FOR [FileSize];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CHAT_MESSAGE_MAIL]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_MESSAGE_MAIL]
    ADD DEFAULT (0) FOR [AssignedToId];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CHAT_PROJECT]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_PROJECT]
    ADD DEFAULT 1 FOR [Active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CHAT_SESSION]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_SESSION]
    ADD DEFAULT 0 FOR [IsTransfer];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CHAT_SESSION]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_SESSION]
    ADD DEFAULT 0 FOR [IsAgentChat];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CHAT_SETTING]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_SETTING]
    ADD DEFAULT 0 FOR [EnableMessageOffline];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CHAT_SETTING]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_SETTING]
    ADD DEFAULT 1 FOR [MaxAssignmentMail];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_CHAT_SETTING]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_SETTING]
    ADD DEFAULT 180 FOR [SessionTime];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_COMMENTS]...';


GO
ALTER TABLE [dbo].[AFW_COMMENTS]
    ADD DEFAULT 1 FOR [TypeId];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_COMMENTS]...';


GO
ALTER TABLE [dbo].[AFW_COMMENTS]
    ADD DEFAULT GETDATE() FOR [CreationDate];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AFW_DOCUMENT]
    ADD DEFAULT 0 FOR [docu_size];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AFW_DOCUMENT]
    ADD DEFAULT 0 FOR [docu_deleted];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AFW_DOCUMENT]
    ADD DEFAULT 0 FOR [docu_encrypted];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AFW_DOCUMENT]
    ADD DEFAULT 0 FOR [docu_public];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFW_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AFW_DOCUMENT]
    ADD CONSTRAINT [DF01_AFW_DOCUMENT] DEFAULT 0 FOR [status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_EXTERNAL_AUTH_PROVIDERS]...';


GO
ALTER TABLE [dbo].[AFW_EXTERNAL_AUTH_PROVIDERS]
    ADD DEFAULT 1 FOR [enabled];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_FOLDER]...';


GO
ALTER TABLE [dbo].[AFW_FOLDER]
    ADD DEFAULT 0 FOR [fold_public];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_GROUPS]...';


GO
ALTER TABLE [dbo].[AFW_GROUPS]
    ADD DEFAULT 1 FOR [grou_is_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_GROUPS]...';


GO
ALTER TABLE [dbo].[AFW_GROUPS]
    ADD DEFAULT 0 FOR [grou_authentication_id];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFW_ITEM_MODEL]...';


GO
ALTER TABLE [dbo].[AFW_ITEM_MODEL]
    ADD CONSTRAINT [DF01_AFW_ITEM_MODEL] DEFAULT (0) FOR [is_deleted];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AFW_ITEM_MODEL]...';


GO
ALTER TABLE [dbo].[AFW_ITEM_MODEL]
    ADD CONSTRAINT [DF02_AFW_ITEM_MODEL] DEFAULT (1) FOR [is_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ITEM_TIMES]...';


GO
ALTER TABLE [dbo].[AFW_ITEM_TIMES]
    ADD DEFAULT 0 FOR [builtin_id];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ITEM_TIMES]...';


GO
ALTER TABLE [dbo].[AFW_ITEM_TIMES]
    ADD DEFAULT 0 FOR [is_deleted];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_LDAP]...';


GO
ALTER TABLE [dbo].[AFW_LDAP]
    ADD DEFAULT 0 FOR [security];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_LDAP]...';


GO
ALTER TABLE [dbo].[AFW_LDAP]
    ADD DEFAULT 1 FOR [enable];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFW_LICENSE_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFW_LICENSE_ASSIGNMENT]
    ADD CONSTRAINT [DF01_AFW_LICENSE_ASSIGNMENT] DEFAULT 0 FOR [named];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_LICENSES_USED]...';


GO
ALTER TABLE [dbo].[AFW_LICENSES_USED]
    ADD DEFAULT 0 FOR [named];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_MAIL]...';


GO
ALTER TABLE [dbo].[AFW_MAIL]
    ADD DEFAULT GETDATE() FOR [mail_created];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_MAIL]...';


GO
ALTER TABLE [dbo].[AFW_MAIL]
    ADD DEFAULT 0 FOR [mail_failed_attempts];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_MAIL_ACCOUNT]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT]
    ADD DEFAULT 0 FOR [maac_is_ssl];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_MAIL_HISTORY]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_HISTORY]
    ADD DEFAULT 2 FOR [mahi_status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_MAIL_HISTORY]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_HISTORY]
    ADD DEFAULT GETDATE() FOR [mahi_created];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_MAIL_HISTORY]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_HISTORY]
    ADD DEFAULT GETDATE() FOR [mahi_modified_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_TEMPLATE]
    ADD DEFAULT 0 FOR [mate_format];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_TEMPLATE]
    ADD DEFAULT 0 FOR [mate_is_default];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_PERMISSIONS]...';


GO
ALTER TABLE [dbo].[AFW_PERMISSIONS]
    ADD DEFAULT 1 FOR [perm_is_active];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFW_QUEUE]...';


GO
ALTER TABLE [dbo].[AFW_QUEUE]
    ADD CONSTRAINT [DF01_AFW_QUEUE] DEFAULT 1 FOR [version];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ROLE_ACCESS]...';


GO
ALTER TABLE [dbo].[AFW_ROLE_ACCESS]
    ADD DEFAULT 0 FOR [roac_proj_deny];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ROLE_PERMISSION]...';


GO
ALTER TABLE [dbo].[AFW_ROLE_PERMISSION]
    ADD DEFAULT 0 FOR [is_audit];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ROLES]...';


GO
ALTER TABLE [dbo].[AFW_ROLES]
    ADD DEFAULT 1 FOR [role_is_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ROLES]...';


GO
ALTER TABLE [dbo].[AFW_ROLES]
    ADD DEFAULT 0 FOR [role_is_builtin];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ROLES]...';


GO
ALTER TABLE [dbo].[AFW_ROLES]
    ADD DEFAULT 0 FOR [role_application_id];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_ROLES]...';


GO
ALTER TABLE [dbo].[AFW_ROLES]
    ADD DEFAULT 0 FOR [role_concept_id];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_RULE]...';


GO
ALTER TABLE [dbo].[AFW_RULE]
    ADD DEFAULT 1 FOR [rule_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_RULE]...';


GO
ALTER TABLE [dbo].[AFW_RULE]
    ADD DEFAULT 0 FOR [rule_builtin];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_RULE_ACTION_TYPE]...';


GO
ALTER TABLE [dbo].[AFW_RULE_ACTION_TYPE]
    ADD DEFAULT 0 FOR [ignore_condition];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_RULE_EVALUATION_CACHE]...';


GO
ALTER TABLE [dbo].[AFW_RULE_EVALUATION_CACHE]
    ADD DEFAULT 0 FOR [rule_evaluation];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_SCHEDULER]...';


GO
ALTER TABLE [dbo].[AFW_SCHEDULER]
    ADD DEFAULT 60 FOR [sche_max_delay];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_SCHEDULER]...';


GO
ALTER TABLE [dbo].[AFW_SCHEDULER]
    ADD DEFAULT 0 FOR [sche_builtin];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_STATEMACHINE_DEFINITIONS]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_DEFINITIONS]
    ADD DEFAULT NULL FOR [de_project_id];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFW_STATEMACHINE_STATE_CATALOGS]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_STATE_CATALOGS]
    ADD CONSTRAINT [DF01_AFW_STATEMACHINE_STATE_CATALOGS] DEFAULT NULL FOR [stca_reference_app_id];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_STATEMACHINE_TRACE_CONTEXT]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_TRACE_CONTEXT]
    ADD DEFAULT GETDATE() FOR [stc_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFW_STATEMACHINE_TRANSITION_CATALOGS]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_TRANSITION_CATALOGS]
    ADD CONSTRAINT [DF01_AFW_STATEMACHINE_TRANSITION_CATALOGS] DEFAULT (0) FOR [trca_default_tran];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AFW_STATEMACHINE_TRANSITIONS]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_TRANSITIONS]
    ADD CONSTRAINT [DF01_AFW_STATEMACHINE_TRANSITIONS] DEFAULT (0) FOR [tr_default_tran];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_SURVEY]...';


GO
ALTER TABLE [dbo].[AFW_SURVEY]
    ADD DEFAULT 0 FOR [IsDeleted];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_TASKS]...';


GO
ALTER TABLE [dbo].[AFW_TASKS]
    ADD DEFAULT 1 FOR [task_asynchronous];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_TEMPLATES]...';


GO
ALTER TABLE [dbo].[AFW_TEMPLATES]
    ADD DEFAULT GETDATE() FOR [CreationDate];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_USER_SESSION_TOKEN]...';


GO
ALTER TABLE [dbo].[AFW_USER_SESSION_TOKEN]
    ADD DEFAULT GETDATE() FOR [validity];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_USERS]...';


GO
ALTER TABLE [dbo].[AFW_USERS]
    ADD DEFAULT 1 FOR [user_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_USERS]...';


GO
ALTER TABLE [dbo].[AFW_USERS]
    ADD DEFAULT 0 FOR [user_builtin];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_USERS]...';


GO
ALTER TABLE [dbo].[AFW_USERS]
    ADD DEFAULT GETDATE() FOR [user_creation_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AFW_USERS]...';


GO
ALTER TABLE [dbo].[AFW_USERS]
    ADD DEFAULT 0 FOR [user_authentication_id];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AI_TASK]...';


GO
ALTER TABLE [dbo].[AI_TASK]
    ADD DEFAULT 1 FOR [enabled];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AI_TASK]...';


GO
ALTER TABLE [dbo].[AI_TASK]
    ADD DEFAULT 1 FOR [order];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AI_TASK_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AI_TASK_CONFIGURATION]
    ADD DEFAULT 0 FOR [is_delete];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AI_TASK_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AI_TASK_CONFIGURATION]
    ADD DEFAULT 0 FOR [is_restart_sync];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AI_VECTOR]...';


GO
ALTER TABLE [dbo].[AI_VECTOR]
    ADD DEFAULT 1 FOR [dynamic_type];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AIC_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AIC_CONFIGURATION]
    ADD CONSTRAINT [DF01_AIC_CONFIGURATION] DEFAULT 0 FOR [reset_sync];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AIC_DEFINITION]...';


GO
ALTER TABLE [dbo].[AIC_DEFINITION]
    ADD CONSTRAINT [DF01_AIC_DEFINITION] DEFAULT 1 FOR [task_scheduling];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AMDMAPPSINFORMATION]...';


GO
ALTER TABLE [dbo].[AMDM_APPSINFORMATION]
    ADD CONSTRAINT [DF01_AMDMAPPSINFORMATION] DEFAULT 0 FOR [hasdevicecount];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AMDMAPPSINFORMATION]...';


GO
ALTER TABLE [dbo].[AMDM_APPSINFORMATION]
    ADD CONSTRAINT [DF02_AMDMAPPSINFORMATION] DEFAULT 0 FOR [issystem];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AMDMAPPSINFORMATION]...';


GO
ALTER TABLE [dbo].[AMDM_APPSINFORMATION]
    ADD CONSTRAINT [DF03_AMDMAPPSINFORMATION] DEFAULT 0 FOR [isvisible];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_AMDMAPPSINFORMATION]...';


GO
ALTER TABLE [dbo].[AMDM_APPSINFORMATION]
    ADD CONSTRAINT [DF04_AMDMAPPSINFORMATION] DEFAULT 0 FOR [isafw];


GO
PRINT N'Creating Default Constraint [dbo].[DF05_AMDMAPPSINFORMATION]...';


GO
ALTER TABLE [dbo].[AMDM_APPSINFORMATION]
    ADD CONSTRAINT [DF05_AMDMAPPSINFORMATION] DEFAULT 0 FOR [isprivate];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_CALENDAR]...';


GO
ALTER TABLE [dbo].[AMDM_CALENDAR]
    ADD DEFAULT getdate() FOR [cal_creationdate];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_COMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST]
    ADD DEFAULT ((0)) FOR [cmdreq_commandtypeid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_COMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST]
    ADD DEFAULT ((0)) FOR [cmdreq_targettypeid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF01_AMDMDEVICE] DEFAULT ((0)) FOR [totalinternalstorage];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF02_AMDMDEVICE] DEFAULT 1 FOR [fulfilledpolicy];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF03_AMDMDEVICE] DEFAULT 0 FOR [issecuritybroken];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF04_AMDMDEVICE] DEFAULT 0 FOR [alertstatusdeviceabsent];


GO
PRINT N'Creating Default Constraint [dbo].[DF05_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF05_AMDMDEVICE] DEFAULT 0 FOR [tracking];


GO
PRINT N'Creating Default Constraint [dbo].[DF06_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF06_AMDMDEVICE] DEFAULT 0 FOR [appisenrolled];


GO
PRINT N'Creating Default Constraint [dbo].[DF07_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF07_AMDMDEVICE] DEFAULT 0 FOR [androidfwprofileready];


GO
PRINT N'Creating Default Constraint [dbo].[DF08_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF08_AMDMDEVICE] DEFAULT 0 FOR [androidforworktokenset];


GO
PRINT N'Creating Default Constraint [dbo].[DF09_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF09_AMDMDEVICE] DEFAULT 0 FOR [lostmode];


GO
PRINT N'Creating Default Constraint [dbo].[DF10_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF10_AMDMDEVICE] DEFAULT 0 FOR [isknox];


GO
PRINT N'Creating Default Constraint [dbo].[DF11_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE]
    ADD CONSTRAINT [DF11_AMDMDEVICE] DEFAULT 0 FOR [istotallocked];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AMDM_DEVICE_HEALTHINFO]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE_HEALTHINFO]
    ADD CONSTRAINT [DF01_AMDM_DEVICE_HEALTHINFO] DEFAULT 0 FOR [last];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_DEVICEEVENT]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEEVENT]
    ADD DEFAULT ((0)) FOR [devevent_notificationtypeid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_DEVICEEXPENSE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEEXPENSE]
    ADD DEFAULT 0 FOR [devexp_daily_isroaming];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_DEVICEEXPENSE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEEXPENSE]
    ADD DEFAULT 1 FOR [devexp_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_DEVICEHARDWARE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEHARDWARE]
    ADD DEFAULT ((0)) FOR [devh_batterylevel];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_DEVICEHARDWARE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEHARDWARE]
    ADD DEFAULT ((0)) FOR [devh_totalinternalstorage];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_DEVICEHARDWARE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEHARDWARE]
    ADD DEFAULT ((0)) FOR [devh_availableinternalstorage];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_DEVICEHARDWARE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEHARDWARE]
    ADD DEFAULT 1 FOR [devh_locationavailable];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AMDM_DEVICESOFTWARE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICESOFTWARE]
    ADD CONSTRAINT [DF01_AMDM_DEVICESOFTWARE] DEFAULT 0 FOR [device_id];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AMDM_DEVICESOFTWARE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICESOFTWARE]
    ADD CONSTRAINT [DF02_AMDM_DEVICESOFTWARE] DEFAULT '' FOR [origin];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AMDM_DEVICESOFTWARE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICESOFTWARE]
    ADD CONSTRAINT [DF03_AMDM_DEVICESOFTWARE] DEFAULT 0 FOR [issystem];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_AMDM_DEVICESOFTWARE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICESOFTWARE]
    ADD CONSTRAINT [DF04_AMDM_DEVICESOFTWARE] DEFAULT 0 FOR [isupdated];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EVENT_MANAGEMENT]...';


GO
ALTER TABLE [dbo].[AMDM_EVENT_MANAGEMENT]
    ADD DEFAULT 0 FOR [total_successful];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EVENT_MANAGEMENT]...';


GO
ALTER TABLE [dbo].[AMDM_EVENT_MANAGEMENT]
    ADD DEFAULT 0 FOR [total_failed];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN]
    ADD DEFAULT 0 FOR [plan_description];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN]
    ADD DEFAULT 0 FOR [plan_costunitvoice];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN]
    ADD DEFAULT 0 FOR [plan_costunitdata];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN]
    ADD DEFAULT 0 FOR [plan_roamingvoicesize];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN]
    ADD DEFAULT 0 FOR [plan_roamingcostunitvoice];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN]
    ADD DEFAULT 0 FOR [plan_roamingdatasize];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN]
    ADD DEFAULT 0 FOR [plan_roamingcostunitdata];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN]
    ADD DEFAULT '' FOR [plan_exceptions];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_EXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN]
    ADD DEFAULT 1.2 FOR [plan_correctionfactor];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PENDINGENROLL]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLL]
    ADD DEFAULT ('1900-01-01T00:00:00.000') FOR [penr_requestdate];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PENDINGENROLL]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLL]
    ADD DEFAULT 0 FOR [penr_afwcapable];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PENDINGENROLL]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLL]
    ADD DEFAULT 0 FOR [has_massive_enrollment];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PENDINGENROLLFLAGS]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLLFLAGS]
    ADD DEFAULT ((0)) FOR [penrf_iosprofiledownloaded];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PENDINGENROLLFLAGS]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLLFLAGS]
    ADD DEFAULT ((0)) FOR [penrf_iosappdownloaded];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PENDINGENROLLFLAGS]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLLFLAGS]
    ADD DEFAULT ((0)) FOR [penrf_androidappdownloaded];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PENDINGENROLLFLAGS]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLLFLAGS]
    ADD DEFAULT ((0)) FOR [penrf_w10workplacecreated];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PENDINGENROLLFLAGS]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLLFLAGS]
    ADD DEFAULT ((0)) FOR [penrf_w10appauthenticated];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PENDINGENROLLFLAGS]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLLFLAGS]
    ADD DEFAULT ((0)) FOR [penrf_w10termsaccepted];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PENDINGENROLLFLAGS]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLLFLAGS]
    ADD DEFAULT ((0)) FOR [penrf_dispatchertermsaccepted];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_POLICY]...';


GO
ALTER TABLE [dbo].[AMDM_POLICY]
    ADD DEFAULT ((0)) FOR [policy_createby];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_POLICY]...';


GO
ALTER TABLE [dbo].[AMDM_POLICY]
    ADD DEFAULT 0 FOR [policy_isgeneric];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_POLICY]...';


GO
ALTER TABLE [dbo].[AMDM_POLICY]
    ADD DEFAULT 0 FOR [policy_isafw];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_POLICYPARAMAPPMAIN]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYPARAMAPPMAIN]
    ADD DEFAULT 0 FOR [poliparammainapp_forcesafe];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PUSHREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_PUSHREQUEST]
    ADD DEFAULT 0 FOR [pushreq_attempCount];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_PUSHREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_PUSHREQUEST]
    ADD DEFAULT 0 FOR [pushreq_inProgress];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_haveGeofencing];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_haveWififencing];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_haveUserlogged];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_haveUnenroll];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_haveRooted];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_haveFullFillment];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_haveWorkHorary];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_haveNewInventory];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_haveExpense];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_haveLoginFailed];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_RULESET]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET]
    ADD DEFAULT 0 FOR [ruleset_version];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_SENTCOMMAND]...';


GO
ALTER TABLE [dbo].[AMDM_SENTCOMMAND]
    ADD DEFAULT ('1900-01-01T00:00:00.000') FOR [sentcmd_expirydate];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_SENTCOMMAND]...';


GO
ALTER TABLE [dbo].[AMDM_SENTCOMMAND]
    ADD DEFAULT ((0)) FOR [sentcmd_errortypeid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AMDM_ZONE]...';


GO
ALTER TABLE [dbo].[AMDM_ZONE]
    ADD DEFAULT getdate() FOR [zone_creationdate];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ANM_DEVICE_MONITOR]...';


GO
ALTER TABLE [dbo].[ANM_DEVICE_MONITOR]
    ADD DEFAULT GETDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ANM_DEVICE_MONITOR]...';


GO
ALTER TABLE [dbo].[ANM_DEVICE_MONITOR]
    ADD DEFAULT 0 FOR [is_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[APM_CATALOG]...';


GO
ALTER TABLE [dbo].[APM_CATALOG]
    ADD DEFAULT 0 FOR [download_is_completed];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_APM_DOWNLOAD_DETAIL]...';


GO
ALTER TABLE [dbo].[APM_DOWNLOAD_DETAIL]
    ADD CONSTRAINT [DF01_APM_DOWNLOAD_DETAIL] DEFAULT 0 FOR [automatic_install];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_APM_UPDATE_SETUPPROJECT]...';


GO
ALTER TABLE [dbo].[APM_UPDATE_SETUPPROJECT]
    ADD CONSTRAINT [DF01_APM_UPDATE_SETUPPROJECT] DEFAULT 0 FOR [in_process];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_APPLICATION]...';


GO
ALTER TABLE [dbo].[AQM_APPLICATION]
    ADD DEFAULT (0) FOR [BuiltIn];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_APPLICATION]...';


GO
ALTER TABLE [dbo].[AQM_APPLICATION]
    ADD DEFAULT 0 FOR [Suite];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_APPLICATION]...';


GO
ALTER TABLE [dbo].[AQM_APPLICATION]
    ADD DEFAULT 0 FOR [Enabled];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AQM_DATASOURCE]...';


GO
ALTER TABLE [dbo].[AQM_DATASOURCE]
    ADD CONSTRAINT [DF01_AQM_DATASOURCE] DEFAULT GETDATE() FOR [CreationDate];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AQM_DATASOURCE]...';


GO
ALTER TABLE [dbo].[AQM_DATASOURCE]
    ADD CONSTRAINT [DF02_AQM_DATASOURCE] DEFAULT 0 FOR [IsOlap];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT]
    ADD DEFAULT 0 FOR [IsPublished];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT]
    ADD DEFAULT 1 FOR [Type];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT]
    ADD DEFAULT NULL FOR [Tags];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT]
    ADD DEFAULT 0 FOR [TotalDownloads];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT]
    ADD DEFAULT 0 FOR [InStore];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT]
    ADD DEFAULT 0 FOR [ReloadTime];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT]
    ADD DEFAULT 1 FOR [ProviderId];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_DOCUMENT_TEST]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT_TEST]
    ADD DEFAULT GETDATE() FOR [date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_EXPORT_REQUEST]...';


GO
ALTER TABLE [dbo].[AQM_EXPORT_REQUEST]
    ADD DEFAULT (GETDATE()) FOR [CreationDate];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_EXPORT_REQUEST]...';


GO
ALTER TABLE [dbo].[AQM_EXPORT_REQUEST]
    ADD DEFAULT (1) FOR [Status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_FOLDER_PERMISSION_REQUEST]...';


GO
ALTER TABLE [dbo].[AQM_FOLDER_PERMISSION_REQUEST]
    ADD DEFAULT 1 FOR [status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_FOLDER_SETTING]...';


GO
ALTER TABLE [dbo].[AQM_FOLDER_SETTING]
    ADD DEFAULT (0) FOR [BuiltIn];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AQM_REPORT]...';


GO
ALTER TABLE [dbo].[AQM_REPORT2]
    ADD CONSTRAINT [DF01_AQM_REPORT] DEFAULT NEWID() FOR [guid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AQM_STORE_ACCOUNT]...';


GO
ALTER TABLE [dbo].[AQM_STORE_ACCOUNT]
    ADD DEFAULT 0 FOR [Enabled];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASD_PACKAGE]...';


GO
ALTER TABLE [dbo].[ASD_PACKAGE]
    ADD CONSTRAINT [DF01_ASD_PACKAGE] DEFAULT (1) FOR [platform];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASD_SETUPPROJECT]...';


GO
ALTER TABLE [dbo].[ASD_SETUPPROJECT]
    ADD DEFAULT (1) FOR [type];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASD_SETUPPROJECT]...';


GO
ALTER TABLE [dbo].[ASD_SETUPPROJECT]
    ADD DEFAULT (1) FOR [platform];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_CATEGORY]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY]
    ADD CONSTRAINT [DF01_ASDK_CATEGORY] DEFAULT (0) FOR [is_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_CATEGORY]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY]
    ADD CONSTRAINT [DF02_ASMS_CATEGORY] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_CATEGORY_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_SERVICE]
    ADD CONSTRAINT [DF01_ASDK_CATEGORY_SERVICE] DEFAULT (0) FOR [is_visible_home];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASDK_CATEGORY_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_SERVICE]
    ADD CONSTRAINT [DF02_ASDK_CATEGORY_SERVICE] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF_ASDK_CATEGORY_SERVICE_CLOSED_visible_home]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_SERVICE_CLOSED]
    ADD CONSTRAINT [DF_ASDK_CATEGORY_SERVICE_CLOSED_visible_home] DEFAULT (0) FOR [is_visible_home];


GO
PRINT N'Creating Default Constraint [dbo].[DF_ASDK_EVENT_CONFIG_active]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_CONFIG]
    ADD CONSTRAINT [DF_ASDK_EVENT_CONFIG_active] DEFAULT ((0)) FOR [active];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_ITEM_STAGE]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_STAGE]
    ADD CONSTRAINT [DF01_ASDK_ITEM_STAGE] DEFAULT (GETUTCDATE()) FOR [created_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_ITEM_STAGE_CLOSED]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_STAGE_CLOSED]
    ADD CONSTRAINT [DF01_ASDK_ITEM_STAGE_CLOSED] DEFAULT (GETUTCDATE()) FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASDK_MAIL_CONFIG]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_CONFIG]
    ADD DEFAULT ((0)) FOR [cnf_delete_mails];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASDK_MAIL_CONFIG]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_CONFIG]
    ADD DEFAULT ((0)) FOR [cnf_state];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASDK_MAIL_CONFIG]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_CONFIG]
    ADD DEFAULT ((0)) FOR [cnf_save_pdf];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE]
    ADD CONSTRAINT [DF01_ASDK_SERVICE] DEFAULT (0) FOR [is_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE]
    ADD CONSTRAINT [DF02_ASDK_SERVICE] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_SERVICE_ACCOUNTING]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_ACCOUNTING]
    ADD CONSTRAINT [DF01_ASDK_SERVICE_ACCOUNTING] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_SERVICE_BAG]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_BAG]
    ADD CONSTRAINT [DF01_ASDK_SERVICE_BAG] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_SERVICE_DW]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_DW]
    ADD CONSTRAINT [DF01_ASDK_SERVICE_DW] DEFAULT (0) FOR [is_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_SERVICE_DW_LAST]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_DW_LAST]
    ADD CONSTRAINT [DF01_ASDK_SERVICE_DW_LAST] DEFAULT (0) FOR [is_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_SERVICE_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_TYPE]
    ADD CONSTRAINT [DF01_ASDK_SERVICE_TYPE] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASDK_SHOPPING_CART]...';


GO
ALTER TABLE [dbo].[ASDK_SHOPPING_CART]
    ADD DEFAULT (0) FOR [is_notified];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA]
    ADD CONSTRAINT [DF01_ASDK_SLA] DEFAULT 0 FOR [FL_INT_FINISH_HAS_ALARM];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA]
    ADD CONSTRAINT [DF02_ASDK_SLA] DEFAULT 0 FOR [FL_INT_REVIEW_HAS_ALARM];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA]
    ADD CONSTRAINT [DF03_ASDK_SLA] DEFAULT 0 FOR [finish_schedule_flag];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA]
    ADD CONSTRAINT [DF04_ASDK_SLA] DEFAULT 0 FOR [review_schedule_flag];


GO
PRINT N'Creating Default Constraint [dbo].[DF05_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA]
    ADD CONSTRAINT [DF05_ASDK_SLA] DEFAULT 0 FOR [is_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF06_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA]
    ADD CONSTRAINT [DF06_ASDK_SLA] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASDK_SLA_CLOSED]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CLOSED]
    ADD DEFAULT 0 FOR [FL_INT_FINISH_HAS_ALARM];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASDK_SLA_CLOSED]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CLOSED]
    ADD DEFAULT 0 FOR [FL_INT_REVIEW_HAS_ALARM];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASDK_SLA_CLOSED]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CLOSED]
    ADD DEFAULT 0 FOR [finish_schedule_flag];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASDK_SLA_CLOSED]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CLOSED]
    ADD DEFAULT 0 FOR [review_schedule_flag];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASDK_TEMPLATES]...';


GO
ALTER TABLE [dbo].[ASDK_TEMPLATES]
    ADD DEFAULT 0 FOR [is_scheduled_action];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASM_CONSOLIDATE_CONTROL]...';


GO
ALTER TABLE [dbo].[ASM_CONSOLIDATE_CONTROL]
    ADD CONSTRAINT [DF01_ASM_CONSOLIDATE_CONTROL] DEFAULT GETUTCDATE() FOR [last_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASM_DEVICE_USAGE_DAY]...';


GO
ALTER TABLE [dbo].[ASM_DEVICE_USAGE_DAY]
    ADD DEFAULT 0 FOR [duration];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASM_SOFTWARE_USAGE]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE]
    ADD CONSTRAINT [DF01_ASM_SOFTWARE_USAGE] DEFAULT 0 FOR [cpu];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASM_SOFTWARE_USAGE]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE]
    ADD CONSTRAINT [DF02_ASM_SOFTWARE_USAGE] DEFAULT 0 FOR [memory];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASM_SOFTWARE_USAGE_DAY]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY]
    ADD DEFAULT 0 FOR [duration];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASM_SOFTWARE_USAGE_DAY]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY]
    ADD DEFAULT 0 FOR [cpu];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASM_SOFTWARE_USAGE_DAY]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY]
    ADD DEFAULT 0 FOR [memory];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASM_SOFTWARE_USAGE_DETAIL]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL]
    ADD CONSTRAINT [DF01_ASM_SOFTWARE_USAGE_DETAIL] DEFAULT ((0)) FOR [cpu];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASM_SOFTWARE_USAGE_DETAIL]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL]
    ADD CONSTRAINT [DF02_ASM_SOFTWARE_USAGE_DETAIL] DEFAULT ((0)) FOR [memory];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASM_SOFTWARE_USAGE_MONTH]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_MONTH]
    ADD DEFAULT 0 FOR [duration];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASM_SOFTWARE_USAGE_MONTH]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_MONTH]
    ADD DEFAULT 0 FOR [cpu];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASM_SOFTWARE_USAGE_MONTH]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_MONTH]
    ADD DEFAULT 0 FOR [memory];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_ADVANCED_SHIFTS]...';


GO
ALTER TABLE [dbo].[ASMS_ADVANCED_SHIFTS]
    ADD DEFAULT 1 FOR [active_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS]
    ADD CONSTRAINT [DF01_ASMS_APPROVALS] DEFAULT 1 FOR [is_active];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS]
    ADD CONSTRAINT [DF02_ASMS_APPROVALS] DEFAULT 0 FOR [responsible_boss_approve];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS]
    ADD CONSTRAINT [DF03_ASMS_APPROVALS] DEFAULT 0 FOR [customer_boss_approve];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_ASDK_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS]
    ADD CONSTRAINT [DF04_ASDK_APPROVALS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_APPROVALS_DETAIL]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL]
    ADD DEFAULT 0 FOR [attempts_executed];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_APPROVALS_PROFILES]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_PROFILES]
    ADD DEFAULT 0 FOR [assing_specialist];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_CALENDAR]...';


GO
ALTER TABLE [dbo].[ASMS_CALENDAR]
    ADD CONSTRAINT [DF01_ASMS_CALENDAR] DEFAULT (0) FOR [is_change];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_CALENDAR]...';


GO
ALTER TABLE [dbo].[ASMS_CALENDAR]
    ADD CONSTRAINT [DF02_ASMS_CALENDAR] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_CALENDAR_DAYS]...';


GO
ALTER TABLE [dbo].[ASMS_CALENDAR_DAYS]
    ADD CONSTRAINT [DF01_ASMS_CALENDAR_DAYS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_CALENDAR_HOURS]...';


GO
ALTER TABLE [dbo].[ASMS_CALENDAR_HOURS]
    ADD CONSTRAINT [DF01_ASMS_CALENDAR_HOURS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_CHANGE_SET_OPERATION]...';


GO
ALTER TABLE [dbo].[ASMS_CHANGE_SET_OPERATION]
    ADD DEFAULT (1) FOR [status];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT]
    ADD DEFAULT ((0)) FOR [FL_INT_HAS_ALARM];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_COST_CENTER]...';


GO
ALTER TABLE [dbo].[ASMS_COST_CENTER]
    ADD CONSTRAINT [DF01_ASMS_COST_CENTER] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS]
    ADD DEFAULT (0) FOR [has_dependencies];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS]
    ADD CONSTRAINT [DF01_ASMS_FIELDS] DEFAULT (0) FOR [is_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS]
    ADD CONSTRAINT [DF02_ASMS_FIELDS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_ASMS_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS]
    ADD CONSTRAINT [DF03_ASMS_FIELDS] DEFAULT (0) FOR [use_thousand];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_ASMS_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS]
    ADD CONSTRAINT [DF04_ASMS_FIELDS] DEFAULT (0) FOR [enable_math_operations];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_FIELDS_DATA]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DATA]
    ADD CONSTRAINT [DF01_ASMS_FIELDS_DATA] DEFAULT (GETUTCDATE()) FOR [last_update];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_FIELDS_DATA_CLOSED]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DATA_CLOSED]
    ADD CONSTRAINT [DF01_ASMS_FIELDS_DATA_CLOSED] DEFAULT (GETUTCDATE()) FOR [last_update];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_FIELDS_DATASOURCE]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DATASOURCE]
    ADD CONSTRAINT [DF01_ASMS_FIELDS_DATASOURCE] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_FIELDS_DEPENDENTS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DEPENDENTS]
    ADD CONSTRAINT [DF01_ASMS_FIELDS_DEPENDENTS] DEFAULT (0) FOR [inherit_value];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_FIELDS_DEPENDENTS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DEPENDENTS]
    ADD CONSTRAINT [DF02_ASMS_FIELDS_DEPENDENTS] DEFAULT (NULL) FOR [visible];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_ASMS_FIELDS_DEPENDENTS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DEPENDENTS]
    ADD CONSTRAINT [DF03_ASMS_FIELDS_DEPENDENTS] DEFAULT (NULL) FOR [editable];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_ASMS_FIELDS_DEPENDENTS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DEPENDENTS]
    ADD CONSTRAINT [DF04_ASMS_FIELDS_DEPENDENTS] DEFAULT (NULL) FOR [mandatory];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_FIELDS_VALUE]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_VALUES]
    ADD CONSTRAINT [DF01_ASMS_FIELDS_VALUE] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_FOLDER]...';


GO
ALTER TABLE [dbo].[ASMS_FOLDER]
    ADD CONSTRAINT [DF01_ASMS_FOLDER] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_FORM_SECTIONS]...';


GO
ALTER TABLE [dbo].[ASMS_FORM_SECTIONS]
    ADD CONSTRAINT [DF01_ASMS_FORM_SECTIONS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_FORMS]...';


GO
ALTER TABLE [dbo].[ASMS_FORMS]
    ADD CONSTRAINT [DF01_ASMS_FORMS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_IMPORT]...';


GO
ALTER TABLE [dbo].[ASMS_IMPORT]
    ADD CONSTRAINT [DF01_ASMS_IMPORT] DEFAULT (0) FOR [type_action];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_INTEGRATIONS]...';


GO
ALTER TABLE [dbo].[ASMS_INTEGRATIONS]
    ADD DEFAULT 0 FOR [active];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_INTERFACE]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE]
    ADD CONSTRAINT [DF01_ASMS_INTERFACE] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_LOCATION]...';


GO
ALTER TABLE [dbo].[ASMS_LOCATION]
    ADD CONSTRAINT [DF01_ASMS_LOCATION] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_LOCATION]...';


GO
ALTER TABLE [dbo].[ASMS_LOCATION]
    ADD CONSTRAINT [DF02_ASMS_LOCATION] DEFAULT (GETUTCDATE()) FOR [last_update];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_MAIL_TEMPLATE]
    ADD CONSTRAINT [DF01_ASMS_MAIL_TEMPLATE] DEFAULT (0) FOR [is_html];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_MAIL_TEMPLATE]
    ADD CONSTRAINT [DF02_ASMS_MAIL_TEMPLATE] DEFAULT (0) FOR [is_default];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_ASMS_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_MAIL_TEMPLATE]
    ADD CONSTRAINT [DF03_ASMS_MAIL_TEMPLATE] DEFAULT ((0)) FOR [is_builtin];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_ASMS_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_MAIL_TEMPLATE]
    ADD CONSTRAINT [DF04_ASMS_MAIL_TEMPLATE] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_MODEL]...';


GO
ALTER TABLE [dbo].[ASMS_MODEL]
    ADD CONSTRAINT [DF01_ASMS_MODEL] DEFAULT (0) FOR [is_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_MODEL]...';


GO
ALTER TABLE [dbo].[ASMS_MODEL]
    ADD CONSTRAINT [DF02_ASMS_MODEL] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_MODELPROFILES]...';


GO
ALTER TABLE [dbo].[ASMS_MODELPROFILES]
    ADD DEFAULT 0 FOR [assign_specialist];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_MODELPROFILES]...';


GO
ALTER TABLE [dbo].[ASMS_MODELPROFILES]
    ADD CONSTRAINT [DF01_ASMS_MODELPROFILES] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_POSITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_POSITIONS]
    ADD DEFAULT ((0)) FOR [accuracy];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_POSITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_POSITIONS]
    ADD CONSTRAINT [DF01_ASMS_POSITIONS] DEFAULT (GETUTCDATE()) FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_POSITIONS_LAST]...';


GO
ALTER TABLE [dbo].[ASMS_POSITIONS_LAST]
    ADD DEFAULT ((0)) FOR [accuracy];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_PROFILES]...';


GO
ALTER TABLE [dbo].[ASMS_PROFILES]
    ADD CONSTRAINT [DF01_ASMS_PROFILES] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_PROJECTS]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECTS]
    ADD CONSTRAINT [DF01_ASMS_PROJECTS] DEFAULT (0) FOR [proj_is_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_PROJECTS]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECTS]
    ADD CONSTRAINT [DF02_ASMS_PROJECTS] DEFAULT LOWER(NEWID()) FOR [proj_guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_RELATION_TYPE]...';


GO
ALTER TABLE [dbo].[ASMS_RELATION_TYPE]
    ADD CONSTRAINT [DF01_ASMS_RELATION_TYPE] DEFAULT (0) FOR [is_complementary_relation];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_RISK]...';


GO
ALTER TABLE [dbo].[ASMS_RISK]
    ADD DEFAULT 0 FOR [active];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_RULES]...';


GO
ALTER TABLE [dbo].[ASMS_RULES]
    ADD CONSTRAINT [DF01_ASMS_RULES] DEFAULT ((0)) FOR [rule_order];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_RULES]...';


GO
ALTER TABLE [dbo].[ASMS_RULES]
    ADD CONSTRAINT [DF02_ASMS_RULES] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_ASMS_RULES]...';


GO
ALTER TABLE [dbo].[ASMS_RULES]
    ADD CONSTRAINT [DF03_ASMS_RULES] DEFAULT ((0)) FOR [clone_change];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_RULES_ACTIONS]...';


GO
ALTER TABLE [dbo].[ASMS_RULES_ACTIONS]
    ADD CONSTRAINT [DF01_ASMS_RULES_ACTIONS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_RULES_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_RULES_CONDITIONS]
    ADD CONSTRAINT [DF01_ASMS_RULES_CONDITIONS] DEFAULT ((0)) FOR [time_dependent];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_RULES_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_RULES_CONDITIONS]
    ADD CONSTRAINT [DF02_ASMS_RULES_CONDITIONS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_SCRIPT]...';


GO
ALTER TABLE [dbo].[ASMS_SCRIPT]
    ADD CONSTRAINT [DF01_ASMS_SCRIPT] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_SETTINGS]...';


GO
ALTER TABLE [dbo].[ASMS_SETTINGS]
    ADD CONSTRAINT [DF01_ASMS_SETTINGS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS]
    ADD CONSTRAINT [DF01_ASMS_STATUS] DEFAULT ((0)) FOR [stat_built_in];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS]
    ADD CONSTRAINT [DF02_ASMS_STATUS] DEFAULT (0) FOR [stat_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_ASMS_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS]
    ADD CONSTRAINT [DF03_ASMS_STATUS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_STATUS_REASON]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_REASON]
    ADD CONSTRAINT [DF01_ASMS_STATUS_REASON] DEFAULT (0) FOR [reas_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_STATUS_REASON]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_REASON]
    ADD CONSTRAINT [DF02_ASMS_STATUS_REASON] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_STATUS_TRANSITION]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION]
    ADD CONSTRAINT [DF01_ASMS_STATUS_TRANSITION] DEFAULT (0) FOR [sttr_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_STATUS_TRANSITION]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION]
    ADD CONSTRAINT [DF02_ASMS_STATUS_TRANSITION] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_SURVEY_DATA]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY_DATA]
    ADD CONSTRAINT [DF01_ASMS_SURVEY_DATA] DEFAULT (GETUTCDATE()) FOR [created_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_TASK_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_CONDITIONS]
    ADD CONSTRAINT [DF01_ASMS_TASK_CONDITIONS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_TASK_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_TEMPLATE]
    ADD CONSTRAINT [DF01_ASMS_TASK_TEMPLATE] DEFAULT ((0)) FOR [offset];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_TASK_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_TEMPLATE]
    ADD CONSTRAINT [DF02_ASMS_TASK_TEMPLATE] DEFAULT ((0)) FOR [type_id];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_ASMS_TASK_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_TEMPLATE]
    ADD CONSTRAINT [DF03_ASMS_TASK_TEMPLATE] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_TIMES]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES]
    ADD DEFAULT (0) FOR [recalculate_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_TIMES]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES]
    ADD CONSTRAINT [DF01_ASMS_TIMES] DEFAULT ((0)) FOR [type_id];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_TIMES]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES]
    ADD CONSTRAINT [DF02_ASMS_TIMES] DEFAULT (0) FOR [is_delete];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_ASMS_TIMES]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES]
    ADD CONSTRAINT [DF03_ASMS_TIMES] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint [dbo].[DF04_ASMS_TIMES]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES]
    ADD CONSTRAINT [DF04_ASMS_TIMES] DEFAULT (0) FOR [reactive_time];


GO
PRINT N'Creating Default Constraint [dbo].[DF_ASMS_TIMES_BUILTIN_is_default]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_BUILTIN]
    ADD CONSTRAINT [DF_ASMS_TIMES_BUILTIN_is_default] DEFAULT ((0)) FOR [is_default];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_ASMS_TIMES_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_CONDITIONS]
    ADD CONSTRAINT [DF01_ASMS_TIMES_CONDITIONS] DEFAULT ((0)) FOR [class];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_ASMS_TIMES_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_CONDITIONS]
    ADD CONSTRAINT [DF02_ASMS_TIMES_CONDITIONS] DEFAULT ((0)) FOR [time_dependent];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_ASMS_TIMES_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_CONDITIONS]
    ADD CONSTRAINT [DF03_ASMS_TIMES_CONDITIONS] DEFAULT LOWER(NEWID()) FOR [guid];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_TIMES_DATA_CLOSED]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_DATA_CLOSED]
    ADD DEFAULT ((0)) FOR [status_type];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_TIMES_DATA_CLOSED]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_DATA_CLOSED]
    ADD DEFAULT (0) FOR [recalculate_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_TIMES_DATA_CLOSED]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_DATA_CLOSED]
    ADD DEFAULT (0) FOR [sdb_current_paused];


GO
PRINT N'Creating Default Constraint [dbo].[DF_ASMS_TIMES_DATA_CLOSED_time_type_id]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_DATA_CLOSED]
    ADD CONSTRAINT [DF_ASMS_TIMES_DATA_CLOSED_time_type_id] DEFAULT ((0)) FOR [time_type_id];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_TOUR_STEP]...';


GO
ALTER TABLE [dbo].[ASMS_TOUR_STEP]
    ADD DEFAULT ((0)) FOR [next_button];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_TOUR_STEP]...';


GO
ALTER TABLE [dbo].[ASMS_TOUR_STEP]
    ADD DEFAULT ((0)) FOR [previous_button];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_TOUR_STEP]...';


GO
ALTER TABLE [dbo].[ASMS_TOUR_STEP]
    ADD DEFAULT ((0)) FOR [finish_button];


GO
PRINT N'Creating Default Constraint [dbo].[DF_ASMS_USER_LOCATION_is_default]...';


GO
ALTER TABLE [dbo].[ASMS_USER_LOCATION]
    ADD CONSTRAINT [DF_ASMS_USER_LOCATION_is_default] DEFAULT ((0)) FOR [is_default];


GO
PRINT N'Creating Default Constraint [dbo].[DF_ASMS_WIZARD_TOUR_step_order]...';


GO
ALTER TABLE [dbo].[ASMS_WIZARD_TOUR]
    ADD CONSTRAINT [DF_ASMS_WIZARD_TOUR_step_order] DEFAULT ((1)) FOR [step_order];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_WIZARD_USER]...';


GO
ALTER TABLE [dbo].[ASMS_WIZARD_USER]
    ADD DEFAULT 0 FOR [is_active];


GO
PRINT N'Creating Default Constraint [dbo].[DF_ASS_ARTICLE_FL_INT_PUBLIC]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE]
    ADD CONSTRAINT [DF_ASS_ARTICLE_FL_INT_PUBLIC] DEFAULT ((0)) FOR [is_public];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASS_ARTICLE_VERSION]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE_VERSION]
    ADD DEFAULT 0 FOR [is_active];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASS_ARTICLE_VERSION]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE_VERSION]
    ADD DEFAULT (0) FOR [is_public];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASS_KEYWORD]...';


GO
ALTER TABLE [dbo].[ASS_KEYWORD]
    ADD DEFAULT 0 FOR [keyw_public];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASS_KEYWORD]...';


GO
ALTER TABLE [dbo].[ASS_KEYWORD]
    ADD DEFAULT 0 FOR [keyw_relevance];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASS_KEYWORD]...';


GO
ALTER TABLE [dbo].[ASS_KEYWORD]
    ADD DEFAULT GETDATE() FOR [keyw_lru];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASS_RATING]...';


GO
ALTER TABLE [dbo].[ASS_RATING]
    ADD DEFAULT 0 FOR [VERSION];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASS_SEARCH_RESULT]...';


GO
ALTER TABLE [dbo].[ASS_SEARCH_RESULT]
    ADD DEFAULT GETDATE() FOR [sere_first_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASS_SEARCH_RESULT]...';


GO
ALTER TABLE [dbo].[ASS_SEARCH_RESULT]
    ADD DEFAULT GETDATE() FOR [sere_last_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASS_SEARCH_RESULT]...';


GO
ALTER TABLE [dbo].[ASS_SEARCH_RESULT]
    ADD DEFAULT 1 FOR [sere_counter];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AVS_AUDIT]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT]
    ADD CONSTRAINT [DF01_AVS_AUDIT] DEFAULT GETUTCDATE() FOR [creation_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AVS_AUDIT_DEVICE]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_DEVICE]
    ADD CONSTRAINT [DF01_AVS_AUDIT_DEVICE] DEFAULT GETUTCDATE() FOR [start_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AVS_AUDIT_DEVICE]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_DEVICE]
    ADD CONSTRAINT [DF02_AVS_AUDIT_DEVICE] DEFAULT NULL FOR [end_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AVS_AUDIT_DEVICE]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_DEVICE]
    ADD CONSTRAINT [DF03_AVS_AUDIT_DEVICE] DEFAULT 1 FOR [is_current];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AVS_AUDIT_FILE_LIST]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_FILE_LIST]
    ADD CONSTRAINT [DF01_AVS_AUDIT_FILE_LIST] DEFAULT GETUTCDATE() FOR [creation_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AVS_AUDIT_FILE_TRANSFER]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_FILE_TRANSFER]
    ADD CONSTRAINT [DF01_AVS_AUDIT_FILE_TRANSFER] DEFAULT GETUTCDATE() FOR [creation_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AVS_AUDIT_GROUP_SUPPORT]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_GROUP_SUPPORT]
    ADD CONSTRAINT [DF01_AVS_AUDIT_GROUP_SUPPORT] DEFAULT GETUTCDATE() FOR [start_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AVS_AUDIT_GROUP_SUPPORT]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_GROUP_SUPPORT]
    ADD CONSTRAINT [DF02_AVS_AUDIT_GROUP_SUPPORT] DEFAULT NULL FOR [end_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AVS_AUDIT_GROUP_SUPPORT]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_GROUP_SUPPORT]
    ADD CONSTRAINT [DF03_AVS_AUDIT_GROUP_SUPPORT] DEFAULT 1 FOR [is_current];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AVS_AUDIT_RECORDING]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_RECORDING]
    ADD CONSTRAINT [DF01_AVS_AUDIT_RECORDING] DEFAULT GETUTCDATE() FOR [creation_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_AVS_AUDIT_USERS]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_USERS]
    ADD CONSTRAINT [DF01_AVS_AUDIT_USERS] DEFAULT GETUTCDATE() FOR [start_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_AVS_AUDIT_USERS]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_USERS]
    ADD CONSTRAINT [DF02_AVS_AUDIT_USERS] DEFAULT NULL FOR [end_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_AVS_AUDIT_USERS]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_USERS]
    ADD CONSTRAINT [DF03_AVS_AUDIT_USERS] DEFAULT 1 FOR [is_current];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[AVS_DEVICE]...';


GO
ALTER TABLE [dbo].[AVS_DEVICE]
    ADD DEFAULT GETUTCDATE() FOR [modification_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[CMDB_AUDIT]...';


GO
ALTER TABLE [dbo].[CMDB_AUDIT]
    ADD DEFAULT 0 FOR [FL_BOL_HASALARM];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[CMDB_AUDIT]...';


GO
ALTER TABLE [dbo].[CMDB_AUDIT]
    ADD DEFAULT 0 FOR [schedule_flag];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DASH_BOARD]...';


GO
ALTER TABLE [dbo].[DASH_BOARD]
    ADD DEFAULT 0 FOR [boar_state];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_AGGREGATE]...';


GO
ALTER TABLE [dbo].[DMM_AGGREGATE]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_AGGREGATE_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_AGGREGATE_TRANSLATION]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_ATTRIBUTE]...';


GO
ALTER TABLE [dbo].[DMM_ATTRIBUTE]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_DMM_ATTRIBUTE]...';


GO
ALTER TABLE [dbo].[DMM_ATTRIBUTE]
    ADD CONSTRAINT [DF01_DMM_ATTRIBUTE] DEFAULT (0) FOR [can_sort];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_DMM_ATTRIBUTE]...';


GO
ALTER TABLE [dbo].[DMM_ATTRIBUTE]
    ADD CONSTRAINT [DF02_DMM_ATTRIBUTE] DEFAULT (0) FOR [can_filter];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_ATTRIBUTE_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_ATTRIBUTE_TRANSLATION]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_COLUMN]...';


GO
ALTER TABLE [dbo].[DMM_COLUMN]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_DDM_COLUMN]...';


GO
ALTER TABLE [dbo].[DMM_COLUMN]
    ADD CONSTRAINT [DF01_DDM_COLUMN] DEFAULT (0) FOR [unique_key];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_DATA_TYPE]...';


GO
ALTER TABLE [dbo].[DMM_DATA_TYPE]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_DATA_TYPE_COLUMN]...';


GO
ALTER TABLE [dbo].[DMM_DATA_TYPE_COLUMN]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF01_DMM_DATASET]...';


GO
ALTER TABLE [dbo].[DMM_DATASET]
    ADD CONSTRAINT [DF01_DMM_DATASET] DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF02_DMM_DATASET]...';


GO
ALTER TABLE [dbo].[DMM_DATASET]
    ADD CONSTRAINT [DF02_DMM_DATASET] DEFAULT 'U' FOR [base_object_type];


GO
PRINT N'Creating Default Constraint [dbo].[DF03_DMM_DATASET]...';


GO
ALTER TABLE [dbo].[DMM_DATASET]
    ADD CONSTRAINT [DF03_DMM_DATASET] DEFAULT 0 FOR [is_external];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_DATASET_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_DATASET_TRANSLATION]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_METRIC]...';


GO
ALTER TABLE [dbo].[DMM_METRIC]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_METRIC_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_METRIC_TRANSLATION]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_RELATIONSHIP]...';


GO
ALTER TABLE [dbo].[DMM_RELATIONSHIP]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[DMM_RELATIONSHIP_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_RELATIONSHIP_TRANSLATION]
    ADD DEFAULT GETUTCDATE() FOR [created_date];


GO
PRINT N'Creating Statistic [dbo].[ASM_SOFTWARE_USAGE_MONTH].[STAT_ASM_SOFTWARE_USAGE_MONTH]...';


GO
CREATE STATISTICS [STAT_ASM_SOFTWARE_USAGE_MONTH]
    ON [dbo].[ASM_SOFTWARE_USAGE_MONTH]([year], [month]);


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[AFW_DOCUMENT]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[AFW_DOCUMENT]
    ([docu_name] LANGUAGE 0, [docu_description] LANGUAGE 0)
    KEY INDEX [PK_AFW_DOCUMENT]
    ON [FTC_AFW];


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[AFW_FOLDER]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[AFW_FOLDER]
    ([fold_name] LANGUAGE 0)
    KEY INDEX [PK_AFW_FOLDER]
    ON [FTC_AFW];


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[AFW_USERS]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[AFW_USERS]
    ([user_name] LANGUAGE 0, [user_email] LANGUAGE 0, [user_identity_number] LANGUAGE 0, [user_nick_name] LANGUAGE 0)
    KEY INDEX [PK_AFW_USERS]
    ON [FTC_AFW]
    WITH STOPLIST [FSL_ARANDA];


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[ASDK_CATEGORY]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[ASDK_CATEGORY]
    ([ctg_caption] LANGUAGE 0, [fl_str_description] LANGUAGE 0)
    KEY INDEX [PK_ASDK_CATEGORY]
    ON [FTC_ASDK_ITEM];


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[ASDK_ITEM]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[ASDK_ITEM]
    ([description] LANGUAGE 0, [description_nohtml] LANGUAGE 0, [subject] LANGUAGE 0, [id_by_project] LANGUAGE 0)
    KEY INDEX [PK_ASDK_ITEM]
    ON [FTC_ASDK_ITEM];


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[ASDK_SERVICE]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[ASDK_SERVICE]
    ([name] LANGUAGE 0, [description] LANGUAGE 0)
    KEY INDEX [PK_ASDK_SERVICE]
    ON [FTC_ASDK_ITEM];


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[ASMS_FOLDER]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[ASMS_FOLDER]
    ([ctg_caption] LANGUAGE 0, [fl_str_description] LANGUAGE 0, [fl_str_image] LANGUAGE 0)
    KEY INDEX [PK_ASMS_FOLDER]
    ON [FTC_ASDK_ITEM];


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[ASMS_TRANSLATION]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[ASMS_TRANSLATION]
    ([value_text] TYPE COLUMN [file_extension])
    KEY INDEX [PK_ASMS_TRANSLATION]
    ON [FTC_ASDK_ITEM];


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[ASS_ARTICLE]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[ASS_ARTICLE]
    ([identifier] LANGUAGE 0, [title] LANGUAGE 0, [description] LANGUAGE 0, [content] LANGUAGE 0, [keyword] LANGUAGE 0)
    KEY INDEX [PK_ASS_ARTICLE]
    ON [aranda_software];


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[ASS_ARTICLE_DW_LAST]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[ASS_ARTICLE_DW_LAST]
    ([identifier] LANGUAGE 0, [title] LANGUAGE 0, [description] LANGUAGE 0, [content] LANGUAGE 0, [keyword] LANGUAGE 0)
    KEY INDEX [PK_ASS_ARTICLE_DW_LAST]
    ON [aranda_software];


GO
PRINT N'Creating Full-text Index Full-text Index on [dbo].[ASS_KEYWORD]...';


GO
CREATE FULLTEXT INDEX ON [dbo].[ASS_KEYWORD]
    ([keyw_word] LANGUAGE 1033)
    KEY INDEX [PK_ASS_KEYWORD]
    ON [aranda_software];


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_ADDITIONAL_FIELD_CAT]...';


GO
ALTER TABLE [dbo].[AAM_ADDITIONAL_FIELD_CAT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_ADDITIONAL_FIELD_CAT] FOREIGN KEY ([category_id]) REFERENCES [dbo].[AFW_APPLICATION_CATEGORY] ([apca_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_ADDITIONAL_FIELD_CAT]...';


GO
ALTER TABLE [dbo].[AAM_ADDITIONAL_FIELD_CAT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_ADDITIONAL_FIELD_CAT] FOREIGN KEY ([config_id]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD_CONFIG] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_ADDITIONAL_FIELD_CAT]...';


GO
ALTER TABLE [dbo].[AAM_ADDITIONAL_FIELD_CAT] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_ADDITIONAL_FIELD_CAT] FOREIGN KEY ([definition_id]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD_DEFINTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_AGENT_TASK]...';


GO
ALTER TABLE [dbo].[AAM_AGENT_TASK] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_AGENT_TASK] FOREIGN KEY ([application_code]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_AGENT_TASK_DETAIL]...';


GO
ALTER TABLE [dbo].[AAM_AGENT_TASK_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_AGENT_TASK_DETAIL] FOREIGN KEY ([task_id]) REFERENCES [dbo].[AAM_AGENT_TASK] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_AGENT_TASK_DETAIL]...';


GO
ALTER TABLE [dbo].[AAM_AGENT_TASK_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_AGENT_TASK_DETAIL] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_BIOS]...';


GO
ALTER TABLE [dbo].[AAM_BIOS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_BIOS] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CLOUD_NETWORK_PROFILE]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_NETWORK_PROFILE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CLOUD_NETWORK_PROFILE] FOREIGN KEY ([subscription_id], [vm_id]) REFERENCES [dbo].[AAM_CLOUD_SYNCHRONIZATION] ([subscription_id], [vm_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CLOUD_OS_PROFILE]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_OS_PROFILE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CLOUD_OS_PROFILE] FOREIGN KEY ([subscription_id], [vm_id]) REFERENCES [dbo].[AAM_CLOUD_SYNCHRONIZATION] ([subscription_id], [vm_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CLOUD_SECURITY_PROFILE]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_SECURITY_PROFILE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CLOUD_SECURITY_PROFILE] FOREIGN KEY ([subscription_id], [vm_id]) REFERENCES [dbo].[AAM_CLOUD_SYNCHRONIZATION] ([subscription_id], [vm_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CLOUD_STORAGE_PROFILE]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_STORAGE_PROFILE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CLOUD_STORAGE_PROFILE] FOREIGN KEY ([subscription_id], [vm_id]) REFERENCES [dbo].[AAM_CLOUD_SYNCHRONIZATION] ([subscription_id], [vm_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_CLOUD_STORAGE_PROFILE]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_STORAGE_PROFILE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_CLOUD_STORAGE_PROFILE] FOREIGN KEY ([os_disk_id]) REFERENCES [dbo].[AAM_CLOUD_OS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CLOUD_SUBSCRIPTION]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_SUBSCRIPTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CLOUD_SUBSCRIPTION] FOREIGN KEY ([platform]) REFERENCES [dbo].[AAM_CLOUD_PLATFORM] ([id_type]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CLOUD_SYNCHRONIZATION]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CLOUD_SYNCHRONIZATION] FOREIGN KEY ([subscription_id]) REFERENCES [dbo].[AAM_CLOUD_SUBSCRIPTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_CLOUD_SYNCHRONIZATION]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_CLOUD_SYNCHRONIZATION] FOREIGN KEY ([instance_type_id]) REFERENCES [dbo].[AAM_CLOUD_INSTANCE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_CLOUD_SYNCHRONIZATION]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_CLOUD_SYNCHRONIZATION] FOREIGN KEY ([operating_system_id]) REFERENCES [dbo].[AAM_CLOUD_OS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AAM_CLOUD_SYNCHRONIZATION]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH NOCHECK
    ADD CONSTRAINT [FK04_AAM_CLOUD_SYNCHRONIZATION] FOREIGN KEY ([zone_id]) REFERENCES [dbo].[AAM_CLOUD_ZONE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AAM_CLOUD_SYNCHRONIZATION]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH NOCHECK
    ADD CONSTRAINT [FK05_AAM_CLOUD_SYNCHRONIZATION] FOREIGN KEY ([location_id]) REFERENCES [dbo].[AAM_CLOUD_LOCATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_AAM_CLOUD_SYNCHRONIZATION]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH NOCHECK
    ADD CONSTRAINT [FK06_AAM_CLOUD_SYNCHRONIZATION] FOREIGN KEY ([state_id]) REFERENCES [dbo].[AAM_CLOUD_STATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CLOUD_SYNCHRONIZATION_DETAIL]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CLOUD_SYNCHRONIZATION_DETAIL] FOREIGN KEY ([subscription_id], [vm_id]) REFERENCES [dbo].[AAM_CLOUD_SYNCHRONIZATION] ([subscription_id], [vm_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_CLOUD_SYNCHRONIZATION_DETAIL]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_CLOUD_SYNCHRONIZATION_DETAIL] FOREIGN KEY ([provisioning_state_id]) REFERENCES [dbo].[AAM_CLOUD_STATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CLOUD_TAGS]...';


GO
ALTER TABLE [dbo].[AAM_CLOUD_TAGS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CLOUD_TAGS] FOREIGN KEY ([subscription_id], [vm_id]) REFERENCES [dbo].[AAM_CLOUD_SYNCHRONIZATION] ([subscription_id], [vm_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CONFIG_ITEM_RELATION]...';


GO
ALTER TABLE [dbo].[AAM_CONFIG_ITEM_RELATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CONFIG_ITEM_RELATION] FOREIGN KEY ([configuration_id]) REFERENCES [dbo].[AAM_CONFIGURATION_ITEM] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CONFLICT_RESOL_SETTI]...';


GO
ALTER TABLE [dbo].[AAM_CONFLICT_RESOL_SETTI] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CONFLICT_RESOL_SETTI] FOREIGN KEY ([conflict_resolution_id]) REFERENCES [dbo].[AAM_CONFLICT_RESOLUTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_CONFLICT_RESOL_SETTI]...';


GO
ALTER TABLE [dbo].[AAM_CONFLICT_RESOL_SETTI] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_CONFLICT_RESOL_SETTI] FOREIGN KEY ([conflict_cause_id]) REFERENCES [dbo].[AAM_DEVICE_CONFLICT_CAUSE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_CONFLICT_RESOL_SETTI]...';


GO
ALTER TABLE [dbo].[AAM_CONFLICT_RESOL_SETTI] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_CONFLICT_RESOL_SETTI] FOREIGN KEY ([conflict_action_id]) REFERENCES [dbo].[AAM_DEVICE_CONFLICT_ACT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_CONFLICT_RESOLUTION]...';


GO
ALTER TABLE [dbo].[AAM_CONFLICT_RESOLUTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_CONFLICT_RESOLUTION] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE] FOREIGN KEY ([type]) REFERENCES [dbo].[AAM_DEVICE_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_ACTIVITY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_ACTIVITY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_ACTIVITY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_ACTIVITY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_ACTIVITY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_ACTIVITY] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_ACTIVITY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_ACTIVITY] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_ACTIVITY] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_APPLICATION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_APPLICATION] FOREIGN KEY ([id]) REFERENCES [dbo].[AAM_DEVICE_SOFTWARE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_APPLICATION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_APPLICATION] FOREIGN KEY ([help_path_id]) REFERENCES [dbo].[AAM_PATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_APPLICATION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_APPLICATION] FOREIGN KEY ([support_path_id]) REFERENCES [dbo].[AAM_PATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AAM_DEVICE_APPLICATION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH NOCHECK
    ADD CONSTRAINT [FK04_AAM_DEVICE_APPLICATION] FOREIGN KEY ([update_path_id]) REFERENCES [dbo].[AAM_PATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AAM_DEVICE_APPLICATION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH NOCHECK
    ADD CONSTRAINT [FK05_AAM_DEVICE_APPLICATION] FOREIGN KEY ([source_path_id]) REFERENCES [dbo].[AAM_PATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_AAM_DEVICE_APPLICATION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH NOCHECK
    ADD CONSTRAINT [FK06_AAM_DEVICE_APPLICATION] FOREIGN KEY ([patch_code_id]) REFERENCES [dbo].[AAM_SOFTWARE_CODE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_BIOS]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_BIOS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_BIOS] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_BIOS]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_BIOS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_BIOS] FOREIGN KEY ([bios_id]) REFERENCES [dbo].[AAM_BIOS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_BOARDSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_BOARDSLOT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_BOARDSLOT] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_CONFIGURATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_CONFIGURATION] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_CONFIGURATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_CONFIGURATION] FOREIGN KEY ([profile_id]) REFERENCES [dbo].[ADM_AGENT_PROFILE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_CONFLICT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_CONFLICT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_CONFLICT] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_CONFLICT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_CONFLICT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_CONFLICT] FOREIGN KEY ([conflict_action_id]) REFERENCES [dbo].[AAM_DEVICE_CONFLICT_ACT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_CONFLICT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_CONFLICT] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_CONFLICT] FOREIGN KEY ([conflict_cause_id]) REFERENCES [dbo].[AAM_DEVICE_CONFLICT_CAUSE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AAM_DEVICE_CONFLICT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_CONFLICT] WITH NOCHECK
    ADD CONSTRAINT [FK04_AAM_DEVICE_CONFLICT] FOREIGN KEY ([conflict_type_id]) REFERENCES [dbo].[AAM_DEVICE_CONFLICT_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AAM_DEVICE_CONFLICT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_CONFLICT] WITH NOCHECK
    ADD CONSTRAINT [FK05_AAM_DEVICE_CONFLICT] FOREIGN KEY ([status_id]) REFERENCES [dbo].[AAM_DEVICE_CONFLICT_STATU] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_DISK]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DISK] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_DISK] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_DISK]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DISK] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_DISK] FOREIGN KEY ([disk_id]) REFERENCES [dbo].[AAM_DISK] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_DISPLAY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DISPLAY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_DISPLAY] FOREIGN KEY ([display_id]) REFERENCES [dbo].[AAM_DISPLAY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_DISPLAY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DISPLAY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_DISPLAY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_DRIVER]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DRIVER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_DRIVER] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_DRIVER]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_DRIVER] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_DRIVER] FOREIGN KEY ([driver_id]) REFERENCES [dbo].[AAM_DRIVER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_FEATURE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_FEATURE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_FEATURE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_FILE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_FILE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_FILE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_FILE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_FILE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_FILE] FOREIGN KEY ([file_name_id]) REFERENCES [dbo].[AAM_FILE_NAME] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_FILE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_FILE] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_FILE] FOREIGN KEY ([path_id]) REFERENCES [dbo].[AAM_PATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_FILE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_FILE_VERSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_FILE_VERSION] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_FILE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_FILE_VERSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_FILE_VERSION] FOREIGN KEY ([path_id]) REFERENCES [dbo].[AAM_PATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_FILE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_FILE_VERSION] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_FILE_VERSION] FOREIGN KEY ([file_version_id]) REFERENCES [dbo].[AAM_FILE_VERSION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_HARDWARE_REMOV]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_HARDWARE_REMOV] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_HARDWARE_REMOV] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_KEYBOARD]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_KEYBOARD] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_KEYBOARD] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_KEYBOARD]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_KEYBOARD] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_KEYBOARD] FOREIGN KEY ([keyboard_id]) REFERENCES [dbo].[AAM_KEYBOARD] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_LOCATION]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_LOCATION] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_MEMBERSHIP]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMBERSHIP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_MEMBERSHIP] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_MEMBERSHIP]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMBERSHIP] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_MEMBERSHIP] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AAM_LOCAL_USER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_MEMBERSHIP]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMBERSHIP] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_MEMBERSHIP] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AAM_LOCAL_GROUP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_AAM_DEVICE_MEMORY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORY] WITH NOCHECK
    ADD CONSTRAINT [FK_AAM_DEVICE_MEMORY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_MEMORYSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORYSLOT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_MEMORYSLOT] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_MEMORYSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_MEMORYSLOT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_MEMORYSLOT] FOREIGN KEY ([memory_id]) REFERENCES [dbo].[AAM_MEMORY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_NETWORKADAPTER]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_NETWORKADAPTER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_NETWORKADAPTER] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_NETWORKADAPTER]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_NETWORKADAPTER] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_NETWORKADAPTER] FOREIGN KEY ([adapter_id]) REFERENCES [dbo].[AAM_NETWORKADAPTER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_OS]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_OS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_OS] FOREIGN KEY ([id]) REFERENCES [dbo].[AAM_DEVICE_SOFTWARE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK_01_AAM_DEVICE_PERSISTENCE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PERSISTENCE] WITH NOCHECK
    ADD CONSTRAINT [FK_01_AAM_DEVICE_PERSISTENCE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_PORTCONNECTOR]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PORTCONNECTOR] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_PORTCONNECTOR] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_PORTCONNECTOR]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PORTCONNECTOR] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_PORTCONNECTOR] FOREIGN KEY ([connector_id]) REFERENCES [dbo].[AAM_PORTCONNECTOR] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_PRINTER]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PRINTER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_PRINTER] FOREIGN KEY ([driver_id]) REFERENCES [dbo].[AAM_PRINTERDRIVER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_PRINTER]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PRINTER] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_PRINTER] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_PROCESSORSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PROCESSORSLOT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_PROCESSORSLOT] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_PROCESSORSLOT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_PROCESSORSLOT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_PROCESSORSLOT] FOREIGN KEY ([processor_id]) REFERENCES [dbo].[AAM_PROCESSOR] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_REC_ACT_SENT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_REC_ACT_SENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_REC_ACT_SENT] FOREIGN KEY ([activity_request_id]) REFERENCES [dbo].[AAM_DEVICE_RECORD_ACT_REQ] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_REC_ACT_SENT]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_REC_ACT_SENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_REC_ACT_SENT] FOREIGN KEY ([activity_status_id]) REFERENCES [dbo].[AAM_DEVICE_RECORD_ACT_STA] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_RECORD_ACT_REQ]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_RECORD_ACT_REQ] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_RECORD_ACT_REQ] FOREIGN KEY ([task_detail_id]) REFERENCES [dbo].[AAM_AGENT_TASK_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_RECORD_ACT_REQ]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_RECORD_ACT_REQ] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_RECORD_ACT_REQ] FOREIGN KEY ([activity_record_type_id]) REFERENCES [dbo].[AAM_DEVICE_REC_ACT_TYPE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_RECORD_ACT_STA]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_RECORD_ACT_STA] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_RECORD_ACT_STA] FOREIGN KEY ([activity_type_id]) REFERENCES [dbo].[AAM_DEVICE_REC_ACT_TYPE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_RESPONSIBLE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_RESPONSIBLE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_RESPONSIBLE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_RESPONSIBLE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_RESPONSIBLE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_RESPONSIBLE] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_SERVICE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_SERVICE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_SERVICE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_SERVICE] FOREIGN KEY ([service_id]) REFERENCES [dbo].[AAM_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_SERVICE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_SERVICE] FOREIGN KEY ([status_id]) REFERENCES [dbo].[AAM_SERVICE_STATUS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AAM_DEVICE_SERVICE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK04_AAM_DEVICE_SERVICE] FOREIGN KEY ([startup_id]) REFERENCES [dbo].[AAM_SERVICE_STARTUP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_SETUP]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SETUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_SETUP] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_SETUP]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SETUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_SETUP] FOREIGN KEY ([system_manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_SETUP]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SETUP] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_SETUP] FOREIGN KEY ([baseboard_manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AAM_DEVICE_SETUP]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SETUP] WITH NOCHECK
    ADD CONSTRAINT [FK04_AAM_DEVICE_SETUP] FOREIGN KEY ([chassis_manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_SHAREDRESOURCE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SHAREDRESOURCE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_SHAREDRESOURCE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_SHAREDRESOURCE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SHAREDRESOURCE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_SHAREDRESOURCE] FOREIGN KEY ([path_id]) REFERENCES [dbo].[AAM_PATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_SNMP_DATA]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SNMP_DATA] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_SNMP_DATA] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_SOFT_UNINSTALL]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SOFT_UNINSTALL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_SOFT_UNINSTALL] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_SOFTWARE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_SOFTWARE] FOREIGN KEY ([software_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_SOFTWARE] FOREIGN KEY ([install_path_id]) REFERENCES [dbo].[AAM_PATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AAM_DEVICE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH NOCHECK
    ADD CONSTRAINT [FK04_AAM_DEVICE_SOFTWARE] FOREIGN KEY ([product_code_id]) REFERENCES [dbo].[AAM_SOFTWARE_CODE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AAM_DEVICE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH NOCHECK
    ADD CONSTRAINT [FK05_AAM_DEVICE_SOFTWARE] FOREIGN KEY ([software_key_id]) REFERENCES [dbo].[AAM_SOFTWARE_KEY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_AAM_DEVICE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH NOCHECK
    ADD CONSTRAINT [FK06_AAM_DEVICE_SOFTWARE] FOREIGN KEY ([uninstall_string_id]) REFERENCES [dbo].[AAM_SOFTWARE_UNINSTALL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_STARTUPCOMMAND]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_STARTUPCOMMAND] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_STARTUPCOMMAND] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_STARTUPCOMMAND]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_STARTUPCOMMAND] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_STARTUPCOMMAND] FOREIGN KEY ([name_id]) REFERENCES [dbo].[AAM_STARTUPCOMMAND] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_STARTUPCOMMAND]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_STARTUPCOMMAND] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_STARTUPCOMMAND] FOREIGN KEY ([path_id]) REFERENCES [dbo].[AAM_PATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_UNITMAPPING]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_UNITMAPPING] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_UNITMAPPING] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_UNITMAPPING]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_UNITMAPPING] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_UNITMAPPING] FOREIGN KEY ([server_id]) REFERENCES [dbo].[AAM_SERVER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_DEVICE_UNITMAPPING]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_UNITMAPPING] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_DEVICE_UNITMAPPING] FOREIGN KEY ([path_id]) REFERENCES [dbo].[AAM_PATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_VIDEOCARD]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_VIDEOCARD] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_VIDEOCARD] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_VIDEOCARD]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_VIDEOCARD] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_VIDEOCARD] FOREIGN KEY ([videocard_id]) REFERENCES [dbo].[AAM_VIDEOCARD] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_WARRANTY]...';


GO
ALTER TABLE [dbo].[AAM_DEVICE_WARRANTY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_WARRANTY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DISK]...';


GO
ALTER TABLE [dbo].[AAM_DISK] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DISK] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DISPLAY]...';


GO
ALTER TABLE [dbo].[AAM_DISPLAY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DISPLAY] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DRIVER]...';


GO
ALTER TABLE [dbo].[AAM_DRIVER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DRIVER] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_EMA_DEVICE]...';


GO
ALTER TABLE [dbo].[AAM_EMA_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_EMA_DEVICE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_EMA_USER]...';


GO
ALTER TABLE [dbo].[AAM_EMA_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_EMA_USER] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_FILE_NAME]...';


GO
ALTER TABLE [dbo].[AAM_FILE_NAME] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_FILE_NAME] FOREIGN KEY ([extension_id]) REFERENCES [dbo].[AAM_EXTENSION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_FILE_PRODUCT]...';


GO
ALTER TABLE [dbo].[AAM_FILE_PRODUCT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_FILE_PRODUCT] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_FILE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_FILE_VERSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_FILE_VERSION] FOREIGN KEY ([product_id]) REFERENCES [dbo].[AAM_FILE_PRODUCT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_FILE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_FILE_VERSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_FILE_VERSION] FOREIGN KEY ([file_name_id]) REFERENCES [dbo].[AAM_FILE_NAME] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AAM_FILE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_FILE_VERSION] WITH NOCHECK
    ADD CONSTRAINT [FK03_AAM_FILE_VERSION] FOREIGN KEY ([software_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]) ON DELETE SET NULL;


GO
PRINT N'Creating Foreign Key [dbo].[FK001_GROUP_DEVICE]...';


GO
ALTER TABLE [dbo].[AAM_GROUP_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK001_GROUP_DEVICE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK002_GROUP_DEVICE]...';


GO
ALTER TABLE [dbo].[AAM_GROUP_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK002_GROUP_DEVICE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_IDENTITY_CONFLICT_DET]...';


GO
ALTER TABLE [dbo].[AAM_IDENTITY_CONFLICT_DET] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_IDENTITY_CONFLICT_DET] FOREIGN KEY ([device_conflict_id]) REFERENCES [dbo].[AAM_DEVICE_CONFLICT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK_AAM_KEYBOARD]...';


GO
ALTER TABLE [dbo].[AAM_KEYBOARD] WITH NOCHECK
    ADD CONSTRAINT [FK_AAM_KEYBOARD] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_LOGICAL_DISK]...';


GO
ALTER TABLE [dbo].[AAM_LOGICAL_DISK] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_LOGICAL_DISK] FOREIGN KEY ([device_diskid]) REFERENCES [dbo].[AAM_DEVICE_DISK] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_MEMORY]...';


GO
ALTER TABLE [dbo].[AAM_MEMORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_MEMORY] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_NETWORKADAPTER]...';


GO
ALTER TABLE [dbo].[AAM_NETWORKADAPTER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_NETWORKADAPTER] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_NETWORKADAPTER]...';


GO
ALTER TABLE [dbo].[AAM_NETWORKADAPTER] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_NETWORKADAPTER] FOREIGN KEY ([type_id]) REFERENCES [dbo].[AAM_NETWORKADAPTER_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_NETWORKADAPTER_ADDRES]...';


GO
ALTER TABLE [dbo].[AAM_NETWORKADAPTER_ADDRES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_NETWORKADAPTER_ADDRES] FOREIGN KEY ([device_adapter_id]) REFERENCES [dbo].[AAM_DEVICE_NETWORKADAPTER] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_NETWORKADAPTER_CONFIG]...';


GO
ALTER TABLE [dbo].[AAM_NETWORKADAPTER_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_NETWORKADAPTER_CONFIG] FOREIGN KEY ([device_adapter_id]) REFERENCES [dbo].[AAM_DEVICE_NETWORKADAPTER] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_PRINTERDRIVER]...';


GO
ALTER TABLE [dbo].[AAM_PRINTERDRIVER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_PRINTERDRIVER] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_PROCESSOR]...';


GO
ALTER TABLE [dbo].[AAM_PROCESSOR] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_PROCESSOR] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_PROCESSOR_CACHE]...';


GO
ALTER TABLE [dbo].[AAM_PROCESSOR_CACHE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_PROCESSOR_CACHE] FOREIGN KEY ([device_processor_id]) REFERENCES [dbo].[AAM_DEVICE_PROCESSORSLOT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_PROCESSOR_CACHE]...';


GO
ALTER TABLE [dbo].[AAM_PROCESSOR_CACHE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_PROCESSOR_CACHE] FOREIGN KEY ([cache_id]) REFERENCES [dbo].[AAM_CACHE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_SHAREDRESOURCE_PERM]...';


GO
ALTER TABLE [dbo].[AAM_SHAREDRESOURCE_PERM] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_SHAREDRESOURCE_PERM] FOREIGN KEY ([shared_resource_id]) REFERENCES [dbo].[AAM_DEVICE_SHAREDRESOURCE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_SOFTWARE_INFO_AI]...';


GO
ALTER TABLE [dbo].[AAM_SOFTWARE_INFO_AI] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_SOFTWARE_INFO_AI] FOREIGN KEY ([software_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_SOFTWARE_PRODUCT]...';


GO
ALTER TABLE [dbo].[AAM_SOFTWARE_PRODUCT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_SOFTWARE_PRODUCT] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_SOFTWARE_UNINSTALL]...';


GO
ALTER TABLE [dbo].[AAM_SOFTWARE_UNINSTALL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_SOFTWARE_UNINSTALL] FOREIGN KEY ([update_user]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_SOFTWARE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_SOFTWARE_VERSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_SOFTWARE_VERSION] FOREIGN KEY ([product_id]) REFERENCES [dbo].[AAM_SOFTWARE_PRODUCT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_SOFTWARE_VERSION]...';


GO
ALTER TABLE [dbo].[AAM_SOFTWARE_VERSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_SOFTWARE_VERSION] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_VIDEOCARD]...';


GO
ALTER TABLE [dbo].[AAM_VIDEOCARD] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_VIDEOCARD] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_AFW_ADD_FLD_AGENT_ADD_FLD]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROF_ADD_FIELD] WITH NOCHECK
    ADD CONSTRAINT [FK_AFW_ADD_FLD_AGENT_ADD_FLD] FOREIGN KEY ([additional_field_id]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK_AGENT_PROFILE_ADD_FIELD]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROF_ADD_FIELD] WITH NOCHECK
    ADD CONSTRAINT [FK_AGENT_PROFILE_ADD_FIELD] FOREIGN KEY ([agent_profile_id]) REFERENCES [dbo].[ADM_AGENT_PROFILE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_AGENT_PROFILE]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_AGENT_PROFILE] FOREIGN KEY ([creator_user]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_AGENT_PROFILE]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_AGENT_PROFILE] FOREIGN KEY ([modified_user]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_AGENT_PROFILE_APPLIC]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_APPLIC] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_AGENT_PROFILE_APPLIC] FOREIGN KEY ([profile_id]) REFERENCES [dbo].[ADM_AGENT_PROFILE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_AGENT_PROFILE_APPLIC]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_APPLIC] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_AGENT_PROFILE_APPLIC] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_AGENT_PROFILE_CONSER]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_CONSER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_AGENT_PROFILE_CONSER] FOREIGN KEY ([profile_id]) REFERENCES [dbo].[ADM_AGENT_PROFILE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_AGENT_PROFILE_CONSER]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_CONSER] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_AGENT_PROFILE_CONSER] FOREIGN KEY ([node_id]) REFERENCES [dbo].[ADM_COMMUNICATION_NODE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_AGENT_PROFILE_EXT]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_EXT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_AGENT_PROFILE_EXT] FOREIGN KEY ([extension_id]) REFERENCES [dbo].[AAM_EXTENSION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_AGENT_PROFILE_SETTING]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_SETTING] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_AGENT_PROFILE_SETTING] FOREIGN KEY ([profile_id]) REFERENCES [dbo].[ADM_AGENT_PROFILE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_AGENT_PROFILE_SURVEY]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_AGENT_PROFILE_SURVEY] FOREIGN KEY ([agent_profile_id]) REFERENCES [dbo].[ADM_AGENT_PROFILE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_AGENT_PROFILE_SURVEY]...';


GO
ALTER TABLE [dbo].[ADM_AGENT_PROFILE_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_AGENT_PROFILE_SURVEY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_COMMUNICATION_NODE]...';


GO
ALTER TABLE [dbo].[ADM_COMMUNICATION_NODE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_COMMUNICATION_NODE] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[ADM_COMMUNICATION_NODE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_COMMUNICATION_NODE]...';


GO
ALTER TABLE [dbo].[ADM_COMMUNICATION_NODE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_COMMUNICATION_NODE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_COMPONENT_REQUEST_DETAIL]...';


GO
ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_COMPONENT_REQUEST_DETAIL] FOREIGN KEY ([target_id]) REFERENCES [dbo].[ADM_COMPONENT_REQUEST_TARGET] ([target_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_COMPONENT_REQUEST_DETAIL]...';


GO
ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_COMPONENT_REQUEST_DETAIL] FOREIGN KEY ([document_id]) REFERENCES [dbo].[AFW_DOCUMENT] ([docu_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ADM_COMPONENT_REQUEST_DETAIL]...';


GO
ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK03_ADM_COMPONENT_REQUEST_DETAIL] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ADM_COMPONENT_REQUEST_DETAIL]...';


GO
ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK04_ADM_COMPONENT_REQUEST_DETAIL] FOREIGN KEY ([status]) REFERENCES [dbo].[ADM_COMPONENT_REQUEST_STATUS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_COMPONENT_REQUEST_TARGET]...';


GO
ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_TARGET] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_COMPONENT_REQUEST_TARGET] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_CONFIGURATION_GATEWAY]...';


GO
ALTER TABLE [dbo].[ADM_CONFIGURATION_GATEWAY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_CONFIGURATION_GATEWAY] FOREIGN KEY ([creator_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_CONFIGURATION_GATEWAY]...';


GO
ALTER TABLE [dbo].[ADM_CONFIGURATION_GATEWAY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_CONFIGURATION_GATEWAY] FOREIGN KEY ([updater_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_CREDENTIAL]...';


GO
ALTER TABLE [dbo].[ADM_CREDENTIAL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_CREDENTIAL] FOREIGN KEY ([creator_user]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_CREDENTIAL]...';


GO
ALTER TABLE [dbo].[ADM_CREDENTIAL] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_CREDENTIAL] FOREIGN KEY ([updater_user]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_DEVICE_CREDENTIAL]...';


GO
ALTER TABLE [dbo].[ADM_DEVICE_CREDENTIAL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_DEVICE_CREDENTIAL] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_DEVICE_CREDENTIAL]...';


GO
ALTER TABLE [dbo].[ADM_DEVICE_CREDENTIAL] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_DEVICE_CREDENTIAL] FOREIGN KEY ([credential_id]) REFERENCES [dbo].[ADM_CREDENTIAL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_DEVICE_DISCOVERY]...';


GO
ALTER TABLE [dbo].[ADM_DEVICE_DISCOVERY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_DEVICE_DISCOVERY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_DEVICE_DISCOVERY]...';


GO
ALTER TABLE [dbo].[ADM_DEVICE_DISCOVERY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_DEVICE_DISCOVERY] FOREIGN KEY ([discovered_by]) REFERENCES [dbo].[ADM_COMMUNICATION_NODE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_DEVICE_INVENTORY]...';


GO
ALTER TABLE [dbo].[ADM_DEVICE_INVENTORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_DEVICE_INVENTORY] FOREIGN KEY ([app_code]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_DEVICE_INVENTORY]...';


GO
ALTER TABLE [dbo].[ADM_DEVICE_INVENTORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_DEVICE_INVENTORY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_DEVICE_LICENSE]...';


GO
ALTER TABLE [dbo].[ADM_DEVICE_LICENSE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_DEVICE_LICENSE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_DEVICE_LICENSE]...';


GO
ALTER TABLE [dbo].[ADM_DEVICE_LICENSE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_DEVICE_LICENSE] FOREIGN KEY ([product_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_DISCOVERY_CONFIG]...';


GO
ALTER TABLE [dbo].[ADM_DISCOVERY_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_DISCOVERY_CONFIG] FOREIGN KEY ([node_id]) REFERENCES [dbo].[ADM_COMMUNICATION_NODE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_DISCOVERY_MODEL]...';


GO
ALTER TABLE [dbo].[ADM_DISCOVERY_MODEL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_DISCOVERY_MODEL] FOREIGN KEY ([device_type_id]) REFERENCES [dbo].[AAM_DEVICE_TYPE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_DISCOVERY_MODEL]...';


GO
ALTER TABLE [dbo].[ADM_DISCOVERY_MODEL] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_DISCOVERY_MODEL] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AAM_MANUFACTURER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_RELATION]...';


GO
ALTER TABLE [dbo].[ADM_RELATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_RELATION] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_RELATION_ACTION]...';


GO
ALTER TABLE [dbo].[ADM_RELATION_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_RELATION_ACTION] FOREIGN KEY ([relation_id]) REFERENCES [dbo].[ADM_RELATION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_RELATION_ACTION]...';


GO
ALTER TABLE [dbo].[ADM_RELATION_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_RELATION_ACTION] FOREIGN KEY ([action_id]) REFERENCES [dbo].[ADM_ACTION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_RELATION_GROUP]...';


GO
ALTER TABLE [dbo].[ADM_RELATION_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_RELATION_GROUP] FOREIGN KEY ([relation_id]) REFERENCES [dbo].[ADM_RELATION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_RELATION_GROUP]...';


GO
ALTER TABLE [dbo].[ADM_RELATION_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_RELATION_GROUP] FOREIGN KEY ([group_device_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ADM_RELATION_GROUP]...';


GO
ALTER TABLE [dbo].[ADM_RELATION_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK03_ADM_RELATION_GROUP] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_RELATION_USER]...';


GO
ALTER TABLE [dbo].[ADM_RELATION_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_RELATION_USER] FOREIGN KEY ([relation_id]) REFERENCES [dbo].[ADM_RELATION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_RELATION_USER]...';


GO
ALTER TABLE [dbo].[ADM_RELATION_USER] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_RELATION_USER] FOREIGN KEY ([group_device_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ADM_RELATION_USER]...';


GO
ALTER TABLE [dbo].[ADM_RELATION_USER] WITH NOCHECK
    ADD CONSTRAINT [FK03_ADM_RELATION_USER] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_RULESET]...';


GO
ALTER TABLE [dbo].[ADM_RULESET] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_RULESET] FOREIGN KEY ([usercreator_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADM_RULESET]...';


GO
ALTER TABLE [dbo].[ADM_RULESET] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADM_RULESET] FOREIGN KEY ([usereditor_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK001_ADM_RULESET_RULE]...';


GO
ALTER TABLE [dbo].[ADM_RULESET_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK001_ADM_RULESET_RULE] FOREIGN KEY ([ruleset_id]) REFERENCES [dbo].[ADM_RULESET] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK002_ADM_RULESET_RULE]...';


GO
ALTER TABLE [dbo].[ADM_RULESET_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK002_ADM_RULESET_RULE] FOREIGN KEY ([afwrule_id]) REFERENCES [dbo].[AFW_RULE] ([rule_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_SERVER_SETTING]...';


GO
ALTER TABLE [dbo].[ADM_SERVER_SETTING] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_SERVER_SETTING] FOREIGN KEY ([node_id]) REFERENCES [dbo].[ADM_COMMUNICATION_NODE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_SNMP_IDENTIFIER]...';


GO
ALTER TABLE [dbo].[ADM_SNMP_IDENTIFIER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_SNMP_IDENTIFIER] FOREIGN KEY ([discovery_model_id]) REFERENCES [dbo].[ADM_DISCOVERY_MODEL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADM_SNMP_RULE]...';


GO
ALTER TABLE [dbo].[ADM_SNMP_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADM_SNMP_RULE] FOREIGN KEY ([discovery_model_id]) REFERENCES [dbo].[ADM_DISCOVERY_MODEL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADSS_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[ADSS_CONFIGURATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADSS_CONFIGURATION] FOREIGN KEY ([conf_ldap_id]) REFERENCES [dbo].[AFW_LDAP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADSS_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[ADSS_CONFIGURATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADSS_CONFIGURATION] FOREIGN KEY ([conf_schedule_id]) REFERENCES [dbo].[AFW_SCHEDULER] ([sche_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADW_ARTICLE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADW_ARTICLE_CUBE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ADW_PROJECT_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADW_ARTICLE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADW_ARTICLE_CUBE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ADW_TYPE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ADW_ARTICLE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ADW_ARTICLE_CUBE] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ADW_STATUS_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ADW_ARTICLE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ADW_ARTICLE_CUBE] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[ADW_RESPONSIBLE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ADW_ARTICLE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK05_ADW_ARTICLE_CUBE] FOREIGN KEY ([author_id]) REFERENCES [dbo].[ADW_AUTHOR_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ADW_ARTICLE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK06_ADW_ARTICLE_CUBE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[ADW_GROUP_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ADW_ARTICLE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK07_ADW_ARTICLE_CUBE] FOREIGN KEY ([modifier_id]) REFERENCES [dbo].[ADW_MODIFIER_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ADW_ARTICLE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK08_ADW_ARTICLE_CUBE] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ADW_REASON_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADW_CI_CUBE] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ADW_TYPE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ADW_CI_CUBE] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ADW_STATUS_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ADW_CI_CUBE] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[ADW_RESPONSIBLE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK05_ADW_CI_CUBE] FOREIGN KEY ([author_id]) REFERENCES [dbo].[ADW_AUTHOR_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK07_ADW_CI_CUBE] FOREIGN KEY ([modifier_id]) REFERENCES [dbo].[ADW_MODIFIER_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK08_ADW_CI_CUBE] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ADW_REASON_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK10_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK10_ADW_CI_CUBE] FOREIGN KEY ([impact_id]) REFERENCES [dbo].[ADW_IMPACT_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK12_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK12_ADW_CI_CUBE] FOREIGN KEY ([provider_id]) REFERENCES [dbo].[ADW_PROVIDER_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK13_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK13_ADW_CI_CUBE] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ADW_MODEL_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK14_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK14_ADW_CI_CUBE] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[ADW_MANUFACTURER_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK15_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK15_ADW_CI_CUBE] FOREIGN KEY ([costcenter_id]) REFERENCES [dbo].[ADW_COST_CENTER_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK16_ADW_CI_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_CI_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK16_ADW_CI_CUBE] FOREIGN KEY ([brand_id]) REFERENCES [dbo].[ADW_BRAND_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADW_EVENT_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADW_EVENT_CUBE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ADW_PROJECT_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ADW_EVENT_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ADW_EVENT_CUBE] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ADW_STATUS_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ADW_EVENT_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ADW_EVENT_CUBE] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[ADW_RESPONSIBLE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ADW_EVENT_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK05_ADW_EVENT_CUBE] FOREIGN KEY ([author_id]) REFERENCES [dbo].[ADW_AUTHOR_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ADW_EVENT_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK06_ADW_EVENT_CUBE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[ADW_GROUP_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ADW_EVENT_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK07_ADW_EVENT_CUBE] FOREIGN KEY ([modifier_id]) REFERENCES [dbo].[ADW_MODIFIER_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ADW_EVENT_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK08_ADW_EVENT_CUBE] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ADW_REASON_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK09_ADW_EVENT_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK09_ADW_EVENT_CUBE] FOREIGN KEY ([ci_id]) REFERENCES [dbo].[ADW_CI_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK11_ADW_EVENT_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK11_ADW_EVENT_CUBE] FOREIGN KEY ([priority_id]) REFERENCES [dbo].[ADW_PRIORITY_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK12_ADW_EVENT_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK12_ADW_EVENT_CUBE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ADW_EVENT_TYPE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADW_ITEM_CUBE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ADW_PROJECT_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ADW_ITEM_CUBE] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ADW_TYPE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ADW_ITEM_CUBE] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ADW_STATUS_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ADW_ITEM_CUBE] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[ADW_RESPONSIBLE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK05_ADW_ITEM_CUBE] FOREIGN KEY ([author_id]) REFERENCES [dbo].[ADW_AUTHOR_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK06_ADW_ITEM_CUBE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[ADW_GROUP_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK07_ADW_ITEM_CUBE] FOREIGN KEY ([modifier_id]) REFERENCES [dbo].[ADW_MODIFIER_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK08_ADW_ITEM_CUBE] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ADW_REASON_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK09_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK09_ADW_ITEM_CUBE] FOREIGN KEY ([ci_id]) REFERENCES [dbo].[ADW_CI_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK10_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK10_ADW_ITEM_CUBE] FOREIGN KEY ([impact_id]) REFERENCES [dbo].[ADW_IMPACT_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK11_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK11_ADW_ITEM_CUBE] FOREIGN KEY ([priority_id]) REFERENCES [dbo].[ADW_PRIORITY_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK12_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK12_ADW_ITEM_CUBE] FOREIGN KEY ([provider_id]) REFERENCES [dbo].[ADW_PROVIDER_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK13_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK13_ADW_ITEM_CUBE] FOREIGN KEY ([urgency_id]) REFERENCES [dbo].[ADW_URGENCY_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK14_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK14_ADW_ITEM_CUBE] FOREIGN KEY ([uc_id]) REFERENCES [dbo].[ADW_UC_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK15_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK15_ADW_ITEM_CUBE] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[ADW_SLA_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK16_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK16_ADW_ITEM_CUBE] FOREIGN KEY ([ola_id]) REFERENCES [dbo].[ADW_OLA_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK17_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK17_ADW_ITEM_CUBE] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ADW_SERVICE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK18_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK18_ADW_ITEM_CUBE] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ADW_CATEGORY_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK19_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK19_ADW_ITEM_CUBE] FOREIGN KEY ([company_id]) REFERENCES [dbo].[ADW_COMPANY_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK20_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK20_ADW_ITEM_CUBE] FOREIGN KEY ([customer_id]) REFERENCES [dbo].[ADW_CUSTOMER_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK21_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK21_ADW_ITEM_CUBE] FOREIGN KEY ([registry_type_id]) REFERENCES [dbo].[ADW_REGISTRY_TYPE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK22_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK22_ADW_ITEM_CUBE] FOREIGN KEY ([unit_id]) REFERENCES [dbo].[ADW_AREA_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK23_ADW_ITEM_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK23_ADW_ITEM_CUBE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ADW_ITEM_TYPE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADW_SERVICE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADW_SERVICE_CUBE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ADW_PROJECT_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ADW_SERVICE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ADW_SERVICE_CUBE] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ADW_STATUS_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ADW_SERVICE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ADW_SERVICE_CUBE] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[ADW_RESPONSIBLE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ADW_SERVICE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK05_ADW_SERVICE_CUBE] FOREIGN KEY ([author_id]) REFERENCES [dbo].[ADW_AUTHOR_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ADW_SERVICE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK06_ADW_SERVICE_CUBE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[ADW_GROUP_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ADW_SERVICE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK07_ADW_SERVICE_CUBE] FOREIGN KEY ([modifier_id]) REFERENCES [dbo].[ADW_MODIFIER_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ADW_SERVICE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK08_ADW_SERVICE_CUBE] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ADW_REASON_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK10_ADW_SERVICE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK10_ADW_SERVICE_CUBE] FOREIGN KEY ([impact_id]) REFERENCES [dbo].[ADW_IMPACT_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK11_ADW_SERVICE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK11_ADW_SERVICE_CUBE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ADW_SERVICE_TYPE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK12_ADW_SERVICE_CUBE]...';


GO
ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH NOCHECK
    ADD CONSTRAINT [FK12_ADW_SERVICE_CUBE] FOREIGN KEY ([stage_id]) REFERENCES [dbo].[ADW_SERVICE_STAGE_DIM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_COMPLIANCE_MONITOR]...';


GO
ALTER TABLE [dbo].[AES_COMPLIANCE_MONITOR] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_COMPLIANCE_MONITOR] FOREIGN KEY ([detail_criteria_id]) REFERENCES [dbo].[AES_DETAIL_CRITERIA] ([id]);


GO
ALTER TABLE [dbo].[AES_COMPLIANCE_MONITOR] NOCHECK CONSTRAINT [FK01_AES_COMPLIANCE_MONITOR];


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_COMPLIANCE_MONITOR]...';


GO
ALTER TABLE [dbo].[AES_COMPLIANCE_MONITOR] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_COMPLIANCE_MONITOR] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AES_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_CRITERIA]...';


GO
ALTER TABLE [dbo].[AES_CRITERIA] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_CRITERIA] FOREIGN KEY ([policy_id]) REFERENCES [dbo].[AES_POLICY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_CRITERIA]...';


GO
ALTER TABLE [dbo].[AES_CRITERIA] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_CRITERIA] FOREIGN KEY ([product_id]) REFERENCES [dbo].[AES_PRODUCT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AES_CRITERIA]...';


GO
ALTER TABLE [dbo].[AES_CRITERIA] WITH NOCHECK
    ADD CONSTRAINT [FK03_AES_CRITERIA] FOREIGN KEY ([category_id]) REFERENCES [dbo].[AES_CATEGORY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_CVE_TREATMENT]...';


GO
ALTER TABLE [dbo].[AES_CVE_TREATMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_CVE_TREATMENT] FOREIGN KEY ([cve_id]) REFERENCES [dbo].[AES_CVE] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_CVE_TREATMENT]...';


GO
ALTER TABLE [dbo].[AES_CVE_TREATMENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_CVE_TREATMENT] FOREIGN KEY ([user_created_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_CVE_URL]...';


GO
ALTER TABLE [dbo].[AES_CVE_URL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_CVE_URL] FOREIGN KEY ([cve_id]) REFERENCES [dbo].[AES_CVE] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_DETAIL_CRITERIA]...';


GO
ALTER TABLE [dbo].[AES_DETAIL_CRITERIA] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_DETAIL_CRITERIA] FOREIGN KEY ([criteria_id]) REFERENCES [dbo].[AES_CRITERIA] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AES_DETAIL_CRITERIA]...';


GO
ALTER TABLE [dbo].[AES_DETAIL_CRITERIA] WITH NOCHECK
    ADD CONSTRAINT [FK03_AES_DETAIL_CRITERIA] FOREIGN KEY ([method_id]) REFERENCES [dbo].[AES_METHOD] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_DEVICE]...';


GO
ALTER TABLE [dbo].[AES_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_DEVICE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AES_GROUP] ([id]) ON DELETE SET NULL;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_DEVICE]...';


GO
ALTER TABLE [dbo].[AES_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_DEVICE] FOREIGN KEY ([platform_id]) REFERENCES [dbo].[AES_PLATFORM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_DEVICE_REMEDIATION]...';


GO
ALTER TABLE [dbo].[AES_DEVICE_REMEDIATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_DEVICE_REMEDIATION] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AES_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_DEVICE_REMEDIATION]...';


GO
ALTER TABLE [dbo].[AES_DEVICE_REMEDIATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_DEVICE_REMEDIATION] FOREIGN KEY ([action_id]) REFERENCES [dbo].[AES_REMEDIATION_ACTION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_DEVICE_VULNERABILITY]...';


GO
ALTER TABLE [dbo].[AES_DEVICE_VULNERABILITY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_DEVICE_VULNERABILITY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AES_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_DEVICE_VULNERABILITY]...';


GO
ALTER TABLE [dbo].[AES_DEVICE_VULNERABILITY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_DEVICE_VULNERABILITY] FOREIGN KEY ([product_id]) REFERENCES [dbo].[AES_PRODUCT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AES_DEVICE_VULNERABILITY]...';


GO
ALTER TABLE [dbo].[AES_DEVICE_VULNERABILITY] WITH NOCHECK
    ADD CONSTRAINT [FK03_AES_DEVICE_VULNERABILITY] FOREIGN KEY ([cve_id]) REFERENCES [dbo].[AES_CVE] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AES_DEVICE_VULNERABILITY]...';


GO
ALTER TABLE [dbo].[AES_DEVICE_VULNERABILITY] WITH NOCHECK
    ADD CONSTRAINT [FK04_AES_DEVICE_VULNERABILITY] FOREIGN KEY ([signature]) REFERENCES [dbo].[AES_SIGNATURE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_DEVICE_VULNERABILITY_COUNTER]...';


GO
ALTER TABLE [dbo].[AES_DEVICE_VULNERABILITY_COUNTER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_DEVICE_VULNERABILITY_COUNTER] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AES_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_GROUP_COMPLIANCE]...';


GO
ALTER TABLE [dbo].[AES_GROUP_COMPLIANCE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_GROUP_COMPLIANCE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AES_GROUP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_GROUP_COMPLIANCE]...';


GO
ALTER TABLE [dbo].[AES_GROUP_COMPLIANCE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_GROUP_COMPLIANCE] FOREIGN KEY ([date_id]) REFERENCES [dbo].[ADW_DIM_DATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_METHOD]...';


GO
ALTER TABLE [dbo].[AES_METHOD] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_METHOD] FOREIGN KEY ([remediation_id]) REFERENCES [dbo].[AES_METHOD] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_POLICY]...';


GO
ALTER TABLE [dbo].[AES_POLICY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_POLICY] FOREIGN KEY ([platform_id]) REFERENCES [dbo].[AES_PLATFORM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_POLICY_GROUP]...';


GO
ALTER TABLE [dbo].[AES_POLICY_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_POLICY_GROUP] FOREIGN KEY ([policy_id]) REFERENCES [dbo].[AES_POLICY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_POLICY_GROUP]...';


GO
ALTER TABLE [dbo].[AES_POLICY_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_POLICY_GROUP] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AES_GROUP] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_PRODUCT]...';


GO
ALTER TABLE [dbo].[AES_PRODUCT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_PRODUCT] FOREIGN KEY ([platform_id]) REFERENCES [dbo].[AES_PLATFORM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_PRODUCT]...';


GO
ALTER TABLE [dbo].[AES_PRODUCT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_PRODUCT] FOREIGN KEY ([vendor_id]) REFERENCES [dbo].[AES_VENDOR] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_PRODUCT_CATEGORY]...';


GO
ALTER TABLE [dbo].[AES_PRODUCT_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_PRODUCT_CATEGORY] FOREIGN KEY ([product_id]) REFERENCES [dbo].[AES_PRODUCT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_PRODUCT_CATEGORY]...';


GO
ALTER TABLE [dbo].[AES_PRODUCT_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_PRODUCT_CATEGORY] FOREIGN KEY ([category_id]) REFERENCES [dbo].[AES_CATEGORY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_PRODUCT_METHOD]...';


GO
ALTER TABLE [dbo].[AES_PRODUCT_METHOD] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_PRODUCT_METHOD] FOREIGN KEY ([product_id]) REFERENCES [dbo].[AES_PRODUCT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_PRODUCT_METHOD]...';


GO
ALTER TABLE [dbo].[AES_PRODUCT_METHOD] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_PRODUCT_METHOD] FOREIGN KEY ([method_id]) REFERENCES [dbo].[AES_METHOD] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_REMEDIATION_ACTION]...';


GO
ALTER TABLE [dbo].[AES_REMEDIATION_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_REMEDIATION_ACTION] FOREIGN KEY ([product_id]) REFERENCES [dbo].[AES_PRODUCT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AES_REMEDIATION_ACTION]...';


GO
ALTER TABLE [dbo].[AES_REMEDIATION_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AES_REMEDIATION_ACTION] FOREIGN KEY ([method_id]) REFERENCES [dbo].[AES_METHOD] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AES_REMEDIATION_ACTION]...';


GO
ALTER TABLE [dbo].[AES_REMEDIATION_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK03_AES_REMEDIATION_ACTION] FOREIGN KEY ([user_created_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AES_SIGNATURE]...';


GO
ALTER TABLE [dbo].[AES_SIGNATURE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AES_SIGNATURE] FOREIGN KEY ([product_id]) REFERENCES [dbo].[AES_PRODUCT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_ADDITIONAL_FIELD_CONCEPT]...';


GO
ALTER TABLE [dbo].[AFLS_ADDITIONAL_FIELD_CONCEPT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_ADDITIONAL_FIELD_CONCEPT] FOREIGN KEY ([DefinitionId]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD_DEFINTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_ALERT_STATUS]...';


GO
ALTER TABLE [dbo].[AFLS_ALERT_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_ALERT_STATUS] FOREIGN KEY ([Id_Alert]) REFERENCES [dbo].[AFW_ALERT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_ALERT_TYPE]...';


GO
ALTER TABLE [dbo].[AFLS_ALERT_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_ALERT_TYPE] FOREIGN KEY ([IdCategoryParent]) REFERENCES [dbo].[AFW_ALERT_CATEGORY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_ALERTS_NOTIFICATIONS]...';


GO
ALTER TABLE [dbo].[AFLS_ALERTS_NOTIFICATIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_ALERTS_NOTIFICATIONS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_ALERTS_PERMISSIONS_EXTENSION]...';


GO
ALTER TABLE [dbo].[AFLS_ALERTS_PERMISSIONS_EXTENSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_ALERTS_PERMISSIONS_EXTENSION] FOREIGN KEY ([Role_Id]) REFERENCES [dbo].[AFW_ROLES] ([role_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_ALERTS_PERMISSIONS_EXTENSION]...';


GO
ALTER TABLE [dbo].[AFLS_ALERTS_PERMISSIONS_EXTENSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_ALERTS_PERMISSIONS_EXTENSION] FOREIGN KEY ([Category_Id]) REFERENCES [dbo].[AFW_ALERT_CATEGORY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_APP_LOG]...';


GO
ALTER TABLE [dbo].[AFLS_APP_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_APP_LOG] FOREIGN KEY ([alog_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_ASSING_PROVIDER_SETTING]...';


GO
ALTER TABLE [dbo].[AFLS_ASSING_PROVIDER_SETTING] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_ASSING_PROVIDER_SETTING] FOREIGN KEY ([Type]) REFERENCES [dbo].[AFLS_ASSING_PROVIDER_TYPE] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_ATTACHMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_ATTACHMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_ATTACHMENTS] FOREIGN KEY ([work_id]) REFERENCES [dbo].[AFLS_WORKORDERS] ([work_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_ATTACHMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_ATTACHMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_ATTACHMENTS] FOREIGN KEY ([attc_type_id]) REFERENCES [dbo].[AFLS_ATTACHMENTS_TYPE] ([attc_type_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_CALENDAR_EXCEPTION]...';


GO
ALTER TABLE [dbo].[AFLS_CALENDAR_EXCEPTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_CALENDAR_EXCEPTION] FOREIGN KEY ([cale_id]) REFERENCES [dbo].[AFLS_CALENDAR] ([cale_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_CALENDAR_SCHEDULE]...';


GO
ALTER TABLE [dbo].[AFLS_CALENDAR_SCHEDULE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_CALENDAR_SCHEDULE] FOREIGN KEY ([cale_id]) REFERENCES [dbo].[AFLS_CALENDAR] ([cale_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_CALENDARS_EVENTS]...';


GO
ALTER TABLE [dbo].[AFLS_CALENDARS_EVENTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_CALENDARS_EVENTS] FOREIGN KEY ([cale_id]) REFERENCES [dbo].[AFLS_CALENDAR] ([cale_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_CHANGES]...';


GO
ALTER TABLE [dbo].[AFLS_CHANGES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_CHANGES] FOREIGN KEY ([revi_id]) REFERENCES [dbo].[AFLS_REVIEWS] ([revi_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_CHANGES]...';


GO
ALTER TABLE [dbo].[AFLS_CHANGES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_CHANGES] FOREIGN KEY ([rela_id]) REFERENCES [dbo].[AFLS_RELATIONS] ([rela_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_CHRONOS_ALARMS]...';


GO
ALTER TABLE [dbo].[AFLS_CHRONOS_ALARMS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_CHRONOS_ALARMS] FOREIGN KEY ([chalarm_itemtime_id]) REFERENCES [dbo].[AFW_ITEM_TIMES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_CHRONOS_RESULTS]...';


GO
ALTER TABLE [dbo].[AFLS_CHRONOS_RESULTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_CHRONOS_RESULTS] FOREIGN KEY ([chresult_itemtime_id]) REFERENCES [dbo].[AFW_ITEM_TIMES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_CLIENT_INVENTORY]...';


GO
ALTER TABLE [dbo].[AFLS_CLIENT_INVENTORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_CLIENT_INVENTORY] FOREIGN KEY ([cinv_client_id]) REFERENCES [dbo].[AFLS_USERS_CLIENTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_CLIENT_INVENTORY]...';


GO
ALTER TABLE [dbo].[AFLS_CLIENT_INVENTORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_CLIENT_INVENTORY] FOREIGN KEY ([cinv_product_id]) REFERENCES [dbo].[AFLS_INVENTORY_PRODUCTS] ([prod_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_CLIENT_INVENTORY]...';


GO
ALTER TABLE [dbo].[AFLS_CLIENT_INVENTORY] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_CLIENT_INVENTORY] FOREIGN KEY ([cinv_work_id]) REFERENCES [dbo].[AFLS_WORKORDERS] ([work_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_CLIENT_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_CLIENT_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_CLIENT_SERVICES] FOREIGN KEY ([clie_id]) REFERENCES [dbo].[AFLS_USERS_CLIENTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_CLIENT_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_CLIENT_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_CLIENT_SERVICES] FOREIGN KEY ([cose_id]) REFERENCES [dbo].[AFLS_COMPANY_SERVICES] ([cose_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_CLIENT_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_CLIENT_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_CLIENT_SERVICES] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[AFLS_SLA] ([sla_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AFLS_CLIENT_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_CLIENT_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK04_AFLS_CLIENT_SERVICES] FOREIGN KEY ([serv_id]) REFERENCES [dbo].[AFLS_SERVICES] ([serv_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_CLIENTS_PROJECTS]...';


GO
ALTER TABLE [dbo].[AFLS_CLIENTS_PROJECTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_CLIENTS_PROJECTS] FOREIGN KEY ([project_id]) REFERENCES [dbo].[AFLS_JSONSCHEMA_ASMS] ([project_asms_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_CLIENTS_PROJECTS]...';


GO
ALTER TABLE [dbo].[AFLS_CLIENTS_PROJECTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_CLIENTS_PROJECTS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFLS_USERS_CLIENTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_COMPANIES]...';


GO
ALTER TABLE [dbo].[AFLS_COMPANIES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_COMPANIES] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[AFLS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_COMPANIES]...';


GO
ALTER TABLE [dbo].[AFLS_COMPANIES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_COMPANIES] FOREIGN KEY ([comp_id]) REFERENCES [dbo].[AFW_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_COMPANIES_PROJECTS]...';


GO
ALTER TABLE [dbo].[AFLS_COMPANIES_PROJECTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_COMPANIES_PROJECTS] FOREIGN KEY ([company_id]) REFERENCES [dbo].[AFLS_COMPANIES] ([comp_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_COMPANIES_PROJECTS]...';


GO
ALTER TABLE [dbo].[AFLS_COMPANIES_PROJECTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_COMPANIES_PROJECTS] FOREIGN KEY ([project_id]) REFERENCES [dbo].[AFLS_JSONSCHEMA_ASMS] ([project_asms_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_COMPANY_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_COMPANY_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_COMPANY_SERVICES] FOREIGN KEY ([comp_id]) REFERENCES [dbo].[AFLS_COMPANIES] ([comp_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_COMPANY_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_COMPANY_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_COMPANY_SERVICES] FOREIGN KEY ([serv_id]) REFERENCES [dbo].[AFLS_SERVICES] ([serv_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_COMPANY_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_COMPANY_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_COMPANY_SERVICES] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[AFLS_SLA] ([sla_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_ERROR_MESSAGES]...';


GO
ALTER TABLE [dbo].[AFLS_ERROR_MESSAGES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_ERROR_MESSAGES] FOREIGN KEY ([type_id]) REFERENCES [dbo].[AFLS_ERROR_TYPE] ([type_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_ERROR_MOBILE_LOG]...';


GO
ALTER TABLE [dbo].[AFLS_ERROR_MOBILE_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_ERROR_MOBILE_LOG] FOREIGN KEY ([specialist_id]) REFERENCES [dbo].[AFLS_USERS_SPECIALISTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_GROUP_AVAILABILITIES]...';


GO
ALTER TABLE [dbo].[AFLS_GROUP_AVAILABILITIES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_GROUP_AVAILABILITIES] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFLS_GROUPS_SPECIALISTS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_GROUP_AVAILABILITIES]...';


GO
ALTER TABLE [dbo].[AFLS_GROUP_AVAILABILITIES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_GROUP_AVAILABILITIES] FOREIGN KEY ([avai_id]) REFERENCES [dbo].[AFLS_AVAILABILITIES] ([avai_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_GROUP_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_GROUP_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_GROUP_SERVICES] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFLS_GROUPS_SPECIALISTS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_GROUP_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_GROUP_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_GROUP_SERVICES] FOREIGN KEY ([serv_id]) REFERENCES [dbo].[AFLS_SERVICES] ([serv_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_GROUP_SKILLS]...';


GO
ALTER TABLE [dbo].[AFLS_GROUP_SKILLS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_GROUP_SKILLS] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_GROUP_SKILLS]...';


GO
ALTER TABLE [dbo].[AFLS_GROUP_SKILLS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_GROUP_SKILLS] FOREIGN KEY ([skll_id]) REFERENCES [dbo].[AFLS_SKILLS] ([skll_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_GROUPS_CLIENT]...';


GO
ALTER TABLE [dbo].[AFLS_GROUPS_CLIENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_GROUPS_CLIENT] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_GROUPS_SPECIALISTS]...';


GO
ALTER TABLE [dbo].[AFLS_GROUPS_SPECIALISTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_GROUPS_SPECIALISTS] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_GROUPS_WEB]...';


GO
ALTER TABLE [dbo].[AFLS_GROUPS_WEB] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_GROUPS_WEB] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_IMPORT_FILE_PROCESS]...';


GO
ALTER TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_IMPORT_FILE_PROCESS] FOREIGN KEY ([state_id]) REFERENCES [dbo].[AFLS_IMPORT_FILE_PROCESS_STATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_IMPORT_FILE_PROCESS]...';


GO
ALTER TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_IMPORT_FILE_PROCESS] FOREIGN KEY ([type_id]) REFERENCES [dbo].[AFLS_IMPORT_FILE_PROCESS_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_IMPORT_FILE_PROCESS_ERROR]...';


GO
ALTER TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS_ERROR] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_IMPORT_FILE_PROCESS_ERROR] FOREIGN KEY ([import_file_process_id]) REFERENCES [dbo].[AFLS_IMPORT_FILE_PROCESS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_IMPORT_FILES_PROCESS_LOG]...';


GO
ALTER TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_IMPORT_FILES_PROCESS_LOG] FOREIGN KEY ([import_file_process_id]) REFERENCES [dbo].[AFLS_IMPORT_FILE_PROCESS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_INVENTORY_LOCATION_CATEGORIES]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_LOCATION_CATEGORIES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_INVENTORY_LOCATION_CATEGORIES] FOREIGN KEY ([aslt_id]) REFERENCES [dbo].[AFLS_INVENTORY_LOCATION_TYPES] ([aslt_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_INVENTORY_LOCATION_INFO]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_LOCATION_INFO] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_INVENTORY_LOCATION_INFO] FOREIGN KEY ([asli_parent]) REFERENCES [dbo].[AFLS_INVENTORY_LOCATION_INFO] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_INVENTORY_LOCATION_INFO]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_LOCATION_INFO] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_INVENTORY_LOCATION_INFO] FOREIGN KEY ([aslc_id]) REFERENCES [dbo].[AFLS_INVENTORY_LOCATION_CATEGORIES] ([aslc_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_INVENTORY_LOCATION_INFO]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_LOCATION_INFO] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_INVENTORY_LOCATION_INFO] FOREIGN KEY ([aslt_id]) REFERENCES [dbo].[AFLS_INVENTORY_LOCATION_TYPES] ([aslt_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_INVENTORY_MOVEMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_INVENTORY_MOVEMENTS] FOREIGN KEY ([prod_id]) REFERENCES [dbo].[AFLS_INVENTORY_PRODUCTS] ([prod_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_INVENTORY_MOVEMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_INVENTORY_MOVEMENTS] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFLS_INVENTORY_LOCATION_INFO] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_INVENTORY_MOVEMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_INVENTORY_MOVEMENTS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AFLS_INVENTORY_MOVEMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK04_AFLS_INVENTORY_MOVEMENTS] FOREIGN KEY ([type_id]) REFERENCES [dbo].[AFLS_INVENTORY_MOVEMENT_TYPES] ([type_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AFLS_INVENTORY_MOVEMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK05_AFLS_INVENTORY_MOVEMENTS] FOREIGN KEY ([work_id]) REFERENCES [dbo].[AFLS_WORKORDERS] ([work_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_AFLS_INVENTORY_MOVEMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK06_AFLS_INVENTORY_MOVEMENTS] FOREIGN KEY ([spec_id]) REFERENCES [dbo].[AFLS_USERS_SPECIALISTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_INVENTORY_MOVEMENTS_DETAILS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS_DETAILS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_INVENTORY_MOVEMENTS_DETAILS] FOREIGN KEY ([mov_id]) REFERENCES [dbo].[AFLS_INVENTORY_MOVEMENTS] ([mov_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_INVENTORY_PRODUCTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_INVENTORY_PRODUCTS] FOREIGN KEY ([tent_id]) REFERENCES [dbo].[AFLS_TENANTS] ([tent_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_INVENTORY_PRODUCTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_INVENTORY_PRODUCTS] FOREIGN KEY ([mea_id]) REFERENCES [dbo].[AFLS_INVENTORY_MEASURES] ([mea_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_INVENTORY_PRODUCTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_INVENTORY_PRODUCTS] FOREIGN KEY ([prod_type]) REFERENCES [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] ([aipt_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFLS_INVENTORY_LOCATION_INFO] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] FOREIGN KEY ([prod_id]) REFERENCES [dbo].[AFLS_INVENTORY_PRODUCTS] ([prod_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] FOREIGN KEY ([aipa_specialist_id]) REFERENCES [dbo].[AFLS_USERS_SPECIALISTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK04_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] FOREIGN KEY ([date_id]) REFERENCES [dbo].[ADW_DIM_DATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_INVENTORY_PRODUCTS_PURCHASE]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_PURCHASE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_INVENTORY_PRODUCTS_PURCHASE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFLS_INVENTORY_LOCATION_INFO] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_INVENTORY_PRODUCTS_PURCHASE]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_PURCHASE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_INVENTORY_PRODUCTS_PURCHASE] FOREIGN KEY ([prod_id]) REFERENCES [dbo].[AFLS_INVENTORY_PRODUCTS] ([prod_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_INVENTORY_SERVICE_PRODUCTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_SERVICE_PRODUCTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_INVENTORY_SERVICE_PRODUCTS] FOREIGN KEY ([serv_id]) REFERENCES [dbo].[AFLS_SERVICES] ([serv_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_INVENTORY_SERVICE_PRODUCTS]...';


GO
ALTER TABLE [dbo].[AFLS_INVENTORY_SERVICE_PRODUCTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_INVENTORY_SERVICE_PRODUCTS] FOREIGN KEY ([prod_id]) REFERENCES [dbo].[AFLS_INVENTORY_PRODUCTS] ([prod_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_LAST_LOCATION_SPECIALIST]...';


GO
ALTER TABLE [dbo].[AFLS_LAST_LOCATION_SPECIALIST] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_LAST_LOCATION_SPECIALIST] FOREIGN KEY ([User_id]) REFERENCES [dbo].[AFLS_USERS_SPECIALISTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_LAYERS_POINTS]...';


GO
ALTER TABLE [dbo].[AFLS_LAYERS_POINTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_LAYERS_POINTS] FOREIGN KEY ([point_layer_id]) REFERENCES [dbo].[AFLS_LAYERS] ([layer_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_LOCATIONS]...';


GO
ALTER TABLE [dbo].[AFLS_LOCATIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_LOCATIONS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFLS_USERS_SPECIALISTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_MAIL_TEMPLATES_TOKENS]...';


GO
ALTER TABLE [dbo].[AFLS_MAIL_TEMPLATES_TOKENS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_MAIL_TEMPLATES_TOKENS] FOREIGN KEY ([tok_id]) REFERENCES [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_MAIL_TEMPLATES_TOKENS]...';


GO
ALTER TABLE [dbo].[AFLS_MAIL_TEMPLATES_TOKENS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_MAIL_TEMPLATES_TOKENS] FOREIGN KEY ([mail_id]) REFERENCES [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_MAPS_API_USED_LOG]...';


GO
ALTER TABLE [dbo].[AFLS_MAPS_API_USED_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_MAPS_API_USED_LOG] FOREIGN KEY ([mapi_console_type]) REFERENCES [dbo].[AFLS_CONSOLE_TYPE] ([typecon_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_MAPS_API_USED_LOG]...';


GO
ALTER TABLE [dbo].[AFLS_MAPS_API_USED_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_MAPS_API_USED_LOG] FOREIGN KEY ([mapi_module], [mapi_functionality]) REFERENCES [dbo].[AFLS_MODULE_FUNCTIONALITY] ([modu_id], [func_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_MAPS_API_USED_LOG]...';


GO
ALTER TABLE [dbo].[AFLS_MAPS_API_USED_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_MAPS_API_USED_LOG] FOREIGN KEY ([mapi_api_type]) REFERENCES [dbo].[AFLS_API_TYPE] ([typeapi_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_MODEL_ADDITIONAL_FIELDS]...';


GO
ALTER TABLE [dbo].[AFLS_MODEL_ADDITIONAL_FIELDS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_MODEL_ADDITIONAL_FIELDS] FOREIGN KEY ([addf_id]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_MODELS_EXTENSION]...';


GO
ALTER TABLE [dbo].[AFLS_MODELS_EXTENSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_MODELS_EXTENSION] FOREIGN KEY ([model_id]) REFERENCES [dbo].[AFW_ITEM_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_NOTIFICATION_ALERT]...';


GO
ALTER TABLE [dbo].[AFLS_NOTIFICATION_ALERT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_NOTIFICATION_ALERT] FOREIGN KEY ([IdAlert]) REFERENCES [dbo].[AFW_ALERT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_NOTIFICATIONS]...';


GO
ALTER TABLE [dbo].[AFLS_NOTIFICATIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_NOTIFICATIONS] FOREIGN KEY ([tpnt_id]) REFERENCES [dbo].[AFLS_TYPE_NOTIFICATIONS] ([tpnt_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_PROJECTS]...';


GO
ALTER TABLE [dbo].[AFLS_PROJECTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_PROJECTS] FOREIGN KEY ([tent_id]) REFERENCES [dbo].[AFLS_TENANTS] ([tent_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_PROVIDER_ASSING_TURN]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_ASSING_TURN] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_PROVIDER_ASSING_TURN] FOREIGN KEY ([ProviderId]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_PROVIDER_ASSING_TURN]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_ASSING_TURN] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_PROVIDER_ASSING_TURN] FOREIGN KEY ([ServiceId]) REFERENCES [dbo].[AFLS_SERVICES] ([serv_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_PROVIDER_GENERAL_SCORE]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_GENERAL_SCORE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_PROVIDER_GENERAL_SCORE] FOREIGN KEY ([ProviderId]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_PROVIDER_GROUP]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_PROVIDER_GROUP] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_PROVIDER_MONITOR_GROUPS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_MONITOR_GROUPS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_PROVIDER_MONITOR_GROUPS] FOREIGN KEY ([ProviderId]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_PROVIDER_MONITOR_GROUPS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_MONITOR_GROUPS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_PROVIDER_MONITOR_GROUPS] FOREIGN KEY ([GroupId]) REFERENCES [dbo].[AFLS_GROUPS_WEB] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_PROVIDER_MONITORS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_MONITORS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_PROVIDER_MONITORS] FOREIGN KEY ([ProviderId]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_PROVIDER_MONITORS]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_MONITORS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_PROVIDER_MONITORS] FOREIGN KEY ([UserId]) REFERENCES [dbo].[AFLS_USERS_WEB] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_PROVIDER_SCORE]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_SCORE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_PROVIDER_SCORE] FOREIGN KEY ([ProviderId]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_PROVIDER_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_PROVIDER_SERVICES] FOREIGN KEY ([ProviderId]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_PROVIDER_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_PROVIDER_SERVICES] FOREIGN KEY ([ServiceId]) REFERENCES [dbo].[AFLS_SERVICES] ([serv_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_PROVIDER_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_PROVIDER_SERVICES] FOREIGN KEY ([SlaId]) REFERENCES [dbo].[AFLS_SLA] ([sla_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_PROVIDER_SPECIALIST]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_SPECIALIST] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_PROVIDER_SPECIALIST] FOREIGN KEY ([ProviderId]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_PROVIDER_SPECIALIST]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_SPECIALIST] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_PROVIDER_SPECIALIST] FOREIGN KEY ([SpecialistId]) REFERENCES [dbo].[AFLS_USERS_SPECIALISTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_PROVIDER_ZONE]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_ZONE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_PROVIDER_ZONE] FOREIGN KEY ([ProviderId]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_PROVIDER_ZONE]...';


GO
ALTER TABLE [dbo].[AFLS_PROVIDER_ZONE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_PROVIDER_ZONE] FOREIGN KEY ([ZoneId]) REFERENCES [dbo].[AFLS_ZONES] ([zone_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_QUICK_ANSWERS]...';


GO
ALTER TABLE [dbo].[AFLS_QUICK_ANSWERS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_QUICK_ANSWERS] FOREIGN KEY ([qui_answer_type_id]) REFERENCES [dbo].[AFLS_QUICK_ANSWERS_TYPE] ([qui_type_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_RELATION_ITEMS]...';


GO
ALTER TABLE [dbo].[AFLS_RELATION_ITEMS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_RELATION_ITEMS] FOREIGN KEY ([ar_id]) REFERENCES [dbo].[AFLS_RELATIONSHIP] ([ar_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_RELATION_ITEMS]...';


GO
ALTER TABLE [dbo].[AFLS_RELATION_ITEMS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_RELATION_ITEMS] FOREIGN KEY ([ari_created_by]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_RELATIONS]...';


GO
ALTER TABLE [dbo].[AFLS_RELATIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_RELATIONS] FOREIGN KEY ([revi_id]) REFERENCES [dbo].[AFLS_REVIEWS] ([revi_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_RELATIONSHIP]...';


GO
ALTER TABLE [dbo].[AFLS_RELATIONSHIP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_RELATIONSHIP] FOREIGN KEY ([art_id]) REFERENCES [dbo].[AFLS_RELATION_TYPE] ([art_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_RELATIONSHIP]...';


GO
ALTER TABLE [dbo].[AFLS_RELATIONSHIP] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_RELATIONSHIP] FOREIGN KEY ([ar_source_origin]) REFERENCES [dbo].[AFW_CONCEPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_RELATIONSHIP]...';


GO
ALTER TABLE [dbo].[AFLS_RELATIONSHIP] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_RELATIONSHIP] FOREIGN KEY ([ar_target_origin]) REFERENCES [dbo].[AFW_CONCEPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_SERVICES] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[AFLS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_SERVICES] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[AFLS_SLA] ([sla_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_SERVICES] FOREIGN KEY ([serv_model_id]) REFERENCES [dbo].[AFW_ITEM_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AFLS_SERVICES]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK04_AFLS_SERVICES] FOREIGN KEY ([serv_calendar_id]) REFERENCES [dbo].[AFLS_CALENDAR] ([cale_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_SERVICES_SKILLS]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES_SKILLS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_SERVICES_SKILLS] FOREIGN KEY ([service_id]) REFERENCES [dbo].[AFLS_SERVICES] ([serv_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_SERVICES_SKILLS]...';


GO
ALTER TABLE [dbo].[AFLS_SERVICES_SKILLS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_SERVICES_SKILLS] FOREIGN KEY ([skill_id]) REFERENCES [dbo].[AFLS_SKILLS] ([skll_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_SLA]...';


GO
ALTER TABLE [dbo].[AFLS_SLA] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_SLA] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[AFW_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_SLA]...';


GO
ALTER TABLE [dbo].[AFLS_SLA] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_SLA] FOREIGN KEY ([agreement_type]) REFERENCES [dbo].[AFLS_TYPE_AGREEMENT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_SLA_ATTACHMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_SLA_ATTACHMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_SLA_ATTACHMENTS] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[AFLS_SLA] ([sla_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_SLA_TIMES]...';


GO
ALTER TABLE [dbo].[AFLS_SLA_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_SLA_TIMES] FOREIGN KEY ([chronometer_Id]) REFERENCES [dbo].[AFW_ITEM_TIMES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_SLA_TIMES]...';


GO
ALTER TABLE [dbo].[AFLS_SLA_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_SLA_TIMES] FOREIGN KEY ([sla_Id]) REFERENCES [dbo].[AFLS_SLA] ([sla_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_SLA_TIMES]...';


GO
ALTER TABLE [dbo].[AFLS_SLA_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_SLA_TIMES] FOREIGN KEY ([priority]) REFERENCES [dbo].[AFLS_PRIORITY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AFLS_SLA_TIMES]...';


GO
ALTER TABLE [dbo].[AFLS_SLA_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK04_AFLS_SLA_TIMES] FOREIGN KEY ([model_Id]) REFERENCES [dbo].[AFW_ITEM_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AFLS_SLA_TIMES]...';


GO
ALTER TABLE [dbo].[AFLS_SLA_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK05_AFLS_SLA_TIMES] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_STATEMACHINE_STATE_EXTENSION]...';


GO
ALTER TABLE [dbo].[AFLS_STATEMACHINE_STATE_EXTENSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_STATEMACHINE_STATE_EXTENSION] FOREIGN KEY ([st_ex_id_state]) REFERENCES [dbo].[AFW_STATEMACHINE_STATES] ([st_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_THIRD_PARTY_NOTIFICATION_LOGS]...';


GO
ALTER TABLE [dbo].[AFLS_THIRD_PARTY_NOTIFICATION_LOGS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_THIRD_PARTY_NOTIFICATION_LOGS] FOREIGN KEY ([atpi_id]) REFERENCES [dbo].[AFLS_THIRD_PARTY_INTEGRATIONS] ([atpi_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_THIRD_PARTY_NOTIFICATION_LOGS]...';


GO
ALTER TABLE [dbo].[AFLS_THIRD_PARTY_NOTIFICATION_LOGS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_THIRD_PARTY_NOTIFICATION_LOGS] FOREIGN KEY ([error_id]) REFERENCES [dbo].[AFLS_ERROR_MESSAGES] ([error_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_TICKET_ID_SEQUENCES]...';


GO
ALTER TABLE [dbo].[AFLS_TICKET_ID_SEQUENCES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_TICKET_ID_SEQUENCES] FOREIGN KEY ([tent_id]) REFERENCES [dbo].[AFLS_TENANTS] ([tent_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_TYPENOTIFICATIONS_ACTIONS]...';


GO
ALTER TABLE [dbo].[AFLS_TYPENOTIFICATIONS_ACTIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_TYPENOTIFICATIONS_ACTIONS] FOREIGN KEY ([tpnt_id]) REFERENCES [dbo].[AFLS_TYPE_NOTIFICATIONS] ([tpnt_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_TYPENOTIFICATIONS_ACTIONS]...';


GO
ALTER TABLE [dbo].[AFLS_TYPENOTIFICATIONS_ACTIONS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_TYPENOTIFICATIONS_ACTIONS] FOREIGN KEY ([acti_id]) REFERENCES [dbo].[AFLS_ACTIONS] ([acti_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_USER_AVAILABILITIES]...';


GO
ALTER TABLE [dbo].[AFLS_USER_AVAILABILITIES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_USER_AVAILABILITIES] FOREIGN KEY ([avai_id]) REFERENCES [dbo].[AFLS_AVAILABILITIES] ([avai_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_USER_AVAILABILITIES]...';


GO
ALTER TABLE [dbo].[AFLS_USER_AVAILABILITIES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_USER_AVAILABILITIES] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFLS_USERS_SPECIALISTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_USER_SKILLS]...';


GO
ALTER TABLE [dbo].[AFLS_USER_SKILLS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_USER_SKILLS] FOREIGN KEY ([aus_user_id]) REFERENCES [dbo].[AFLS_USERS_SPECIALISTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_USER_SKILLS]...';


GO
ALTER TABLE [dbo].[AFLS_USER_SKILLS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_USER_SKILLS] FOREIGN KEY ([aus_skll_id]) REFERENCES [dbo].[AFLS_SKILLS] ([skll_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_USERS_CHANNEL]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_CHANNEL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_USERS_CHANNEL] FOREIGN KEY ([IdUser]) REFERENCES [dbo].[AFLS_USERS_CLIENTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_USERS_CHANNEL]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_CHANNEL] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_USERS_CHANNEL] FOREIGN KEY ([IdChannel]) REFERENCES [dbo].[AFLS_CHANNELS] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_USERS_CLIENTS]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_CLIENTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_USERS_CLIENTS] FOREIGN KEY ([comp_id]) REFERENCES [dbo].[AFLS_COMPANIES] ([comp_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_USERS_PROJECTS]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_PROJECTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_USERS_PROJECTS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFLS_USERS_WEB] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_USERS_PROJECTS]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_PROJECTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_USERS_PROJECTS] FOREIGN KEY ([project_id]) REFERENCES [dbo].[AFLS_JSONSCHEMA_ASMS] ([project_asms_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_USERS_SPECIALISTS]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_SPECIALISTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_USERS_SPECIALISTS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_USERS_SPECIALISTS]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_SPECIALISTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_USERS_SPECIALISTS] FOREIGN KEY ([vehi_id]) REFERENCES [dbo].[AFLS_VEHICLE_TYPE] ([vehi_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_USERS_SPECIALISTS]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_SPECIALISTS] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_USERS_SPECIALISTS] FOREIGN KEY ([posi_id]) REFERENCES [dbo].[AFLS_WORK_POSITIONS] ([posi_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AFLS_USERS_SPECIALISTS]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_SPECIALISTS] WITH NOCHECK
    ADD CONSTRAINT [FK04_AFLS_USERS_SPECIALISTS] FOREIGN KEY ([spc_provider_id]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AFLS_USERS_SPECIALISTS]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_SPECIALISTS] WITH NOCHECK
    ADD CONSTRAINT [FK05_AFLS_USERS_SPECIALISTS] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFLS_INVENTORY_LOCATION_INFO] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_USERS_WEB]...';


GO
ALTER TABLE [dbo].[AFLS_USERS_WEB] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_USERS_WEB] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_VEHICLE_TYPE]...';


GO
ALTER TABLE [dbo].[AFLS_VEHICLE_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_VEHICLE_TYPE] FOREIGN KEY ([tran_id]) REFERENCES [dbo].[AFLS_MEANS_TRANSPORT] ([tran_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WEBHOOKS_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AFLS_WEBHOOKS_CONFIGURATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WEBHOOKS_CONFIGURATION] FOREIGN KEY ([type_id]) REFERENCES [dbo].[AFLS_WEBHOOKS_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WEBHOOKS_TAGS]...';


GO
ALTER TABLE [dbo].[AFLS_WEBHOOKS_TAGS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WEBHOOKS_TAGS] FOREIGN KEY ([type_id]) REFERENCES [dbo].[AFLS_WEBHOOKS_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WORK_POSITIONS]...';


GO
ALTER TABLE [dbo].[AFLS_WORK_POSITIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WORK_POSITIONS] FOREIGN KEY ([tent_id]) REFERENCES [dbo].[AFLS_TENANTS] ([tent_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WORKFLOW_CHRONOMETERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKFLOW_CHRONOMETERS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WORKFLOW_CHRONOMETERS] FOREIGN KEY ([wf_id]) REFERENCES [dbo].[AFLS_WORKFLOWS] ([wf_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WORKFLOWS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKFLOWS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WORKFLOWS] FOREIGN KEY ([wf_id_model]) REFERENCES [dbo].[AFW_ITEM_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WORKORDER_ASSIGN_LOGS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDER_ASSIGN_LOGS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WORKORDER_ASSIGN_LOGS] FOREIGN KEY ([work_id]) REFERENCES [dbo].[AFLS_WORKORDERS] ([work_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_WORKORDER_ASSIGN_LOGS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDER_ASSIGN_LOGS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_WORKORDER_ASSIGN_LOGS] FOREIGN KEY ([error_id]) REFERENCES [dbo].[AFLS_ERROR_MESSAGES] ([error_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WORKORDER_CONSOLIDATES]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDER_CONSOLIDATES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WORKORDER_CONSOLIDATES] FOREIGN KEY ([work_id]) REFERENCES [dbo].[AFLS_WORKORDERS] ([work_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WORKORDER_PROVIDER_LOG]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDER_PROVIDER_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WORKORDER_PROVIDER_LOG] FOREIGN KEY ([WorkId]) REFERENCES [dbo].[AFLS_WORKORDERS] ([work_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_WORKORDER_PROVIDER_LOG]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDER_PROVIDER_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_WORKORDER_PROVIDER_LOG] FOREIGN KEY ([ProviderId]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_WORKORDER_PROVIDER_LOG]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDER_PROVIDER_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_WORKORDER_PROVIDER_LOG] FOREIGN KEY ([State]) REFERENCES [dbo].[AFLS_WORKORDER_PROVIDER_STATUS] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WORKORDERS] FOREIGN KEY ([clie_id]) REFERENCES [dbo].[AFLS_USERS_CLIENTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_WORKORDERS] FOREIGN KEY ([comp_id]) REFERENCES [dbo].[AFLS_COMPANIES] ([comp_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFLS_WORKORDERS] FOREIGN KEY ([serv_id]) REFERENCES [dbo].[AFLS_SERVICES] ([serv_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH NOCHECK
    ADD CONSTRAINT [FK04_AFLS_WORKORDERS] FOREIGN KEY ([work_attendant]) REFERENCES [dbo].[AFLS_USERS_SPECIALISTS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH NOCHECK
    ADD CONSTRAINT [FK05_AFLS_WORKORDERS] FOREIGN KEY ([stat_id]) REFERENCES [dbo].[AFLS_STATES] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH NOCHECK
    ADD CONSTRAINT [FK06_AFLS_WORKORDERS] FOREIGN KEY ([work_created_by]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH NOCHECK
    ADD CONSTRAINT [FK07_AFLS_WORKORDERS] FOREIGN KEY ([tent_id]) REFERENCES [dbo].[AFLS_TENANTS] ([tent_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH NOCHECK
    ADD CONSTRAINT [FK08_AFLS_WORKORDERS] FOREIGN KEY ([work_sub_state_id]) REFERENCES [dbo].[AFW_STATEMACHINE_STATES] ([st_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK09_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH NOCHECK
    ADD CONSTRAINT [FK09_AFLS_WORKORDERS] FOREIGN KEY ([work_sla_id]) REFERENCES [dbo].[AFLS_SLA] ([sla_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK10_AFLS_WORKORDERS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH NOCHECK
    ADD CONSTRAINT [FK10_AFLS_WORKORDERS] FOREIGN KEY ([work_provider_id]) REFERENCES [dbo].[AFLS_PROVIDERS] ([ProviderId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WORKORDERS_INVENTORY_PRODUCTS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WORKORDERS_INVENTORY_PRODUCTS] FOREIGN KEY ([prod_id]) REFERENCES [dbo].[AFLS_INVENTORY_PRODUCTS] ([prod_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_WORKORDERS_INVENTORY_PRODUCTS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_WORKORDERS_INVENTORY_PRODUCTS] FOREIGN KEY ([work_id]) REFERENCES [dbo].[AFLS_WORKORDERS] ([work_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS] FOREIGN KEY ([awsp_id]) REFERENCES [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS] ([awsp_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS]...';


GO
ALTER TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS] FOREIGN KEY ([mov_id]) REFERENCES [dbo].[AFLS_INVENTORY_MOVEMENTS] ([mov_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ACCESS_TOKEN]...';


GO
ALTER TABLE [dbo].[AFW_ACCESS_TOKEN] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ACCESS_TOKEN] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_ACCESS_TOKEN]...';


GO
ALTER TABLE [dbo].[AFW_ACCESS_TOKEN] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_ACCESS_TOKEN] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ADDITIONAL_FIELD]...';


GO
ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD] FOREIGN KEY ([definition_id]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD_DEFINTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ADDITIONAL_FIELD_CONF]...';


GO
ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD_CONF] FOREIGN KEY ([definition_id]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD_DEFINTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ADDITIONAL_FIELD_DEFI]...';


GO
ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_DEFINTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD_DEFI] FOREIGN KEY ([concept_id]) REFERENCES [dbo].[AFW_CONCEPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ADDITIONAL_FIELD_HIST]...';


GO
ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_HISTORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD_HIST] FOREIGN KEY ([field_id]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ADDITIONAL_FIELD_LOOK]...';


GO
ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_LOOKUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD_LOOK] FOREIGN KEY ([field_id]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_ADDITIONAL_FIELD_LOOK]...';


GO
ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_LOOKUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_ADDITIONAL_FIELD_LOOK] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD_LOOKUP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ADDITIONAL_FIELD_VAL]...';


GO
ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_VALUE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD_VAL] FOREIGN KEY ([field_id]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ALERT]...';


GO
ALTER TABLE [dbo].[AFW_ALERT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ALERT] FOREIGN KEY ([category_id]) REFERENCES [dbo].[AFW_ALERT_CATEGORY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_ALERT]...';


GO
ALTER TABLE [dbo].[AFW_ALERT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_ALERT] FOREIGN KEY ([project_id]) REFERENCES [dbo].[AFW_PROJECTS] ([proj_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ALERT_CATEGORY]...';


GO
ALTER TABLE [dbo].[AFW_ALERT_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ALERT_CATEGORY] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[AFW_ALERT_CATEGORY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_ALERT_CATEGORY]...';


GO
ALTER TABLE [dbo].[AFW_ALERT_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_ALERT_CATEGORY] FOREIGN KEY ([concept_id]) REFERENCES [dbo].[AFW_CONCEPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_APPLICATION_CATEGORY]...';


GO
ALTER TABLE [dbo].[AFW_APPLICATION_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_APPLICATION_CATEGORY] FOREIGN KEY ([apca_type]) REFERENCES [dbo].[AFW_CONCEPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_APPLICATION_GROUP]...';


GO
ALTER TABLE [dbo].[AFW_APPLICATION_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_APPLICATION_GROUP] FOREIGN KEY ([appl_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_APPLICATION_GROUP]...';


GO
ALTER TABLE [dbo].[AFW_APPLICATION_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_APPLICATION_GROUP] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_APPLICATION_PROJECT]...';


GO
ALTER TABLE [dbo].[AFW_APPLICATION_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_APPLICATION_PROJECT] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[AFW_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_APPLICATION_PROJECT]...';


GO
ALTER TABLE [dbo].[AFW_APPLICATION_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_APPLICATION_PROJECT] FOREIGN KEY ([appl_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_APPLICATIONS]...';


GO
ALTER TABLE [dbo].[AFW_APPLICATIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_APPLICATIONS] FOREIGN KEY ([appl_parent_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ASSISTME_SERVICES]...';


GO
ALTER TABLE [dbo].[AFW_ASSISTME_SERVICES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ASSISTME_SERVICES] FOREIGN KEY ([Id_Config]) REFERENCES [dbo].[AFW_ASSISTME_CONFIGURATION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_AUDIT]...';


GO
ALTER TABLE [dbo].[AFW_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_AUDIT] FOREIGN KEY ([audi_application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_AUDIT]...';


GO
ALTER TABLE [dbo].[AFW_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_AUDIT] FOREIGN KEY ([audi_permission_id]) REFERENCES [dbo].[AFW_PERMISSIONS] ([perm_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFW_AUDIT]...';


GO
ALTER TABLE [dbo].[AFW_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFW_AUDIT] FOREIGN KEY ([audi_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_CATALOG]...';


GO
ALTER TABLE [dbo].[AFW_CATALOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_CATALOG] FOREIGN KEY ([cata_parent_id]) REFERENCES [dbo].[AFW_CATALOG] ([cata_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_CATALOG_CODE]...';


GO
ALTER TABLE [dbo].[AFW_CATALOG_CODE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_CATALOG_CODE] FOREIGN KEY ([code_cata_id]) REFERENCES [dbo].[AFW_CATALOG] ([cata_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_CATALOG_CODE]...';


GO
ALTER TABLE [dbo].[AFW_CATALOG_CODE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_CATALOG_CODE] FOREIGN KEY ([code_parent_id]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_CHAT_ATTACHMENT]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_ATTACHMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_CHAT_ATTACHMENT] FOREIGN KEY ([SessionId]) REFERENCES [dbo].[AFW_CHAT_SESSION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_CHAT_AUTO_RESPONSE]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_AUTO_RESPONSE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_CHAT_AUTO_RESPONSE] FOREIGN KEY ([SettingId]) REFERENCES [dbo].[AFW_CHAT_SETTING] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_CHAT_CONNECTION]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_CONNECTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_CHAT_CONNECTION] FOREIGN KEY ([ProjectClientId]) REFERENCES [dbo].[AFW_CHAT_PROJECT_CLIENT] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_CHAT_CONNECTION]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_CONNECTION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_CHAT_CONNECTION] FOREIGN KEY ([AgentId]) REFERENCES [dbo].[AFW_CHAT_PERSON] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_CHAT_MESSAGE]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_MESSAGE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_CHAT_MESSAGE] FOREIGN KEY ([SessionId]) REFERENCES [dbo].[AFW_CHAT_SESSION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_CHAT_MESSAGE_MAIL]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_MESSAGE_MAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_CHAT_MESSAGE_MAIL] FOREIGN KEY ([PersonId]) REFERENCES [dbo].[AFW_CHAT_PROJECT_CLIENT] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_CHAT_MESSAGE_MAIL]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_MESSAGE_MAIL] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_CHAT_MESSAGE_MAIL] FOREIGN KEY ([AssignedToId]) REFERENCES [dbo].[AFW_CHAT_PERSON] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_CHAT_PROJECT]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_CHAT_PROJECT] FOREIGN KEY ([ApplicationId]) REFERENCES [dbo].[AFW_CHAT_APPLICATION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_CHAT_PROJECT_AGENT]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_PROJECT_AGENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_CHAT_PROJECT_AGENT] FOREIGN KEY ([ProjectId]) REFERENCES [dbo].[AFW_CHAT_PROJECT] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_CHAT_PROJECT_AGENT]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_PROJECT_AGENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_CHAT_PROJECT_AGENT] FOREIGN KEY ([PersonId]) REFERENCES [dbo].[AFW_CHAT_PERSON] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_PROJECT_CLIENT]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_PROJECT_CLIENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_PROJECT_CLIENT] FOREIGN KEY ([ProjectId]) REFERENCES [dbo].[AFW_CHAT_PROJECT] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_PROJECT_CLIENT]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_PROJECT_CLIENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_PROJECT_CLIENT] FOREIGN KEY ([PersonId]) REFERENCES [dbo].[AFW_CHAT_PERSON] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_AFW_CHAT_SESSION_AFW_CHAT_CONNECTION_AGENT]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_SESSION] WITH NOCHECK
    ADD CONSTRAINT [FK_AFW_CHAT_SESSION_AFW_CHAT_CONNECTION_AGENT] FOREIGN KEY ([ConnectionIdAgent]) REFERENCES [dbo].[AFW_CHAT_CONNECTION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_AFW_CHAT_SESSION_AFW_CHAT_CONNECTION_CLIENT]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_SESSION] WITH NOCHECK
    ADD CONSTRAINT [FK_AFW_CHAT_SESSION_AFW_CHAT_CONNECTION_CLIENT] FOREIGN KEY ([ConnectionIdClient]) REFERENCES [dbo].[AFW_CHAT_CONNECTION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_CHAT_SETTING]...';


GO
ALTER TABLE [dbo].[AFW_CHAT_SETTING] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_CHAT_SETTING] FOREIGN KEY ([ApplicationId]) REFERENCES [dbo].[AFW_CHAT_APPLICATION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_COMMENTS]...';


GO
ALTER TABLE [dbo].[AFW_COMMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_COMMENTS] FOREIGN KEY ([UserId]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_COMMENTS_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFW_COMMENTS_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_COMMENTS_ASSIGNMENT] FOREIGN KEY ([CommentId]) REFERENCES [dbo].[AFW_COMMENTS] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_COMMENTS_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFW_COMMENTS_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_COMMENTS_ASSIGNMENT] FOREIGN KEY ([ConceptId]) REFERENCES [dbo].[AFW_CONCEPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_COMPANY]...';


GO
ALTER TABLE [dbo].[AFW_COMPANY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_COMPANY] FOREIGN KEY ([CreatedBy]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_COMPANY]...';


GO
ALTER TABLE [dbo].[AFW_COMPANY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_COMPANY] FOREIGN KEY ([ModifiedBy]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_COMPANY_TYPES]...';


GO
ALTER TABLE [dbo].[AFW_COMPANY_TYPES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_COMPANY_TYPES] FOREIGN KEY ([CompanyId]) REFERENCES [dbo].[AFW_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_COMPANY_TYPES]...';


GO
ALTER TABLE [dbo].[AFW_COMPANY_TYPES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_COMPANY_TYPES] FOREIGN KEY ([ProjectId]) REFERENCES [dbo].[AFW_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CONTENT_HISTORY]...';


GO
ALTER TABLE [dbo].[AFW_CONTENT_HISTORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_CONTENT_HISTORY] FOREIGN KEY ([cohi_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_CONTENT_HISTORY]...';


GO
ALTER TABLE [dbo].[AFW_CONTENT_HISTORY] WITH NOCHECK
    ADD CONSTRAINT [FK03_CONTENT_HISTORY] FOREIGN KEY ([cohi_docu_id]) REFERENCES [dbo].[AFW_DOCUMENT] ([docu_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AFW_DOCUMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_DOCUMENT] FOREIGN KEY ([docu_parent_id]) REFERENCES [dbo].[AFW_FOLDER] ([fold_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_FOLDER]...';


GO
ALTER TABLE [dbo].[AFW_FOLDER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_FOLDER] FOREIGN KEY ([fold_parent]) REFERENCES [dbo].[AFW_FOLDER] ([fold_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_GROUP_LICENSE]...';


GO
ALTER TABLE [dbo].[AFW_GROUP_LICENSE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_GROUP_LICENSE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_GROUP_LICENSE]...';


GO
ALTER TABLE [dbo].[AFW_GROUP_LICENSE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_GROUP_LICENSE] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_GROUP_USER]...';


GO
ALTER TABLE [dbo].[AFW_GROUP_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_GROUP_USER] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_GROUP_USER]...';


GO
ALTER TABLE [dbo].[AFW_GROUP_USER] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_GROUP_USER] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_GROUPS]...';


GO
ALTER TABLE [dbo].[AFW_GROUPS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_GROUPS] FOREIGN KEY ([grou_parent]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_GROUPS]...';


GO
ALTER TABLE [dbo].[AFW_GROUPS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_GROUPS] FOREIGN KEY ([grou_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFW_GROUPS]...';


GO
ALTER TABLE [dbo].[AFW_GROUPS] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFW_GROUPS] FOREIGN KEY ([grou_authentication_id]) REFERENCES [dbo].[AFW_LDAP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ITEM_TIMES]...';


GO
ALTER TABLE [dbo].[AFW_ITEM_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ITEM_TIMES] FOREIGN KEY ([type_agree]) REFERENCES [dbo].[AFLS_TYPE_AGREEMENT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_ITEM_TIMES]...';


GO
ALTER TABLE [dbo].[AFW_ITEM_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_ITEM_TIMES] FOREIGN KEY ([model_id]) REFERENCES [dbo].[AFW_ITEM_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_LDAP]...';


GO
ALTER TABLE [dbo].[AFW_LDAP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_LDAP] FOREIGN KEY ([exau_id]) REFERENCES [dbo].[AFW_EXTERNAL_AUTH_TYPES] ([exau_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_LICENSE]...';


GO
ALTER TABLE [dbo].[AFW_LICENSE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_LICENSE] FOREIGN KEY ([lice_application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_LICENSE]...';


GO
ALTER TABLE [dbo].[AFW_LICENSE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_LICENSE] FOREIGN KEY ([lice_parent_id]) REFERENCES [dbo].[AFW_LICENSE] ([lice_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_LICENSE_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFW_LICENSE_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_LICENSE_ASSIGNMENT] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_LICENSE_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFW_LICENSE_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_LICENSE_ASSIGNMENT] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFW_LICENSE_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[AFW_LICENSE_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFW_LICENSE_ASSIGNMENT] FOREIGN KEY ([license_id]) REFERENCES [dbo].[AFW_LICENSE] ([lice_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_LICENSES_USED]...';


GO
ALTER TABLE [dbo].[AFW_LICENSES_USED] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_LICENSES_USED] FOREIGN KEY ([license_id]) REFERENCES [dbo].[AFW_LICENSE] ([lice_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_LICENSES_USED]...';


GO
ALTER TABLE [dbo].[AFW_LICENSES_USED] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_LICENSES_USED] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFW_LICENSES_USED]...';


GO
ALTER TABLE [dbo].[AFW_LICENSES_USED] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFW_LICENSES_USED] FOREIGN KEY ([token_id]) REFERENCES [dbo].[AFW_USER_SESSION_TOKEN] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_LOCATION]...';


GO
ALTER TABLE [dbo].[AFW_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_LOCATION] FOREIGN KEY ([Parent]) REFERENCES [dbo].[AFW_LOCATION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_MAIL_ACCOUNT_CONFIG]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_MAIL_ACCOUNT_CONFIG] FOREIGN KEY ([appl_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_MAIL_ACCOUNT_CONFIG]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_MAIL_ACCOUNT_CONFIG] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[AFW_PROJECTS] ([proj_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFW_MAIL_ACCOUNT_CONFIG]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFW_MAIL_ACCOUNT_CONFIG] FOREIGN KEY ([maac_id]) REFERENCES [dbo].[AFW_MAIL_ACCOUNT] ([maac_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_MAIL_ACCOUNT_TEMPLATE]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK01_MAIL_ACCOUNT_TEMPLATE] FOREIGN KEY ([mate_id]) REFERENCES [dbo].[AFW_MAIL_TEMPLATE] ([mate_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_MAIL_ACCOUNT_TEMPLATE]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK02_MAIL_ACCOUNT_TEMPLATE] FOREIGN KEY ([maac_id]) REFERENCES [dbo].[AFW_MAIL_ACCOUNT] ([maac_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_AFW_MAIL_ATTACHMENT]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_ATTACHMENT] WITH NOCHECK
    ADD CONSTRAINT [FK_AFW_MAIL_ATTACHMENT] FOREIGN KEY ([MailId]) REFERENCES [dbo].[AFW_MAIL] ([mail_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_MAIL_TEMPLATE] FOREIGN KEY ([mate_category_id]) REFERENCES [dbo].[AFW_APPLICATION_CATEGORY] ([apca_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_NAMED_LICENSE]...';


GO
ALTER TABLE [dbo].[AFW_NAMED_LICENSE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_NAMED_LICENSE] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_NAMED_LICENSE]...';


GO
ALTER TABLE [dbo].[AFW_NAMED_LICENSE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_NAMED_LICENSE] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_PERMISSIONS]...';


GO
ALTER TABLE [dbo].[AFW_PERMISSIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_PERMISSIONS] FOREIGN KEY ([perm_parent]) REFERENCES [dbo].[AFW_PERMISSIONS] ([perm_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_PERMISSIONS]...';


GO
ALTER TABLE [dbo].[AFW_PERMISSIONS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_PERMISSIONS] FOREIGN KEY ([perm_application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFW_PERMISSIONS]...';


GO
ALTER TABLE [dbo].[AFW_PERMISSIONS] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFW_PERMISSIONS] FOREIGN KEY ([perm_concept_id]) REFERENCES [dbo].[AFW_CONCEPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_PROJECT_GROUP]...';


GO
ALTER TABLE [dbo].[AFW_PROJECT_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_PROJECT_GROUP] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[AFW_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_PROJECT_GROUP]...';


GO
ALTER TABLE [dbo].[AFW_PROJECT_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_PROJECT_GROUP] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_PROJECT_USER]...';


GO
ALTER TABLE [dbo].[AFW_PROJECT_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_PROJECT_USER] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[AFW_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_PROJECT_USER]...';


GO
ALTER TABLE [dbo].[AFW_PROJECT_USER] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_PROJECT_USER] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_PROJECTS]...';


GO
ALTER TABLE [dbo].[AFW_PROJECTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_PROJECTS] FOREIGN KEY ([proj_owner_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ROLE_ACCES]...';


GO
ALTER TABLE [dbo].[AFW_ROLE_ACCESS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ROLE_ACCES] FOREIGN KEY ([roac_grou_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_ROLE_ACCES]...';


GO
ALTER TABLE [dbo].[AFW_ROLE_ACCESS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_ROLE_ACCES] FOREIGN KEY ([roac_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFW_ROLE_ACCES]...';


GO
ALTER TABLE [dbo].[AFW_ROLE_ACCESS] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFW_ROLE_ACCES] FOREIGN KEY ([roac_role_id]) REFERENCES [dbo].[AFW_ROLES] ([role_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AFW_ROLE_ACCES]...';


GO
ALTER TABLE [dbo].[AFW_ROLE_ACCESS] WITH NOCHECK
    ADD CONSTRAINT [FK04_AFW_ROLE_ACCES] FOREIGN KEY ([roac_proj_id]) REFERENCES [dbo].[AFW_PROJECTS] ([proj_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ROLE_ACCESS_OBJECT]...';


GO
ALTER TABLE [dbo].[AFW_ROLE_ACCESS_OBJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ROLE_ACCESS_OBJECT] FOREIGN KEY ([roao_role_access_id]) REFERENCES [dbo].[AFW_ROLE_ACCESS] ([roac_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_ROLE_ACCESS_OBJECT]...';


GO
ALTER TABLE [dbo].[AFW_ROLE_ACCESS_OBJECT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_ROLE_ACCESS_OBJECT] FOREIGN KEY ([roao_object_type_id]) REFERENCES [dbo].[AFW_CONCEPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ROLE_PERMISSION]...';


GO
ALTER TABLE [dbo].[AFW_ROLE_PERMISSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ROLE_PERMISSION] FOREIGN KEY ([perm_id]) REFERENCES [dbo].[AFW_PERMISSIONS] ([perm_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_ROLE_PERMISSION]...';


GO
ALTER TABLE [dbo].[AFW_ROLE_PERMISSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_ROLE_PERMISSION] FOREIGN KEY ([role_id]) REFERENCES [dbo].[AFW_ROLES] ([role_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_ROLES]...';


GO
ALTER TABLE [dbo].[AFW_ROLES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_ROLES] FOREIGN KEY ([role_application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_ROLES]...';


GO
ALTER TABLE [dbo].[AFW_ROLES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_ROLES] FOREIGN KEY ([role_concept_id]) REFERENCES [dbo].[AFW_CONCEPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_RULE]...';


GO
ALTER TABLE [dbo].[AFW_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_RULE] FOREIGN KEY ([rule_context_id]) REFERENCES [dbo].[AFW_RULE_CONTEXT] ([ruco_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_RULE_ACTION]...';


GO
ALTER TABLE [dbo].[AFW_RULE_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_RULE_ACTION] FOREIGN KEY ([ruac_rule_id]) REFERENCES [dbo].[AFW_RULE] ([rule_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_RULE_ACTION]...';


GO
ALTER TABLE [dbo].[AFW_RULE_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_RULE_ACTION] FOREIGN KEY ([ruac_action_type_id]) REFERENCES [dbo].[AFW_RULE_ACTION_TYPE] ([acty_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_AFW_RULE_ACTION_TYPE]...';


GO
ALTER TABLE [dbo].[AFW_RULE_ACTION_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK_AFW_RULE_ACTION_TYPE] FOREIGN KEY ([acty_context_id]) REFERENCES [dbo].[AFW_RULE_CONTEXT] ([ruco_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_RULE_EVALUATION_CACHE]...';


GO
ALTER TABLE [dbo].[AFW_RULE_EVALUATION_CACHE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_RULE_EVALUATION_CACHE] FOREIGN KEY ([context_id]) REFERENCES [dbo].[AFW_RULE_CONTEXT] ([ruco_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_RULE_EVALUATION_CACHE]...';


GO
ALTER TABLE [dbo].[AFW_RULE_EVALUATION_CACHE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_RULE_EVALUATION_CACHE] FOREIGN KEY ([rule_id]) REFERENCES [dbo].[AFW_RULE] ([rule_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_SCHEDULER]...';


GO
ALTER TABLE [dbo].[AFW_SCHEDULER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_SCHEDULER] FOREIGN KEY ([sche_task_id]) REFERENCES [dbo].[AFW_TASKS] ([task_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_SCHEDULER]...';


GO
ALTER TABLE [dbo].[AFW_SCHEDULER] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_SCHEDULER] FOREIGN KEY ([sche_application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_SETTINGS]...';


GO
ALTER TABLE [dbo].[AFW_SETTINGS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_SETTINGS] FOREIGN KEY ([sett_application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_STATEMACHINE_ACTION_TYPE_STATE]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_ACTION_TYPE_STATE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_STATEMACHINE_ACTION_TYPE_STATE] FOREIGN KEY ([actyst_action_type_id]) REFERENCES [dbo].[AFW_STATEMACHINE_ACTION_TYPE_CATALOGS] ([actyca_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_STATEMACHINE_ACTION_TYPE_STATE]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_ACTION_TYPE_STATE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_STATEMACHINE_ACTION_TYPE_STATE] FOREIGN KEY ([actyst_state_id]) REFERENCES [dbo].[AFW_STATEMACHINE_STATES] ([st_id]) ON DELETE CASCADE ON UPDATE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_STATEMACHINE_REASON_TRANSITION]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_REASON_TRANSITION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_STATEMACHINE_REASON_TRANSITION] FOREIGN KEY ([tr_id]) REFERENCES [dbo].[AFW_STATEMACHINE_TRANSITIONS] ([tr_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_STATEMACHINE_REASON_TRANSITION_CATALOG]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_REASON_TRANSITION_CATALOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_STATEMACHINE_REASON_TRANSITION_CATALOG] FOREIGN KEY ([trca_id]) REFERENCES [dbo].[AFW_STATEMACHINE_TRANSITION_CATALOGS] ([trca_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_STATEMACHINE_STATE_CATALOGS]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_STATE_CATALOGS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_STATEMACHINE_STATE_CATALOGS] FOREIGN KEY ([stca_definition_catalogs_id]) REFERENCES [dbo].[AFW_STATEMACHINE_DEFINITION_CATALOGS] ([deca_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_STATEMACHINE_STATES]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_STATES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_STATEMACHINE_STATES] FOREIGN KEY ([de_definition_id]) REFERENCES [dbo].[AFW_STATEMACHINE_DEFINITIONS] ([de_id]) ON DELETE CASCADE ON UPDATE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_STATES_BY_ITEM_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_STATEMACHINE_STATES_BY_ITEM_TIMES] FOREIGN KEY ([stateId]) REFERENCES [dbo].[AFW_STATEMACHINE_STATES] ([st_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_STATES_BY_ITEM_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_STATEMACHINE_STATES_BY_ITEM_TIMES] FOREIGN KEY ([timeId]) REFERENCES [dbo].[AFW_ITEM_TIMES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_STATEMACHINE_TRANSITION_CATALOGS]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_TRANSITION_CATALOGS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_STATEMACHINE_TRANSITION_CATALOGS] FOREIGN KEY ([trca_state_catalogs_source_id]) REFERENCES [dbo].[AFW_STATEMACHINE_STATE_CATALOGS] ([stca_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_STATEMACHINE_TRANSITION_CATALOGS]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_TRANSITION_CATALOGS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_STATEMACHINE_TRANSITION_CATALOGS] FOREIGN KEY ([trca_state_catalogs_target_id]) REFERENCES [dbo].[AFW_STATEMACHINE_STATE_CATALOGS] ([stca_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_STATEMACHINE_TRANSITIONS]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_TRANSITIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_STATEMACHINE_TRANSITIONS] FOREIGN KEY ([tr_state_catalogs_source_id]) REFERENCES [dbo].[AFW_STATEMACHINE_STATES] ([st_id]) ON DELETE CASCADE ON UPDATE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_STATEMACHINE_TRANSITIONS]...';


GO
ALTER TABLE [dbo].[AFW_STATEMACHINE_TRANSITIONS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_STATEMACHINE_TRANSITIONS] FOREIGN KEY ([tr_state_catalogs_target_id]) REFERENCES [dbo].[AFW_STATEMACHINE_STATES] ([st_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_ANSWERS_QUESTION]...';


GO
ALTER TABLE [dbo].[AFW_SURVEY_ANSWERS] WITH NOCHECK
    ADD CONSTRAINT [FK_ANSWERS_QUESTION] FOREIGN KEY ([QuestionId]) REFERENCES [dbo].[AFW_SURVEY_QUESTION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_ANSWERS_SURVEY_USER]...';


GO
ALTER TABLE [dbo].[AFW_SURVEY_ANSWERS] WITH NOCHECK
    ADD CONSTRAINT [FK_ANSWERS_SURVEY_USER] FOREIGN KEY ([Token]) REFERENCES [dbo].[AFW_SURVEY_USER] ([Token]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_AFW_SURVEY_QRESP_CHOICE]...';


GO
ALTER TABLE [dbo].[AFW_SURVEY_QRESP_CHOICE] WITH NOCHECK
    ADD CONSTRAINT [FK_AFW_SURVEY_QRESP_CHOICE] FOREIGN KEY ([QuestionId]) REFERENCES [dbo].[AFW_SURVEY_QUESTION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_QUESTION_SURVEY]...';


GO
ALTER TABLE [dbo].[AFW_SURVEY_QUESTION] WITH NOCHECK
    ADD CONSTRAINT [FK_QUESTION_SURVEY] FOREIGN KEY ([SurveyId]) REFERENCES [dbo].[AFW_SURVEY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_QUESTION_TYPE]...';


GO
ALTER TABLE [dbo].[AFW_SURVEY_QUESTION] WITH NOCHECK
    ADD CONSTRAINT [FK_QUESTION_TYPE] FOREIGN KEY ([QuestionTypeId]) REFERENCES [dbo].[AFW_SURVEY_QUESTION_TYPE] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_SURVEY]...';


GO
ALTER TABLE [dbo].[AFW_SURVEY_USER] WITH NOCHECK
    ADD CONSTRAINT [FK_SURVEY] FOREIGN KEY ([SurveyId]) REFERENCES [dbo].[AFW_SURVEY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_TEMPLATES]...';


GO
ALTER TABLE [dbo].[AFW_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_TEMPLATES] FOREIGN KEY ([CategoryId]) REFERENCES [dbo].[AFW_APPLICATION_CATEGORY] ([apca_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_TEMPLATES]...';


GO
ALTER TABLE [dbo].[AFW_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_TEMPLATES] FOREIGN KEY ([CreatedBy]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AFW_TEMPLATES]...';


GO
ALTER TABLE [dbo].[AFW_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK03_AFW_TEMPLATES] FOREIGN KEY ([ModifiedBy]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AFW_TEMPLATES]...';


GO
ALTER TABLE [dbo].[AFW_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK04_AFW_TEMPLATES] FOREIGN KEY ([ProjectId]) REFERENCES [dbo].[AFW_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AFW_TEMPLATES]...';


GO
ALTER TABLE [dbo].[AFW_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK05_AFW_TEMPLATES] FOREIGN KEY ([CompanyId]) REFERENCES [dbo].[AFW_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_USER_SESSION]...';


GO
ALTER TABLE [dbo].[AFW_USER_SESSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_USER_SESSION] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AFW_USER_SESSION]...';


GO
ALTER TABLE [dbo].[AFW_USER_SESSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AFW_USER_SESSION] FOREIGN KEY ([token_id]) REFERENCES [dbo].[AFW_USER_SESSION_TOKEN] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_USER_SESSION_LOG]...';


GO
ALTER TABLE [dbo].[AFW_USER_SESSION_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_USER_SESSION_LOG] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_USER_SESSION_TOKEN]...';


GO
ALTER TABLE [dbo].[AFW_USER_SESSION_TOKEN] WITH NOCHECK
    ADD CONSTRAINT [FK01_USER_SESSION_TOKEN] FOREIGN KEY ([id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AFW_USERS]...';


GO
ALTER TABLE [dbo].[AFW_USERS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AFW_USERS] FOREIGN KEY ([user_authentication_id]) REFERENCES [dbo].[AFW_LDAP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_AFW_USERS_AUTHENTICATION]...';


GO
ALTER TABLE [dbo].[AFW_USERS_AUTHENTICATION] WITH NOCHECK
    ADD CONSTRAINT [FK_AFW_USERS_AUTHENTICATION] FOREIGN KEY ([usau_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AI_ASSISTANT]...';


GO
ALTER TABLE [dbo].[AI_ASSISTANT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AI_ASSISTANT] FOREIGN KEY ([task_id]) REFERENCES [dbo].[AI_TASK] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AI_ENDPOINT]...';


GO
ALTER TABLE [dbo].[AI_ENDPOINT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AI_ENDPOINT] FOREIGN KEY ([provider_id]) REFERENCES [dbo].[AI_PROVIDER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AI_ENDPOINT]...';


GO
ALTER TABLE [dbo].[AI_ENDPOINT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AI_ENDPOINT] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AI_MODEL]...';


GO
ALTER TABLE [dbo].[AI_MODEL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AI_MODEL] FOREIGN KEY ([endpoint_id]) REFERENCES [dbo].[AI_ENDPOINT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AI_TASK_APPLICATION]...';


GO
ALTER TABLE [dbo].[AI_TASK_APPLICATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AI_TASK_APPLICATION] FOREIGN KEY ([task_id]) REFERENCES [dbo].[AI_TASK] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AI_TASK_APPLICATION]...';


GO
ALTER TABLE [dbo].[AI_TASK_APPLICATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AI_TASK_APPLICATION] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AI_TASK_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AI_TASK_CONFIGURATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AI_TASK_CONFIGURATION] FOREIGN KEY ([task_id]) REFERENCES [dbo].[AI_TASK] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AI_TASK_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AI_TASK_CONFIGURATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AI_TASK_CONFIGURATION] FOREIGN KEY ([model_id]) REFERENCES [dbo].[AI_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AI_VECTOR]...';


GO
ALTER TABLE [dbo].[AI_VECTOR] WITH NOCHECK
    ADD CONSTRAINT [FK01_AI_VECTOR] FOREIGN KEY ([assistant_id]) REFERENCES [dbo].[AI_ASSISTANT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AI_VECTOR_FILE]...';


GO
ALTER TABLE [dbo].[AI_VECTOR_FILE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AI_VECTOR_FILE] FOREIGN KEY ([vector_id]) REFERENCES [dbo].[AI_VECTOR] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AIC_CONFIGURATION]...';


GO
ALTER TABLE [dbo].[AIC_CONFIGURATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AIC_CONFIGURATION] FOREIGN KEY ([id_integration]) REFERENCES [dbo].[AIC_DEFINITION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMAFWAPPSCLUSTER]...';


GO
ALTER TABLE [dbo].[AMDM_AFW_APPLICATIONS_CLUSTER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMAFWAPPSCLUSTER] FOREIGN KEY ([afwcluster_pageId]) REFERENCES [dbo].[AMDM_AFW_APPLICATIONS_PAGE] ([afwpage_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMAFWAPPSCLUSTERS]...';


GO
ALTER TABLE [dbo].[AMDM_AFW_APPS_PER_CLUSTERS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMAFWAPPSCLUSTERS] FOREIGN KEY ([appcluster_afwappid]) REFERENCES [dbo].[AMDM_AFW_APPLICATION] ([afwapp_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMAFWAPPSCLUSTERS]...';


GO
ALTER TABLE [dbo].[AMDM_AFW_APPS_PER_CLUSTERS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMAFWAPPSCLUSTERS] FOREIGN KEY ([appcluster_afwclusterid]) REFERENCES [dbo].[AMDM_AFW_APPLICATIONS_CLUSTER] ([afwcluster_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMALERTLOCATION]...';


GO
ALTER TABLE [dbo].[AMDM_ALERT_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMALERTLOCATION] FOREIGN KEY ([alertloc_alertid]) REFERENCES [dbo].[AFW_ALERT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMALERTLOCATION]...';


GO
ALTER TABLE [dbo].[AMDM_ALERT_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMALERTLOCATION] FOREIGN KEY ([alertloc_locationid]) REFERENCES [dbo].[AMDM_DEVICELOCATION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMALERTLOCATION]...';


GO
ALTER TABLE [dbo].[AMDM_ALERT_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMALERTLOCATION] FOREIGN KEY ([alertloc_zoneid]) REFERENCES [dbo].[AMDM_ZONE] ([zone_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMAFWUSERDETAILS]...';


GO
ALTER TABLE [dbo].[AMDM_ANDROIDFWUSERDETAILS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMAFWUSERDETAILS] FOREIGN KEY ([userafw_deviceid]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMAPNSCERTIFICATE]...';


GO
ALTER TABLE [dbo].[AMDM_APNSCERTIFICATE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMAPNSCERTIFICATE] FOREIGN KEY ([apns_statusgen]) REFERENCES [dbo].[AMDM_APNSGENERATIONSTATUS] ([apnsgenstat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMAPPCATEGORY]...';


GO
ALTER TABLE [dbo].[AMDM_APPCATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMAPPCATEGORY] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[AMDM_APPCATEGORY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMAPPLICATIONMETRICS]...';


GO
ALTER TABLE [dbo].[AMDM_APPLICATION_METRICS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMAPPLICATIONMETRICS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMAPPLICATIONMETRICS]...';


GO
ALTER TABLE [dbo].[AMDM_APPLICATION_METRICS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMAPPLICATIONMETRICS] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMAPPLICATIONMETRICS]...';


GO
ALTER TABLE [dbo].[AMDM_APPLICATION_METRICS] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMAPPLICATIONMETRICS] FOREIGN KEY ([app_id]) REFERENCES [dbo].[AMDM_APPSINFORMATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AMDMAPPLICATIONMETRICS]...';


GO
ALTER TABLE [dbo].[AMDM_APPLICATION_METRICS] WITH NOCHECK
    ADD CONSTRAINT [FK04_AMDMAPPLICATIONMETRICS] FOREIGN KEY ([dimdate_id]) REFERENCES [dbo].[ADW_DIM_DATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMAPPSINFOCATEGORY]...';


GO
ALTER TABLE [dbo].[AMDM_APPSINFO_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMAPPSINFOCATEGORY] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AMDM_APPSINFORMATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMAPPSINFOCATEGORY]...';


GO
ALTER TABLE [dbo].[AMDM_APPSINFO_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMAPPSINFOCATEGORY] FOREIGN KEY ([appcategory_id]) REFERENCES [dbo].[AMDM_APPCATEGORY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMAPPSINFODETAIL]...';


GO
ALTER TABLE [dbo].[AMDM_APPSINFORMATIONDETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMAPPSINFODETAIL] FOREIGN KEY ([appsinfodetail_appid]) REFERENCES [dbo].[AMDM_APPSINFORMATION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMAPPSINFORMATIONEXE]...';


GO
ALTER TABLE [dbo].[AMDM_APPSINFORMATIONEXE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMAPPSINFORMATIONEXE] FOREIGN KEY ([appsinfoexe_appid]) REFERENCES [dbo].[AMDM_APPSINFORMATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMCALENDARALARM]...';


GO
ALTER TABLE [dbo].[AMDM_CALENDAR_ALARM] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMCALENDARALARM] FOREIGN KEY ([CalendarId]) REFERENCES [dbo].[AMDM_CALENDAR] ([cal_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMCALENDARALARM]...';


GO
ALTER TABLE [dbo].[AMDM_CALENDAR_ALARM] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMCALENDARALARM] FOREIGN KEY ([ScheduleId]) REFERENCES [dbo].[AFW_SCHEDULER] ([sche_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMCALENDAROFFDAY]...';


GO
ALTER TABLE [dbo].[AMDM_CALENDAR_OFFDAYS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMCALENDAROFFDAY] FOREIGN KEY ([off_calendarid]) REFERENCES [dbo].[AMDM_CALENDAR] ([cal_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMCALENDARSCHEDULES]...';


GO
ALTER TABLE [dbo].[AMDM_CALENDAR_SCHEDULES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMCALENDARSCHEDULES] FOREIGN KEY ([sch_calendarid]) REFERENCES [dbo].[AMDM_CALENDAR] ([cal_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMCALENDARSCHEDULES]...';


GO
ALTER TABLE [dbo].[AMDM_CALENDAR_SCHEDULES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMCALENDARSCHEDULES] FOREIGN KEY ([sch_weekday]) REFERENCES [dbo].[AMDM_WEEKDAY] ([day_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDM_CMDREQSCPTCMDST]...';


GO
ALTER TABLE [dbo].[AMDM_CMDREQ_SCRIPTCMD_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDM_CMDREQSCPTCMDST] FOREIGN KEY ([commandrequest_id]) REFERENCES [dbo].[AMDM_COMMANDREQUEST] ([cmdreq_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDM_CMDREQSCPTCMDST]...';


GO
ALTER TABLE [dbo].[AMDM_CMDREQ_SCRIPTCMD_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDM_CMDREQSCPTCMDST] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDM_CMDREQSCPTCMDST]...';


GO
ALTER TABLE [dbo].[AMDM_CMDREQ_SCRIPTCMD_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDM_CMDREQSCPTCMDST] FOREIGN KEY ([managementproject_id]) REFERENCES [dbo].[AMDM_MANAGEMENTPROJECT] ([manproject_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AMDM_CMDREQSCPTCMDST]...';


GO
ALTER TABLE [dbo].[AMDM_CMDREQ_SCRIPTCMD_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK04_AMDM_CMDREQSCPTCMDST] FOREIGN KEY ([status_id]) REFERENCES [dbo].[AMDM_COMMANDSTATUS] ([cmdstat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMCOMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMCOMMANDREQUEST] FOREIGN KEY ([cmdreq_targettypeid]) REFERENCES [dbo].[AMDM_COMMANDTARGETTYPE] ([cmdtgtype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMCOMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMCOMMANDREQUEST] FOREIGN KEY ([cmdreq_commandtypeid]) REFERENCES [dbo].[AMDM_COMMANDTYPE] ([cmdtype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMCOMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMCOMMANDREQUEST] FOREIGN KEY ([cmdreq_deviceid]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AMDMCOMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH NOCHECK
    ADD CONSTRAINT [FK04_AMDMCOMMANDREQUEST] FOREIGN KEY ([cmdreq_groupid]) REFERENCES [dbo].[AMDM_GROUP] ([group_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AMDMCOMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH NOCHECK
    ADD CONSTRAINT [FK05_AMDMCOMMANDREQUEST] FOREIGN KEY ([cmdreq_policyid]) REFERENCES [dbo].[AMDM_POLICY] ([policy_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_AMDMCOMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH NOCHECK
    ADD CONSTRAINT [FK06_AMDMCOMMANDREQUEST] FOREIGN KEY ([cmdreq_ruleid]) REFERENCES [dbo].[AMDM_RULESET] ([ruleset_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_AMDMCOMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH NOCHECK
    ADD CONSTRAINT [FK07_AMDMCOMMANDREQUEST] FOREIGN KEY ([cmdreq_expenseid]) REFERENCES [dbo].[AMDM_EXPENSEPLAN] ([plan_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_AMDMCOMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH NOCHECK
    ADD CONSTRAINT [FK08_AMDMCOMMANDREQUEST] FOREIGN KEY ([cmdreq_userid]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK09_AMDMCOMMANDREQUEST]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH NOCHECK
    ADD CONSTRAINT [FK09_AMDMCOMMANDREQUEST] FOREIGN KEY ([cmdreq_manprojectid]) REFERENCES [dbo].[AMDM_MANAGEMENTPROJECT] ([manproject_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMCOMMANDREQACTION]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUESTACTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMCOMMANDREQACTION] FOREIGN KEY ([reqaction_actiontypeid]) REFERENCES [dbo].[AMDM_COMMANDACTIONTYPE] ([cmdactype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMCOMMANDREQACTION]...';


GO
ALTER TABLE [dbo].[AMDM_COMMANDREQUESTACTION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMCOMMANDREQACTION] FOREIGN KEY ([reqaction_requestid]) REFERENCES [dbo].[AMDM_COMMANDREQUEST] ([cmdreq_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICE] FOREIGN KEY ([devicehardware_id]) REFERENCES [dbo].[AMDM_DEVICEHARDWARE] ([devh_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMDEVICE] FOREIGN KEY ([devicenetwork_id]) REFERENCES [dbo].[AMDM_DEVICENETWORK] ([devn_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMDEVICE] FOREIGN KEY ([platform_id]) REFERENCES [dbo].[AMDM_DEVICEPLATFORM] ([platf_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK04_AMDMDEVICE] FOREIGN KEY ([status_id]) REFERENCES [dbo].[AMDM_DEVICESTATUS] ([devstat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK05_AMDMDEVICE] FOREIGN KEY ([enrollmentrecord_id]) REFERENCES [dbo].[AMDM_PENDINGENROLL] ([penr_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK06_AMDMDEVICE] FOREIGN KEY ([policy_id]) REFERENCES [dbo].[AMDM_POLICY] ([policy_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK07_AMDMDEVICE] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK08_AMDMDEVICE] FOREIGN KEY ([ruleset_id]) REFERENCES [dbo].[AMDM_RULESET] ([ruleset_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK09_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK09_AMDMDEVICE] FOREIGN KEY ([expenseplan_id]) REFERENCES [dbo].[AMDM_EXPENSEPLAN] ([plan_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK10_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK10_AMDMDEVICE] FOREIGN KEY ([calendar_id]) REFERENCES [dbo].[AMDM_CALENDAR] ([cal_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK11_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK11_AMDMDEVICE] FOREIGN KEY ([androidforworkmode_id]) REFERENCES [dbo].[AMDM_DEVICEAFWMODE] ([afwmode_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK12_AMDMDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK12_AMDMDEVICE] FOREIGN KEY ([agentprofile_id]) REFERENCES [dbo].[AMDM_DEVICEAGENTPROFILE] ([devagentprofile_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDM_DEVICE_HEALTHINFO]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE_HEALTHINFO] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDM_DEVICE_HEALTHINFO] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDM_DEVICE_HEALTHINFO]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE_HEALTHINFO] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDM_DEVICE_HEALTHINFO] FOREIGN KEY ([date_id]) REFERENCES [dbo].[ADW_DIM_DATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDM_DEVICE_HEALTHINFO]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE_HEALTHINFO] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDM_DEVICE_HEALTHINFO] FOREIGN KEY ([time_id]) REFERENCES [dbo].[ADW_DIM_TIME] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICERCSESSION]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE_RCSESSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICERCSESSION] FOREIGN KEY ([device_rcsession_deviceid]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMDEVICERCSESSION]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICE_RCSESSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMDEVICERCSESSION] FOREIGN KEY ([device_rcsession_rcsessionid]) REFERENCES [dbo].[AMDM_RCSESSION] ([rcsession_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICEAGENTPROFILE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEAGENTPROFILE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICEAGENTPROFILE] FOREIGN KEY ([devagentprofile_usercreatorid]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVAGENTPROFILEDET]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEAGENTPROFILEDETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVAGENTPROFILEDET] FOREIGN KEY ([devagentprofiledet_profileid]) REFERENCES [dbo].[AMDM_DEVICEAGENTPROFILE] ([devagentprofile_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICEEVENT]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEEVENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICEEVENT] FOREIGN KEY ([devevent_deviceid]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMDEVICEEVENT]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEEVENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMDEVICEEVENT] FOREIGN KEY ([devevent_userid]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMDEVICEEVENT]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEEVENT] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMDEVICEEVENT] FOREIGN KEY ([devevent_evtypeid]) REFERENCES [dbo].[AMDM_DEVICEEVENTTYPE] ([deventtype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AMDMDEVICEEVENT]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEEVENT] WITH NOCHECK
    ADD CONSTRAINT [FK04_AMDMDEVICEEVENT] FOREIGN KEY ([devevent_notificationtypeid]) REFERENCES [dbo].[AMDM_NOTIFICATIONTYPE] ([devnottype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AMDMDEVICEEVENT]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEEVENT] WITH NOCHECK
    ADD CONSTRAINT [FK05_AMDMDEVICEEVENT] FOREIGN KEY ([devevent_manprojectid]) REFERENCES [dbo].[AMDM_MANAGEMENTPROJECT] ([manproject_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICEEXPENSE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEEXPENSE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICEEXPENSE] FOREIGN KEY ([devexp_deviceid]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMDEVICEEXPENSE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEEXPENSE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMDEVICEEXPENSE] FOREIGN KEY ([devexp_planid]) REFERENCES [dbo].[AMDM_EXPENSEPLAN] ([plan_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_AMDM_DEVICEFLAGS_001]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEFLAGS] WITH NOCHECK
    ADD CONSTRAINT [FK_AMDM_DEVICEFLAGS_001] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_AMDM_DEVICEFLAGS_002]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEFLAGS] WITH NOCHECK
    ADD CONSTRAINT [FK_AMDM_DEVICEFLAGS_002] FOREIGN KEY ([flag_id]) REFERENCES [dbo].[AMDM_FLAGDEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICELOG]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICELOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICELOG] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICEMACADDRESS]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEMACADDRESS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICEMACADDRESS] FOREIGN KEY ([devmac_deviceid]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICEMODELS]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEMODELS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICEMODELS] FOREIGN KEY ([platform_id]) REFERENCES [dbo].[AMDM_DEVICEPLATFORM] ([platf_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMDEVICEMODELS]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICEMODELS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMDEVICEMODELS] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[AMDM_MOBILEMANUFACTURERS] ([mobman_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICE_EMAILS]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICERESETEMAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICE_EMAILS] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDM_EMAIL]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICERESETEMAIL] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDM_EMAIL] FOREIGN KEY ([email_id]) REFERENCES [dbo].[AMDM_EMAIL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICESCHEDULETASK]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICESCHEDULETASK] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICESCHEDULETASK] FOREIGN KEY ([devs_deviceid]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMDEVICESCHEDULETASK]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICESCHEDULETASK] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMDEVICESCHEDULETASK] FOREIGN KEY ([devs_scheduleid]) REFERENCES [dbo].[AFW_SCHEDULER] ([sche_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVICESOFTWARE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVICESOFTWARE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVICESOFTWARE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDEVMODELPACKAGE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVMODEL_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDEVMODELPACKAGE] FOREIGN KEY ([package_id]) REFERENCES [dbo].[AMDM_HIDDEN_PACKAGE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMDEVMODELPACKAGE]...';


GO
ALTER TABLE [dbo].[AMDM_DEVMODEL_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMDEVMODELPACKAGE] FOREIGN KEY ([devmodel_id]) REFERENCES [dbo].[AMDM_DEVICEMODELS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDOUBLEVALIDATIONCODE]...';


GO
ALTER TABLE [dbo].[AMDM_DOUBLE_VALIDATION_CODES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDOUBLEVALIDATIONCODE] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMDOUBLEVALIDATIONCODE]...';


GO
ALTER TABLE [dbo].[AMDM_DOUBLE_VALIDATION_CODES] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMDOUBLEVALIDATIONCODE] FOREIGN KEY ([action_id]) REFERENCES [dbo].[AMDM_SECURITYVALIDATION_ACTION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDYNAMICGROUP]...';


GO
ALTER TABLE [dbo].[AMDM_DYNAMICGROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDYNAMICGROUP] FOREIGN KEY ([dyngr_createdby]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMDYNAMICGROUPPARAMS]...';


GO
ALTER TABLE [dbo].[AMDM_DYNAMICGROUPPARAMS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMDYNAMICGROUPPARAMS] FOREIGN KEY ([dyngrparam_iddynamicgroup]) REFERENCES [dbo].[AMDM_DYNAMICGROUP] ([dyngr_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMDYNAMICGROUPPARAMS]...';


GO
ALTER TABLE [dbo].[AMDM_DYNAMICGROUPPARAMS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMDYNAMICGROUPPARAMS] FOREIGN KEY ([dyngrparam_type]) REFERENCES [dbo].[AMDM_DYNAMICGROUPPARAMTYPE] ([dyngrpartyp_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDM_EVENT_MANAGEMENT]...';


GO
ALTER TABLE [dbo].[AMDM_EVENT_MANAGEMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDM_EVENT_MANAGEMENT] FOREIGN KEY ([event_type_id]) REFERENCES [dbo].[AMDM_EVENT_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDM_EVENT_MANAGEMENT]...';


GO
ALTER TABLE [dbo].[AMDM_EVENT_MANAGEMENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDM_EVENT_MANAGEMENT] FOREIGN KEY ([event_status_id]) REFERENCES [dbo].[AMDM_EVENT_STATUS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMEXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMEXPENSEPLAN] FOREIGN KEY ([plan_expensecarrier_id]) REFERENCES [dbo].[AMDM_EXPENSECARRIER] ([carrier_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMEXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMEXPENSEPLAN] FOREIGN KEY ([plan_currency]) REFERENCES [dbo].[AMDM_CURRENCY] ([currency_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMEXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMEXPENSEPLAN] FOREIGN KEY ([plan_userid]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AMDMEXPENSEPLAN]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN] WITH NOCHECK
    ADD CONSTRAINT [FK04_AMDMEXPENSEPLAN] FOREIGN KEY ([plan_rulesetexpenseplanid]) REFERENCES [dbo].[AMDM_RULESET] ([ruleset_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMEXPENSEPLANCALLCOST]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN_CALLCOST] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMEXPENSEPLANCALLCOST] FOREIGN KEY ([callcost_planid]) REFERENCES [dbo].[AMDM_EXPENSEPLAN] ([plan_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMEXPENSEPLANCALLCOST]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLAN_CALLCOST] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMEXPENSEPLANCALLCOST] FOREIGN KEY ([callcost_countrycodeid]) REFERENCES [dbo].[AMDM_EXPENSE_COUNTRYCODE] ([countrycode_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMEXPENSEPLANSUMMARY]...';


GO
ALTER TABLE [dbo].[AMDM_EXPENSEPLANSUMMARY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMEXPENSEPLANSUMMARY] FOREIGN KEY ([plansum_planid]) REFERENCES [dbo].[AMDM_EXPENSEPLAN] ([plan_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMGROUPDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_GROUPDEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMGROUPDEVICE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMGROUPDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_GROUPDEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMGROUPDEVICE] FOREIGN KEY ([dev_id]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMGROUPUSERSPOLICY]...';


GO
ALTER TABLE [dbo].[AMDM_GROUPUSERS_POLICY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMGROUPUSERSPOLICY] FOREIGN KEY ([guserspolicy_groupid]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMGROUPUSERSPOLICY]...';


GO
ALTER TABLE [dbo].[AMDM_GROUPUSERS_POLICY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMGROUPUSERSPOLICY] FOREIGN KEY ([guserspolicy_policyid]) REFERENCES [dbo].[AMDM_POLICY] ([policy_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMIOSPENDINGENROLLDATA]...';


GO
ALTER TABLE [dbo].[AMDM_IOS_PENDINGENROLL_DATA] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMIOSPENDINGENROLLDATA] FOREIGN KEY ([iospendingenroll_devid]) REFERENCES [dbo].[AMDM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMMANAGEMENTPROJECT]...';


GO
ALTER TABLE [dbo].[AMDM_MANAGEMENTPROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMMANAGEMENTPROJECT] FOREIGN KEY ([manproject_statusid]) REFERENCES [dbo].[AMDM_MANPROJECT_STATUS] ([manprojectstatus_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMMANAGEMENTPROJECT]...';


GO
ALTER TABLE [dbo].[AMDM_MANAGEMENTPROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMMANAGEMENTPROJECT] FOREIGN KEY ([manproject_userid]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDM_MANPROJSCRIPTCMD]...';


GO
ALTER TABLE [dbo].[AMDM_MANPROJACTION_SCRIPTCMD] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDM_MANPROJSCRIPTCMD] FOREIGN KEY ([manprojectaction_id]) REFERENCES [dbo].[AMDM_MANPROJECT_ACTION] ([manprojectaction_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDM_MANPROJSCRIPTCMD]...';


GO
ALTER TABLE [dbo].[AMDM_MANPROJACTION_SCRIPTCMD] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDM_MANPROJSCRIPTCMD] FOREIGN KEY ([scriptcommand_id]) REFERENCES [dbo].[AMDM_SCRIPT_COMMAND] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMMANPROJECTACTION]...';


GO
ALTER TABLE [dbo].[AMDM_MANPROJECT_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMMANPROJECTACTION] FOREIGN KEY ([manprojectaction_typeid]) REFERENCES [dbo].[AMDM_MANPROJECT_ACTION_TYPE] ([manprojectactiontype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMMANPROJECTACTION]...';


GO
ALTER TABLE [dbo].[AMDM_MANPROJECT_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMMANPROJECTACTION] FOREIGN KEY ([manprojectaction_projectid]) REFERENCES [dbo].[AMDM_MANAGEMENTPROJECT] ([manproject_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMMANPROJECTDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_MANPROJECT_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMMANPROJECTDEVICE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMMANPROJECTDEVICE]...';


GO
ALTER TABLE [dbo].[AMDM_MANPROJECT_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMMANPROJECTDEVICE] FOREIGN KEY ([managementproject_id]) REFERENCES [dbo].[AMDM_MANAGEMENTPROJECT] ([manproject_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMMANPROJECTNOTIFY]...';


GO
ALTER TABLE [dbo].[AMDM_MANPROJECT_NOTIFICATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMMANPROJECTNOTIFY] FOREIGN KEY ([type_id]) REFERENCES [dbo].[AMDM_MANPROJECT_NOTIFY_TYPE] ([manprojectnotifytype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMMANPROJECTNOTIFY]...';


GO
ALTER TABLE [dbo].[AMDM_MANPROJECT_NOTIFICATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMMANPROJECTNOTIFY] FOREIGN KEY ([project_id]) REFERENCES [dbo].[AMDM_MANAGEMENTPROJECT] ([manproject_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMMOBILEMANUFACTURERS]...';


GO
ALTER TABLE [dbo].[AMDM_MOBILEMANUFACTURERS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMMOBILEMANUFACTURERS] FOREIGN KEY ([mobman_platform]) REFERENCES [dbo].[AMDM_DEVICEPLATFORM] ([platf_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMMOBILEPLATFVERSIONS]...';


GO
ALTER TABLE [dbo].[AMDM_MOBILEPLATFORMSVERSIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMMOBILEPLATFVERSIONS] FOREIGN KEY ([platformver_platform]) REFERENCES [dbo].[AMDM_DEVICEPLATFORM] ([platf_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMPENDINGENROLL]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMPENDINGENROLL] FOREIGN KEY ([penr_statusid]) REFERENCES [dbo].[AMDM_DEVICEENROLLSTATUS] ([enrstat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMPENDINGENROLL]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLL] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMPENDINGENROLL] FOREIGN KEY ([penr_platformid]) REFERENCES [dbo].[AMDM_DEVICEPLATFORM] ([platf_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMPENDINGENROLL]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLL] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMPENDINGENROLL] FOREIGN KEY ([penr_errorid]) REFERENCES [dbo].[AMDM_ENROLLMENTERROR] ([enrerr_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AMDMPENDINGENROLL]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLL] WITH NOCHECK
    ADD CONSTRAINT [FK04_AMDMPENDINGENROLL] FOREIGN KEY ([penr_idenrollmentflags]) REFERENCES [dbo].[AMDM_PENDINGENROLLFLAGS] ([penrf_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AMDMPENDINGENROLL]...';


GO
ALTER TABLE [dbo].[AMDM_PENDINGENROLL] WITH NOCHECK
    ADD CONSTRAINT [FK05_AMDMPENDINGENROLL] FOREIGN KEY ([penr_mobileuserid]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMPOLICY]...';


GO
ALTER TABLE [dbo].[AMDM_POLICY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMPOLICY] FOREIGN KEY ([policy_platformid]) REFERENCES [dbo].[AMDM_DEVICEPLATFORM] ([platf_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMPOLICY]...';


GO
ALTER TABLE [dbo].[AMDM_POLICY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMPOLICY] FOREIGN KEY ([policy_createby]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMPOLICY]...';


GO
ALTER TABLE [dbo].[AMDM_POLICY] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMPOLICY] FOREIGN KEY ([policy_modifiedby]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMPOLICYFULFILLPROB]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYFULFILLMENTPROBLEM] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMPOLICYFULFILLPROB] FOREIGN KEY ([fulfilledprom_problemtype]) REFERENCES [dbo].[AMDM_POLICYFULFILLPROBLEMTYPE] ([fulfilledpromtype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMPOLICYITEM]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYITEM] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMPOLICYITEM] FOREIGN KEY ([politem_policyid]) REFERENCES [dbo].[AMDM_POLICY] ([policy_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMPOLICYITEM]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYITEM] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMPOLICYITEM] FOREIGN KEY ([politem_policyversionid]) REFERENCES [dbo].[AMDM_POLICYVERSION] ([policy_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMPOLICYITEM]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYITEM] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMPOLICYITEM] FOREIGN KEY ([politem_policyitemtype]) REFERENCES [dbo].[AMDM_POLICYITEMTYPE] ([politemtype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMPOLICYITEMTYPEPARAM]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYITEMTYPEPARAMETER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMPOLICYITEMTYPEPARAM] FOREIGN KEY ([politemparam_parammainappid]) REFERENCES [dbo].[AMDM_POLICYPARAMAPPMAIN] ([poliparammainapp_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMPOLICYITEMTYPEPARAM]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYITEMTYPEPARAMETER] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMPOLICYITEMTYPEPARAM] FOREIGN KEY ([politemparam_policyitemid]) REFERENCES [dbo].[AMDM_POLICYITEM] ([politem_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMPOLICYPARAMAPP]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYPARAMAPP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMPOLICYPARAMAPP] FOREIGN KEY ([poliparamapp_mainappid]) REFERENCES [dbo].[AMDM_POLICYPARAMAPPMAIN] ([poliparammainapp_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMPOLPARAMAPPPERM]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYPARAMAPPPERMISSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMPOLPARAMAPPPERM] FOREIGN KEY ([poliparamappper_poliparamappid]) REFERENCES [dbo].[AMDM_POLICYPARAMAPP] ([poliparamapp_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMPOLICYVERSION]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYVERSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMPOLICYVERSION] FOREIGN KEY ([policy_parentpolicy]) REFERENCES [dbo].[AMDM_POLICY] ([policy_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMPOLICYVERSION]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYVERSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMPOLICYVERSION] FOREIGN KEY ([policy_platformid]) REFERENCES [dbo].[AMDM_DEVICEPLATFORM] ([platf_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMPOLICYVERSION]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYVERSION] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMPOLICYVERSION] FOREIGN KEY ([policy_createby]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AMDMPOLICYVERSION]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYVERSION] WITH NOCHECK
    ADD CONSTRAINT [FK04_AMDMPOLICYVERSION] FOREIGN KEY ([policy_modifiedby]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_AMDMPOLICYVERSION]...';


GO
ALTER TABLE [dbo].[AMDM_POLICYVERSION] WITH NOCHECK
    ADD CONSTRAINT [FK05_AMDMPOLICYVERSION] FOREIGN KEY ([policy_ApprovedBy]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMRCSESSION]...';


GO
ALTER TABLE [dbo].[AMDM_RCSESSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMRCSESSION] FOREIGN KEY ([rcsession_statusid]) REFERENCES [dbo].[AMDM_RCSESSIONSTATUS] ([rcsesstat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMRCSESSION]...';


GO
ALTER TABLE [dbo].[AMDM_RCSESSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMRCSESSION] FOREIGN KEY ([rcsession_userid]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMRCSESSIONMEDIA]...';


GO
ALTER TABLE [dbo].[AMDM_RCSESSIONMEDIA] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMRCSESSIONMEDIA] FOREIGN KEY ([rcsessionmedia_rcsessionid]) REFERENCES [dbo].[AMDM_RCSESSION] ([rcsession_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMREQACTIONPARAM]...';


GO
ALTER TABLE [dbo].[AMDM_REQACTIONPARAM] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMREQACTIONPARAM] FOREIGN KEY ([actparams_actionid]) REFERENCES [dbo].[AMDM_COMMANDREQUESTACTION] ([reqaction_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMRULESETRULE]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMRULESETRULE] FOREIGN KEY ([rset_rulesetid]) REFERENCES [dbo].[AMDM_RULESET] ([ruleset_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMRULESETRULE]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMRULESETRULE] FOREIGN KEY ([rset_afwruleid]) REFERENCES [dbo].[AFW_RULE] ([rule_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMRULESETRULE]...';


GO
ALTER TABLE [dbo].[AMDM_RULESET_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMRULESETRULE] FOREIGN KEY ([rset_rule_typeid]) REFERENCES [dbo].[AMDM_RULE_TYPE] ([rtype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_RULESETEXPENSEPLANRULE]...';


GO
ALTER TABLE [dbo].[AMDM_RULESETEXPENSEPLAN_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK01_RULESETEXPENSEPLANRULE] FOREIGN KEY ([rsetexpplan_rulesetexpplan_id]) REFERENCES [dbo].[AMDM_RULESETEXPENSEPLAN] ([rulesetplan_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_RULESETEXPENSEPLANRULE]...';


GO
ALTER TABLE [dbo].[AMDM_RULESETEXPENSEPLAN_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK02_RULESETEXPENSEPLANRULE] FOREIGN KEY ([rsetexpplan_afwruleid]) REFERENCES [dbo].[AFW_RULE] ([rule_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_RULESETEXPENSEPLANRULE]...';


GO
ALTER TABLE [dbo].[AMDM_RULESETEXPENSEPLAN_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK03_RULESETEXPENSEPLANRULE] FOREIGN KEY ([rsetexpplan_rule_typeid]) REFERENCES [dbo].[AMDM_RULE_TYPE] ([rtype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDM_SCRIPTCOMMAND]...';


GO
ALTER TABLE [dbo].[AMDM_SCRIPT_COMMAND] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDM_SCRIPTCOMMAND] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDM_SCRIPTCOMMANDTYPE]...';


GO
ALTER TABLE [dbo].[AMDM_SCRIPTCOMMAND_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDM_SCRIPTCOMMANDTYPE] FOREIGN KEY ([commandactiontype_id]) REFERENCES [dbo].[AMDM_COMMANDACTIONTYPE] ([cmdactype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMSENTCOMMAND]...';


GO
ALTER TABLE [dbo].[AMDM_SENTCOMMAND] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMSENTCOMMAND] FOREIGN KEY ([sentcmd_requestid]) REFERENCES [dbo].[AMDM_COMMANDREQUEST] ([cmdreq_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMSENTCOMMAND]...';


GO
ALTER TABLE [dbo].[AMDM_SENTCOMMAND] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMSENTCOMMAND] FOREIGN KEY ([sentcmd_statusid]) REFERENCES [dbo].[AMDM_COMMANDSTATUS] ([cmdstat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AMDMSENTCOMMAND]...';


GO
ALTER TABLE [dbo].[AMDM_SENTCOMMAND] WITH NOCHECK
    ADD CONSTRAINT [FK03_AMDMSENTCOMMAND] FOREIGN KEY ([sentcmd_targetprotocolid]) REFERENCES [dbo].[AMDM_COMMANDTARGETPROT] ([cmdprot_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_AMDMSENTCOMMAND]...';


GO
ALTER TABLE [dbo].[AMDM_SENTCOMMAND] WITH NOCHECK
    ADD CONSTRAINT [FK04_AMDMSENTCOMMAND] FOREIGN KEY ([sentcmd_deviceid]) REFERENCES [dbo].[AMDM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMSENTCOMMANDLOG]...';


GO
ALTER TABLE [dbo].[AMDM_SENTCOMMANDLOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMSENTCOMMANDLOG] FOREIGN KEY ([sentcmdlg_statusid]) REFERENCES [dbo].[AMDM_COMMANDSTATUS] ([cmdstat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AMDMSENTCOMMANDLOG]...';


GO
ALTER TABLE [dbo].[AMDM_SENTCOMMANDLOG] WITH NOCHECK
    ADD CONSTRAINT [FK02_AMDMSENTCOMMANDLOG] FOREIGN KEY ([sentcmdlg_sentcommandid]) REFERENCES [dbo].[AMDM_SENTCOMMAND] ([sentcmd_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMSYSTEMAPP]...';


GO
ALTER TABLE [dbo].[AMDM_SYSTEMAPP] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMSYSTEMAPP] FOREIGN KEY ([systemapp_typeid]) REFERENCES [dbo].[AMDM_SYSTEMAPPTYPE] ([sysapptype_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMUSERCONTENTLOCK]...';


GO
ALTER TABLE [dbo].[AMDM_USER_CONTENTLOCK] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMUSERCONTENTLOCK] FOREIGN KEY ([userlock_userid]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDM_VPP_ASSIGNLICENSES]...';


GO
ALTER TABLE [dbo].[AMDM_VPP_ASSIGNLICENSES] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDM_VPP_ASSIGNLICENSES] FOREIGN KEY ([app_id]) REFERENCES [dbo].[AMDM_APPSINFORMATION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDM_VPPASSIGNLICENSEDET]...';


GO
ALTER TABLE [dbo].[AMDM_VPP_ASSIGNLICENSESDETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDM_VPPASSIGNLICENSEDET] FOREIGN KEY ([assignlicenses_id]) REFERENCES [dbo].[AMDM_VPP_ASSIGNLICENSES] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AMDMZONEPOLIGON]...';


GO
ALTER TABLE [dbo].[AMDM_ZONEPOLIGON] WITH NOCHECK
    ADD CONSTRAINT [FK01_AMDMZONEPOLIGON] FOREIGN KEY ([data_zoneid]) REFERENCES [dbo].[AMDM_ZONE] ([zone_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ANM_DEVICE_METRIC]...';


GO
ALTER TABLE [dbo].[ANM_DEVICE_METRIC] WITH NOCHECK
    ADD CONSTRAINT [FK01_ANM_DEVICE_METRIC] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ANM_DEVICE_METRIC]...';


GO
ALTER TABLE [dbo].[ANM_DEVICE_METRIC] WITH NOCHECK
    ADD CONSTRAINT [FK02_ANM_DEVICE_METRIC] FOREIGN KEY ([monitor_id]) REFERENCES [dbo].[ANM_DEVICE_MONITOR] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ANM_DEVICE_MONITOR]...';


GO
ALTER TABLE [dbo].[ANM_DEVICE_MONITOR] WITH NOCHECK
    ADD CONSTRAINT [FK01_ANM_DEVICE_MONITOR] FOREIGN KEY ([credential_id]) REFERENCES [dbo].[ADM_CREDENTIAL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ANM_DEVICE_MONITOR]...';


GO
ALTER TABLE [dbo].[ANM_DEVICE_MONITOR] WITH NOCHECK
    ADD CONSTRAINT [FK02_ANM_DEVICE_MONITOR] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ANM_DEVICE_MONITOR]...';


GO
ALTER TABLE [dbo].[ANM_DEVICE_MONITOR] WITH NOCHECK
    ADD CONSTRAINT [FK03_ANM_DEVICE_MONITOR] FOREIGN KEY ([type]) REFERENCES [dbo].[ANM_MONITOR_METRIC] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_APPLICABLE_SERV_PACK]...';


GO
ALTER TABLE [dbo].[APM_APPLICABLE_SERV_PACK] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_APPLICABLE_SERV_PACK] FOREIGN KEY ([scaned_product_id]) REFERENCES [dbo].[APM_SCANNED_PRODUCTS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APM_APPLICABLE_SERV_PACK]...';


GO
ALTER TABLE [dbo].[APM_APPLICABLE_SERV_PACK] WITH NOCHECK
    ADD CONSTRAINT [FK02_APM_APPLICABLE_SERV_PACK] FOREIGN KEY ([service_pack_id]) REFERENCES [dbo].[APM_SERVICE_PACK_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_APM_APPLICABLE_SERV_PACK]...';


GO
ALTER TABLE [dbo].[APM_APPLICABLE_SERV_PACK] WITH NOCHECK
    ADD CONSTRAINT [FK03_APM_APPLICABLE_SERV_PACK] FOREIGN KEY ([region_id]) REFERENCES [dbo].[APM_REGION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK_APM_CATALOG]...';


GO
ALTER TABLE [dbo].[APM_CATALOG] WITH NOCHECK
    ADD CONSTRAINT [FK_APM_CATALOG] FOREIGN KEY ([document_id]) REFERENCES [dbo].[AFW_DOCUMENT] ([docu_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_DOWNLOAD_DETAIL]...';


GO
ALTER TABLE [dbo].[APM_DOWNLOAD_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_DOWNLOAD_DETAIL] FOREIGN KEY ([language_id]) REFERENCES [dbo].[APM_LANGUAGE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APM_DOWNLOAD_DETAIL]...';


GO
ALTER TABLE [dbo].[APM_DOWNLOAD_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK02_APM_DOWNLOAD_DETAIL] FOREIGN KEY ([patch_detail_id]) REFERENCES [dbo].[APM_PATCH_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_APM_DOWNLOAD_DETAIL]...';


GO
ALTER TABLE [dbo].[APM_DOWNLOAD_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK03_APM_DOWNLOAD_DETAIL] FOREIGN KEY ([service_pack_id]) REFERENCES [dbo].[APM_SERVICE_PACK_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK04_APM_DOWNLOAD_DETAIL]...';


GO
ALTER TABLE [dbo].[APM_DOWNLOAD_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK04_APM_DOWNLOAD_DETAIL] FOREIGN KEY ([download_status_id]) REFERENCES [dbo].[APM_DOWNLOAD_STATUS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_PATCH_CATEGORY]...';


GO
ALTER TABLE [dbo].[APM_PATCH_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_PATCH_CATEGORY] FOREIGN KEY ([patch_id]) REFERENCES [dbo].[APM_PATCH] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APM_PATCH_CATEGORY]...';


GO
ALTER TABLE [dbo].[APM_PATCH_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_APM_PATCH_CATEGORY] FOREIGN KEY ([category_id]) REFERENCES [dbo].[APM_CATEGORY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_PATCH_DETAIL]...';


GO
ALTER TABLE [dbo].[APM_PATCH_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_PATCH_DETAIL] FOREIGN KEY ([bulletin_id]) REFERENCES [dbo].[APM_BULLETIN_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APM_PATCH_DETAIL]...';


GO
ALTER TABLE [dbo].[APM_PATCH_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK02_APM_PATCH_DETAIL] FOREIGN KEY ([severity_id]) REFERENCES [dbo].[APM_SEVERITY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_APM_PATCH_DETAIL]...';


GO
ALTER TABLE [dbo].[APM_PATCH_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK03_APM_PATCH_DETAIL] FOREIGN KEY ([patch_type_id]) REFERENCES [dbo].[APM_PATCH_TYPE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_PATCH_DOWNLOAD]...';


GO
ALTER TABLE [dbo].[APM_PATCH_DOWNLOAD] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_PATCH_DOWNLOAD] FOREIGN KEY ([patch_id]) REFERENCES [dbo].[APM_PATCH] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_PATCH_LITE]...';


GO
ALTER TABLE [dbo].[APM_PATCH_LITE] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_PATCH_LITE] FOREIGN KEY ([patch_id]) REFERENCES [dbo].[APM_PATCH] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_PATCH_PRODUCT]...';


GO
ALTER TABLE [dbo].[APM_PATCH_PRODUCT] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_PATCH_PRODUCT] FOREIGN KEY ([patch_id]) REFERENCES [dbo].[APM_PATCH] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APM_PATCH_PRODUCT]...';


GO
ALTER TABLE [dbo].[APM_PATCH_PRODUCT] WITH NOCHECK
    ADD CONSTRAINT [FK02_APM_PATCH_PRODUCT] FOREIGN KEY ([product_id]) REFERENCES [dbo].[APM_PRODUCT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_PRODUCT_PATCH]...';


GO
ALTER TABLE [dbo].[APM_PRODUCT_PATCH] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_PRODUCT_PATCH] FOREIGN KEY ([product_id]) REFERENCES [dbo].[APM_PRODUCT_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APM_PRODUCT_PATCH]...';


GO
ALTER TABLE [dbo].[APM_PRODUCT_PATCH] WITH NOCHECK
    ADD CONSTRAINT [FK02_APM_PRODUCT_PATCH] FOREIGN KEY ([patch_id]) REFERENCES [dbo].[APM_PATCH_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_PRODUCT_SERVICE_PACK]...';


GO
ALTER TABLE [dbo].[APM_PRODUCT_SERVICE_PACK] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_PRODUCT_SERVICE_PACK] FOREIGN KEY ([product_id]) REFERENCES [dbo].[APM_PRODUCT_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APM_PRODUCT_SERVICE_PACK]...';


GO
ALTER TABLE [dbo].[APM_PRODUCT_SERVICE_PACK] WITH NOCHECK
    ADD CONSTRAINT [FK02_APM_PRODUCT_SERVICE_PACK] FOREIGN KEY ([service_pack_id]) REFERENCES [dbo].[APM_SERVICE_PACK_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_REGION]...';


GO
ALTER TABLE [dbo].[APM_REGION] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_REGION] FOREIGN KEY ([language_id]) REFERENCES [dbo].[APM_LANGUAGE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_SCAN_PATCH]...';


GO
ALTER TABLE [dbo].[APM_SCAN_PATCH] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_SCAN_PATCH] FOREIGN KEY ([scan_result_id]) REFERENCES [dbo].[APM_SCAN_RESULT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APM_SCAN_PATCH]...';


GO
ALTER TABLE [dbo].[APM_SCAN_PATCH] WITH NOCHECK
    ADD CONSTRAINT [FK02_APM_SCAN_PATCH] FOREIGN KEY ([patch_id]) REFERENCES [dbo].[APM_PATCH] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_SCAN_RESULT]...';


GO
ALTER TABLE [dbo].[APM_SCAN_RESULT] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_SCAN_RESULT] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_SCANNED_PATCHES]...';


GO
ALTER TABLE [dbo].[APM_SCANNED_PATCHES] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_SCANNED_PATCHES] FOREIGN KEY ([scaned_product_id]) REFERENCES [dbo].[APM_SCANNED_PRODUCTS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APM_SCANNED_PATCHES]...';


GO
ALTER TABLE [dbo].[APM_SCANNED_PATCHES] WITH NOCHECK
    ADD CONSTRAINT [FK02_APM_SCANNED_PATCHES] FOREIGN KEY ([patch_id]) REFERENCES [dbo].[APM_PATCH_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_APM_SCANNED_PATCHES]...';


GO
ALTER TABLE [dbo].[APM_SCANNED_PATCHES] WITH NOCHECK
    ADD CONSTRAINT [FK03_APM_SCANNED_PATCHES] FOREIGN KEY ([region_id]) REFERENCES [dbo].[APM_REGION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_SCANNED_PRODUCTS]...';


GO
ALTER TABLE [dbo].[APM_SCANNED_PRODUCTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_SCANNED_PRODUCTS] FOREIGN KEY ([scan_result_id]) REFERENCES [dbo].[APM_SHAVLIK_SCAN_RESULT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APM_SCANNED_PRODUCTS]...';


GO
ALTER TABLE [dbo].[APM_SCANNED_PRODUCTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_APM_SCANNED_PRODUCTS] FOREIGN KEY ([product_id]) REFERENCES [dbo].[APM_PRODUCT_DETAIL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_SHAVLIK_SCAN_RESULT]...';


GO
ALTER TABLE [dbo].[APM_SHAVLIK_SCAN_RESULT] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_SHAVLIK_SCAN_RESULT] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APM_UPDATE_SETUPPROJECT]...';


GO
ALTER TABLE [dbo].[APM_UPDATE_SETUPPROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_APM_UPDATE_SETUPPROJECT] FOREIGN KEY ([setupproject_id]) REFERENCES [dbo].[ASD_SETUPPROJECT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APR_ACCESS_CONTROL]...';


GO
ALTER TABLE [dbo].[APR_ACCESS_CONTROL] WITH NOCHECK
    ADD CONSTRAINT [FK01_APR_ACCESS_CONTROL] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APR_ACCESS_CONTROL]...';


GO
ALTER TABLE [dbo].[APR_ACCESS_CONTROL] WITH NOCHECK
    ADD CONSTRAINT [FK02_APR_ACCESS_CONTROL] FOREIGN KEY ([domain_id]) REFERENCES [dbo].[APR_DOMAIN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APR_ANSWER]...';


GO
ALTER TABLE [dbo].[APR_ANSWER] WITH NOCHECK
    ADD CONSTRAINT [FK01_APR_ANSWER] FOREIGN KEY ([question_id]) REFERENCES [dbo].[APR_QUESTION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APR_ANSWER]...';


GO
ALTER TABLE [dbo].[APR_ANSWER] WITH NOCHECK
    ADD CONSTRAINT [FK02_APR_ANSWER] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APR_AUDIT]...';


GO
ALTER TABLE [dbo].[APR_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK01_APR_AUDIT] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APR_AUDIT]...';


GO
ALTER TABLE [dbo].[APR_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK02_APR_AUDIT] FOREIGN KEY ([domain_id]) REFERENCES [dbo].[AFW_LDAP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APR_DOMAIN]...';


GO
ALTER TABLE [dbo].[APR_DOMAIN] WITH NOCHECK
    ADD CONSTRAINT [FK01_APR_DOMAIN] FOREIGN KEY ([id]) REFERENCES [dbo].[AFW_LDAP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APR_TEMPLATE]...';


GO
ALTER TABLE [dbo].[APR_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK01_APR_TEMPLATE] FOREIGN KEY ([domain_id]) REFERENCES [dbo].[AFW_LDAP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APR_TOKEN]...';


GO
ALTER TABLE [dbo].[APR_TOKEN] WITH NOCHECK
    ADD CONSTRAINT [FK01_APR_TOKEN] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APR_TOKEN]...';


GO
ALTER TABLE [dbo].[APR_TOKEN] WITH NOCHECK
    ADD CONSTRAINT [FK02_APR_TOKEN] FOREIGN KEY ([domain_id]) REFERENCES [dbo].[APR_DOMAIN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APR_USER]...';


GO
ALTER TABLE [dbo].[APR_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_APR_USER] FOREIGN KEY ([id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APWM_KW_PRICES]...';


GO
ALTER TABLE [dbo].[APWM_KW_PRICES] WITH NOCHECK
    ADD CONSTRAINT [FK01_APWM_KW_PRICES] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AAM_POLICY]...';


GO
ALTER TABLE [dbo].[APWM_POLICY] WITH NOCHECK
    ADD CONSTRAINT [FK01_AAM_POLICY] FOREIGN KEY ([creator_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AAM_POLICY]...';


GO
ALTER TABLE [dbo].[APWM_POLICY] WITH NOCHECK
    ADD CONSTRAINT [FK02_AAM_POLICY] FOREIGN KEY ([editor_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APWM_POLICY_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_APWM_POLICY_ASSIGNMENT] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APWM_POLICY_ASSIGNMENT]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_APWM_POLICY_ASSIGNMENT] FOREIGN KEY ([policy_id]) REFERENCES [dbo].[APWM_POLICY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APWM_POLICY_DAY]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_DAY] WITH NOCHECK
    ADD CONSTRAINT [FK01_APWM_POLICY_DAY] FOREIGN KEY ([policy_inventory_id]) REFERENCES [dbo].[APWM_POLICY_INVENTORY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APWM_POLICY_HOUR]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_HOUR] WITH NOCHECK
    ADD CONSTRAINT [FK01_APWM_POLICY_HOUR] FOREIGN KEY ([policy_day_id]) REFERENCES [dbo].[APWM_POLICY_DAY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APWM_POLICY_INVENTORY]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_INVENTORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_APWM_POLICY_INVENTORY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APWM_POLICY_ITEM]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK01_APWM_POLICY_ITEM] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_APWM_POLICY_ITEM]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK02_APWM_POLICY_ITEM] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_APWM_POLICY_ITEM]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK03_APWM_POLICY_ITEM] FOREIGN KEY ([policy_id]) REFERENCES [dbo].[APWM_POLICY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APWM_POLICY_SOFTWARE]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_SOFTWARE] WITH NOCHECK
    ADD CONSTRAINT [FK01_APWM_POLICY_SOFTWARE] FOREIGN KEY ([policy_inventory_id]) REFERENCES [dbo].[APWM_POLICY_INVENTORY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APWM_POLICY_TYPE]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK01_APWM_POLICY_TYPE] FOREIGN KEY ([policy_id]) REFERENCES [dbo].[APWM_POLICY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_APWM_POLICY_USB]...';


GO
ALTER TABLE [dbo].[APWM_POLICY_USB] WITH NOCHECK
    ADD CONSTRAINT [FK01_APWM_POLICY_USB] FOREIGN KEY ([policy_inventory_id]) REFERENCES [dbo].[APWM_POLICY_INVENTORY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AQM_APPLICATION]...';


GO
ALTER TABLE [dbo].[AQM_APPLICATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AQM_APPLICATION] FOREIGN KEY ([ParentId]) REFERENCES [dbo].[AQM_APPLICATION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AQM_APPLICATION_DATASOURCE]...';


GO
ALTER TABLE [dbo].[AQM_APPLICATION_DATASOURCE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AQM_APPLICATION_DATASOURCE] FOREIGN KEY ([ApplicationId]) REFERENCES [dbo].[AQM_APPLICATION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AQM_APPLICATION_DATASOURCE]...';


GO
ALTER TABLE [dbo].[AQM_APPLICATION_DATASOURCE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AQM_APPLICATION_DATASOURCE] FOREIGN KEY ([DatasourceId]) REFERENCES [dbo].[AQM_DATASOURCE] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AQM_DOCUMENT]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AQM_DOCUMENT] FOREIGN KEY ([DocumentId]) REFERENCES [dbo].[AFW_DOCUMENT] ([docu_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AQM_REPORT_SCHEDULE]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT_SCHEDULE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AQM_REPORT_SCHEDULE] FOREIGN KEY ([DocumentId]) REFERENCES [dbo].[AQM_DOCUMENT] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AQM_REPORT_SCHEDULE]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT_SCHEDULE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AQM_REPORT_SCHEDULE] FOREIGN KEY ([SchedulerId]) REFERENCES [dbo].[AFW_SCHEDULER] ([sche_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AQM_REPORT_SCHEDULE]...';


GO
ALTER TABLE [dbo].[AQM_DOCUMENT_SCHEDULE] WITH NOCHECK
    ADD CONSTRAINT [FK03_AQM_REPORT_SCHEDULE] FOREIGN KEY ([UserId]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AQM_EXPORT_REQUEST]...';


GO
ALTER TABLE [dbo].[AQM_EXPORT_REQUEST] WITH NOCHECK
    ADD CONSTRAINT [FK02_AQM_EXPORT_REQUEST] FOREIGN KEY ([DocumentId]) REFERENCES [dbo].[AQM_DOCUMENT] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_FAVORITE]...';


GO
ALTER TABLE [dbo].[AQM_FAVORITE] WITH NOCHECK
    ADD CONSTRAINT [FK01_FAVORITE] FOREIGN KEY ([UserId]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_FAVORITE]...';


GO
ALTER TABLE [dbo].[AQM_FAVORITE] WITH NOCHECK
    ADD CONSTRAINT [FK02_FAVORITE] FOREIGN KEY ([DocumentId]) REFERENCES [dbo].[AQM_DOCUMENT] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AQM_FOLDER]...';


GO
ALTER TABLE [dbo].[AQM_FOLDER_SETTING] WITH NOCHECK
    ADD CONSTRAINT [FK01_AQM_FOLDER] FOREIGN KEY ([FolderId]) REFERENCES [dbo].[AFW_FOLDER] ([fold_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AQM_FOLDER_SETTING]...';


GO
ALTER TABLE [dbo].[AQM_FOLDER_SETTING] WITH NOCHECK
    ADD CONSTRAINT [FK02_AQM_FOLDER_SETTING] FOREIGN KEY ([ApplicationId]) REFERENCES [dbo].[AQM_APPLICATION] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AQM_REPORT]...';


GO
ALTER TABLE [dbo].[AQM_REPORT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AQM_REPORT] FOREIGN KEY ([repo_folder_id]) REFERENCES [dbo].[AFW_FOLDER] ([fold_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AQM_TRANSLATE]...';


GO
ALTER TABLE [dbo].[AQM_TRANSLATE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AQM_TRANSLATE] FOREIGN KEY ([DocumentId]) REFERENCES [dbo].[AFW_DOCUMENT] ([docu_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AQM_TRANSLATE]...';


GO
ALTER TABLE [dbo].[AQM_TRANSLATE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AQM_TRANSLATE] FOREIGN KEY ([AqmDocumentId]) REFERENCES [dbo].[AQM_DOCUMENT] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_CATEGORY_SETUPPROJECT]...';


GO
ALTER TABLE [dbo].[ASD_CATEGORY_SETUPPROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_CATEGORY_SETUPPROJECT] FOREIGN KEY ([portal_category_id]) REFERENCES [dbo].[ASD_PORTAL_CATEGORY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_CATEGORY_SETUPPROJECT]...';


GO
ALTER TABLE [dbo].[ASD_CATEGORY_SETUPPROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_CATEGORY_SETUPPROJECT] FOREIGN KEY ([setup_project_id]) REFERENCES [dbo].[ASD_SETUPPROJECT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_CATEGORY_USERGROUP]...';


GO
ALTER TABLE [dbo].[ASD_CATEGORY_USERGROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_CATEGORY_USERGROUP] FOREIGN KEY ([portal_category_id]) REFERENCES [dbo].[ASD_PORTAL_CATEGORY] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_CATEGORY_USERGROUP]...';


GO
ALTER TABLE [dbo].[ASD_CATEGORY_USERGROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_CATEGORY_USERGROUP] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_EXEC_NOTIFICATION]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_NOTIFICATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_EXEC_NOTIFICATION] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_EXEC_NOTIFICATION]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_NOTIFICATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_EXEC_NOTIFICATION] FOREIGN KEY ([execution_id]) REFERENCES [dbo].[ASD_EXECUTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_EXEC_PACK_DEVICE_HIST]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_PACK_DEVICE_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_EXEC_PACK_DEVICE_HIST] FOREIGN KEY ([execution_id]) REFERENCES [dbo].[ASD_EXECUTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_EXEC_PACK_DEVICE_HIST]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_PACK_DEVICE_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_EXEC_PACK_DEVICE_HIST] FOREIGN KEY ([package_id]) REFERENCES [dbo].[ASD_PACKAGE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASD_EXEC_PACK_DEVICE_HIST]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_PACK_DEVICE_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASD_EXEC_PACK_DEVICE_HIST] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_EXEC_PACKAGE_DEVICE]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_PACKAGE_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_EXEC_PACKAGE_DEVICE] FOREIGN KEY ([execution_id]) REFERENCES [dbo].[ASD_EXECUTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_EXEC_PACKAGE_DEVICE]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_PACKAGE_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_EXEC_PACKAGE_DEVICE] FOREIGN KEY ([package_id]) REFERENCES [dbo].[ASD_PACKAGE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASD_EXEC_PACKAGE_DEVICE]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_PACKAGE_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASD_EXEC_PACKAGE_DEVICE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_EXEC_TEMPLATE_CRED]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_CRED] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_EXEC_TEMPLATE_CRED] FOREIGN KEY ([setupproject_id]) REFERENCES [dbo].[ASD_SETUPPROJECT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_EXEC_TEMPLATE_CRED]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_CRED] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_EXEC_TEMPLATE_CRED] FOREIGN KEY ([credential_id]) REFERENCES [dbo].[ADM_CREDENTIAL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_EXEC_TEMPLATE_NOTIF]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_NOTIF] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_EXEC_TEMPLATE_NOTIF] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_EXEC_TEMPLATE_NOTIF]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_NOTIF] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_EXEC_TEMPLATE_NOTIF] FOREIGN KEY ([setupproject_id]) REFERENCES [dbo].[ASD_SETUPPROJECT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_EXEC_TEMPLATE_OBJ]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_OBJ] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_EXEC_TEMPLATE_OBJ] FOREIGN KEY ([setupproject_id]) REFERENCES [dbo].[ASD_SETUPPROJECT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_EXEC_TEMPLATE_OBJ]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_OBJ] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_EXEC_TEMPLATE_OBJ] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASD_EXEC_TEMPLATE_OBJ]...';


GO
ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_OBJ] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASD_EXEC_TEMPLATE_OBJ] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_EXECUTION]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_EXECUTION] FOREIGN KEY ([creator_user]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_EXECUTION]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_EXECUTION] FOREIGN KEY ([setupproject_id]) REFERENCES [dbo].[ASD_SETUPPROJECT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASD_EXECUTION]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASD_EXECUTION] FOREIGN KEY ([profile_id]) REFERENCES [dbo].[ADM_AGENT_PROFILE] ([id]) ON DELETE SET NULL;


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASD_EXECUTION]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASD_EXECUTION] FOREIGN KEY ([scheduler_id]) REFERENCES [dbo].[AFW_SCHEDULER] ([sche_id]) ON DELETE SET NULL;


GO
PRINT N'Creating Foreign Key [dbo].[FK_ASD_EXECUTION_CREDENTIAL]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION_CREDENTIAL] WITH NOCHECK
    ADD CONSTRAINT [FK_ASD_EXECUTION_CREDENTIAL] FOREIGN KEY ([execution_id]) REFERENCES [dbo].[ASD_EXECUTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_EXECUTION_DEVICE]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_EXECUTION_DEVICE] FOREIGN KEY ([execution_id]) REFERENCES [dbo].[ASD_EXECUTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_EXECUTION_DEVICE]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION_DEVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_EXECUTION_DEVICE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_EXECUTION_OBJECT]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION_OBJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_EXECUTION_OBJECT] FOREIGN KEY ([execution_id]) REFERENCES [dbo].[ASD_EXECUTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_EXECUTION_OBJECT]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION_OBJECT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_EXECUTION_OBJECT] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASD_EXECUTION_OBJECT]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION_OBJECT] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASD_EXECUTION_OBJECT] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_EXECUTION_PACKAGE]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_EXECUTION_PACKAGE] FOREIGN KEY ([package_id]) REFERENCES [dbo].[ASD_PACKAGE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_EXECUTION_PACKAGE]...';


GO
ALTER TABLE [dbo].[ASD_EXECUTION_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_EXECUTION_PACKAGE] FOREIGN KEY ([execution_id]) REFERENCES [dbo].[ASD_EXECUTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK_ASD_PACKAGE]...';


GO
ALTER TABLE [dbo].[ASD_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK_ASD_PACKAGE] FOREIGN KEY ([document_id]) REFERENCES [dbo].[AFW_DOCUMENT] ([docu_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_SETUPPROJECT]...';


GO
ALTER TABLE [dbo].[ASD_SETUPPROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_SETUPPROJECT] FOREIGN KEY ([creator_user]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_SETUPPROJECT]...';


GO
ALTER TABLE [dbo].[ASD_SETUPPROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_SETUPPROJECT] FOREIGN KEY ([updater_user]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE SET NULL;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASD_SETUPPROJECT_PACKAGE]...';


GO
ALTER TABLE [dbo].[ASD_SETUPPROJECT_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASD_SETUPPROJECT_PACKAGE] FOREIGN KEY ([package_id]) REFERENCES [dbo].[ASD_PACKAGE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASD_SETUPPROJECT_PACKAGE]...';


GO
ALTER TABLE [dbo].[ASD_SETUPPROJECT_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASD_SETUPPROJECT_PACKAGE] FOREIGN KEY ([setupproject_id]) REFERENCES [dbo].[ASD_SETUPPROJECT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ADDITIONAL_FIELD_MODEL]...';


GO
ALTER TABLE [dbo].[ASDC_ADDITIONAL_FIELD_MODEL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ADDITIONAL_FIELD_MODEL] FOREIGN KEY ([DefinitionId]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD_DEFINTION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDC_ADDITIONAL_FIELD_ROLE]...';


GO
ALTER TABLE [dbo].[ASDC_ADDITIONAL_FIELD_ROLE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDC_ADDITIONAL_FIELD_ROLE] FOREIGN KEY ([ConfigId]) REFERENCES [dbo].[AFW_ADDITIONAL_FIELD_CONFIG] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_AGENT_PROJECT]...';


GO
ALTER TABLE [dbo].[ASDK_AGENT_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_AGENT_PROJECT] FOREIGN KEY ([agent_id]) REFERENCES [dbo].[AFW_CHAT_PROJECT_AGENT] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_AGENT_GROUP]...';


GO
ALTER TABLE [dbo].[ASDK_AGENT_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_AGENT_GROUP] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_CATEGORY]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_CATEGORY] FOREIGN KEY ([ctg_parent]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[F01_ASDK_CATEGORY_FIELD]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_FIELD] WITH NOCHECK
    ADD CONSTRAINT [F01_ASDK_CATEGORY_FIELD] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[F02_ASDK_CATEGORY_FIELD]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_FIELD] WITH NOCHECK
    ADD CONSTRAINT [F02_ASDK_CATEGORY_FIELD] FOREIGN KEY ([field_id]) REFERENCES [dbo].[ASMS_FIELDS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[F03_ASDK_CATEGORY_FIELD]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_FIELD] WITH NOCHECK
    ADD CONSTRAINT [F03_ASDK_CATEGORY_FIELD] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_CATEGORY_HIERARCHY]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_HIERARCHY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_CATEGORY_HIERARCHY] FOREIGN KEY ([ctg_index]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_CATEGORY_HIERARCHY]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_HIERARCHY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_CATEGORY_HIERARCHY] FOREIGN KEY ([language_id]) REFERENCES [dbo].[AFW_LANGUAGE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[F01_ASDK_CATEGORY_PROJECT]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [F01_ASDK_CATEGORY_PROJECT] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[F02_ASDK_CATEGORY_PROJECT]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [F02_ASDK_CATEGORY_PROJECT] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[F01_ASDK_CATEGORY_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [F01_ASDK_CATEGORY_SERVICE] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[F02_ASDK_CATEGORY_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [F02_ASDK_CATEGORY_SERVICE] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[F03_ASDK_CATEGORY_TIME]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TIME] WITH NOCHECK
    ADD CONSTRAINT [F03_ASDK_CATEGORY_TIME] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_CATEGORY_TIME]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TIME] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_CATEGORY_TIME] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_CATEGORY_TIME]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TIME] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_CATEGORY_TIME] FOREIGN KEY ([time_id]) REFERENCES [dbo].[ASMS_TIMES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_CATEGORY_TIME_DEFAULT]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TIME_DEFAULT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_CATEGORY_TIME_DEFAULT] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_CATEGORY_TIME_DEFAULT]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TIME_DEFAULT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_CATEGORY_TIME_DEFAULT] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_CATEGORY_TIME_DEFAULT]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TIME_DEFAULT] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_CATEGORY_TIME_DEFAULT] FOREIGN KEY ([time_id]) REFERENCES [dbo].[ASMS_TIMES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_CATEGORY_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_CATEGORY_TYPE] FOREIGN KEY ([caty_category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_CATEGORY_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_CATEGORY_TYPE] FOREIGN KEY ([caty_model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_CATEGORY_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_CATEGORY_TYPE] FOREIGN KEY ([caty_type_rec_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_CATEGORY_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_CATEGORY_TYPE] FOREIGN KEY ([cost_model_id]) REFERENCES [dbo].[ASDK_MODEL_COST_PRICE] ([mod_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASDK_CATEGORY_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASDK_CATEGORY_TYPE] FOREIGN KEY ([script_id]) REFERENCES [dbo].[ASMS_SCRIPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ASDK_CATEGORY_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK06_ASDK_CATEGORY_TYPE] FOREIGN KEY ([caty_service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_EVENT]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_EVENT] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_EVENT]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_EVENT] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_EVENT]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_EVENT] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_EVENT]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_EVENT] FOREIGN KEY ([ci_id]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASDK_EVENT]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASDK_EVENT] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ASDK_EVENT]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK06_ASDK_EVENT] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ASDK_EVENT]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK07_ASDK_EVENT] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ASMS_STATUS_REASON] ([reas_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_EVENT_CI]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_CI] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_EVENT_CI] FOREIGN KEY ([eve_id]) REFERENCES [dbo].[ASDK_EVENT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_EVENT_CI]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_CI] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_EVENT_CI] FOREIGN KEY ([ci_id]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_EVENT_CONDITION]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_CONDITION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_EVENT_CONDITION] FOREIGN KEY ([config_id]) REFERENCES [dbo].[ASDK_EVENT_CONFIG] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_EVENT_CONFIG]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_EVENT_CONFIG] FOREIGN KEY ([schedule_id]) REFERENCES [dbo].[AFW_SCHEDULER] ([sche_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_EVENT_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_EVENT_ITEM] FOREIGN KEY ([eve_id]) REFERENCES [dbo].[ASDK_EVENT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_EVENT_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_EVENT_ITEM] FOREIGN KEY ([ite_id]) REFERENCES [dbo].[ASDK_ITEM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_EVENT_RELATED]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_RELATED] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_EVENT_RELATED] FOREIGN KEY ([eve_father_id]) REFERENCES [dbo].[ASDK_EVENT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_EVENT_RELATED]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_RELATED] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_EVENT_RELATED] FOREIGN KEY ([eve_child_id]) REFERENCES [dbo].[ASDK_EVENT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_EVENT_RELATED]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_RELATED] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_EVENT_RELATED] FOREIGN KEY ([eve_author]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_EVENT_RELATED]...';


GO
ALTER TABLE [dbo].[ASDK_EVENT_RELATED] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_EVENT_RELATED] FOREIGN KEY ([eve_cause]) REFERENCES [dbo].[ASMS_RELATION_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_FILEREPOSITORY]...';


GO
ALTER TABLE [dbo].[ASDK_FILEREPOSITORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_FILEREPOSITORY] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_FILEREPOSITORY]...';


GO
ALTER TABLE [dbo].[ASDK_FILEREPOSITORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_FILEREPOSITORY] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_FILEREPOSITORY]...';


GO
ALTER TABLE [dbo].[ASDK_FILEREPOSITORY] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_FILEREPOSITORY] FOREIGN KEY ([file_id]) REFERENCES [dbo].[AFW_DOCUMENT] ([docu_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_IMPORT_PARTITION]...';


GO
ALTER TABLE [dbo].[ASDK_IMPORT_PARTITION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_IMPORT_PARTITION] FOREIGN KEY ([import_id]) REFERENCES [dbo].[ASDK_IMPORTS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_IMPORTS]...';


GO
ALTER TABLE [dbo].[ASDK_IMPORTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_IMPORTS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_IMPORTS]...';


GO
ALTER TABLE [dbo].[ASDK_IMPORTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_IMPORTS] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_IMPORTS]...';


GO
ALTER TABLE [dbo].[ASDK_IMPORTS] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_IMPORTS] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_ITEM] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_ITEM] FOREIGN KEY ([calendar_sla_id]) REFERENCES [dbo].[ASMS_CALENDAR] ([CALENDAR_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_ITEM] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_ITEM] FOREIGN KEY ([unit_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASDK_ITEM] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK06_ASDK_ITEM] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK07_ASDK_ITEM] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK08_ASDK_ITEM] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ASMS_STATUS_REASON] ([reas_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK09_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK09_ASDK_ITEM] FOREIGN KEY ([company_id]) REFERENCES [dbo].[ASMS_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK10_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK10_ASDK_ITEM] FOREIGN KEY ([provider_id]) REFERENCES [dbo].[ASMS_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK11_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK11_ASDK_ITEM] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK12_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK12_ASDK_ITEM] FOREIGN KEY ([impact_id]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK13_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK13_ASDK_ITEM] FOREIGN KEY ([priority_id]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK14_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK14_ASDK_ITEM] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK15_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK15_ASDK_ITEM] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK16_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK16_ASDK_ITEM] FOREIGN KEY ([uc_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK17_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK17_ASDK_ITEM] FOREIGN KEY ([ola_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK18_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK18_ASDK_ITEM] FOREIGN KEY ([urgency_id]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK19_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK19_ASDK_ITEM] FOREIGN KEY ([ci_id]) REFERENCES [dbo].[CMDB_CI_DW_LAST] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK20_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK20_ASDK_ITEM] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK21_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK21_ASDK_ITEM] FOREIGN KEY ([customer_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK22_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK22_ASDK_ITEM] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK23_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK23_ASDK_ITEM] FOREIGN KEY ([modifier_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK24_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK24_ASDK_ITEM] FOREIGN KEY ([receptor_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK25_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK25_ASDK_ITEM] FOREIGN KEY ([cost_model_id]) REFERENCES [dbo].[ASDK_MODEL_COST_PRICE] ([mod_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK26_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK26_ASDK_ITEM] FOREIGN KEY ([income_center_id]) REFERENCES [dbo].[ASMS_COST_CENTER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK27_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK27_ASDK_ITEM] FOREIGN KEY ([calendar_uc_id]) REFERENCES [dbo].[ASMS_CALENDAR] ([CALENDAR_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK28_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK28_ASDK_ITEM] FOREIGN KEY ([calendar_ola_id]) REFERENCES [dbo].[ASMS_CALENDAR] ([CALENDAR_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK29_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK29_ASDK_ITEM] FOREIGN KEY ([registry_type_id]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK30_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK30_ASDK_ITEM] FOREIGN KEY ([cost_center_id]) REFERENCES [dbo].[ASMS_COST_CENTER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK31_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK31_ASDK_ITEM] FOREIGN KEY ([location_id]) REFERENCES [dbo].[ASMS_LOCATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK32_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK32_ASDK_ITEM] FOREIGN KEY ([contract_id]) REFERENCES [dbo].[ASMS_CONTRACT] ([ContractId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK33_ASDK_ITEM]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK33_ASDK_ITEM] FOREIGN KEY ([applicant_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_ITEM_ACCOUNTING]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_ACCOUNTING] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_ITEM_ACCOUNTING] FOREIGN KEY ([item_id]) REFERENCES [dbo].[ASDK_ITEM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_ITEM_ACCOUNTING]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_ACCOUNTING] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_ITEM_ACCOUNTING] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_ITEM_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_ITEM_ARTICLE] FOREIGN KEY ([article_id]) REFERENCES [dbo].[ASS_ARTICLE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_ITEM_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_ITEM_ARTICLE] FOREIGN KEY ([item_id]) REFERENCES [dbo].[ASDK_ITEM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_ITEM_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_ITEM_ARTICLE] FOREIGN KEY ([relation_type_id]) REFERENCES [dbo].[ASMS_RELATION_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_ITEM_CI]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_CI] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_ITEM_CI] FOREIGN KEY ([item_id]) REFERENCES [dbo].[ASDK_ITEM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_ITEM_CI]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_CI] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_ITEM_CI] FOREIGN KEY ([ci_id]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_ITEM_CI]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_CI] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_ITEM_CI] FOREIGN KEY ([relation_type_id]) REFERENCES [dbo].[ASMS_RELATION_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_ITEM_FOLLOWUP]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_FOLLOWUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_ITEM_FOLLOWUP] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_ITEM_FOLLOWUP]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_FOLLOWUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_ITEM_FOLLOWUP] FOREIGN KEY ([item_id]) REFERENCES [dbo].[ASDK_ITEM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_ITEM_RELATION]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_RELATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_ITEM_RELATION] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_ITEM_RELATION]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_RELATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_ITEM_RELATION] FOREIGN KEY ([relation_type_id]) REFERENCES [dbo].[ASMS_RELATION_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_ITEM_STAGE]...';


GO
ALTER TABLE [dbo].[ASDK_ITEM_STAGE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_ITEM_STAGE] FOREIGN KEY ([item_id]) REFERENCES [dbo].[ASDK_ITEM] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_LDAP_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_LDAP_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_LDAP_SERVICE] FOREIGN KEY ([ldap_id]) REFERENCES [dbo].[AFW_LDAP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_LDAP_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_LDAP_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_LDAP_SERVICE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_LDAP_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_LDAP_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_LDAP_SERVICE] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_MAIL_CONFIG]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_MAIL_CONFIG] FOREIGN KEY ([cnf_script]) REFERENCES [dbo].[ASDK_MAIL_TEMPLATE] ([plte_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_MAIL_CONFIG]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_MAIL_CONFIG] FOREIGN KEY ([cnf_schedule_id]) REFERENCES [dbo].[AFW_SCHEDULER] ([sche_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_MAIL_FILTER]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_FILTER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_MAIL_FILTER] FOREIGN KEY ([cnf_id]) REFERENCES [dbo].[ASDK_MAIL_CONFIG] ([cnf_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_MAIL_LOG]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_LOG] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_MAIL_LOG] FOREIGN KEY ([config_id]) REFERENCES [dbo].[ASDK_MAIL_CONFIG] ([cnf_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_MAIL_TEMPLATE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_MAIL_TEMPLATE] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_MAIL_TEMPLATE] FOREIGN KEY ([customer_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_MAIL_TEMPLATE] FOREIGN KEY ([status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASDK_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASDK_MAIL_TEMPLATE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ASDK_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK06_ASDK_MAIL_TEMPLATE] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ASDK_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK07_ASDK_MAIL_TEMPLATE] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_MATRIX_PRIORITY]...';


GO
ALTER TABLE [dbo].[ASDK_MATRIX_PRIORITY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_MATRIX_PRIORITY] FOREIGN KEY ([mapr_impa_id]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_MATRIX_PRIORITY]...';


GO
ALTER TABLE [dbo].[ASDK_MATRIX_PRIORITY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_MATRIX_PRIORITY] FOREIGN KEY ([mapr_urge_id]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_MATRIX_PRIORITY]...';


GO
ALTER TABLE [dbo].[ASDK_MATRIX_PRIORITY] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_MATRIX_PRIORITY] FOREIGN KEY ([mapr_prio_id]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_MATRIX_PRIORITY]...';


GO
ALTER TABLE [dbo].[ASDK_MATRIX_PRIORITY] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_MATRIX_PRIORITY] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASDK_MATRIX_PRIORITY]...';


GO
ALTER TABLE [dbo].[ASDK_MATRIX_PRIORITY] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASDK_MATRIX_PRIORITY] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_METRICS]...';


GO
ALTER TABLE [dbo].[ASDK_METRICS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_METRICS] FOREIGN KEY ([schedule_id]) REFERENCES [dbo].[AFW_SCHEDULER] ([sche_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_METRICS_DATA]...';


GO
ALTER TABLE [dbo].[ASDK_METRICS_DATA] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_METRICS_DATA] FOREIGN KEY ([METRIC_ID]) REFERENCES [dbo].[ASDK_METRICS] ([METRIC_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_METRICS_DATA]...';


GO
ALTER TABLE [dbo].[ASDK_METRICS_DATA] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_METRICS_DATA] FOREIGN KEY ([SERVICE_ID]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_MODEL_COST_PRICE]...';


GO
ALTER TABLE [dbo].[ASDK_MODEL_COST_PRICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_MODEL_COST_PRICE] FOREIGN KEY ([proyect_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_MODEL_VARI]...';


GO
ALTER TABLE [dbo].[ASDK_MODEL_VARI] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_MODEL_VARI] FOREIGN KEY ([mod_id]) REFERENCES [dbo].[ASDK_MODEL_COST_PRICE] ([mod_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_PRODUCT_RESOURCE]...';


GO
ALTER TABLE [dbo].[ASDK_PRODUCT_RESOURCE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_PRODUCT_RESOURCE] FOREIGN KEY ([resource_id]) REFERENCES [dbo].[ASDK_RESOURCE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_PRODUCT_RESOURCE]...';


GO
ALTER TABLE [dbo].[ASDK_PRODUCT_RESOURCE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_PRODUCT_RESOURCE] FOREIGN KEY ([product_id]) REFERENCES [dbo].[ASDK_PRODUCT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_PRODUCT_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_PRODUCT_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_PRODUCT_SERVICE] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_PRODUCT_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_PRODUCT_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_PRODUCT_SERVICE] FOREIGN KEY ([product_id]) REFERENCES [dbo].[ASDK_PRODUCT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_PROJECT_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_PROJECT_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_PROJECT_SERVICE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_PROJECT_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_PROJECT_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_PROJECT_SERVICE] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_RESOURCE]...';


GO
ALTER TABLE [dbo].[ASDK_RESOURCE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_RESOURCE] FOREIGN KEY ([type_resource]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SCHEDULED_ACTION]...';


GO
ALTER TABLE [dbo].[ASDK_SCHEDULED_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SCHEDULED_ACTION] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SCHEDULED_ACTION]...';


GO
ALTER TABLE [dbo].[ASDK_SCHEDULED_ACTION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SCHEDULED_ACTION] FOREIGN KEY ([template_id]) REFERENCES [dbo].[ASDK_TEMPLATES] ([FL_INT_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SCHEDULED_STATUS]...';


GO
ALTER TABLE [dbo].[ASDK_SCHEDULED_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SCHEDULED_STATUS] FOREIGN KEY ([item_id]) REFERENCES [dbo].[ASDK_ITEM] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SCHEDULED_STATUS]...';


GO
ALTER TABLE [dbo].[ASDK_SCHEDULED_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SCHEDULED_STATUS] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SERVICE] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SERVICE] FOREIGN KEY ([impact_id]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SERVICE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK06_ASDK_SERVICE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK07_ASDK_SERVICE] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK08_ASDK_SERVICE] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK09_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK09_ASDK_SERVICE] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK10_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK10_ASDK_SERVICE] FOREIGN KEY ([uc_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK11_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK11_ASDK_SERVICE] FOREIGN KEY ([ola_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK12_ASDK_SERVICE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE] WITH NOCHECK
    ADD CONSTRAINT [FK12_ASDK_SERVICE] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ASMS_STATUS_REASON] ([reas_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SERVICE_ACCOUNTING]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_ACCOUNTING] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SERVICE_ACCOUNTING] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SERVICE_ACCOUNTING]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_ACCOUNTING] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SERVICE_ACCOUNTING] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SERVICE_ACCOUNTING_DETAIL]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_ACCOUNTING_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SERVICE_ACCOUNTING_DETAIL] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SERVICE_ACCOUNTING_DETAIL]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_ACCOUNTING_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SERVICE_ACCOUNTING_DETAIL] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SERVICE_BAG]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_BAG] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SERVICE_BAG] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SERVICE_BAG]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_BAG] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SERVICE_BAG] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SERVICE_BPROCESS]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_BPROCESS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SERVICE_BPROCESS] FOREIGN KEY ([bprocess_id]) REFERENCES [dbo].[ASMS_BPROCESS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SERVICE_BPROCESS]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_BPROCESS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SERVICE_BPROCESS] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SERVICE_BPROCESS]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_BPROCESS] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SERVICE_BPROCESS] FOREIGN KEY ([relation_type_id]) REFERENCES [dbo].[ASMS_RELATION_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_SERVICE_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK01_SERVICE_CONTRACT] FOREIGN KEY ([serv_ident_contrac]) REFERENCES [dbo].[ASMS_CONTRACT] ([ContractId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_SERVICE_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK02_SERVICE_CONTRACT] FOREIGN KEY ([serv_ident_service]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SERVICE_GROUP]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SERVICE_GROUP] FOREIGN KEY ([GRP_ID]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SERVICE_GROUP]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SERVICE_GROUP] FOREIGN KEY ([FL_INT_SERVICE_ID]) REFERENCES [dbo].[ASDK_SERVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SERVICE_GROUP]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SERVICE_GROUP] FOREIGN KEY ([profile_id]) REFERENCES [dbo].[ASMS_MODELPROFILES] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SERVICE_SELF]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_SELF] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SERVICE_SELF] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SERVICE_SELF]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_SELF] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SERVICE_SELF] FOREIGN KEY ([child_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SERVICE_SELF]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_SELF] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SERVICE_SELF] FOREIGN KEY ([relation_type_id]) REFERENCES [dbo].[ASMS_RELATION_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_SERVICE_SELF]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_SELF] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_SERVICE_SELF] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SERVICE_STAGE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_STAGE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SERVICE_STAGE] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SERVICE_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SERVICE_TYPE] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SERVICE_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SERVICE_TYPE] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SERVICE_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SERVICE_TYPE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_SERVICE_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_SERVICE_TYPE] FOREIGN KEY ([cost_model_id]) REFERENCES [dbo].[ASDK_MODEL_COST_PRICE] ([mod_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASDK_SERVICE_TYPE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICE_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASDK_SERVICE_TYPE] FOREIGN KEY ([script_id]) REFERENCES [dbo].[ASMS_SCRIPT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SERVICEPROFILE_SPE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICEPROFILE_SPECIALIST] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SERVICEPROFILE_SPE] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SERVICEPROFILE_SPE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICEPROFILE_SPECIALIST] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SERVICEPROFILE_SPE] FOREIGN KEY ([profile_id]) REFERENCES [dbo].[ASMS_MODELPROFILES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SERVICEPROFILE_SPE]...';


GO
ALTER TABLE [dbo].[ASDK_SERVICEPROFILE_SPECIALIST] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SERVICEPROFILE_SPE] FOREIGN KEY ([specialist_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SHOPPING_CART]...';


GO
ALTER TABLE [dbo].[ASDK_SHOPPING_CART] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SHOPPING_CART] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SHOPPING_CART]...';


GO
ALTER TABLE [dbo].[ASDK_SHOPPING_CART] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SHOPPING_CART] FOREIGN KEY ([item_id]) REFERENCES [dbo].[ASDK_ITEM_DW_LAST_OLD] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SHOPPING_CART]...';


GO
ALTER TABLE [dbo].[ASDK_SHOPPING_CART] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SHOPPING_CART] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_SHOPPING_CART]...';


GO
ALTER TABLE [dbo].[ASDK_SHOPPING_CART] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_SHOPPING_CART] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASDK_SHOPPING_CART]...';


GO
ALTER TABLE [dbo].[ASDK_SHOPPING_CART] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASDK_SHOPPING_CART] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SLA] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SLA] FOREIGN KEY ([finish_template_id]) REFERENCES [dbo].[ASMS_MAIL_TEMPLATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SLA] FOREIGN KEY ([FL_INT_SLASTATE]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_SLA] FOREIGN KEY ([review_template_id]) REFERENCES [dbo].[ASMS_MAIL_TEMPLATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASDK_SLA] FOREIGN KEY ([calendar_id]) REFERENCES [dbo].[ASMS_CALENDAR] ([CALENDAR_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ASDK_SLA]...';


GO
ALTER TABLE [dbo].[ASDK_SLA] WITH NOCHECK
    ADD CONSTRAINT [FK06_ASDK_SLA] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ASMS_STATUS_REASON] ([reas_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SLA_CATEGORY]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SLA_CATEGORY] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SLA_CATEGORY]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SLA_CATEGORY] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SLA_CATEGORY]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SLA_CATEGORY] FOREIGN KEY ([ser_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SLA_CI]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CI] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SLA_CI] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SLA_CI]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CI] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SLA_CI] FOREIGN KEY ([ci_id]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SLA_CI]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CI] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SLA_CI] FOREIGN KEY ([ser_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SLA_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SLA_CONTRACT] FOREIGN KEY ([slco_sla_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SLA_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SLA_CONTRACT] FOREIGN KEY ([slco_contract_id]) REFERENCES [dbo].[ASMS_CONTRACT] ([ContractId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SLA_GROUP]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SLA_GROUP] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SLA_GROUP]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SLA_GROUP] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SLA_GROUP]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SLA_GROUP] FOREIGN KEY ([ser_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SLA_LOCATION]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SLA_LOCATION] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SLA_LOCATION]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SLA_LOCATION] FOREIGN KEY ([location_id]) REFERENCES [dbo].[ASMS_LOCATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SLA_LOCATION]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SLA_LOCATION] FOREIGN KEY ([ser_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SLA_METRICS]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_METRICS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SLA_METRICS] FOREIGN KEY ([SLA_ID]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SLA_METRICS]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_METRICS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SLA_METRICS] FOREIGN KEY ([METRIC_ID]) REFERENCES [dbo].[ASDK_METRICS] ([METRIC_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SLA_TIMES]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SLA_TIMES] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SLA_TIMES]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SLA_TIMES] FOREIGN KEY ([time_id]) REFERENCES [dbo].[ASMS_TIMES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SLA_USER]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SLA_USER] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SLA_USER]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_USER] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SLA_USER] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SLA_USER]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_USER] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SLA_USER] FOREIGN KEY ([ser_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_SLA_VENDOR]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_VENDOR] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_SLA_VENDOR] FOREIGN KEY ([sla_id]) REFERENCES [dbo].[ASDK_SLA] ([SLA_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_SLA_VENDOR]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_VENDOR] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_SLA_VENDOR] FOREIGN KEY ([company_id]) REFERENCES [dbo].[ASMS_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_SLA_VENDOR]...';


GO
ALTER TABLE [dbo].[ASDK_SLA_VENDOR] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_SLA_VENDOR] FOREIGN KEY ([ser_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_TEMPLATES]...';


GO
ALTER TABLE [dbo].[ASDK_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_TEMPLATES] FOREIGN KEY ([FL_INT_USER_ID]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_TEMPLATES]...';


GO
ALTER TABLE [dbo].[ASDK_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_TEMPLATES] FOREIGN KEY ([FL_INT_TYPE_CASE_ID]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_TEMPLATES]...';


GO
ALTER TABLE [dbo].[ASDK_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_TEMPLATES] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_TEMPLATES]...';


GO
ALTER TABLE [dbo].[ASDK_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_TEMPLATES] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASDK_TEMPLATES]...';


GO
ALTER TABLE [dbo].[ASDK_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASDK_TEMPLATES] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASDK_CATEGORY] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_VIEW]...';


GO
ALTER TABLE [dbo].[ASDK_VIEW] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_VIEW] FOREIGN KEY ([fevi_appli_category]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASDK_VIEW]...';


GO
ALTER TABLE [dbo].[ASDK_VIEW] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASDK_VIEW] FOREIGN KEY ([fevi_project]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASDK_VIEW]...';


GO
ALTER TABLE [dbo].[ASDK_VIEW] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASDK_VIEW] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_VIEW_SELECT]...';


GO
ALTER TABLE [dbo].[ASDK_VIEW_SELECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_VIEW_SELECT] FOREIGN KEY ([fese_frontend_view]) REFERENCES [dbo].[ASDK_VIEW] ([fevi_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASDK_VIEW_WHERE]...';


GO
ALTER TABLE [dbo].[ASDK_VIEW_WHERE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASDK_VIEW_WHERE] FOREIGN KEY ([fewh_frontend_view]) REFERENCES [dbo].[ASDK_VIEW] ([fevi_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASDK_VIEW_WHERE]...';


GO
ALTER TABLE [dbo].[ASDK_VIEW_WHERE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASDK_VIEW_WHERE] FOREIGN KEY ([fewh_operator_id]) REFERENCES [dbo].[ASMS_INTERFACE_OPERATORS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_DEVICE_USAGE_DAY]...';


GO
ALTER TABLE [dbo].[ASM_DEVICE_USAGE_DAY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_DEVICE_USAGE_DAY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_DEVICE_USAGE_DAY]...';


GO
ALTER TABLE [dbo].[ASM_DEVICE_USAGE_DAY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_DEVICE_USAGE_DAY] FOREIGN KEY ([date_id]) REFERENCES [dbo].[AFW_DIM_DATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_FILE_GROUP]...';


GO
ALTER TABLE [dbo].[ASM_FILE_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_FILE_GROUP] FOREIGN KEY ([file_rule_id]) REFERENCES [dbo].[ASM_FILE_RULE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_FILE_GROUP]...';


GO
ALTER TABLE [dbo].[ASM_FILE_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_FILE_GROUP] FOREIGN KEY ([file_version_id]) REFERENCES [dbo].[AAM_FILE_VERSION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_FILE_RULE]...';


GO
ALTER TABLE [dbo].[ASM_FILE_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_FILE_RULE] FOREIGN KEY ([software_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_LICENSE_ASSIGMENT]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_LICENSE_ASSIGMENT] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_LICENSE_ASSIGMENT]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_ASSIGNMENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_LICENSE_ASSIGMENT] FOREIGN KEY ([license_id]) REFERENCES [dbo].[ASM_LICENSE_PACKAGE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_LICENSE_PACKAGE]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_LICENSE_PACKAGE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASM_LICENSE_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_LICENSE_PACKAGE]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_LICENSE_PACKAGE] FOREIGN KEY ([invoice_id]) REFERENCES [dbo].[AFW_DOCUMENT] ([docu_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASM_LICENSE_PACKAGE]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASM_LICENSE_PACKAGE] FOREIGN KEY ([file_id]) REFERENCES [dbo].[AFW_DOCUMENT] ([docu_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASM_LICENSE_PACKAGE]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASM_LICENSE_PACKAGE] FOREIGN KEY ([license_package_id]) REFERENCES [dbo].[ASM_LICENSING] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_LICENSE_PACKAGE_EVENT]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_LICENSE_PACKAGE_EVENT] FOREIGN KEY ([license_package_id]) REFERENCES [dbo].[ASM_LICENSE_PACKAGE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_LICENSE_PACKAGE_EVENT]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_LICENSE_PACKAGE_EVENT] FOREIGN KEY ([licensing_id]) REFERENCES [dbo].[ASM_LICENSING] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASM_LICENSE_PACKAGE_EVENT]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASM_LICENSE_PACKAGE_EVENT] FOREIGN KEY ([licensing_event_id]) REFERENCES [dbo].[ASM_LICENSING_EVENT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_LICENSE_SERIAL]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_SERIAL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_LICENSE_SERIAL] FOREIGN KEY ([license_id]) REFERENCES [dbo].[ASM_LICENSE_PACKAGE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_LICENSE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_SOFTWARE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_LICENSE_SOFTWARE] FOREIGN KEY ([software_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_LICENSE_SOFTWARE]...';


GO
ALTER TABLE [dbo].[ASM_LICENSE_SOFTWARE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_LICENSE_SOFTWARE] FOREIGN KEY ([license_package_id]) REFERENCES [dbo].[ASM_LICENSING] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_LICENSING]...';


GO
ALTER TABLE [dbo].[ASM_LICENSING] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_LICENSING] FOREIGN KEY ([user_creator]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_LICENSING]...';


GO
ALTER TABLE [dbo].[ASM_LICENSING] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_LICENSING] FOREIGN KEY ([user_modifier]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE SET NULL;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_LICENSING_EVENT]...';


GO
ALTER TABLE [dbo].[ASM_LICENSING_EVENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_LICENSING_EVENT] FOREIGN KEY ([licensing_id]) REFERENCES [dbo].[ASM_LICENSING] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_SOFT_USAGE_CONFIG_LIST]...';


GO
ALTER TABLE [dbo].[ASM_SOFT_USAGE_CONFIG_LIST] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_SOFT_USAGE_CONFIG_LIST] FOREIGN KEY ([software_version_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_SOFT_USAGE_CONFIG_LIST]...';


GO
ALTER TABLE [dbo].[ASM_SOFT_USAGE_CONFIG_LIST] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_SOFT_USAGE_CONFIG_LIST] FOREIGN KEY ([software_usage_config_id]) REFERENCES [dbo].[ASM_SOFTWARE_USAGE_CONFIG] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_CATALOG_CATEGORY]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_CATALOG_CATEGORY] FOREIGN KEY ([software_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_CATALOG_CATEGORY]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_CATALOG_CATEGORY] FOREIGN KEY ([category_id]) REFERENCES [dbo].[AFW_APPLICATION_CATEGORY] ([apca_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_SOFTWARE_FILE_SUGGES]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_FILE_SUGGES] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_SOFTWARE_FILE_SUGGES] FOREIGN KEY ([software_version_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_SOFTWARE_FILE_SUGGES]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_FILE_SUGGES] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_SOFTWARE_FILE_SUGGES] FOREIGN KEY ([file_version_id]) REFERENCES [dbo].[AAM_FILE_VERSION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_SOFTWARE_GROUP]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_SOFTWARE_GROUP] FOREIGN KEY ([software_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_SOFTWARE_GROUP]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_SOFTWARE_GROUP] FOREIGN KEY ([software_rule_id]) REFERENCES [dbo].[ASM_SOFTWARE_RULE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_SOFTWARE_RULE]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_RULE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_SOFTWARE_RULE] FOREIGN KEY ([software_id]) REFERENCES [dbo].[AAM_SOFTWARE_VERSION] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_SOFTWARE_USAGE]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_SOFTWARE_USAGE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_SOFTWARE_USAGE]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_SOFTWARE_USAGE] FOREIGN KEY ([file_id]) REFERENCES [dbo].[AAM_FILE_VERSION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASM_SOFTWARE_USAGE]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASM_SOFTWARE_USAGE] FOREIGN KEY ([logon_user_id]) REFERENCES [dbo].[AAM_LOCAL_USER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_SOFTWARE_USAGE_CONFIG]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_SOFTWARE_USAGE_CONFIG] FOREIGN KEY ([profile_id]) REFERENCES [dbo].[ADM_AGENT_PROFILE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_SOFTWARE_USAGE_DAY]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_SOFTWARE_USAGE_DAY] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_SOFTWARE_USAGE_DAY]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_SOFTWARE_USAGE_DAY] FOREIGN KEY ([file_id]) REFERENCES [dbo].[AAM_FILE_VERSION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASM_SOFTWARE_USAGE_DAY]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASM_SOFTWARE_USAGE_DAY] FOREIGN KEY ([logon_user_id]) REFERENCES [dbo].[AAM_LOCAL_USER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASM_SOFTWARE_USAGE_DAY]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASM_SOFTWARE_USAGE_DAY] FOREIGN KEY ([date_id]) REFERENCES [dbo].[ADW_DIM_DATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_SOFTWARE_USAGE_DETAIL]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_SOFTWARE_USAGE_DETAIL] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_SOFTWARE_USAGE_DETAIL]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_SOFTWARE_USAGE_DETAIL] FOREIGN KEY ([file_id]) REFERENCES [dbo].[AAM_FILE_VERSION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASM_SOFTWARE_USAGE_DETAIL]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASM_SOFTWARE_USAGE_DETAIL] FOREIGN KEY ([logon_user_id]) REFERENCES [dbo].[AAM_LOCAL_USER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASM_SOFTWARE_USAGE_DETAIL]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASM_SOFTWARE_USAGE_DETAIL] FOREIGN KEY ([date_id]) REFERENCES [dbo].[ADW_DIM_DATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASM_SOFTWARE_USAGE_DETAIL]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASM_SOFTWARE_USAGE_DETAIL] FOREIGN KEY ([window_info_id]) REFERENCES [dbo].[ASM_WINDOW_INFORMATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASM_SOFTWARE_USAGE_MONTH]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_MONTH] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASM_SOFTWARE_USAGE_MONTH] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AAM_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASM_SOFTWARE_USAGE_MONTH]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_MONTH] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASM_SOFTWARE_USAGE_MONTH] FOREIGN KEY ([file_id]) REFERENCES [dbo].[AAM_FILE_VERSION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASM_SOFTWARE_USAGE_MONTH]...';


GO
ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_MONTH] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASM_SOFTWARE_USAGE_MONTH] FOREIGN KEY ([logon_user_id]) REFERENCES [dbo].[AAM_LOCAL_USER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_ADVANCED_SHIFTS]...';


GO
ALTER TABLE [dbo].[ASMS_ADVANCED_SHIFTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_ADVANCED_SHIFTS] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_ADVANCED_SHIFTS]...';


GO
ALTER TABLE [dbo].[ASMS_ADVANCED_SHIFTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_ADVANCED_SHIFTS] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_APPROVALS] FOREIGN KEY ([status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_APPROVALS] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_APPROVALS] FOREIGN KEY ([approved_status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_APPROVALS] FOREIGN KEY ([refused_status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASMS_APPROVALS] FOREIGN KEY ([approved_reason_id]) REFERENCES [dbo].[ASMS_STATUS_REASON] ([reas_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK06_ASMS_APPROVALS] FOREIGN KEY ([refused_reason_id]) REFERENCES [dbo].[ASMS_STATUS_REASON] ([reas_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK07_ASMS_APPROVALS] FOREIGN KEY ([more_reason_id]) REFERENCES [dbo].[ASMS_STATUS_REASON] ([reas_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK08_ASMS_APPROVALS] FOREIGN KEY ([more_status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK09_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK09_ASMS_APPROVALS] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK10_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK10_ASMS_APPROVALS] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK11_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK11_ASMS_APPROVALS] FOREIGN KEY ([template_id]) REFERENCES [dbo].[ASMS_MAIL_TEMPLATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK12_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK12_ASMS_APPROVALS] FOREIGN KEY ([server_id]) REFERENCES [dbo].[AFW_MAIL_ACCOUNT] ([maac_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK13_ASMS_APPROVALS]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS] WITH NOCHECK
    ADD CONSTRAINT [FK13_ASMS_APPROVALS] FOREIGN KEY ([schedule_id]) REFERENCES [dbo].[AFW_SCHEDULER] ([sche_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_APPROVALS_DATA]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_DATA] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_APPROVALS_DATA] FOREIGN KEY ([process_id]) REFERENCES [dbo].[ASMS_APPROVALS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_APPROVALS_DETAIL]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_APPROVALS_DETAIL] FOREIGN KEY ([result_id]) REFERENCES [dbo].[ASMS_APPROVALS_DATA] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_APPROVALS_DETAIL]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_APPROVALS_DETAIL] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_APPROVALS_DETAIL]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_APPROVALS_DETAIL] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_APPROVALS_DETAIL]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_APPROVALS_DETAIL] FOREIGN KEY ([user_id_optional]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASMS_APPROVALS_DETAIL]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASMS_APPROVALS_DETAIL] FOREIGN KEY ([added_by]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_APPROVALS_GROUP]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_APPROVALS_GROUP] FOREIGN KEY ([process_id]) REFERENCES [dbo].[ASMS_APPROVALS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_APPROVALS_GROUP]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_APPROVALS_GROUP] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_APPROVALS_PROFILES]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_PROFILES] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_APPROVALS_PROFILES] FOREIGN KEY ([approval_id]) REFERENCES [dbo].[ASMS_APPROVALS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_APPROVALS_PROFILES]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_PROFILES] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_APPROVALS_PROFILES] FOREIGN KEY ([profile_id]) REFERENCES [dbo].[ASMS_MODELPROFILES] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_BANNER]...';


GO
ALTER TABLE [dbo].[ASMS_BANNER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_BANNER] FOREIGN KEY ([FL_INT_PROJECT_ID]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_PROCESS_INSTANCE]...';


GO
ALTER TABLE [dbo].[ASMS_BPROCESS_INSTANCE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_PROCESS_INSTANCE] FOREIGN KEY ([process_id]) REFERENCES [dbo].[ASMS_BPROCESS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_PROCESS_INSTANCE]...';


GO
ALTER TABLE [dbo].[ASMS_BPROCESS_INSTANCE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_PROCESS_INSTANCE] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_BPROCESS_PROJECT]...';


GO
ALTER TABLE [dbo].[ASMS_BPROCESS_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_BPROCESS_PROJECT] FOREIGN KEY ([bprocess_id]) REFERENCES [dbo].[ASMS_BPROCESS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_BPROCESS_PROJECT]...';


GO
ALTER TABLE [dbo].[ASMS_BPROCESS_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_BPROCESS_PROJECT] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_BRAND_CONSOLE]...';


GO
ALTER TABLE [dbo].[ASMS_BRAND_CONSOLE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_BRAND_CONSOLE] FOREIGN KEY ([brand_id]) REFERENCES [dbo].[ASMS_BRAND] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_CALENDAR_DAYS]...';


GO
ALTER TABLE [dbo].[ASMS_CALENDAR_DAYS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_CALENDAR_DAYS] FOREIGN KEY ([CALENDAR_ID]) REFERENCES [dbo].[ASMS_CALENDAR] ([CALENDAR_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_CALENDAR_HOURS]...';


GO
ALTER TABLE [dbo].[ASMS_CALENDAR_HOURS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_CALENDAR_HOURS] FOREIGN KEY ([cale_id]) REFERENCES [dbo].[ASMS_CALENDAR] ([CALENDAR_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_CATEGORY_RELATION]...';


GO
ALTER TABLE [dbo].[ASMS_CATEGORY_RELATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_CATEGORY_RELATION] FOREIGN KEY ([relation_id]) REFERENCES [dbo].[ASMS_RELATION_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_CATEGORY_RELATION]...';


GO
ALTER TABLE [dbo].[ASMS_CATEGORY_RELATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_CATEGORY_RELATION] FOREIGN KEY ([source_category_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_CATEGORY_RELATION]...';


GO
ALTER TABLE [dbo].[ASMS_CATEGORY_RELATION] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_CATEGORY_RELATION] FOREIGN KEY ([target_category_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_CHANGE_SET]...';


GO
ALTER TABLE [dbo].[ASMS_CHANGE_SET] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_CHANGE_SET] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_CHANGE_SET_IMPORT]...';


GO
ALTER TABLE [dbo].[ASMS_CHANGE_SET_IMPORT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_CHANGE_SET_IMPORT] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_CHANGE_SET_OPERATION]...';


GO
ALTER TABLE [dbo].[ASMS_CHANGE_SET_OPERATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_CHANGE_SET_OPERATION] FOREIGN KEY ([change_set_id]) REFERENCES [dbo].[ASMS_CHANGE_SET] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_COMPANY]...';


GO
ALTER TABLE [dbo].[ASMS_COMPANY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_COMPANY] FOREIGN KEY ([CountryId]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_COMPANY]...';


GO
ALTER TABLE [dbo].[ASMS_COMPANY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_COMPANY] FOREIGN KEY ([CityId]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_COMPANY]...';


GO
ALTER TABLE [dbo].[ASMS_COMPANY] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_COMPANY] FOREIGN KEY ([CreatedBy]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_COMPANY]...';


GO
ALTER TABLE [dbo].[ASMS_COMPANY] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_COMPANY] FOREIGN KEY ([ModifiedBy]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASMS_COMPANY]...';


GO
ALTER TABLE [dbo].[ASMS_COMPANY] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASMS_COMPANY] FOREIGN KEY ([LocationId]) REFERENCES [dbo].[ASMS_LOCATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_CONCURRENCY]...';


GO
ALTER TABLE [dbo].[ASMS_CONCURRENCY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_CONCURRENCY] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USER_SESSION_TOKEN] ([id]) ON DELETE CASCADE ON UPDATE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_CONCURRENCY]...';


GO
ALTER TABLE [dbo].[ASMS_CONCURRENCY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_CONCURRENCY] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_CONTRACT] FOREIGN KEY ([VENDORID]) REFERENCES [dbo].[ASMS_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_CONTRACT] FOREIGN KEY ([FL_INT_USER_ID]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_CONTRACT] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASMS_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASMS_CONTRACT] FOREIGN KEY ([template_id]) REFERENCES [dbo].[ASMS_MAIL_TEMPLATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ASMS_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK06_ASMS_CONTRACT] FOREIGN KEY ([vendor_id_contract]) REFERENCES [dbo].[ASMS_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ASMS_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK07_ASMS_CONTRACT] FOREIGN KEY ([area_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ASMS_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK08_ASMS_CONTRACT] FOREIGN KEY ([area_id_contract]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_CONTRACT_SELF]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT_SELF] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_CONTRACT_SELF] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[ASMS_CONTRACT] ([ContractId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_CONTRACT_SELF]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT_SELF] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_CONTRACT_SELF] FOREIGN KEY ([child_id]) REFERENCES [dbo].[ASMS_CONTRACT] ([ContractId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_COST]...';


GO
ALTER TABLE [dbo].[ASMS_COST] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_COST] FOREIGN KEY ([cost_center_id]) REFERENCES [dbo].[ASMS_COST_CENTER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_COST]...';


GO
ALTER TABLE [dbo].[ASMS_COST] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_COST] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[ASMS_COST] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_COST]...';


GO
ALTER TABLE [dbo].[ASMS_COST] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_COST] FOREIGN KEY ([parent_type]) REFERENCES [dbo].[ASMS_COST_CENTER_CONTRACT] ([FL_INT_COSTCENTER_SUPPORT_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_COST_CENTER]...';


GO
ALTER TABLE [dbo].[ASMS_COST_CENTER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_COST_CENTER] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[ASMS_COST_CENTER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_COST_CENTER_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_COST_CENTER_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_COST_CENTER_CONTRACT] FOREIGN KEY ([FL_STR_COSTCENTER_ID]) REFERENCES [dbo].[ASMS_COST_CENTER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_COST_CENTER_PROJECT]...';


GO
ALTER TABLE [dbo].[ASMS_COST_CENTER_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_COST_CENTER_PROJECT] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_COST_CENTER_PROJECT]...';


GO
ALTER TABLE [dbo].[ASMS_COST_CENTER_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_COST_CENTER_PROJECT] FOREIGN KEY ([cost_id]) REFERENCES [dbo].[ASMS_COST_CENTER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_DISPLAY]...';


GO
ALTER TABLE [dbo].[ASMS_DISPLAY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_DISPLAY] FOREIGN KEY ([application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_EXECUTE_CONDITION]...';


GO
ALTER TABLE [dbo].[ASMS_EXECUTE_CONDITION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_EXECUTE_CONDITION] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FIELDS] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FIELDS] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_FIELDS] FOREIGN KEY ([builtin_id]) REFERENCES [dbo].[ASMS_FIELDS_BUILTIN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_FIELDS] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASMS_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASMS_FIELDS] FOREIGN KEY ([datasource_id]) REFERENCES [dbo].[ASMS_FIELDS_DATASOURCE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FIELDS_BUILTIN]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_BUILTIN] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FIELDS_BUILTIN] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FIELDS_DATA]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DATA] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FIELDS_DATA] FOREIGN KEY ([field_id]) REFERENCES [dbo].[ASMS_FIELDS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FIELDS_DATA]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DATA] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FIELDS_DATA] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FIELDS_DEPENDENTS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DEPENDENTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FIELDS_DEPENDENTS] FOREIGN KEY ([source_id]) REFERENCES [dbo].[ASMS_FIELDS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FIELDS_DEPENDENTS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DEPENDENTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FIELDS_DEPENDENTS] FOREIGN KEY ([target_id]) REFERENCES [dbo].[ASMS_FIELDS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FIELDS_DEPENDENTS_VALUES]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_DEPENDENTS_VALUES] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FIELDS_DEPENDENTS_VALUES] FOREIGN KEY ([dependent_id]) REFERENCES [dbo].[ASMS_FIELDS_DEPENDENTS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FIELDS_MATH]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_MATH] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FIELDS_MATH] FOREIGN KEY ([field_id]) REFERENCES [dbo].[ASMS_FIELDS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FIELDS_MATH_ELEMENTS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_MATH_ELEMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FIELDS_MATH_ELEMENTS] FOREIGN KEY ([math_operation_id]) REFERENCES [dbo].[ASMS_FIELDS_MATH] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FIELDS_MATH_ELEMENTS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_MATH_ELEMENTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FIELDS_MATH_ELEMENTS] FOREIGN KEY ([field_id]) REFERENCES [dbo].[ASMS_FIELDS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FIELDS_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FIELDS_STATUS] FOREIGN KEY ([field_id]) REFERENCES [dbo].[ASMS_FIELDS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FIELDS_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FIELDS_STATUS] FOREIGN KEY ([status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FIELDS_VALUES]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_VALUES] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FIELDS_VALUES] FOREIGN KEY ([field_id]) REFERENCES [dbo].[ASMS_FIELDS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FIELDS_VALUES]...';


GO
ALTER TABLE [dbo].[ASMS_FIELDS_VALUES] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FIELDS_VALUES] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[ASMS_FIELDS_VALUES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FOLDER]...';


GO
ALTER TABLE [dbo].[ASMS_FOLDER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FOLDER] FOREIGN KEY ([ctg_parent]) REFERENCES [dbo].[ASMS_FOLDER] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FOLDER]...';


GO
ALTER TABLE [dbo].[ASMS_FOLDER] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FOLDER] FOREIGN KEY ([ctg_project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FOLDER_ITEM]...';


GO
ALTER TABLE [dbo].[ASMS_FOLDER_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FOLDER_ITEM] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FOLDER_ITEM]...';


GO
ALTER TABLE [dbo].[ASMS_FOLDER_ITEM] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FOLDER_ITEM] FOREIGN KEY ([folder_id]) REFERENCES [dbo].[ASMS_FOLDER] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FOLDER_TYPE]...';


GO
ALTER TABLE [dbo].[ASMS_FOLDER_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FOLDER_TYPE] FOREIGN KEY ([caty_category_id]) REFERENCES [dbo].[ASMS_FOLDER] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FOLDER_TYPE]...';


GO
ALTER TABLE [dbo].[ASMS_FOLDER_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FOLDER_TYPE] FOREIGN KEY ([caty_type_rec_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FORM]...';


GO
ALTER TABLE [dbo].[ASMS_FORM] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FORM] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FORM]...';


GO
ALTER TABLE [dbo].[ASMS_FORM] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FORM] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_FORM]...';


GO
ALTER TABLE [dbo].[ASMS_FORM] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_FORM] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FORM_SECTIONS]...';


GO
ALTER TABLE [dbo].[ASMS_FORM_SECTIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FORM_SECTIONS] FOREIGN KEY ([form_id]) REFERENCES [dbo].[ASMS_FORMS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_FORMS]...';


GO
ALTER TABLE [dbo].[ASMS_FORMS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_FORMS] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_FORMS]...';


GO
ALTER TABLE [dbo].[ASMS_FORMS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_FORMS] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_FORMS]...';


GO
ALTER TABLE [dbo].[ASMS_FORMS] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_FORMS] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_GROUP_PROJECT]...';


GO
ALTER TABLE [dbo].[ASMS_GROUP_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_GROUP_PROJECT] FOREIGN KEY ([profile_id]) REFERENCES [dbo].[ASMS_MODELPROFILES] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_GROUP_PROJECT]...';


GO
ALTER TABLE [dbo].[ASMS_GROUP_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_GROUP_PROJECT] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_GROUP_PROJECT]...';


GO
ALTER TABLE [dbo].[ASMS_GROUP_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_GROUP_PROJECT] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_GROUP_SPECIAL]...';


GO
ALTER TABLE [dbo].[ASMS_GROUP_SPECIAL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_GROUP_SPECIAL] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_GROUP_USER]...';


GO
ALTER TABLE [dbo].[ASMS_GROUP_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_GROUP_USER] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_GROUP_USER]...';


GO
ALTER TABLE [dbo].[ASMS_GROUP_USER] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_GROUP_USER] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_HISTORY]...';


GO
ALTER TABLE [dbo].[ASMS_HISTORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_HISTORY] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_IMPORT]...';


GO
ALTER TABLE [dbo].[ASMS_IMPORT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_IMPORT] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_INTEGRATION_CATEGORY]...';


GO
ALTER TABLE [dbo].[ASMS_INTEGRATION_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_INTEGRATION_CATEGORY] FOREIGN KEY ([integration_id]) REFERENCES [dbo].[ASMS_INTEGRATIONS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_INTEGRATION_CATEGORY]...';


GO
ALTER TABLE [dbo].[ASMS_INTEGRATION_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_INTEGRATION_CATEGORY] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AASMS_INTEGRATIONS]...';


GO
ALTER TABLE [dbo].[ASMS_INTEGRATIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_AASMS_INTEGRATIONS] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AASMS_INTEGRATIONS]...';


GO
ALTER TABLE [dbo].[ASMS_INTEGRATIONS] WITH NOCHECK
    ADD CONSTRAINT [FK02_AASMS_INTEGRATIONS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_INTERFACE]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_INTERFACE] FOREIGN KEY ([builtin_id]) REFERENCES [dbo].[ASMS_INTERFACE_BUILTIN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_INTERFACE]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_INTERFACE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_INTERFACE]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_INTERFACE] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_INTERFACE]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_INTERFACE] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_INTERFACE_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_INTERFACE_STATUS] FOREIGN KEY ([interface_id]) REFERENCES [dbo].[ASMS_INTERFACE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_INTERFACE_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_INTERFACE_STATUS] FOREIGN KEY ([status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_INTERFACE_TYPE]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_INTERFACE_TYPE] FOREIGN KEY ([interface_id]) REFERENCES [dbo].[ASMS_INTERFACE_BUILTIN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_INTERFACE_TYPE]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_INTERFACE_TYPE] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_INTERFACE_TYPE_CONSTANTS]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE_TYPE_CONSTANTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_INTERFACE_TYPE_CONSTANTS] FOREIGN KEY ([constant_id]) REFERENCES [dbo].[ASMS_INTERFACE_CONSTANTS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_INTERFACE_TYPE_OPERATORS]...';


GO
ALTER TABLE [dbo].[ASMS_INTERFACE_TYPE_OPERATORS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_INTERFACE_TYPE_OPERATORS] FOREIGN KEY ([operator_id]) REFERENCES [dbo].[ASMS_INTERFACE_OPERATORS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_ITEM_CONDITION]...';


GO
ALTER TABLE [dbo].[ASMS_ITEM_CONDITION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_ITEM_CONDITION] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_ITEM_WEBHOOK]...';


GO
ALTER TABLE [dbo].[ASMS_ITEM_WEBHOOK] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_ITEM_WEBHOOK] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_LAST_EXECUTE_TASK]...';


GO
ALTER TABLE [dbo].[ASMS_LAST_EXECUTE_TASK] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_LAST_EXECUTE_TASK] FOREIGN KEY ([task_id]) REFERENCES [dbo].[AFW_TASKS] ([task_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_LINKS]...';


GO
ALTER TABLE [dbo].[ASMS_LINKS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_LINKS] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_LOCATION]...';


GO
ALTER TABLE [dbo].[ASMS_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_LOCATION] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_MAIL_TEMPLATE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_MAIL_TEMPLATE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_MAIL_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_MAIL_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_MAIL_TEMPLATE] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_MAP_COUNTRY]...';


GO
ALTER TABLE [dbo].[ASMS_MAP_COUNTRY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_MAP_COUNTRY] FOREIGN KEY ([provider_id]) REFERENCES [dbo].[ASMS_MAP_PROVIDERS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_MODEL]...';


GO
ALTER TABLE [dbo].[ASMS_MODEL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_MODEL] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_MODEL]...';


GO
ALTER TABLE [dbo].[ASMS_MODEL] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_MODEL] FOREIGN KEY ([default_profile_id]) REFERENCES [dbo].[ASMS_MODELPROFILES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_MODEL]...';


GO
ALTER TABLE [dbo].[ASMS_MODEL] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_MODEL] FOREIGN KEY ([default_time_id]) REFERENCES [dbo].[ASMS_TIMES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_MODEL_TPYE]...';


GO
ALTER TABLE [dbo].[ASMS_MODEL_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_MODEL_TPYE] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_MODEL_TYPE]...';


GO
ALTER TABLE [dbo].[ASMS_MODEL_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_MODEL_TYPE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_MODEL_TPYE]...';


GO
ALTER TABLE [dbo].[ASMS_MODEL_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_MODEL_TPYE] FOREIGN KEY ([model_case_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_MODELPROFILES]...';


GO
ALTER TABLE [dbo].[ASMS_MODELPROFILES] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_MODELPROFILES] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_MODELPROFILES]...';


GO
ALTER TABLE [dbo].[ASMS_MODELPROFILES] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_MODELPROFILES] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_MODELPROFILES]...';


GO
ALTER TABLE [dbo].[ASMS_MODELPROFILES] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_MODELPROFILES] FOREIGN KEY ([type]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_NEWS]...';


GO
ALTER TABLE [dbo].[ASMS_NEWS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_NEWS] FOREIGN KEY ([FL_PROJECT_ID]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_POSITION]...';


GO
ALTER TABLE [dbo].[ASMS_POSITIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_POSITION] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_POSITION_LAST]...';


GO
ALTER TABLE [dbo].[ASMS_POSITIONS_LAST] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_POSITION_LAST] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_PRIVATE_DOCUMENT]...';


GO
ALTER TABLE [dbo].[ASMS_PRIVATE_DOCUMENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_PRIVATE_DOCUMENT] FOREIGN KEY ([id]) REFERENCES [dbo].[AFW_DOCUMENT] ([docu_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_PROFILE_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_PROFILE_CONDITIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_PROFILE_CONDITIONS] FOREIGN KEY ([PROFILE_ID]) REFERENCES [dbo].[ASMS_MODELPROFILES] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_PROFILE_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_PROFILE_CONDITIONS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_PROFILE_CONDITIONS] FOREIGN KEY ([approval_id]) REFERENCES [dbo].[ASMS_APPROVALS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_PROJECT_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_PROJECT_CONTRACT] FOREIGN KEY ([cont_projectid]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_PROJECT_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_PROJECT_CONTRACT] FOREIGN KEY ([cont_contractid]) REFERENCES [dbo].[ASMS_CONTRACT] ([ContractId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_PROJECT_EXTERNAL_AUTH]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_EXTERNAL_AUTH] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_PROJECT_EXTERNAL_AUTH] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_PROJECT_EXTERNAL_AUTH]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_EXTERNAL_AUTH] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_PROJECT_EXTERNAL_AUTH] FOREIGN KEY ([external_auth_id]) REFERENCES [dbo].[AFW_EXTERNAL_AUTH_PROVIDERS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_PROJECT_GROUP]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_PROJECT_GROUP] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_PROJECT_GROUP]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_PROJECT_GROUP] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_PROJECT_LOCATION]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_PROJECT_LOCATION] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_PROJECT_LOCATION]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_PROJECT_LOCATION] FOREIGN KEY ([location_id]) REFERENCES [dbo].[ASMS_LOCATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_PROJECT_USER]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_PROJECT_USER] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_PROJECT_USER]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_USER] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_PROJECT_USER] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_PROJECT_VENDOR]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_VENDOR] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_PROJECT_VENDOR] FOREIGN KEY ([VENDOR_ID]) REFERENCES [dbo].[ASMS_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_PROJECT_VENDOR]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECT_VENDOR] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_PROJECT_VENDOR] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_PROJECTS]...';


GO
ALTER TABLE [dbo].[ASMS_PROJECTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_PROJECTS] FOREIGN KEY ([proj_owner_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_RELATION_CLASS]...';


GO
ALTER TABLE [dbo].[ASMS_RELATION_CLASS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_RELATION_CLASS] FOREIGN KEY ([source_type]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_RELATION_CLASS]...';


GO
ALTER TABLE [dbo].[ASMS_RELATION_CLASS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_RELATION_CLASS] FOREIGN KEY ([target_type]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_RELATION_TYPE]...';


GO
ALTER TABLE [dbo].[ASMS_RELATION_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_RELATION_TYPE] FOREIGN KEY ([source_type]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_RELATION_TYPE]...';


GO
ALTER TABLE [dbo].[ASMS_RELATION_TYPE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_RELATION_TYPE] FOREIGN KEY ([target_type]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_RISK]...';


GO
ALTER TABLE [dbo].[ASMS_RISK] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_RISK] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_RISK]...';


GO
ALTER TABLE [dbo].[ASMS_RISK] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_RISK] FOREIGN KEY ([status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_RISK_ANSWER]...';


GO
ALTER TABLE [dbo].[ASMS_RISK_ANSWER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_RISK_ANSWER] FOREIGN KEY ([question_id]) REFERENCES [dbo].[ASMS_RISK_QUESTION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_RISK_QUESTION]...';


GO
ALTER TABLE [dbo].[ASMS_RISK_QUESTION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_RISK_QUESTION] FOREIGN KEY ([risk_id]) REFERENCES [dbo].[ASMS_RISK] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_ROUTING]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_ROUTING] FOREIGN KEY ([rout_inactiveuser]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_ROUTING]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_ROUTING] FOREIGN KEY ([calendar_id]) REFERENCES [dbo].[ASMS_CALENDAR] ([CALENDAR_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_ROUTING]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_ROUTING] FOREIGN KEY ([shift_id]) REFERENCES [dbo].[ASMS_SHIFTS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_ROUTING_CONFIG]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_ROUTING_CONFIG] FOREIGN KEY ([roco_routing]) REFERENCES [dbo].[ASMS_ROUTING] ([rout_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_ROUTING_CONFIG]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_ROUTING_CONFIG] FOREIGN KEY ([roco_group]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_ROUTING_CONFIG]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_ROUTING_CONFIG] FOREIGN KEY ([roco_newuser]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_ROUTING_CONFIG]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_ROUTING_CONFIG] FOREIGN KEY ([roco_casetype]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASMS_ROUTING_CONFIG]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASMS_ROUTING_CONFIG] FOREIGN KEY ([roco_project]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_ROUTING_EXEC]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_EXEC] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_ROUTING_EXEC] FOREIGN KEY ([roex_casetype]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_ROUTING_EXEC]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_EXEC] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_ROUTING_EXEC] FOREIGN KEY ([roex_inactiveuser]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_ROUTING_EXEC]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_EXEC] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_ROUTING_EXEC] FOREIGN KEY ([roex_resposibleuser]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_ROUTING_EXEC]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_EXEC] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_ROUTING_EXEC] FOREIGN KEY ([roex_routing]) REFERENCES [dbo].[ASMS_ROUTING] ([rout_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_ROUTING_MANUAL]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_MANUAL] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_ROUTING_MANUAL] FOREIGN KEY ([roma_casetype]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_ROUTING_MANUAL]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_MANUAL] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_ROUTING_MANUAL] FOREIGN KEY ([roma_initialuser]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_ROUTING_MANUAL]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_MANUAL] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_ROUTING_MANUAL] FOREIGN KEY ([roma_finaluser]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_ROUTING_MANUAL]...';


GO
ALTER TABLE [dbo].[ASMS_ROUTING_MANUAL] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_ROUTING_MANUAL] FOREIGN KEY ([roma_modifyuser]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_RULES]...';


GO
ALTER TABLE [dbo].[ASMS_RULES] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_RULES] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_RULES]...';


GO
ALTER TABLE [dbo].[ASMS_RULES] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_RULES] FOREIGN KEY ([FL_INT_PROJECT_ID]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_RULES]...';


GO
ALTER TABLE [dbo].[ASMS_RULES] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_RULES] FOREIGN KEY ([TABLE_ID]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_RULES]...';


GO
ALTER TABLE [dbo].[ASMS_RULES] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_RULES] FOREIGN KEY ([user_change_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_RULES_ACTIONS]...';


GO
ALTER TABLE [dbo].[ASMS_RULES_ACTIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_RULES_ACTIONS] FOREIGN KEY ([ACTION_TYPE]) REFERENCES [dbo].[ASMS_RULES_ACTIONS_TYPES] ([ACTION_TYPE]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_RULES_ACTIONS]...';


GO
ALTER TABLE [dbo].[ASMS_RULES_ACTIONS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_RULES_ACTIONS] FOREIGN KEY ([RULE_ID]) REFERENCES [dbo].[ASMS_RULES] ([RULE_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_RULES_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_RULES_CONDITIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_RULES_CONDITIONS] FOREIGN KEY ([RULE_ID]) REFERENCES [dbo].[ASMS_RULES] ([RULE_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_RULES_PARAM]...';


GO
ALTER TABLE [dbo].[ASMS_RULES_PARAM] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_RULES_PARAM] FOREIGN KEY ([ACTION_ID]) REFERENCES [dbo].[ASMS_RULES_ACTIONS] ([ACTION_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_RULES_TYPE_ACTIONS]...';


GO
ALTER TABLE [dbo].[ASMS_RULES_TYPE_ACTIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_RULES_TYPE_ACTIONS] FOREIGN KEY ([ACTION_TYPE]) REFERENCES [dbo].[ASMS_RULES_ACTIONS_TYPES] ([ACTION_TYPE]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_RULES_TYPE_ACTIONS]...';


GO
ALTER TABLE [dbo].[ASMS_RULES_TYPE_ACTIONS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_RULES_TYPE_ACTIONS] FOREIGN KEY ([TABLE_ID]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_SCRIPT]...';


GO
ALTER TABLE [dbo].[ASMS_SCRIPT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_SCRIPT] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_SECTION_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_SECTION_FIELDS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_SECTION_FIELDS] FOREIGN KEY ([section_id]) REFERENCES [dbo].[ASMS_FORM_SECTIONS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_SECTION_FIELDS]...';


GO
ALTER TABLE [dbo].[ASMS_SECTION_FIELDS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_SECTION_FIELDS] FOREIGN KEY ([field_id]) REFERENCES [dbo].[ASMS_FIELDS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_SERVICE_CI]...';


GO
ALTER TABLE [dbo].[ASMS_SERVICE_CI] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_SERVICE_CI] FOREIGN KEY ([service_id]) REFERENCES [dbo].[ASDK_SERVICE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_SERVICE_CI]...';


GO
ALTER TABLE [dbo].[ASMS_SERVICE_CI] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_SERVICE_CI] FOREIGN KEY ([ci_id]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK_ASMS_SETTINGS_APLICACIONES]...';


GO
ALTER TABLE [dbo].[ASMS_SETTINGS] WITH NOCHECK
    ADD CONSTRAINT [FK_ASMS_SETTINGS_APLICACIONES] FOREIGN KEY ([sett_application_id]) REFERENCES [dbo].[AFW_APPLICATIONS] ([appl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_SHIFT_STRIP]...';


GO
ALTER TABLE [dbo].[ASMS_SHIFT_STRIP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_SHIFT_STRIP] FOREIGN KEY ([shift_id]) REFERENCES [dbo].[ASMS_ADVANCED_SHIFTS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_SHIFT_USER]...';


GO
ALTER TABLE [dbo].[ASMS_SHIFT_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_SHIFT_USER] FOREIGN KEY ([shift_id]) REFERENCES [dbo].[ASMS_ADVANCED_SHIFTS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_SHIFT_USER]...';


GO
ALTER TABLE [dbo].[ASMS_SHIFT_USER] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_SHIFT_USER] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_SHIFTS]...';


GO
ALTER TABLE [dbo].[ASMS_SHIFTS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_SHIFTS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_SHIFTS]...';


GO
ALTER TABLE [dbo].[ASMS_SHIFTS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_SHIFTS] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_SHIFTS]...';


GO
ALTER TABLE [dbo].[ASMS_SHIFTS] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_SHIFTS] FOREIGN KEY ([calendar_id]) REFERENCES [dbo].[ASMS_CALENDAR] ([CALENDAR_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_STAR_RATING]...';


GO
ALTER TABLE [dbo].[ASMS_STAR_RATING] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_STAR_RATING] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_STATUS] FOREIGN KEY ([stat_app_category]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_STATUS] FOREIGN KEY ([stat_project]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_STATUS] FOREIGN KEY ([stat_model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_STATUS] FOREIGN KEY ([stat_stage_id]) REFERENCES [dbo].[ASMS_STATUS_STAGE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_STATUS_COORDINATE]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_COORDINATE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_STATUS_COORDINATE] FOREIGN KEY ([stat_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_STATUS_REASON]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_REASON] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_STATUS_REASON] FOREIGN KEY ([reas_transition_id]) REFERENCES [dbo].[ASMS_STATUS_TRANSITION] ([sttr_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_STATUS_STAGE]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_STAGE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_STATUS_STAGE] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_STATUS_TRANSITION]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_STATUS_TRANSITION] FOREIGN KEY ([sttr_code_ini]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_STATUS_TRANSITION]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_STATUS_TRANSITION] FOREIGN KEY ([sttr_code_fin]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_STATUS_TRANSITION]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_STATUS_TRANSITION] FOREIGN KEY ([sttr_category]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_STATUS_TRANSITION]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_STATUS_TRANSITION] FOREIGN KEY ([sttr_project]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASMS_STATUS_TRANSITION]...';


GO
ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASMS_STATUS_TRANSITION] FOREIGN KEY ([sttr_model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_SURVEY]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_SURVEY] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_SURVEY]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_SURVEY] FOREIGN KEY ([solved_status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_SURVEY]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_SURVEY] FOREIGN KEY ([canceled_status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASMS_SURVEY]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASMS_SURVEY] FOREIGN KEY ([schedule_id]) REFERENCES [dbo].[AFW_SCHEDULER] ([sche_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASMS_SURVEY]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASMS_SURVEY] FOREIGN KEY ([survey_id]) REFERENCES [dbo].[AFW_SURVEY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ASMS_SURVEY]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK06_ASMS_SURVEY] FOREIGN KEY ([template_id]) REFERENCES [dbo].[ASMS_MAIL_TEMPLATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ASMS_SURVEY]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK07_ASMS_SURVEY] FOREIGN KEY ([item_type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ASMS_SURVEY]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK08_ASMS_SURVEY] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK09_ASMS_SURVEY]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY] WITH NOCHECK
    ADD CONSTRAINT [FK09_ASMS_SURVEY] FOREIGN KEY ([server_id]) REFERENCES [dbo].[AFW_MAIL_ACCOUNT] ([maac_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_SURVEY_DATA]...';


GO
ALTER TABLE [dbo].[ASMS_SURVEY_DATA] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_SURVEY_DATA] FOREIGN KEY ([survey_id]) REFERENCES [dbo].[ASMS_SURVEY] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TASK_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_CONDITIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TASK_CONDITIONS] FOREIGN KEY ([TASK_ID]) REFERENCES [dbo].[ASMS_TASK_TEMPLATE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TASK_PREDECESSOR]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_PREDECESSOR] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TASK_PREDECESSOR] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_TASK_PREDECESSOR]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_PREDECESSOR] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_TASK_PREDECESSOR] FOREIGN KEY ([child_id]) REFERENCES [dbo].[ASMS_TASK_TEMPLATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_TASK_PREDECESSOR]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_PREDECESSOR] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_TASK_PREDECESSOR] FOREIGN KEY ([parent_id]) REFERENCES [dbo].[ASMS_TASK_TEMPLATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TASK_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TASK_STATUS] FOREIGN KEY ([task_id]) REFERENCES [dbo].[ASMS_TASK_TEMPLATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_TASK_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_TASK_STATUS] FOREIGN KEY ([status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TASK_TEMPLATE]...';


GO
ALTER TABLE [dbo].[ASMS_TASK_TEMPLATE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TASK_TEMPLATE] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TEMPLATES]...';


GO
ALTER TABLE [dbo].[ASMS_TEMPLATES] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TEMPLATES] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TIMES]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TIMES] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_TIMES]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_TIMES] FOREIGN KEY ([builtin_id]) REFERENCES [dbo].[ASMS_TIMES_BUILTIN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_TIMES]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_TIMES] FOREIGN KEY ([type_agree]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TIMES_CONDITIONS]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_CONDITIONS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TIMES_CONDITIONS] FOREIGN KEY ([TIME_ID]) REFERENCES [dbo].[ASMS_TIMES] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TIMES_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TIMES_STATUS] FOREIGN KEY ([status_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_TIMES_STATUS]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_STATUS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_TIMES_STATUS] FOREIGN KEY ([time_id]) REFERENCES [dbo].[ASMS_TIMES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TOUR_STEP]...';


GO
ALTER TABLE [dbo].[ASMS_TOUR_STEP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TOUR_STEP] FOREIGN KEY ([tour_id]) REFERENCES [dbo].[ASMS_TOUR] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TOUR_USER]...';


GO
ALTER TABLE [dbo].[ASMS_TOUR_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TOUR_USER] FOREIGN KEY ([wizard_id]) REFERENCES [dbo].[ASMS_WIZARD_USER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_TOUR_USER]...';


GO
ALTER TABLE [dbo].[ASMS_TOUR_USER] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_TOUR_USER] FOREIGN KEY ([tour_id]) REFERENCES [dbo].[ASMS_TOUR] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TRANSLATION]...';


GO
ALTER TABLE [dbo].[ASMS_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TRANSLATION] FOREIGN KEY ([language_id]) REFERENCES [dbo].[AFW_LANGUAGE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_TRANSLATION]...';


GO
ALTER TABLE [dbo].[ASMS_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_TRANSLATION] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TYPE_CONDITION]...';


GO
ALTER TABLE [dbo].[ASMS_TYPE_CONDITION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TYPE_CONDITION] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_USER_ACCESS]...';


GO
ALTER TABLE [dbo].[ASMS_USER_ACCESS] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_USER_ACCESS] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_USER_ACCESS]...';


GO
ALTER TABLE [dbo].[ASMS_USER_ACCESS] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_USER_ACCESS] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_USER_ACCESS]...';


GO
ALTER TABLE [dbo].[ASMS_USER_ACCESS] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_USER_ACCESS] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_USER_CACHE]...';


GO
ALTER TABLE [dbo].[ASMS_USER_CACHE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_USER_CACHE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_USER_CACHE]...';


GO
ALTER TABLE [dbo].[ASMS_USER_CACHE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_USER_CACHE] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_USER_LOCATION]...';


GO
ALTER TABLE [dbo].[ASMS_USER_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_USER_LOCATION] FOREIGN KEY ([location_id]) REFERENCES [dbo].[ASMS_LOCATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_USER_LOCATION]...';


GO
ALTER TABLE [dbo].[ASMS_USER_LOCATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_USER_LOCATION] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_USER_MOBILE]...';


GO
ALTER TABLE [dbo].[ASMS_USER_MOBILE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_USER_MOBILE] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_USER_VENDOR]...';


GO
ALTER TABLE [dbo].[ASMS_USER_VENDOR] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_USER_VENDOR] FOREIGN KEY ([VENDOR_ID]) REFERENCES [dbo].[ASMS_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_USER_VENDOR]...';


GO
ALTER TABLE [dbo].[ASMS_USER_VENDOR] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_USER_VENDOR] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_VIEW_FILTER]...';


GO
ALTER TABLE [dbo].[ASMS_VIEW_FILTER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_VIEW_FILTER] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_WIZARD_TOUR]...';


GO
ALTER TABLE [dbo].[ASMS_WIZARD_TOUR] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_WIZARD_TOUR] FOREIGN KEY ([wizard_id]) REFERENCES [dbo].[ASMS_WIZARD] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_WIZARD_TOUR]...';


GO
ALTER TABLE [dbo].[ASMS_WIZARD_TOUR] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_WIZARD_TOUR] FOREIGN KEY ([tour_id]) REFERENCES [dbo].[ASMS_TOUR] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_WIZARD_USER]...';


GO
ALTER TABLE [dbo].[ASMS_WIZARD_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_WIZARD_USER] FOREIGN KEY ([wizard_id]) REFERENCES [dbo].[ASMS_WIZARD] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_WIZARD_USER]...';


GO
ALTER TABLE [dbo].[ASMS_WIZARD_USER] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_WIZARD_USER] FOREIGN KEY ([current_tour_id]) REFERENCES [dbo].[ASMS_TOUR] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASMS_WIZARD_USER]...';


GO
ALTER TABLE [dbo].[ASMS_WIZARD_USER] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASMS_WIZARD_USER] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASS_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASS_ARTICLE] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASS_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASS_ARTICLE] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASS_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASS_ARTICLE] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASS_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASS_ARTICLE] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ASMS_STATUS_REASON] ([reas_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASS_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASS_ARTICLE] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_ASS_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK06_ASS_ARTICLE] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_ASS_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK07_ASS_ARTICLE] FOREIGN KEY ([modifier_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_ASS_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK08_ASS_ARTICLE] FOREIGN KEY ([project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASS_ARTICLE_GROUP]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASS_ARTICLE_GROUP] FOREIGN KEY ([article_id]) REFERENCES [dbo].[ASS_ARTICLE_DW_LAST] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASS_ARTICLE_GROUP]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE_GROUP] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASS_ARTICLE_GROUP] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASS_ARTICLE_SELF]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE_SELF] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASS_ARTICLE_SELF] FOREIGN KEY ([arse_article_parent]) REFERENCES [dbo].[ASS_ARTICLE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASS_ARTICLE_SELF]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE_SELF] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASS_ARTICLE_SELF] FOREIGN KEY ([arse_article_child]) REFERENCES [dbo].[ASS_ARTICLE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASS_ARTICLE_SELF]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE_SELF] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASS_ARTICLE_SELF] FOREIGN KEY ([relation_type_id]) REFERENCES [dbo].[ASMS_RELATION_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASS_ARTICLE_SELF]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE_SELF] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASS_ARTICLE_SELF] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASS_ARTICLE_VERSION]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE_VERSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASS_ARTICLE_VERSION] FOREIGN KEY ([id]) REFERENCES [dbo].[ASS_ARTICLE_DW_LAST] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASS_CI_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_CI_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASS_CI_ARTICLE] FOREIGN KEY ([ciar_ci_id]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASS_CI_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_CI_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASS_CI_ARTICLE] FOREIGN KEY ([ciar_article_id]) REFERENCES [dbo].[ASS_ARTICLE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_ASS_CI_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_CI_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [FK03_ASS_CI_ARTICLE] FOREIGN KEY ([relation_type_id]) REFERENCES [dbo].[ASMS_RELATION_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASS_FAVORITE]...';


GO
ALTER TABLE [dbo].[ASS_FAVORITE] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASS_FAVORITE] FOREIGN KEY ([favo_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASS_FAVORITE]...';


GO
ALTER TABLE [dbo].[ASS_FAVORITE] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASS_FAVORITE] FOREIGN KEY ([favo_article_id]) REFERENCES [dbo].[ASS_ARTICLE_DW_LAST] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASS_HIT]...';


GO
ALTER TABLE [dbo].[ASS_HIT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASS_HIT] FOREIGN KEY ([FL_INT_SOLUTION_ID]) REFERENCES [dbo].[ASS_ARTICLE_DW_LAST] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASS_KEYWORD]...';


GO
ALTER TABLE [dbo].[ASS_KEYWORD] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASS_KEYWORD] FOREIGN KEY ([keyw_solution_id]) REFERENCES [dbo].[ASS_ARTICLE_DW_LAST] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASS_RATING]...';


GO
ALTER TABLE [dbo].[ASS_RATING] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASS_RATING] FOREIGN KEY ([FL_INT_SOLUTION_ID]) REFERENCES [dbo].[ASS_ARTICLE_DW_LAST] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASS_SEARCH_RESULT]...';


GO
ALTER TABLE [dbo].[ASS_SEARCH_RESULT] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASS_SEARCH_RESULT] FOREIGN KEY ([sere_user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASS_SEARCH_RESULT]...';


GO
ALTER TABLE [dbo].[ASS_SEARCH_RESULT] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASS_SEARCH_RESULT] FOREIGN KEY ([sere_category_id]) REFERENCES [dbo].[ASMS_FOLDER] ([ctg_index]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_ASS_SEARCH_RESULT]...';


GO
ALTER TABLE [dbo].[ASS_SEARCH_RESULT] WITH NOCHECK
    ADD CONSTRAINT [FK04_ASS_SEARCH_RESULT] FOREIGN KEY ([sere_project_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_ASS_SEARCH_RESULT]...';


GO
ALTER TABLE [dbo].[ASS_SEARCH_RESULT] WITH NOCHECK
    ADD CONSTRAINT [FK05_ASS_SEARCH_RESULT] FOREIGN KEY ([sere_type_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AVS_AUDIT]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AVS_AUDIT] FOREIGN KEY ([audit_user_id]) REFERENCES [dbo].[AVS_AUDIT_USERS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AVS_AUDIT]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AVS_AUDIT] FOREIGN KEY ([audit_device_id]) REFERENCES [dbo].[AVS_AUDIT_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AVS_AUDIT]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK03_AVS_AUDIT] FOREIGN KEY ([audit_group_support_id]) REFERENCES [dbo].[AVS_AUDIT_GROUP_SUPPORT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AVS_AUDIT_FILE_LIST]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_FILE_LIST] WITH NOCHECK
    ADD CONSTRAINT [FK01_AVS_AUDIT_FILE_LIST] FOREIGN KEY ([audit_user_id]) REFERENCES [dbo].[AVS_AUDIT_USERS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AVS_AUDIT_FILE_LIST]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_FILE_LIST] WITH NOCHECK
    ADD CONSTRAINT [FK02_AVS_AUDIT_FILE_LIST] FOREIGN KEY ([audit_device_id]) REFERENCES [dbo].[AVS_AUDIT_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AVS_AUDIT_FILE_LIST]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_FILE_LIST] WITH NOCHECK
    ADD CONSTRAINT [FK03_AVS_AUDIT_FILE_LIST] FOREIGN KEY ([audit_group_support_id]) REFERENCES [dbo].[AVS_AUDIT_GROUP_SUPPORT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AVS_AUDIT_FILE_TRANSFER]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_FILE_TRANSFER] WITH NOCHECK
    ADD CONSTRAINT [FK01_AVS_AUDIT_FILE_TRANSFER] FOREIGN KEY ([audit_user_id]) REFERENCES [dbo].[AVS_AUDIT_USERS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AVS_AUDIT_FILE_TRANSFER]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_FILE_TRANSFER] WITH NOCHECK
    ADD CONSTRAINT [FK02_AVS_AUDIT_FILE_TRANSFER] FOREIGN KEY ([audit_device_id]) REFERENCES [dbo].[AVS_AUDIT_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AVS_AUDIT_FILE_TRANSFER]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_FILE_TRANSFER] WITH NOCHECK
    ADD CONSTRAINT [FK03_AVS_AUDIT_FILE_TRANSFER] FOREIGN KEY ([audit_group_support_id]) REFERENCES [dbo].[AVS_AUDIT_GROUP_SUPPORT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AVS_AUDIT_RECORDING]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_RECORDING] WITH NOCHECK
    ADD CONSTRAINT [FK01_AVS_AUDIT_RECORDING] FOREIGN KEY ([audit_user_id]) REFERENCES [dbo].[AVS_AUDIT_USERS] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AVS_AUDIT_RECORDING]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_RECORDING] WITH NOCHECK
    ADD CONSTRAINT [FK02_AVS_AUDIT_RECORDING] FOREIGN KEY ([audit_device_id]) REFERENCES [dbo].[AVS_AUDIT_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AVS_AUDIT_RECORDING]...';


GO
ALTER TABLE [dbo].[AVS_AUDIT_RECORDING] WITH NOCHECK
    ADD CONSTRAINT [FK03_AVS_AUDIT_RECORDING] FOREIGN KEY ([audit_group_support_id]) REFERENCES [dbo].[AVS_AUDIT_GROUP_SUPPORT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AVS_DEVICE_GROUP_SUPPORT]...';


GO
ALTER TABLE [dbo].[AVS_DEVICE_GROUP_SUPPORT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AVS_DEVICE_GROUP_SUPPORT] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AVS_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AVS_DEVICE_GROUP_SUPPORT]...';


GO
ALTER TABLE [dbo].[AVS_DEVICE_GROUP_SUPPORT] WITH NOCHECK
    ADD CONSTRAINT [FK02_AVS_DEVICE_GROUP_SUPPORT] FOREIGN KEY ([group_support_id]) REFERENCES [dbo].[AVS_GROUP_SUPPORT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AVS_DEVICE_LICENSE]...';


GO
ALTER TABLE [dbo].[AVS_DEVICE_LICENSE] WITH NOCHECK
    ADD CONSTRAINT [FK01_AVS_DEVICE_LICENSE] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AVS_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AVS_DEVICE_LICENSE]...';


GO
ALTER TABLE [dbo].[AVS_DEVICE_LICENSE] WITH NOCHECK
    ADD CONSTRAINT [FK02_AVS_DEVICE_LICENSE] FOREIGN KEY ([license_id]) REFERENCES [dbo].[AFW_LICENSE] ([lice_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AVS_GROUP_SUPPORT]...';


GO
ALTER TABLE [dbo].[AVS_GROUP_SUPPORT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AVS_GROUP_SUPPORT] FOREIGN KEY ([parent]) REFERENCES [dbo].[AVS_GROUP_SUPPORT] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AVS_GROUP_SUPPORT_PERMISSION]...';


GO
ALTER TABLE [dbo].[AVS_GROUP_SUPPORT_PERMISSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AVS_GROUP_SUPPORT_PERMISSION] FOREIGN KEY ([group_support_id]) REFERENCES [dbo].[AVS_GROUP_SUPPORT] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AVS_GROUP_SUPPORT_PERMISSION]...';


GO
ALTER TABLE [dbo].[AVS_GROUP_SUPPORT_PERMISSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AVS_GROUP_SUPPORT_PERMISSION] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AVS_GROUP_SUPPORT_PERMISSION]...';


GO
ALTER TABLE [dbo].[AVS_GROUP_SUPPORT_PERMISSION] WITH NOCHECK
    ADD CONSTRAINT [FK03_AVS_GROUP_SUPPORT_PERMISSION] FOREIGN KEY ([group_user_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AVS_LICENSE_COUNT]...';


GO
ALTER TABLE [dbo].[AVS_LICENSE_COUNT] WITH NOCHECK
    ADD CONSTRAINT [FK01_AVS_LICENSE_COUNT] FOREIGN KEY ([license_id]) REFERENCES [dbo].[AFW_LICENSE] ([lice_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_AVS_SESSION]...';


GO
ALTER TABLE [dbo].[AVS_SESSION] WITH NOCHECK
    ADD CONSTRAINT [FK01_AVS_SESSION] FOREIGN KEY ([device_id]) REFERENCES [dbo].[AVS_DEVICE] ([id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK02_AVS_SESSION]...';


GO
ALTER TABLE [dbo].[AVS_SESSION] WITH NOCHECK
    ADD CONSTRAINT [FK02_AVS_SESSION] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK03_AVS_SESSION]...';


GO
ALTER TABLE [dbo].[AVS_SESSION] WITH NOCHECK
    ADD CONSTRAINT [FK03_AVS_SESSION] FOREIGN KEY ([license_id]) REFERENCES [dbo].[AFW_LICENSE] ([lice_id]) ON DELETE CASCADE;


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_AUDIT]...';


GO
ALTER TABLE [dbo].[CMDB_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_AUDIT] FOREIGN KEY ([FL_INT_RESPONSIBLE_ID]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_AUDIT]...';


GO
ALTER TABLE [dbo].[CMDB_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_AUDIT] FOREIGN KEY ([projectid]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_CMDB_AUDIT]...';


GO
ALTER TABLE [dbo].[CMDB_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK04_CMDB_AUDIT] FOREIGN KEY ([template_id]) REFERENCES [dbo].[ASMS_MAIL_TEMPLATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_BASELINE]...';


GO
ALTER TABLE [dbo].[CMDB_BASELINE] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_BASELINE] FOREIGN KEY ([cibl_userid]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_CI] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_CI] FOREIGN KEY ([manufacturer_id]) REFERENCES [dbo].[ASMS_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK03_CMDB_CI] FOREIGN KEY ([provider_id]) REFERENCES [dbo].[ASMS_COMPANY] ([Id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK04_CMDB_CI] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK05_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK05_CMDB_CI] FOREIGN KEY ([modifier_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK06_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK06_CMDB_CI] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK07_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK07_CMDB_CI] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK08_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK08_CMDB_CI] FOREIGN KEY ([impact_id]) REFERENCES [dbo].[AFW_CATALOG_CODE] ([code_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK09_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK09_CMDB_CI] FOREIGN KEY ([type_id]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK10_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK10_CMDB_CI] FOREIGN KEY ([integration_id]) REFERENCES [dbo].[ASMS_INTEGRATIONS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK11_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK11_CMDB_CI] FOREIGN KEY ([location_id]) REFERENCES [dbo].[ASMS_LOCATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK12_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK12_CMDB_CI] FOREIGN KEY ([file_id]) REFERENCES [dbo].[ASMS_FILE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK13_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK13_CMDB_CI] FOREIGN KEY ([group_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK14_CMDB_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI] WITH NOCHECK
    ADD CONSTRAINT [FK14_CMDB_CI] FOREIGN KEY ([reason_id]) REFERENCES [dbo].[ASMS_STATUS_REASON] ([reas_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_CI_AUDIT]...';


GO
ALTER TABLE [dbo].[CMDB_CI_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_CI_AUDIT] FOREIGN KEY ([ci_auditid]) REFERENCES [dbo].[CMDB_AUDIT] ([FL_INT_AUDIT_ID]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_CI_AUDIT]...';


GO
ALTER TABLE [dbo].[CMDB_CI_AUDIT] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_CI_AUDIT] FOREIGN KEY ([ci_ciid]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_CI_BASELINE]...';


GO
ALTER TABLE [dbo].[CMDB_CI_BASELINE] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_CI_BASELINE] FOREIGN KEY ([ci_id]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_CI_BASELINE]...';


GO
ALTER TABLE [dbo].[CMDB_CI_BASELINE] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_CI_BASELINE] FOREIGN KEY ([baseline_id]) REFERENCES [dbo].[CMDB_BASELINE] ([cibl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_CI_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI_CI] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_CI_CI] FOREIGN KEY ([FL_INT_CI_PARENT_ID]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_CI_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI_CI] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_CI_CI] FOREIGN KEY ([FL_INT_CI_CHILD_ID]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_CMDB_CI_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI_CI] WITH NOCHECK
    ADD CONSTRAINT [FK03_CMDB_CI_CI] FOREIGN KEY ([FL_STR_RELATIONTYPE_ID]) REFERENCES [dbo].[ASMS_RELATION_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_CMDB_CI_CI]...';


GO
ALTER TABLE [dbo].[CMDB_CI_CI] WITH NOCHECK
    ADD CONSTRAINT [FK04_CMDB_CI_CI] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_CI_CI_HIST]...';


GO
ALTER TABLE [dbo].[CMDB_CI_CI_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_CI_CI_HIST] FOREIGN KEY ([fl_int_bl_id]) REFERENCES [dbo].[CMDB_BASELINE] ([cibl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_CI_CI_HIST]...';


GO
ALTER TABLE [dbo].[CMDB_CI_CI_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_CI_CI_HIST] FOREIGN KEY ([FL_INT_CI_PARENT_ID]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_CMDB_CI_CI_HIST]...';


GO
ALTER TABLE [dbo].[CMDB_CI_CI_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK03_CMDB_CI_CI_HIST] FOREIGN KEY ([FL_INT_CI_CHILD_ID]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_CI_CONTRACT]...';


GO
ALTER TABLE [dbo].[CMDB_CI_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_CI_CONTRACT] FOREIGN KEY ([FL_INT_CI_ID]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_CI_CONTRACT]...';


GO
ALTER TABLE [dbo].[CMDB_CI_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_CI_CONTRACT] FOREIGN KEY ([FL_INT_COUNTABLESUPPORT_ID]) REFERENCES [dbo].[ASMS_CONTRACT] ([ContractId]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_CI_HIST]...';


GO
ALTER TABLE [dbo].[CMDB_CI_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_CI_HIST] FOREIGN KEY ([fl_int_bl_id]) REFERENCES [dbo].[CMDB_BASELINE] ([cibl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_CI_HIST]...';


GO
ALTER TABLE [dbo].[CMDB_CI_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_CI_HIST] FOREIGN KEY ([id]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_CI_PROJECT]...';


GO
ALTER TABLE [dbo].[CMDB_CI_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_CI_PROJECT] FOREIGN KEY ([ci_projectid]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_CI_PROJECT]...';


GO
ALTER TABLE [dbo].[CMDB_CI_PROJECT] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_CI_PROJECT] FOREIGN KEY ([ci_ciid]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_CI_USER]...';


GO
ALTER TABLE [dbo].[CMDB_CI_USER] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_CI_USER] FOREIGN KEY ([FL_INT_CI_ID]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_CI_USER]...';


GO
ALTER TABLE [dbo].[CMDB_CI_USER] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_CI_USER] FOREIGN KEY ([FL_INT_USER_ID]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_CI_USER_HIST]...';


GO
ALTER TABLE [dbo].[CMDB_CI_USER_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_CI_USER_HIST] FOREIGN KEY ([fl_int_bl_id]) REFERENCES [dbo].[CMDB_BASELINE] ([cibl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_CI_USER_HIST]...';


GO
ALTER TABLE [dbo].[CMDB_CI_USER_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_CI_USER_HIST] FOREIGN KEY ([fl_int_ci_id]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_COMPONENT]...';


GO
ALTER TABLE [dbo].[CMDB_COMPONENT] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_COMPONENT] FOREIGN KEY ([FL_INT_CI_ID]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_COMPONENT_HIST]...';


GO
ALTER TABLE [dbo].[CMDB_COMPONENT_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_COMPONENT_HIST] FOREIGN KEY ([fl_int_bl_id]) REFERENCES [dbo].[CMDB_BASELINE] ([cibl_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_COMPONENT_HIST]...';


GO
ALTER TABLE [dbo].[CMDB_COMPONENT_HIST] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_COMPONENT_HIST] FOREIGN KEY ([FL_INT_CI_ID]) REFERENCES [dbo].[CMDB_CI] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_OUTPUT_ORDER]...';


GO
ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_OUTPUT_ORDER] FOREIGN KEY ([author_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_OUTPUT_ORDER]...';


GO
ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_OUTPUT_ORDER] FOREIGN KEY ([authorizer_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_OUTPUT_ORDER_CI]...';


GO
ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER_CI] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_OUTPUT_ORDER_CI] FOREIGN KEY ([order_id]) REFERENCES [dbo].[CMDB_OUTPUT_ORDER] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_OUTPUT_ORDER_CI]...';


GO
ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER_CI] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_OUTPUT_ORDER_CI] FOREIGN KEY ([responsible_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_CMDB_OUTPUT_ORDER_CI]...';


GO
ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER_CI] WITH NOCHECK
    ADD CONSTRAINT [FK03_CMDB_OUTPUT_ORDER_CI] FOREIGN KEY ([state_id]) REFERENCES [dbo].[ASMS_STATUS] ([stat_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_CMDB_OUTPUT_ORDER_CI]...';


GO
ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER_CI] WITH NOCHECK
    ADD CONSTRAINT [FK04_CMDB_OUTPUT_ORDER_CI] FOREIGN KEY ([location_id]) REFERENCES [dbo].[ASMS_LOCATION] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_CMDB_PROJECT_GROUP_CATEGORY]...';


GO
ALTER TABLE [dbo].[CMDB_PROJECT_GROUP_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK01_CMDB_PROJECT_GROUP_CATEGORY] FOREIGN KEY ([proj_id]) REFERENCES [dbo].[ASMS_PROJECTS] ([proj_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_CMDB_PROJECT_GROUP_CATEGORY]...';


GO
ALTER TABLE [dbo].[CMDB_PROJECT_GROUP_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK02_CMDB_PROJECT_GROUP_CATEGORY] FOREIGN KEY ([grou_id]) REFERENCES [dbo].[AFW_GROUPS] ([grou_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_CMDB_PROJECT_GROUP_CATEGORY]...';


GO
ALTER TABLE [dbo].[CMDB_PROJECT_GROUP_CATEGORY] WITH NOCHECK
    ADD CONSTRAINT [FK03_CMDB_PROJECT_GROUP_CATEGORY] FOREIGN KEY ([category_id]) REFERENCES [dbo].[ASMS_MODEL] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DASH_BOARD]...';


GO
ALTER TABLE [dbo].[DASH_BOARD] WITH NOCHECK
    ADD CONSTRAINT [FK01_DASH_BOARD] FOREIGN KEY ([boar_folder]) REFERENCES [dbo].[AFW_FOLDER] ([fold_id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_AGGREGATE_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_AGGREGATE_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_AGGREGATE_TRANSLATION] FOREIGN KEY ([aggregate_id]) REFERENCES [dbo].[DMM_AGGREGATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_DMM_AGGREGATE_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_AGGREGATE_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_DMM_AGGREGATE_TRANSLATION] FOREIGN KEY ([language_id]) REFERENCES [dbo].[AFW_LANGUAGE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_ATTRIBUTE]...';


GO
ALTER TABLE [dbo].[DMM_ATTRIBUTE] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_ATTRIBUTE] FOREIGN KEY ([column_id]) REFERENCES [dbo].[DMM_COLUMN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_ATTRIBUTE_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_ATTRIBUTE_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_ATTRIBUTE_TRANSLATION] FOREIGN KEY ([attribute_id]) REFERENCES [dbo].[DMM_ATTRIBUTE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_DMM_ATTRIBUTE_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_ATTRIBUTE_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_DMM_ATTRIBUTE_TRANSLATION] FOREIGN KEY ([language_id]) REFERENCES [dbo].[AFW_LANGUAGE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_COLUMN]...';


GO
ALTER TABLE [dbo].[DMM_COLUMN] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_COLUMN] FOREIGN KEY ([dataset_id]) REFERENCES [dbo].[DMM_DATASET] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_DATA_TYPE_COLUMN]...';


GO
ALTER TABLE [dbo].[DMM_DATA_TYPE_COLUMN] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_DATA_TYPE_COLUMN] FOREIGN KEY ([column_id]) REFERENCES [dbo].[DMM_COLUMN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_DMM_DATA_TYPE_COLUMN]...';


GO
ALTER TABLE [dbo].[DMM_DATA_TYPE_COLUMN] WITH NOCHECK
    ADD CONSTRAINT [FK02_DMM_DATA_TYPE_COLUMN] FOREIGN KEY ([data_type_id]) REFERENCES [dbo].[DMM_DATA_TYPE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_DATASET_PARAMETERS]...';


GO
ALTER TABLE [dbo].[DMM_DATASET_PARAMETERS] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_DATASET_PARAMETERS] FOREIGN KEY ([dataset_id]) REFERENCES [dbo].[DMM_DATASET] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_DATASET_PARAMETERS_MAPPING]...';


GO
ALTER TABLE [dbo].[DMM_DATASET_PARAMETERS_MAPPING] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_DATASET_PARAMETERS_MAPPING] FOREIGN KEY ([parameter_id]) REFERENCES [dbo].[DMM_DATASET_PARAMETERS] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_DMM_DATASET_PARAMETERS_MAPPING]...';


GO
ALTER TABLE [dbo].[DMM_DATASET_PARAMETERS_MAPPING] WITH NOCHECK
    ADD CONSTRAINT [FK02_DMM_DATASET_PARAMETERS_MAPPING] FOREIGN KEY ([map_to_dataset_id]) REFERENCES [dbo].[DMM_DATASET] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_DMM_DATASET_PARAMETERS_MAPPING]...';


GO
ALTER TABLE [dbo].[DMM_DATASET_PARAMETERS_MAPPING] WITH NOCHECK
    ADD CONSTRAINT [FK03_DMM_DATASET_PARAMETERS_MAPPING] FOREIGN KEY ([map_to_column_id]) REFERENCES [dbo].[DMM_COLUMN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_DATASET_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_DATASET_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_DATASET_TRANSLATION] FOREIGN KEY ([dataset_id]) REFERENCES [dbo].[DMM_DATASET] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_DMM_DATASET_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_DATASET_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_DMM_DATASET_TRANSLATION] FOREIGN KEY ([language_id]) REFERENCES [dbo].[AFW_LANGUAGE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_METRIC]...';


GO
ALTER TABLE [dbo].[DMM_METRIC] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_METRIC] FOREIGN KEY ([aggregate_id]) REFERENCES [dbo].[DMM_AGGREGATE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_DMM_METRIC]...';


GO
ALTER TABLE [dbo].[DMM_METRIC] WITH NOCHECK
    ADD CONSTRAINT [FK02_DMM_METRIC] FOREIGN KEY ([attribute_id]) REFERENCES [dbo].[DMM_ATTRIBUTE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_METRIC_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_METRIC_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_METRIC_TRANSLATION] FOREIGN KEY ([metric_id]) REFERENCES [dbo].[DMM_METRIC] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_DMM_METRIC_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_METRIC_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_DMM_METRIC_TRANSLATION] FOREIGN KEY ([language_id]) REFERENCES [dbo].[AFW_LANGUAGE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_RELATIONSHIP]...';


GO
ALTER TABLE [dbo].[DMM_RELATIONSHIP] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_RELATIONSHIP] FOREIGN KEY ([inner_dataset]) REFERENCES [dbo].[DMM_DATASET] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_DMM_RELATIONSHIP]...';


GO
ALTER TABLE [dbo].[DMM_RELATIONSHIP] WITH NOCHECK
    ADD CONSTRAINT [FK02_DMM_RELATIONSHIP] FOREIGN KEY ([outer_dataset]) REFERENCES [dbo].[DMM_DATASET] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK03_DMM_RELATIONSHIP]...';


GO
ALTER TABLE [dbo].[DMM_RELATIONSHIP] WITH NOCHECK
    ADD CONSTRAINT [FK03_DMM_RELATIONSHIP] FOREIGN KEY ([inner_column]) REFERENCES [dbo].[DMM_COLUMN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK04_DMM_RELATIONSHIP]...';


GO
ALTER TABLE [dbo].[DMM_RELATIONSHIP] WITH NOCHECK
    ADD CONSTRAINT [FK04_DMM_RELATIONSHIP] FOREIGN KEY ([outer_column]) REFERENCES [dbo].[DMM_COLUMN] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_DMM_RELATIONSHIP_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_RELATIONSHIP_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK01_DMM_RELATIONSHIP_TRANSLATION] FOREIGN KEY ([relationship_id]) REFERENCES [dbo].[DMM_RELATIONSHIP] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_DMM_RELATIONSHIP_TRANSLATION]...';


GO
ALTER TABLE [dbo].[DMM_RELATIONSHIP_TRANSLATION] WITH NOCHECK
    ADD CONSTRAINT [FK02_DMM_RELATIONSHIP_TRANSLATION] FOREIGN KEY ([language_id]) REFERENCES [dbo].[AFW_LANGUAGE] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK01_TEAMS_USER_REFERENCE]...';


GO
ALTER TABLE [dbo].[TEAMS_USER_REFERENCE] WITH NOCHECK
    ADD CONSTRAINT [FK01_TEAMS_USER_REFERENCE] FOREIGN KEY ([user_id]) REFERENCES [dbo].[AFW_USERS] ([user_id]);


GO
PRINT N'Creating Check Constraint [dbo].[CK01_AAM_NETWORKADAPTER_ADDRES]...';


GO
ALTER TABLE [dbo].[AAM_NETWORKADAPTER_ADDRES] WITH NOCHECK
    ADD CONSTRAINT [CK01_AAM_NETWORKADAPTER_ADDRES] CHECK ([default]=(1) OR [default]=(0));


GO
PRINT N'Creating Check Constraint [dbo].[CK01_AAM_NETWORKADAPTER_CONFIG]...';


GO
ALTER TABLE [dbo].[AAM_NETWORKADAPTER_CONFIG] WITH NOCHECK
    ADD CONSTRAINT [CK01_AAM_NETWORKADAPTER_CONFIG] CHECK ([type]='W' OR [type]='D' OR [type]='G');


GO
PRINT N'Creating Check Constraint [dbo].[CHK_ATTACHMENT_SIZE]...';


GO
ALTER TABLE [dbo].[AFW_MAIL_ATTACHMENT] WITH NOCHECK
    ADD CONSTRAINT [CHK_ATTACHMENT_SIZE] CHECK (DATALENGTH([Data]) <= 26214400);


GO
PRINT N'Creating Check Constraint [dbo].[CK01_ASM_CONSOLIDATE_CONTROL]...';


GO
ALTER TABLE [dbo].[ASM_CONSOLIDATE_CONTROL] WITH NOCHECK
    ADD CONSTRAINT [CK01_ASM_CONSOLIDATE_CONTROL] CHECK (id = 1);


GO
PRINT N'Creating Check Constraint [dbo].[CK02_ASMS_APPROVALS_DETAIL]...';


GO
ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH NOCHECK
    ADD CONSTRAINT [CK02_ASMS_APPROVALS_DETAIL] CHECK ([result]=(2) OR [result]=(1) OR [result]=(0));


GO
PRINT N'Creating Check Constraint [dbo].[CK_ASMS_CONTRACT]...';


GO
ALTER TABLE [dbo].[ASMS_CONTRACT] WITH NOCHECK
    ADD CONSTRAINT [CK_ASMS_CONTRACT] CHECK ([FL_INT_HAS_ALARM]=(1) OR [FL_INT_HAS_ALARM]=(0));


GO
PRINT N'Creating Check Constraint [dbo].[CK01_ASS_ARTICLE]...';


GO
ALTER TABLE [dbo].[ASS_ARTICLE] WITH NOCHECK
    ADD CONSTRAINT [CK01_ASS_ARTICLE] CHECK ([is_public]=(1) OR [is_public]=(0));


GO
PRINT N'Creating Check Constraint [dbo].[CK01_DMM_DATASET]...';


GO
ALTER TABLE [dbo].[DMM_DATASET] WITH NOCHECK
    ADD CONSTRAINT [CK01_DMM_DATASET] CHECK ([type] IN('DIM', 'FACT'));


GO
PRINT N'Creating Check Constraint [dbo].[CK02_DMM_DATASET]...';


GO
ALTER TABLE [dbo].[DMM_DATASET] WITH NOCHECK
    ADD CONSTRAINT [CK02_DMM_DATASET] CHECK ([base_object_type] IN('U', 'V', 'IF'));


GO
PRINT N'Creating Trigger [dbo].[START_TICKET_ID_SEQUENCE]...';


GO
CREATE TRIGGER [dbo].[START_TICKET_ID_SEQUENCE]
   ON  [dbo].[AFLS_TENANTS]
   AFTER INSERT
AS 
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for trigger here
	INSERT INTO dbo.AFLS_TICKET_ID_SEQUENCES
	SELECT tent_id, '0' from inserted
END
GO
PRINT N'Creating Trigger [dbo].[CHANGE_ATTENDANT_IN_WORK_ORDER]...';


GO
--verificar opción de mejora para validación de reasignaciones de ordenes, por notificaciones push mobile
CREATE TRIGGER [dbo].[CHANGE_ATTENDANT_IN_WORK_ORDER]
   ON  [dbo].[AFLS_WORKORDERS]
   AFTER INSERT, UPDATE
AS 
BEGIN      
	 
	 DECLARE @target_WorkOrder INT = -1; 
	 DECLARE @current_Attendant INT = -1; 
	 
	 SELECT TOP 1 
		@target_WorkOrder = ISNULL([work_id], -1),
		@current_Attendant = ISNULL([work_attendant], -1)
	 FROM inserted;

	 DECLARE @last_history INT = -1;
	 DECLARE @last_Attendant INT = -1
	 
	SELECT TOP 1 
		 @last_history = WO.aah_id,
	     @last_Attendant = ISNULL(WO.[work_attendant], -1) 
	FROM [dbo].[AFLS_ATTENDAMENT_HELPER] AS WO 
		WHERE WO.work_id = @target_WorkOrder
	ORDER BY WO.date_assignment DESC, WO.is_reassigned;

	 IF (@last_Attendant <> @current_Attendant) 
	 BEGIN	

			DECLARE @current DATETIME = GETUTCDATE();
			UPDATE [dbo].[AFLS_ATTENDAMENT_HELPER] SET is_reassigned = 1, date_assignment = @current  WHERE aah_id = @last_history;		

			DELETE FROM [dbo].[AFLS_ATTENDAMENT_HELPER] WHERE work_id = @target_WorkOrder AND work_attendant = @current_Attendant;
			 
			INSERT INTO [dbo].[AFLS_ATTENDAMENT_HELPER] (work_id, work_attendant, date_assignment, is_reassigned)	
			VALUES(@target_WorkOrder, @current_Attendant, @current, 0);
	 END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_SURVEY_ANSWERED]...';


GO
CREATE TRIGGER [dbo].[TRG_SURVEY_ANSWERED]
   ON  [dbo].[AFW_SURVEY_USER]
   AFTER UPDATE
AS 
BEGIN      
	 
	 DECLARE @v_finished_at_old DATETIME = null;
	 DECLARE @v_finished_at_current DATETIME = null; 
     DECLARE @v_item_id int = 0; 
	 
	 SELECT TOP 1 
		@v_finished_at_old = old.FinishedAt
	 FROM deleted as old;

     SELECT TOP 1 
		@v_finished_at_current = new.FinishedAt,
        @v_item_id = new.DataConcept
	 FROM inserted as new
     JOIN [dbo].[AFW_SURVEY] survey on new.SurveyId = survey.Id
     WHERE survey.ApplicationId = 13

	
	 IF (@v_finished_at_old is null and @v_finished_at_current is not null) 
	 BEGIN	
        IF (SELECT COUNT(*) FROM [dbo].[ASMS_EXECUTE_CONDITION] AEC WHERE AEC.item_id = @v_item_id AND type_id = 66 
			AND container_condition=-2 AND condition_id=-2 ) = 0
        BEGIN
            INSERT INTO [dbo].[ASMS_EXECUTE_CONDITION] (
            item_id,
            container_condition,
            condition_id,
            type_id,
            start_date,
            end_date,
            last_value
            ) VALUES (
                @v_item_id,
                -2,
                -2,
                66,
                GETUTCDATE(),
                GETUTCDATE(),
                0
            );
        END;
        ELSE
        BEGIN
            UPDATE [dbo].[ASMS_EXECUTE_CONDITION] SET 
                [execute] = null, 
                last_value = 0, 
                start_date = GETUTCDATE(), 
                end_date = GETUTCDATE()
            WHERE item_id = @v_item_id
            AND container_condition = -2
            AND condition_id = -2
            AND type_id = 66
        END;
	END;
END;
GO
PRINT N'Creating Trigger [dbo].[AVS_MATERIALIZE_USER_TRIGGER]...';


GO
CREATE TRIGGER [dbo].[AVS_MATERIALIZE_USER_TRIGGER]
	ON [dbo].[AFW_USERS]
	FOR INSERT, UPDATE
	AS
	BEGIN
		SET NOCOUNT ON;
		IF NOT EXISTS (SELECT * FROM DELETED) OR 
			NOT EXISTS (SELECT * FROM [dbo].[AVS_AUDIT_USERS] U JOIN INSERTED I ON U.user_id = I.user_id AND
							U.is_current = 1 AND U.user_name = I.user_name AND
												 (ISNULL(U.user_nick_name, I.user_nick_name) IS NULL OR
												 U.user_nick_name = I.user_nick_name) AND
												 (ISNULL(U.user_phone1, I.user_phone1) IS NULL OR
												 U.user_phone1 = I.user_phone1) AND
												 (ISNULL(U.user_email, I.user_email) IS NULL OR
												 U.user_email = I.user_email))
		BEGIN
			UPDATE U SET is_current = 0, end_date = GETUTCDATE()
				FROM [dbo].[AVS_AUDIT_USERS] U
				INNER JOIN INSERTED I
					ON U.user_id = I.user_id
					WHERE is_current = 1;

			INSERT INTO [dbo].[AVS_AUDIT_USERS] (user_id, user_name, user_nick_name, user_phone1,
													user_email, start_date, end_date, is_current)
					(SELECT user_id, user_name, user_nick_name, user_phone1,
													user_email, GETUTCDATE(), NULL, 1
												  FROM INSERTED);
		END
	END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_CATEGORY]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_CATEGORY]
   ON  [dbo].[ASDK_CATEGORY]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (ctg_caption, ctg_parent, ctg_imageindex, fl_str_hierarchy, fl_int_status_id, fl_str_description, fl_str_image, fl_int_image_id, is_delete, guid) ' +
							'VALUES (%s, (SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s), %d, %s, %d, %s, %s, %d, %d, %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET ctg_caption = %s, ctg_parent = (SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s), ctg_imageindex = %d, fl_str_hierarchy = %s, fl_int_status_id = %d, ' +
							'fl_str_description = %s, fl_str_image = %s, fl_int_image_id = %d, is_delete = %d WHERE guid = %s';
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query], [observations])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				IIF([ins].[ctg_caption] IS NULL, NULL, '''' + [ins].[ctg_caption] + ''''),
				IIF([ac1].[guid] IS NULL, NULL, '''' + [ac1].[guid] + ''''),
				[ins].[ctg_imageindex],
				IIF([ins].[fl_str_hierarchy] IS NULL, NULL, '''' + [ins].[fl_str_hierarchy] + ''''),
				[ins].[fl_int_status_id],
				IIF([ins].[fl_str_description] IS NULL, NULL, '''' + [ins].[fl_str_description] + ''''),
				NULL,
				NULL,
				CAST([ins].[is_delete] AS int),
				IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
			),
			'[{"Concept":"EmptyImageOperation","Parameters":[]}]'
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASDK_CATEGORY] [ac1] ON [ac1].[ctg_index] = [ins].[ctg_parent]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_CATEGORY_PROJECT]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_CATEGORY_PROJECT]
   ON  [dbo].[ASDK_CATEGORY_PROJECT]
   AFTER INSERT, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (category_id, project_id) VALUES((SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s), (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s))';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ac1].[guid] IS NULL, NULL, '''' + [ac1].[guid] + ''''),
					IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + '''')
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASDK_CATEGORY] [ac1] ON [ac1].[ctg_index] = [ins].[category_id]
			JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[project_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE category_id = (SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s) AND project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s)';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ac1].[guid] IS NULL, NULL, '''' + [ac1].[guid] + ''''),
					IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + '''')
				)
			FROM [deleted] [del]
			JOIN [dbo].[ASDK_CATEGORY] [ac1] ON [ac1].[ctg_index] = [del].[category_id]
			JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [del].[project_id]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_CATEGORY_SERVICE]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_CATEGORY_SERVICE]
   ON  [dbo].[ASDK_CATEGORY_SERVICE]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (category_id, service_id, status_id, is_visible_user, is_visible_home, guid) VALUES((SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s), ' +
								'(SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), %d, %d, %d, ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET category_id = (SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s), ' +
								'service_id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), status_id = %d, is_visible_user = %d, is_visible_home = %d WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ac1].[guid] IS NULL, NULL, '''' + [ac1].[guid] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
					[ins].[status_id],
					CAST([ins].[is_visible_user] as int),
					CAST([ins].[is_visible_home] as int),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASDK_CATEGORY] [ac1] ON [ac1].[ctg_index] = [ins].[category_id]
			JOIN [dbo].[ASDK_SERVICE] [as1] ON [as1].[id] = [ins].[service_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_MODEL_COST_PRICE]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_MODEL_COST_PRICE]
   ON  [dbo].[ASDK_MODEL_COST_PRICE]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (mod_name, description, proyect_id, guid) VALUES(''%s'', %s, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET mod_name = ''%s'', description = %s, proyect_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s) WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[mod_name],
					IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
					IIF([ap].[proj_guid] IS NULL, NULL, '''' + [ap].[proj_guid] + ''''),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASMS_PROJECTS] [ap] ON [ap].[proj_id] = [ins].[proyect_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_SERVICE]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_SERVICE]
   ON  [dbo].[ASDK_SERVICE]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_catalog_codes_ids TABLE
		(
			Id INT NOT NULL

		);
		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_queryExtra VARCHAR(MAX);
		DECLARE @v_operation INT;

		INSERT INTO @TT_catalog_codes_ids
		SELECT DISTINCT [acc].[code_id]
		FROM [dbo].[AFW_CATALOG] [ac]
		JOIN [AFW_CATALOG_CODE] [acc] ON [acc].[code_cata_id] = [ac].[cata_id]
		JOIN [inserted] [ins] ON [ins].[impact_id] = [acc].[code_id]
		WHERE [ac].[cata_name] = 'IMPACT' AND [acc].[code_id] NOT IN (1,2,3);

		IF EXISTS (SELECT * FROM @TT_catalog_codes_ids)
		BEGIN
			BEGIN TRY

				SET @v_operation = 0;
				SET @v_table_name = 'AFW_CATALOG_CODE';
				SET @v_query = 'IF NOT EXISTS (SELECT * FROM %s ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''IMPACT'') AND code_value = ''%s'') ' +
								'INSERT INTO %s (code_cata_id, code_order, code_key, code_value, code_description, code_status, code_additional, code_parent_id) ' +
								'VALUES((SELECT AC1.cata_id FROM AFW_CATALOG AC1 WHERE AC1.cata_name = ''IMPACT''), %d, %s, %s, %s, %d, %s, %s)';
				
				INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
				SELECT 
					@v_change_set_id, 
					@v_operation, 
					@v_table_name, 
					FORMATMESSAGE(
						@v_query,
						@v_table_name,
						[acc1].[code_value],
						@v_table_name,
						[acc1].[code_order],
						IIF([acc1].[code_key] IS NULL, NULL, '''' + [acc1].[code_key] + ''''),
						IIF([acc1].[code_value] IS NULL, NULL, '''' + [acc1].[code_value] + ''''),
						IIF([acc1].[code_description] IS NULL, NULL, '''' + [acc1].[code_description] + ''''),
						[acc1].[code_status],
						IIF([acc1].[code_additional] IS NULL, NULL, '''' + [acc1].[code_additional] + ''''),
						[acc1].[code_parent_id]
					)
				FROM [dbo].[AFW_CATALOG_CODE] [acc1]
				WHERE [acc1].[code_id] IN (SELECT * FROM @TT_catalog_codes_ids)
				ORDER BY [acc1].[code_id]
			
			END TRY
			BEGIN CATCH
				PRINT 'Error';
			END CATCH
		END

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (name, description, responsible_id, impact_id, group_id, project_id, sla_id, uc_id, ola_id, state_id, author_id, type_id, opened_date, reason_id, closed_date, previous_state_id, ' +
							'modified_date, modifier_id, cost_center_id, income_center_id, image_name, image_id, priority_sla, is_delete, guid) ' +
							'VALUES (%s, %s, %d, %s, %s, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), (SELECT AS1.SLA_ID FROM ASDK_SLA AS1 WHERE AS1.guid = %s), ' +
							'(SELECT AS2.SLA_ID FROM ASDK_SLA AS2 WHERE AS2.guid = %s), (SELECT AS3.SLA_ID FROM ASDK_SLA AS3 WHERE AS3.guid = %s), (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), %d, %d, %s, ' +
							'(SELECT ASR1.reas_id FROM ASMS_STATUS_REASON ASR1 WHERE ASR1.guid = %s), %s, (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), %s, %d, ' +
							'(SELECT ACC1.id FROM ASMS_COST_CENTER ACC1 WHERE ACC1.guid = %s), ';
			SET @v_queryExtra = '(SELECT ACC2.id FROM ASMS_COST_CENTER ACC2 WHERE ACC2.guid = %s), %s, %d, %s, %d, %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET name = %s, description = %s, responsible_id = %d, impact_id = %s, group_id = %s, project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), ' +
							'sla_id = (SELECT AS1.SLA_ID FROM ASDK_SLA AS1 WHERE AS1.guid = %s), uc_id = (SELECT AS2.SLA_ID FROM ASDK_SLA AS2 WHERE AS2.guid = %s), ola_id = (SELECT AS3.SLA_ID FROM ASDK_SLA AS3 WHERE AS3.guid = %s), ' +
							'state_id = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), author_id = %d, type_id = %d, opened_date = %s, reason_id = (SELECT ASR1.reas_id FROM ASMS_STATUS_REASON ASR1 WHERE ASR1.guid = %s), ' +
							'closed_date = %s, previous_state_id = (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), modified_date = %s, modifier_id = %d, cost_center_id = (SELECT ACC1.id FROM ASMS_COST_CENTER ACC1 WHERE ACC1.guid = %s), ';
			SET @v_queryExtra = 'income_center_id = (SELECT ACC2.id FROM ASMS_COST_CENTER ACC2 WHERE ACC2.guid = %s), image_name = %s, image_id = %d, priority_sla = %s, is_delete = %d WHERE guid = %s';
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query], [observations])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				IIF([ins].[name] IS NULL, NULL, '''' + [ins].[name] + ''''),
				IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
				1,
				IIF([ins].[impact_id] IS NULL, NULL, CASE WHEN [ins].[impact_id] >= 1 AND [ins].[impact_id] <= 3 THEN CAST([ins].[impact_id] as varchar(255)) ELSE '(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''IMPACT'') AND code_value = ''' + [acco1].[code_value] + ''')' END),
				IIF([ins].[group_id] IS NULL, NULL, 'IIF((SELECT TOP 1 AG.grou_id FROM AFW_GROUPS AG WHERE AG.grou_name = ''' + [ag1].[grou_name] + ''' AND AG.grou_parent IS NULL) IS NULL, 1, (SELECT TOP 1 AG.grou_id FROM AFW_GROUPS AG WHERE AG.grou_name = ''' + [ag1].[grou_name] + ''' AND AG.grou_parent IS NULL))'),
				IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
				IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
				IIF([as2].[guid] IS NULL, NULL, '''' + [as2].[guid] + ''''),
				IIF([as3].[guid] IS NULL, NULL, '''' + [as3].[guid] + ''''),
				IIF([ast1].[guid] IS NULL, NULL, '''' + [ast1].[guid] + ''''),
				1,
				[ins].[type_id],
				IIF([ins].[opened_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[opened_date], 121) + ''''),
				IIF([asr1].[guid] IS NULL, NULL, '''' + [asr1].[guid] + ''''),
				IIF([ins].[closed_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[closed_date], 121) + ''''),
				IIF([ast2].[guid] IS NULL, NULL, '''' + [ast2].[guid] + ''''),
				IIF([ins].[modified_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[modified_date], 121) + ''''),
				1,
				IIF([acc1].[guid] IS NULL, NULL, '''' + [acc1].[guid] + '''')
			) + 
			FORMATMESSAGE(
				@v_queryExtra,
				IIF([acc2].[guid] IS NULL, NULL, '''' + [acc2].[guid] + ''''),
				NULL,
				NULL,
				IIF([ins].[priority_sla] IS NULL, NULL, '''' + [ins].[priority_sla] + ''''),
				CAST([ins].[is_delete] AS int),
				IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
			),
			'[{"Concept":"DefaultUserOperation","Parameters":["ServiceOwner"]},{"Concept":"DefaultGroupOperation","Parameters":[]},{"Concept":"EmptyImageOperation","Parameters":[]}]'
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[project_id]
		LEFT JOIN [dbo].[ASDK_SLA] [as1] ON [as1].[SLA_ID] = [ins].[sla_id]
		LEFT JOIN [dbo].[ASDK_SLA] [as2] ON [as2].[SLA_ID] = [ins].[uc_id]
		LEFT JOIN [dbo].[ASDK_SLA] [as3] ON [as3].[SLA_ID] = [ins].[ola_id]
		LEFT JOIN [dbo].[ASMS_STATUS] [ast1] ON [ast1].[stat_id] = [ins].[state_id]
		LEFT JOIN [dbo].[ASMS_STATUS_REASON] [asr1] ON [asr1].[reas_id] = [ins].[reason_id]
		LEFT JOIN [dbo].[ASMS_STATUS] [ast2] ON [ast2].[stat_id] = [ins].[previous_state_id]
		LEFT JOIN [dbo].[ASMS_COST_CENTER] [acc1] ON [acc1].[id] = [ins].[cost_center_id]
		LEFT JOIN [dbo].[ASMS_COST_CENTER] [acc2] ON [acc2].[id] = [ins].[income_center_id]
		LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acco1] ON [acco1].[code_id] = [ins].[impact_id]
		LEFT JOIN [dbo].[AFW_GROUPS] [ag1] ON [ag1].[grou_id] = [ins].[group_id]


	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_SERVICE_ACCOUNTING]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_SERVICE_ACCOUNTING]
   ON  [dbo].[ASDK_SERVICE_ACCOUNTING]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;
	
	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (item_type_id, service_id, count, price, cost, effort, guid) VALUES (%d, (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), %d, CAST(%s as float), CAST(%s as float), CAST(%s as float), %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET item_type_id = %d, service_id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), count = %d, price = CAST(%s as float), cost = CAST(%s as float), effort = CAST(%s as float) WHERE guid = %s';
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				[ins].[item_type_id],
				IIF([asv1].[guid] IS NULL, NULL, '''' + [asv1].[guid] + ''''),
				[ins].[count],
				CAST([ins].[cost] AS varchar(22)),
				CAST([ins].[price] AS varchar(22)),
				CAST([ins].[cost] AS varchar(22)),
				IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
			)
		FROM [inserted] [ins]
		JOIN [dbo].[ASDK_SERVICE] [asv1] ON [asv1].[id] = [ins].[service_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_SERVICE_BAG]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_SERVICE_BAG]
   ON  [dbo].[ASDK_SERVICE_BAG]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (start_date, end_date, type_id, service_id, value, item_type_id, state_id, remaining, guid) VALUES (%s, %s, %d, (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), CAST(%s as float), %d, %d, CAST(%s as float), ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET start_date = %s, end_date = %s, type_id = %d, service_id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), value = CAST(%s as float), item_type_id = %d, state_id = %d, remaining = CAST(%s as float) WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ins].[start_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[start_date], 121) + ''''),
					IIF([ins].[end_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[end_date], 121) + ''''),
					[ins].[type_id],
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
					CAST([ins].[value] AS varchar(22)),
					[ins].[item_type_id],
					[ins].[state_id],
					CAST([ins].[remaining] AS varchar(22)),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASDK_SERVICE] [as1] ON [as1].[id] = [ins].[service_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END
END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_SERVICE_DW]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_SERVICE_DW]
   ON  [dbo].[ASDK_SERVICE_DW]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_query_extra VARCHAR(MAX);
		DECLARE @v_query_extra2 VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (id, name, description, responsible_id, impact_id, group_id, project_id, sla_id, uc_id, ola_id, state_id, author_id, type_id, opened_date, reason_id, closed_date, previous_state_id, ' +
							'modified_date, modifier_id, cost_center_id, income_center_id, state_name, impact_name, responsible_name, reason_name, state_color, group_name, sla_name, uc_name, ola_name, stage_id, author_name, ' +
							'modifier_name, project_name, type_name, stage_name, state_final, note, image_name, image_id, priority_sla, is_delete, guid) ' +
							'VALUES ((SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), %s, %s, %d, %s, %s, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), (SELECT AS1.SLA_ID FROM ASDK_SLA AS1 WHERE AS1.guid = %s), ' +
							'(SELECT AS2.SLA_ID FROM ASDK_SLA AS2 WHERE AS2.guid = %s), (SELECT AS3.SLA_ID FROM ASDK_SLA AS3 WHERE AS3.guid = %s), (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), %d, %d, %s, ' +
							'(SELECT ASR1.reas_id FROM ASMS_STATUS_REASON ASR1 WHERE ASR1.guid = %s), %s, (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), %s, %d, ';
			SET @v_query_extra = '(SELECT ACC1.id FROM ASMS_COST_CENTER ACC1 WHERE ACC1.guid = %s), (SELECT ACC2.id FROM ASMS_COST_CENTER ACC2 WHERE ACC2.guid = %s), %s, %s, %s, %s, %s, %s, %s, %s, %s, %d, %s, %s, %s, %s, %s, %d, %s, %s, ';
			SET @v_query_extra2 = '%d, %s, %d, %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), name = %s, description = %s, responsible_id = %d, impact_id = %s, group_id = %s, project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), ' +
							'sla_id = (SELECT AS1.SLA_ID FROM ASDK_SLA AS1 WHERE AS1.guid = %s), uc_id = (SELECT AS2.SLA_ID FROM ASDK_SLA AS2 WHERE AS2.guid = %s), ola_id = (SELECT AS3.SLA_ID FROM ASDK_SLA AS3 WHERE AS3.guid = %s), ' +
							'state_id = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), author_id = %d, type_id = %d, opened_date = %s, reason_id = (SELECT ASR1.reas_id FROM ASMS_STATUS_REASON ASR1 WHERE ASR1.guid = %s), ' +
							'closed_date = %s, previous_state_id = (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), modified_date = %s, modifier_id = %d, ';
			SET @v_query_extra = 'cost_center_id = (SELECT ACC1.id FROM ASMS_COST_CENTER ACC1 WHERE ACC1.guid = %s), income_center_id = (SELECT ACC2.id FROM ASMS_COST_CENTER ACC2 WHERE ACC2.guid = %s), state_name = %s, impact_name = %s, responsible_name = %s, reason_name = %s, ' +
								'state_color = %s, group_name = %s, sla_name = %s, uc_name = %s, ola_name = %s, stage_id = %d, author_name = %s, modifier_name = %s, project_name = %s, type_name = %s, stage_name = %s, state_final = %d, note = %s, image_name = %s, ';
			SET @v_query_extra2 = 'image_id = %d, priority_sla = %s, is_delete = %d WHERE guid = %s';
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				IIF([asv1].[guid] IS NULL, NULL, '''' + [asv1].[guid] + ''''),
				IIF([ins].[name] IS NULL, NULL, '''' + [ins].[name] + ''''),
				IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
				1,
				IIF([ins].[impact_id] IS NULL, NULL, CASE WHEN [ins].[impact_id] >= 1 AND [ins].[impact_id] <= 3 THEN CAST([ins].[impact_id] as varchar(255)) ELSE '(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''IMPACT'') AND code_value = ''' + [acco1].[code_value] + ''')' END),
				IIF([ins].[group_id] IS NULL, NULL, 'IIF((SELECT TOP 1 AG.grou_id FROM AFW_GROUPS AG WHERE AG.grou_name = ''' + [ag1].[grou_name] + ''' AND AG.grou_parent IS NULL) IS NULL, 1, (SELECT TOP 1 AG.grou_id FROM AFW_GROUPS AG WHERE AG.grou_name = ''' + [ag1].[grou_name] + ''' AND AG.grou_parent IS NULL))'),
				IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
				IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
				IIF([as2].[guid] IS NULL, NULL, '''' + [as2].[guid] + ''''),
				IIF([as3].[guid] IS NULL, NULL, '''' + [as3].[guid] + ''''),
				IIF([ast1].[guid] IS NULL, NULL, '''' + [ast1].[guid] + ''''),
				1,
				[ins].[type_id],
				IIF([ins].[opened_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[opened_date], 121) + ''''),
				IIF([asr1].[guid] IS NULL, NULL, '''' + [asr1].[guid] + ''''),
				IIF([ins].[closed_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[closed_date], 121) + ''''),
				IIF([ast2].[guid] IS NULL, NULL, '''' + [ast2].[guid] + ''''),
				IIF([ins].[modified_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[modified_date], 121) + ''''),
				1
			) + 
			FORMATMESSAGE(
				@v_query_extra,
				IIF([acc1].[guid] IS NULL, NULL, '''' + [acc1].[guid] + ''''),
				IIF([acc2].[guid] IS NULL, NULL, '''' + [acc2].[guid] + ''''),
				IIF([ins].[state_name] IS NULL, NULL, '''' + [ins].[state_name] + ''''),
				IIF([ins].[impact_name] IS NULL, NULL, '''' + [ins].[impact_name] + ''''),
				IIF([ins].[responsible_name] IS NULL, NULL, '''' + [ins].[responsible_name] + ''''),
				IIF([ins].[reason_name] IS NULL, NULL, '''' + [ins].[reason_name] + ''''),
				IIF([ins].[state_color] IS NULL, NULL, '''' + [ins].[state_color] + ''''),
				IIF([ins].[group_name] IS NULL, NULL, '''' + [ins].[group_name] + ''''),
				IIF([ins].[sla_name] IS NULL, NULL, '''' + [ins].[sla_name] + ''''),
				IIF([ins].[uc_name] IS NULL, NULL, '''' + [ins].[uc_name] + ''''),
				IIF([ins].[ola_name] IS NULL, NULL, '''' + [ins].[ola_name] + ''''),
				[ins].[stage_id],
				IIF([ins].[author_name] IS NULL, NULL, '''' + [ins].[author_name] + ''''),
				IIF([ins].[modifier_name] IS NULL, NULL, '''' + [ins].[modifier_name] + ''''),
				IIF([ins].[project_name] IS NULL, NULL, '''' + [ins].[project_name] + ''''),
				IIF([ins].[type_name] IS NULL, NULL, '''' + [ins].[type_name] + ''''),
				IIF([ins].[stage_name] IS NULL, NULL, '''' + [ins].[stage_name] + ''''),
				[ins].[state_final],
				IIF([ins].[note] IS NULL, NULL, '''' + [ins].[note] + ''''),
				NULL
			) + 
			FORMATMESSAGE(
				@v_query_extra2,
				NULL,
				IIF([ins].[priority_sla] IS NULL, NULL, '''' + [ins].[priority_sla] + ''''),
				CAST([ins].[is_delete] AS int),
				IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
			)
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASDK_SERVICE] [asv1] ON [asv1].[id] = [ins].[id]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[project_id]
		LEFT JOIN [dbo].[ASDK_SLA] [as1] ON [as1].[SLA_ID] = [ins].[sla_id]
		LEFT JOIN [dbo].[ASDK_SLA] [as2] ON [as2].[SLA_ID] = [ins].[uc_id]
		LEFT JOIN [dbo].[ASDK_SLA] [as3] ON [as3].[SLA_ID] = [ins].[ola_id]
		LEFT JOIN [dbo].[ASMS_STATUS] [ast1] ON [ast1].[stat_id] = [ins].[state_id]
		LEFT JOIN [dbo].[ASMS_STATUS_REASON] [asr1] ON [asr1].[reas_id] = [ins].[reason_id]
		LEFT JOIN [dbo].[ASMS_STATUS] [ast2] ON [ast2].[stat_id] = [ins].[previous_state_id]
		LEFT JOIN [dbo].[ASMS_COST_CENTER] [acc1] ON [acc1].[id] = [ins].[cost_center_id]
		LEFT JOIN [dbo].[ASMS_COST_CENTER] [acc2] ON [acc2].[id] = [ins].[income_center_id]
		LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acco1] ON [acco1].[code_id] = [ins].[impact_id]
		LEFT JOIN [dbo].[AFW_GROUPS] [ag1] ON [ag1].[grou_id] = [ins].[group_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_SERVICE_DW_LAST]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_SERVICE_DW_LAST]
   ON  [dbo].[ASDK_SERVICE_DW_LAST]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;
	-- TODO: Validar impact_id
	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_query_extra VARCHAR(MAX);
		DECLARE @v_query_extra2 VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (id, name, description, responsible_id, impact_id, group_id, project_id, sla_id, uc_id, ola_id, state_id, author_id, type_id, opened_date, reason_id, closed_date, previous_state_id, ' +
							'modified_date, modifier_id, cost_center_id, income_center_id, state_name, impact_name, responsible_name, reason_name, state_color, group_name, sla_name, uc_name, ola_name, stage_id, author_name, ' +
							'modifier_name, project_name, type_name, stage_name, state_final, note, image_name, image_id, priority_sla, is_delete, guid) ' +
							'VALUES ((SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), %s, %s, %d, %s, %s, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), (SELECT AS1.SLA_ID FROM ASDK_SLA AS1 WHERE AS1.guid = %s), ' +
							'(SELECT AS2.SLA_ID FROM ASDK_SLA AS2 WHERE AS2.guid = %s), (SELECT AS3.SLA_ID FROM ASDK_SLA AS3 WHERE AS3.guid = %s), (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), %d, %d, %s, ' +
							'(SELECT ASR1.reas_id FROM ASMS_STATUS_REASON ASR1 WHERE ASR1.guid = %s), %s, (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), %s, %d, ';
			SET @v_query_extra = '(SELECT ACC1.id FROM ASMS_COST_CENTER ACC1 WHERE ACC1.guid = %s), (SELECT ACC2.id FROM ASMS_COST_CENTER ACC2 WHERE ACC2.guid = %s), %s, %s, %s, %s, %s, %s, %s, %s, %s, %d, %s, %s, %s, %s, %s, %d, %s, %s, ';
			SET @v_query_extra2 = '%d, %s, %d, %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), name = %s, description = %s, responsible_id = %d, impact_id = %s, group_id = %s, project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), ' +
							'sla_id = (SELECT AS1.SLA_ID FROM ASDK_SLA AS1 WHERE AS1.guid = %s), uc_id = (SELECT AS2.SLA_ID FROM ASDK_SLA AS2 WHERE AS2.guid = %s), ola_id = (SELECT AS3.SLA_ID FROM ASDK_SLA AS3 WHERE AS3.guid = %s), ' +
							'state_id = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), author_id = %d, type_id = %d, opened_date = %s, reason_id = (SELECT ASR1.reas_id FROM ASMS_STATUS_REASON ASR1 WHERE ASR1.guid = %s), ' +
							'closed_date = %s, previous_state_id = (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), modified_date = %s, modifier_id = %d, ';
			SET @v_query_extra = 'cost_center_id = (SELECT ACC1.id FROM ASMS_COST_CENTER ACC1 WHERE ACC1.guid = %s), income_center_id = (SELECT ACC2.id FROM ASMS_COST_CENTER ACC2 WHERE ACC2.guid = %s), state_name = %s, impact_name = %s, responsible_name = %s, reason_name = %s, ' +
								'state_color = %s, group_name = %s, sla_name = %s, uc_name = %s, ola_name = %s, stage_id = %d, author_name = %s, modifier_name = %s, project_name = %s, type_name = %s, stage_name = %s, state_final = %d, note = %s, image_name = %s, ';
			SET @v_query_extra2 = 'image_id = %d, priority_sla = %s, is_delete = %d WHERE guid = %s';
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				IIF([asv1].[guid] IS NULL, NULL, '''' + [asv1].[guid] + ''''),
				IIF([ins].[name] IS NULL, NULL, '''' + [ins].[name] + ''''),
				IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
				1,
				IIF([ins].[impact_id] IS NULL, NULL, CASE WHEN [ins].[impact_id] >= 1 AND [ins].[impact_id] <= 3 THEN CAST([ins].[impact_id] as varchar(255)) ELSE '(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''IMPACT'') AND code_value = ''' + [acco1].[code_value] + ''')' END),
				IIF([ins].[group_id] IS NULL, NULL, 'IIF((SELECT TOP 1 AG.grou_id FROM AFW_GROUPS AG WHERE AG.grou_name = ''' + [ag1].[grou_name] + ''' AND AG.grou_parent IS NULL) IS NULL, 1, (SELECT TOP 1 AG.grou_id FROM AFW_GROUPS AG WHERE AG.grou_name = ''' + [ag1].[grou_name] + ''' AND AG.grou_parent IS NULL))'),
				IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
				IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
				IIF([as2].[guid] IS NULL, NULL, '''' + [as2].[guid] + ''''),
				IIF([as3].[guid] IS NULL, NULL, '''' + [as3].[guid] + ''''),
				IIF([ast1].[guid] IS NULL, NULL, '''' + [ast1].[guid] + ''''),
				1,
				[ins].[type_id],
				IIF([ins].[opened_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[opened_date], 121) + ''''),
				IIF([asr1].[guid] IS NULL, NULL, '''' + [asr1].[guid] + ''''),
				IIF([ins].[closed_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[closed_date], 121) + ''''),
				IIF([ast2].[guid] IS NULL, NULL, '''' + [ast2].[guid] + ''''),
				IIF([ins].[modified_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[modified_date], 121) + ''''),
				1
			) + 
			FORMATMESSAGE(
				@v_query_extra,
				IIF([acc1].[guid] IS NULL, NULL, '''' + [acc1].[guid] + ''''),
				IIF([acc2].[guid] IS NULL, NULL, '''' + [acc2].[guid] + ''''),
				IIF([ins].[state_name] IS NULL, NULL, '''' + [ins].[state_name] + ''''),
				IIF([ins].[impact_name] IS NULL, NULL, '''' + [ins].[impact_name] + ''''),
				IIF([ins].[responsible_name] IS NULL, NULL, '''' + [ins].[responsible_name] + ''''),
				IIF([ins].[reason_name] IS NULL, NULL, '''' + [ins].[reason_name] + ''''),
				IIF([ins].[state_color] IS NULL, NULL, '''' + [ins].[state_color] + ''''),
				IIF([ins].[group_name] IS NULL, NULL, '''' + [ins].[group_name] + ''''),
				IIF([ins].[sla_name] IS NULL, NULL, '''' + [ins].[sla_name] + ''''),
				IIF([ins].[uc_name] IS NULL, NULL, '''' + [ins].[uc_name] + ''''),
				IIF([ins].[ola_name] IS NULL, NULL, '''' + [ins].[ola_name] + ''''),
				[ins].[stage_id],
				IIF([ins].[author_name] IS NULL, NULL, '''' + [ins].[author_name] + ''''),
				IIF([ins].[modifier_name] IS NULL, NULL, '''' + [ins].[modifier_name] + ''''),
				IIF([ins].[project_name] IS NULL, NULL, '''' + [ins].[project_name] + ''''),
				IIF([ins].[type_name] IS NULL, NULL, '''' + [ins].[type_name] + ''''),
				IIF([ins].[stage_name] IS NULL, NULL, '''' + [ins].[stage_name] + ''''),
				[ins].[state_final],
				IIF([ins].[note] IS NULL, NULL, '''' + [ins].[note] + ''''),
				NULL
			) + 
			FORMATMESSAGE(
				@v_query_extra2,
				NULL,
				IIF([ins].[priority_sla] IS NULL, NULL, '''' + [ins].[priority_sla] + ''''),
				CAST([ins].[is_delete] AS int),
				IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
			)
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASDK_SERVICE] [asv1] ON [asv1].[id] = [ins].[id]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[project_id]
		LEFT JOIN [dbo].[ASDK_SLA] [as1] ON [as1].[SLA_ID] = [ins].[sla_id]
		LEFT JOIN [dbo].[ASDK_SLA] [as2] ON [as2].[SLA_ID] = [ins].[uc_id]
		LEFT JOIN [dbo].[ASDK_SLA] [as3] ON [as3].[SLA_ID] = [ins].[ola_id]
		LEFT JOIN [dbo].[ASMS_STATUS] [ast1] ON [ast1].[stat_id] = [ins].[state_id]
		LEFT JOIN [dbo].[ASMS_STATUS_REASON] [asr1] ON [asr1].[reas_id] = [ins].[reason_id]
		LEFT JOIN [dbo].[ASMS_STATUS] [ast2] ON [ast2].[stat_id] = [ins].[previous_state_id]
		LEFT JOIN [dbo].[ASMS_COST_CENTER] [acc1] ON [acc1].[id] = [ins].[cost_center_id]
		LEFT JOIN [dbo].[ASMS_COST_CENTER] [acc2] ON [acc2].[id] = [ins].[income_center_id]
		LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acco1] ON [acco1].[code_id] = [ins].[impact_id]
		LEFT JOIN [dbo].[AFW_GROUPS] [ag1] ON [ag1].[grou_id] = [ins].[group_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_SERVICE_TYPE]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_SERVICE_TYPE]
   ON  [dbo].[ASDK_SERVICE_TYPE]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (service_id, type_id, model_id, cost_model_id, category_id, script_id, guid) VALUES((SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), ' +
								'%d, (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), (SELECT AMCP1.mod_id FROM ASDK_MODEL_COST_PRICE AMCP1 WHERE AMCP1.guid = %s), ' +
								'(SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s), (SELECT AS1.id FROM ASMS_SCRIPT AS1 WHERE AS1.guid = %s), ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET service_id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s), type_id = %d, model_id = (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), ' +
								'cost_model_id = (SELECT AMCP1.mod_id FROM ASDK_MODEL_COST_PRICE AMCP1 WHERE AMCP1.guid = %s), category_id = (SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s), ' +
								'script_id = (SELECT AS1.id FROM ASMS_SCRIPT AS1 WHERE AS1.guid = %s) WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([asv1].[guid] IS NULL, NULL, '''' + [asv1].[guid] + ''''),
					[ins].[type_id],
					IIF([am1].[guid] IS NULL, NULL, '''' + [am1].[guid] + ''''),
					IIF([amcp1].[guid] IS NULL, NULL, '''' + [amcp1].[guid] + ''''),
					IIF([ac1].[guid] IS NULL, NULL, '''' + [ac1].[guid] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASDK_SERVICE] [asv1] ON [asv1].[id] = [ins].[service_id]
			LEFT JOIN [dbo].[ASMS_MODEL] [am1] ON [am1].[id] = [ins].[model_id]
			LEFT JOIN [dbo].[ASDK_MODEL_COST_PRICE] [amcp1] ON [amcp1].[mod_id] = [ins].[cost_model_id]
			LEFT JOIN [dbo].[ASDK_CATEGORY] [ac1] ON [ac1].[ctg_index] = [ins].[category_id]
			LEFT JOIN [dbo].[ASMS_SCRIPT] [as1] ON [as1].[id] = [ins].[script_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_SLA]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_SLA]
   ON  [dbo].[ASDK_SLA]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_query_extra VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (NAME, DESCRIPCION, DATE_START, DATE_FINISH, FL_INT_SLASTATE, sla_date_review, FL_INT_FINISH_HAS_ALARM, FL_INT_FINISH_LIMITDAYS, FL_INT_REVIEW_HAS_ALARM, FL_INT_REVIEW_LIMITDAYS, contract_type, proj_id, ' 
							+ 'reason_id, finish_template_id, review_template_id, sla_date_open, sla_date_close, previous_status_id, sla_modified_date, sla_modifier_id, calendar_id, finish_schedule_flag, review_schedule_flag, is_delete, guid) ' 
							+ 'VALUES (''%s'', %s, %s, %s, (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), %s, %d, %d, %d, %d, %d, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), ' 
							+ '(SELECT ASR1.reas_id FROM ASMS_STATUS_REASON ASR1 WHERE ASR1.guid = %s), (SELECT AMT1.id FROM ASMS_MAIL_TEMPLATE AMT1 WHERE AMT1.guid = %s), (SELECT AMT2.id FROM ASMS_MAIL_TEMPLATE AMT2 WHERE AMT2.guid = %s), %s, %s, (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), %s, ';
			SET @v_query_extra = '%d, (SELECT ACD1.CALENDAR_ID FROM ASMS_CALENDAR ACD1 WHERE ACD1.guid = %s), %d, %d, %d, %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET NAME = ''%s'', DESCRIPCION = %s, DATE_START = %s, DATE_FINISH = %s, FL_INT_SLASTATE = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), sla_date_review = %s, FL_INT_FINISH_HAS_ALARM = %d, ' 
							+ 'FL_INT_FINISH_LIMITDAYS = %d, FL_INT_REVIEW_HAS_ALARM = %d, FL_INT_REVIEW_LIMITDAYS = %d, contract_type = %d, proj_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), reason_id = (SELECT ASR1.reas_id FROM ASMS_STATUS_REASON ASR1 WHERE ASR1.guid = %s), ' 
							+ 'finish_template_id = (SELECT AMT1.id FROM ASMS_MAIL_TEMPLATE AMT1 WHERE AMT1.guid = %s), review_template_id = (SELECT AMT2.id FROM ASMS_MAIL_TEMPLATE AMT2 WHERE AMT2.guid = %s), sla_date_open = %s, sla_date_close = %s, previous_status_id = (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), sla_modified_date = %s, ';
			SET @v_query_extra = 'sla_modifier_id = %d, calendar_id = (SELECT ACD1.CALENDAR_ID FROM ASMS_CALENDAR ACD1 WHERE ACD1.guid = %s), finish_schedule_flag = %d, review_schedule_flag = %d, is_delete = %d WHERE guid = %s';
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				[ins].[NAME],
				IIF([ins].[DESCRIPCION] IS NULL, NULL, '''' + [ins].[DESCRIPCION] + ''''),
				IIF([ins].[DATE_START] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[DATE_START], 121) + ''''),
				IIF([ins].[DATE_FINISH] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[DATE_FINISH], 121) + ''''),
				IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
				IIF([ins].[sla_date_review] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[sla_date_review], 121) + ''''),
				CAST([ins].[FL_INT_FINISH_HAS_ALARM] as int),
				[ins].[FL_INT_FINISH_LIMITDAYS],
				CAST([ins].[FL_INT_REVIEW_HAS_ALARM] as int),
				[ins].[FL_INT_REVIEW_LIMITDAYS],
				[ins].[contract_type],
				IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
				IIF([asr1].[guid] IS NULL, NULL, '''' + [asr1].[guid] + ''''),
				IIF([amt1].[guid] IS NULL, NULL, '''' + [amt1].[guid] + ''''),
				IIF([amt2].[guid] IS NULL, NULL, '''' + [amt2].[guid] + ''''),
				IIF([ins].[sla_date_open] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[sla_date_open], 121) + ''''),
				IIF([ins].[sla_date_close] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[sla_date_close], 121) + ''''),
				IIF([as2].[guid] IS NULL, NULL, '''' + [as2].[guid] + ''''),
				IIF([ins].[sla_modified_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[sla_modified_date], 121) + '''')
			) + 
			FORMATMESSAGE(
				@v_query_extra,
				1,
				IIF([acd1].[guid] IS NULL, NULL, '''' + [acd1].[guid] + ''''),
				CAST([ins].[finish_schedule_flag] as int),
				CAST([ins].[review_schedule_flag] as int),
				CAST([ins].[is_delete] as int),
				IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
			)
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_STATUS] [as1] ON [as1].[stat_id] = [ins].[FL_INT_SLASTATE]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[proj_id]
		LEFT JOIN [dbo].[ASMS_STATUS_REASON] [asr1] ON [asr1].[reas_id] = [ins].[reason_id]
		LEFT JOIN [dbo].[ASMS_STATUS] [as2] ON [as2].[stat_id] = [ins].[previous_status_id]
		LEFT JOIN [dbo].[ASMS_CALENDAR] [acd1] ON [acd1].[CALENDAR_ID] = [ins].[calendar_id]
		LEFT JOIN [dbo].[ASMS_MAIL_TEMPLATE] [amt1] ON [amt1].[id] = [ins].[finish_template_id]
		LEFT JOIN [dbo].[ASMS_MAIL_TEMPLATE] [amt2] ON [amt2].[id] = [ins].[review_template_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_SLA_CATEGORY]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_SLA_CATEGORY]
   ON  [dbo].[ASDK_SLA_CATEGORY]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (sla_id, category_id, ser_id) VALUES((SELECT AS1.SLA_ID FROM ASDK_SLA AS1 WHERE AS1.guid = %s), (SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s), (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s))';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET sla_id = (SELECT AS1.SLA_ID FROM ASDK_SLA AS1 WHERE AS1.guid = %s) WHERE category_id = (SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s) AND ser_id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s)';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([asl1].[guid] IS NULL, NULL, '''' + [asl1].[guid] + ''''),
					IIF([ac1].[guid] IS NULL, NULL, '''' + [ac1].[guid] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + '''')
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASDK_SLA] [asl1] ON [asl1].[SLA_ID] = [ins].[sla_id]
			JOIN [dbo].[ASDK_CATEGORY] [ac1] ON [ac1].[ctg_index] = [ins].[category_id]
			JOIN [dbo].[ASDK_SERVICE] [as1] ON [as1].[id] = [ins].[ser_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE category_id = (SELECT AC1.ctg_index FROM ASDK_CATEGORY AC1 WHERE AC1.guid = %s) AND ser_id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s)';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ac1].[guid] IS NULL, NULL, '''' + [ac1].[guid] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + '''')
				)
			FROM [deleted] [del]
			JOIN [dbo].[ASDK_CATEGORY] [ac1] ON [ac1].[ctg_index] = [del].[category_id]
			JOIN [dbo].[ASDK_SERVICE] [as1] ON [as1].[id] = [del].[ser_id]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASDK_SLA_LOCATION]...';


GO
CREATE TRIGGER [dbo].[TRG_ASDK_SLA_LOCATION]
   ON  [dbo].[ASDK_SLA_LOCATION]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (sla_id, location_id, ser_id) VALUES((SELECT AS1.SLA_ID FROM ASDK_SLA AS1 WHERE AS1.guid = %s), (SELECT AL1.id FROM ASMS_LOCATION AL1 WHERE AL1.guid = %s), (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s))';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET sla_id = (SELECT AS1.SLA_ID FROM ASDK_SLA AS1 WHERE AS1.guid = %s) WHERE location_id = (SELECT AL1.id FROM ASMS_LOCATION AL1 WHERE AL1.guid = %s) AND ser_id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s)';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([asl1].[guid] IS NULL, NULL, '''' + [asl1].[guid] + ''''),
					IIF([al1].[guid] IS NULL, NULL, '''' + [al1].[guid] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + '''')
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASDK_SLA] [asl1] ON [asl1].[SLA_ID] = [ins].[sla_id]
			JOIN [dbo].[ASMS_LOCATION] [al1] ON [al1].[id] = [ins].[location_id]
			JOIN [dbo].[ASDK_SERVICE] [as1] ON [as1].[id] = [ins].[ser_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE location_id = (SELECT AL1.id FROM ASMS_LOCATION AL1 WHERE AL1.guid = %s) AND ser_id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s)';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([al1].[guid] IS NULL, NULL, '''' + [al1].[guid] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + '''')
				)
			FROM [deleted] [del]
			JOIN [dbo].[ASMS_LOCATION] [al1] ON [al1].[id] = [del].[location_id]
			JOIN [dbo].[ASDK_SERVICE] [as1] ON [as1].[id] = [del].[ser_id]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_APPROVALS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_APPROVALS]
   ON  [dbo].[ASMS_APPROVALS]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;
	-- TODO: Validar server_id
	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);

		DECLARE @TT_mail_account_ids TABLE
		(
			Id INT NOT NULL
		);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_query_extra VARCHAR(MAX);
		DECLARE @v_operation INT;
		
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			
			INSERT INTO @TT_mail_account_ids
			SELECT [ama1].[maac_id]
			FROM [inserted] [ins]
			JOIN [dbo].[AFW_MAIL_ACCOUNT] [ama1] ON [ama1].[maac_id] = [ins].[server_id];

			IF EXISTS (SELECT * FROM @TT_mail_account_ids)
			BEGIN
				BEGIN TRY

					SET @v_operation = 0;
					SET @v_table_name = 'AFW_MAIL_ACCOUNT';
					SET @v_query = 'IF NOT EXISTS (SELECT * FROM %s AMA WHERE AMA.maac_sender = ''%s'' AND AMA.maac_server_name = ''%s'') ' +
									'INSERT INTO %s (maac_server_name, maac_server_alias, maac_user_account, maac_user_password, maac_is_ssl, maac_sender_name, maac_port, maac_sender) ' +
									'VALUES(''%s'', %s, %s, %s, %d, %s, %d, ''%s'')';

					INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
					SELECT 
						@v_change_set_id, 
						@v_operation, 
						@v_table_name, 
						FORMATMESSAGE(
							@v_query,
							@v_table_name,
							[amc1].[maac_sender],
							[amc1].[maac_server_name],
							@v_table_name,
							[amc1].[maac_server_name],
							IIF([amc1].[maac_server_alias] IS NULL, NULL, '''' + [amc1].[maac_server_alias] + ''''),
							IIF([amc1].[maac_user_account] IS NULL, NULL, '''' + [amc1].[maac_user_account] + ''''),
							IIF([amc1].[maac_user_password] IS NULL, NULL, '''' + [amc1].[maac_user_password] + ''''),
							CAST([amc1].[maac_is_ssl] as int),
							IIF([amc1].[maac_sender_name] IS NULL, NULL, '''' + [amc1].[maac_sender_name] + ''''),
							[amc1].[maac_port],
							[amc1].[maac_sender]
						)
					FROM [dbo].[AFW_MAIL_ACCOUNT] [amc1] 
					WHERE [amc1].[maac_id] IN (SELECT * FROM @TT_mail_account_ids)
				END TRY
				BEGIN CATCH
					PRINT 'Error';
				END CATCH
			END

			SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (name, description, status_id, by_ammount, by_percent, approved_status_id, refused_status_id, approved_reason_id, refused_reason_id, ' +
								'more_status_id, more_reason_id, model_id, item_type_id, project_id, is_active, template_id, server_id, profile_id, responsible_boss_approve, customer_boss_approve, approved_type_id, guid) ' +
								'VALUES (''%s'', %s, (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), %d, %d, (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), ' +
								'(SELECT AS3.stat_id FROM ASMS_STATUS AS3 WHERE AS3.guid = %s), (SELECT ASR1.reas_id FROM ASMS_STATUS_REASON ASR1 WHERE ASR1.guid = %s), (SELECT ASR2.reas_id FROM ASMS_STATUS_REASON ASR2 WHERE ASR2.guid = %s), ' +
								'(SELECT AS4.stat_id FROM ASMS_STATUS AS4 WHERE AS4.guid = %s), (SELECT ASR3.reas_id FROM ASMS_STATUS_REASON ASR3 WHERE ASR3.guid = %s), (SELECT AM.id FROM ASMS_MODEL AM WHERE AM.guid = %s), %d, ' +
								'(SELECT AP.proj_id FROM ASMS_PROJECTS AP WHERE AP.proj_guid = %s), %d, (SELECT AMT1.id FROM ASMS_MAIL_TEMPLATE AMT1 WHERE AMT1.guid = %s), ';
				SET @v_query_extra = '(SELECT AMA.maac_id FROM AFW_MAIL_ACCOUNT AMA WHERE AMA.maac_sender = %s AND AMA.maac_server_name = %s), (SELECT AMP1.id FROM ASMS_MODELPROFILES AMP1 WHERE AMP1.guid = %s), %d, %d, %d, %s)';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET name = ''%s'', description = %s, status_id = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), by_ammount = %d, by_percent = %d, ' +
								'approved_status_id = (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), refused_status_id = (SELECT AS3.stat_id FROM ASMS_STATUS AS3 WHERE AS3.guid = %s), ' +
								'approved_reason_id = (SELECT ASR1.reas_id FROM ASMS_STATUS_REASON ASR1 WHERE ASR1.guid = %s), refused_reason_id = (SELECT ASR2.reas_id FROM ASMS_STATUS_REASON ASR2 WHERE ASR2.guid = %s), ' +
								'more_status_id = (SELECT AS4.stat_id FROM ASMS_STATUS AS4 WHERE AS4.guid = %s), more_reason_id = (SELECT ASR3.reas_id FROM ASMS_STATUS_REASON ASR3 WHERE ASR3.guid = %s), ' +
								'model_id = (SELECT AM.id FROM ASMS_MODEL AM WHERE AM.guid = %s), item_type_id = %d, project_id = (SELECT AP.proj_id FROM ASMS_PROJECTS AP WHERE AP.proj_guid = %s), is_active = %d, ' +
								'template_id = (SELECT AMT1.id FROM ASMS_MAIL_TEMPLATE AMT1 WHERE AMT1.guid = %s), ';
				SET @v_query_extra = 'server_id = (SELECT AMA.maac_id FROM AFW_MAIL_ACCOUNT AMA WHERE AMA.maac_sender = %s AND AMA.maac_server_name = %s), profile_id = (SELECT AMP1.id FROM ASMS_MODELPROFILES AMP1 WHERE AMP1.guid = %s), responsible_boss_approve = %d, customer_boss_approve = %d, approved_type_id = %d WHERE guid = %s';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[name],
					IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
					[ins].[by_ammount],
					[ins].[by_percent],
					IIF([as2].[guid] IS NULL, NULL, '''' + [as2].[guid] + ''''),
					IIF([as3].[guid] IS NULL, NULL, '''' + [as3].[guid] + ''''),
					IIF([asr1].[guid] IS NULL, NULL, '''' + [asr1].[guid] + ''''),
					IIF([asr2].[guid] IS NULL, NULL, '''' + [asr2].[guid] + ''''),
					IIF([as4].[guid] IS NULL, NULL, '''' + [as4].[guid] + ''''),
					IIF([asr3].[guid] IS NULL, NULL, '''' + [asr3].[guid] + ''''),
					IIF([am].[guid] IS NULL, NULL, '''' + [am].[guid] + ''''),
					[ins].[item_type_id],
					IIF([ap].[proj_guid] IS NULL, NULL, '''' + [ap].[proj_guid] + ''''),
					[ins].[is_active],
					IIF([amt1].[guid] IS NULL, NULL, '''' + [amt1].[guid] + '''')
				) +
				FORMATMESSAGE(
					@v_query_extra,
					IIF([ama1].[maac_sender] IS NULL, NULL, '''' + [ama1].[maac_sender] + ''''),
					IIF([ama1].[maac_server_name] IS NULL, NULL, '''' + [ama1].[maac_server_name] + ''''),
					IIF([amp1].[guid] IS NULL, NULL, '''' + [amp1].[guid] + ''''),
					CAST([ins].[responsible_boss_approve] AS int),
					CAST([ins].[customer_boss_approve] AS int),
					[ins].[approved_type_id],
					IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASMS_PROJECTS] [ap] ON [ap].[proj_id] = [ins].[project_id]
			LEFT JOIN [dbo].[ASMS_MODEL] [am] ON [am].[id] = [ins].[model_id]
			JOIN [dbo].[ASMS_STATUS] [as1] ON [as1].[stat_id] = [ins].[status_id]
			LEFT JOIN [dbo].[ASMS_STATUS] [as2] ON [as2].[stat_id] = [ins].[approved_status_id]
			LEFT JOIN [dbo].[ASMS_STATUS] [as3] ON [as3].[stat_id] = [ins].[refused_status_id]
			LEFT JOIN [dbo].[ASMS_STATUS_REASON] [asr1] ON [asr1].[reas_id] = [ins].[approved_reason_id]
			LEFT JOIN [dbo].[ASMS_STATUS_REASON] [asr2] ON [asr2].[reas_id] = [ins].[refused_reason_id]
			LEFT JOIN [dbo].[ASMS_STATUS] [as4] ON [as4].[stat_id] = [ins].[more_status_id]
			LEFT JOIN [dbo].[ASMS_STATUS_REASON] [asr3] ON [asr3].[reas_id] = [ins].[more_reason_id]
			LEFT JOIN [dbo].[ASMS_MAIL_TEMPLATE] [amt1] ON [amt1].[id] = [ins].[template_id]
			LEFT JOIN [dbo].[ASMS_MODELPROFILES] [amp1] ON [amp1].[id] = [ins].[profile_id]
			LEFT JOIN [dbo].[AFW_MAIL_ACCOUNT] [ama1] ON [ama1].[maac_id] = [ins].[server_id]

		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END
		

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_CALENDAR]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_CALENDAR]
   ON  [dbo].[ASMS_CALENDAR]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;
	
	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (CALENDAR_NAME, CALENDAR_DESCRIPTION, SDB_LAST_SHOT, time_zone, next_active_date, next_inactive_date, is_change, guid) VALUES (''%s'', ''%s'', %s, %s, %s, %s, %d, %s)';

				INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
				SELECT 
					@v_change_set_id, 
					@v_operation, 
					@v_table_name, 
					FORMATMESSAGE(
						@v_query,
						@v_table_name,
						[ins].[CALENDAR_NAME],
						[ins].[CALENDAR_DESCRIPTION],
						IIF([ins].[SDB_LAST_SHOT] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[SDB_LAST_SHOT], 121) + ''''),
						IIF([ins].[time_zone] IS NULL, NULL, '''' + [ins].[time_zone] + ''''),
						IIF([ins].[next_active_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[next_active_date], 121) + ''''),
						IIF([ins].[next_inactive_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[next_inactive_date], 121) + ''''),
						CAST([ins].[is_change] AS int),
						IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
					)
				FROM [inserted] [ins]
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET CALENDAR_NAME = ''%s'', CALENDAR_DESCRIPTION = ''%s'', SDB_LAST_SHOT = %s, time_zone = %s, next_active_date = %s, next_inactive_date = %s, is_change = %d WHERE guid = %s';

				INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
				SELECT 
					@v_change_set_id, 
					@v_operation, 
					@v_table_name, 
					FORMATMESSAGE(
						@v_query,
						@v_table_name,
						[ins].[CALENDAR_NAME],
						[ins].[CALENDAR_DESCRIPTION],
						IIF([ins].[SDB_LAST_SHOT] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[SDB_LAST_SHOT], 121) + ''''),
						IIF([ins].[time_zone] IS NULL, NULL, '''' + [ins].[time_zone] + ''''),
						IIF([ins].[next_active_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[next_active_date], 121) + ''''),
						IIF([ins].[next_inactive_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[next_inactive_date], 121) + ''''),
						CAST([ins].[is_change] AS int),
						IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
					)
				FROM [inserted] [ins]
				JOIN [deleted] [del] ON [del].[CALENDAR_ID] = [ins].[CALENDAR_ID]
				WHERE [ins].[SDB_LAST_SHOT] = [del].[SDB_LAST_SHOT] AND [ins].[next_active_date] = [del].[next_active_date] AND [ins].[next_inactive_date] = [del].[next_inactive_date]
			END
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = %s';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([del].[guid] IS NULL, NULL, '''' + [del].[guid] + '''')
				)
			FROM [deleted] [del]
		END
		

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_CALENDAR_DAYS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_CALENDAR_DAYS]
   ON  [dbo].[ASMS_CALENDAR_DAYS]
   AFTER INSERT, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (CALENDAR_ID, FECHA, guid) VALUES ((SELECT ACD1.CALENDAR_ID FROM ASMS_CALENDAR ACD1 WHERE ACD1.guid = %s), ''%s'', ''%s'')';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ac1].[guid] IS NULL, NULL, '''' + [ac1].[guid] + ''''),
					CONVERT(VARCHAR(MAX), [ins].[FECHA], 121),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_CALENDAR] [ac1] ON [ac1].[CALENDAR_ID] = [ins].[CALENDAR_ID]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_CALENDAR_HOURS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_CALENDAR_HOURS]
   ON  [dbo].[ASMS_CALENDAR_HOURS]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (cale_id, start_date, end_date, guid) VALUES ((SELECT ACD1.CALENDAR_ID FROM ASMS_CALENDAR ACD1 WHERE ACD1.guid = %s), %s, %s, ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET cale_id = (SELECT ACD1.CALENDAR_ID FROM ASMS_CALENDAR ACD1 WHERE ACD1.guid = %s), start_date = %s, end_date = %s WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ac1].[guid] IS NULL, NULL, '''' + [ac1].[guid] + ''''),
					IIF([ins].[start_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[start_date], 121) + ''''),
					IIF([ins].[end_date] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[end_date], 121) + ''''),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASMS_CALENDAR] [ac1] ON [ac1].[CALENDAR_ID] = [ins].[cale_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END
		

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_COST_CENTER]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_COST_CENTER]
   ON  [dbo].[ASMS_COST_CENTER]
   AFTER INSERT, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (name, description, code, type, parent_id, guid) VALUES (%s, %s, %s, %d, (SELECT ACC1.id FROM ASMS_COST_CENTER ACC1 WHERE ACC1.guid = %s), %s)';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ins].[name] IS NULL, NULL, '''' + [ins].[name] + ''''),
					IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
					IIF([ins].[code] IS NULL, NULL, '''' + [ins].[code] + ''''),
					[ins].[type],
					IIF([acc1].[guid] IS NULL, NULL, '''' + [acc1].[guid] + ''''),
					IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASMS_COST_CENTER] [acc1] ON [acc1].id = [ins].[parent_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_COST_CENTER_PROJECT]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_COST_CENTER_PROJECT]
   ON  [dbo].[ASMS_COST_CENTER_PROJECT]
   AFTER INSERT, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (proj_id, cost_id) VALUES ((SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), (SELECT ACC1.id FROM ASMS_COST_CENTER ACC1 WHERE ACC1.guid = %s))';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
					IIF([acc1].[guid] IS NULL, NULL, '''' + [acc1].[guid] + '''')
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_COST_CENTER] [acc1] ON [acc1].id = [ins].[cost_id]
			JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[proj_id] 
		END
		ELSE
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'DELETE FROM %s WHERE proj_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s) AND cost_id = (SELECT ACC1.id FROM ASMS_COST_CENTER ACC1 WHERE ACC1.guid = %s)';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
					IIF([acc1].[guid] IS NULL, NULL, '''' + [acc1].[guid] + '''')
				)
			FROM [deleted] [del]
			JOIN [dbo].[ASMS_COST_CENTER] [acc1] ON [acc1].id = [del].[cost_id]
			JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [del].[proj_id] 
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_FIELDS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_FIELDS]
   ON  [dbo].[ASMS_FIELDS]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		DECLARE @TT_catalog_ids TABLE 
		(
			Id INT NOT NULL
		);

		INSERT INTO @TT_catalog_ids
		SELECT DISTINCT [AC].[cata_id]
		FROM [inserted] [ins]
		JOIN [dbo].[AFW_CATALOG] [AC] ON [AC].[cata_id] = [ins].[catalog_id]
		WHERE [cata_type] = 'N' AND [AC].[cata_builtin] = 0

		IF EXISTS (SELECT * FROM @TT_catalog_ids)
		BEGIN
			SET @v_table_name = 'AFW_CATALOG';
			SET @v_operation = 0;
			SET @v_query = 'IF NOT EXISTS (SELECT * FROM %s ac WHERE ac.cata_name = ''%s'' AND ac.cata_parent_id IS NULL)' +
							'INSERT INTO %s (cata_name, cata_type, cata_status, cata_description, cata_num_rows, cata_datatype, cata_mask, cata_max_length, cata_parent_id, cata_builtin) ' +
							'VALUES(''%s'', ''%s'', %d, %s, %d, %s, %s, %d, %s, %d);';

			BEGIN TRY
				INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
				SELECT
					@v_change_set_id, 
					@v_operation, 
					@v_table_name, 
					FORMATMESSAGE(
						@v_query,
						@v_table_name,
						[ac].[cata_name],
						@v_table_name,
						[ac].[cata_name],
						[ac].[cata_type],
						[ac].[cata_status],
						IIF([ac].[cata_description] IS NULL, NULL, '''' + [ac].[cata_description] + ''''),
						[ac].[cata_num_rows],
						IIF([ac].[cata_datatype] IS NULL, NULL, '''' + [ac].[cata_datatype] + ''''),
						IIF([ac].[cata_mask] IS NULL, NULL, '''' + [ac].[cata_mask] + ''''),
						[ac].[cata_max_length],
						[ac].[cata_parent_id],
						CAST([ac].[cata_builtin] as int)
					)
				FROM [dbo].[AFW_CATALOG] [ac] 
				WHERE [ac].[cata_id] IN (SELECT Id FROM @TT_catalog_ids);

			END TRY
			BEGIN CATCH
				PRINT 'Error';
			END CATCH

			SET @v_table_name = 'AFW_CATALOG_CODE';
			SET @v_operation = 0;
			SET @v_query = 'IF NOT EXISTS (SELECT * FROM %s acc WHERE acc.code_cata_id = %d AND acc.code_parent_id IS NULL AND acc.code_value = ''%s'')' +
							'INSERT INTO %s (code_cata_id, code_order, code_key, code_value, code_description, code_status, code_additional, code_parent_id) ' +
							'VALUES(%d, %d, ''%s'', ''%s'', %s, %d, %s, %d);';

			BEGIN TRY
				INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
				SELECT
					@v_change_set_id, 
					@v_operation, 
					@v_table_name, 
					FORMATMESSAGE(
						@v_query,
						@v_table_name,
						[acc].[code_cata_id],
						[acc].[code_value],
						@v_table_name,
						[acc].[code_cata_id],
						[acc].[code_order],
						[acc].[code_key],
						[acc].[code_value],
						IIF([acc].[code_description] IS NULL, NULL, '''' + [acc].[code_description] + ''''),
						[acc].[code_status],
						IIF([acc].[code_additional] IS NULL, NULL, '''' + [acc].[code_additional] + ''''),
						[acc].[code_parent_id]
					)
				FROM [dbo].[AFW_CATALOG_CODE] [acc] 
				WHERE [acc].[code_cata_id] IN (SELECT Id FROM @TT_catalog_ids)
			END TRY
			BEGIN CATCH
				PRINT 'Error';
			END CATCH
		END

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (name, caption, description, field_type_id, field_order, model_id, item_type_id, project_id, builtin_id, catalog_id, datasource_id, is_delete, guid) ' + 
							'VALUES (''%s'', %s, ''%s'', %d, %d, (SELECT AM.id FROM ASMS_MODEL AM WHERE AM.guid = %s), %d, (SELECT AP.proj_id FROM ASMS_PROJECTS AP WHERE AP.proj_guid = %s), ' +
							'(SELECT AFB1.id FROM ASMS_FIELDS_BUILTIN AFB1 WHERE AFB1.item_type_id = %d AND AFB1.name = %s), (SELECT ac.cata_id FROM AFW_CATALOG ac WHERE ac.cata_name = %s AND ac.cata_parent_id IS NULL), (SELECT AFD1.id FROM ASMS_FIELDS_DATASOURCE AFD1 WHERE AFD1.guid = %s), %d, ''%s'')';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET name = ''%s'', caption = %s, description = ''%s'', field_type_id = %d, field_order = %d, model_id = (SELECT AM.id FROM ASMS_MODEL AM WHERE AM.guid = %s), ' + 
							'item_type_id = %d, project_id = (SELECT AP.proj_id FROM ASMS_PROJECTS AP WHERE AP.proj_guid = %s), builtin_id = (SELECT AFB1.id FROM ASMS_FIELDS_BUILTIN AFB1 WHERE AFB1.item_type_id = %d AND AFB1.name = %s), ' +
							'catalog_id = (SELECT ac.cata_id FROM AFW_CATALOG ac WHERE ac.cata_name = %s AND ac.cata_parent_id IS NULL), datasource_id = (SELECT AFD1.id FROM ASMS_FIELDS_DATASOURCE AFD1 WHERE AFD1.guid = %s), is_delete = %d WHERE guid = ''%s''';
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query], [observations])
		SELECT
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				[ins].[name],
				IIF([ins].[caption] IS NULL, NULL, '''' + [ins].[caption] + ''''),
				[ins].[description],
				[ins].[field_type_id],
				[ins].[field_order],
				IIF([am].[guid] IS NULL, NULL, '''' + [am].[guid] + ''''),
				[ins].[item_type_id],
				IIF([ap].[proj_guid] IS NULL, NULL, '''' + [ap].[proj_guid] + ''''),
				[afb1].[item_type_id],
				IIF([afb1].[name] IS NULL, NULL, '''' + [afb1].[name] + ''''),
				IIF([ins].[field_type_id] <> 11, NULL, IIF([ac1].[cata_name] IS NULL, NULL, '''' + [ac1].[cata_name] + '''')),
				IIF([afd1].[guid] IS NULL, NULL, '''' + [afd1].[guid] + ''''),
				CAST([ins].[is_delete] AS int),
				[ins].[guid]
			),
			IIF([ins].[field_type_id] = 12, '[{"Concept":"CatalogReviewOperation","Parameters":[]}]', NULL)
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap] ON [ap].[proj_id] = [ins].[project_id]
		LEFT JOIN [dbo].[ASMS_MODEL] [am] ON [am].[id] = [ins].[model_id]
		LEFT JOIN [dbo].[ASMS_FIELDS_BUILTIN] [afb1] ON [afb1].[id] = [ins].[builtin_id]
		LEFT JOIN [dbo].[ASMS_FIELDS_DATASOURCE] [afd1] ON [afd1].[id] = [ins].[datasource_id]
		LEFT JOIN [dbo].[AFW_CATALOG] [ac1] ON [ac1].[cata_id] = [ins].[catalog_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_FIELDS_DATASOURCE]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_FIELDS_DATASOURCE]
   ON  [dbo].[ASMS_FIELDS_DATASOURCE]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (value, guid) VALUES (%s, %s)';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET value = %s WHERE guid = %s';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ins].[value] IS NULL, NULL, '''' + [ins].[value] + ''''),
					IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
				)
			FROM [inserted] [ins]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = %s';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([del].[guid] IS NULL, NULL, '''' + [del].[guid] + '''')
				)
			FROM [deleted] [del]
		END
		


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_FIELDS_STATUS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_FIELDS_STATUS]
   ON  [dbo].[ASMS_FIELDS_STATUS]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (visible, editable, mandatory, field_id, status_id, console_id) VALUES (%d, %d, %d, (SELECT AF1.id FROM ASMS_FIELDS AF1 WHERE AF1.guid = %s), (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), %d)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET visible = %d, editable = %d, mandatory = %d WHERE field_id = (SELECT AF1.id FROM ASMS_FIELDS AF1 WHERE AF1.guid = %s) AND status_id = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s) AND console_id = %d';
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				CAST([ins].[visible] AS int),
				CAST([ins].[editable] AS int),
				CAST([ins].[mandatory] AS int),
				IIF([af1].[guid] IS NULL, NULL, '''' + [af1].[guid] + ''''),
				IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
				[ins].[console_id]
			)
		FROM [inserted] [ins]
		JOIN [dbo].[ASMS_STATUS] [as1] ON [as1].[stat_id] = [ins].[status_id]
		JOIN [dbo].[ASMS_FIELDS] [af1] ON [af1].[id] = [ins].[field_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_FIELDS_VALUES]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_FIELDS_VALUES]
   ON  [dbo].[ASMS_FIELDS_VALUES]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (field_id, value, parent_id, guid) VALUES ((SELECT AF.id FROM ASMS_FIELDS AF WHERE AF.guid = %s), %s, (SELECT AFV.id FROM ASMS_FIELDS_VALUES AFV WHERE AFV.guid = %s), ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET field_id = (SELECT AF.id FROM ASMS_FIELDS AF WHERE AF.guid = %s), value = %s, parent_id = (SELECT AFV.id FROM ASMS_FIELDS_VALUES AFV WHERE AFV.guid = %s) WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([af].[guid] IS NULL, NULL, '''' + [af].[guid] + ''''),
					IIF([ins].[value] IS NULL, NULL, '''' + [ins].[value] + ''''),
					IIF([afv].[guid] IS NULL, NULL, '''' + [afv].[guid] + ''''),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASMS_FIELDS] [af] ON [af].[id] = [ins].[field_id]
			LEFT JOIN [dbo].[ASMS_FIELDS_VALUES] [afv] ON [afv].[id] = [ins].[parent_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END
END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_FOLDER]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_FOLDER]
   ON  [dbo].[ASMS_FOLDER]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (ctg_caption, ctg_parent, ctg_imageindex, fl_str_hierarchy, fl_int_status_id, ctg_project_id, fl_str_description, fl_str_image, fl_int_image_id, guid) ' 
							+ 'VALUES (%s, (SELECT AF1.ctg_index FROM ASMS_FOLDER AF1 WHERE AF1.guid = %s), %d, %s, %d, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), %s, %s, %d, %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET ctg_caption = %s, ctg_parent = (SELECT AF1.ctg_index FROM ASMS_FOLDER AF1 WHERE AF1.guid = %s), ctg_imageindex = %d, fl_str_hierarchy = %s, fl_int_status_id = %d, ' 
							+ 'ctg_project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), fl_str_description = %s, fl_str_image = %s, fl_int_image_id = %d WHERE guid = %s';
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query], [observations])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				IIF([ins].[ctg_caption] IS NULL, NULL, '''' + [ins].[ctg_caption] + ''''),
				IIF([af1].[guid] IS NULL, NULL, '''' + [af1].[guid] + ''''),
				[ins].[ctg_imageindex],
				IIF([ins].[fl_str_hierarchy] IS NULL, NULL, '''' + [ins].[fl_str_hierarchy] + ''''),
				[ins].[fl_int_status_id],
				IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
				IIF([ins].[fl_str_description] IS NULL, NULL, '''' + [ins].[fl_str_description] + ''''),
				NULL,
				NULL,
				IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
			),
			'[{"Concept":"EmptyImageOperation","Parameters":[]}]'
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_FOLDER] [af1] ON [af1].[ctg_index] = [ins].[ctg_parent]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[ctg_project_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_FOLDER_ITEM]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_FOLDER_ITEM]
   ON  [dbo].[ASMS_FOLDER_ITEM]
   AFTER INSERT, DELETE
AS 
BEGIN
	SET NOCOUNT ON;
	-- Validar item_id
	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (type_id, folder_id, item_id) VALUES (%d, (SELECT AF1.ctg_index FROM ASMS_FOLDER AF1 WHERE AF1.guid = %s), (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s))';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[type_id],
					IIF([af1].[guid] IS NULL, NULL, '''' + [af1].[guid] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + '''')
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASMS_FOLDER] [af1] ON [af1].[ctg_index] = [ins].[folder_id]
			LEFT JOIN [dbo].[ASDK_SERVICE] [as1] ON [as1].[id] = [ins].[item_id]
			WHERE [ins].[type_id] = 5
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE type_id = %d AND folder_id = (SELECT AF1.ctg_index FROM ASMS_FOLDER AF1 WHERE AF1.guid = %s) AND item_id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s)';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[type_id],
					IIF([af1].[guid] IS NULL, NULL, '''' + [af1].[guid] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + '''')
				)
			FROM [deleted] [del]
			LEFT JOIN [dbo].[ASMS_FOLDER] [af1] ON [af1].[ctg_index] = [del].[folder_id]
			LEFT JOIN [dbo].[ASDK_SERVICE] [as1] ON [as1].[id] = [del].[item_id]
			WHERE [del].[type_id] = 5
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_FOLDER_ITEM_CLOSED]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_FOLDER_ITEM_CLOSED]
   ON  [dbo].[ASMS_FOLDER_ITEM_CLOSED]
   AFTER INSERT, DELETE
AS 
BEGIN
	SET NOCOUNT ON;
	-- Validar item_id
	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (type_id, folder_id, item_id) VALUES (%d, (SELECT AF1.ctg_index FROM ASMS_FOLDER AF1 WHERE AF1.guid = %s), (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s)';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[type_id],
					IIF([af1].[guid] IS NULL, NULL, '''' + [af1].[guid] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + '''')
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASMS_FOLDER] [af1] ON [af1].[ctg_index] = [ins].[folder_id]
			LEFT JOIN [dbo].[ASDK_SERVICE] [as1] ON [as1].[id] = [ins].[item_id]
			WHERE [ins].[type_id] = 5
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE type_id = %d AND folder_id = (SELECT AF1.ctg_index FROM ASMS_FOLDER AF1 WHERE AF1.guid = %s) AND item_id = (SELECT ASV1.id FROM ASDK_SERVICE ASV1 WHERE ASV1.guid = %s)';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[type_id],
					IIF([af1].[guid] IS NULL, NULL, '''' + [af1].[guid] + ''''),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + '''')
				)
			FROM [deleted] [del]
			LEFT JOIN [dbo].[ASMS_FOLDER] [af1] ON [af1].[ctg_index] = [del].[folder_id]
			LEFT JOIN [dbo].[ASDK_SERVICE] [as1] ON [as1].[id] = [del].[item_id]
			WHERE [del].[type_id] = 5
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_FORM_SECTIONS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_FORM_SECTIONS]
   ON  [dbo].[ASMS_FORM_SECTIONS]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (name, description, sec_order, form_id, guid) VALUES(''%s'', %s, %d, (SELECT AF1.id FROM ASMS_FORMS AF1 WHERE AF1.guid = ''%s''), ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET name = ''%s'', description = %s, sec_order = %d, form_id = (SELECT AF1.id FROM ASMS_FORMS AF1 WHERE AF1.guid = ''%s'') WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[name],
					IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
					[ins].[sec_order],
					[af1].[guid],
					[ins].[guid]
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_FORMS] [af1] ON [af1].[id] = [ins].[form_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_FORMS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_FORMS]
   ON  [dbo].[ASMS_FORMS]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (name, description, project_id, model_id, type_id, enable, guid) VALUES(''%s'', %s, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), %d, %d, ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET name = ''%s'', description = %s, project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), model_id = (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), type_id = %d, enable = %d WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[name],
					IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
					IIF([ap].[proj_guid] IS NULL, NULL, '''' + [ap].[proj_guid] + ''''),
					IIF([am].[guid] IS NULL, NULL, '''' + [am].[guid] + ''''),
					[ins].[type_id],
					CAST([ins].[enable] as int),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASMS_PROJECTS] [ap] ON [ap].[proj_id] = [ins].[project_id]
			LEFT JOIN [dbo].[ASMS_MODEL] [am] ON [am].[id] = [ins].[model_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_INTERFACE]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_INTERFACE]
   ON  [dbo].[ASMS_INTERFACE]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (builtin_id, label, model_id, project_id, item_type_id, guid) VALUES(%d, %s, (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), %d, ''%s'')';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET builtin_id = %d, label = %s, model_id = (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), item_type_id = %d WHERE guid = ''%s''';
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				[ins].[builtin_id],
				IIF([ins].[label] IS NULL, NULL, '''' + [ins].[label] + ''''),
				IIF([am].[guid] IS NULL, NULL, '''' + [am].[guid] + ''''),
				IIF([ap].[proj_guid] IS NULL, NULL, '''' + [ap].[proj_guid] + ''''),
				[ins].[item_type_id],
				[ins].[guid]
			)
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap] ON [ap].[proj_id] = [ins].[project_id]
		LEFT JOIN [dbo].[ASMS_MODEL] [am] ON [am].[id] = [ins].[model_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_INTERFACE_STATUS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_INTERFACE_STATUS]
   ON  [dbo].[ASMS_INTERFACE_STATUS]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (visible, editable, mandatory, interface_id, status_id, console_id) VALUES (%d, %d, %d, (SELECT AI1.id FROM ASMS_INTERFACE AI1 WHERE AI1.guid = %s), (%s), %d)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET visible = %d, editable = %d, mandatory = %d WHERE interface_id = (SELECT AI1.id FROM ASMS_INTERFACE AI1 WHERE AI1.guid = %s) AND status_id = (%s) AND console_id = %d';
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				CAST([ins].[visible] AS int),
				CAST([ins].[editable] AS int),
				CAST([ins].[mandatory] AS int),
				IIF([ai1].[guid] IS NULL, NULL, '''' + [ai1].[guid] + ''''),
				IIF([ins].[status_id] = 1 OR [ins].[status_id] = 0, 
					CAST([ins].[status_id] AS VARCHAR(1)), 
					IIF([as1].[guid] IS NULL, NULL, 'SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = ''' + [as1].[guid] + '''')),
				[ins].[console_id]
			)
		FROM [inserted] [ins]
		JOIN [dbo].[ASMS_INTERFACE] [ai1] ON [ai1].[id] = [ins].[interface_id]
		JOIN [dbo].[ASMS_STATUS] [as1] ON [as1].[stat_id] = [ins].[status_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_LOCATION]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_LOCATION]
   ON  [dbo].[ASMS_LOCATION]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		IF EXISTS (SELECT * FROM inserted)
		BEGIN

			DECLARE @TT_catalog_codes_ids TABLE
			(
				Id INT NOT NULL
			);

			INSERT INTO @TT_catalog_codes_ids
			SELECT DISTINCT [acc].[code_id]
			FROM [dbo].[AFW_CATALOG] [ac]
			JOIN [AFW_CATALOG_CODE] [acc] ON [acc].[code_cata_id] = [ac].[cata_id]
			JOIN [inserted] [ins] 
				ON [ins].[department_id] = [acc].[code_id] OR
				[ins].[numberdep_id] = [acc].[code_id] OR
				[ins].[country_id] = [acc].[code_id] OR
				[ins].[city_id] = [acc].[code_id] OR
				[ins].[site_id] = [acc].[code_id] OR
				[ins].[building_id] = [acc].[code_id] OR
				[ins].[floor_id] = [acc].[code_id] OR
				[ins].[company_id] = [acc].[code_id]
			WHERE [ac].[cata_name] IN ('COUNTRY', 'CITY', 'DEPARTAMENTNUMBER', 'COMPANY', 'BUILDING1', 'FLOOR', 'SITE', 'DEPARTAMENT');

			IF EXISTS (SELECT * FROM @TT_catalog_codes_ids)
			BEGIN
				BEGIN TRY

					SET @v_operation = 0;
					SET @v_table_name = 'AFW_CATALOG_CODE';
					SET @v_query = 'IF NOT EXISTS (SELECT * FROM %s ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''%s'') AND code_value = ''%s'') ' +
									'INSERT INTO %s (code_cata_id, code_order, code_key, code_value, code_description, code_status, code_additional, code_parent_id) ' +
									'VALUES((SELECT AC1.cata_id FROM AFW_CATALOG AC1 WHERE AC1.cata_name = ''%s''), %d, %s, %s, %s, %d, %s, %s)';
				
					INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
					SELECT 
						@v_change_set_id, 
						@v_operation, 
						@v_table_name, 
						FORMATMESSAGE(
							@v_query,
							@v_table_name,
							[ac1].[cata_name],
							[acc1].[code_value],
							@v_table_name,
							[ac1].[cata_name],
							[acc1].[code_order],
							IIF([acc1].[code_key] IS NULL, NULL, '''' + [acc1].[code_key] + ''''),
							IIF([acc1].[code_value] IS NULL, NULL, '''' + [acc1].[code_value] + ''''),
							IIF([acc1].[code_description] IS NULL, NULL, '''' + [acc1].[code_description] + ''''),
							[acc1].[code_status],
							IIF([acc1].[code_additional] IS NULL, NULL, '''' + [acc1].[code_additional] + ''''),
							[acc1].[code_parent_id]
						)
					FROM [dbo].[AFW_CATALOG_CODE] [acc1]
					JOIN [dbo].[AFW_CATALOG] [ac1] ON [ac1].[cata_id] = [acc1].[code_cata_id]
					WHERE [acc1].[code_id] IN (SELECT * FROM @TT_catalog_codes_ids)
					ORDER BY [acc1].[code_id]
			
				END TRY
				BEGIN CATCH
					PRINT 'Error';
				END CATCH
			END

			SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (name, description, department_id, numberdep_id, country_id, city_id, site_id, building_id, floor_id, company_id, address, phone, project_id, guid) ' +
								'VALUES(''%s'', ''%s'', ' +
								'(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''DEPARTAMENT'') AND code_value = %s), ' +
								'(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''DEPARTAMENTNUMBER'') AND code_value = %s), ' +
								'(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''COUNTRY'') AND code_value = %s), ' +
								'(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''CITY'') AND code_value = %s), ' +
								'(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''SITE'') AND code_value = %s), ' +
								'(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''BUILDING1'') AND code_value = %s), ' +
								'(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''FLOOR'') AND code_value = %s), ' +
								'(SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''COMPANY'') AND code_value = %s), ''%s'', ' +
								'%s, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET name = ''%s'', description = ''%s'', ' +
								'department_id = (SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''DEPARTAMENT'') AND code_value = %s), ' +
								'numberdep_id = (SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''DEPARTAMENTNUMBER'') AND code_value = %s), ' +
								'country_id = (SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''COUNTRY'') AND code_value = %s), ' +
								'city_id = (SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''CITY'') AND code_value = %s), ' +
								'site_id = (SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''SITE'') AND code_value = %s), ' +
								'building_id = (SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''BUILDING1'') AND code_value = %s), ' +
								'floor_id = (SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''FLOOR'') AND code_value = %s), ' +
								'company_id = (SELECT ACC.code_id FROM AFW_CATALOG_CODE ACC WHERE ACC.code_cata_id = (SELECT AC.cata_id FROM AFW_CATALOG AC WHERE AC.cata_name = ''COMPANY'') AND code_value = %s), ' +
								'address = ''%s'', phone = %s, project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s) WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[name],
					[ins].[description],
					IIF([acc1].[code_value] IS NULL, NULL, '''' + [acc1].[code_value] + ''''),
					IIF([acc2].[code_value] IS NULL, NULL, '''' + [acc2].[code_value] + ''''),
					IIF([acc3].[code_value] IS NULL, NULL, '''' + [acc3].[code_value] + ''''),
					IIF([acc4].[code_value] IS NULL, NULL, '''' + [acc4].[code_value] + ''''),
					IIF([acc5].[code_value] IS NULL, NULL, '''' + [acc5].[code_value] + ''''),
					IIF([acc6].[code_value] IS NULL, NULL, '''' + [acc6].[code_value] + ''''),
					IIF([acc7].[code_value] IS NULL, NULL, '''' + [acc7].[code_value] + ''''),
					IIF([acc8].[code_value] IS NULL, NULL, '''' + [acc8].[code_value] + ''''),
					[ins].[address],
					IIF([ins].[phone] IS NULL, NULL, '''' + [ins].[phone] + ''''),
					IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[project_id]
			LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acc1] ON [acc1].[code_id] = [ins].[department_id]
			LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acc2] ON [acc2].[code_id] = [ins].[numberdep_id]
			LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acc3] ON [acc3].[code_id] = [ins].[country_id]
			LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acc4] ON [acc4].[code_id] = [ins].[city_id]
			LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acc5] ON [acc5].[code_id] = [ins].[site_id]
			LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acc6] ON [acc6].[code_id] = [ins].[building_id]
			LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acc7] ON [acc7].[code_id] = [ins].[floor_id]
			LEFT JOIN [dbo].[AFW_CATALOG_CODE] [acc8] ON [acc8].[code_id] = [ins].[company_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';
			SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_MAIL_TEMPLATE]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_MAIL_TEMPLATE]
   ON  [dbo].[ASMS_MAIL_TEMPLATE]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (name, subject, body, is_html, project_id, type_id, model_id, is_default, sender, sender_name, is_builtin, guid) VALUES (''%s'', %s, %s, %d, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), ' +
								'%d, (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), %d, %s, %s, %d, %s)';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET name = ''%s'', subject = %s, body = %s, is_html = %d, project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), type_id = %d, ' +
								'model_id = (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), is_default = %d, sender = %s, sender_name = %s, is_builtin = %d WHERE guid = %s';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[name],
					IIF([ins].[subject] IS NULL, NULL, '''' + [ins].[subject] + ''''),
					IIF([ins].[body] IS NULL, NULL, '''' + [ins].[body] + ''''),
					CAST([ins].[is_html] as int),
					IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
					[ins].[type_id],
					IIF([am1].[guid] IS NULL, NULL, '''' + [am1].[guid] + ''''),
					CAST([ins].[is_default] as int),
					IIF([ins].[sender] IS NULL, NULL, '''' + [ins].[sender] + ''''),
					IIF([ins].[sender_name] IS NULL, NULL, '''' + [ins].[sender_name] + ''''),
					CAST([ins].[is_builtin] as int),
					IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[project_id]
			LEFT JOIN [dbo].[ASMS_MODEL] [am1] ON [am1].[id] = [ins].[model_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = %s';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([del].[guid] IS NULL, NULL, '''' + [del].[guid] + '''')
				)
			FROM [deleted] [del]
		END
		

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;
 
	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_MODEL]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_MODEL]
   ON  [dbo].[ASMS_MODEL]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (name, description, item_type_id, script, builtin, active, default_time_id, default_profile_id, instructions, is_delete, guid) ' +
							'VALUES (''%s'', ''%s'', %d, %s, %d, %d, (SELECT AT1.id FROM ASMS_TIMES AT1 WHERE AT1.guid = %s), (SELECT AMP1.id FROM ASMS_MODELPROFILES AMP1 WHERE AMP1.guid = %s), %s, %d, %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET name = ''%s'', description = ''%s'', item_type_id = %d, script = %s, builtin = %d, active = %d, default_time_id = (SELECT AT1.id FROM ASMS_TIMES AT1 WHERE AT1.guid = %s), ' +
							'default_profile_id = (SELECT AMP1.id FROM ASMS_MODELPROFILES AMP1 WHERE AMP1.guid = %s), instructions = %s, is_delete = %d WHERE guid = %s';
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				[ins].[name],
				[ins].[description],
				[ins].[item_type_id],
				IIF([ins].[script] IS NULL, NULL, '''' + REPLACE([ins].[script], '''', '''''') + ''''),
				CAST([ins].[builtin] AS int),
				CAST([ins].[active] AS int),
				IIF([at1].[guid] IS NULL, NULL, '''' + [at1].[guid] + ''''),
				IIF([amp1].[guid] IS NULL, NULL, '''' + [amp1].[guid] + ''''),
				IIF([ins].[instructions] IS NULL, NULL, '''' + [ins].[instructions] + ''''),
				CAST([ins].[is_delete] AS int),
				IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
			)
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_TIMES] [at1] ON [at1].[model_id] = [ins].[id]
		LEFT JOIN [dbo].[ASMS_MODELPROFILES] [amp1] ON [amp1].[id] = [ins].[default_profile_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_MODEL_TYPE]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_MODEL_TYPE]
   ON  [dbo].[ASMS_MODEL_TYPE]
   AFTER INSERT, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (model_id, type_id, model_case_id) VALUES((SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), %d, (SELECT AM2.id FROM ASMS_MODEL AM2 WHERE AM2.guid = %s))';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([am1].[guid] IS NULL, NULL, '''' + [am1].[guid] + ''''),
					[ins].[type_id],
					IIF([am2].[guid] IS NULL, NULL, '''' + [am2].[guid] + '''')
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_MODEL] [am1] ON [am1].[id] = [ins].[model_id]
			JOIN [dbo].[ASMS_MODEL] [am2] ON [am2].[id] = [ins].[model_case_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE model_id = (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s) AND type_id = %d AND model_case_id = (SELECT AM2.id FROM ASMS_MODEL AM2 WHERE AM2.guid = %s)';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([am1].[guid] IS NULL, NULL, '''' + [am1].[guid] + ''''),
					[del].[type_id],
					IIF([am2].[guid] IS NULL, NULL, '''' + [am2].[guid] + '''')
				)
			FROM [deleted] [del]
			JOIN [dbo].[ASMS_MODEL] [am1] ON [am1].[id] = [del].[model_id]
			JOIN [dbo].[ASMS_MODEL] [am2] ON [am2].[id] = [del].[model_case_id]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_MODELPROFILES]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_MODELPROFILES]
   ON  [dbo].[ASMS_MODELPROFILES]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (name, description, model_id, type, project_id, condition, structure, text, assign_specialist, guid) VALUES (%s, %s, (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), ' +
								'%d, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), %s, %s, %s, %d, ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET name = %s, description = %s, model_id = (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), type = %d, project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), ' +
								'condition = %s, structure = %s, text = %s, assign_specialist = %d WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ins].[name] IS NULL, NULL, '''' + [ins].[name] + ''''),
					IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
					IIF([am1].[guid] IS NULL, NULL, '''' + [am1].[guid] + ''''),
					[ins].[type],
					IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
					IIF([ins].[condition] IS NULL, NULL, '''' + REPLACE([ins].[condition], '''', '''''') + ''''),
					IIF([ins].[structure] IS NULL, NULL, '''' + REPLACE([ins].[structure], '''', '''''') + ''''),
					IIF([ins].[text] IS NULL, NULL, '''' + REPLACE([ins].[text], '''', '''''') + ''''),
					CAST([ins].[assign_specialist] as int),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			LEFT JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[project_id]
			LEFT JOIN [dbo].[ASMS_MODEL] [am1] ON [am1].[id] = [ins].[model_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END
END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_PROFILES]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_PROFILES]
   ON  [dbo].[ASMS_PROFILES]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (name, description, cost, price, guid) VALUES(%s, %s, CAST(%s as float), CAST(%s as float), ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET name = %s, description = %s, cost = CAST(%s as float), price = CAST(%s as float) WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([ins].[name] IS NULL, NULL, '''' + [ins].[name] + ''''),
					IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
					CAST([ins].[cost] AS varchar(22)),
					CAST([ins].[price] AS varchar(22)),
					[ins].[guid]
				)
			FROM [inserted] [ins]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_PROJECT_LOCATION]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_PROJECT_LOCATION]
   ON  [dbo].[ASMS_PROJECT_LOCATION]
   AFTER INSERT, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (PROJECT_ID, LOCATION_ID) VALUES((SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = ''%s''), (SELECT AL1.id FROM ASMS_LOCATION AL1 WHERE AL1.guid = ''%s''))';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ap1].[proj_guid],
					[al1].[guid]
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[PROJECT_ID]
			JOIN [dbo].[ASMS_LOCATION] [al1] ON [al1].[Id] = [ins].[LOCATION_ID]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE PROJECT_ID = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = ''%s'') AND LOCATION_ID = (SELECT AL1.id FROM ASMS_LOCATION AL1 WHERE AL1.guid = ''%s'')';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ap1].[proj_guid],
					[al1].[guid]
				)
			FROM [deleted] [del]
			JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [del].[PROJECT_ID]
			JOIN [dbo].[ASMS_LOCATION] [al1] ON [al1].[Id] = [del].[LOCATION_ID]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_PROJECTS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_PROJECTS]
   ON  [dbo].[ASMS_PROJECTS]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		
		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (proj_name, proj_owner_id, proj_state, proj_description, proj_image, proj_image_id, proj_is_delete, proj_guid) VALUES (''%s'', %d, %d, %s, %s, %d, %d, %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET proj_name = ''%s'', proj_owner_id = %d, proj_state = %d, proj_description = %s, proj_image = %s, proj_image_id = %d, proj_is_delete = %d WHERE proj_guid = %s';
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query], [observations])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				[ins].[proj_name],
				1,
				[ins].[proj_state],
				IIF([ins].[proj_description] IS NULL, NULL, '''' + [ins].[proj_description] + ''''),
				NULL,
				NULL,
				CAST([ins].[proj_is_delete] AS int),
				IIF([ins].[proj_guid] IS NULL, NULL, '''' + [ins].[proj_guid] + '''')
			),
			'[{"Concept":"DefaultUserOperation","Parameters":["Responsible"]},{"Concept":"EmptyImageOperation","Parameters":[]}]'
		FROM [inserted] [ins]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_RULES]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_RULES]
   ON  [dbo].[ASMS_RULES]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;
	-- TODO: Validar common_id
	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (ACTIVA, CONDICIONES, FL_INT_PROJECT_ID, FL_DAT_MODIFIED, FL_DAT_INSERTED, TABLE_ID, LABEL, TEXT, model_id, name, description, common_id, rule_type, rule_assembly, rule_order, CLONE_CHANGE, USER_CHANGE_ID, guid) ' +
							'VALUES (%d, %s, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), %s, %s, %d, %s, %s, (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), %s, %s, %d, %d, CONVERT(VARBINARY(MAX), %s, 2), %d, %d, %d, %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET ACTIVA = %d, CONDICIONES = %s, FL_INT_PROJECT_ID = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), FL_DAT_MODIFIED = %s, FL_DAT_INSERTED = %s, TABLE_ID = %d, LABEL = %s, TEXT = %s, ' +
							'model_id = (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), name = %s, description = %s, common_id = %d, rule_type = %d, rule_assembly = CONVERT(VARBINARY(MAX), %s, 2), rule_order = %d, CLONE_CHANGE = %d, USER_CHANGE_ID = %d WHERE guid = %s';
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query], [observations])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				[ins].[ACTIVA],
				NULL,
				IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
				IIF([ins].[FL_DAT_MODIFIED] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[FL_DAT_MODIFIED], 121) + ''''),
				IIF([ins].[FL_DAT_INSERTED] IS NULL, NULL, '''' + CONVERT(VARCHAR(MAX), [ins].[FL_DAT_INSERTED], 121) + ''''),
				[ins].[TABLE_ID],
				NULL,
				NULL,
				IIF([am1].[guid] IS NULL, NULL, '''' + [am1].[guid] + ''''),
				IIF([ins].[name] IS NULL, NULL, '''' + [ins].[name] + ''''),
				IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
				NULL, --common_id
				[ins].[rule_type],
				NULL, --rule_assembly
				[ins].[rule_order],
				CAST([ins].[CLONE_CHANGE] AS int),
				[ins].[USER_CHANGE_ID],
				IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
			),
			'[{"Concept":"ConditionsReviewOperation","Parameters":[]}]'
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_MODEL] [am1] ON [am1].[id] = [ins].[model_id]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[FL_INT_PROJECT_ID]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_SCRIPT]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_SCRIPT]
   ON  [dbo].[ASMS_SCRIPT]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (name, description, [text], model_id, guid) VALUES(''%s'', %s, %s, (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), ''%s'')';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET name = ''%s'', description = %s, [text] = %s, model_id = (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s) WHERE guid = ''%s''';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[name],
					IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
					IIF([ins].[text] IS NULL, NULL, '''' + REPLACE([ins].[text], '''', '''''') + ''''),
					IIF([am1].[guid] IS NULL, NULL, '''' + [am1].[guid] + ''''),
					[ins].[guid]
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_MODEL] [am1] ON [am1].[id] = [ins].[model_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_SECTION_FIELDS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_SECTION_FIELDS]
   ON  [dbo].[ASMS_SECTION_FIELDS]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		
		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;

		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (field_order, section_id, field_id) VALUES(%d, (SELECT AFS1.id FROM ASMS_FORM_SECTIONS AFS1 WHERE AFS1.guid = ''%s''), (SELECT AF1.id FROM ASMS_FIELDS AF1 WHERE AF1.guid = %s))';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET field_order = %d WHERE section_id = (SELECT AFS1.id FROM ASMS_FORM_SECTIONS AFS1 WHERE AFS1.guid = ''%s'') AND field_id = (SELECT AF1.id FROM ASMS_FIELDS AF1 WHERE AF1.guid = %s)';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[field_order],
					[afs1].[guid],
					IIF([af1].[guid] IS NULL, NULL, '''' + [af1].[guid] + '''')
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_FORM_SECTIONS] [afs1] ON [afs1].[id] = [ins].[section_id]
			JOIN [dbo].[ASMS_FIELDS] [af1] ON [af1].[id] = [ins].[field_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE section_id = (SELECT AFS1.id FROM ASMS_FORM_SECTIONS AFS1 WHERE AFS1.guid = ''%s'') AND field_id = (SELECT AF1.id FROM ASMS_FIELDS AF1 WHERE AF1.guid = %s)';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[afs1].[guid],
					IIF([af1].[guid] IS NULL, NULL, '''' + [af1].[guid] + '''')
				)
			FROM [deleted] [del]
			JOIN [dbo].[ASMS_FORM_SECTIONS] [afs1] ON [afs1].[id] = [del].[section_id]
			JOIN [dbo].[ASMS_FIELDS] [af1] ON [af1].[id] = [del].[field_id]
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_SETTINGS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_SETTINGS]
   ON  [dbo].[ASMS_SETTINGS]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)
		
		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (sett_key, sett_application_id, sett_value, sett_description, sett_project_id, sett_type_id, guid) VALUES(''%s'', %d, %s, %s, (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), %d, ''%s'')';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET sett_key = ''%s'', sett_application_id = %d, sett_value = %s, sett_description = %s, sett_project_id = (SELECT AP1.proj_id FROM ASMS_PROJECTS AP1 WHERE AP1.proj_guid = %s), sett_type_id = %d WHERE guid = ''%s''';
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				[ins].[sett_key],
				[ins].[sett_application_id],
				IIF([ins].[sett_value] IS NULL, NULL, '''' + [ins].[sett_value] + ''''),
				IIF([ins].[sett_description] IS NULL, NULL, '''' + [ins].[sett_description] + ''''),
				IIF([ap1].[proj_guid] IS NULL, NULL, '''' + [ap1].[proj_guid] + ''''),
				[ins].[sett_type_id],
				[ins].[guid]
			)
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap1] ON [ap1].[proj_id] = [ins].[sett_project_id]
		WHERE [ins].[sett_key] IN ('RegistryType', 'IdTemplate', 'FilterServices', 'FilterCompanyAndUsers', 'ImpactValidation', 'AllowAcounting', 'AllowEdition', 'AllowDisplay', 'AllowCreation', 'ChooseService', 'AllowClose', 'CaseAssignment', 'RememberClassification', 'CategoryInSubject', 'UrgencyDefault', 'FilterContractsOnServices');

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_STATUS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_STATUS]
   ON  [dbo].[ASMS_STATUS]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;
	
	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (stat_app_category, stat_name, stat_description, stat_background_color_rgb, stat_project, stat_model_id, stat_built_in, stat_behavior, stat_final, stat_initial, stat_stage_id, stat_note, stat_delete, guid) ' +
						'VALUES (%d, ''%s'', ''%s'', %s, (SELECT AP.proj_id FROM ASMS_PROJECTS AP WHERE AP.proj_guid = %s), (SELECT AM.id FROM ASMS_MODEL AM WHERE AM.guid = %s), %d, %d,%d, %d, ' +
						'(SELECT ASS1.id FROM ASMS_STATUS_STAGE ASS1 WHERE ASS1.item_type_id = %d AND ASS1.name = %s), %d, %d, ''%s'')';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET stat_app_category = %d, stat_name = ''%s'', stat_description = ''%s'', stat_background_color_rgb = %s, stat_project = (SELECT AP.proj_id FROM ASMS_PROJECTS AP WHERE AP.proj_guid = %s), ' +
							  'stat_model_id = (SELECT AM.id FROM ASMS_MODEL AM WHERE AM.guid = %s), stat_built_in = %d, stat_behavior = %d, stat_final = %d, stat_initial = %d, ' +
							  'stat_stage_id = (SELECT ASS1.id FROM ASMS_STATUS_STAGE ASS1 WHERE ASS1.item_type_id = %d AND ASS1.name = %s), stat_note = %d, stat_delete = %d WHERE guid = ''%s''';
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				[ins].[stat_app_category],
				[ins].[stat_name],
				[ins].[stat_description],
				IIF([ins].[stat_background_color_rgb] IS NULL, NULL, '''' + [ins].[stat_background_color_rgb] + ''''),
				IIF([ap].[proj_guid] IS NULL, NULL, '''' + [ap].[proj_guid] + ''''),
				IIF([am].[guid] IS NULL, NULL, '''' + [am].[guid] + ''''),
				CAST([ins].[stat_built_in] AS int),
				[ins].[stat_behavior],
				[ins].[stat_final],
				[ins].[stat_initial],
				[ass1].[item_type_id],
				IIF([ass1].[name] IS NULL, NULL, '''' + [ass1].[name] + ''''),
				CAST([ins].[stat_note] AS int),
				CAST([ins].[stat_delete] AS int),
				[ins].[guid]
			)
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap] ON [ap].[proj_id] = [ins].[stat_project]
		LEFT JOIN [dbo].[ASMS_MODEL] [am] ON [am].[id] = [ins].[stat_model_id]
		LEFT JOIN [dbo].[ASMS_STATUS_STAGE] [ass1] ON [ass1].[id] = [ins].[stat_stage_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_STATUS_REASON]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_STATUS_REASON]
   ON  [dbo].[ASMS_STATUS_REASON]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (reas_description, reas_transition_id, reas_delete, guid) VALUES (%s, (SELECT AST.sttr_id FROM ASMS_STATUS_TRANSITION AST WHERE AST.guid = %s), %d, ''%s'')';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET reas_description = %s, reas_transition_id = (SELECT AST.sttr_id FROM ASMS_STATUS_TRANSITION AST WHERE AST.guid = %s), reas_delete = %d WHERE guid = ''%s''';
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				IIF([ins].[reas_description] IS NULL, NULL, '''' + [ins].[reas_description] + ''''),
				IIF([ast].[guid] IS NULL, NULL, '''' + [ast].[guid] + ''''),
				CAST([ins].[reas_delete] AS int),
				[ins].[guid]
			)
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_STATUS_TRANSITION] [ast] ON [ast].[sttr_id] = [ins].[reas_transition_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_STATUS_TRANSITION]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_STATUS_TRANSITION]
   ON  [dbo].[ASMS_STATUS_TRANSITION]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (sttr_code_ini, sttr_code_fin, sttr_category, sttr_project, sttr_model_id, sttr_delete, guid) ' +
							'VALUES ((SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), %d, ' + 
							'(SELECT AP.proj_id FROM ASMS_PROJECTS AP WHERE AP.proj_guid = %s), (SELECT AM.id FROM ASMS_MODEL AM WHERE AM.guid = %s), %d, ''%s'')';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET sttr_code_ini = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), sttr_code_fin = (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), sttr_category = %d, ' + 
							'sttr_project = (SELECT AP.proj_id FROM ASMS_PROJECTS AP WHERE AP.proj_guid = %s), sttr_model_id = (SELECT AM.id FROM ASMS_MODEL AM WHERE AM.guid = %s), sttr_delete = %d WHERE guid = ''%s''';
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
				IIF([as2].[guid] IS NULL, NULL, '''' + [as2].[guid] + ''''),
				[ins].[sttr_category],
				IIF([ap].[proj_guid] IS NULL, NULL, '''' + [ap].[proj_guid] + ''''),
				IIF([am].[guid] IS NULL, NULL, '''' + [am].[guid] + ''''),
				CAST([ins].[sttr_delete] AS int),
				[ins].[guid]
			)
		FROM [inserted] [ins]
		LEFT JOIN [dbo].[ASMS_PROJECTS] [ap] ON [ap].[proj_id] = [ins].[sttr_project]
		LEFT JOIN [dbo].[ASMS_MODEL] [am] ON [am].[id] = [ins].[sttr_model_id]
		LEFT JOIN [dbo].[ASMS_STATUS] [as1] ON [as1].[stat_id] = [ins].[sttr_code_ini]
		LEFT JOIN [dbo].[ASMS_STATUS] [as2] ON [as2].[stat_id] = [ins].[sttr_code_fin]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_TASK_PREDECESSOR]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_TASK_PREDECESSOR]
   ON  [dbo].[ASMS_TASK_PREDECESSOR]
   AFTER INSERT, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (parent_id, child_id, model_id) VALUES ((SELECT ATM1.id FROM ASMS_TASK_TEMPLATE ATM1 WHERE ATM1.guid = %s), (SELECT ATM2.id FROM ASMS_TASK_TEMPLATE ATM2 WHERE ATM2.guid = %s), (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s))';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([att1].[guid] IS NULL, NULL, '''' + [att1].[guid] + ''''),
					IIF([att2].[guid] IS NULL, NULL, '''' + [att2].[guid] + ''''),
					IIF([am1].[guid] IS NULL, NULL, '''' + [am1].[guid] + '''')
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_TASK_TEMPLATE] [att1] ON [att1].[id] = [ins].[parent_id]
			JOIN [dbo].[ASMS_TASK_TEMPLATE] [att2] ON [att2].[id] = [ins].[child_id]
			JOIN [dbo].[ASMS_MODEL] [am1] ON [am1].[id] = [ins].[model_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE parent_id = (SELECT ATM1.id FROM ASMS_TASK_TEMPLATE ATM1 WHERE ATM1.guid = %s) AND child_id = (SELECT ATM2.id FROM ASMS_TASK_TEMPLATE ATM2 WHERE ATM2.guid = %s) AND model_id = (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s)';
			
			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([att1].[guid] IS NULL, NULL, '''' + [att1].[guid] + ''''),
					IIF([att2].[guid] IS NULL, NULL, '''' + [att2].[guid] + ''''),
					IIF([am1].[guid] IS NULL, NULL, '''' + [am1].[guid] + '''')
				)
			FROM [deleted] [del]
			JOIN [dbo].[ASMS_TASK_TEMPLATE] [att1] ON [att1].[id] = [del].[parent_id]
			JOIN [dbo].[ASMS_TASK_TEMPLATE] [att2] ON [att2].[id] = [del].[child_id]
			JOIN [dbo].[ASMS_MODEL] [am1] ON [am1].[id] = [del].[model_id]
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_TASK_STATUS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_TASK_STATUS]
   ON  [dbo].[ASMS_TASK_STATUS]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (block, depend, status_id, task_id) VALUES (%d, %d, (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), (SELECT ATM1.id FROM ASMS_TASK_TEMPLATE ATM1 WHERE ATM1.guid = %s))';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET block = %d, depend = %d WHERE status_id = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s) AND task_id = (SELECT ATM1.id FROM ASMS_TASK_TEMPLATE ATM1 WHERE ATM1.guid = %s)';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					CAST([ins].[block] AS int),
					CAST([ins].[depend] AS int),
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
					IIF([atm1].[guid] IS NULL, NULL, '''' + [atm1].[guid] + '''')	
				)
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_STATUS] [as1] ON [as1].[stat_id] = [ins].[status_id]
			JOIN [dbo].[ASMS_TASK_TEMPLATE] [atm1] ON [atm1].[id] = [ins].[task_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE status_id = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s) AND task_id = (SELECT ATM1.id FROM ASMS_TASK_TEMPLATE ATM1 WHERE ATM1.guid = %s)';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
					IIF([atm1].[guid] IS NULL, NULL, '''' + [atm1].[guid] + '''')	
				)
			FROM [deleted] [del]
			JOIN [dbo].[ASMS_STATUS] [as1] ON [as1].[stat_id] = [del].[status_id]
			JOIN [dbo].[ASMS_TASK_TEMPLATE] [atm1] ON [atm1].[id] = [del].[task_id]
		END
		
		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_TASK_TEMPLATE]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_TASK_TEMPLATE]
   ON  [dbo].[ASMS_TASK_TEMPLATE]
   AFTER INSERT, UPDATE, DELETE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @TT_change_set_op TABLE
		(
			[change_set_id] INT, 
			[operation] INT, 
			[table] VARCHAR(255), 
			[query] VARCHAR(MAX),
			[observations] VARCHAR(MAX)
		);

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF EXISTS (SELECT * FROM inserted)
		BEGIN
			IF NOT EXISTS (SELECT * FROM deleted)
			BEGIN
				SET @v_operation = 0;
				SET @v_query = 'INSERT INTO %s (name, description, duration, model_id, offset, task_model_id, profile_id, type_id, depend_condition, depend_structure, depend_text, guid) ' +
								'VALUES (''%s'', %s, %d, (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), %d, (SELECT AM2.id FROM ASMS_MODEL AM2 WHERE AM2.guid = %s), (SELECT AMP1.id FROM ASMS_MODELPROFILES AMP1 WHERE AMP1.guid = %s), %d, %s, %s, %s, %s)';
			END
			ELSE
			BEGIN
				SET @v_operation = 1;
				SET @v_query = 'UPDATE %s SET name = ''%s'', description = %s, duration = %d, model_id = (SELECT AM1.id FROM ASMS_MODEL AM1 WHERE AM1.guid = %s), offset = %d, task_model_id = (SELECT AM2.id FROM ASMS_MODEL AM2 WHERE AM2.guid = %s), ' +
								'profile_id = (SELECT AMP1.id FROM ASMS_MODELPROFILES AMP1 WHERE AMP1.guid = %s), type_id = %d, depend_condition = %s, depend_structure = %s, depend_text = %s WHERE guid = %s';
			END

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query], [observations])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[ins].[name],
					IIF([ins].[description] IS NULL, NULL, '''' + [ins].[description] + ''''),
					[ins].[duration],
					IIF([am1].[guid] IS NULL, NULL, '''' + [am1].[guid] + ''''),
					[ins].[offset],
					IIF([am2].[guid] IS NULL, NULL, '''' + [am2].[guid] + ''''),
					IIF([amp1].[guid] IS NULL, NULL, '''' + [amp1].[guid] + ''''),
					[ins].[type_id],
					NULL,
					NULL,
					NULL,
					IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
				),
				'[{"Concept":"ConditionsReviewOperation","Parameters":[]}]'
			FROM [inserted] [ins]
			JOIN [dbo].[ASMS_MODEL] [am1] ON [am1].[id] = [ins].[model_id]
			LEFT JOIN [dbo].[ASMS_MODEL] [am2] ON [am2].[id] = [ins].[task_model_id]
			LEFT JOIN [dbo].[ASMS_MODELPROFILES] [amp1] ON [amp1].[id] = [ins].[profile_id]
		END
		ELSE
		BEGIN
			SET @v_operation = 2;
			SET @v_query = 'DELETE FROM %s WHERE guid = ''%s''';

			INSERT INTO @TT_change_set_op ([change_set_id], [operation], [table], [query])
			SELECT 
				@v_change_set_id, 
				@v_operation, 
				@v_table_name, 
				FORMATMESSAGE(
					@v_query,
					@v_table_name,
					[del].[guid]
				)
			FROM [deleted] [del]
		END
		
		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query], [observations])
		SELECT * FROM @TT_change_set_op;

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_TIMES]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_TIMES]
   ON  [dbo].[ASMS_TIMES]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_query_extra VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (name, start_state_id, end_state_id, model_id, type_agree, builtin_id, target, compliance, priority, type_id, start_condition, end_condition, running_condition, start_structure, '
							+ 'end_structure, running_structure, start_text, end_text, running_text, is_delete, reactive_time, guid) ' +
							'VALUES (''%s'', (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), (SELECT AM.id FROM ASMS_MODEL AM WHERE AM.guid = %s), ' +
							'%d, %d, %d, %d, %s, %d, %s, %s, %s, %s, %s, %s, %s, %s, %s, ';
			SET @v_query_extra = '%d, %d, %s)';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET  name = ''%s'', start_state_id = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), end_state_id = (SELECT AS2.stat_id FROM ASMS_STATUS AS2 WHERE AS2.guid = %s), ' +
							'model_id = (SELECT AM.id FROM ASMS_MODEL AM WHERE AM.guid = %s), type_agree = %d, builtin_id = %d, target = %d, compliance = %d, priority = %s, type_id = %d, start_condition = %s, ' +
							'end_condition = %s, running_condition = %s, start_structure = %s, end_structure = %s, running_structure = %s, start_text = %s, end_text = %s, running_text = %s, ';
			SET @v_query_extra = 'is_delete = %d, reactive_time = %d WHERE guid = %s';
		END

		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query], [observations])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				[ins].[name],
				IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
				IIF([as2].[guid] IS NULL, NULL, '''' + [as2].[guid] + ''''),
				IIF([am].[guid] IS NULL, NULL, '''' + [am].[guid] + ''''),
				[ins].[type_agree],
				[ins].[builtin_id],
				[ins].[target],
				[ins].[compliance],
				IIF([ins].[priority] IS NULL, NULL, '''' + [ins].[priority] + ''''),
				[ins].[type_id],
				NULL,
				NULL,
				NULL,
				NULL,
				NULL,
				NULL,
				NULL,
				NULL,
				NULL
			) + 
			FORMATMESSAGE(
				@v_query_extra,
				CAST([ins].[is_delete] AS int),
				CAST([ins].[reactive_time] AS int),
				IIF([ins].[guid] IS NULL, NULL, '''' + [ins].[guid] + '''')
			),
			'[{"Concept":"ConditionsReviewOperation","Parameters":[]}]'
		FROM [inserted] [ins]
		JOIN [dbo].[ASMS_MODEL] [am] ON [am].[id] = [ins].[model_id]
		LEFT JOIN [dbo].[ASMS_STATUS] [as1] ON [as1].[stat_id] = [ins].[start_state_id]
		LEFT JOIN [dbo].[ASMS_STATUS] [as2] ON [as2].[stat_id] = [ins].[end_state_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[TRG_ASMS_TIMES_STATUS]...';


GO
CREATE TRIGGER [dbo].[TRG_ASMS_TIMES_STATUS]
   ON  [dbo].[ASMS_TIMES_STATUS]
   AFTER INSERT, UPDATE
AS 
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_change_set_id INT = NULL;
	SELECT TOP 1 @v_change_set_id = [ACS].[id]
	FROM [dbo].[ASMS_CHANGE_SET] [ACS]
	WHERE [ACS].[is_active] = 1

	IF @v_change_set_id IS NOT NULL
	BEGIN
		DECLARE @v_table_name VARCHAR(255);
		SELECT @v_table_name = OBJECT_NAME(parent_object_id) FROM sys.objects WHERE sys.objects.name = OBJECT_NAME(@@PROCID)

		DECLARE @v_query VARCHAR(MAX);
		DECLARE @v_operation INT;
		IF NOT EXISTS (SELECT * FROM deleted)
		BEGIN
			SET @v_operation = 0;
			SET @v_query = 'INSERT INTO %s (timer, status_id, time_id) VALUES (%d, (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s), (SELECT AT1.id FROM ASMS_TIMES AT1 WHERE AT1.guid = %s))';
		END
		ELSE
		BEGIN
			SET @v_operation = 1;
			SET @v_query = 'UPDATE %s SET timer = %d WHERE status_id = (SELECT AS1.stat_id FROM ASMS_STATUS AS1 WHERE AS1.guid = %s) AND time_id = (SELECT AT1.id FROM ASMS_TIMES AT1 WHERE AT1.guid = %s)';
		END


		INSERT INTO [dbo].[ASMS_CHANGE_SET_OPERATION] ([change_set_id], [operation], [table], [query])
		SELECT 
			@v_change_set_id, 
			@v_operation, 
			@v_table_name, 
			FORMATMESSAGE(
				@v_query,
				@v_table_name,
				CAST([ins].[timer] AS int),
				IIF([as1].[guid] IS NULL, NULL, '''' + [as1].[guid] + ''''),
				IIF([at1].[guid] IS NULL, NULL, '''' + [at1].[guid] + '''')			
			)
		FROM [inserted] [ins]
		JOIN [dbo].[ASMS_STATUS] [as1] ON [as1].[stat_id] = [ins].[status_id]
		JOIN [dbo].[ASMS_TIMES] [at1] ON [at1].[id] = [ins].[time_id]

	END

END
GO
PRINT N'Creating Trigger [dbo].[AVS_MATERIALIZE_DEVICE_TRIGGER]...';


GO
CREATE TRIGGER [dbo].[AVS_MATERIALIZE_DEVICE_TRIGGER]
	ON [dbo].[AVS_DEVICE]
	FOR INSERT, UPDATE
	AS
	BEGIN
		SET NOCOUNT ON;
		IF NOT EXISTS (SELECT * FROM DELETED) OR
		   NOT EXISTS (SELECT * FROM [dbo].[AVS_AUDIT_DEVICE] D JOIN INSERTED I ON D.device_id = I.id AND
									D.is_current = 1 AND D.hardware_hash = I.hardware_hash AND
													     D.model = I.model AND
														 D.name = I.name AND
														 D.operating_system = I.operating_system AND
														 D.serial_number = I.serial_number AND
														 D.type = I.type)
		BEGIN
			UPDATE D SET is_current = 0, end_date = GETUTCDATE()
				FROM [dbo].[AVS_AUDIT_DEVICE] D
				INNER JOIN INSERTED I
					ON D.device_id = I.id
					WHERE is_current = 1;

			INSERT INTO [dbo].[AVS_AUDIT_DEVICE] (device_id, hardware_hash, name, model, operating_system, 
												  serial_number, type, start_date, end_date, is_current)
					(SELECT id, hardware_hash, name, model, operating_system, 
												  serial_number, type, GETUTCDATE(), NULL, 1
												  FROM INSERTED);
	    END
	END
GO
PRINT N'Creating Trigger [dbo].[AVS_MATERIALIZE_GROUP_SUPPORT_TRIGGER]...';


GO
CREATE TRIGGER [dbo].[AVS_MATERIALIZE_GROUP_SUPPORT_TRIGGER]
	ON [dbo].[AVS_GROUP_SUPPORT]
	FOR INSERT, UPDATE
	AS
	BEGIN
		SET NOCOUNT ON;		
		IF NOT EXISTS (SELECT * FROM DELETED) OR
		   NOT EXISTS (SELECT * FROM [dbo].[AVS_AUDIT_GROUP_SUPPORT] G 
								JOIN (SELECT G.id, G.name, G.code, G.description, G.session_support, 
										P.id as parent_id, P.name as name_parent, P.description as description_parent
										FROM INSERTED G LEFT JOIN [dbo].[AVS_GROUP_SUPPORT] P ON G.parent = P.id) I
								ON G.group_support_id = I.id AND
									G.is_current = 1 AND G.code = I.code AND
													     G.description = I.description AND
														 G.name = I.name AND
														 G.session_support = I.session_support AND
														 (ISNULL(G.parent_id, I.parent_id) IS NULL OR
														 G.parent_id = I.parent_id) AND
														 (ISNULL(G.description_parent, G.description_parent) IS NULL OR
														 G.description_parent = G.description_parent) AND
														 (ISNULL(G.name_parent, G.name_parent) IS NULL OR
														 G.name_parent = G.name_parent))
		BEGIN
			UPDATE G SET is_current = 0, end_date = GETUTCDATE()
				FROM [dbo].[AVS_AUDIT_GROUP_SUPPORT] G
				INNER JOIN INSERTED I
					ON G.group_support_id = I.id
					WHERE is_current = 1;

			INSERT INTO [dbo].[AVS_AUDIT_GROUP_SUPPORT] (group_support_id, name, code, description, session_support, parent_id, 
														 name_parent, description_parent, start_date, end_date, is_current)
					(SELECT G.id, G.name, G.code, G.description, G.session_support, G.parent,
							P.name, P.description, GETUTCDATE(), NULL, 1
												  FROM [dbo].[AVS_GROUP_SUPPORT] G
												  LEFT JOIN [dbo].[AVS_GROUP_SUPPORT] P ON G.parent = P.id
												  WHERE G.id = (SELECT id FROM INSERTED));
		END
	END
GO
PRINT N'Creating View [adw].[AAM_DEVICE_TYPE]...';


GO
CREATE VIEW adw.AAM_DEVICE_TYPE AS
SELECT
	[id],
	[name],
	[enabled]
FROM dbo.AAM_DEVICE_TYPE;
GO
PRINT N'Creating View [adw].[AAM_OS]...';


GO
CREATE VIEW adw.AAM_OS WITH SCHEMABINDING AS
SELECT
	v.id,
	p.name,
	v.version,
	p.manufacturer_id
FROM dbo.AAM_SOFTWARE_VERSION v
JOIN dbo.AAM_SOFTWARE_PRODUCT p ON p.id = v.product_id
WHERE p.type = 0;
GO
PRINT N'Creating Index [adw].[AAM_OS].[CIX_AAM_OS]...';


GO
CREATE UNIQUE CLUSTERED INDEX [CIX_AAM_OS]
    ON [adw].[AAM_OS]([id] ASC);


GO
PRINT N'Creating View [adw].[AAM_SOFTWARE]...';


GO
CREATE VIEW adw.AAM_SOFTWARE WITH SCHEMABINDING AS
SELECT
	v.id,
	p.name,
	v.version,
	p.manufacturer_id,
	p.platform platform_id,
	v.is_permitted
FROM dbo.AAM_SOFTWARE_VERSION v
JOIN dbo.AAM_SOFTWARE_PRODUCT p ON p.id = v.product_id
WHERE p.type = 1;
GO
PRINT N'Creating Index [adw].[AAM_SOFTWARE].[CIX_AAM_SOFTWARE]...';


GO
CREATE UNIQUE CLUSTERED INDEX [CIX_AAM_SOFTWARE]
    ON [adw].[AAM_SOFTWARE]([id] ASC);


GO
PRINT N'Creating View [adw].[AAM_SOFTWARE_UPDATES]...';


GO
CREATE VIEW adw.AAM_SOFTWARE_UPDATES WITH SCHEMABINDING AS
SELECT
	v.id,
	p.name,
	v.version,
	p.manufacturer_id,
	p.platform platform_id,
	v.is_permitted
FROM dbo.AAM_SOFTWARE_VERSION v
JOIN dbo.AAM_SOFTWARE_PRODUCT p ON p.id = v.product_id
WHERE p.type = 2;
GO
PRINT N'Creating Index [adw].[AAM_SOFTWARE_UPDATES].[CIX_AAM_SOFTWARE_UPDATES]...';


GO
CREATE UNIQUE CLUSTERED INDEX [CIX_AAM_SOFTWARE_UPDATES]
    ON [adw].[AAM_SOFTWARE_UPDATES]([id] ASC);


GO
PRINT N'Creating View [adw].[V_AAM_DEVICE]...';


GO
CREATE VIEW adw.V_AAM_DEVICE AS
SELECT
	d.id,
	d.alias,
	d.name,
	d.type type_id,
	d.domain,
	d.created_date,
	d.modification_date,
	d.is_discovery,
	d.is_active,
	dr.user_id responsible_user_id
FROM dbo.AAM_DEVICE d
JOIN dbo.AAM_DEVICE_RESPONSIBLE dr ON dr.device_id = d.id;
GO
PRINT N'Creating View [adw].[V_AAM_DEVICE_OS]...';


GO
CREATE VIEW adw.V_AAM_DEVICE_OS AS
SELECT 
	ds.device_id,
	ds.software_id,
	p.path installation_path
FROM dbo.AAM_DEVICE_SOFTWARE ds
INNER JOIN dbo.AAM_SOFTWARE_VERSION sv ON sv.id = ds.software_id
INNER JOIN dbo.AAM_SOFTWARE_PRODUCT sp ON sp.id = sv.product_id
LEFT JOIN dbo.AAM_PATH p ON p.id = ds.install_path_id
WHERE sp.type = 0;
GO
PRINT N'Creating View [adw].[V_AAM_INSTALLED_SOFTWARE]...';


GO
CREATE VIEW adw.V_AAM_INSTALLED_SOFTWARE AS
SELECT 
	ds.device_id,
	ds.software_id,
	p.path installation_path,
	da.date installation_date,
	da.size installed_size,
	ds.system_component
FROM dbo.AAM_DEVICE_SOFTWARE ds
INNER JOIN dbo.AAM_SOFTWARE_VERSION sv ON sv.id = ds.software_id
INNER JOIN dbo.AAM_SOFTWARE_PRODUCT sp ON sp.id = sv.product_id
LEFT JOIN dbo.AAM_PATH p ON p.id = ds.install_path_id
LEFT JOIN dbo.AAM_DEVICE_APPLICATION da ON da.id = ds.id
WHERE sp.type = 1;
GO
PRINT N'Creating View [adw].[V_AAM_INSTALLED_UPDATES]...';


GO
CREATE VIEW adw.V_AAM_INSTALLED_UPDATES AS
SELECT 
	ds.device_id,
	ds.software_id,
	p.path installation_path,
	da.date installation_date,
	da.size installed_size,
	ds.system_component
FROM dbo.AAM_DEVICE_SOFTWARE ds
INNER JOIN dbo.AAM_SOFTWARE_VERSION sv ON sv.id = ds.software_id
INNER JOIN dbo.AAM_SOFTWARE_PRODUCT sp ON sp.id = sv.product_id
LEFT JOIN dbo.AAM_PATH p ON p.id = ds.install_path_id
LEFT JOIN dbo.AAM_DEVICE_APPLICATION da ON da.id = ds.id
WHERE sp.type = 2;
GO
PRINT N'Creating View [adw].[ASMS_FIELDS_DATA]...';


GO
CREATE VIEW adw.ASMS_FIELDS_DATA AS
SELECT
	fd.field_id,
	fd.item_id,
	fd.item_type_id,
	COALESCE (
		CAST(fd.float_value AS SQL_VARIANT),
		CAST(fd.bool_value AS SQL_VARIANT),
		CAST(fd.date_value AS SQL_VARIANT),
		CAST(IIF(fd.string_value = '', NULL, string_value) AS SQL_VARIANT),
		CAST(fd.int_value AS SQL_VARIANT)
	) field_value
FROM dbo.ASMS_FIELDS_DATA fd
JOIN dbo.ASMS_FIELDS f ON f.id = fd.field_id
WHERE
	float_value IS NOT NULL
	OR bool_value IS NOT NULL
	OR date_value IS NOT NULL
	OR (
		string_value IS NOT NULL
		AND string_value != ''
	)
	OR int_value IS NOT NULL;
GO
PRINT N'Creating View [adw].[ASMS_FIELDS_NAMES]...';


GO
CREATE VIEW [adw].[ASMS_FIELDS_NAMES] AS
SELECT DISTINCT
	name
FROM
	dbo.ASMS_FIELDS
WHERE
	item_type_id IN(1, 2, 3, 4);
GO
PRINT N'Creating View [adw].[ASDK_IMPACT]...';


GO
CREATE VIEW adw.ASDK_IMPACT WITH SCHEMABINDING AS
SELECT
	cc.code_id impact_id,
	cc.code_value impact_name
FROM dbo.AFW_CATALOG c
JOIN dbo.AFW_CATALOG_CODE cc ON cc.code_cata_id = c.cata_id
WHERE c.cata_name = 'IMPACT'
GO
PRINT N'Creating Index [adw].[ASDK_IMPACT].[IX01_ASDK_IMPACT]...';


GO
CREATE UNIQUE CLUSTERED INDEX [IX01_ASDK_IMPACT]
    ON [adw].[ASDK_IMPACT]([impact_id] ASC);


GO
PRINT N'Creating View [adw].[ASDK_OLA]...';


GO
CREATE VIEW adw.ASDK_OLA WITH SCHEMABINDING AS
SELECT
	[sla_id] ola_id,
	[guid],
	[name],
	[descripcion],
	[date_start],
	[date_finish],
	[sla_date_review] ola_date_review,
	[sla_date_open] ola_date_open,
	[sla_date_close] ola_date_close,
	[previous_status_id],
	[sla_modified_date] ola_modified_date,
	[sla_modifier_id] ola_modifier_id,
	[proj_id],
	[reason_id],
	[calendar_id],
	[is_delete]
FROM dbo.ASDK_SLA
WHERE contract_type = 55;
GO
PRINT N'Creating Index [adw].[ASDK_OLA].[IX01_ASDK_OLA]...';


GO
CREATE UNIQUE CLUSTERED INDEX [IX01_ASDK_OLA]
    ON [adw].[ASDK_OLA]([ola_id] ASC);


GO
PRINT N'Creating View [adw].[ASDK_PRIORITY]...';


GO
CREATE VIEW adw.ASDK_PRIORITY WITH SCHEMABINDING AS
SELECT
	cc.code_id priority_id,
	cc.code_value priority_name
FROM dbo.AFW_CATALOG c
JOIN dbo.AFW_CATALOG_CODE cc ON cc.code_cata_id = c.cata_id
WHERE c.cata_name = 'PRIORITY'
GO
PRINT N'Creating Index [adw].[ASDK_PRIORITY].[IX01_ASDK_PRIORITY]...';


GO
CREATE UNIQUE CLUSTERED INDEX [IX01_ASDK_PRIORITY]
    ON [adw].[ASDK_PRIORITY]([priority_id] ASC);


GO
PRINT N'Creating View [adw].[ASDK_REGISTRY_TYPE]...';


GO
CREATE VIEW adw.ASDK_REGISTRY_TYPE WITH SCHEMABINDING AS
SELECT
	cc.code_id registry_type_id,
	cc.code_value registry_type_name
FROM dbo.AFW_CATALOG c
JOIN dbo.AFW_CATALOG_CODE cc ON cc.code_cata_id = c.cata_id
WHERE c.cata_name = 'REGISTRY_TYPE'
GO
PRINT N'Creating Index [adw].[ASDK_REGISTRY_TYPE].[IX01_ASDK_REGISTRY_TYPE]...';


GO
CREATE UNIQUE CLUSTERED INDEX [IX01_ASDK_REGISTRY_TYPE]
    ON [adw].[ASDK_REGISTRY_TYPE]([registry_type_id] ASC);


GO
PRINT N'Creating View [adw].[ASDK_SLA]...';


GO
CREATE VIEW adw.ASDK_SLA WITH SCHEMABINDING AS
SELECT
	sla_id,
	guid,
	name,
	descripcion,
	date_start,
	date_finish,
	sla_date_review,
	sla_date_open,
	sla_date_close,
	previous_status_id,
	sla_modified_date,
	sla_modifier_id,
	proj_id,
	reason_id,
	calendar_id,
	is_delete
FROM dbo.ASDK_SLA
WHERE contract_type = 14;
GO
PRINT N'Creating Index [adw].[ASDK_SLA].[IX01_ASDK_SLA]...';


GO
CREATE UNIQUE CLUSTERED INDEX [IX01_ASDK_SLA]
    ON [adw].[ASDK_SLA]([sla_id] ASC);


GO
PRINT N'Creating View [adw].[ASDK_UC]...';


GO
CREATE VIEW adw.ASDK_UC WITH SCHEMABINDING AS
SELECT
	sla_id uc_id,
	guid,
	name,
	descripcion,
	date_start,
	date_finish,
	sla_date_review uc_date_review,
	sla_date_open uc_date_open,
	sla_date_close uc_date_close,
	previous_status_id,
	sla_modified_date uc_modified_date,
	sla_modifier_id uc_modifier_id,
	proj_id,
	reason_id,
	calendar_id,
	is_delete
FROM dbo.ASDK_SLA
WHERE contract_type = 54;
GO
PRINT N'Creating Index [adw].[ASDK_UC].[IX01_ASDK_UC]...';


GO
CREATE UNIQUE CLUSTERED INDEX [IX01_ASDK_UC]
    ON [adw].[ASDK_UC]([uc_id] ASC);


GO
PRINT N'Creating View [adw].[ASDK_URGENCY]...';


GO
CREATE VIEW adw.ASDK_URGENCY WITH SCHEMABINDING AS
SELECT
	cc.code_id urgency_id,
	cc.code_value urgency_name
FROM dbo.AFW_CATALOG c
JOIN dbo.AFW_CATALOG_CODE cc ON cc.code_cata_id = c.cata_id
WHERE c.cata_name = 'URGENCY'
GO
PRINT N'Creating Index [adw].[ASDK_URGENCY].[IX01_ASDK_URGENCY]...';


GO
CREATE UNIQUE CLUSTERED INDEX [IX01_ASDK_URGENCY]
    ON [adw].[ASDK_URGENCY]([urgency_id] ASC);


GO
PRINT N'Creating View [adw].[ASMS_CONTRACT]...';


GO
CREATE VIEW adw.ASMS_CONTRACT AS
SELECT
	[contractid],
	[numbercontract],
	[contractini],
	[contractfin],
	[contractvalue],
	[vendorid],
	[fl_str_description],
	[fl_str_contract_type],
	[fl_int_has_alarm],
	[fl_int_limitdays],
	[fl_str_statuscontract],
	[fl_int_user_id],
	[type_id],
	[class_id],
	[template_id],
	[con_modified_date],
	[con_modifier_id],
	[schedule_flag],
	[vendor_id_contract],
	[area_id],
	[area_id_contract],
	[days_warranty]
FROM dbo.ASMS_CONTRACT;
GO
PRINT N'Creating View [adw].[ASMS_COST_CENTER]...';


GO
CREATE VIEW adw.ASMS_COST_CENTER WITH SCHEMABINDING AS
SELECT
	id,
	guid,
	name,
	description,
	code,
	parent_id
FROM dbo.ASMS_COST_CENTER
WHERE type = 0;
GO
PRINT N'Creating Index [adw].[ASMS_COST_CENTER].[IX01_ASMS_COST_CENTER]...';


GO
CREATE UNIQUE CLUSTERED INDEX [IX01_ASMS_COST_CENTER]
    ON [adw].[ASMS_COST_CENTER]([id] ASC);


GO
PRINT N'Creating View [adw].[ASMS_PROFIT_CENTER]...';


GO
CREATE VIEW adw.ASMS_PROFIT_CENTER WITH SCHEMABINDING AS
SELECT
	id,
	guid,
	name,
	description,
	code,
	parent_id
FROM dbo.ASMS_COST_CENTER
WHERE type = 1;
GO
PRINT N'Creating Index [adw].[ASMS_PROFIT_CENTER].[IX01_ASMS_PROFIT_CENTER]...';


GO
CREATE UNIQUE CLUSTERED INDEX [IX01_ASMS_PROFIT_CENTER]
    ON [adw].[ASMS_PROFIT_CENTER]([id] ASC);


GO
PRINT N'Creating View [adw].[V_ASDK_STATUS_BEHAVIOR]...';


GO
CREATE VIEW [adw].[V_ASDK_STATUS_BEHAVIOR] AS
    SELECT
        s.stat_id,
	    stat_name status_name,
        CASE
            WHEN ss.item_type_id = 2 THEN CASE --Problem
                WHEN s.stat_initial = 1
                OR ss.[name] IN ('InProgress', 'RootCauseAnalysis', 'Assess') THEN 'ABIERTO'
                WHEN s.stat_final = 1
                AND (
                    ss.[name] IN ('Annulled', 'ClosedByDefault')
                    OR ss.[name] IS NULL
                ) THEN 'CERRADO'
                WHEN ss.[name] = 'Solved' THEN 'SOLUCIONADO'
                ELSE 'UNDEFINED'
            END
            WHEN ss.item_type_id = 3 THEN CASE -- Change
                WHEN s.stat_initial = 1
                OR ss.[name] IN (
                    'Scheduled',
                    'Assess',
                    'InScheduled',
                    'InBuilding'
                ) THEN 'ABIERTO'
                WHEN s.stat_final = 1
                AND (
                    ss.[name] IN ('Annulled', 'ClosedByDefault')
                    OR ss.[name] IS NULL
                ) THEN 'CERRADO'
                WHEN ss.[name] = 'Review' THEN 'SOLUCIONADO'
                ELSE 'UNDEFINED'
            END
            WHEN ss.item_type_id = 13 THEN CASE --Release
                WHEN s.stat_initial = 1
                OR ss.[name] IN ('Planning', 'Approved', 'Scheduled') THEN 'ABIERTO'
                WHEN s.stat_final = 1
                AND (
                    ss.[name] IN (
                        'Annulled',
                        'ClosedByDefault',
                        'IncompleteClosed'
                    )
                    OR ss.[name] IS NULL
                ) THEN 'CERRADO'
                ELSE 'UNDEFINED'
            END
            WHEN ss.item_type_id  IN (1 , 4) THEN CASE --Incidents, ServiceCall
                WHEN s.stat_initial = 1
                OR ss.[name] IN ('InProgress', 'Scheduled') THEN 'ABIERTO'
                WHEN s.stat_final = 1
                AND (
                    ss.[name] IN ('Annulled', 'ClosedByDefault')
                    OR ss.[name] IS NULL
                ) THEN 'CERRADO'
                WHEN ss.[name] = 'Solved' THEN 'SOLUCIONADO'
                WHEN ss.[name] = 'OnHold' THEN 'PENDIENTE'
                ELSE 'UNDEFINED'
            END
            ELSE 'UNDEFINED'
        END AS status_behavior,
	    ss.name AS status_stage
    FROM dbo.ASMS_STATUS s
    LEFT JOIN dbo.ASMS_STATUS_STAGE ss ON s.stat_stage_id = ss.id;
GO
PRINT N'Creating View [dbo].[AFLS_CHRONOS_RESULTS_REPORT]...';


GO
CREATE VIEW [dbo].[AFLS_CHRONOS_RESULTS_REPORT]
AS

SELECT [chresult_id]
      ,[chresult_item_id]
      ,[chresult_itemtime_id]
      ,[chresult_estimateddate]
      ,[chresult_estimatedtime]
      ,[chresult_startdate]
      ,[chresult_enddate]
      ,[chresult_enddatetime]
      ,[chresult_lastshot]
      ,ISNULL(R2.duration, [chresult_currenttime]) as chresult_currenttime
      ,ISNULL(CAST(R2.duration/[chresult_estimatedtime] as decimal(18,2)), [chresult_currentprogress]) as chresult_currentprogress
      ,[chresult_status]
      ,[chresult_calendarid]
      ,CASE WHEN R2.duration IS NULL THEN [chresult_complies] 
			ELSE  
			CASE WHEN R2.duration > [chresult_estimatedtime] THEN 2 ELSE 1 END
	   END as chresult_complies
      ,[chresult_agreetype]
	  ,[chresult_providerid]
FROM [dbo].[AFLS_CHRONOS_RESULTS] as R
LEFT JOIN 
(

	--Sumatoria de duracion por cronometro
	SELECT FT.doc_id , FT.id, CAST(ISNULL(SUM(FT.time),0)/60 as decimal(18,2)) as duration
	FROM 
		(
			-- se obtiene el tiempo en minutos donde los eventos start son multiplicados por -1 -> se puede optimizar restando timestamps
			SELECT T1.doc_id, T1.id, T1.status, T1.date, CAST(CASE WHEN T1.status = 1 THEN DATEDIFF(s, '1970-01-01 00:00:00', T1.date) *-1 ELSE DATEDIFF(s, '1970-01-01 00:00:00', T1.date) END AS decimal(18,2)) as time
			FROM
			(
				--Se enumeran  las filas para determinar el anterior y siguiente de cada registro
				SELECT *, row_number() OVER(order by doc_id, id, date) as 'num' FROM
				(

					--Trae los eventos de los cronometros abiertos
					SELECT R2.type, R2.doc_id, R2.id, R2.status, R2.date
					FROM
					(
						SELECT 'E' as type, E1.chevent_doc_id as doc_id, E1.chevent_itemtime_id as id, E1.chevent_status as status, E1.chevent_startdate as date,
						(
							SELECT TOp 1 C.calev_id as date
							FROM AFLS_CALENDARS_EVENTS as C INNER JOIN
							(
							SELECT 'E' as type, E.chevent_doc_id as doc_id, E.chevent_itemtime_id as id, E.chevent_status as status, E.chevent_startdate as date, SV.serv_calendar_id AS calendar_id
							,ISNULL((
								   SELECT TOP 1 N.chevent_startdate FROM AFLS_CHRONOS_EVENTS as N
								   WHERE N.chevent_doc_id = E.chevent_doc_id AND N.chevent_itemtime_id = E.chevent_itemtime_id AND N.chevent_status = 2
								   AND N.chevent_startdate >= E.chevent_startdate ORDER BY E.chevent_startdate DESC
							 ),CURRENT_TIMESTAMP) as end_date
							FROM AFLS_CHRONOS_EVENTS as E INNER JOIN AFLS_CHRONOS_RESULTS as R 
							ON E.chevent_doc_id = R.chresult_item_id AND E.chevent_itemtime_id = R.chresult_itemtime_id AND E.chevent_itemtime_id = R.chresult_itemtime_id
							INNER JOIN AFLS_WORKORDERS AS WO ON WO.work_id = E.chevent_doc_id
							INNER JOIN AFLS_SERVICES AS SV ON SV.serv_id = WO.serv_id
							WHERE  R.chresult_status = 1 AND E.chevent_status = 1
							) as EE ON  C.calev_startdate >= EE.date AND C.calev_startdate <= EE.end_date AND C.cale_id = EE.calendar_id
							WHERE EE.doc_id = E1.chevent_doc_id  AND EE.id = E1.chevent_itemtime_id
							ORDER BY C.calev_startdate
						) AS start_limit_calev_id
						FROM AFLS_CHRONOS_EVENTS as E1 INNER JOIN AFLS_CHRONOS_RESULTS as R1 
						ON E1.chevent_doc_id = R1.chresult_item_id AND E1.chevent_itemtime_id = R1.chresult_itemtime_id
						WHERE R1.chresult_status = 1 														
					)R2
					LEFT JOIN AFLS_CALENDARS_EVENTS as C ON C.calev_id = R2.start_limit_calev_id
					WHERE (R2.date > C.calev_startdate OR R2.start_limit_calev_id IS NULL OR C.calev_status = 2)

					UNION ALL

					--Trae los eventos del calendario que se encuentran entre el start y stop de un evento cronometro
					SELECT 'C' as type, EE.doc_id ,EE.id as id, C.calev_status as status, C.calev_startdate as date
					FROM AFLS_CALENDARS_EVENTS as C INNER JOIN
					(
					SELECT 'E' as type, E.chevent_doc_id as doc_id, E.chevent_itemtime_id as id, E.chevent_status as status, E.chevent_startdate as date, SV.serv_calendar_id AS calendar_id
					,ISNULL((
						   SELECT TOP 1 N.chevent_startdate FROM AFLS_CHRONOS_EVENTS as N
						   WHERE N.chevent_doc_id = E.chevent_doc_id AND N.chevent_itemtime_id = E.chevent_itemtime_id AND N.chevent_status = 2
						   AND N.chevent_startdate >= E.chevent_startdate ORDER BY E.chevent_startdate DESC
					 ),CURRENT_TIMESTAMP) as end_date
					FROM AFLS_CHRONOS_EVENTS as E INNER JOIN AFLS_CHRONOS_RESULTS as R 
					ON E.chevent_doc_id = R.chresult_item_id AND E.chevent_itemtime_id = R.chresult_itemtime_id AND E.chevent_itemtime_id = R.chresult_itemtime_id
					INNER JOIN AFLS_WORKORDERS AS WO ON WO.work_id = E.chevent_doc_id
					INNER JOIN AFLS_SERVICES AS SV ON SV.serv_id = WO.serv_id
					WHERE  R.chresult_status = 1 AND E.chevent_status = 1
					) as EE ON  C.calev_startdate >= EE.date AND C.calev_startdate <= EE.end_date AND C.cale_id = EE.calendar_id
										
					UNION ALL

					--Genera los Eventos de finalizacion para cada cronometro a evaluar en caso de que no se hallan cerrado
					SELECT 'F' as type, R.chresult_item_id ,R.chresult_itemtime_id as id, 2 as status, CURRENT_TIMESTAMP as date
					FROM AFLS_CHRONOS_RESULTS as R 
					WHERE  R.chresult_status = 1 

				) as TE
			) as T1
			LEFT JOIN
			(
				--Se une con la misma tabla T1 para 
				--Se enumeran  las filas para determinar el anterior y siguiente de cada registro
				SELECT *, row_number() OVER(order by doc_id, id, date) as 'num' FROM
				(

					--Trae los eventos de los cronometros abiertos
					SELECT R2.type, R2.doc_id, R2.id, R2.status, R2.date
					FROM
					(
						SELECT 'E' as type, E1.chevent_doc_id as doc_id, E1.chevent_itemtime_id as id, E1.chevent_status as status, E1.chevent_startdate as date,
						(
							SELECT TOp 1 C.calev_id as date
							FROM AFLS_CALENDARS_EVENTS as C INNER JOIN
							(
							SELECT 'E' as type, E.chevent_doc_id as doc_id, E.chevent_itemtime_id as id, E.chevent_status as status, E.chevent_startdate as date, SV.serv_calendar_id AS calendar_id
							,ISNULL((
								   SELECT TOP 1 N.chevent_startdate FROM AFLS_CHRONOS_EVENTS as N
								   WHERE N.chevent_doc_id = E.chevent_doc_id AND N.chevent_itemtime_id = E.chevent_itemtime_id AND N.chevent_status = 2
								   AND N.chevent_startdate >= E.chevent_startdate ORDER BY E.chevent_startdate DESC
							 ),CURRENT_TIMESTAMP) as end_date
							FROM AFLS_CHRONOS_EVENTS as E INNER JOIN AFLS_CHRONOS_RESULTS as R 
							ON E.chevent_doc_id = R.chresult_item_id AND E.chevent_itemtime_id = R.chresult_itemtime_id AND E.chevent_itemtime_id = R.chresult_itemtime_id
							INNER JOIN AFLS_WORKORDERS AS WO ON WO.work_id = E.chevent_doc_id
							INNER JOIN AFLS_SERVICES AS SV ON SV.serv_id = WO.serv_id
							WHERE  R.chresult_status = 1 AND E.chevent_status = 1
							) as EE ON  C.calev_startdate >= EE.date AND C.calev_startdate <= EE.end_date AND C.cale_id = EE.calendar_id
							WHERE EE.doc_id = E1.chevent_doc_id  AND EE.id = E1.chevent_itemtime_id
							ORDER BY C.calev_startdate
						) AS start_limit_calev_id
						FROM AFLS_CHRONOS_EVENTS as E1 INNER JOIN AFLS_CHRONOS_RESULTS as R1 
						ON E1.chevent_doc_id = R1.chresult_item_id AND E1.chevent_itemtime_id = R1.chresult_itemtime_id
						WHERE R1.chresult_status = 1 														
					)R2
					LEFT JOIN AFLS_CALENDARS_EVENTS as C ON C.calev_id = R2.start_limit_calev_id
					WHERE (R2.date > C.calev_startdate OR R2.start_limit_calev_id IS NULL OR C.calev_status = 2)

					UNION ALL

					--Trae los eventos del calendario que se encuentran entre el start y stop de un evento cronometro
					SELECT 'C' as type, EE.doc_id ,EE.id as id, C.calev_status as status, C.calev_startdate as date
					FROM AFLS_CALENDARS_EVENTS as C INNER JOIN
					(
					SELECT 'E' as type, E.chevent_doc_id as doc_id, E.chevent_itemtime_id as id, E.chevent_status as status, E.chevent_startdate as date, SV.serv_calendar_id AS calendar_id
					,ISNULL((
						   SELECT TOP 1 N.chevent_startdate FROM AFLS_CHRONOS_EVENTS as N
						   WHERE N.chevent_doc_id = E.chevent_doc_id AND N.chevent_itemtime_id = E.chevent_itemtime_id AND N.chevent_status = 2
						   AND N.chevent_startdate >= E.chevent_startdate ORDER BY E.chevent_startdate DESC
					 ),CURRENT_TIMESTAMP) as end_date
					FROM AFLS_CHRONOS_EVENTS as E INNER JOIN AFLS_CHRONOS_RESULTS as R 
					ON E.chevent_doc_id = R.chresult_item_id AND E.chevent_itemtime_id = R.chresult_itemtime_id AND E.chevent_itemtime_id = R.chresult_itemtime_id
					INNER JOIN AFLS_WORKORDERS AS WO ON WO.work_id = E.chevent_doc_id
					INNER JOIN AFLS_SERVICES AS SV ON SV.serv_id = WO.serv_id
					WHERE  R.chresult_status = 1 AND E.chevent_status = 1
					) as EE ON  C.calev_startdate >= EE.date AND C.calev_startdate <= EE.end_date AND C.cale_id = EE.calendar_id

					UNION ALL

					--Genera los Eventos de finalizacion para cada cronometro a evaluar en caso de que no se hallan cerrado
					SELECT 'F' as type, R.chresult_item_id ,R.chresult_itemtime_id as id, 2 as status, CURRENT_TIMESTAMP as date
					FROM AFLS_CHRONOS_RESULTS as R 
					WHERE  R.chresult_status = 1 

				) as TE
			) as T2
		ON T1.num = T2.num +1 
		WHERE (T2.status IS NULL OR T1.status <> T2.status ) AND (T1.status = 1  OR (T1.status = 2 AND T2.status = 1 AND T1.doc_id = T2.doc_id AND T1.id = T2.id))
	) as FT
	GROUP BY FT.doc_id,FT.id
) as R2 
ON R.chresult_item_id = R2.doc_id AND R.chresult_itemtime_id = R2.id
GO
PRINT N'Creating View [dbo].[AQM_DOCUMENT_VIEW]...';


GO
CREATE VIEW [dbo].[AQM_DOCUMENT_VIEW]	
AS 
SELECT		
			AQM_DOCUMENT.Id											AS [Id],				-- Id del documento en AQM
			AFW_DOCUMENT.docu_name									AS [Name],				-- Nombre del reporte
			AFW_DOCUMENT.docu_description							AS [Description],		-- Descripción del reporte			
			AFW_FOLDER.fold_id										AS [CategoryId],
			AFW_FOLDER.fold_name									AS [FolderName],		-- Nombre de la carpeta donde se aloja
			AFW_DOCUMENT.docu_guid									AS [Guid],				-- Identificador unico del documento en el content manager
			AQM_DOCUMENT.IsPublished								AS [IsPublished],
			AQM_DOCUMENT.Type										AS [Type],				-- Tipo de documento
			AQM_DOCUMENT.TemplateId									AS [TemplateId],		-- Plantilla del documento
			AFW_DOCUMENT.docu_id									AS [DocumentId],		-- Identificador de documento en el content
			AQM_APPLICATION.Id										AS [ApplicationId],		-- Identificador de la aplicacion
			AQM_APPLICATION.Code									AS [ApplicationCode],	-- Codigo de aplicacion		
			AQM_APPLICATION.Acronym									AS [Acronym],			-- Acronimo del producto
			AQM_APPLICATION.Name									AS [ApplicationName],	-- Nombre de la aplicacion
			AQM_APPLICATION.Version									AS [ApplicationVersion],-- Version de la aplicacion
			AFW_DOCUMENT.docu_size									AS [Size],				-- Tamaño del documento
			AFW_DOCUMENT.docu_creation_date							AS [CreationDate],		-- Fecha de creación
			AFW_DOCUMENT.docu_created_by							AS [CreatedBy],			-- Usuario que creó el documento										
			AQM_DOCUMENT.Tags										AS [Tags],
			AQM_DOCUMENT.ImageUrl									AS [ImageUrl],
			AQM_DOCUMENT.TotalDownloads								AS [TotalDownloads],
			AQM_DOCUMENT.InStore									AS [InStore],
			AQM_DOCUMENT.StoreDate									AS [StoreDate],			
			AQM_DOCUMENT.StoreGuid									AS [StoreGuid],
			AQM_DOCUMENT.ReloadTime									AS [ReloadTime],		-- Tiempo de recarga de un documento			
			AQM_DOCUMENT.ProviderId									AS [ProviderId],
			CASE WHEN
				DATEDIFF(DAY,AFW_DOCUMENT.docu_last_modified_date, GETDATE())	<= 7 
			THEN CONVERT(BIT,1)  
			ELSE CONVERT(BIT,0)
			END														AS [IsNew]

FROM		[AFW_DOCUMENT]			
JOIN        [AQM_DOCUMENT]				ON AQM_DOCUMENT.DocumentId				= AFW_DOCUMENT.docu_id
JOIN		[AFW_FOLDER]				ON AFW_FOLDER.fold_id					= AFW_DOCUMENT.docu_parent_id
JOIN		[AQM_FOLDER_SETTING]		ON AQM_FOLDER_SETTING.FolderId			= AFW_FOLDER.fold_id
LEFT JOIN	[AQM_APPLICATION]			ON AQM_APPLICATION.Id					= AQM_FOLDER_SETTING.ApplicationId 
WHERE       [AFW_FOLDER].fold_application_id  = 29
GO
PRINT N'Creating View [dbo].[AQM_DOCUMENT_VIEW_2]...';


GO
CREATE VIEW [dbo].[AQM_DOCUMENT_VIEW_2]	
AS 
SELECT		
			AQM_DOCUMENT.Id											AS [Id],				    -- Id del documento en AQM
			AFW_DOCUMENT.docu_name									AS [Name],				    -- Nombre del reporte
			AFW_DOCUMENT.docu_description							AS [Description],		    -- Descripción del reporte			
			AFW_FOLDER.fold_id										AS [FolderId],		    
			AFW_FOLDER.fold_name									AS [FolderName],		    -- Nombre de la carpeta donde se aloja
			AFW_DOCUMENT.docu_guid									AS [Guid],				    -- Identificador unico del documento en el content manager			     
			AQM_DOCUMENT.IsPublished								AS [IsPublished],		    
			AQM_DOCUMENT.Type										AS [Type],				    -- Tipo de documento
			AQM_DOCUMENT.TemplateId									AS [TemplateId],		    -- Plantilla del documento
			AFW_DOCUMENT.docu_id									AS [DocumentId],		    -- Identificador de documento en el content
			AQM_APPLICATION.Id										AS [ApplicationId],		    -- Identificador de la aplicacion
			AQM_APPLICATION.Code									AS [ApplicationCode],	    -- Codigo de aplicacion		
			AQM_APPLICATION.Acronym									AS [Acronym],			    -- Acronimo del producto
			AQM_APPLICATION.Name									AS [ApplicationName],	    -- Nombre de la aplicacion
			AQM_APPLICATION.Version									AS [ApplicationVersion],    -- Version de la aplicacion
			AFW_DOCUMENT.docu_size									AS [Size],				    -- Tamaño del documento
			AFW_DOCUMENT.docu_creation_date							AS [CreationDate],		    -- Fecha de creación			
			AFW_DOCUMENT.docu_created_by							AS [CreatedBy],			    -- Usuario que creó el documento										
			creator.[user_name]                                     AS [CreatorName],           -- Usuario que creo el documento ,
			AFW_DOCUMENT.docu_last_modified_date                    AS [LastModificationDate],  -- Ultima fecha de modificacion
			modified.[user_name]                                    AS [ModifiedUserName],      -- Usuario que modifico el documento
			modified.[user_id]                                      AS [ModifiedUserId],        -- Usuario que modifico el documento
			AQM_DOCUMENT.Tags										AS [Tags],
			AQM_DOCUMENT.ImageUrl									AS [ImageUrl],
			AQM_DOCUMENT.TotalDownloads								AS [TotalDownloads],
			AQM_DOCUMENT.InStore									AS [InStore],
			AQM_DOCUMENT.StoreDate									AS [StoreDate],			
			AQM_DOCUMENT.StoreGuid									AS [StoreGuid],
			AQM_DOCUMENT.ReloadTime									AS [ReloadTime],		-- Tiempo de recarga de un documento			
			AQM_DOCUMENT.ProviderId									AS [ProviderId],
			CASE WHEN
				DATEDIFF(DAY,AFW_DOCUMENT.docu_last_modified_date, GETDATE())	<= 7 
			THEN CONVERT(BIT,1)  
			ELSE CONVERT(BIT,0)
			END														AS [IsNew]

FROM		[AFW_DOCUMENT]			
JOIN        [AQM_DOCUMENT]				ON AQM_DOCUMENT.DocumentId				= AFW_DOCUMENT.docu_id
JOIN		[AFW_FOLDER]				ON AFW_FOLDER.fold_id					= AFW_DOCUMENT.docu_parent_id
JOIN		[AQM_FOLDER_SETTING]		ON AQM_FOLDER_SETTING.FolderId			= AFW_FOLDER.fold_id
LEFT JOIN   [AFW_USERS]    creator 		ON AFW_DOCUMENT.docu_created_by			= creator.[user_id]
LEFT JOIN   [AFW_USERS]    modified 	ON AFW_DOCUMENT.docu_last_modified_by	= modified.[user_id]
LEFT JOIN	[AQM_APPLICATION]			ON AQM_APPLICATION.Id					= AQM_FOLDER_SETTING.ApplicationId 
WHERE       [AFW_FOLDER].fold_application_id  = 29
GO
PRINT N'Creating View [dbo].[AQM_TRANSLATE_VIEW]...';


GO
CREATE VIEW [dbo].[AQM_TRANSLATE_VIEW]
AS
SELECT	
		AQM_TRANSLATE.Id								AS [Id],				-- Id del archivo de traduccion
		AQM_TRANSLATE.AqmDocumentId						AS [AqmDocumentId],		-- Id del archivo a traducir
		AQM_TRANSLATE.Language							AS [Language],			-- Lenguage de traduccion
		AFW_DOCUMENT.docu_name							AS [Name],				-- Nombre del archivo de traduccion
		AFW_DOCUMENT.docu_description					AS [Description],		-- Descripción del archivo de traduccion		
		AFW_FOLDER.fold_id								AS [FolderId],			-- Carpeta 		
		AFW_FOLDER.fold_name							AS [FolderName],		-- Nombre de la carpeta donde se aloja
		AFW_DOCUMENT.docu_size							AS [Size] ,				-- Tamaño del documento
		AFW_DOCUMENT.docu_creation_date					AS [CreationDate],		-- Fecha de creación
		AFW_DOCUMENT.docu_created_by					AS [CreatedBy],			-- Usuario que creó el documento
		AFW_DOCUMENT.docu_id							AS [DocumentId],		-- Identificador del documento		
		AFW_DOCUMENT.docu_guid							as [Guid]				-- Identificador unico del documento
FROM	[AFW_DOCUMENT]
JOIN	[AQM_TRANSLATE]			ON AQM_TRANSLATE.DocumentId				= AFW_DOCUMENT.docu_id
JOIN	[AFW_FOLDER]			ON AFW_FOLDER.fold_id					= AFW_DOCUMENT.docu_parent_id
GO
PRINT N'Creating View [dbo].[ASDK_ITEM_DW_LAST]...';


GO
CREATE VIEW [dbo].[ASDK_ITEM_DW_LAST] AS
SELECT
	afr.[id]											id,
	afr.[id_by_project]                                 id_by_project,
	afr.rev                                             rev,
	dit.[subject]                                       subject,
	afr.[item_type_sk]				                    type_id,
	afr.[status_sk]				                        state_id,
	afr.[project_sk]                                    project_id,
	afr.[reason_sk]                                     reason_id,
	afr.[category_sk]                                   category_id,
	afr.[service_sk]                                    service_id,
	afr.[impact_sk]                                     impact_id,
	afr.[urgency_sk]                                    urgency_id,
	afr.[priority_sk]                                   priority_id,
	afr.[registry_type_sk]                              registry_type_id,
	dit.[description]                                   description,
	dit.[description_nohtml]                            description_nohtml,
	afr.[specialist_group_sk]                           group_id,
	afr.[specialist_user_sk]                            responsible_id,
	afr.[customer_user_sk]                              customer_id,
	afr.[author_user_sk]                                author_id,
	afr.[company_sk]                                    company_id,
	afr.[ci_sk]                                         ci_id,
	afr.[modifier_user_sk]                              modifier_id,
	afr.[receptor_user_sk]                              receptor_id,
	afr.[integration_sk]                                integration_id,
	afr.[opened_date]                                   opened_date,
	afr.[closed_date]                                   closed_date,
	afr.[modified_date]                                 modified_date,
	afr.[created_date]                                  created_date,
	afr.[calendar_sla_sk]                               calendar_sla_id,
	afr.[calendar_uc_sk]                                calendar_uc_id,
	afr.[calendar_ola_sk]                               calendar_ola_id,
	dit.[commentary]                                    commentary,
	dit.[commentary_nohtml]                             commentary_nohtml,
	dit.[cause]                                         cause,
	dit.[cause_nohtml]                                  cause_nohtml,
	afr.[model_sk]                                      model_id,
	afr.[sla_sk]                                        sla_id,
	afr.[uc_sk]                                         uc_id,
	afr.[ola_sk]                                        ola_id,
	afr.[provider_sk]                                   provider_id,
	afr.[unit_sk]                                       unit_id,
	asd.token				                            survey_token,
	afr.[previous_status_sk]                            previous_status_id,
	afr.[price]                                         price,
	afr.[cost]                                          cost,
	afr.[effort]                                        effort,
	afr.[cost_model_sk]                                 cost_model_id,
	afr.[profit_center_sk]                              income_center_id,
	afr.[cost_center_sk]                                cost_center_id,
	afr.[interface_sk]                                  interface_id,
	afr.[available_cost]                                available_cost,
	afr.[available_effort]                              available_effort,
	afr.[available_price]                               available_price,
	afr.[available_count]                               available_count,
	a_mail.user_name				                    author_email,
	fitf.[Add_Int_1]                                    add_int_1,
	fitf.[Add_Int_2]                                    add_int_2,
	fitf.[Add_Int_3]                                    add_int_3,
	fitf.[Add_Int_4]                                    add_int_4,
	fitf.[Add_Int_5]                                    add_int_5,
	fitf.[Add_Int_6]                                    add_int_6,
	fitf.[Add_Int_7]                                    add_int_7,
	fitf.[Add_Int_8]                                    add_int_8,
	fitf.[Add_Int_9]                                    add_int_9,
	fitf.[Add_Int_10]                                   add_int_10,
	fitf.[Add_Str_1]                                    add_str_1,
	fitf.[Add_Str_2]                                    add_str_2,
	fitf.[Add_Str_3]                                    add_str_3,
	fitf.[Add_Str_4]                                    add_str_4,
	fitf.[Add_Str_5]                                    add_str_5,
	fitf.[Add_Str_6]                                    add_str_6,
	fitf.[Add_Str_7]                                    add_str_7,
	fitf.[Add_Str_8]                                    add_str_8,
	fitf.[Add_Str_9]                                    add_str_9,
	fitf.[Add_Str_10]                                   add_str_10,
	fitf.[Add_Date_1]                                   add_date_1,
	fitf.[Add_Date_2]                                   add_date_2,
	fitf.[Add_Date_3]                                   add_date_3,
	fitf.[Add_Date_4]                                   add_date_4,
	fitf.[Add_Date_5]                                   add_date_5,
	fitf.[Add_Date_6]                                   add_date_6,
	fitf.[Add_Date_7]                                   add_date_7,
	fitf.[Add_Date_8]                                   add_date_8,
	fitf.[Add_Date_9]                                   add_date_9,
	fitf.[Add_Date_10]                                  add_date_10,
	fitf.[Add_Float_1]                                  add_float_1,
	fitf.[Add_Float_2]                                  add_float_2,
	fitf.[Add_Float_3]                                  add_float_3,
	fitf.[Add_Float_4]                                  add_float_4,
	fitf.[Add_Float_5]                                  add_float_5,
	fitf.[Add_Float_6]                                  add_float_6,
	fitf.[Add_Float_7]                                  add_float_7,
	fitf.[Add_Float_8]                                  add_float_8,
	fitf.[Add_Float_9]                                  add_float_9,
	fitf.[Add_Float_10]                                 add_float_10,
	fitf.[Add_Bool_1]                                   add_bool_1,
	fitf.[Add_Bool_2]                                   add_bool_2,
	fitf.[Add_Bool_3]                                   add_bool_3,
	fitf.[Add_Bool_4]                                   add_bool_4,
	fitf.[Add_Bool_5]                                   add_bool_5,
	fitf.[Add_Bool_6]                                   add_bool_6,
	fitf.[Add_Bool_7]                                   add_bool_7,
	fitf.[Add_Bool_8]                                   add_bool_8,
	fitf.[Add_Bool_9]                                   add_bool_9,
	fitf.[Add_Bool_10]                                  add_bool_10,
	a_st_name.stat_name									state_name,
	projects_name.proj_name								project_name,
	a_st_reason.reas_description						reason_name,
	asdk_cat.ctg_caption								category_name,
	asdk_cat.fl_str_hierarchy							category_hierarchy,
	asdk_name.name										service_name,
	afw_impact.code_value								impact_name,
	afw_urgen.code_value								urgency_name,
	afw_prio.code_value									priority_name,
	afw_regis.code_value								registry_type_name,
	afw_groups.grou_name								group_name,
	aur.user_name										responsible_name,
	auc.user_name										customer_name,
	aua.user_name										author_name,
	ac.Name												company_name,
	cc.Name												ci_name,
	cc.serial											ci_serial,
	cc.asset_tag										ci_asset_tag,
	au.user_name										modifier_name,
	aure.user_name										receptor_name,
	am.Name												model_name,
	ass.Name											sla_name,
	asu.Name											uc_name,
	aso.Name											ola_name,
	asp.Name											provider_name,
	afg.grou_name										unit_name,
	att.Name											type_name,
	acc.calendar_name									calendar_sla_name,
	accu.calendar_name									calendar_uc_name,
	acco.calendar_name									calendar_ola_name,
	atc.stat_background_color_rgb						status_color,
	afr.[estimated_date]                                estimated_date,
	afr.[default_time_real_date]                        real_date,
	afr.[estimated_time]                                estimated_time,
	afr.[current_progress]                              current_progress,
	afr.[current_time]                                  [current_time],
	din.[note]                                          note,
	afr.[state_final]                                   state_final,
	afr.[location_sk]                                   location_id,
	afr.[contract_sk]                                   contract_id,
	afr.[state_initial]                                 state_initial,
	afr.[applicant_sk]                                  applicant_id,
	af.user_name					                    applicant_name
FROM [adw].[FACT_ASDK_ITEM]	AS afr WITH (NOLOCK)
LEFT JOIN [adw].[FACT_ASDK_ITEM_FIELDS_REVISION] AS fitf ON afr.[id] = fitf.[id]
	AND fitf.is_current = 1
OUTER APPLY (
	SELECT
		*
	FROM [adw].[DIM_ASDK_ITEM_TEXT] AS dit
	WHERE afr.[id] = dit.[item_sk]
		AND dit.is_current = 1
) dit
LEFT JOIN [adw].[DIM_ITEM_NOTES] AS din ON afr.[id] = din.[item_sk]
	AND din.is_current = 1
LEFT JOIN [dbo].ASMS_SURVEY_DATA AS asd ON afr.[id] = asd.item_id
	AND asd.is_current = 1
LEFT JOIN AFW_USERS AS a_mail ON afr.[author_user_sk] = a_mail.[user_id]
LEFT JOIN ASMS_STATUS AS a_st_name ON a_st_name.[stat_id] = afr.[status_sk]
LEFT JOIN ASMS_PROJECTS AS projects_name ON projects_name.[proj_id] = afr.[project_sk]
LEFT JOIN ASMS_STATUS_REASON AS a_st_reason ON a_st_reason.[reas_id] = afr.[reason_sk]
LEFT JOIN ASDK_CATEGORY AS asdk_cat ON asdk_cat.[ctg_index] = afr.[category_sk]
LEFT JOIN ASDK_SERVICE AS asdk_name ON asdk_name.[Id] = afr.[service_sk]
LEFT JOIN  (
	SELECT 
		iptacc.code_cata_id,
		iptacc.code_id,
		iptacc.code_value 
	FROM AFW_CATALOG iptact
	INNER JOIN AFW_CATALOG_CODE iptacc ON iptact.cata_id = iptacc.code_cata_id 
		AND iptact.cata_name = 'IMPACT' 
) AS afw_impact ON afw_impact.[code_id] = afr.[impact_sk]
LEFT JOIN  (
	SELECT 
		urgacc.code_cata_id,
		urgacc.code_id,
		urgacc.code_value 
	FROM AFW_CATALOG urgact
	INNER JOIN AFW_CATALOG_CODE urgacc ON urgact.cata_id = urgacc.code_cata_id 
		AND urgact.cata_name = 'URGENCY' 
) AS afw_urgen ON afw_urgen.[code_id] = afr.[urgency_sk]
LEFT JOIN  (
	SELECT 
		pryacc.code_cata_id,
		pryacc.code_id,
		pryacc.code_value 
	FROM AFW_CATALOG pryact
	INNER JOIN AFW_CATALOG_CODE pryacc ON pryact.cata_id = pryacc.code_cata_id 
		AND pryact.cata_name = 'PRIORITY' 
) AS afw_prio ON afw_prio.[code_id] = afr.[priority_sk]
LEFT JOIN  (
	SELECT 
		rgtacc.code_cata_id,
		rgtacc.code_id,
		rgtacc.code_value 
	FROM AFW_CATALOG rgtact
	INNER JOIN AFW_CATALOG_CODE rgtacc ON rgtact.cata_id = rgtacc.code_cata_id 
		AND rgtact.cata_name = 'REGISTRY_TYPE' 
) AS afw_regis ON afw_regis.[code_id] = afr.[registry_type_sk]
LEFT JOIN AFW_GROUPS AS afw_groups ON afw_groups.[grou_id] = afr.[specialist_group_sk]
LEFT JOIN AFW_USERS AS aur ON aur.[user_id] = afr.[specialist_user_sk]
LEFT JOIN AFW_USERS AS auc ON auc.[user_id] = afr.[customer_user_sk]
LEFT JOIN AFW_USERS AS aua ON aua.[user_id] = afr.[author_user_sk]
LEFT JOIN ASMS_COMPANY AS ac ON ac.[id] = afr.[company_sk]
LEFT JOIN CMDB_CI AS cc ON cc.[id] = afr.[ci_sk]
LEFT JOIN AFW_USERS AS au ON au.[user_id] = afr.[modifier_user_sk]
LEFT JOIN AFW_USERS AS aure ON aure.[user_id] = afr.[receptor_user_sk]
LEFT JOIN ASMS_MODEL AS am ON am.[id] = afr.[model_sk]
LEFT JOIN ASDK_SLA AS ass ON ass.[SLA_ID] = afr.[sla_sk]
LEFT JOIN ASDK_SLA AS asu ON asu.[SLA_ID] = afr.[uc_sk]
LEFT JOIN ASDK_SLA AS aso ON aso.[SLA_ID] = afr.[ola_sk]
LEFT JOIN ASMS_COMPANY AS asp ON asp.[id] = afr.[provider_sk]
LEFT JOIN AFW_GROUPS AS afg ON afg.[grou_id] = afr.[unit_sk]
LEFT JOIN ASMS_TYPES AS att ON att.[id] = afr.[item_type_sk]
LEFT JOIN ASMS_CALENDAR AS acc ON acc.[CALENDAR_ID] = afr.[calendar_sla_sk]
LEFT JOIN ASMS_CALENDAR AS accu ON accu.[CALENDAR_ID] = afr.[calendar_uc_sk]
LEFT JOIN ASMS_CALENDAR AS acco ON acco.[CALENDAR_ID] = afr.[calendar_ola_sk]
LEFT JOIN ASMS_STATUS AS atc ON atc.[stat_id] = afr.[status_sk]
LEFT JOIN AFW_USERS AS af ON af.[user_id] = afr.[applicant_sk]
GO
PRINT N'Creating View [dbo].[MV_AAM_DEVICE_AGENT]...';


GO
CREATE VIEW [dbo].[MV_AAM_DEVICE_AGENT] 
WITH SCHEMABINDING
    AS
	SELECT 
		[device_id], 
		ISNULL(device_configuration.[agent_version], 'NA')	AS agent_version,
		[name]
	FROM dbo.AAM_DEVICE_CONFIGURATION						AS device_configuration
	INNER JOIN dbo.ADM_AGENT_PROFILE						AS agepro				ON agepro.[id] = device_configuration.[profile_id]
GO
PRINT N'Creating Index [dbo].[MV_AAM_DEVICE_AGENT].[CI01_MV_AAM_DEVICE_AGENT]...';


GO
CREATE UNIQUE CLUSTERED INDEX [CI01_MV_AAM_DEVICE_AGENT]
    ON [dbo].[MV_AAM_DEVICE_AGENT]([device_id] ASC);


GO
PRINT N'Creating View [dbo].[MV_AAM_DEVICE_PROCESSOR]...';


GO
CREATE VIEW [dbo].[MV_AAM_DEVICE_PROCESSOR] 
WITH SCHEMABINDING
    AS
	SELECT
		[device_id], 
		pro.[vpro]						AS vpro,
		COUNT_BIG(*)					AS order_count
	FROM dbo.[AAM_DEVICE_PROCESSORSLOT]	AS proslot 
	INNER JOIN dbo.[AAM_PROCESSOR]		AS pro			ON proslot .[processor_id] = pro.[id]
	GROUP BY device_id, vpro
GO
PRINT N'Creating Index [dbo].[MV_AAM_DEVICE_PROCESSOR].[CI01_MV_AAM_DEVICE_PROCESSOR]...';


GO
CREATE UNIQUE CLUSTERED INDEX [CI01_MV_AAM_DEVICE_PROCESSOR]
    ON [dbo].[MV_AAM_DEVICE_PROCESSOR]([device_id] ASC);


GO
PRINT N'Creating View [dbo].[MV_AAM_DEVICE_USERS]...';


GO
CREATE VIEW [dbo].[MV_AAM_DEVICE_USERS] 
WITH SCHEMABINDING
AS
    SELECT 
        devRe.[device_id],
        users.[user_id],
        users.[user_name],
        users.[user_email]
    FROM dbo.AAM_DEVICE_RESPONSIBLE     AS devRe
    JOIN dbo.AFW_USERS                  AS users ON users.[user_id] = devRe.[user_id]
GO
PRINT N'Creating Index [dbo].[MV_AAM_DEVICE_USERS].[CI_01_MV_AAM_DEVICE_USERS]...';


GO
CREATE UNIQUE CLUSTERED INDEX [CI_01_MV_AAM_DEVICE_USERS]
    ON [dbo].[MV_AAM_DEVICE_USERS]([device_id] ASC);


GO
PRINT N'Creating View [dbo].[V_AAM_DEVICE_DISCOVERY]...';


GO
CREATE VIEW [dbo].[V_AAM_DEVICE_DISCOVERY] 
AS
	SELECT 
		[device_id],
		STRING_AGG([address], ', ') AS address
	FROM 
		[dbo].[ADM_DEVICE_DISCOVERY]
	GROUP BY 
		device_id
GO
PRINT N'Creating View [dbo].[V_AAM_DEVICE_SETUP]...';


GO
CREATE   VIEW [dbo].[V_AAM_DEVICE_SETUP] AS
SELECT
	ds.[device_id],
    ds.[system_id],
	ds.[system_serial],
	ds.[chassis_serial],
	ds.[baseboard_serial],
	ds.[system_product],
	ds.[baseboard_serial]			AS dev_baseboard_serial,
	CASE
		WHEN sm.[name] <> 'Unknown'	THEN sm.[id]
		WHEN cm.[name] <> 'Unknown'	THEN cm.[id]
		ELSE bm.[id]
	END								AS manufacturer_id,
	CASE
		WHEN sm.[name] <> 'Unknown'	THEN sm.[name]
		WHEN cm.[name] <> 'Unknown'	THEN cm.[name]
		ELSE bm.[name]
	END								AS manufacturer,
	COALESCE(
		ds.[system_serial], 
		ds.[chassis_serial], 
		ds.[baseboard_serial])		AS serial
FROM dbo.[AAM_DEVICE_SETUP] ds
INNER JOIN dbo.[AAM_MANUFACTURER] sm ON sm.[id] = ds.[system_manufacturer_id]
INNER JOIN dbo.[AAM_MANUFACTURER] cm ON cm.[id] = ds.[chassis_manufacturer_id]
INNER JOIN dbo.[AAM_MANUFACTURER] bm ON bm.[id]	= ds.[baseboard_manufacturer_id]
GO
PRINT N'Creating View [dbo].[V_AAM_DEVICE_SOFTWARE]...';


GO
CREATE VIEW V_AAM_DEVICE_SOFTWARE WITH SCHEMABINDING AS
SELECT	sw.id software_id,
		sw.platform,
		sw.name,
		device_id,
		swVer.product_id,
		swVer.version,
		swVer.id version_id
FROM dbo.AAM_DEVICE_SOFTWARE	AS devSw		
JOIN dbo.AAM_SOFTWARE_VERSION	AS swVer	ON swVer.id = devSw.software_id
JOIN dbo.AAM_SOFTWARE_PRODUCT	AS sw		ON sw.id = swVer.product_id 
	AND sw.[type] = 0
GO
PRINT N'Creating Index [dbo].[V_AAM_DEVICE_SOFTWARE].[IX01_V_AAM_DEVICE_SOFTWARE]...';


GO
CREATE UNIQUE CLUSTERED INDEX [IX01_V_AAM_DEVICE_SOFTWARE]
    ON [dbo].[V_AAM_DEVICE_SOFTWARE]([device_id] ASC);


GO
PRINT N'Creating View [dbo].[V_APM_PATCH]...';


GO
CREATE VIEW dbo.V_APM_PATCH AS
SELECT 
    p.id AS patch_id,
    p.title,
    p.url_release_note,
    p.version,
    p.kb_id,
    p.publish_date,
    p.severity,
    p.description,
    p.external_patch_id,
    p.size,
    d.download_date,
    d.download_status_id,
    d.schedule_date,
	d.id as download_id,
    c.category_id,
    CASE WHEN sp.is_installed_all = 1 THEN 1 ELSE 0 END AS is_installed,
	sp.installed_count,
    sp.not_installed_count
	FROM dbo.APM_PATCH p
	LEFT JOIN dbo.APM_PATCH_DOWNLOAD d ON p.id = d.patch_id
	LEFT JOIN dbo.APM_PATCH_CATEGORY c ON p.id = c.patch_id
	JOIN (
		SELECT 
        sp.patch_id, 
        CASE 
            WHEN MIN(CASE WHEN sp.is_installed = 0 THEN 0 ELSE 1 END) = 1 THEN 1 
            ELSE 0 
        END AS is_installed_all,
        SUM(CASE WHEN sp.is_installed = 1 THEN 1 ELSE 0 END) AS installed_count,
        SUM(CASE WHEN sp.is_installed = 0 THEN 1 ELSE 0 END) AS not_installed_count
		FROM dbo.APM_SCAN_PATCH sp
		JOIN dbo.APM_SCAN_RESULT sr ON sp.scan_result_id = sr.id
		JOIN dbo.AAM_DEVICE d ON sr.device_id = d.id
		WHERE d.is_active = 1
		GROUP BY sp.patch_id
	) sp ON p.id = sp.patch_id
GO
PRINT N'Creating View [dbo].[V_APM_PATCH_MAIN]...';


GO
CREATE VIEW [dbo].[V_APM_PATCH_MAIN]
	AS 
SELECT
		P.id,
		2 [class_type],
		P.guid,
		B.bulletin_id,
		CONCAT(B.summary,' ',P.informational_comment) summary,
		P.kb_number sqnumber,
		P.name,
		B.bulletin_page [bulletin_url],
		P.cve_ids,
		P.severity_id,
		CONCAT(B.title, ' ', L.short_name) bulletin_title,
		P.date_released posted_date,
		CASE WHEN  P.is_deployable=1 and P.is_downloadable=1 THEN 1 ELSE 0 END deployable,
		SCP.is_installed,
		P.patch_type_id,
		DD.id download_id,
		DD.download_status_id,
		DD.download_date,
		DD.scheduled_date,
		DD.url,
		DD.size,
		L.id language_id,
		DD.language_id AS download_language_id
	FROM (
		SELECT DISTINCT
			patch_id,
			CASE WHEN SUM(is_installed) = COUNT(*) THEN 1 ELSE 0 END AS is_installed,
			l.id lang
		FROM APM_SCANNED_PATCHES scp
		INNER JOIN APM_REGION R ON scp.region_id = R.id
		INNER JOIN APM_LANGUAGE L ON L.id = R.language_id
		GROUP BY patch_id, l.id
	) SCP
	INNER JOIN APM_PATCH_DETAIL P ON SCP.patch_id = P.id
	INNER JOIN APM_BULLETIN_DETAIL B ON B.id = P.bulletin_id
	INNER JOIN APM_LANGUAGE L ON L.id = SCP.lang
	INNER JOIN APM_DOWNLOAD_DETAIL DD ON DD.patch_detail_id = P.id
	AND (DD.language_id = L.id 
	AND EXISTS(SELECT 1 FROM APM_DOWNLOAD_DETAIL dd1 WHERE dd1.patch_detail_id=dd.patch_detail_id AND dd1.language_id=l.id) 
	OR NOT EXISTS(SELECT 1 FROM APM_DOWNLOAD_DETAIL dd1 WHERE dd1.patch_detail_id=dd.patch_detail_id AND dd1.language_id=l.id) 
	AND dd.language_id =(SELECT id FROM APM_LANGUAGE WHERE language_id=0))
UNION ALL
SELECT
	SP.id,
	1 [class_type],
	SP.guid,
	SP.name bulletin_id,
	NULL summary,
	SP.name sqnumber,
	NULL name,
	NULL [bulletin_url],
	NULL cve_ids,
	2 severity_id,
	CONCAT(SP.name,' ',L.short_name,' (', DD.shavlik_file_name, ')') bulletin_title,
	SP.created_date posted_date,
	SP.is_deployable deployable,
	0 is_installed,
	0 [patch_type_id], 
	DD.id download_id,
	DD.download_status_id,
	DD.download_date,
	DD.scheduled_date,
	DD.url,
	DD.size,
	L.id language_id,
	DD.language_id AS download_language_id
FROM (
		SELECT DISTINCT
			service_pack_id,
			l.id lang
		FROM APM_APPLICABLE_SERV_PACK aps
		INNER JOIN APM_REGION R ON aps.region_id = R.id
		INNER JOIN APM_LANGUAGE L ON L.id = R.language_id
	) APS
	INNER JOIN APM_SERVICE_PACK_DETAIL SP ON SP.id = APS.service_pack_id
	INNER JOIN APM_LANGUAGE L ON APS.lang = L.id
	INNER JOIN APM_DOWNLOAD_DETAIL DD ON DD.service_pack_id = SP.id 
	AND (DD.language_id = L.id 
	AND EXISTS(SELECT 1 FROM APM_DOWNLOAD_DETAIL dd1 WHERE dd1.service_pack_id=dd.service_pack_id AND dd1.language_id=l.id) 
	OR NOT EXISTS(SELECT 1 FROM APM_DOWNLOAD_DETAIL dd2 WHERE dd2.service_pack_id=dd.service_pack_id AND dd2.language_id=l.id)
	AND dd.language_id =(SELECT id FROM APM_LANGUAGE WHERE language_id=0))
GO
PRINT N'Creating View [dbo].[V_AQM_STORE_TREE]...';


GO
CREATE VIEW [dbo].[V_AQM_STORE_TREE] AS
WITH cte_folder_hierarchy (
	root_folder,
	fold_parent_id,
	fold_id,
	fold_name,
	fold_order,
	depth
) AS (
	SELECT 
		fold_id root_folder,
		fold_parent,
		fold_id,
		fold_name,
		fold_order,
		1 AS depth
	FROM AFW_FOLDER as f
	UNION ALL
	SELECT
		root_folder,
		e.fold_parent,
		e.fold_id,
		e.fold_name,
		e.fold_order,
		depth + 1
	FROM AFW_FOLDER AS e
	INNER JOIN cte_folder_hierarchy AS d ON e.fold_parent = d.fold_id
)

SELECT DISTINCT
	fd.fold_parent as fold_parent_id,
	fd.fold_id,
	fd.fold_name as fold_name,
	fd.fold_order
FROM cte_folder_hierarchy fh
INNER JOIN AFW_FOLDER fd ON fd.fold_id = fh.root_folder
INNER JOIN (
	SELECT DISTINCT
		ad.docu_parent_id
	FROM AFW_DOCUMENT ad
	INNER JOIN AQM_DOCUMENT qd ON qd.DocumentId = ad.docu_id
	WHERE qd.InStore = 1
) fs ON fs.docu_parent_id = fh.fold_id;
GO
PRINT N'Creating View [dbo].[V_AQM_TREE]...';


GO
CREATE VIEW [dbo].[V_AQM_TREE] AS
WITH cte_folder_hierarchy (
	root_folder,
	fold_parent_id,
	fold_id,
	fold_name,
	fold_order,
	depth
) AS (
	SELECT 
		fold_id root_folder,
		fold_parent,
		fold_id,
		fold_name,
		fold_order,
		1 AS depth
	FROM AFW_FOLDER as f
	UNION ALL
	SELECT
		root_folder,
		e.fold_parent,
		e.fold_id,
		e.fold_name,
		e.fold_order,
		depth + 1
	FROM AFW_FOLDER AS e
	INNER JOIN cte_folder_hierarchy AS d ON e.fold_parent = d.fold_id
)

SELECT DISTINCT
	fd.fold_parent AS fold_parent_id,
	fd.fold_id,
	fd.fold_name AS fold_name,
	fd.fold_order
FROM cte_folder_hierarchy fh
INNER JOIN AFW_FOLDER fd ON fd.fold_id = fh.root_folder
INNER JOIN (
	SELECT DISTINCT
		ad.docu_parent_id
	FROM AFW_DOCUMENT ad
	INNER JOIN AQM_DOCUMENT qd ON qd.DocumentId = ad.docu_id
	WHERE qd.IsPublished = 1
) fs ON fs.docu_parent_id = fh.fold_id
GO
PRINT N'Creating View [dbo].[V_ASDK_ALTERNATE_TIME]...';


GO
CREATE VIEW dbo.[V_ASDK_ALTERNATE_TIME] WITH SCHEMABINDING AS
SELECT
	t.model_id,
	t.id time_id,
	ct.category_id,
	ct.service_id
FROM dbo.[ASMS_TIMES] t
JOIN dbo.[ASDK_CATEGORY_TIME_DEFAULT] ct ON ct.time_id = t.id
GO
PRINT N'Creating Index [dbo].[V_ASDK_ALTERNATE_TIME].[UX01_V_ASDK_ALTERNATE_TIME]...';


GO
CREATE UNIQUE CLUSTERED INDEX [UX01_V_ASDK_ALTERNATE_TIME]
    ON [dbo].[V_ASDK_ALTERNATE_TIME]([model_id] ASC, [category_id] ASC, [service_id] ASC);


GO
PRINT N'Creating View [dbo].[V_ASDK_CHAT_PROJECT]...';


GO
CREATE VIEW [dbo].[V_ASDK_CHAT_PROJECT]
	AS SELECT 
		AFW_CHAT_PROJECT.Id,
		AFW_CHAT_PROJECT.CodeProject,
		AFW_CHAT_PROJECT.Name
FROM AFW_CHAT_PROJECT
WHERE Active = 1
GO
PRINT N'Creating View [dbo].[V_ASDK_CHAT_SPECIALIST]...';


GO
CREATE VIEW [dbo].[V_ASDK_CHAT_SPECIALIST]
	AS SELECT AFW_CHAT_PERSON.UserId AS user_id,
		  AFW_CHAT_PERSON.Name AS name,
		  AFW_CHAT_PROJECT.CodeProject AS code_project,
		  AFW_CHAT_PROJECT_AGENT.LevelAttention AS level_attention,
		  ASDK_AGENT_GROUP.group_id AS group_id,
		  AFW_GROUPS.grou_name AS group_name
FROM AFW_CHAT_PERSON 
INNER JOIN AFW_CHAT_PROJECT_AGENT ON AFW_CHAT_PROJECT_AGENT.PersonId = AFW_CHAT_PERSON.Id  AND AFW_CHAT_PROJECT_AGENT.Active = 1 
INNER JOIN AFW_CHAT_PROJECT ON AFW_CHAT_PROJECT.Id = AFW_CHAT_PROJECT_AGENT.ProjectId
INNER JOIN ASDK_AGENT_GROUP ON ASDK_AGENT_GROUP.agent_id = AFW_CHAT_PROJECT_AGENT.Id
INNER JOIN AFW_GROUPS ON  AFW_GROUPS.grou_id = ASDK_AGENT_GROUP.group_id
GO
PRINT N'Creating View [dbo].[V_ASDK_EVENT_DW]...';


GO

CREATE VIEW [dbo].[V_ASDK_EVENT_DW]
AS
SELECT ID, AUTHOR_ID, GROUP_ID, RESPONSIBLE_ID, IDENTIFIER, DESCRIPTION, PRIORITY_ID, TYPE_ID, STATE_ID, RECORD_ID, CI_ID, RECURRENCE, OPENED_DATE, CREATED_DATE, LAST_CORRELATION_DATE, CLOSED_DATE, VALUE, PROJECT_ID, PREVIOUS_STATE_ID, MODIFIER_ID, MODIFIED_DATE, REASON_ID, SOURCE_NAME, MACHINE_NAME, LOG_NAME, RESPONSIBLE_NAME, GROUP_NAME, CI_NAME, STATE_NAME, STATE_COLOR, REASON_NAME, PRIORITY_NAME, AUTHOR_NAME, MODIFIER_NAME, PROJECT_NAME, TYPE_NAME, NOTE, STATE_FINAL 
FROM ASDK_EVENT_DW_LAST
GO
PRINT N'Creating View [dbo].[V_ASDK_ITEM_CI]...';


GO
CREATE VIEW [dbo].[V_ASDK_ITEM_CI] 
AS 
SELECT 
	id AS item_id,
	ci_id,
	1 principal
FROM ASDK_ITEM
UNION 
SELECT 
	item_id,
	ci_id, 
	0 principal 
FROM ASDK_ITEM_CI
GO
PRINT N'Creating View [dbo].[V_ASDK_ITEM_DW]...';


GO
CREATE VIEW [dbo].[V_ASDK_ITEM_DW]
AS
SELECT
	afr.[id]												id, 
	afr.[id_by_project]                                     id_by_project, 
	afr.[rev]                                               rev, 
	dit.[subject]                                           subject, 
	afr.[item_type_sk]										type_id, 
	afr.[status_sk]											state_id, 
	afr.[project_sk]                                        project_id, 
	afr.[reason_sk]                                         reason_id, 
	afr.[category_sk]                                       category_id, 
	afr.[service_sk]                                        service_id, 
	afr.[impact_sk]                                         impact_id, 
	afr.[urgency_sk]                                        urgency_id, 
	afr.[priority_sk]                                       priority_id, 
	afr.[registry_type_sk]                                  registry_type_id, 
	afr.[specialist_group_sk]                               group_id, 
	afr.[specialist_user_sk]                                responsible_id, 
	afr.[customer_user_sk]                                  customer_id, 
	afr.[author_user_sk]                                    author_id, 
	afr.[company_sk]                                        company_id, 
	afr.[ci_sk]                                             ci_id, 
	afr.[modifier_user_sk]                                  modifier_id, 
	afr.[receptor_user_sk]                                  receptor_id,
	afr.[integration_sk]                                    integration_id, 
	fait.[opened_date]                                      opened_date, 
	fait.[closed_date]                                      closed_date, 
	afr.[modified_date]                                     modified_date, 
	fait.[created_date]                                     created_date, 
	afr.[calendar_sla_sk]                                   calendar_sla_id, 
	afr.[calendar_uc_sk]                                    calendar_uc_id, 
	afr.[calendar_ola_sk]                                   calendar_ola_id, 
	afr.[model_sk]                                          model_id, 
	afr.[sla_sk]                                            sla_id, 
	afr.[uc_sk]                                             uc_id, 
	afr.[ola_sk]                                            ola_id, 
	afr.[provider_sk]                                       provider_id, 
	afr.[unit_sk]                                           unit_id, 
	asd.token					                            survey_token, 
	afr.[previous_status_sk]                                previous_status_id, 
	fait.[price]                                            price, 
	fait.[cost]                                             cost, 
	fait.[effort]                                           effort, 
	afr.[cost_model_sk]                                     cost_model_id, 
	afr.[profit_center_sk]                                  income_center_id, 
	afr.[cost_center_sk]                                    cost_center_id, 
	afr.[interface_sk]                                      interface_id, 
	fait.[available_cost]                                   available_cost, 
	fait.[available_effort]                                 available_effort, 
	fait.[available_price]                                  available_price, 
	fait.[available_count]                                  available_count, 
	a_mail.user_name										author_email, 
	a_st_name.stat_name				                        state_name, 
	projects_name.proj_name									project_name, 
	a_st_reason.reas_description							reason_name, 
	asdk_cat.ctg_caption									category_name, 
	asdk_cat.fl_str_hierarchy								category_hierarchy, 
	asdk_name.name					                        service_name, 
	afw_impact.code_value									impact_name, 
	afw_urgen.code_value									urgency_name, 
	afw_prio.code_value				                        priority_name, 
	afw_regis.code_value									registry_type_name, 
	afw_groups.grou_name									group_name, 
	aur.user_name											responsible_name, 
	auc.user_name											customer_name, 
	aua.user_name											author_name, 
	ac.Name													company_name, 
	cc.Name													ci_name, 
	au.user_name											modifier_name, 
	aure.user_name											receptor_name, 
	am.Name													model_name, 
	ass.Name												sla_name, 
	asu.Name												uc_name, 
	aso.Name												ola_name, 
	asp.Name												provider_name, 
	afg.grou_name											unit_name, 
	att.Name												type_name, 
	acc.calendar_name										calendar_sla_name, 
	accu.calendar_name										calendar_uc_name, 
	acco.calendar_name										calendar_ola_name, 
	atc.stat_background_color_rgb							status_color, 
	afr.[estimated_date]                                    estimated_date, 
	fait.[default_time_real_date]                           real_date, 
	fait.[estimated_time]                                   estimated_time, 
	afr.[current_progress]                                  current_progress, 
	afr.[current_time]                                      [current_time], 
	afr.[state_final]                                       state_final, 
	afr.[location_sk]                                       location_id,
	afr.[contract_sk]                                       contract_id,
	afr.[state_initial]                                     state_initial,
	afr.[applicant_sk]                                      applicant_id,
	af.user_name 											applicant_name,			
	afr.[previous_specialist_group_sk]                      previous_specialist_group_sk,
	afr.[previous_specialist_user_sk]                       previous_specialist_user_sk,
	cc.serial												ci_serial,
	cc.asset_tag											ci_asset_tag,
	afr.time                                                time
FROM	[adw].[FACT_ASDK_ITEM_REVISION] AS afr
LEFT JOIN	[adw].[DIM_ASDK_ITEM_TEXT] AS dit ON afr.[id] = dit.[item_sk] AND afr.modified_date BETWEEN dit.start_date AND dit.end_date
LEFT JOIN	[adw].[DIM_ITEM_NOTES] AS din ON afr.[id] = din.[item_sk] AND din.[is_current] = 1
LEFT JOIN	[dbo].ASMS_SURVEY_DATA AS asd ON asd.item_id = afr.[id] AND asd.[is_current] = 1
LEFT JOIN  [adw].[FACT_ASDK_ITEM] AS fait ON afr.[id] = fait.[id]
LEFT JOIN	AFW_USERS AS a_mail ON afr.[author_user_sk] = a_mail.[user_id]
LEFT JOIN	ASMS_STATUS AS a_st_name ON a_st_name.[stat_id] = afr.[status_sk]
LEFT JOIN	ASMS_PROJECTS AS projects_name ON projects_name.[proj_id] = afr.[project_sk]
LEFT JOIN	ASMS_STATUS_REASON AS a_st_reason ON a_st_reason.[reas_id] = afr.[reason_sk]
LEFT JOIN	ASDK_CATEGORY AS asdk_cat ON asdk_cat.[ctg_index] = afr.[category_sk]
LEFT JOIN	ASDK_SERVICE AS asdk_name ON asdk_name.[Id] = afr.[service_sk]
LEFT JOIN	AFW_CATALOG_CODE AS afw_impact ON afw_impact.[code_id] = afr.[impact_sk]
LEFT JOIN	AFW_CATALOG_CODE AS afw_urgen ON afw_urgen.[code_id] = afr.[urgency_sk]
LEFT JOIN	AFW_CATALOG_CODE AS afw_prio ON afw_prio.[code_id] = afr.[priority_sk]
LEFT JOIN	AFW_CATALOG_CODE AS afw_regis ON afw_regis.[code_id] = afr.[registry_type_sk]
LEFT JOIN	AFW_GROUPS AS afw_groups ON afw_groups.[grou_id] = afr.[specialist_group_sk]
LEFT JOIN	AFW_USERS AS aur ON aur.[user_id] = afr.[specialist_user_sk]
LEFT JOIN	AFW_USERS AS auc ON auc.[user_id] = afr.[customer_user_sk]
LEFT JOIN	AFW_USERS AS aua ON aua.[user_id] = afr.[author_user_sk]
LEFT JOIN	ASMS_COMPANY AS ac ON ac.[id] = afr.[company_sk]
LEFT JOIN	CMDB_CI AS cc ON cc.[id] = afr.[ci_sk]
LEFT JOIN	AFW_USERS AS au ON au.[user_id] = afr.[modifier_user_sk]
LEFT JOIN	AFW_USERS AS aure ON aure.[user_id] = afr.[receptor_user_sk]
LEFT JOIN	ASMS_MODEL AS am ON am.[id] = afr.[model_sk]
LEFT JOIN	ASDK_SLA AS ass ON ass.[SLA_ID] = afr.[sla_sk]
LEFT JOIN	ASDK_SLA AS asu ON asu.[SLA_ID] = afr.[uc_sk]
LEFT JOIN	ASDK_SLA AS aso ON aso.[SLA_ID] = afr.[ola_sk]
LEFT JOIN	ASMS_COMPANY AS asp ON asp.[id] = afr.[provider_sk]
LEFT JOIN	AFW_GROUPS AS afg ON afg.[grou_id] = afr.[unit_sk]
LEFT JOIN	ASMS_TYPES AS att ON att.[id] = afr.[item_type_sk]
LEFT JOIN	ASMS_CALENDAR AS acc ON acc.[CALENDAR_ID] = afr.[calendar_sla_sk]
LEFT JOIN	ASMS_CALENDAR AS accu ON accu.[CALENDAR_ID] = afr.[calendar_uc_sk]
LEFT JOIN	ASMS_CALENDAR AS acco ON acco.[CALENDAR_ID] = afr.[calendar_ola_sk]
LEFT JOIN	ASMS_STATUS AS atc ON atc.[stat_id] = afr.[status_sk]
LEFT JOIN	AFW_USERS AS af ON af.[user_id] = afr.[applicant_sk]
GO
PRINT N'Creating View [dbo].[V_ASDK_ITEM_RELATION]...';


GO
CREATE VIEW [dbo].[V_ASDK_ITEM_RELATION]
AS
SELECT [SOURCE_ID] 
	,[TARGET_ID] 
	,[RELATION_TYPE_ID]
	,[AUTHOR_ID] 
	,[CREATED_DATE]
FROM [dbo].[ASDK_ITEM_RELATION_DW]
UNION
	SELECT [SOURCE_ID]
		,[TARGET_ID] 
		,[RELATION_TYPE_ID] 
		,[AUTHOR_ID] 
		,[CREATED_DATE]
	FROM [dbo].[ASDK_ITEM_RELATION]
GO
PRINT N'Creating View [dbo].[V_ASDK_RESPONSIBLE_CI]...';


GO
CREATE VIEW [dbo].[V_ASDK_RESPONSIBLE_CI]
AS 
SELECT 
	au.user_id,
	au.user_name, 
	au.user_email,
	au.user_nick_name,
	aic.item_id relation_item_id,
	ai.id item_id	
FROM [dbo].[CMDB_CI] cc
LEFT JOIN [dbo].[ASDK_ITEM_CI] aic ON (cc.id = aic.ci_id)
LEFT JOIN [dbo].[ASDK_ITEM] ai ON ai.ci_id = cc.id
JOIN [dbo].[AFW_USERS] au ON au.user_id = cc.responsible_id;
GO
PRINT N'Creating View [dbo].[V_ASDK_SERVICE_DW]...';


GO

CREATE VIEW [dbo].[V_ASDK_SERVICE_DW]
AS
SELECT ID, NAME, DESCRIPTION, RESPONSIBLE_ID, IMPACT_ID, GROUP_ID, PROJECT_ID, SLA_ID, UC_ID, OLA_ID, STATE_ID, AUTHOR_ID, TYPE_ID, OPENED_DATE, REASON_ID, CLOSED_DATE, PREVIOUS_STATE_ID, MODIFIED_DATE, MODIFIER_ID, COST_CENTER_ID, INCOME_CENTER_ID, STATE_NAME, IMPACT_NAME, RESPONSIBLE_NAME, REASON_NAME, STATE_COLOR, GROUP_NAME, SLA_NAME, UC_NAME, OLA_NAME, STAGE_ID, AUTHOR_NAME, MODIFIER_NAME, PROJECT_NAME, TYPE_NAME, STAGE_NAME, STATE_FINAL, NOTE 
FROM ASDK_SERVICE_DW_LAST
GO
PRINT N'Creating View [dbo].[V_ASDK_SERVICE_FILTERED]...';


GO
CREATE VIEW [dbo].[V_ASDK_SERVICE_FILTERED] AS
    SELECT sv.project_id    project_id, 
        sv.id    service_id,        
        ctr.caty_category_id    category_id,
        sv.name service_name,
        i.code_value impact, 
        sv.description  service_description,
        sv.image_name    service_image,
		sv.image_id service_image_id,
        ctr.caty_type_rec_id type_id
    FROM ASDK_SERVICE sv
    JOIN ASMS_STATUS sb ON stat_id = sv.state_id and stat_behavior IN (1,2,3)
    JOIN ASDK_CATEGORY_SERVICE c ON c.service_id = sv.id AND c.status_id = 1 AND c.is_visible_user = 1
    JOIN ASDK_CATEGORY_TYPE ctr ON ctr.caty_category_id = c.category_id AND ctr.caty_type_rec_id IN (1, 3, 4) AND ctr.caty_service_id = c.service_id 
    LEFT JOIN AFW_CATALOG_CODE i ON i.code_id = sv.impact_id
    WHERE EXISTS (
        SELECT * FROM ASDK_SLA sl
        WHERE sl.SLA_ID = sv.sla_id
        AND GETDATE() BETWEEN sl.date_start AND sl.date_finish
    );
GO
PRINT N'Creating View [dbo].[V_ASDK_SERVICE_SLA]...';


GO
CREATE VIEW [dbo].[V_ASDK_SERVICE_SLA]
AS
SELECT
    [AS1].[sla_id],
    [AS1].[id] AS [ser_id],
    '5' AS [type_id]
FROM [dbo].[ASDK_SERVICE] [AS1]
WHERE [AS1].[sla_id] IS NOT NULL
UNION ALL
SELECT
    [ASC].[sla_id],
    [ASC].[ser_id],
    '21' AS [type_id]
FROM [dbo].[ASDK_SLA_CI] [ASC]
WHERE [ASC].[sla_id] IS NOT NULL
UNION ALL
SELECT
    [ASV].[sla_id],
    [ASV].[ser_id],
    '38' AS [type_id]
FROM [dbo].[ASDK_SLA_VENDOR] [ASV]
WHERE [ASV].[sla_id] IS NOT NULL
    AND [ASV].[type_id] = 38
UNION ALL
SELECT
    [ASC].[sla_id],
    [ASC].[ser_id],
    '83' AS [type_id]
FROM [dbo].[ASDK_SLA_CATEGORY] [ASC]
WHERE [ASC].[sla_id] IS NOT NULL
UNION ALL
SELECT
    [asg].[sla_id],
    [asg].[ser_id],
    '64' AS [type_id]
FROM [dbo].[ASDK_SLA_GROUP] [asg]
WHERE [asg].[sla_id] IS NOT NULL
    AND [asg].[type_id] = 64
UNION ALL
SELECT
    [asu].[sla_id],
    [asu].[ser_id],
    '37' AS [type_id]
FROM [dbo].[ASDK_SLA_USER] [asu]
WHERE [asu].[sla_id] IS NOT NULL
UNION ALL
SELECT
    [ASL].[sla_id],
    [ASL].[ser_id],
    '52' AS [type_id]
FROM [dbo].[ASDK_SLA_LOCATION] [ASL]
WHERE [ASL].[sla_id] IS NOT NULL
GO
PRINT N'Creating View [dbo].[V_ASDK_SLA]...';


GO
CREATE VIEW dbo.V_ASDK_SLA
AS
SELECT        SLA_ID, NAME, DESCRIPCION, contract_type
FROM            dbo.ASDK_SLA
GO
PRINT N'Creating View [dbo].[V_ASDK_SLA_ALL]...';


GO






CREATE VIEW [dbo].[V_ASDK_SLA_ALL]
AS
SELECT 
	[ASDK_SLA].[SLA_ID] AS [SLA_ID], 
	[ASDK_SLA].[NAME] AS [NAME], 
	[ASDK_SLA].[DESCRIPCION] AS [DESCRIPCION], 
	[ASDK_SLA].[DATE_START] AS [DATE_START], 
	[ASDK_SLA].[DATE_FINISH] AS [DATE_FINISH], 
	[ASDK_SLA].[FL_INT_SLASTATE] AS [FL_INT_SLASTATE], 
	[ASDK_SLA].[sla_date_review] AS [sla_date_review], 
	[ASDK_SLA].[FL_INT_FINISH_HAS_ALARM] AS [FL_INT_FINISH_HAS_ALARM], 
	[ASDK_SLA].[FL_INT_FINISH_LIMITDAYS] AS [FL_INT_FINISH_LIMITDAYS], 
	[ASDK_SLA].[FL_INT_REVIEW_HAS_ALARM] AS [FL_INT_REVIEW_HAS_ALARM], 
	[ASDK_SLA].[FL_INT_REVIEW_LIMITDAYS] AS [FL_INT_REVIEW_LIMITDAYS], 
	[ASDK_SLA].[contract_type] AS [contract_type], 
	[ASDK_SLA].[proj_id] AS [proj_id], 
	[ASDK_SLA].[reason_id] AS [reason_id], 
	[ASDK_SLA].[finish_template_id] AS [finish_template_id], 
	[ASDK_SLA].[review_template_id] AS [review_template_id],  
	[ASDK_SLA].[sla_date_open] AS [sla_date_open],  
	[ASDK_SLA].[sla_date_close] AS [sla_date_close],  
	[ASDK_SLA].[previous_status_id] AS [previous_status_id],  
	[ASDK_SLA].[sla_modified_date] AS [sla_modified_date], 
	[ASDK_SLA].[sla_modifier_id] AS [sla_modifier_id], 
	[ASDK_SLA].[calendar_id] AS [calendar_id], 
	[ASMS_STATUS].[stat_name] AS [state_name], 
	[ASMS_STATUS].[stat_background_color_rgb] AS [state_color],
	[ASMS_STATUS_REASON].[reas_description] AS [reason_name]
	FROM   [ASDK_SLA] 
	INNER JOIN [ASMS_STATUS] ON [ASDK_SLA].[FL_INT_SLASTATE] = [ASMS_STATUS].[stat_id]
	LEFT OUTER JOIN [ASMS_STATUS_REASON]  ON [ASDK_SLA].[reason_id] = [ASMS_STATUS_REASON].[reas_id]
UNION ALL
SELECT 
	[ASDK_SLA_CLOSED].[SLA_ID] AS [SLA_ID], 
	[ASDK_SLA_CLOSED].[NAME] AS [NAME], 
	[ASDK_SLA_CLOSED].[DESCRIPCION] AS [DESCRIPCION], 
	[ASDK_SLA_CLOSED].[DATE_START] AS [DATE_START], 
	[ASDK_SLA_CLOSED].[DATE_FINISH] AS [DATE_FINISH], 
	[ASDK_SLA_CLOSED].[FL_INT_SLASTATE] AS [FL_INT_SLASTATE], 
	[ASDK_SLA_CLOSED].[sla_date_review] AS [sla_date_review], 
	[ASDK_SLA_CLOSED].[FL_INT_FINISH_HAS_ALARM] AS [FL_INT_FINISH_HAS_ALARM], 
	[ASDK_SLA_CLOSED].[FL_INT_FINISH_LIMITDAYS] AS [FL_INT_FINISH_LIMITDAYS], 
	[ASDK_SLA_CLOSED].[FL_INT_REVIEW_HAS_ALARM] AS [FL_INT_REVIEW_HAS_ALARM], 
	[ASDK_SLA_CLOSED].[FL_INT_REVIEW_LIMITDAYS] AS [FL_INT_REVIEW_LIMITDAYS], 
	[ASDK_SLA_CLOSED].[contract_type] AS [contract_type], 
	[ASDK_SLA_CLOSED].[proj_id] AS [proj_id], 
	[ASDK_SLA_CLOSED].[reason_id] AS [reason_id], 
	[ASDK_SLA_CLOSED].[finish_template_id] AS [finish_template_id],  
	[ASDK_SLA_CLOSED].[review_template_id] AS [review_template_id],  
	[ASDK_SLA_CLOSED].[sla_date_open] AS [sla_date_open],  
	[ASDK_SLA_CLOSED].[sla_date_close] AS [sla_date_close],  
	[ASDK_SLA_CLOSED].[previous_status_id] AS [previous_status_id],  
	[ASDK_SLA_CLOSED].[sla_modified_date] AS [sla_modified_date], 
	[ASDK_SLA_CLOSED].[sla_modifier_id] AS [sla_modifier_id], 
	[ASDK_SLA_CLOSED].[calendar_id] AS [calendar_id], 
	[ASDK_SLA_CLOSED].[state_name] AS [state_name], 
	[ASDK_SLA_CLOSED].[state_color] AS [state_color],
	[ASDK_SLA_CLOSED].[reason_name] AS [reason_name]
	FROM   [ASDK_SLA_CLOSED]
GO
PRINT N'Creating View [dbo].[V_ASM_DEVICE_SOFT_UNINST]...';


GO
CREATE VIEW [V_ASM_DEVICE_SOFT_UNINST] AS 
SELECT
	d.[id] AS [device_id],
	d.[hardware_hash],	
	[software_id],
	[soft_parent_id],
	[uninstall_string_id],
	[uninstall_string],	
	CASE WHEN [uninstall_string_id] IS NULL THEN 0 ELSE 1 END [uninstall_availiable]
FROM AAM_DEVICE d
LEFT JOIN (
	SELECT DISTINCT		
		ds.[device_id],		
		sv.[id] AS [software_id],
		sv.[parent_id] AS [soft_parent_id], 
		ds.[uninstall_string_id],
		su.[uninstall_string]
	FROM [AAM_DEVICE_SOFTWARE] ds
	JOIN [AAM_SOFTWARE_VERSION] sv ON sv.[id] = ds.[software_id]
	LEFT JOIN [AAM_SOFTWARE_UNINSTALL] su ON su.[id] = ds.[uninstall_string_id] 			
) ds ON ds.[device_id] = d.id
GO
PRINT N'Creating View [dbo].[V_ASM_SOFTWARE_FILE_RULE]...';


GO
CREATE VIEW [dbo].[V_ASM_SOFTWARE_FILE_RULE]
	AS 
WITH [GROUPED_FILES] AS (
SELECT      
	  [file_rule_id],
	  COUNT([file_version_id]) AS [file_count]
  FROM [dbo].[ASM_FILE_GROUP]
  GROUP BY [file_rule_id]
)
SELECT 
	[id],
	[name],
	[version],
	[file_product_name],
	[software_id],	
	ISNULL([files].[file_count], 0) AS [file_count]	
  FROM [dbo].[ASM_FILE_RULE] AS [grouping_rule] 
  LEFT JOIN [GROUPED_FILES] AS [files] ON [files].[file_rule_id] = [grouping_rule].[id]
GO
PRINT N'Creating View [dbo].[V_ASMS_ANSWER_ITEM]...';


GO
CREATE VIEW [dbo].[V_ASMS_ANSWER_ITEM]
AS 
SELECT ASQ.[QuestionTypeId],
	ASQ.[Id], 
	ASU.[DataConcept],
	ASA.[ResponseChoiceId],
	ASA.[ResponseValue],
	ASU.[Token]
FROM AFW_SURVEY_USER ASU
JOIN AFW_SURVEY_QUESTION ASQ ON ASQ.[SurveyId] = ASU.[SurveyId]
JOIN AFW_SURVEY_ANSWERS ASA ON ASQ.[Id] = ASA.[QuestionId]
AND ASU.[Token] = ASA.[Token]
GO
PRINT N'Creating View [dbo].[V_ASMS_CALENDAR_HOURS]...';


GO
CREATE VIEW [dbo].[V_ASMS_CALENDAR_HOURS]
AS
SELECT       	[hour_id], 
				[cale_id], 
				[start_date], 
				[end_date], 
				[guid]
FROM            dbo.ASMS_CALENDAR_HOURS
GO
PRINT N'Creating View [dbo].[V_ASMS_FIELDS_DATA_ALL]...';


GO

CREATE VIEW [dbo].[V_ASMS_FIELDS_DATA_ALL]
AS
SELECT  [item_id]
      ,[field_id]
      ,[string_value]
      ,[int_value]
      ,[date_value]
      ,[bool_value]
      ,[float_value]
  FROM [ASMS_FIELDS_DATA]
UNION
SELECT [item_id]
      ,[field_id]
      ,[string_value]
      ,[int_value]
      ,[date_value]
      ,[bool_value]
      ,[float_value]
  FROM [ASMS_FIELDS_DATA_CLOSED]
GO
PRINT N'Creating View [dbo].[V_ASS_ARTICLE_DW]...';


GO

CREATE VIEW [dbo].[V_ASS_ARTICLE_DW]
AS
SELECT  ID, STATE_ID, HIT, RATING, IDENTIFIER, TITLE, DESCRIPTION, CONTENT, KEYWORD, MODIFIED_DATE, CREATED_DATE, TYPE_ID, CLASS_ID, URL, IS_PUBLIC, AUTHOR_ID, RESPONSIBLE_ID, GROUP_ID, MODIFIER_ID, REASON_ID, INTERFACE_ID, PROJECT_ID, CLOSED_DATE, PREVIOUS_STATUS_ID, INTEGRATION_ID, STATE_NAME, STATE_COLOR, STATE_FINAL, TYPE_NAME, REASON_NAME, RESPONSIBLE_NAME, GROUP_NAME, AUTHOR_NAME, MODIFIER_NAME, PROJECT_NAME, NOTE FROM ASS_ARTICLE_DW_LAST
GO
PRINT N'Creating View [dbo].[V_CLIENT_COMMUNICAT_NODE]...';


GO
CREATE VIEW V_CLIENT_COMMUNICAT_NODE

AS

	SELECT id AS [node_id],
           name AS	[node_name],
           url AS [url_nodo],
		   address AS [address], 
           parent_id AS [parent_node_id],
		   CASE enabled WHEN 0 THEN 'No' WHEN 1 THEN 'Si'END AS [node_enbled_statud],
		   last_update AS [last_communication]
	FROM ADM_COMMUNICATION_NODE
	WHERE node_type != 3 AND enabled = 1
GO
PRINT N'Creating View [dbo].[V_CLIENT_DEVICE_DISK_UCMDB]...';


GO
CREATE VIEW [dbo].[V_CLIENT_DEVICE_DISK_UCMDB]
AS
SELECT	
	DEV.[name]							AS [hostname], 
	COALESCE(
			STP.[system_serial], 
			STP.[chassis_serial], 
			STP.[baseboard_serial] )	AS [pc_serial],
	DLK.unit							AS [unit],
	DSK.serial							AS [disk_serial],
	ISNULL (DLK.size, 0)				AS [size],
	ISNULL ((DLK.size - DLK.free), 0)	AS [used_disk_space],
	ISNULL(DLK.free, 0)					AS [free_disk_space],
	DSK.media_type						AS [disk_type]
FROM AAM_DEVICE [DEV]
LEFT JOIN AAM_DEVICE_SETUP [STP]	ON STP.device_id = DEV.id
LEFT JOIN AAM_DEVICE_DISK [DSK]		ON DSK.device_id = DEV.id
LEFT JOIN AAM_LOGICAL_DISK [DLK]	ON DLK.device_diskid = DSK.id
WHERE DSK.media_type NOT IN ('CDROM', 'Dvd')
AND  DEV.is_active = 1
GO
PRINT N'Creating View [dbo].[V_CLIENT_DEVICE_FILES]...';


GO
CREATE VIEW V_CLIENT_DEVICE_FILES
AS
	SELECT
	device_id AS[view_device_id], file_name_id AS[view_file_version_id]
	FROM AAM_DEVICE_FILE
	UNION ALL
	SELECT
	device_id AS[view_device_id], file_name_id AS[view_file_name_id ]
	FROM AAM_FILE_NAME A
	JOIN AAM_FILE_VERSION B ON A.id = B.file_name_id
	JOIN AAM_DEVICE_FILE_VERSION C ON B.id = C.file_version_id
GO
PRINT N'Creating View [dbo].[V_CLIENT_DEVICE_HW_UCMDB]...';


GO
CREATE VIEW [dbo].[V_CLIENT_DEVICE_HW_UCMDB]	
AS 
SELECT	DISTINCT
	
	DEV.[name]							AS [hostname],
	COALESCE(
			STP.[system_serial], 
			STP.[chassis_serial], 
			STP.[baseboard_serial] )	AS [serial],
	PRO.family							AS [processor],
	PRO.features						AS [description],
	PRO.core_count						AS [cores],
	PRO.frecuency						AS [frecuency],
	devSw.name							AS [os],
	devSw.architecture					AS [os_type],
	devSw.extra							AS [service_pack],
	MEM.physical						AS [memory],
	MAN.[name]							AS [brand],
	STP.system_product					AS [model],
	STP.chassis_type					AS [pc_type],
	CFG.date							AS [agent_installation_date],
	DEV.[username]						AS [user],
	NAD.ipaddress						AS [ip_address],
	NAD.mac								AS [mac_address],
	DEV.domain							AS [domain]
FROM AAM_DEVICE DEV						
LEFT JOIN AAM_DEVICE_SETUP [STP]			ON STP.device_id = DEV.id
LEFT JOIN AAM_DEVICE_PROCESSORSLOT [PRO]	ON PRO.device_id = DEV.id
LEFT JOIN		(
	SELECT	
		sw.id,
		sw.platform,
		sw.name,
		device_id,
		swVer.product_id,
		swVer.version,
		OS.os_type,
		OS.architecture,
		OS.extra 
	FROM AAM_DEVICE_SOFTWARE [devSw]		
	JOIN AAM_SOFTWARE_VERSION [swVer]  	ON swVer.id = devSw.software_id
	JOIN AAM_SOFTWARE_PRODUCT [sw]	  	ON sw.id = swVer.product_id 
	AND sw.[type] = 0
	JOIN AAM_DEVICE_OS [OS]				ON OS.id = devSw.id
)AS devSw ON devSw.device_id = dev.id
LEFT JOIN AAM_DEVICE_MEMORY [MEM]	ON MEM.device_id = DEV.id
LEFT JOIN AAM_MANUFACTURER [MAN]	ON MAN.id = STP.chassis_manufacturer_id
LEFT JOIN (
	SELECT 
		SWP.name,
		DEVAP.date,
		DEVSW.device_id
	FROM AAM_SOFTWARE_PRODUCT [SWP] 
	LEFT JOIN AAM_SOFTWARE_VERSION [SWV]		ON SWP.id = SWV.product_id 
	LEFT JOIN AAM_DEVICE_SOFTWARE [DEVSW]		ON SWV.id = DEVSW.software_id
	LEFT JOIN AAM_DEVICE_APPLICATION [DEVAP]	ON DEVSW.id = DEVAP.id
	WHERE SWP.name = 'Aranda Agent 9'
) AS CFG ON CFG.device_id = DEV.id
LEFT JOIN (
	SELECT    
		ADP.ipaddress,
        NET.id,
        DNA.mac,
        DNA.device_id
    FROM AAM_NETWORKADAPTER [NET]              
    LEFT JOIN AAM_DEVICE_NETWORKADAPTER [DNA]	ON DNA.adapter_id = NET.id
    LEFT JOIN AAM_NETWORKADAPTER_ADDRES [ADP]   ON ADP.device_adapter_id = DNA.id
    AND ADP.ipaddress <> '0.0.0.0'
    JOIN ADM_COMMUNICATION_NODE [COMMUNICATION_NODE] ON ADP.ipaddress = COMMUNICATION_NODE.[address]
    AND COMMUNICATION_NODE.device_id = DNA.device_id
)AS NAD ON NAD.device_id = DEV.id 
WHERE DEV.is_active = 1
GO
PRINT N'Creating View [dbo].[V_CLIENT_DEVICE_OS_UCMDB]...';


GO
CREATE VIEW [dbo].[V_CLIENT_DEVICE_OS_UCMDB]	
AS 
SELECT DISTINCT
	DEV.name												AS [hostname],
	'SO:'+ DEV.name + ' - ' + CONVERT( varchar(MAX), OS.id)	AS [composite_id],
	COALESCE(
			STP.[system_serial], 
			STP.[chassis_serial], 
			STP.[baseboard_serial] )						AS [serial],
	OS.name													AS [os],
	OS.extra												AS [service_pack],
	OS.architecture											AS [os_type],
	OS.language												AS [os_language],
	OS.path													AS [os_path]
FROM AAM_DEVICE [DEV]
LEFT JOIN AAM_DEVICE_SETUP [STP]	ON STP.device_id = DEV.id
LEFT JOIN(
		SELECT 
			DEVS.device_id,
			DVOS.extra,
			DVOS.architecture,
			DVOS.language,
			PTH.path,
			SFPR.name,
			SFPR.id
		FROM AAM_DEVICE_SOFTWARE [DEVS] 
		LEFT JOIN AAM_SOFTWARE_VERSION [SFVR] ON SFVR.id = DEVS.software_id
		LEFT JOIN AAM_SOFTWARE_PRODUCT [SFPR] ON SFPR.id = SFVR.product_id 
		AND SFPR.type = 0
		LEFT JOIN AAM_DEVICE_OS [DVOS]		ON DVOS.id = DEVS.id
		LEFT JOIN AAM_PATH [PTH]			ON DEVS.install_path_id = PTH.id 
		WHERE SFPR.type = 0
		) OS ON DEV.id = OS.device_id
WHERE DEV.is_active = 1
GO
PRINT N'Creating View [dbo].[V_CLIENT_DEVICE_SOFTWARE]...';


GO
CREATE VIEW V_CLIENT_DEVICE_SOFTWARE
AS

	SELECT
		DEV_SOFT.software_id AS[view_software_id], DEV_SOFT.device_id AS[view_device_id]

	FROM AAM_DEVICE_SOFTWARE DEV_SOFT
		JOIN AAM_SOFTWARE_VERSION SOF_VER ON DEV_SOFT.software_id = SOF_VER.id
		JOIN AAM_SOFTWARE_PRODUCT SOFT_PRO ON SOF_VER.product_id = SOFT_PRO.id
GO
PRINT N'Creating View [dbo].[V_CLIENT_DEVICE_SOFTWARE_UCMDB]...';


GO
CREATE VIEW [dbo].[V_CLIENT_DEVICE_SOFTWARE_UCMDB]
AS

SELECT 
    DEV.name                                                            AS  [pc],
    COALESCE(
            STP.[system_serial], 
            STP.[chassis_serial], 
            STP.[baseboard_serial] )                                    AS  [serial],
    'SW:' + DEV.name + ' - ' + CONVERT(varchar(MAX), DEVSW.software_id) AS  [composite_id],
    DEVSW.software_name                                                 AS  [software_name],
    DEVSW.software_id                                                   AS  [software_id],
    DEVSW.installation_date                                             AS  [installation_date],
    DEVSW.software_version                                              AS  [software_version]
FROM AAM_DEVICE DEV
LEFT JOIN AAM_DEVICE_SETUP [STP]   ON STP.device_id = DEV.id
LEFT JOIN (
            SELECT 
                DEVS.device_id,
                SFP.name        AS  [software_name],
                SFP.id          AS  [software_id],
                MIN(DEVAP.date) AS  [installation_date],
                SFV.version     AS  [software_version]
            FROM  AAM_DEVICE_SOFTWARE [DEVS]  
            LEFT JOIN AAM_SOFTWARE_VERSION [SFV]        ON  SFV.id = DEVS.software_id
            LEFT JOIN AAM_SOFTWARE_PRODUCT [SFP]        ON  SFP.id = SFV.product_id
            LEFT JOIN AAM_DEVICE_APPLICATION    [DEVAP] ON  DEVAP.id = DEVS.id
            WHERE SFP.type = 1
            GROUP BY device_id,SFP.id , SFP.name, SFV.version
)AS DEVSW ON devSw.device_id = dev.id
WHERE DEV.is_active = 1
GO
PRINT N'Creating View [dbo].[V_CLIENT_DISTRIBUT_PACK]...';


GO
CREATE VIEW V_CLIENT_DISTRIBUT_PACK
AS
	SELECT
		A.id AS[package_id], A.name AS[package_name], A.version,
		CASE
		A.type
		WHEN 1 THEN 'Applications'
		WHEN 2 THEN 'Updates'
		WHEN 3 THEN 'Agent'
	END AS[package_type],
		CASE
		A.platform
		WHEN 0 THEN 'Unknow'
		WHEN 1 THEN 'Windows'
		WHEN 2 THEN 'Linux'
		WHEN 3 THEN 'Mac'
	END AS [device_platform],
		CASE
		A.architecture
		WHEN 1 THEN 'x86'
		WHEN 2 THEN 'x64'
		WHEN 3 THEN 'x32'
	END AS[architecture_package],
		A.description AS[description_package]

	FROM ASD_PACKAGE A
GO
PRINT N'Creating View [dbo].[V_CLIENT_DISTRIBUT_PROJ]...';


GO
CREATE VIEW V_CLIENT_DISTRIBUT_PROJ
AS
	SELECT
		id AS[project_id],
		name AS[project_name],
		CASE
		platform
		WHEN 0 THEN 'Unknow'
		WHEN 1 THEN 'Windows'
		WHEN 2 THEN 'Linux'
		WHEN 3 THEN 'Mac'
	END AS [device_platform],
		CASE
		type
		WHEN 1 THEN 'Applications'
		WHEN 2 THEN 'Updates'
		WHEN 3 THEN 'Agent'
	END AS[package_type],
		COUNT(ERRORS)AS [executions_failure],
		COUNT(SUCCESS)AS [executions_successfull], COUNT(id)AS [executions_count], MAX(execution_date)AS [last_execution_date]

	FROM (
	SELECT
			A.id, A.name,
			CASE WHEN B.status = 4 OR B.status = 6 THEN 'E' END AS [ERRORS],
			CASE WHEN B.status = 3 THEN 'S' END AS [SUCCESS],
			B.execution_date, A.platform, A.type

		FROM ASD_SETUPPROJECT A
			INNER JOIN ASD_EXECUTION B ON  A.id= B.setupproject_id
		WHERE B.status = 3 OR B.status = 6 OR B.status = 4)AS X
	GROUP BY name, platform, type, id
GO
PRINT N'Creating View [dbo].[V_CLIENT_EXEC_PACKAGE]...';


GO
CREATE VIEW V_CLIENT_EXEC_PACKAGE
AS
	SELECT
		C.id AS[view_execution_execution_id], A.id AS[view_distribution_package_id], C.creation_date AS[creation_date],
		C.execution_date AS[execution_date], D.user_name AS[creator_user]

	FROM ASD_PACKAGE A
		LEFT JOIN ASD_EXECUTION_PACKAGE B ON A.id = B.package_id
		LEFT JOIN ASD_EXECUTION C ON B.execution_id = C.id
		JOIN AFW_USERS D ON C.creator_user = D.user_id
GO
PRINT N'Creating View [dbo].[V_CLIENT_EXECUTION_DEVICE]...';


GO
CREATE VIEW V_CLIENT_EXECUTION_DEVICE
AS
	SELECT
		execution_id AS[view_execution_projects_execution_id], device_id AS[view_device_id],
		CASE 
		status
		WHEN 0 THEN 'Without Execute'
		WHEN 1 THEN 'Pending To Execute'
		WHEN 2 THEN 'In Execution'
		WHEN 3 THEN 'Executed'
		WHEN 4 THEN 'Executed With Errors'
		WHEN 5 THEN 'Interrupted'
		WHEN 6 THEN 'Canceled'
	END AS [execution_status],
		executionstart AS[execution_start_date],
		executionfinish AS[execution_finish_date],
		update_date

	FROM ASD_EXECUTION_DEVICE
GO
PRINT N'Creating View [dbo].[V_CLIENT_HADWARE_BIOS]...';


GO
CREATE VIEW V_CLIENT_HADWARE_BIOS
AS

	SELECT
		BIOS.id AS[bios_id], BIOS.version AS[bios_name_version], MANU.name AS[manufacturer], DEV_BIOS.rom_size AS[bios_size]

	FROM AAM_BIOS BIOS
		JOIN AAM_DEVICE_BIOS DEV_BIOS ON BIOS.id = DEV_BIOS.bios_id
		JOIN AAM_MANUFACTURER MANU ON BIOS.manufacturer_id = MANU.id
GO
PRINT N'Creating View [dbo].[V_CLIENT_HADWARE_CDROM]...';


GO
CREATE VIEW V_CLIENT_HADWARE_CDROM
AS

	SELECT DISKS.id AS [disk_id],
           DISKS.model AS [disk_name],
           DEV_DISK.bus_type AS [bus_type],
           DEV_DISK.features AS [disk_features],
           MANU.name AS [manufacturer]
	FROM AAM_DISK DISKS
		 JOIN AAM_DEVICE_DISK DEV_DISK ON DISKS.id = DEV_DISK.disk_id
		 JOIN AAM_MANUFACTURER MANU ON DISKS.manufacturer_id = MANU.id
	WHERE UPPER(media_type) = 'DVD'
GO
PRINT N'Creating View [dbo].[V_CLIENT_HARD_KEYBOARD]...';


GO
CREATE VIEW V_CLIENT_HARD_KEYBOARD
AS

	SELECT
		KEYB.id AS[keyboard_id], KEYB.description AS[keyboard_name], MANU.name AS[manufacturer],
		DEV_KEYB.pnp_device_id AS[device_identificator], DEV_KEYB.type AS[keyboard_type], DEV_KEYB.language AS[keyboard_language],
		DEV_KEYB.country AS[keyboard_country], DEV_KEYB.layout AS[keyboard_layout]

	FROM AAM_KEYBOARD KEYB
		JOIN AAM_DEVICE_KEYBOARD DEV_KEYB ON KEYB.id = DEV_KEYB.keyboard_id
		JOIN AAM_MANUFACTURER MANU ON KEYB.manufacturer_id = MANU.id
GO
PRINT N'Creating View [dbo].[V_CLIENT_HARD_PHYS_DISKS]...';


GO
CREATE VIEW V_CLIENT_HARD_PHYS_DISKS
AS

	SELECT DISKS.id AS [disk_id],
           DISKS.model AS [disk_name],
           DEV_DISK.bus_type AS [bus_type],
		 DEV_DISK.size AS [disk_size],
           LOG_DISK.unit AS [logical_unit],
           LOG_DISK.type AS [unit_type],
		 LOG_DISK.size AS [unit_size],
           LOG_DISK.free AS [unit_size_free],
           LOG_DISK.file_system AS [unit_file_system],
           MANU.name AS [manufacturer]
	FROM AAM_DISK DISKS
		 JOIN AAM_DEVICE_DISK DEV_DISK ON DISKS.id = DEV_DISK.disk_id
		 JOIN AAM_LOGICAL_DISK LOG_DISK ON DEV_DISK.id = LOG_DISK.device_diskid
		 JOIN AAM_MANUFACTURER MANU ON DISKS.manufacturer_id = MANU.id
	WHERE UPPER(media_type) = 'FIXED HARD DISK MEDIA'
GO
PRINT N'Creating View [dbo].[V_CLIENT_HARD_PROCESSOR]...';


GO
CREATE VIEW V_CLIENT_HARD_PROCESSOR
AS
	SELECT
		PROCESS.id AS[processor_id], PROCESS.model AS[processor_name], DEV_PROCESS.features AS[features], DEV_PROCESS.speed AS[speed_processor],
		DEV_PROCESS.socket AS[socket_type], DEV_PROCESS.core_count AS[core_count],
		CASE
		DEV_PROCESS.status
		WHEN 0 THEN 'Unknow'
		WHEN 1 THEN 'Enabled'
		WHEN 2 THEN 'DisabledByUser'
		WHEN 3 THEN 'DisabledByBios'
		WHEN 4 THEN 'Idle'
		WHEN 5 THEN 'Reserved1'
		WHEN 6 THEN 'Reserverd2'
		WHEN 7 THEN 'Other'
	END AS[status_processor],
		CASE
		DEV_PROCESS.populated
		WHEN 0 THEN 'No'
		WHEN 1 THEN 'Yes'
	END AS[socket_use]
	FROM AAM_PROCESSOR PROCESS
		JOIN AAM_DEVICE_PROCESSORSLOT DEV_PROCESS ON PROCESS.id = DEV_PROCESS.processor_id
		JOIN AAM_MANUFACTURER MANU ON PROCESS.manufacturer_id = MANU.id
GO
PRINT N'Creating View [dbo].[V_CLIENT_HARD_VIDEO_CARD]...';


GO
CREATE VIEW V_CLIENT_HARD_VIDEO_CARD
AS

	SELECT VID.id AS [video_id],
           VID.name AS [video_name],
           MANU.name AS [manufacturer],
		   DEV_VID.driver_name AS [video_driver_name],
           DEV_VID.chipset AS [video_chipset], 
           DEV_VID.dac AS [video_dac],
		   DEV_VID.memory_size AS [video_memory_size],
           DEV_VID.version AS [video_version]
	FROM AAM_VIDEOCARD VID
		 JOIN AAM_DEVICE_VIDEOCARD DEV_VID ON VID.id = DEV_VID.device_id
		 JOIN AAM_MANUFACTURER MANU ON VID.manufacturer_id = MANU.id
GO
PRINT N'Creating View [dbo].[V_CLIENT_HARDWARE_MEMORY]...';


GO
CREATE VIEW V_CLIENT_HARDWARE_MEMORY
AS

	SELECT
		device_id AS[view_device_id], physical AS[total_physical_ram], available_physical AS[available_physical_ram],
		virtual AS[total_vistual_memory], available_virtual AS[available_virtual_ram], max_ram AS[max_ram],
		page_memory AS[page_memory], available_page_memory AS[available_page_memory], slot_count AS[slot_count]

	FROM AAM_DEVICE_MEMORY
GO
PRINT N'Creating View [dbo].[V_CLIENT_HARDWARE_PRINTER]...';


GO
CREATE VIEW V_CLIENT_HARDWARE_PRINTER
AS

	SELECT
		PRIN.id AS[printer_id], PRIN.name AS[printer_name], DEV_PRIN.port AS[printer_port], MANU.name AS[manufacturer]

	FROM AAM_PRINTERDRIVER PRIN
		JOIN AAM_DEVICE_PRINTER DEV_PRIN ON PRIN.id = DEV_PRIN.driver_id
		JOIN AAM_MANUFACTURER MANU ON PRIN.manufacturer_id = MANU.id
GO
PRINT N'Creating View [dbo].[V_CLIENT_LICENCED_DEVICE]...';


GO
CREATE VIEW [dbo].V_CLIENT_LICENCED_DEVICE

WITH
	SCHEMABINDING
AS

	SELECT
		id, device_id, license_id AS[license_package_id]

	FROM [dbo].ASM_LICENSE_ASSIGNMENT
GO
PRINT N'Creating View [dbo].[V_CLIENT_LICENSE]...';


GO
CREATE VIEW [dbo].V_CLIENT_LICENSE
WITH
	SCHEMABINDING
AS

	SELECT
		id AS[license_id],
		name AS[license_name],
		 B.user_name AS[creator_user], 
		 C.user_name AS[user_modifier], 
		 creation_date AS [creation_package_date], 
		 updating_date AS [updating_license_date]
	FROM [dbo].ASM_LICENSING A
		LEFT JOIN [dbo].AFW_USERS B ON A.user_creator = B.user_id
		LEFT JOIN [dbo].AFW_USERS C ON A.user_modifier = C.user_id
GO
PRINT N'Creating View [dbo].[V_CLIENT_LICENSE_EVENT]...';


GO
CREATE VIEW [dbo].V_CLIENT_LICENSE_EVENT
AS
SELECT 
       [licensing_id]
      ,[description]
      ,[destination]
      ,[message]
      , CASE [severity]
	    WHEN 1 THEN 'Severidad baja'
		WHEN 2 THEN 'Severidad media'
		WHEN 3 THEN 'Severidad alta'
		WHEN 4 THEN 'Severidad critica' 
		END AS [severity]
      ,[subject]
      ,[title]
      ,CASE [type]
		WHEN 0 THEN 'Alerta'
		WHEN 1 THEN 'Notificaci�n'
		WHEN 2 THEN 'Asignaci�n'
		WHEN 3 THEN 'Remover'
	   END AS [type]
      ,CASE [unit]
		WHEN 0 THEN 'Dias'
		WHEN 1 THEN 'Meses'
		WHEN 2 THEN 'A�os'
	   END AS [unit]
      ,[value]

FROM ASM_LICENSING_EVENT
GO
PRINT N'Creating View [dbo].[V_CLIENT_LICENSE_PACKAGE]...';


GO
CREATE VIEW [dbo].V_CLIENT_LICENSE_PACKAGE
WITH
	SCHEMABINDING
AS

	SELECT
		A.id, B.name AS [package_type], quantity, unit_cost, creation_date, expiration_date,
		activation_date, package_name, C.symbol AS[currency],
		license_package_id AS[license_id], A.description

	FROM [dbo].ASM_LICENSE_PACKAGE A
		JOIN [dbo].ASM_LICENSE_TYPE B ON A.type_id = B.id
		LEFT JOIN [dbo].ASM_CURRENCY C ON A.currency_id = C.id
GO
PRINT N'Creating View [dbo].[V_CLIENT_LICENSE_SOFTWARE]...';


GO
CREATE VIEW [dbo].V_CLIENT_LICENSE_SOFTWARE
WITH
	SCHEMABINDING
AS

	SELECT
		id, software_id, license_package_id AS[license_id]

	FROM [dbo].ASM_LICENSE_SOFTWARE
GO
PRINT N'Creating View [dbo].[V_CLIENT_MEMORY_SLOT]...';


GO
CREATE VIEW V_CLIENT_MEMORY_SLOT
AS

	SELECT
		MEMORY.id AS[memory_id], MEMORY.model AS[memory_name], DEV_MEMORY.type AS[memory_type],
		DEV_MEMORY.name AS[socket_name], DEV_MEMORY.size AS[socket_size], DEV_MEMORY.speed AS[socket_speed],
		DEV_MEMORY.bank AS[memory_bank_name], DEV_MEMORY.form_factor AS[form_factor], MANU.name AS[menufacturer]

	FROM AAM_MEMORY MEMORY
		JOIN AAM_DEVICE_MEMORYSLOT DEV_MEMORY ON MEMORY.id = DEV_MEMORY.memory_id
		JOIN AAM_MANUFACTURER MANU ON MEMORY.manufacturer_id = MANU.id
GO
PRINT N'Creating View [dbo].[V_CLIENT_PATCH]...';


GO
CREATE VIEW V_CLIENT_PATCH
AS
SELECT
		P.id AS [patch_id],
		2 [class_type],
		P.guid,
		B.bulletin_id,
		CONCAT(B.summary,' ',P.informational_comment) summary,
		P.kb_number sqnumber,
		P.name,
		B.bulletin_page [bulletin_url],
		P.cve_ids,
		P.severity_id AS [severity_patch],
		CONCAT(B.title, ' ', L.short_name) bulletin_title,
		P.date_released posted_date,
		CASE WHEN  P.is_deployable=1 and P.is_downloadable=1 THEN 1 ELSE 0 END deployable,
		SCP.is_installed,
		P.patch_type_id AS [patch_type],
		DD.id download_id,
		DD.download_status_id AS [download_status],
		DD.download_date,
		DD.scheduled_date,
		DD.url,
		DD.size,
		L.id language_id
	FROM (
		SELECT DISTINCT
			patch_id,
			is_installed,
			R.language_id lang
		FROM APM_SCANNED_PATCHES scp
		INNER JOIN APM_REGION R ON scp.region_id = R.id
	) SCP
	INNER JOIN APM_PATCH_DETAIL P ON SCP.patch_id = P.id
	INNER JOIN APM_BULLETIN_DETAIL B ON B.id = P.bulletin_id
	INNER JOIN APM_LANGUAGE L ON L.id = SCP.lang
	INNER JOIN APM_DOWNLOAD_DETAIL DD ON DD.patch_detail_id = P.id
	AND (DD.language_id = L.id 
	AND EXISTS(SELECT 1 FROM APM_DOWNLOAD_DETAIL dd1 WHERE dd1.patch_detail_id=dd.patch_detail_id AND dd1.language_id=l.id) 
	OR NOT EXISTS(SELECT 1 FROM APM_DOWNLOAD_DETAIL dd1 WHERE dd1.patch_detail_id=dd.patch_detail_id AND dd1.language_id=l.id) 
	AND dd.language_id =(SELECT id FROM APM_LANGUAGE WHERE language_id=0))
UNION ALL
SELECT
	SP.id,
	1 [class_type],
	SP.guid,
	SP.name bulletin_id,
	NULL summary,
	SP.name sqnumber,
	NULL name,
	NULL [bulletin_url],
	NULL cve_ids,
	2 severity_id,
	CONCAT(SP.name,' ',L.short_name,' (', DD.shavlik_file_name, ')') bulletin_title,
	SP.created_date posted_date,
	SP.is_deployable deployable,
	0 is_installed,
	0 [patch_type_id], 
	DD.id download_id,
	DD.download_status_id,
	DD.download_date,
	DD.scheduled_date,
	DD.url,
	DD.size,
	L.id language_id
FROM (
		SELECT DISTINCT
			APS.service_pack_id,
			R.language_id lang
		FROM APM_APPLICABLE_SERV_PACK aps
		INNER JOIN APM_REGION R ON aps.region_id = R.id
	) APS
	INNER JOIN APM_SERVICE_PACK_DETAIL SP ON SP.id = APS.service_pack_id
	INNER JOIN APM_LANGUAGE L ON APS.lang = L.id
	INNER JOIN APM_DOWNLOAD_DETAIL DD ON DD.service_pack_id = SP.id 
	AND (DD.language_id = L.id 
	AND EXISTS(SELECT 1 FROM APM_DOWNLOAD_DETAIL dd1 WHERE dd1.service_pack_id=dd.service_pack_id AND dd1.language_id=l.id) 
	OR NOT EXISTS(SELECT 1 FROM APM_DOWNLOAD_DETAIL dd2 WHERE dd2.service_pack_id=dd.service_pack_id AND dd2.language_id=l.id)
	AND dd.language_id =(SELECT id FROM APM_LANGUAGE WHERE language_id=0))
GO
PRINT N'Creating View [dbo].[V_CLIENT_POLICIES]...';


GO
CREATE VIEW V_CLIENT_POLICIES
AS

	SELECT
		A.id AS[policy_id], A.name AS[policy_name], C.user_name AS[user_name], A.creation_date AS[creation_date], A.edit_date AS[edit_date],
		CASE
		A.platform
		WHEN 0 THEN 'Unknow'
		WHEN 1 THEN 'Windows'
		WHEN 2 THEN 'Linux'
		WHEN 3 THEN 'Mac'
	END AS [device_platform],
		CASE
		B.type
		WHEN 1 THEN 'Energy'
		WHEN 2 THEN 'ForbiddenPrograms'
		WHEN 3 THEN 'Restriction'
	END AS[policy_type]

	FROM APWM_POLICY A
		JOIN APWM_POLICY_TYPE B ON A.id = B.policy_id
		JOIN AFW_USERS C ON A.creator_user_id = C.user_id
GO
PRINT N'Creating View [dbo].[V_CLIENT_POLICY_DEVICE]...';


GO
CREATE VIEW V_CLIENT_POLICY_DEVICE
AS
	SELECT
		device_id AS [view_device_id],
		policy_id AS [view_policy_id]
	FROM APWM_POLICY_ASSIGNMENT
GO
PRINT N'Creating View [dbo].[V_CLIENT_PROJECT_EXEC]...';


GO
CREATE VIEW V_CLIENT_PROJECT_EXEC
AS
	SELECT
		B.id AS[execution_id], A.id AS[view_distribution_project_id],
		A.name AS[execution_name],
		CASE 
			B.status
			WHEN 0 THEN 'Without Execute'
			WHEN 1 THEN 'Pending To Execute'
			WHEN 2 THEN 'In Execution'
			WHEN 3 THEN 'Executed'
			WHEN 4 THEN 'Executed With Errors'
			WHEN 5 THEN 'Interrupted'
			WHEN 6 THEN 'Canceled'
		END AS [execution_status],
		B.execution_date,
		CASE
			A.platform
			WHEN 0 THEN 'Unknow'
			WHEN 1 THEN 'Windows'
			WHEN 2 THEN 'Linux'
			WHEN 3 THEN 'Mac'
		END AS [device_platform],
		CASE
			B.type 
			WHEN 1 THEN 'Install'
			WHEN 2 THEN 'Uninstall'
		END AS[execution_type]

	FROM ASD_SETUPPROJECT A
		INNER JOIN ASD_EXECUTION B ON  A.id= B.setupproject_id
GO
PRINT N'Creating View [dbo].[V_CLIENT_SOFTWARE_VERSION]...';


GO
CREATE VIEW V_CLIENT_SOFTWARE_VERSION
AS

	SELECT
		sw.[id] AS [software_id],
		pr.[name] AS [product_name],
		CASE
		WHEN pr.[type] = -1 THEN 'Unknow'
		WHEN pr.[type] = 0 THEN 'Operating System'
		WHEN pr.[type] = 1 THEN 'Application'
		WHEN pr.[type] = 2 THEN 'Update'
	END AS[software_type],
		ma.[name] AS [manufacturer],
		CASE 
		WHEN pr.[platform] = 0 THEN 'Unknow'
		WHEN pr.[platform] = 1 THEN 'Windows'
		WHEN pr.[platform] = 2 THEN 'Linux'
		WHEN pr.[platform] = 3 THEN 'Mac'
	END AS[platform],
		CASE
		WHEN sw.[is_inventory] = 1 THEN 'Inventariado'
		ELSE 'No inventariado'
	END AS[is_inventory],
		sw.[version],
		CASE
		WHEN sw.[is_permitted] = 1 THEN 'Permitido'
		ELSE 'No permitido'
	END AS[is_permitted]

	FROM [AAM_SOFTWARE_VERSION] sw
		JOIN [AAM_SOFTWARE_PRODUCT] pr ON pr.[id] = sw.[product_id]
		JOIN [AAM_MANUFACTURER] ma ON ma.[id] = pr.[manufacturer_id]
GO
PRINT N'Creating View [dbo].[V_CMDB_AUDIT_ALL]...';


GO
CREATE VIEW [dbo].[V_CMDB_AUDIT_ALL] 
AS
SELECT
	[CA].[FL_INT_AUDIT_ID] AS [id],
	[CA].[FL_STR_DESCRIPTION] AS [description],
	[CA].[FL_DAT_AUDITSTART] AS [initial_date],
	[CA].[FL_DAT_AUDITEND] AS [final_date],
	[CA].[FL_INT_LIMIT_DAYS] AS [alert_date],
	[CA].[FL_INT_RESPONSIBLE_ID] AS [responsible_id],
	[AU].[user_name] AS [responsible_name],
	[CA].[FL_BOL_HASALARM] AS [has_alarm],
	[CA].[projectid] AS [project_id],
	[AP].[proj_name] AS [project_name],
	[CA].[name],
	[CA].[template_id],
	[AMT].[name] AS [template_name],
	[CA].[aud_modified_date] AS [modified_date],
	[CA].[aud_modifier_id] AS [modifier_id],
	[CA].[schedule_flag]
FROM [dbo].[CMDB_AUDIT] [CA]
JOIN [dbo].[ASMS_PROJECTS] [AP] ON [CA].[projectid] = [AP].[proj_id]
JOIN [dbo].[AFW_USERS] [AU] ON [AU].[user_id] = [CA].[FL_INT_RESPONSIBLE_ID]
LEFT JOIN [dbo].[ASMS_MAIL_TEMPLATE] [AMT] ON [AMT].[id] = [CA].[template_id]
GO
PRINT N'Creating View [dbo].[V_CMDB_CI_DW]...';


GO

CREATE VIEW [dbo].[V_CMDB_CI_DW]
AS
SELECT ID, BARCODE, RFID, NAME, STATE_ID, MODEL_ID, SERIAL, ASSET_TAG, PRICE, IMPACT_ID, DESCRIPTION, CATEGORY_ID, BRAND_ID, MANUFACTURER_ID, PROVIDER_ID, UNIT_ID, UNIT_SIZE, INSTALLATION_DATE, RESPONSIBLE_ID, REPONSIBLE_DATE, CHECKIN_DATE, ACCEPT_DATE, LICENSE_NUMBER, USEFUL_LIFE, DEPRECIATION_METHOD, RESIDUAL_VALUE, CHECKOUT_DATE, IMAGE_FILE_NAME, COSTCENTER_ID, CREATED_DATE, MODIFIED_DATE, MODIFIER_ID, AUTHOR_ID, VERSION, INTERFACE_ID, TYPE_ID, REASON_ID, CLOSED_DATE, PREVIOUS_STATUS_ID, RISK_LEVEL, INTEGRATION_ID, STATE_NAME, RESPONSIBLE_NAME, REASON_NAME, PROVIDER_NAME, MANUFACTURER_NAME, STATE_COLOR, STATE_FINAL, MODEL_NAME, IMPACT_NAME, CATEGORY_NAME, BRAND_NAME, COSTCENTER_NAME, CATEGORY_IMAGE, AUTHOR_NAME, MODIFIER_NAME, TYPE_NAME, UNIT_NAME, NOTE FROM CMDB_CI_DW_LAST
GO
PRINT N'Creating View [dbo].[V_CMDB_CI_INFO]...';


GO
CREATE VIEW [dbo].[V_CMDB_CI_INFO]
	AS
	SELECT
          ci.id
          , ci.barcode
          , ci.rfid
          , ci.name
          , st.stat_name AS state_name
          , st.stat_background_color_rgb
          , ci.state_id
          , ci.model_id
          , ctm.code_value AS model_name
          , ci.serial
          , ci.asset_tag
          , ci.price
          , ci.impact_id
          , cti.code_value AS impact_name
          , ci.description
          , ci.category_id
          , md.name AS category_name
          , ci.brand_id
          , ctb.code_value AS brand_name
          , ci.manufacturer_id
          , cm.Name AS manufacturer_name
          , ci.provider_id
          , cv.Name AS provider_name
          , ci.unit_id
          , ctu.code_value AS unit_name
          , ci.unit_size
          , ci.installation_date
          , ci.responsible_id
          , ur.user_name AS responsible_name
          , ci.reponsible_date
          , ci.checkin_date
          , ci.accept_date
          , ci.license_number
          , ci.useful_life
          , ci.depreciation_method
          , ci.residual_value
          , ci.checkout_date
          , ci.image_file_name
          , ci.costcenter_id
          , ci.created_date
          , ci.modified_date
          , ci.modifier_id
          , um.user_name AS modifier_name
          , ci.author_id
          , ua.user_name AS author_name
          , ci.version
          , ci.interface_id
          , ci.type_id
          , tt.name AS type_name
          , ci.reason_id
          , ci.closed_date
          , ci.previous_status_id
          , ci.risk_level
          , ci.integration_id
          , ti.name AS integration_name
          , ci.location_id
          , lct.name AS location_name
          , ci.file_id
          , ci.group_id
          , gr.grou_name AS group_name
     FROM [dbo].[CMDB_CI] AS ci  
     LEFT OUTER JOIN dbo.[ASMS_STATUS] AS st ON ci.[state_id] = st.stat_id 
     LEFT OUTER JOIN dbo.[ASMS_MODEL] AS md ON ci.category_id = md.id 
     LEFT OUTER JOIN dbo.[ASMS_COMPANY] AS cm ON ci.manufacturer_id = cm.id 
     LEFT OUTER JOIN dbo.[ASMS_COMPANY] AS cv ON ci.provider_id = cv.id 
     LEFT OUTER JOIN dbo.[AFW_USERS] AS um ON ci.modifier_id = um.user_id
     LEFT OUTER JOIN dbo.[AFW_USERS] AS ua ON ci.author_id = ua.user_id
     LEFT OUTER JOIN dbo.[AFW_USERS] AS ur ON ci.responsible_id = ur.user_id
     LEFT OUTER JOIN dbo.[ASMS_TYPES] AS tt ON ci.type_id = tt.id
     LEFT OUTER JOIN dbo.[ASMS_TYPES] AS ti ON ci.integration_id = ti.id
     LEFT OUTER JOIN dbo.[ASMS_LOCATION] AS lct ON ci.location_id = lct.Id
     LEFT OUTER JOIN dbo.[AFW_CATALOG_CODE] AS cti ON ci.impact_id = cti.code_id
     LEFT OUTER JOIN dbo.[AFW_CATALOG_CODE] AS ctb ON ci.brand_id = ctb.code_id
     LEFT OUTER JOIN dbo.[AFW_CATALOG_CODE] AS ctm ON ci.model_id = ctm.code_id
     LEFT OUTER JOIN dbo.[AFW_CATALOG_CODE] AS ctu ON ci.unit_id = ctu.code_id
     LEFT OUTER JOIN dbo.[AFW_GROUPS] AS gr ON ci.group_id = gr.grou_id
GO
PRINT N'Creating View [dbo].[V_DMM_DATASET]...';


GO
CREATE VIEW V_DMM_DATASET AS
SELECT
	ds_i.id inner_dataset,
	dst_i.model_name,
	co_i.id inner_column,
	ds_o.id outer_dataset,
	co_o.id outer_column,
	rst.name outer_model_name,
	oc.id column_name,
	att.name attribute_name,
	rst.language_id,
	ds_o.base_object_type,
	ds_o.is_external,
	at.type attribute_type
FROM
	dbo.DMM_RELATIONSHIP rs
	JOIN dbo.DMM_RELATIONSHIP_TRANSLATION rst ON rs.id = rst.relationship_id
	JOIN DMM_DATASET ds_i ON ds_i.id = rs.inner_dataset 
	JOIN dbo.DMM_DATASET_TRANSLATION dst_i ON ds_i.id = dst_i.dataset_id 
		AND rst.language_id = dst_i.language_id
	JOIN DMM_COLUMN co_i ON co_i.id = rs.inner_column
	JOIN DMM_DATASET ds_o ON ds_o.id = rs.outer_dataset
	JOIN DMM_COLUMN co_o ON co_o.id = rs.outer_column
	JOIN DMM_COLUMN oc ON oc.dataset_id = rs.outer_dataset
	JOIN DMM_ATTRIBUTE at ON at.column_id = oc.id
	LEFT JOIN DMM_ATTRIBUTE_TRANSLATION att ON at.id = att.attribute_id 
		AND rst.language_id = att.language_id;
GO
PRINT N'Creating View [dbo].[VIEW_AAM_DEVICE]...';


GO
CREATE VIEW [dbo].[VIEW_AAM_DEVICE]	AS 
SELECT			dev.[id]										AS [id],	
				dev.[name] 										AS [name],
				dev.[hardware_hash] 							AS [hardware_hash],
				dev.[type] 										AS [type],
				dev.[description] 								AS [description],
				COALESCE(dev.domain, dev.workgroup)				AS [domain],
				dev.[created_date]								AS [creationdate], 				
				dev.[username]									AS [username], 
				ISNULL(devSw.[platform], 0)						AS [platform], 
				ISNULL(devSw.[software_id], 0)					AS [operatingSystemId], 
				devSw.[product_id]								AS [operatingSystemProductId],
				devSw.[name] COLLATE DATABASE_DEFAULT			AS [operatingSystem],				
				devSw.[version]									AS [operatingSystemVersion],	
				devRes.[user_id]								AS [responsible_user_id],
				devRes.[user_name]								AS [responsible_user_name],
				devRes.[user_email]								AS [responsible_user_email],
				dev.[token]										AS [token],
				dev.[guid]										AS [guid],
				dev.[is_discovery],
				dev.[is_active],
				dev.[auto_setted_user],
				dev.[modification_date]
FROM            AAM_DEVICE AS dev 
LEFT JOIN		V_AAM_DEVICE_SOFTWARE AS devSw WITH (NOEXPAND) ON devSw.device_id = dev.id	
LEFT JOIN (
	SELECT 
		devRe.[device_id],
		users.[user_id],
		users.[user_name],
		users.[user_email]
	FROM AAM_DEVICE_RESPONSIBLE devRe
	JOIN AFW_USERS users ON users.[user_id] = devRe.[user_id]		
) AS devRes On devRes.[device_id] = dev.id
 
WHERE dev.[is_active] = 1
GO
PRINT N'Creating View [dbo].[VIEW_AAM_DISKMEMORY_USAGE]...';


GO
CREATE VIEW [dbo].[VIEW_AAM_DISKMEMORY_USAGE] AS

WITH cte_logical_disk AS (
	SELECT device_diskid,
		SUM(size) totaldisk,
		SUM(free) availabledisk,
		[type]
	FROM AAM_LOGICAL_DISK
	GROUP BY device_diskid, [type]
), vrtdisks AS (
	SELECT dd.device_id id,
		SUM(ISNULL(ld.availabledisk, 0)) availabledisk,
		SUM(ISNULL(ld.totaldisk, 0)) totaldisk,
		MIN(ISNULL(dm.available_physical, 0)) availablemem,
		MIN(ISNULL(dm.physical, 0)) totalmem
	FROM cte_logical_disk ld
	INNER JOIN AAM_DEVICE_DISK dd ON dd.id = ld.device_diskid
	LEFT JOIN AAM_DEVICE_MEMORY dm ON dm.device_id = dd.device_id
	WHERE UPPER(ld.type) = 'FIXED'
	GROUP BY dd.device_id
)

SELECT	[id],
		[availabledisk],
		[totaldisk],
		CASE 
			WHEN totaldisk <> 0 THEN 100 * (1 - (availabledisk / CAST(totaldisk AS FLOAT))) 
			ELSE 0
		END AS diskusage,
		[availablemem],
		[totalmem],
		CASE 
			WHEN[totalmem]<> 0 THEN 100 * (1 - ([availablemem] / CAST([totalmem] AS FLOAT))) 
			ELSE 0
		END AS memoryusage 
FROM vrtdisks
GO
PRINT N'Creating View [dbo].[VIEW_AAM_FILE_VERSION]...';


GO
CREATE VIEW [dbo].[VIEW_AAM_FILE_VERSION]
AS
SELECT 
	[file_version].[id],
    [file_version].[product_id],
    [file_version].[product_version],
    [file_version].[file_name_id],
    [file_version].[file_version],
    [file_version].[file_description],
	[file_version].[software_id],
	[file_extension].[category_id],
	[file].[name] AS [file_name],
	[file_product].name AS [product_name]
FROM [AAM_FILE_VERSION] file_version 
INNER JOIN [AAM_FILE_NAME] [file] ON [file].id = file_version.file_name_id 
INNER JOIN [AAM_EXTENSION] file_extension ON file_extension.id = [file].extension_id 
LEFT JOIN [AAM_FILE_PRODUCT] file_product ON file_product.id = file_version.product_id
GO
PRINT N'Creating View [dbo].[VIEW_AAM_SOFTWARE_VERSION]...';


GO
CREATE VIEW [dbo].[VIEW_AAM_SOFTWARE_VERSION]
AS
SELECT 
	pr.[id] AS [product_id], 
	pr.[name],
	pr.[type],
	pr.[manufacturer_id],
	pr.[platform],
	sw.[id] , 	
	sw.[is_inventory], 
	sw.[version],
	sw.[parent_id],	
	sw.[is_permitted],
	ma.[name] AS [manufacturer]
	
FROM [AAM_SOFTWARE_VERSION] sw
JOIN [AAM_SOFTWARE_PRODUCT] pr ON pr.[id] = sw.[product_id]
JOIN [AAM_MANUFACTURER] ma ON ma.[id] = pr.[manufacturer_id]
GO
PRINT N'Creating View [dbo].[VIEW_AFW_ALERT_COUNT]...';


GO
CREATE VIEW [dbo].[VIEW_AFW_ALERT_COUNT] AS 
SELECT
	 [alert].[category_id]	
	,[alert].[project_id]
	,[alert].[severity_id]
	,[alert].[status_id]
	,COUNT([alert].[id]) AS [count]
FROM [dbo].[AFW_ALERT] AS [alert]
GROUP BY 
	 [alert].[category_id]	
	,[alert].[project_id]
	,[alert].[severity_id]
	,[alert].[status_id]
GO
PRINT N'Creating View [dbo].[VIEW_AFW_AUDIT]...';


GO
CREATE VIEW VIEW_AFW_AUDIT AS
SELECT 
	[audi_id],
	[audi_application_id]		AS [application_id], 
	[audi_start_date]			AS [start_date], 
	[audi_end_date]				AS [end_date],
	[audi_machine_source]		AS [machine_source],
	[audi_machine_dest]			AS [machine_dest],
	[audi_ip_dest]				AS [ip_dest],
	[audi_permission_id]		AS [permission_id],
	[c].[name]					AS [concept],
	[audi_user_id]				AS [user_id],
	[u].[user_name]				AS [user_name],
	[audi_additional]			AS [additional]
FROM AFW_AUDIT a
JOIN AFW_PERMISSIONS p ON a.audi_permission_id = p.perm_id
LEFT JOIN AFW_CONCEPT c ON p.perm_concept_id = c.id
JOIN AFW_USERS u ON a.audi_user_id =  u.user_id
GO
PRINT N'Creating View [dbo].[VIEW_AFW_PERMISSION]...';


GO
CREATE VIEW [dbo].[VIEW_AFW_PERMISSION] AS (
	SELECT
		 [p].[perm_id] AS [id]
		,[p].[perm_name] AS [name]
		,[p].[perm_application_id] AS [application_id]
		,[ur].[is_audit]
		,[ur].[user_id]
		,[ur].[roac_proj_id] AS [project_id]
	FROM (
		SELECT
			[ra].[user_id],
			[rp].[perm_id],
			MAX ([rp].[is_audit]) AS [is_audit],
			[ra].[roac_proj_id]
		FROM (
			SELECT
				[ra].[roac_role_id],
				[ra].[roac_user_id] [user_id],
				[ra].[roac_proj_id]
			FROM [dbo].[AFW_ROLE_ACCESS] [ra]
			INNER JOIN [dbo].[AFW_ROLES] [r] ON [ra].[roac_role_id] = [r].[role_id]
			WHERE [r].[role_is_active] = 1
			UNION
			SELECT
				[ra].[roac_role_id],
				[gu].[user_id] [user_id],
				[ra].[roac_proj_id]
			FROM [dbo].[AFW_ROLE_ACCESS] [ra]
			INNER JOIN [dbo].[AFW_ROLES] [r] ON [ra].[roac_role_id] = [r].[role_id]
			LEFT JOIN [dbo].[AFW_GROUP_USER] [gu] ON [ra].[roac_grou_id] = [gu].[grou_id]
			INNER JOIN [dbo].[AFW_GROUPS] [g] ON [gu].[grou_id] =[g].[grou_id]
			WHERE [g].[grou_is_active] = 1 AND [r].[role_is_active] = 1
		) ra
		INNER JOIN [dbo].[AFW_ROLE_PERMISSION] [rp] ON [rp].[role_id] = [ra].[roac_role_id]	
		GROUP BY [rp].[perm_id],
			[ra].[user_id],
			[ra].[roac_proj_id]
	) [ur]
	INNER JOIN [dbo].[AFW_PERMISSIONS] [p] ON [p].[perm_id] = ur.[perm_id]
)
GO
PRINT N'Creating View [dbo].[VIEW_AFW_PERMISSION_OBJECT]...';


GO
CREATE VIEW [dbo].[VIEW_AFW_PERMISSION_OBJECT] AS (
	SELECT
		 [p].[perm_id] AS [id]
		,[p].[perm_name] AS [name]
		,[p].[perm_application_id] AS [application_id]
		,[rp].[is_audit]
		,[ra].[project_id] 
		,[ra].[user_id]
		,[ra].[object_id] 
		,[ra].[object_type_id] 
		
	FROM (
		SELECT
			 [ra].[roac_id]
			,[ra].[roac_proj_id] AS [project_id]
			,ISNULL([ra].[roac_user_id], [gu].[user_id]) AS [user_id]
			,[ra].[roac_role_id]
			,[rao].[roao_object_id] AS [object_id] 
			,[rao].[roao_object_type_id] AS [object_type_id]
		FROM [dbo].[AFW_ROLE_ACCESS] [ra]
		INNER JOIN [dbo].[AFW_ROLE_ACCESS_OBJECT] [rao] ON [rao].[roao_role_access_id] = [ra].[roac_id]
		LEFT JOIN [dbo].[AFW_GROUP_USER] gu ON gu.grou_id = ra.roac_grou_id
	) AS [ra]
	INNER JOIN (
		SELECT
			 [perm_id] 
			,[role_id]
			,MAX(is_audit) AS [is_audit]
		FROM [dbo].[AFW_ROLE_PERMISSION]
		GROUP BY 
			[role_id]
			,[perm_id]
	) AS [rp] ON [rp].[role_id] = [ra].[roac_role_id]
	INNER JOIN AFW_PERMISSIONS [p] ON [p].[perm_id] = [rp].[perm_id]
)
GO
PRINT N'Creating View [dbo].[VIEW_AFW_SESSION_LICENSE]...';


GO
CREATE VIEW [dbo].[VIEW_AFW_SESSION_LICENSE] AS
SELECT     [user].
user_id, [user].
user_name AS name, 
[user].user_nick_name AS user_name, 
application.appl_id AS application_id, 
application.appl_name AS application_name, 
application.appl_parent_id AS application_parent_id, 
parent.appl_name AS application_parent_name, 
licenses_used.license_id, licenses_used.named, 
CONVERT(NVARCHAR(40), session_token.token) AS token, 
session_token.validity
FROM dbo.AFW_LICENSES_USED AS licenses_used 
INNER JOIN dbo.AFW_LICENSE AS license ON license.lice_id = licenses_used.license_id 
INNER JOIN dbo.AFW_APPLICATIONS AS application ON application.appl_id = license.lice_application_id 
LEFT JOIN dbo.AFW_APPLICATIONS AS parent ON parent.appl_id = application.appl_parent_id 
INNER JOIN dbo.AFW_USER_SESSION_TOKEN AS session_token ON session_token.id = licenses_used.token_id 
INNER JOIN dbo.AFW_USERS AS [user] ON [user].user_id = session_token.id
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_ALLAPPLICATIONS]...';


GO
CREATE VIEW dbo.VIEW_AMDM_ALLAPPLICATIONS
AS

SELECT       
id																					AS [Id],
CASE 
	WHEN appsinfodetail_name IS NOT NULL THEN
		CASE				  
			WHEN LEN(appsinfodetail_name)<70 THEN appsinfodetail_name
			ELSE  SUBSTRING(appsinfodetail_name,1,68) + '...'
		END

	WHEN appsinfodetail_name IS NULL THEN 'Undefined'
END																					AS [ApplicationName], 

bundleid																			AS [PackageId], 

ISNULL(appsinfodetail_genres, 'Undefined')											AS [Type], 
			 
platform_id																			AS [PlatformId],
             
[version]																			AS [Version], 
             
CASE 
	WHEN price = 'free'     THEN 'Free' 
    WHEN price = 'withCost' THEN 'Payed' 
	ELSE NULL
END																					AS [Cost], 

CASE 
	WHEN iscorporate = 0 AND appsinfodetail_name IS NOT NULL   THEN 'Store' 
    WHEN iscorporate = 1 AND appsinfodetail_name IS NOT NULL   THEN 'Corporative' 
    WHEN appsinfodetail_name IS NULL THEN 'Undefined' 
END																					AS [Source],

(
    SELECT COUNT(1)
    FROM   AMDM_DEVICESOFTWARE AS ad
	INNER JOIN dbo.AMDM_DEVICE ON  ad.device_id = AMDM_DEVICE.id     
    WHERE  packagename = bundleid
	AND  dbo.AMDM_DEVICE.status_id  = 0
)																					AS [Devices], 

ISNULL(companydev, 'Undefined' )													AS [Company]

FROM
AMDM_APPSINFORMATION

LEFT JOIN    AMDM_APPSINFORMATIONDETAIL ON  (AMDM_APPSINFORMATION.id = AMDM_APPSINFORMATIONDETAIL.appsinfodetail_appid)

WHERE        appsinfodetail_lang = 'es'
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_ALLDEVBYSCHEDMANPROJ]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_ALLDEVBYSCHEDMANPROJ]
AS SELECT 
		mpd.id							AS projectDeviceId,
	    NULL							AS fetchDate,
		NULL							AS sendDate,
		NULL							AS answerDate,
		dev.uniquedeviceidentifier		AS deviceUDID,
		dev.name						AS deviceName,
		dev.id							AS deviceId,
		dev.platform_id					AS platformId,
		NULL							AS errorTypeId,
		NULL							AS statusId,
		mpd.managementproject_id		AS projectId

FROM		AMDM_MANAGEMENTPROJECT mp
INNER JOIN AMDM_MANPROJECT_DEVICE  mpd 	ON mp.manproject_id = mpd.managementproject_id
INNER JOIN AMDM_DEVICE		       dev	ON mpd.device_id = dev.id
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_ALLDEVSBYMANPROJECT]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_ALLDEVSBYMANPROJECT]
AS SELECT
    md.id                                           AS IDX,
    c.sentcmd_id                                    AS sentCommandId,
    ISNULL(c.sentcmd_fetchDate, md.lastupdate)      AS fetchDate,
    ISNULL(c.sentcmd_sendDate, md.lastupdate)       AS sendDate,
    ISNULL(c.sentcmd_answerDate, md.lastupdate)     AS answerDate,
    d.uniquedeviceidentifier                        AS deviceUDID,
    d.name                                          AS deviceName,
    d.id                                            AS deviceId,
    d.platform_id                                   AS platformId,
    ISNULL(c.sentcmd_errortypeid, md.errortype_id)  AS errorTypeId,
    ISNULL(cs.cmdstat_id, md.status_id)             AS statusId,
    p.manproject_id                                 AS projectId
FROM AMDM_MANPROJECT_DEVICE md 
    INNER JOIN AMDM_MANAGEMENTPROJECT p ON md.managementproject_id = p.manproject_id
    INNER JOIN AMDM_DEVICE d ON md.device_id = d.id
    LEFT JOIN (
        SELECT
            cr.cmdreq_manprojectid,
            sc.sentcmd_deviceid,
            ISNULL (
                MAX(CASE WHEN sc.sentcmd_errortypeid <> 0 THEN sc.sentcmd_id END),
                MAX(sc.sentcmd_id)
            ) project_id
        FROM AMDM_SENTCOMMAND sc
        INNER JOIN AMDM_COMMANDREQUEST cr ON sc.sentcmd_requestid = cr.cmdreq_id 
        GROUP BY cr.cmdreq_manprojectid,
            sc.sentcmd_deviceid
    ) cm ON cm.sentcmd_deviceid = md.device_id
            AND cm.cmdreq_manprojectid = p.manproject_id
        LEFT JOIN AMDM_SENTCOMMAND c ON d.id = c.sentcmd_deviceid
            AND c.sentcmd_id = cm.project_id
        LEFT JOIN AMDM_COMMANDSTATUS cs ON c.sentcmd_statusid = cs.cmdstat_id
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_ALLEXPENSEPLANS]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_ALLEXPENSEPLANS]
AS SELECT 
	    AMDM_EXPENSEPLAN.plan_id							AS planId,
	    AMDM_EXPENSEPLAN.plan_billingcicledate				AS billingCycleDate,
	    AMDM_EXPENSEPLAN.plan_correctionfactor				AS correctionFactor,
	    AMDM_EXPENSEPLAN.plan_costunitdata					AS costUnitData,
	    AMDM_EXPENSEPLAN.plan_costunitvoice					AS costUnitVoice,
		AMDM_EXPENSEPLAN.plan_createddate					AS createdDate,
		AMDM_EXPENSEPLAN.plan_currency						AS currencyId,
		AMDM_EXPENSEPLAN.plan_datasize						AS dataSize,
		AMDM_EXPENSEPLAN.plan_description					AS planDescription,
		AMDM_EXPENSEPLAN.plan_exceptions					AS exceptions,
		AMDM_EXPENSEPLAN.plan_measuredatasize				AS measureDataSize,
		AMDM_EXPENSEPLAN.plan_measurevoicesize				AS measuerVoiceSize,
		AMDM_EXPENSEPLAN.plan_name							AS planName,
		AMDM_EXPENSEPLAN.plan_roamingcostunitdata			AS roamingCostUnitData,
		AMDM_EXPENSEPLAN.plan_roamingcostunitvoice			AS roamingCostUnitVoice,
		AMDM_EXPENSEPLAN.plan_roamingdatasize				AS roamingDataSize,
		AMDM_EXPENSEPLAN.plan_roamingvoicesize				AS roamingVoiceSize,
		AMDM_EXPENSEPLAN.plan_shared						AS isShared,
		AMDM_EXPENSEPLAN.plan_userid						AS userId,
		l.[name] + '\' + AFW_USERS.[user_name]				AS fullUserName,
		AMDM_EXPENSEPLAN.plan_voicesize						AS voiceSize,
		AMDM_EXPENSECARRIER.carrier_name					AS carrierName,
		AMDM_EXPENSEPLANSUMMARY.plansum_localdata			AS consumedLocalData,
		AMDM_EXPENSEPLANSUMMARY.plansum_localvoice			AS consumedLocalVoice,
		AMDM_EXPENSEPLANSUMMARY.plansum_roamingdata			AS consumedRoamingData,
		AMDM_EXPENSEPLANSUMMARY.plansum_roamingvoice		AS consumedRoamingVoice,
		AMDM_EXPENSEPLANSUMMARY.plansum_localvoicecost		AS consumedLocalVoiceCost,
		AMDM_EXPENSEPLANSUMMARY.plansum_roamingvoicecost	AS consumedRoamingVoiceCost,
		AMDM_EXPENSEPLAN.plan_modificationdate				AS modificationDate,
		AMDM_EXPENSEPLAN.plan_rulesetexpenseplanid			AS ruleSetExpensePlanId

FROM		AMDM_EXPENSEPLAN
LEFT JOIN	AMDM_EXPENSEPLANSUMMARY	ON AMDM_EXPENSEPLAN.[plan_id] = AMDM_EXPENSEPLANSUMMARY.[plansum_planid]
LEFT JOIN	AMDM_EXPENSECARRIER		ON AMDM_EXPENSEPLAN.[plan_expensecarrier_id] = AMDM_EXPENSECARRIER.[carrier_id]
LEFT JOIN   AFW_USERS				ON AMDM_EXPENSEPLAN.[plan_userid]  = AFW_USERS.[user_id]
LEFT JOIN	AFW_LDAP l				ON (l.id = AFW_USERS.user_authentication_id)
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_ALLMANPROJECTS]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_ALLMANPROJECTS]
AS SELECT 
	    AMDM_MANAGEMENTPROJECT.manproject_id							AS projectId,
	    AMDM_MANAGEMENTPROJECT.manproject_name							AS projectName,
	    AMDM_MANAGEMENTPROJECT.manproject_startdate						AS startDate,
	    AMDM_MANAGEMENTPROJECT.manproject_finishdate					AS finishDate,
	    AMDM_MANAGEMENTPROJECT.manproject_statusid						AS statusId,
		AMDM_MANAGEMENTPROJECT.manproject_userid						AS userId,
		AMDM_MANPROJECT_STATUS.manprojectstatus_name					AS statusName,
		l.[name] + '\' + AFW_USERS.[user_name]							AS fullUserName,
		AMDM_MANAGEMENTPROJECT.manproject_createddate					AS createdDate,
		actionType.manprojectactiontype_name							AS actionName

FROM		AMDM_MANAGEMENTPROJECT
LEFT JOIN	AMDM_MANPROJECT_ACTION					ON AMDM_MANAGEMENTPROJECT.[manproject_id] = AMDM_MANPROJECT_ACTION.[manprojectaction_projectid]
LEFT JOIN	AMDM_MANPROJECT_ACTION_TYPE actionType	ON AMDM_MANPROJECT_ACTION.[manprojectaction_typeid] = actionType.[manprojectactiontype_id]
LEFT JOIN	AMDM_MANPROJECT_STATUS					ON AMDM_MANAGEMENTPROJECT.[manproject_statusid]  = AMDM_MANPROJECT_STATUS.manprojectstatus_id
LEFT JOIN   AFW_USERS								ON AMDM_MANAGEMENTPROJECT.[manproject_userid]  = AFW_USERS.[user_id]
LEFT JOIN	AFW_LDAP l								ON (l.id = AFW_USERS.user_authentication_id)
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_ALLPOLICIES]...';


GO
CREATE VIEW dbo.VIEW_AMDM_ALLPOLICIES
AS

WITH cte_device_stats AS (
    SELECT 
        policy_id,
        COUNT(CASE WHEN status_id = 0 THEN 1 END) AS DeviceCount,
        COUNT(CASE WHEN fulfilledpolicy = 1 AND status_id = 0 THEN 1 END) AS NotFulfilledDeviceCount
    FROM AMDM_DEVICE
    GROUP BY policy_id
),
cte_enabled_sections AS (
    SELECT 
        politem_policyid AS policy_id,
        COUNT(DISTINCT politem_policyitemtype) AS EnabledSections
    FROM AMDM_POLICYITEM
    GROUP BY politem_policyid
),
cte_pending_requests AS (
    SELECT 
        cr.cmdreq_policyid AS policy_id,
        COUNT(DISTINCT sc.sentcmd_id) AS PendingRequest
    FROM dbo.AMDM_SENTCOMMAND sc
    INNER JOIN dbo.AMDM_COMMANDREQUEST cr ON sc.sentcmd_requestid = cr.cmdreq_id
    INNER JOIN AMDM_DEVICE ad ON ad.id = cr.cmdreq_deviceid
    WHERE sc.sentcmd_statusid <> 2 
      AND ad.status_id = 0 
      AND GETUTCDATE() < sc.sentcmd_expirydate
    GROUP BY cr.cmdreq_policyid
)

SELECT DISTINCT
    P.policy_id                       AS [Id],
    P.policy_policyname              AS PolicyName,
    PS.polstatype_name               AS Status,
    MAX(P.policy_version)           AS PolicyVersion,
    ISNULL(PV.policy_createdate, P.policy_createdate) AS CreateDate,
    ISNULL(ds.DeviceCount, 0)       AS DeviceCount,
    ISNULL(es.EnabledSections, 0)   AS EnabledSections,
    ISNULL(ds.NotFulfilledDeviceCount, 0) AS NotFulfilledDeviceCount,
    ISNULL(pr.PendingRequest, 0)    AS PendingRequest,
    P.policy_platformid              AS PlatformId,
    DP.platf_name                    AS Platform
FROM AMDM_POLICY AS P
LEFT JOIN AMDM_POLICYVERSION PV ON PV.policy_id = P.policy_id AND PV.policy_version = P.policy_version
JOIN AMDM_POLICYSTATUSTYPE PS ON P.policy_status = PS.polstatype_id
LEFT JOIN cte_device_stats ds ON ds.policy_id = P.policy_id
LEFT JOIN cte_enabled_sections es ON es.policy_id = P.policy_id
LEFT JOIN cte_pending_requests pr ON pr.policy_id = P.policy_id
JOIN AMDM_DEVICEPLATFORM DP ON DP.platf_id = P.policy_platformid
WHERE P.policy_status <> 4
GROUP BY
    P.policy_id, P.policy_policyname, PS.polstatype_name, 
    ISNULL(PV.policy_createdate, P.policy_createdate),
    ds.DeviceCount, es.EnabledSections, ds.NotFulfilledDeviceCount, 
    pr.PendingRequest, P.policy_platformid, DP.platf_name
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_APPLICATION_METRICS]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_APPLICATION_METRICS]
	AS 

	SELECT
	DISTINCT
	met.app_id										AS [appId],
	met.device_id									AS [devId],
	grdev.group_id									AS [groupId],
	dev.name										AS [devName],
	usr.user_name									AS [userName],
	met.dimdate_id									AS [dateId],
	met.celldata									AS [dataConsumption],
	met.usetime										AS [useTime]

	FROM
	AMDM_APPLICATION_METRICS met

	INNER	JOIN AMDM_DEVICE			dev			ON met.device_id = dev.id
	INNER	JOIN AMDM_DEVICEFLAGS		devFlags	ON dev.id = devFlags.device_id AND devFlags.flag_id = 2
	INNER	JOIN AMDM_APPSINFORMATION	app			ON met.app_id = app.id
	INNER	JOIN AFW_USERS				usr			ON met.user_id = usr.user_id
	LEFT	JOIN AMDM_GROUPDEVICE		grdev		ON dev.id = grdev.dev_id

	WHERE dev.status_id = 0
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_APPMETRICS_DEVICE]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_APPMETRICS_DEVICE]
	AS 

	SELECT
	(ROW_NUMBER() OVER(ORDER BY met.app_id ASC))	AS [INDX],
	met.app_id										AS [appId],
	met.device_id									AS [devId],
	met.dimdate_id									AS [dateId],
	met.celldata									AS [dataConsumption],
	met.usetime										AS [useTime],
	detEs.appsinfodetail_name						AS [appNameEs],
	detEn.appsinfodetail_name						AS [appNameEn],
	detPt.appsinfodetail_name						AS [appNamePt],
	app.iconurl										AS [iconUrl],
	ISNULL(devSw.id, 0)								AS [installed]

	FROM
	AMDM_APPLICATION_METRICS met

	INNER	JOIN AMDM_APPSINFORMATION		app			ON met.app_id = app.id
	LEFT	JOIN AMDM_DEVICESOFTWARE		devSw		ON met.device_id = devSw.device_id AND app.bundleid = devSw.packagename
	LEFT	JOIN AMDM_APPSINFORMATIONDETAIL detEs		ON met.app_id = detEs.appsinfodetail_appid AND detEs.appsinfodetail_lang = 'es'
	LEFT	JOIN AMDM_APPSINFORMATIONDETAIL detEn		ON met.app_id = detEn.appsinfodetail_appid AND detEn.appsinfodetail_lang = 'en'
	LEFT	JOIN AMDM_APPSINFORMATIONDETAIL detPt		ON met.app_id = detPt.appsinfodetail_appid AND detPt.appsinfodetail_lang = 'pt'
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_APPSINFORMATION]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_APPSINFORMATION]
	AS 
SELECT
	ad.appsinfodetail_id AS INDX,	
	bundleid AS packageName,		
	ISNULL(ad.appsinfodetail_name,'-------') AS nameApp,		
	avgrating AS avgRank,		
	platform_id AS platformId,
	devicecount AS deviceCount,		
	[version] AS [version],		
	ad.appsinfodetail_description AS description,		
	iconurl AS icon,		
	iscorporate AS isCorporate,
	iostrackid AS IOStrackId,		
	companydev AS Developer,		
	ad.appsinfodetail_genres AS typeApp,		
	lastupdate AS lastUpdate,		
	nextupdate AS nextUpdate,
	price AS price,		
	isprocessed AS isProcessed,		
	hasdevicecount AS hasDeviceCount,		
	ad.appsinfodetail_lang AS lang,		
	isvisible AS isVisible,
	isafw AS isAFW,
	isprivate AS isPrivate,
	urlexternal AS externalUrl,
	ISNULL(isproductive, 0) AS isProductive,
	a.id AS appId,
	ISNULL(a.synchronized, 0) AS Synchronized,
	0 AS totalPolicies,
	0 AS totalMetrics
FROM dbo.AMDM_APPSINFORMATION a	
	LEFT JOIN dbo.AMDM_APPSINFORMATIONDETAIL ad ON (a.id = ad.appsinfodetail_appid)
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DASHBOARD_DEVICES]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DASHBOARD_DEVICES]
AS 
SELECT
AMDM_DEVICE.id														AS [idDevice], 
AMDM_DEVICESTATUS.devstat_name										AS [Status], 
AMDM_DEVICEPLATFORM.platf_name										AS [Platform], 
AMDM_DEVICE.manufacturer											AS [Manufacturer], 
AMDM_DEVICE.devicetype												AS [Type], 

CASE
WHEN AMDM_DEVICE.lostmode = 1 THEN 1
ELSE 0
END																	AS [LostMode],

CASE
WHEN AMDM_DEVICENETWORK.devn_isroaming = 1 THEN 1
ELSE 0
END																	AS [Roaming],
CASE WHEN
	AMDM_DEVICE.lastreported < DATEADD(day, -7, GETUTCDATE())
		THEN 1
	ELSE 0
END																	AS [longInactivity],
CASE
WHEN AMDM_DEVICE.fulfilledpolicy = 0 THEN 1
ELSE 0
END																	AS [NotCompliant],

CASE 
WHEN AMDM_DEVICE.issecuritybroken = 1 THEN 1
ELSE 0
END																	AS [RootedJailbroken],

CASE
WHEN AMDM_DEVICEHARDWARE.devh_batterylevel < 0.15 THEN 1	ELSE 0
END
																	AS [LowBattery],
CASE WHEN
	AMDM_DEVICEHARDWARE.devh_totalinternalstorage <> 0 
		THEN 
			CASE WHEN
			(CAST(AMDM_DEVICEHARDWARE.devh_availableinternalstorage AS float)/ 
			CAST(AMDM_DEVICEHARDWARE.devh_totalinternalstorage AS float)) < 0.1
				THEN 1
			ELSE 0
			END
		ELSE 0
END																	AS [LowInternalMemory],
AMDM_DEVICE.osversion												AS [OSVersion],
ISNULL(AMDM_POLICY.policy_policyname, 'None')						AS [Policy]   

FROM
AMDM_DEVICE 

INNER JOIN AMDM_DEVICEPLATFORM ON AMDM_DEVICE.platform_id = AMDM_DEVICEPLATFORM.platf_id
INNER JOIN AMDM_DEVICESTATUS ON AMDM_DEVICE.status_id = AMDM_DEVICESTATUS.devstat_id 
LEFT JOIN AMDM_DEVICEHARDWARE ON AMDM_DEVICE.devicehardware_id = AMDM_DEVICEHARDWARE.devh_id
LEFT JOIN AMDM_DEVICENETWORK ON AMDM_DEVICE.devicenetwork_id = AMDM_DEVICENETWORK.devn_id
LEFT JOIN AMDM_POLICY ON AMDM_DEVICE.policy_id = AMDM_POLICY.policy_id
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DASHBOARD_EXPENSES_1]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DASHBOARD_EXPENSES_1]
AS 
SELECT 
									[iddevice],
									[devicename],
									[username],
									[planname],
									[carriername],
CASE 
WHEN [ollocaldata] = 1 THEN 1
ELSE 0
END AS								[ollocaldata],

CASE 
WHEN [ollocalvoice] = 1 THEN 1
ELSE 0
END AS								[ollocalvoice],


CASE 
WHEN [olroamingdata] = 1 THEN 1
ELSE 0
END AS								[olroamingdata],

CASE 
WHEN [olroamingvoice] = 1 THEN 1
ELSE 0
END AS								[olroamingvoice]


FROM [dbo].[AMDM_DB_EXPENSESDEVICES]
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DASHBOARD_EXPENSES_2]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DASHBOARD_EXPENSES_2]
AS 
SELECT [PlanName]
      ,[LocalData]
      ,[RoamingData]
      ,[LocalVoice]
      ,[RoamingVoice]
  FROM [dbo].[AMDM_DB_EXPENSESPLANS]
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DASHBOARD_HEALTHDEVICE]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DASHBOARD_HEALTHDEVICE]
AS
SELECT          
	d.id AS deviceid
	, d.name AS devicename
	, dh.percentusedexternalstorage
	, CASE WHEN dh.percentusedexternalstorage >= 0 AND dh.percentusedexternalstorage > (SELECT (CAST(sett_value AS FLOAT)) FROM AFW_SETTINGS WHERE sett_key = 'ExternalStoragePercentageLimit') THEN 1 ELSE 0 END AS riskexternalstorage 
	, dh.percentusedinternalstorage
	, CASE WHEN dh.percentusedinternalstorage >= 0 AND dh.percentusedinternalstorage > (SELECT (CAST(sett_value AS FLOAT)) FROM AFW_SETTINGS WHERE sett_key = 'InternalStoragePercentageLimit') THEN 1 ELSE 0 END AS riskinternalstorage
	, dh.percentusedrammemory
	, CASE WHEN dh.percentusedrammemory >= 0 AND dh.percentusedrammemory > (SELECT (CAST(sett_value AS FLOAT)) FROM AFW_SETTINGS WHERE sett_key = 'RamPercentageLimit') THEN 1 ELSE 0 END AS riskrammemory
	, dh.percentbatterylevel
	, CASE WHEN dh.percentbatterylevel >= 0 AND dh.percentbatterylevel < (SELECT (CAST(sett_value AS FLOAT)) FROM AFW_SETTINGS WHERE sett_key = 'BatteryLevelPercentageLimit') THEN 1 ELSE 0 END AS riskbatterylevel
	, dh.signalstrength
	, CASE WHEN dh.signalstrength >= 0 AND dh.signalstrength < (SELECT (CAST(sett_value AS FLOAT)) FROM AFW_SETTINGS WHERE sett_key = 'DataSignalStrengthPercentageLimit') THEN 1 ELSE 0 END AS risksignalstrength
	, dh.wifisignalstrength
	, CASE WHEN dh.wifisignalstrength >= 0 AND dh.wifisignalstrength < (SELECT (CAST(sett_value AS FLOAT)) FROM AFW_SETTINGS WHERE sett_key = 'WifiSignalStregthPercentageLimit') THEN 1 ELSE 0 END AS riskwifisignalstrength
	, dh.recorddate
	, dd.value AS date_value
	, dt.value  AS time_value

FROM 
dbo.AMDM_DEVICE_HEALTHINFO AS dh 
INNER JOIN dbo.AMDM_DEVICE AS d ON (d.id = dh.device_id) 
INNER JOIN dbo.ADW_DIM_DATE AS dd ON (dd.id = dh.date_id) 
INNER JOIN dbo.ADW_DIM_TIME AS dt ON (dt.id = dh.time_id)
INNER JOIN dbo.AMDM_DEVICEFLAGS df ON (d.id = df.device_id AND df.flag_id = 4)
WHERE
	(dh.last = 1) 
	AND (d.status_id = 0)
	AND (df.value = 'True')
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DASHBOARD_METRICS]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DASHBOARD_METRICS]
	AS 

SELECT
	ISNULL(app.isproductive, 0) AS [isProductive],
	appDet.appsinfodetail_name AS [appName],
	app.iconurl AS [appIconUrl],
	CAST(met.usetime AS DECIMAL(18, 3)) AS [appUseTimeMs],
	CAST(ROUND((CAST(met.usetime AS DECIMAL(18, 2)) / 3600000), 2, 0) AS DECIMAL(18, 3)) AS [appUseTime],
	CAST((met.totalworkingtime * 60000) AS BIGINT) AS [totalWorkingTime],
	met.dimdate_id AS [date],
	CAST(met.celldata AS DECIMAL(18, 3)) AS [appDataConsumptionBytes],
	CAST(ROUND((CAST(met.celldata AS DECIMAL(18, 2)) / 1048576), 2, 0) AS DECIMAL(18, 3)) AS [appDataConsumption],
	dev.name AS [deviceName],
	cat.name AS [categoryName],
	dimTime.year AS [year],
	dimTime.month AS [month],
	dimTime.week AS [week],
	dimTime.month_day AS [day],
	dimTime.week_day AS [weekDay],
	usr.user_name AS [userName],
	dimTime.value AS [dateValue]
FROM
	AMDM_APPLICATION_METRICS met
INNER JOIN	ADW_DIM_DATE dimTime ON met.dimdate_id = dimTime.id
INNER JOIN	AMDM_DEVICE dev ON met.device_id = dev.id
INNER JOIN	AMDM_APPSINFORMATION app ON met.app_id = app.id
INNER JOIN	AMDM_APPSINFORMATIONDETAIL appDet ON app.id = appDet.appsinfodetail_appid AND appDet.appsinfodetail_lang = 'es'
INNER JOIN	AFW_USERS usr ON met.user_id = usr.user_id
LEFT JOIN	AMDM_APPSINFO_CATEGORY appCat ON app.id = appCat.application_id
LEFT JOIN	AMDM_APPCATEGORY cat ON appCat.appcategory_id = cat.id


WHERE 
	dev.status_id = 0
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DEVBYAPPMETRICS]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DEVBYAPPMETRICS]
	AS 

	SELECT
	DISTINCT
	dev.id							AS [devId],
	dev.name						AS [devName]

	FROM
	AMDM_DEVICE dev

	INNER JOIN AMDM_DEVICEFLAGS devFlags ON dev.id = devFlags.device_id AND devFlags.flag_id = 2

	WHERE dev.status_id = 0
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DEVICE_POLICY_APPS]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DEVICE_POLICY_APPS]
	AS 
SELECT
d.id														AS [DeviceId],
d.name														AS [DeviceName],
p.policy_id													AS [PolicyId], 
p.policy_policyname                                         AS [PolicyName],
STUFF
(
	(
		SELECT 
		CONCAT(',', ppa.poliparamapp_packageid)
		FROM 
		AMDM_POLICYITEM pitem
		INNER JOIN AMDM_POLICYITEMTYPEPARAMETER pitp ON pitem.politem_id = pitp.politemparam_policyitemid
		INNER JOIN AMDM_POLICYPARAMAPP ppa ON pitp.politemparam_parammainappid = ppa.poliparamapp_mainappid
		WHERE
		pitem.politem_policyid = p.policy_id AND pitp.politemparam_name = 'requiredApps'
		FOR XML PATH('')
	)
	, 1, 1, ''
)															AS [RequiredApps],
STUFF
(
	(
		SELECT 
		CONCAT(',', ppa.poliparamapp_packageid)
		FROM 
		AMDM_POLICYITEM pitem
		INNER JOIN AMDM_POLICYITEMTYPEPARAMETER pitp ON pitem.politem_id = pitp.politemparam_policyitemid
		INNER JOIN AMDM_POLICYPARAMAPP ppa ON pitp.politemparam_parammainappid = ppa.poliparamapp_mainappid
		WHERE
		pitem.politem_policyid = p.policy_id AND pitp.politemparam_name = 'blackList'
		FOR XML PATH('')
	)
	, 1, 1, ''
)															AS [BlackList]

FROM
AMDM_DEVICE d
LEFT JOIN AMDM_POLICY p ON d.policy_id = p.policy_id

WHERE d.status_id = 0
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DEVICEBYAPPLICATION]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DEVICEBYAPPLICATION]
AS 

SELECT 
	CAST(devSw.id AS BIGINT)				AS INDX,
	ad.name									AS DeviceName,
	ad.id									AS DeviceId,
	ad.status_id							AS DeviceStatus,
	ISNULL(ad.fulfilledpolicy, 1)			AS IsFulFilling,
	devSw.isupdated							AS IsUpdated,
	devSw.version							AS AppVersion,
	devSw.packagename						AS PackageName,
	ad.platform_id							AS PlatformId
	FROM 
	AMDM_DEVICE ad 
	LEFT JOIN AMDM_DEVICESOFTWARE devSw ON (devSw.device_id = ad.id)
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DEVICESBYIDPOLICY]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DEVICESBYIDPOLICY] 
AS
	WITH cte_policy_version AS (
		SELECT
			v.policy_parentpolicy,
			MAX(v.policy_version) AS [LatestVersion] 
		FROM AMDM_POLICYVERSION v
			JOIN AMDM_POLICY p ON p.policy_id = v.policy_parentpolicy
		GROUP BY policy_parentpolicy
	), cte_pending_requests AS (
		SELECT DISTINCT
			sc.sentcmd_deviceid,
			cr.cmdreq_policyid
		FROM dbo.AMDM_SENTCOMMAND sc
			INNER JOIN dbo.AMDM_COMMANDREQUEST cr ON sc.sentcmd_requestid = cr.cmdreq_id
		WHERE
			sc.sentcmd_statusid <> 2
			AND sc.sentcmd_expirydate > GETUTCDATE()
			AND cr.cmdreq_policyid IS NOT NULL
	)
	
	SELECT
		ROW_NUMBER() OVER(ORDER BY dev.id)								AS [Indx],
		dev.id															AS [DeviceId],
		dev.name														AS [DeviceName],
		dev.devicetype													AS [Type],
		CONCAT(dp.platf_name, ' ', osversion)							AS [OsVersion],
		u.[user_name]													AS [UserName],
		dev.enrollmentdate												AS [EnrollmentDate],
		dev.lastreported												AS [LastReported],
		dev.companyowned												AS [CorporateOwned],
		dev.lastappliedpolicy											AS [LastAppliedPolicy],
		ap.policy_policyname											AS [PolicyName],
		dev.policyversion												AS [PolicyVersion],
		CASE
			WHEN pr.cmdreq_policyid IS NOT NULL THEN 'pending'
			WHEN dev.policyversion < pv.[LatestVersion] THEN 'old'
			ELSE 'actual'
		END																AS [FilterState],
		dev.fulfilledpolicy												AS [Fulfillment],
		ISNULL(dev.policy_id, pr.cmdreq_policyid)						AS [PolicyId],
		dev.policy_id													AS [ActualPolicy],
		pr.cmdreq_policyid												AS [PolicyToChangePolicy]
	FROM AMDM_DEVICE dev
		LEFT JOIN dbo.AFW_USERS u ON dev.user_id = u.[user_id]
		LEFT JOIN cte_pending_requests pr ON pr.sentcmd_deviceid = dev.id
		LEFT JOIN dbo.AMDM_POLICY ap ON ap.policy_id = ISNULL(pr.cmdreq_policyid, dev.policy_id)
		LEFT JOIN dbo.AMDM_DEVICEPLATFORM dp ON dp.platf_id = ap.policy_platformid
		LEFT JOIN cte_policy_version pv ON pv.policy_parentpolicy = dev.policy_id
	WHERE
		dev.status_id = 0
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DEVSNOFULFILLMENTPOLICY]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DEVSNOFULFILLMENTPOLICY]
AS 
	SELECT
		d.id														AS [DeviceId],
		d.name														AS [DeviceName],
		p.platf_id													AS [PlatformId],
		p.platf_name												AS [PlatformName],
		d.osversion													AS [OSVersion],
		d.policy_id													AS [PolicyId],
		d.policyversion												AS [PolicyVersion],
		po.policy_policyname										AS [PolicyName],
		STUFF
		(
			(
				SELECT 
				CONCAT('@@@', prob.fulfilledprom_problemitemdesc)
				FROM 
				AMDM_POLICYFULFILLMENTPROBLEM prob 
				WHERE 
				prob.fulfilledprom_deviceid = d.id AND 
				prob.fulfilledprom_problemtype = 1
				FOR XML PATH('')
			)
			, 1, 3, ''
		)															AS [RequiredApps], 
		STUFF
		(
			(
				SELECT 
				CONCAT('@@@', prob.fulfilledprom_problemitemdesc)
				FROM 
				AMDM_POLICYFULFILLMENTPROBLEM prob 
				WHERE 
				prob.fulfilledprom_deviceid = d.id AND 
				prob.fulfilledprom_problemtype = 2
				FOR XML PATH('')
			)
			, 1, 3, ''
		)															AS [BlacklistApps],
		STUFF
		(
			(
				SELECT 
				CONCAT('@@@', prob.fulfilledprom_problemitemdesc)
				FROM 
				AMDM_POLICYFULFILLMENTPROBLEM prob 
				WHERE 
				prob.fulfilledprom_deviceid = d.id AND 
				prob.fulfilledprom_problemtype = 2
				FOR XML PATH('')
			)
			, 1, 3, ''
		)															AS [WhitelistApps]

	FROM
	AMDM_DEVICE d

	INNER JOIN	AMDM_DEVICEPLATFORM	p			ON d.platform_id = p.platf_id
	INNER JOIN	AMDM_POLICY po					ON d.policy_id = po.policy_id

	WHERE 
	d.status_id = 0
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_RULESET]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_RULESET]
AS SELECT 
	    AMDM_RULESET.ruleset_id                       AS RuleSetId,
	    AMDM_RULESET.ruleset_name					  AS name,
	    AMDM_RULESET.ruleset_creationdate			  AS creationdate,
	    AMDM_RULESET.ruleset_usercreatorid			  AS usercreatorid,
	    AMDM_RULESET.ruleset_lastuserid				  AS lastuserid,
	    AMDM_RULESET.ruleset_lastmodification		  AS lastmodification,
	    AMDM_RULESET.ruleset_haveGeofencing			  AS haveGeofencing,
		AMDM_RULESET.ruleset_haveWififencing		  AS haveWififencing,
		AMDM_RULESET.ruleset_haveUserlogged			  AS haveUserLogged,
	    AMDM_RULESET.ruleset_haveUnenroll			  AS haveUnenroll,
	    AMDM_RULESET.ruleset_haveRooted				  AS haveRooted,
	    AMDM_RULESET.ruleset_haveFullFillment		  AS haveFullFillment,
		AMDM_RULESET.ruleset_haveWorkHorary			  AS haveWorkHorary,
		AMDM_RULESET.ruleset_haveNewInventory		  AS haveNewInventory,
		AMDM_RULESET.ruleset_haveExpense			  AS haveExpense,
		AMDM_RULESET.ruleset_haveLoginFailed		  AS haveLoginFailed,
		AFW_USERS.[user_name]                         AS fullusername
FROM    AMDM_RULESET
JOIN    AFW_USERS           ON AFW_USERS.[user_id]  = AMDM_RULESET.ruleset_usercreatorid
GO
PRINT N'Creating View [dbo].[VIEW_ASM_DEVICE_SOFTWARE]...';


GO
CREATE VIEW [VIEW_ASM_DEVICE_SOFTWARE]
AS
SELECT
	ISNULL(sv.parent_id, ds.[software_id]) AS [software_id],
	ds.[device_id],
	CAST (MAX (CASE WHEN ds.[uninstall_string_id] IS NULL THEN 0 ELSE 1 END) AS bit) AS [uninstall_availiable]	
FROM [AAM_DEVICE_SOFTWARE] ds
JOIN [AAM_SOFTWARE_VERSION] sv ON sv.[id] = ds.[software_id]
JOIN AAM_DEVICE dev ON ds.device_id = dev.id
WHERE 
dev.is_active = 1 
GROUP BY
	ISNULL (sv.parent_id, ds.[software_id]),
	ds.[device_id]
GO
PRINT N'Creating View [dbo].[VIEW_ASM_SOFTWARE_RULE]...';


GO
CREATE VIEW [dbo].[VIEW_ASM_SOFTWARE_RULE]
	AS 
WITH [GROUPED_SOFTWARE] AS (
SELECT      
	  [software_rule_id],
	  COUNT([software_id]) AS [software_count]
  FROM [dbo].[ASM_SOFTWARE_GROUP]
  GROUP BY [software_rule_id]
)
SELECT 
	[grouping_rule].[id] AS [rule_id],
	[grouping_rule].[name] AS [rule_name],
	[grouping_rule].[manufacturer_name],
	[software_id],
	[version],
	ISNULL([software].[software_count], 0)		AS [software_count]	
  FROM [dbo].[ASM_SOFTWARE_RULE] AS [grouping_rule] 
  LEFT JOIN [GROUPED_SOFTWARE] AS [software] ON [software].[software_rule_id] = [grouping_rule].[id]
GO
PRINT N'Creating View [dbo].[VIEW_AVS_AUDIT_SUMMARY]...';


GO
CREATE VIEW [dbo].[VIEW_AVS_AUDIT_SUMMARY] AS
SELECT
   [audit].[action]                   AS [action],
   [audit].[creation_date]            AS [creation_date],
   [audit].[date_key]                 AS [date_key],
   [audit].[audit_device_id]          AS [device_id],
   [audit].[audit_group_support_id]   AS [group_support_id],
   [audit].[audit_user_id]		      AS [user_id],
   [audit].[module]                   AS [module],
   [audit].[time_key]                 AS [time_key],
   [audit_device].[model]             AS [device_model],
   [audit_device].[name]              AS [device_name],
   [audit_device].[operating_system]  AS [device_operating_system],
   [audit_device].[serial_number]     AS [device_serial_number],
   [audit_device].[type]              AS [device_type],
   [audit_group].[name]               AS [group_support_name],
   [audit_group].[name_parent]	      AS [group_support_parent_name],
   [audit_user].[user_email]          AS [user_email],
   [audit_user].[user_name]           AS [user_name],
   [audit_user].[user_nick_name]      AS [user_nick_name],
   [audit_user].[user_phone1]         AS [user_phone]
FROM [AVS_AUDIT] AS [audit]
JOIN [dbo].[AVS_AUDIT_DEVICE] AS [audit_device] ON [audit].[audit_device_id] = [audit_device].[id]
JOIN [dbo].[AVS_AUDIT_USERS] AS [audit_user] ON [audit].[audit_user_id] = [audit_user].[id]
LEFT JOIN [dbo].[AVS_AUDIT_GROUP_SUPPORT] AS [audit_group] ON [audit].[audit_group_support_id] = [audit_group].[id]
GO
PRINT N'Creating View [dbo].[VIEW_AVS_DEVICE_GROUP_SUPPORT]...';


GO
CREATE VIEW [dbo].[VIEW_AVS_DEVICE_GROUP_SUPPORT] AS
SELECT
     [devices].[id]                   AS [device_id],
     [devices].[hardware_hash]        AS [device_hardware_hash],
     [devices].[name]                 AS [device_name],
     [devices].[model]                AS [device_model],
     [devices].[operating_system]     AS [device_operating_system],
     [devices].[serial_number]        AS [device_serial_number],
     [devices].[status]               AS [device_status],
     [devices].[type]                 AS [device_type],
     [devices].[modification_date]    AS [device_modification_date],
     [gru_supp].[id]                  AS [group_support_id],
     [gru_supp].[name]                AS [group_support_name],
     [gru_supp].[session_support]     AS [session_support],
     [gru_supp].[description]         AS [group_support_description],
     [gru_supp_per].[user_id]         AS [user_id],
     [gru_supp_per].[group_user_id]   AS [user_group_id]
FROM [AVS_DEVICE] AS [devices]
JOIN [AVS_DEVICE_GROUP_SUPPORT] AS [dev_gru_supp] ON [devices].[id] = [dev_gru_supp].[device_id]
JOIN [AVS_GROUP_SUPPORT_PERMISSION] AS  [gru_supp_per] ON [dev_gru_supp].[group_support_id] = [gru_supp_per].[group_support_id]
JOIN [AVS_GROUP_SUPPORT] AS [gru_supp] ON [gru_supp_per].[group_support_id] = [gru_supp].[id]
GO
PRINT N'Creating View [dbo].[VIEW_AVS_GROUP_SUPPORT_USER]...';


GO
CREATE VIEW [dbo].[VIEW_AVS_GROUP_SUPPORT_USER] AS 
SELECT 
     [gru_supp_per].group_support_id   AS [group_support_id],
	 [users].[user_id]			       AS [user_id],
	 [users].[user_nick_name]          AS [user_name],
	 [users].[user_name]		       AS [name],
	 [users].[user_phone1]             AS [phone],
	 [users].[user_email]              AS [email],
	 [users].[user_active]             AS [active],
	 [users].[user_creation_date]      AS [creation_date],
	 [users].[update_date]             AS [update_date]
FROM [AVS_GROUP_SUPPORT_PERMISSION] AS [gru_supp_per]
JOIN [AFW_USERS] AS [users] ON [gru_supp_per].[user_id] = [users].[user_id]
GO
PRINT N'Creating View [dbo].[VIEW_AVS_GROUP_SUPPORT_USERGROUP]...';


GO
CREATE VIEW [dbo].[VIEW_AVS_GROUP_SUPPORT_USERGROUP] AS 
SELECT 
     [usergroups].[grou_id]              AS [usergroup_id],
     [usergroups].[grou_name]            AS [usergroup_name],
     [usergroups].[grou_is_active]       AS [usergroup_is_active],
     [usergroups].[grou_description]     AS [usergroup_description],
     [usergroups].[grou_parent]          AS [usergroup_parent],
     [gru_supp_per].[group_support_id]   AS [group_support_id]
FROM [AVS_GROUP_SUPPORT_PERMISSION] AS [gru_supp_per]
JOIN [AFW_GROUPS] AS [usergroups] ON [gru_supp_per].[group_user_id] = [usergroups].[grou_id]
GO
PRINT N'Creating View [dbo].[VIEW_AVS_SESSION_SUMMARY]...';


GO
CREATE VIEW [dbo].[VIEW_AVS_SESSION_SUMMARY] AS
SELECT 
     [sessions].id                 AS [session_id],
     [sessions].expiration_date    AS [expiration_date],
     [devices].[id]                AS [device_id],
     [devices].[name]              AS [device_name],
     [devices].[model]             AS [device_model],
     [devices].[operating_system]  AS [device_operating_system],
     [devices].[serial_number]     AS [device_serial_number],
     [devices].[status]            AS [device_status],
     [devices].[type]              AS [device_type],
     [users].[user_id]			   AS [user_id],
	 [users].[user_nick_name]      AS [user_nick_name],
	 [users].[user_name]		   AS [user_name],
	 [users].[user_phone1]         AS [user_phone],
	 [users].[user_email]          AS [user_email],
	 [users].[user_active]         AS [user_active]
FROM [AVS_SESSION] AS [sessions]
JOIN [AVS_DEVICE]  AS [devices] on [sessions].device_id = [devices].id
JOIN [AFW_USERS]   AS [users] on [sessions].user_id = [users].user_id
GO
PRINT N'Creating View [dbo].[VIEW_CHAT_AGENT_QUEUE]...';


GO
CREATE VIEW [dbo].[VIEW_CHAT_AGENT_QUEUE] 
AS 
	SELECT ACC.AgentId, 
		ACC.Id, 
		CP.CodeProject, 
		CPA.LevelAttention,
		MAX(ACS.Id) AS LastSession,
		SUM(CASE ACS.Active 
				WHEN 1 THEN 1 
				ELSE 0 
			END ) AS ActiveSession
	FROM AFW_CHAT_CONNECTION ACC
	INNER JOIN AFW_CHAT_PROJECT_AGENT CPA ON ACC.AgentId = CPA.PersonId 
	INNER JOIN AFW_CHAT_PROJECT CP ON CPA.ProjectId = CP.Id
	LEFT JOIN AFW_CHAT_SESSION ACS ON ACS.ConnectionIdAgent = ACC.Id
	WHERE ACC.AgentId IS NOT NULL 
		 AND ACC.Status = 1 
	GROUP BY 
		ACC.AgentId, 
		ACC.Id,
		ACC.Status, 
		CP.CodeProject, 
		CPA.LevelAttention
	ORDER BY 
		ActiveSession, 
		LastSession 
	OFFSET 0 ROWS;
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_AGENTPROFILE]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_AGENTPROFILE]
	AS 

SELECT 
	   devagentprofile_id				AS "agentprofile_id"
      ,devagentprofile_name				AS "agentprofile_name"
      ,devagentprofile_creationdate		AS "agentprofile_creation_date"
      ,u.user_name						AS "agentprofile_user_creator"	

FROM   
	   AMDM_DEVICEAGENTPROFILE ap
	   LEFT JOIN AFW_USERS u ON (ap.devagentprofile_usercreatorid = u.user_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_ALERT]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_ALERT]
	AS 

SELECT 
	   a.id											AS "alert_id"
      ,ac.name										AS "alert_category"			
      ,
	  CASE
		WHEN a.severity_id = 1 THEN 'Low'
		WHEN a.severity_id = 2 THEN 'Medium'
	    WHEN a.severity_id = 3 THEN 'High'
		WHEN a.severity_id = 4 THEN 'Critical'
		ELSE ''
	  END											AS "alert_severity"
      ,
	  CASE
		WHEN a.status_id = 1 THEN 'New'
		WHEN a.status_id = 2 THEN 'Reviewed'
		WHEN a.status_id = 3 THEN 'Closed'
		WHEN a.status_id = 4 THEN 'Omitted'
		ELSE ''
	  END											AS "alert_status"
      ,a.item_id									AS "alert_item_id"      
      ,a.title										AS "alert_title"
      ,a.creation_date								AS "alert_creation_date"
      ,a.description								AS "alert_description"
      ,a.detail										AS "alert_detail"

FROM  
       AFW_ALERT a
	   INNER JOIN AFW_ALERT_CATEGORY ac ON (a.category_id = ac.id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_APPLICATION]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_APPLICATION]
	AS 

SELECT 
       bundleid								AS "application_bundleid"
	  ,aid.appsinfodetail_name				AS "application_name"
      ,[version]							AS "application_version"
      ,companydev							AS "application_developer"            
      ,
	  CASE
		WHEN iscorporate = 1 THEN 'Yes'
		ELSE 'No'
	  END									AS "application_is_corporate"
      ,p.platf_name							AS "application_platform"
      ,ISNULL(devicecount,0)				AS "application_device_count"
      ,CASE
		WHEN issystem = 1 THEN 'Yes'
		ELSE 'No'
	  END									AS "application_is_system"
      ,CASE
		WHEN isvisible = 1 THEN 'Yes'
		ELSE 'No'
	  END									AS "application_is_visible"
      ,CASE
		WHEN isafw = 1 THEN 'Yes'
		ELSE 'No'
	  END									AS "application_is_android_for_work"
      ,CASE
		WHEN isprivate = 1 THEN 'Yes'
		ELSE 'No'
	  END									AS "application_is_android_for_work_private"

FROM  
	   AMDM_APPSINFORMATION  ai
	   LEFT JOIN AMDM_DEVICEPLATFORM p ON (ai.platform_id = p.platf_id)
	   LEFT JOIN 	   
	   (SELECT 
			appsinfodetail_appid,
			appsinfodetail_name,
			MIN(appsinfodetail_id) AS appsinfodetail_id  
			from AMDM_APPSINFORMATIONDETAIL
			group by appsinfodetail_appid,appsinfodetail_name
       ) aid ON ai.id = aid.appsinfodetail_appid
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_COMMAND]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_COMMAND]
	AS 

SELECT
	   sentcmd_id						AS "command_id"
      ,cs.cmdstat_name					AS "command_status"
      ,sentcmd_deviceid					AS "device_id"
      ,sentcmd_expirydate				AS "command_expiry_date"            
      ,ctp.cmdprot_name					AS "command_target_protocol"			
      ,sentcmd_sendDate					AS "command_send_date"
      ,sentcmd_fetchDate				AS "command_fetch_date"
      ,sentcmd_answerDate				AS "command_answer_date"
	  ,ct.cmdtype_name					AS "command_type"	  
	  ,cat.cmdactype_name				AS "command_action_type"
	  ,p.policy_policyname				AS "command_policy"
	  ,p.policy_version					AS "command_policy_version"
	  ,rs.ruleset_name					AS "command_ruleset"
	  ,ep.plan_name						AS "command_expense_plan"
FROM  
	   AMDM_SENTCOMMAND sc
	   INNER JOIN AMDM_COMMANDSTATUS cs ON (sc.sentcmd_statusid = cs.cmdstat_id)
	   INNER JOIN AMDM_COMMANDTARGETPROT ctp ON (sc.sentcmd_targetprotocolid = ctp.cmdprot_id)
	   INNER JOIN AMDM_COMMANDREQUEST cr ON (sc.sentcmd_requestid = cr.cmdreq_id)
	   INNER JOIN AMDM_COMMANDTYPE ct ON (cr.cmdreq_commandtypeid = ct.cmdtype_id)
	   LEFT JOIN AMDM_COMMANDREQUESTACTION cra ON (cra.reqaction_requestid = cr.cmdreq_id)
	   LEFT JOIN AMDM_COMMANDACTIONTYPE cat ON (cat.cmdactype_id = cra.reqaction_actiontypeid)
	   LEFT JOIN AMDM_POLICY p ON (cr.cmdreq_policyid = p.policy_id)
	   LEFT JOIN AMDM_RULESET rs ON (cr.cmdreq_ruleid = rs.ruleset_id)
	   LEFT JOIN AMDM_EXPENSEPLAN ep ON (cr.cmdreq_expenseid = ep.plan_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_DEVICE_GROUP]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_DEVICE_GROUP]
	AS 

SELECT 	   
      group_id			AS "group_id"
      ,dev_id			AS "device_id"

FROM AMDM_GROUPDEVICE
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_DEVICES]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_DEVICES]
	AS 

SELECT  
	   id														AS "device_id"
      ,name														AS "device_name"
      ,ds.devstat_name											AS "device_enrollment_status"
      ,user_id													AS "device_user_id_owner"
      ,
	  CASE
		WHEN companyowned = 1 THEN 'Company'
		ELSE 'Personal'
	  END														AS "device_owner_type"
      ,dp.platf_name											AS "device_platform"
      ,osversion												AS "device_operative_system_version"                  
      ,devicehardware_id										AS "device_hardware_data_id"
      ,devicenetwork_id											AS "device_network_data_id" 
      ,enrollmentdate											AS "device_enrollment_date"
      ,imei														AS "device_imei"            
      ,devicetype												AS "device_type"
	  ,lastreported												AS "device_last_report_date"
      ,policy_id												AS "device_policy_id"            
	  ,policyversion											AS "device_policy_version"            
	  ,lastappliedpolicy										AS "device_lastapplied_policy_date"            
	  ,
	  CASE
		WHEN fulfilledpolicy = 1 THEN 'Yes'						
		ELSE 'No'	
	  END														AS "device_fulfilled_policy" 
      ,ruleset_id												AS "device_ruleset_id"      
      ,rulesetversion											AS "device_ruleset_version"
	  ,lastappliedruleset										AS "device_lastapplied_ruleset_date"
      ,agentversion												AS "device_agent_version"
	  ,
	  CASE
		WHEN issecuritybroken = 1 THEN 'Yes'							
		ELSE 'No'
	  END														AS "device_is_security_broken"                  
      ,expenseplan_id											AS "device_expenseplan_id"
      ,lastappliedexpense										AS "device_last_applied_expenseplan_date"            
      ,
	  CASE
		WHEN tracking = 3 THEN 'High'
	    WHEN tracking = 2 THEN 'Medium'
		WHEN tracking = 1 THEN 'Low'	
		ELSE 'None'
	  END														AS "device_tracking_level"                        
	  ,
	  CASE 
		WHEN androidforworktokenset = 1 THEN 'Yes'
		ELSE 'No'
	  END														AS "device_is_afw"				
      ,
	  CASE
		WHEN androidforworktokenset = 1 then afwmode.afwmode_name							
		ELSE 'None'
	  END														AS "device_afw_mode"
      ,
	  CASE
		WHEN lostmode = 1 THEN 'Yes'
		ELSE 'No'
	  END														AS "device_in_lostmode"      
      ,agentprofile_id											AS "device_agentprofile_id"      
  
  FROM
	  AMDM_DEVICE d
	  INNER JOIN AMDM_DEVICESTATUS ds ON (d.status_id = ds.devstat_id)
	  INNER JOIN AMDM_DEVICEPLATFORM dp ON (d.platform_id = dp.platf_id)
	  LEFT JOIN AMDM_DEVICEAFWMODE afwmode ON (d.androidforworkmode_id = afwmode.afwmode_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_EVENT]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_EVENT]
	AS 

SELECT 
	   e.devevent_id 							AS "event_id"
      ,e.devevent_deviceid						AS "device_id"
	  ,et.deventtype_name						AS "event_type"      
      ,e.devevent_message						AS "event_message"
	  ,e.devevent_date							AS "event_date"	         
      ,nt.devnottype_name						AS "event_notification_type"
      ,e.devevent_userid						AS "user_id"

FROM 
AMDM_DEVICEEVENT e
INNER JOIN AMDM_DEVICEEVENTTYPE et ON (e.devevent_evtypeid = et.deventtype_id)
INNER JOIN  AMDM_NOTIFICATIONTYPE nt ON (e.devevent_notificationtypeid = nt.devnottype_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_EXPENSE]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_EXPENSE]
	AS

SELECT 
	   devexp_id										AS "expense_id"
      ,devexp_deviceid									AS "device_id"
      ,devexp_planid									AS "plan_id"
      ,devexp_daily_datausage							AS "expense_data"
      ,devexp_daily_voiceusage							AS "expense_voice"
	  ,devexp_daily_costvoice							AS "expense_voice_cost"
      ,
	  CASE
	  WHEN devexp_daily_isroaming = 1 THEN 'Yes'			
	  ELSE 'No'
	  END												AS "expense_is_romaing"	  
      ,devexp_lastupdate								AS "expense_date"
      ,devexp_numbercalled								AS "expense_number_called"            
FROM 
	   AMDM_DEVICEEXPENSE
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_EXPENSEPLAN]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_EXPENSEPLAN]
	AS 

SELECT 
       p.plan_id								AS "expenseplan_id"
      ,p.plan_name								AS "expenseplan_name"
      ,p.plan_description						AS "expenseplan_description"
      ,p.plan_voicesize							AS "expenseplan_voice_size"
      ,p.plan_measurevoicesize					AS "expenseplan_voice_unit_measure"
      ,p.plan_costunitvoice						AS "expenseplan_voice_unit_cost"
      ,p.plan_datasize							AS "expenseplan_data_size"
      ,p.plan_measuredatasize					AS "expenseplan_data_unit_measure"
      ,p.plan_costunitdata						AS "expenseplan_data_unit_cost"
	  ,p.plan_roamingvoicesize					AS "expenseplan_roaming_voice_size"
      ,p.plan_roamingcostunitvoice				AS "expenseplan_roaming_voice_unit_cost"
      ,p.plan_roamingdatasize					AS "expenseplan_roaming_data_size"
      ,p.plan_roamingcostunitdata				AS "expenseplan_roaming_data_unit_cost"
      ,p.plan_billingcicledate					AS "expenseplan_billing_cicle_date"
      ,pc.carrier_name							AS "expenseplan_carrier"
      ,p.plan_exceptions						AS "expenseplan_exceptions"
      ,c.currency_name							AS "expenseplan_currency"							
      ,p.plan_correctionfactor					AS "expenseplan_correction_factor"
      ,p.plan_createddate						AS "expenseplan_created_date"
      ,u.user_name								AS "expenseplan_user_creator"
      ,
	  CASE
		WHEN p.plan_shared = 1 THEN 'Yes'
		ELSE 'No'
	  END										AS "expenseplan_is_shared"
      ,p.plan_modificationdate					AS "expenseplan_modification_date"

FROM 
		AMDM_EXPENSEPLAN p
		LEFT JOIN AMDM_EXPENSECARRIER pc ON (p.plan_expensecarrier_id = pc.carrier_id)
		LEFT JOIN AMDM_CURRENCY c ON (p.plan_currency = c.currency_id)
		LEFT JOIN AFW_USERS u ON (p.plan_userid = u.user_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_GROUP]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_GROUP]
	AS 

SELECT 
	   g.grou_id								AS "group_id"
      ,g.grou_name								AS "group_name"      
      ,
	  CASE
		WHEN g.grou_is_active = 1 THEN 'Yes'
		ELSE 'No'
	  END										AS "group_is_active"            
      ,gp.grou_name								AS "group_parent"      
      

FROM AFW_GROUPS g
     LEFT JOIN AFW_GROUPS gp ON (g.grou_parent = gp.grou_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_HARDWARE]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_HARDWARE]
	AS 

SELECT 
	   devh_id										AS "device_hardware_id"
      ,devh_buildversion							AS "device_build_version"
      ,devh_firmwareversion							AS "device_firmware_version"                                    
      ,devh_batterylevel							AS "device_battery_level"      
      ,devh_totalinternalstorage					AS "device_total_internal_storage"
      ,devh_availableinternalstorage				AS "device_available_internal_storage"
      ,devh_devicemanufacturer						AS "device_manufacturer"
	  ,devh_modelname								AS "device_model_name"             
      ,devh_serialnumber							AS "device_serial_number"
	  ,devh_phonenumber								AS "device_phone_number"      
      ,devh_processorarchitecture					AS "device_processor_architecture"
      ,devh_devicelanguage							AS "device_language"
      ,devh_devicelocaltime							AS "device_local_time"      
      ,devh_totalrammemory							AS "device_total_ram"
	  ,devh_availablerammemory						AS "device_available_ram"            
      ,devh_totalexternalstorage					AS "device_total_external_storage"
      ,devh_availableexternalstorage				AS "device_available_external_storage"
	  ,devh_cellulartechnology						AS "device_cellular_technology"      
      ,devh_sensors									AS "device_sensors"
      ,
	  CASE
		WHEN devh_locationavailable = 1 THEN 'Yes'				
		ELSE 'No'
	  END											AS "device_location_available"
  
  FROM dbo.AMDM_DEVICEHARDWARE
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_LOCATION]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_LOCATION]
	AS 

SELECT
	   id						AS "device_loc_id"
      ,device_id				AS "device_id"
      ,latitude					AS "device_loc_latitude"
      ,longitude				AS "device_loc_longitude"
      ,altitude					AS "device_loc_altitude"
      ,reportdate				AS "device_loc_date"
  
FROM dbo.AMDM_DEVICELOCATION
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_NETWORK]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_NETWORK]
	AS

SELECT 
	   devn_id											AS "device_network_id"							
      ,devn_BluetoothMac								AS "device_bluetooth_mac"
      ,devn_currentnetworkcarrier						AS "device_current_network_carrier"	      
      ,devn_wifimac										AS "device_wifi_mac"
      ,
	  CASE
		WHEN devn_isroaming = 1 THEN 'Yes'					
		ELSE 'No'
	  END												AS "device_in_roaming"
	  ,
	  CASE
		WHEN devh_dataroamingenabled = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "device_data_roaming_enabled"      
      ,devh_ssid										AS "device_current_ssid"             
      ,devn_ipwifi										AS "device_ip_wifi"
      ,devh_ssidlist									AS "device_ssid_list"
  
  FROM dbo.AMDM_DEVICENETWORK
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_POLICY]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_POLICY]
	AS 

SELECT 
	   p.policy_id					AS "policy_id"
      ,p.policy_policyname			AS "policy_name"
	  ,pv.policy_id					AS "policy_version_id"
	  ,pv.policy_version			AS "policy_version"
      ,uc.user_name					AS "policy_user_creator"				
      ,um.user_name					AS "policy_user_modifier"			
      ,ua.user_name					AS "policy_user_approver"			
	  ,pv.policy_createdate			AS "policy_created_date"
	  ,pv.policy_lastmodified		AS "policy_last_modification_date"
      ,pv.policy_lastapproved		AS "policy_last_approval_date"      
	  ,pf.platf_name				AS "policy_platform"			
      ,ps.polstatype_name			AS "policy_status"				            
      
  
  
FROM  AMDM_POLICY p
	  LEFT JOIN AMDM_POLICYVERSION pv ON (p.policy_id = pv.policy_parentpolicy)
	  LEFT JOIN AFW_USERS uc ON (pv.policy_createby = uc.user_id)
	  LEFT JOIN AFW_USERS um ON (pv.policy_modifiedby = um.user_id) 
	  LEFT JOIN AFW_USERS ua ON (pv.policy_ApprovedBy = ua.user_id)
	  INNER JOIN AMDM_DEVICEPLATFORM pf ON (p.policy_platformid = pf.platf_id)
	  INNER JOIN AMDM_POLICYSTATUSTYPE ps ON (p.policy_status = ps.polstatype_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_POLICY_APPLICATION]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_POLICY_APPLICATION]
	AS

SELECT 
       pa.poliparamapp_packageid											AS "policy_app_package"
	  ,pa.poliparamapp_appname												AS "policy_app_name"	  
	  ,pit.politemtype_name + ' - ' +  pip.politemparam_name				AS "policy_app_type_usage"      
      ,pip.politemparam_policyitemid										AS "policy_item_id"      

FROM  
	   AMDM_POLICYITEMTYPEPARAMETER pip
	   INNER JOIN AMDM_POLICYITEM pi ON (pip.politemparam_policyitemid = pi.politem_id AND pi.politem_policyversionid IS NOT NULL)
	   INNER JOIN AMDM_POLICYPARAMAPPMAIN pm ON (pip.politemparam_parammainappid = pm.poliparammainapp_id)
	   INNER JOIN AMDM_POLICYPARAMAPP pa ON (pm.poliparammainapp_id = pa.poliparamapp_mainappid)	 	
	   INNER JOIN AMDM_POLICYITEMTYPE pit ON (pi.politem_policyitemtype = pit.politemtype_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_POLICY_ITEM]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_POLICY_ITEM]
	AS 

SELECT
	   pi.politem_id					AS "policy_item_id"            
      ,pi.politem_policyversionid		AS "policy_version_id"
	  ,pit.politemtype_name				AS "policy_item_type"

FROM  AMDM_POLICYITEM pi
      INNER JOIN AMDM_POLICYITEMTYPE pit ON (pi.politem_policyitemtype = pit.politemtype_id AND pi.politem_policyversionid IS NOT NULL)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_RULESET]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_RULESET]
	AS 

SELECT
	   ruleset_id						AS "ruleset_id"
      ,ruleset_name						AS "ruleset_name"      
      ,u.user_name						AS "ruleset_user_creator"		
      ,ruleset_creationdate				AS "ruleset_creation_date"
	  ,um.user_name						AS "ruleset_user_last_update"
      ,ruleset_lastmodification			AS "ruleset_last_update_date"	
      ,
	  CASE 
		WHEN ruleset_haveGeofencing = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "ruleset_has_geofencing_rule"
      ,
	  CASE 
		WHEN ruleset_haveWififencing = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "ruleset_has_wififencing_rule"
      ,  
	  CASE 
		WHEN ruleset_haveUserlogged = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "ruleset_has_userlogged_rule"
      ,
	  CASE 
		WHEN ruleset_haveUnenroll = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "ruleset_has_unenroll_rule"	  
      ,
	  CASE 
		WHEN ruleset_haveRooted = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "ruleset_has_rooted_rule"	  	  
      ,
	  CASE 
		WHEN ruleset_haveFullFillment = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "ruleset_has_fulfillment_rule"	  	  
      ,
	  CASE 
		WHEN ruleset_haveWorkHorary = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "ruleset_has_timefencing_rule"	  	  
      ,
	  CASE 
		WHEN ruleset_haveNewInventory = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "ruleset_has_newinventory_rule"	  	  
      ,
	  CASE 
		WHEN ruleset_haveExpense = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "ruleset_has_expense_rule"	  	  
      ,
	  CASE 
		WHEN ruleset_haveLoginFailed = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "ruleset_has_loginfailed_rule"	  	  
      ,ruleset_version									AS "ruleset_version"
  
FROM 
  	   AMDM_RULESET rs
	   LEFT JOIN AFW_USERS u ON (rs.ruleset_usercreatorid = u.user_id)
	   LEFT JOIN AFW_USERS um ON (rs.ruleset_lastuserid = um.user_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_RULESET_ITEM]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_RULESET_ITEM]
	AS 

SELECT 
	   r.rset_id					AS "rulesetitem_id"
      ,r.rset_rulesetid				AS "ruleset_id"	      
      ,rt.rtype_name				AS "rulesetitem_type"
FROM 
	   AMDM_RULESET_RULE r
	   INNER JOIN AMDM_RULE_TYPE rt  ON (r.rset_rule_typeid = rt.rtype_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_RULESET_ITEM_ACT]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_RULESET_ITEM_ACT]
	AS 

SELECT 
	   ra.ruac_id					AS "rulesetaction_id"
      ,rr.rset_id					AS "rulesetitem_id"
      ,rat.acty_name				AS "rulesetaction_type"			
      ,ruac_parameters				AS "rulesetaction_jsondescriptor"

FROM   
	AFW_RULE_ACTION ra
	INNER JOIN AFW_RULE r ON (ra.ruac_rule_id = r.rule_id)
	INNER JOIN AMDM_RULESET_RULE rr ON (r.rule_id = rr.rset_afwruleid)
	INNER JOIN AFW_RULE_ACTION_TYPE rat ON (ra.ruac_action_type_id = rat.acty_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_RULESET_ITEM_ZONE]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_RULESET_ITEM_ZONE]
	AS 

SELECT 
	   r.rset_id													AS "rulesetitem_id"            	  
	  ,CAST(
	         SUBSTRING(afwr.rule_condition,
				 PATINDEX('%ZoneId ==%',afwr.rule_condition)+9,
				 PATINDEX('%) &&%',afwr.rule_condition) - 
				 (PATINDEX('%ZoneId ==%',afwr.rule_condition)+9))
	         AS int)												AS zone_id
	  
				 
	   
FROM 
	   AMDM_RULESET_RULE r
	   INNER JOIN AMDM_RULE_TYPE rt  ON (r.rset_rule_typeid = rt.rtype_id AND r.rset_rule_typeid = 1)
	   INNER JOIN AFW_RULE afwr ON (r.rset_afwruleid = afwr.rule_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_SOFTWARE]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_SOFTWARE]
	AS 

SELECT 
	   id								AS "device_sw_id"				
      ,device_id						AS "device_id"
	  ,packagename						AS "device_sw_package_name"    		
	  ,targetsdk						AS "device_sw_target_sdk"
      ,appname							AS "device_sw_app_name"		      
      ,[version]						AS "device_sw_app_version"      
      ,origin							AS "device_sw_app_origin"
      ,
	  CASE
		WHEN issystem = 1 THEN 'Yes'
		ELSE 'No' 						
	  END									AS "device_software_is_system"
  
  FROM AMDM_DEVICESOFTWARE
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_USER]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_USER]
	AS 

SELECT
	   u.user_id 										AS "user_id"
      ,u.user_nick_name									AS "user_login"
      ,u.user_name										AS "user_name"
      ,u.user_email										AS "user_email"
      ,u.user_creation_date								AS "user_creation_date"
      ,u.user_last_login_date							AS "user_last_login_date"
	  ,ISNULL(ua.usau_num_fail_password_attempt,0)		AS "user_actual_fail_login_attempts"
	  ,
	  CASE 
		WHEN ua.usau_is_locked_out = 1 THEN 'Yes'
		ELSE 'No'
	  END												AS "user_is_locked"
	  ,ua.usau_last_locked_out_date						AS "user_last_locked_date"
	  

FROM  
	   AFW_USERS u
	   INNER JOIN AFW_USERS_AUTHENTICATION ua ON (u.user_id = ua.usau_id)
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_USER_GROUP]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_USER_GROUP]
	AS 

SELECT 
       grou_id			AS "group_id"
      ,user_id			AS "user_id"

FROM 
	   AFW_GROUP_USER
GO
PRINT N'Creating View [dbo].[VIEW_CLIENT_ZONE]...';


GO
CREATE VIEW [dbo].[VIEW_CLIENT_ZONE]
	AS 

SELECT 
	   zone_id				
      ,zone_name
      ,zone_creationdate
      ,zone_modifieddate
      ,zone_description      
FROM 
	   AMDM_ZONE
GO
PRINT N'Creating View [dbo].[ASDK_ITEM_DW]...';


GO
CREATE VIEW [dbo].[ASDK_ITEM_DW] AS
SELECT id
      ,id_by_project
      ,rev
      ,subject
      ,[type_id]
      ,state_id
      ,project_id
      ,reason_id
      ,category_id
      ,service_id
      ,impact_id
      ,urgency_id
      ,priority_id
      ,registry_type_id
      ,group_id
      ,responsible_id
      ,customer_id
      ,author_id
      ,company_id
      ,ci_id
      ,modifier_id
      ,receptor_id
      ,integration_id
      ,opened_date
      ,closed_date
      ,modified_date
      ,created_date
      ,calendar_sla_id
      ,calendar_uc_id
      ,calendar_ola_id
      ,model_id
      ,sla_id
      ,uc_id
      ,ola_id
      ,provider_id
      ,unit_id
      ,survey_token
      ,previous_status_id
      ,price
      ,cost
      ,effort
      ,cost_model_id
      ,income_center_id
      ,cost_center_id
      ,interface_id
      ,available_cost
      ,available_effort
      ,available_price
      ,available_count
      ,author_email
      ,state_name
      ,project_name
      ,reason_name
      ,category_name
      ,category_hierarchy
      ,service_name
      ,impact_name
      ,urgency_name
      ,priority_name
      ,registry_type_name
      ,group_name
      ,responsible_name
      ,customer_name
      ,author_name
      ,company_name
      ,ci_name
      ,ci_serial
      ,ci_asset_tag
      ,modifier_name
      ,receptor_name
      ,model_name
      ,sla_name
      ,uc_name
      ,ola_name
      ,provider_name
      ,unit_name
      ,type_name
      ,calendar_sla_name
      ,calendar_uc_name
      ,calendar_ola_name
      ,status_color
      ,estimated_date
      ,real_date
      ,estimated_time
      ,current_progress
	  ,[current_time]
      ,state_final
      ,location_id
      ,contract_id
      ,state_initial
      ,applicant_id
      ,applicant_name 
FROM V_ASDK_ITEM_DW
GO
PRINT N'Creating View [dbo].[V_AAM_DEVICE]...';


GO
CREATE VIEW [dbo].[V_AAM_DEVICE]
    AS
    SELECT
	    dev.[id]												AS [id],
        dev.[name]												AS [name],
        dev.[guid]												AS [guid],
        dev.[hardware_hash]										AS [hardware_hash],
        dev.[token]												AS [token],
        dev.[type]												AS [type],
        devtype.[name]											AS [type_name],
        dev.[description]										AS [description],
        COALESCE(dev.domain, dev.workgroup)			            AS [domain],
        dev.[created_date]										AS [creation_date],
        dev.[username]											AS [user_name],
        ds.serial												AS [serial],
        ds.[manufacturer_id]									AS [manufacturer_id],
        ds.[manufacturer]										AS [manufacturer],
        ISNULL(devcon.[agent_version], 'NA')					AS [agent_version],
        devinv.[last_update]									AS [last_inventory], 
        ISNULL(devDisk.[diskusage],0)						    AS [disk_usage],
        devcon.[name]											AS [agent_profile],                             
        comnod.[last_update]									AS [last_communication_update],
        comnod.[address]										AS [ip_registred],
        DATEDIFF(DAY, devinv.[last_update], GETUTCDATE())		AS [days_since_last_inventory],
        DATEDIFF(MINUTE, comnod.[last_update], GETUTCDATE())	AS [min_since_last_communication],
        ISNULL(devfea.[virtualization],0)						AS [virtualization],
        ds.[system_product]										AS [model],
        ds.[baseboard_serial]									AS [motherboard_serial],
        devRes.[user_id]										AS [responsible_user_id],
        devRes.[user_name]										AS [responsible_user_name],
        devRes.[user_email]										AS [responsible_user_email],
        ISNULL(pro.vpro,0)										AS [vpro],
	    CAST (CASE 
            WHEN ema.id IS NULL 
            THEN 0 
            ELSE 1 
        END AS BIT) 				                            AS [ema],
        devsof.version_id										AS [operating_system_version_id],
        devsof.name COLLATE DATABASE_DEFAULT					AS [operating_system],
        devdis.address											AS [ip_address],
		CASE 
			WHEN EXISTS (
				SELECT TOP 1 conflict.id
				FROM dbo.AAM_DEVICE_CONFLICT AS conflict
				JOIN dbo.AAM_IDENTITY_CONFLICT_DET AS identi
				ON conflict.id = identi.device_conflict_id
				WHERE conflict.device_id = dev.id
				AND conflict.status_id = 1
			) 
			THEN 1
			ELSE 2 
		END														AS [conflict_status],
	    CAST (CASE 
            WHEN devper.id IS NULL 
            THEN 0 
            ELSE 1 
        END AS BIT)			                                    AS [is_persistence],
        csubs.[platform]										AS [platform_iaas],
		devDisk.total_size
    FROM dbo.AAM_DEVICE                                 AS dev
    INNER JOIN dbo.AAM_DEVICE_TYPE                      AS devtype                      ON devtype.[id] = dev.[type]
    LEFT JOIN V_AAM_DEVICE_SOFTWARE                     AS devsof WITH(NOEXPAND)        ON devsof.[device_id] = dev.id
    LEFT JOIN dbo.ADM_DEVICE_INVENTORY                  AS devinv                       ON devinv.device_id = dev.id 
	    AND devinv.[app_code] = 1
	    AND devinv.[type] = 0
    LEFT JOIN dbo.V_AAM_DEVICE_SETUP                    AS ds                           ON ds.device_id = dev.id
    LEFT JOIN dbo.MV_AAM_DEVICE_AGENT                   AS devcon                       ON devcon.device_id = dev.id
    LEFT JOIN dbo.AAM_DEVICE_FEATURE                    AS devfea                       ON devfea.[device_id] = dev.id
    LEFT JOIN (
	    SELECT
		    dd.device_id,
		    SUM(ISNULL(ld.free,0)) availiable_size,
		    SUM(ISNULL(ld.size,0)) total_size,
			CAST(ISNULL((1 - SUM(ld.free) / NULLIF(SUM(ld.size * 1.0), 0)) * 100, 0) AS FLOAT) AS diskusage
	    FROM AAM_DEVICE_DISK dd
	    JOIN AAM_LOGICAL_DISK ld ON ld.device_diskid = dd.id
	    WHERE [type] = 'FIXED'
	    GROUP BY dd.device_id
    ) devDisk ON devDisk.device_id = dev.id
    LEFT JOIN (
	    SELECT
		    device_id,
		    MIN(ISNULL(available_physical, 0)) availablemem,
		    MIN(ISNULL(physical, 0)) totalmem
	    FROM
		    AAM_DEVICE_MEMORY
	    GROUP BY
		    device_id
    ) devMemory ON devMemory.device_id = dev.id
    LEFT JOIN dbo.ADM_COMMUNICATION_NODE        AS comnod                       ON comnod.[device_id] = dev.[id] 
        AND comnod.node_type = 3
    LEFT JOIN dbo.MV_AAM_DEVICE_PROCESSOR		AS pro WITH(NOEXPAND)           ON dev.[id] = pro.[device_id]
    LEFT JOIN dbo.AAM_EMA_DEVICE                AS ema                          ON dev.[id] = ema.[device_id]
    LEFT JOIN dbo.AAM_DEVICE_PERSISTENCE        AS devper                       ON dev.[id] = devper.[device_id]
    LEFT JOIN dbo.V_AAM_DEVICE_DISCOVERY        AS devdis                       ON dev.[id] = devdis.[device_id]
    LEFT JOIN dbo.MV_AAM_DEVICE_USERS           AS devRes WITH(NOEXPAND)        ON devRes.[device_id] = dev.id
    LEFT JOIN dbo.[AAM_CLOUD_SYNCHRONIZATION]   AS csync                        ON csync.[vm_id] = ds.[system_id] 
    LEFT JOIN dbo.[AAM_CLOUD_SUBSCRIPTION]      AS csubs                        ON csubs.[id]    = csync.[subscription_id]
    WHERE
	    dev.is_active = 1
GO
PRINT N'Creating View [dbo].[V_AAM_DEVICE_PERMISSIONS]...';


GO

CREATE VIEW [dbo].[V_AAM_DEVICE_PERMISSIONS]
AS
WITH cte_concept AS (
    SELECT 32122 AS group_device
)
SELECT 
    GD.device_id            AS [device_id], 
    p.id                    AS [permission_id],
    p.name                  AS [permission_name],
    GD.group_id             AS [group_id], 
    p.user_id               AS [user_id],
    p.application_id        AS [application_id]
FROM VIEW_AFW_PERMISSION_OBJECT P
CROSS JOIN cte_concept
INNER JOIN AAM_GROUP_DEVICE GD ON P.object_id = GD.group_id
WHERE P.object_type_id = cte_concept.group_device
GO
PRINT N'Creating View [dbo].[V_CLIENT_DEVICES]...';


GO
CREATE VIEW V_CLIENT_DEVICES
AS
	SELECT

		dev.[id]										AS [device_id],
		dev.[name]										AS [device_name],
		CASE
		dev.[type] 
		WHEN -1 THEN 'Unknown'
		WHEN 0 THEN 'Desktop'
		WHEN 1 THEN 'Laptop'
		WHEN 2 THEN 'Server'
		WHEN 3 THEN 'Printer'
		WHEN 4 THEN 'Switch'
		WHEN 5 THEN 'Router'
	END												AS [device_type],
		dev.[description]								AS [description],
		dev.[domain]									AS [domain],
		dev.[creationdate]								AS [creation_date],
		dev.[username]									AS [device_user_name],
		dev.[responsible_user_name],
		dev.[responsible_user_email],
		CASE
		dev.[platform] 
		WHEN 0 THEN 'Unknow'
		WHEN 1 THEN 'Windows'
		WHEN 2 THEN 'Linux'
		WHEN 3 THEN 'Mac' 
	END												AS [platform],
		dev.[operatingSystem]							AS [operating_system],
		dev.[operatingSystemVersion]					AS [operating_system_version],
		CASE
		dev.[is_active]
		WHEN 0 THEN 'No'
		WHEN 1 THEN 'Si'
	END												AS [is_active],
		ds.[system_product]								AS [model],

		COALESCE(
		ds.[system_serial],
		ds.[chassis_serial],
		ds.[baseboard_serial])						AS [serial],
		CASE 
		WHEN sm.[name] <> 'Unknown'	THEN sm.[name] 
		WHEN cm.[name] <> 'Unknown'	THEN cm.[name] 
		ELSE bm.[name] 
	END												AS [manufacturer],
		ISNULL(dc.[agent_version], 'NA')				AS [agent_version],
		di.[last_update]								AS [last_inventory],
		ap.name											AS [agent_profile],
		cn_p.url										AS[conserver],
		cn.[last_update]								AS [last_communication_update],
		cn.[address]									AS [communication_address],
		DATEDIFF(DAY, di.[last_update], GETDATE())		AS [days_since_last_inventory],
		DATEDIFF(MINUTE, cn.[last_update], GETDATE())	AS [min_since_last_communication],
		CASE
		dev.[is_discovery]
		WHEN 0 THEN 'No'
		WHEN 1 THEN 'Si'
	END												AS [is_discovery]

	FROM VIEW_AAM_DEVICE dev
		LEFT JOIN ADM_DEVICE_INVENTORY		di ON di.device_id		= dev.id AND di.[app_code] = 1 AND di.[type] = 0
		LEFT JOIN AAM_DEVICE_SETUP			ds ON ds.device_id		= dev.id
		LEFT JOIN AAM_DEVICE_CONFIGURATION	dc ON dc.device_id		= dev.id
		LEFT JOIN AAM_MANUFACTURER			sm ON sm.[id]			= ds.[system_manufacturer_id]
		LEFT JOIN AAM_MANUFACTURER			cm ON cm.[id]			= ds.[chassis_manufacturer_id]
		LEFT JOIN AAM_MANUFACTURER			bm ON bm.[id]			= ds.[baseboard_manufacturer_id]
		LEFT JOIN ADM_AGENT_PROFILE			ap ON ap.[id]			= dc.[profile_id]
		LEFT JOIN ADM_COMMUNICATION_NODE	cn ON cn.[device_id]	= dev.[id]
		LEFT JOIN ADM_COMMUNICATION_NODE	cn_p ON cn_p.[id]		= cn.[parent_id]

			AND cn.[last_update] = (

	SELECT
				MAX (n.[last_update])

			FROM ADM_COMMUNICATION_NODE n
			WHERE n.[id] = cn.[id])
GO
PRINT N'Creating View [dbo].[V_CLIENT_PATCH_DEVICE]...';


GO
CREATE VIEW V_CLIENT_PATCH_DEVICE
AS
 SELECT DPLI.patch_id AS [patch_id],
        DPLI.language_id AS [language_id],
        SUM(CASE WHEN DPLI.is_installed = 1 THEN 1 ELSE 0 END ) AS [installed_dev_count],
        SUM(CASE WHEN DPLI.is_installed = 0 THEN 1 ELSE 0 END ) AS [not_installed_dev_count]
   FROM ( SELECT DISTINCT 
                 SPTC.patch_id AS [patch_id],
                 SSR.device_id AS [device_id],
                 SPTC.is_installed AS [is_installed],
                 RGN.language_id AS [language_id]
            FROM     VIEW_AAM_DEVICE VD
           INNER JOIN APM_SHAVLIK_SCAN_RESULT SSR ON VD.id = SSR.device_id
           INNER JOIN APM_SCANNED_PRODUCTS SPRD ON SSR.id = SPRD.scan_result_id
           INNER JOIN APM_SCANNED_PATCHES SPTC ON SPRD.id = SPTC.scaned_product_id
           INNER JOIN APM_REGION RGN ON SPTC.region_id = RGN.id
    ) AS DPLI
GROUP BY DPLI.patch_id, DPLI.language_id
GO
PRINT N'Creating View [dbo].[V_CLIENT_SOFTWARWE_USAGE]...';


GO
CREATE VIEW V_CLIENT_SOFTWARWE_USAGE
AS
	SELECT
		usage.device_id AS[view_device_id], usage.file_id AS[view_file_id], dt.value AS[date_use],
		usage.duration AS[duration_seconds], de.username AS[usage_user]

	FROM ASM_SOFTWARE_USAGE_DAY usage
		JOIN AFW_DIM_DATE dt ON dt.[id] = usage.[date_id]
		JOIN AAM_DEVICE de ON de.[id] = usage.[device_id]
		JOIN VIEW_AAM_FILE_VERSION fv ON fv.[id] = usage.[file_id]
		LEFT JOIN VIEW_AAM_SOFTWARE_VERSION sw ON sw.[id] = fv.[software_id]
GO
PRINT N'Creating View [dbo].[VIEW_AAM_DEVICE_DETAIL]...';


GO
--TODO: Verificar la inclusión de conflictos en esta vista
CREATE VIEW [dbo].[VIEW_AAM_DEVICE_DETAIL]	AS 
SELECT 
	DISTINCT dev.[id]									AS [id],
	dev.[name]											AS [name],
	dev.[guid]											AS [guid],
	dev.[hardware_hash]									AS [hardware_hash],
	dev.[token]											AS [token],
	dev.[type]											AS [type],
	dev.[description]									AS [description],
	dev.[domain]										AS [domain],
	dev.[creationdate]									AS [creation_date],
	dev.[username]										AS [user_name],
	dev.[responsible_user_id]                           AS [responsible_user_id],
	dev.[responsible_user_name]                         AS [responsible_user_name],
	dev.[responsible_user_email]                        AS [responsible_user_email],
	dev.[platform]										AS [platform],
	dev.[operatingSystem]								AS [operating_system],
	dev.[operatingSystemId]								AS [operating_system_id],
	dev.[operatingSystemProductId]						AS [operating_system_product_id],
	dev.[operatingSystemVersion]						AS [operating_system_version],
	dev.[is_active]										AS [is_active],
	dev.[modification_date]                             AS [modification_date],
	ds.[system_product]									AS [model],
	ds.[baseboard_serial]								AS [motherboard_serial],
	COALESCE(
		ds.[system_serial],
		ds.[chassis_serial],
		ds.[baseboard_serial])							AS [serial],
	CASE 
		WHEN sm.[name] <> 'Unknown'	THEN sm.[id] 
		WHEN cm.[name] <> 'Unknown'	THEN cm.[id]
		ELSE bm.[id] 
	END													AS [manufacturer_id],
	CASE 
		WHEN sm.[name] <> 'Unknown'	THEN sm.[name] 
		WHEN cm.[name] <> 'Unknown'	THEN cm.[name] 
		ELSE bm.[name] 
	END													AS [manufacturer],
	ISNULL(dc.[agent_version], 'NA')					AS [agent_version],
	di.[last_update]									AS [last_inventory], 
	ISNULL(v.[diskusage],0)								AS [disk_usage],
	ISNULL(v.[memoryusage],0)							AS [memory_usage],
	ap.[name]											AS [agent_profile],	
	cn.[parent_id]										AS [parent_id],									
	cn.[last_update]									AS [last_communication_update],
	cn.[address]										AS [communication_address],
	DATEDIFF(DAY, di.[last_update], GETUTCDATE())		AS [days_since_last_inventory],
	DATEDIFF(MINUTE, cn.[last_update], GETUTCDATE())	AS [min_since_last_communication],
	ISNULL(ft.[virtualization],0)						AS [virtualization],
	dev.[is_discovery]                                  AS [is_discovery],
	dev.[auto_setted_user]                              AS [auto_setted_user],
	csu.[platform]										AS [platform_iaas]
  FROM VIEW_AAM_DEVICE dev  
  LEFT JOIN ADM_DEVICE_INVENTORY		di	 ON di.device_id   = dev.id AND di.[app_code] = 1 AND di.[type] = 0 
  LEFT JOIN AAM_DEVICE_SETUP			ds   ON ds.device_id   = dev.id
  LEFT JOIN AAM_DEVICE_CONFIGURATION	dc	 ON dc.device_id   = dev.id	
  LEFT JOIN AAM_DEVICE_FEATURE			ft	 ON ft.[device_id] = dev.id
  LEFT JOIN VIEW_AAM_DISKMEMORY_USAGE	v	 ON v.id		   = dev.id
  LEFT JOIN AAM_MANUFACTURER			sm	 ON sm.[id]		   = ds.[system_manufacturer_id]
  LEFT JOIN AAM_MANUFACTURER			cm	 ON cm.[id]		   = ds.[chassis_manufacturer_id]
  LEFT JOIN AAM_MANUFACTURER			bm	 ON bm.[id]		   = ds.[baseboard_manufacturer_id]
  LEFT JOIN ADM_AGENT_PROFILE			ap	 ON ap.[id]		   = dc.[profile_id]	
  LEFT JOIN ADM_COMMUNICATION_NODE		cn	 ON cn.[device_id] = dev.[id]
    AND cn.node_type = 3
  LEFT JOIN AAM_CLOUD_SYNCHRONIZATION   cs	 ON cs.[vm_id]     = ds.[system_id] 
  LEFT JOIN AAM_CLOUD_SUBSCRIPTION      csu  ON csu.[id]	   = cs.[subscription_id]
GO
PRINT N'Creating Function [dbo].[FUN_AAM_DISK_TYPE]...';


GO
CREATE FUNCTION [dbo].[FUN_AAM_DISK_TYPE] (
	@i_media_type NVARCHAR(255)
) RETURNS INT AS
BEGIN

	DECLARE @v_return_value INT;

	SET @v_return_value =
		CASE @i_media_type
			WHEN 'cd-rom'		THEN 2
			WHEN 'dvd'			THEN 2
			WHEN 'fixed'		THEN 4
			WHEN 'Fixed hard disk media' THEN 4
			WHEN 'removable'	THEN 11
			WHEN 'unknown'		THEN 12
			ELSE 12
		END;

	RETURN @v_return_value;

END;
GO
PRINT N'Creating Function [dbo].[FUN_AAM_MANUFACTURER]...';


GO
CREATE FUNCTION [dbo].[FUN_AAM_MANUFACTURER]
(
	@manufacturerId1 int,
	@manufacturerId2 int
)
RETURNS INT AS
BEGIN

	DECLARE @v_return_value INT

	set @v_return_value = null

	SELECT	top 1 @v_return_value = [id] 
	FROM	[AAM_MANUFACTURER]
	WHERE	[Id] in (@manufacturerId1,@manufacturerId2)
	AND		[name] != 'Unknown'

	if(@v_return_value IS NULL)
	BEGIN
		SELECT TOP 1 
				@v_return_value = [id]
		FROM	[AAM_MANUFACTURER]
		WHERE	[name] = 'Unknown'
	END

	RETURN isnull(@v_return_value,0)
	
END
GO
PRINT N'Creating Function [dbo].[FUN_ADW_DATE_KEY]...';


GO
CREATE FUNCTION [dbo].[FUN_ADW_DATE_KEY]
(
   @i_start_date DATE
)
RETURNS INT
AS
BEGIN
 
	DECLARE
		@v_id INT,
		@v_year SMALLINT, 
		@v_month TINYINT,
		@v_month_day TINYINT
	 
		SET @v_id = 0 

		SET @v_year = CONVERT(SMALLINT, YEAR (@i_start_date)); 		 
		SET @v_month = CONVERT(TINYINT, MONTH (@i_start_date)); 
		SET @v_month_day = CONVERT(TINYINT, DATEPART (DAY, @i_start_date));		 
		SET @v_id = @v_year * 10000 + @v_month * 100 + @v_month_day; 

		RETURN @v_id
END
GO
PRINT N'Creating Function [dbo].[FUN_AFW_ADDITIONAL_FIELD_LOOKUP]...';


GO

CREATE FUNCTION FUN_AFW_ADDITIONAL_FIELD_LOOKUP
(
	@fieldId int
)
RETURNS VARCHAR(8000)
AS
BEGIN
RETURN
SUBSTRING
			(''
			--TODO:(		SELECT  [Id], [Value], [Order]
			--		FROM  AFW_ADDITIONAL_FIELD_LOOKUP as A
			--		WHERE FieldId=@fieldId 
			--		ORDER BY [Order]
			--		--FOR XML AUTO
			-- )
			 ,1,8000
			)
END
GO
PRINT N'Creating Function [dbo].[FUN_AMDM_GET_MS_IN_TIME_FORMAT]...';


GO
CREATE FUNCTION [dbo].[FUN_AMDM_GET_MS_IN_TIME_FORMAT]
(
	@i_miliseconds BIGINT
)
RETURNS VARCHAR (64)
AS
BEGIN

	DECLARE @hours INT;
	DECLARE @minutes INT;
	DECLARE @seconds INT;
	DECLARE @result VARCHAR(64) = ''

	SET @hours =   FLOOR(@i_miliseconds / (1000 * 60 * 60));
    SET @minutes = FLOOR(@i_miliseconds / (1000 * 60)) % 60;
	SET @seconds = FLOOR(@i_miliseconds / (1000)) % 60;

	IF @hours > 0
	BEGIN
		SET @result = CONCAT(@result, @hours, ' h ');
	END

	IF @minutes > 0
	BEGIN
		SET @result = CONCAT(@result, @minutes, ' m ');
	END

	IF @seconds > 0
	BEGIN
		SET @result = CONCAT(@result, @seconds, ' s ');
	END

	RETURN LTRIM(RTRIM(@result))
END
GO
PRINT N'Creating Function [dbo].[FUN_AMDM_GETSTATUS]...';


GO
CREATE FUNCTION [dbo].[FUN_AMDM_GETSTATUS]
(	
	@i_actualStatusid  INT,
    @i_pendingstatusid INT,
	@i_expirityDate    DATETIME	
)
RETURNS INT
AS
BEGIN

	DECLARE @v_statusid int

	SET @v_statusid = 2

	--Si el dispositivo esta en estado enrolado, pero tiene solicitudes pendientes y la fecha ya expiro
	IF @i_pendingstatusid = 0 AND @i_expirityDate > GETUTCDATE()  
	BEGIN
	      SET @v_statusid =1      --El dispositivo aun esta enrolado, pero si la fecha para el enrollment ya expiro el estado es realmente pendiente
	END
	ELSE
	BEGIN
	     --Respeta el estado del sistema
		 SET @v_statusid = @i_actualStatusid
	END

	RETURN @v_statusid

END
GO
PRINT N'Creating Function [dbo].[FUN_AMDM_GETVERSIONPARTVALUE]...';


GO
CREATE FUNCTION [dbo].[FUN_AMDM_GETVERSIONPARTVALUE]
(
	@version	NVARCHAR(32), 
	@part		INT
) 
RETURNS NVARCHAR(32)

BEGIN

	DECLARE
    @return		AS NVARCHAR(32) = NULL,
    @start		AS INT = 1,
    @end		AS INT = 0,
    @partsFound AS INT = 0,
    @terminate	AS INT = 0

  IF @version IS NOT NULL
  BEGIN
    SET @return = 0
    WHILE @partsFound < @part
    BEGIN
      SET @end = CHARINDEX('.', @version, @start)
      IF @end = 0
      BEGIN
        IF @part - @partsFound > 1
        BEGIN
            SET @terminate = 1
        END
        SET @partsFound = @part
        SET @end = LEN(@version) + 1;
      END
      ELSE
      BEGIN
        SET @partsFound = @partsFound + 1
      END
      
	  IF @partsFound = @part and @terminate = 0
      BEGIN
            SET @return = SUBSTRING(@version, @start, @end - @start)
      END
      ELSE
      BEGIN
            SET @start = @end + 1
      END
    END
  END
  RETURN @return
END
GO
PRINT N'Creating Function [dbo].[FUN_AMDM_GETVERSIONSPARTS]...';


GO
CREATE FUNCTION [dbo].[FUN_AMDM_GETVERSIONSPARTS]
( 
    @appVersion		NVARCHAR(32), 
    @devSwVersion	NVARCHAR(32) 
) 
RETURNS INT
BEGIN

    DECLARE
		@v_len1 SMALLINT,
		@v_len2 SMALLINT;

	SET @v_len1 = ISNULL(LEN(@appVersion) - LEN(REPLACE(@appVersion, '.', '')), 0);
	SET @v_len2 = ISNULL(LEN(@devSwVersion) - LEN(REPLACE(@devSwVersion, '.', '')), 0);

	RETURN IIF(@v_len1 > @v_len2, @v_len1, @v_len2) + 1;

END;
GO
PRINT N'Creating Function [dbo].[FUN_DATE_MAX]...';


GO
CREATE FUNCTION [dbo].[FUN_DATE_MAX] (
	@i_date1 DATETIME,
	@i_date2 DATETIME
) RETURNS DATETIME AS
BEGIN
	RETURN
		CASE WHEN @i_date1 > @i_date2
			THEN @i_date1
			ELSE @i_date2
		END;

END;
GO
PRINT N'Creating Function [dbo].[FUN_DATE_MIN]...';


GO
CREATE FUNCTION [dbo].[FUN_DATE_MIN] (
	@i_date1 DATETIME,
	@i_date2 DATETIME
) RETURNS DATETIME AS
BEGIN
	RETURN
		CASE WHEN @i_date1 < @i_date2
			THEN @i_date1
			ELSE ISNULL(@i_date2, @i_date1)
		END;

END;
GO
PRINT N'Creating Function [dbo].[FUN_GETMEASURE]...';


GO
CREATE FUNCTION dbo.FUN_GETMEASURE
(
	@number FLOAT,
	@type	NVARCHAR(50)
)
RETURNS NVARCHAR(255)
AS
BEGIN

	DECLARE @result		NVARCHAR (255)	
	DECLARE @logbase	FLOAT	
	DECLARE @index		INT
	DECLARE @magnitude	FLOAT
	DECLARE @unit		NVARCHAR(20)

	SET		@result = '---' 	

	IF @number IS NOT NULL
	BEGIN

		SELECT @logbase =
		CASE @type
			WHEN  'CAPACITY'	THEN 1024
			WHEN  'FRECUENCY'	THEN 1000
			WHEN  'ENERGY'		THEN 1000
			ELSE 0
		END 	

		IF @number > 0
		BEGIN
			SET  @index = FLOOR(LOG(@number)  / LOG(@logbase))
		END
		ELSE
		BEGIN
			SET  @index =-1
		END

		IF @index >= 0
		BEGIN
			SET  @magnitude = @number / POWER(@logbase, @index)
		END
		ELSE
		BEGIN
			SET  @magnitude = 0
		END

		SET @unit='---'

		IF @type = 'CAPACITY'
		BEGIN
				SELECT @unit = 
				CASE @index
					WHEN 0	THEN 'bytes'
					WHEN 1	THEN 'KB'   
					WHEN 2	THEN 'MB'   
					WHEN 3	THEN 'GB'   
					WHEN 4	THEN 'TB'   
					WHEN 5	THEN 'PB'   
					WHEN 6	THEN 'HB'   
					WHEN 7	THEN 'YB'  
				ELSE '---' 
			END
		END

		IF @type = 'FRECUENCY'
		BEGIN
			SELECT @unit = 
			CASE @index
					WHEN 0 THEN 'Hz'
					WHEN 1 THEN 'KHz'
					WHEN 2 THEN 'MHz'
					WHEN 3 THEN 'GHz'
					WHEN 4 THEN 'THz'
					WHEN 5 THEN 'PHz'
					WHEN 6 THEN 'HHz'   
					WHEN 7 THEN 'YHz'   
				ELSE '---' 
			END
		END

		IF @type = 'ENERGY'
		BEGIN
			SELECT @unit = 
			CASE @index
					WHEN 0 THEN 'Watts'
					WHEN 1 THEN 'KW'
					WHEN 2 THEN 'MW'
					WHEN 3 THEN 'GW'
					WHEN 4 THEN 'TW'
					WHEN 5 THEN 'PW'
					WHEN 6 THEN 'EW'
					WHEN 7 THEN 'ZW'
					WHEN 8 THEN 'YW'   
				ELSE '---' 
			END
		END
		
		if @index > =0
		BEGIN
			SET @result =	CONVERT(NVARCHAR(50),ROUND(@magnitude,2)) + ' ' + @unit
			SET @result =	LTRIM(RTRIM(@result ))
		END
		ELSE
		BEGIN
			SET @result = '---'
		END 
	END
	ELSE
	BEGIN
		SET @result = '---' 
	END		

	RETURN @result 
END
GO
PRINT N'Creating Function [dbo].[FUN_JSON_VALUE]...';


GO
CREATE FUNCTION [dbo].[FUN_JSON_VALUE]
(
	@data NVARCHAR(MAX),
	@key VARCHAR(100)
)
RETURNS VARCHAR(MAX)
AS
BEGIN
	DECLARE @keyIndex INT;
	DECLARE @valueIndex INT; 
	DECLARE @termIndex INT; 
	DECLARE @valueLength INT;
	DECLARE @returnValue VARCHAR(MAX);

	SET @keyIndex = CHARINDEX(@Key, @data);
	SET @valueIndex = @keyIndex + LEN(@Key) + 3; 
	SET @termIndex = CHARINDEX('"', @data, @valueIndex);

	SET @valueLength = @termIndex - @valueIndex;
	SET @returnValue = SUBSTRING(@data, @valueIndex, @valueLength);
	RETURN  @returnValue;
END
GO
PRINT N'Creating Function [dbo].[FUN_MIN_TO_HHMMSS]...';


GO
CREATE FUNCTION [dbo].[FUN_MIN_TO_HHMMSS]
(
    @i_minutes DECIMAL(18,6)  
)
RETURNS VARCHAR(20)
AS
BEGIN
    DECLARE @v_total_seconds BIGINT;
    DECLARE @v_hours INT;
    DECLARE @v_minutes INT;
    DECLARE @v_seconds INT;
    DECLARE @v_formatted VARCHAR(20);

    -- Convertir minutos decimales a segundos
    SET @v_total_seconds = ROUND(@i_minutes * 60,0);

    SET @v_hours   = @v_total_seconds / 3600;
    SET @v_minutes = (@v_total_seconds % 3600) / 60;
    SET @v_seconds = @v_total_seconds % 60;

    -- Formatear como hh:mm:ss
    SET @v_formatted = 
        CONCAT(@v_hours, ':', 
        RIGHT(CONCAT('0', @v_minutes), 2), ':',
        RIGHT(CONCAT('0', @v_seconds), 2));
    RETURN @v_formatted;
END
GO
PRINT N'Creating Function [dbo].[FUN_TIME_ELAPSED]...';


GO
CREATE FUNCTION [dbo].[FUN_TIME_ELAPSED]
(
	@i_time_elapsed FLOAT,
	@i_next_active_date DATETIME, 
	@i_next_inactive_date DATETIME, 
	@i_status_type INT, 
	@i_end_date DATETIME,
	@i_last_shot DATETIME
)
RETURNS FLOAT
AS
BEGIN
	DECLARE
	@v_time_elapsed FLOAT
	IF(@i_status_type = 1 AND @i_end_date IS NULL 
		AND (@i_last_shot > @i_next_active_date AND @i_last_shot < @i_next_inactive_date 
		OR GETUTCDATE() > @i_next_active_date AND @i_last_shot < @i_next_inactive_date  ))
	BEGIN
		SET @v_time_elapsed = ISNULL(@i_time_elapsed,0) 
			+  (DATEDIFF(SECOND, dbo.FUN_DATE_MAX(@i_last_shot, @i_next_active_date), dbo.FUN_DATE_MIN(GETUTCDATE(),@i_next_inactive_date)))/ 60.0
	END
	ELSE
	BEGIN 
		SET @v_time_elapsed = ISNULL(@i_time_elapsed,0)
	END

	RETURN @v_time_elapsed
END;
GO
PRINT N'Creating Function [dbo].[FUN_TIME_INACTIVE_ELAPSED]...';


GO
CREATE FUNCTION [dbo].[FUN_TIME_INACTIVE_ELAPSED]
(
	@i_temporal_paused FLOAT,
	@i_next_active_date DATETIME, 
	@i_next_inactive_date DATETIME, 
	@i_status_type INT, 
	@i_estimated_date DATETIME,
	@i_real_date DATETIME,
	@i_last_shot DATETIME
)
RETURNS FLOAT
AS
BEGIN
	DECLARE
	@v_time_elapsed FLOAT
	IF (@i_status_type = 0 AND 
		@i_estimated_date IS NOT NULL AND 
		@i_real_date IS NULL AND 
			(
				@i_last_shot > @i_next_active_date AND 
				@i_last_shot < @i_next_inactive_date OR
				GETUTCDATE() > @i_next_active_date AND 
				@i_last_shot < @i_next_inactive_date
			)
       )
	BEGIN
		SET @v_time_elapsed = ISNULL(@i_temporal_paused, 0)
				+ (DATEDIFF(SECOND, dbo.FUN_DATE_MAX(@i_last_shot, @i_next_active_date), dbo.FUN_DATE_MIN(GETUTCDATE(),@i_next_inactive_date)))/ 60.0
	END
	ELSE
	BEGIN 
		SET @v_time_elapsed = ISNULL(@i_temporal_paused, 0);
	END

	RETURN @v_time_elapsed
END;
GO
PRINT N'Creating Function [dbo].[VersionNthPart]...';


GO
/***************************************************************************
Permite comparar numeros de versiones

Sacado de: http://stackoverflow.com/questions/11364242/how-to-compare-software-versions-using-sql-server
***************************************************************************/


CREATE Function [dbo].[VersionNthPart](
    @version as nvarchar(max),
    @part as int
) returns int as
Begin

Declare
    @ret int,
    @start int,
    @end int,
    @partsFound int,
    @terminate bit

	SET @ret = null
	SET @start = 1
	SET @end = 0
	SET @partsFound = 0
	SET @terminate = 0

  if @version is not null
  Begin
    Set @ret = 0
    while @partsFound < @part
    Begin
      Set @end = charindex('.', @version, @start)
      If @end = 0 -- did not find the dot. Either it was last part or the part was missing.
      begin
        if @part - @partsFound > 1 -- also this isn't the last part so it must bail early.
        begin
            set @terminate = 1
        end
        Set @partsFound = @part
        SET @end = len(@version) + 1; -- get the full length so that it can grab the whole of the final part.
      end
      else
      begin
        SET @partsFound = @partsFound + 1
      end
      If @partsFound = @part and @terminate = 0
      begin
            Set @ret = Convert(int, substring(@version, @start, @end - @start))
      end
      Else
      begin
            Set @start = @end + 1
      end
    End
  End
  return @ret
End
GO
PRINT N'Creating Table [dbo].[ASMS_TIMES_DATA]...';


GO
CREATE TABLE [dbo].[ASMS_TIMES_DATA] (
    [item_id]              INT            NOT NULL,
    [time_id]              INT            NOT NULL,
    [item_type_id]         INT            NOT NULL,
    [estimated_time]       FLOAT (53)     NULL,
    [estimated_date]       DATETIME       NULL,
    [end_time]             FLOAT (53)     NULL,
    [end_date]             DATETIME       NULL,
    [start_date]           DATETIME       NULL,
    [sdb_last_shot]        DATETIME       NULL,
    [sdb_current_time]     FLOAT (53)     NULL,
    [sdb_current_progress] AS             (CASE WHEN [estimated_time] <= 0 THEN 100 ELSE ([dbo].[FUN_TIME_ELAPSED]([sdb_current_time], [next_active_date], [next_inactive_date], [status_type], [end_date], [sdb_last_shot]) * (100)) / [estimated_time] END),
    [status_type]          BIT            NOT NULL,
    [calendar_id]          INT            NULL,
    [complies]             BIT            NULL,
    [type_agree]           INT            NULL,
    [start_state_id]       INT            NULL,
    [end_state_id]         INT            NULL,
    [time_type_id]         INT            NOT NULL,
    [start_condition]      NVARCHAR (MAX) NULL,
    [end_condition]        NVARCHAR (MAX) NULL,
    [running_condition]    NVARCHAR (MAX) NULL,
    [next_active_date]     DATETIME       NULL,
    [next_inactive_date]   DATETIME       NULL,
    [sdb_time]             AS             [dbo].[FUN_TIME_ELAPSED]([sdb_current_time], [next_active_date], [next_inactive_date], [status_type], [end_date], [sdb_last_shot]),
    [recalculate_date]     BIT            NOT NULL,
    [sdb_total_paused]     FLOAT (53)     NULL,
    [sdb_temporal_paused]  FLOAT (53)     NULL,
    [sdb_current_paused]   AS             (CASE WHEN [status_type] = 1
                                                     OR [recalculate_date] = 0 THEN 0 ELSE [dbo].[FUN_TIME_INACTIVE_ELAPSED]([sdb_temporal_paused], [next_active_date], [next_inactive_date], [status_type], [estimated_date], [end_date], [sdb_last_shot]) END),
    CONSTRAINT [PK_ASMS_TIMES_DATA] PRIMARY KEY CLUSTERED ([item_id] ASC, [time_id] ASC, [item_type_id] ASC)
);


GO
PRINT N'Creating Index [dbo].[ASMS_TIMES_DATA].[IX01_ASMS_TIMES_DATA]...';


GO
CREATE NONCLUSTERED INDEX [IX01_ASMS_TIMES_DATA]
    ON [dbo].[ASMS_TIMES_DATA]([time_id] ASC, [item_type_id] ASC);


GO
PRINT N'Creating Index [dbo].[ASMS_TIMES_DATA].[IX02_ASMS_TIMES_DATA]...';


GO
CREATE NONCLUSTERED INDEX [IX02_ASMS_TIMES_DATA]
    ON [dbo].[ASMS_TIMES_DATA]([calendar_id] ASC, [end_date] ASC, [recalculate_date] ASC, [start_date] ASC)
    INCLUDE([status_type]);


GO
PRINT N'Creating View [adw].[V_ASDK_ATTENTION_TIMES]...';


GO
CREATE VIEW [adw].[V_ASDK_ATTENTION_TIMES] AS
	WITH cte_times_data AS (
		SELECT
			item_id,
			estimated_date,
			end_date,
			sdb_time,
			sdb_current_progress,
			time_id
		FROM ASMS_TIMES_DATA
		UNION ALL
		SELECT
			c.item_id,
			c.estimated_date,
			c.end_date,
			c.sdb_current_time,
			c.sdb_current_progress,
			c.time_id
		FROM ASMS_TIMES_DATA_CLOSED c
	)

	SELECT
		td.item_id,
		tm.model_id,
		tb.name time_name,
		td.estimated_date attention_date,
		td.end_date,
		td.sdb_time attention_time,
		td.sdb_current_progress
	FROM cte_times_data td
	JOIN ASMS_TIMES tm ON tm.id = td.time_id
	JOIN ASMS_TIMES_BUILTIN tb ON tb.id = tm.builtin_id
	WHERE tb.name = 'Attention';
GO
PRINT N'Creating View [adw].[V_ASDK_SOLUTION_TIMES]...';


GO
CREATE VIEW [adw].[V_ASDK_SOLUTION_TIMES] AS 
WITH cte_times_data AS (
	SELECT
		item_id,
		estimated_date,
		end_date,
		sdb_time,
		sdb_current_progress,
		time_id
	FROM
		ASMS_TIMES_DATA
	UNION
	ALL
	SELECT
		c.item_id,
		c.estimated_date,
		c.end_date,
		c.sdb_current_time,
		c.sdb_current_progress,
		c.time_id
	FROM
		ASMS_TIMES_DATA_CLOSED c
)
SELECT
	td.item_id,
	tm.model_id,
	tb.name time_name,
	td.estimated_date estimated_solution_date,
	td.end_date solution_date,
	td.sdb_time solution_time,
	td.sdb_current_progress
FROM
	cte_times_data td
	JOIN ASMS_TIMES tm ON tm.id = td.time_id
	JOIN ASMS_TIMES_BUILTIN tb ON tb.id = tm.builtin_id
WHERE
	tb.name = 'Solution';
GO
PRINT N'Creating View [adw].[V_FACT_ASDK_ITEM]...';


GO
CREATE VIEW adw.V_FACT_ASDK_ITEM AS
WITH 
---SELECT first modification case state behavior 'EN PROGRESO' ------------------------------ 
cte_times AS (
	SELECT
		ir.id,
		MIN(CASE WHEN sb.status_stage = 'InProgress' THEN ir.[current_time] END) attention_time,
		MIN(CASE WHEN sb.status_stage = 'InProgress' THEN ir.modified_date END) attention_date,
		SUM(CASE WHEN sb.status_stage = 'New' THEN ir.[time] END) wait_time,
		SUM(CASE WHEN sb.status_stage = 'OnHold' THEN ir.[time] END) specialist_wait_time
	FROM 
		adw.FACT_ASDK_ITEM_REVISION ir
		LEFT JOIN adw.V_ASDK_STATUS_BEHAVIOR sb ON sb.stat_id = ir.status_sk
	GROUP BY
		id
),
---first assignment specialist ------------------------------ 
cte_first_assignment_time AS (
    SELECT
        id,
        date first_assignment_date,
        [current_time] first_assignment_time
    FROM
        (
            SELECT
                ir.id,
                ir.[current_time],
                ir.modified_date date,
                ROW_NUMBER() OVER (
                    PARTITION BY ir.id
                    ORDER BY
                        ir.modified_date ASC
                ) AS rn
            FROM
                [ADW].[FACT_ASDK_ITEM_REVISION] ir
            WHERE
                ir.specialist_user_sk IS NOT NULL
        ) t
    WHERE
        rn = 1
),
---first_reply_time ------------------------------ 
cte_first_reply_time AS (
    SELECT
        id,
        date first_reply_date,
        [current_time] first_reply_time
    FROM
        (
            SELECT
                ir.id,
                ir.[current_time],
                ir.modified_date date,
                ROW_NUMBER() OVER (
                    PARTITION BY ir.id
                    ORDER BY
                        ir.modified_date ASC
                ) AS rn
            FROM
                [ADW].[FACT_ASDK_ITEM_REVISION] ir
            WHERE
                ir.[note_count]-ir.[private_note_count] > 0 
        ) t
    WHERE
        rn = 1
)
,
---f_assign_to_resolution_time------------------------------ 
cte_f_assign_to_resolution_time AS (
    SELECT 
		   id, 
		   f_assign_to_resolution_time
	 FROM  (
            SELECT
                ir.id,
                SUM(ir.[time]) f_assign_to_resolution_time 
            FROM
                [ADW].[FACT_ASDK_ITEM_REVISION] ir
				 LEFT JOIN ADW.V_ASDK_SOLUTION_TIMES st ON ir.id = st.[item_id]
                       AND ir.model_sk = st.[model_id]
				 LEFT JOIN cte_first_assignment_time fs ON ir.id=fs.id
            WHERE
               	CONVERT(DATETIME, ir.modified_date) >= CONVERT(DATETIME, fs.first_assignment_date)
			 	AND CONVERT(DATETIME, ir.modified_date) <= CONVERT(DATETIME, st.solution_date)
            GROUP BY
			   ir.id
         ) T 
	 WHERE 
	     f_assign_to_resolution_time IS NOT NULL
)
,
----------last_assign_solve_time----------------- 
cte_responsible_block AS (
  SELECT
        ir.id,
        ir.specialist_user_sk,
        ir.time,
        FIRST_VALUE(ir.specialist_user_sk) OVER (
            PARTITION BY ir.id
            ORDER BY
                ir.modified_date DESC
        ) AS specialist_user_solution
    FROM
        ADW.FACT_ASDK_ITEM_REVISION ir
        JOIN ADW.V_ASDK_SOLUTION_TIMES st ON ir.id = st.item_id
        AND ir.model_sk = st.model_id
    WHERE
        st.solution_date IS NOT NULL
        AND ir.modified_date <= st.solution_date
        AND ir.time IS NOT NULL
),
cte_last_assign_solve_time AS
(
	SELECT
		rb.id,
		SUM(rb.time) AS last_assign_solve_time
	FROM
		cte_responsible_block rb
	WHERE
		rb.specialist_user_sk = rb.specialist_user_solution
	GROUP BY
		id
)
SELECT
    i.[id],
    i.[id_by_project],
    i.[modified_date],
    i.[item_type_sk],
    i.[status_sk],
    i.[project_sk],
    i.[reason_sk],
    i.[category_sk],
    i.[service_sk],
    i.[impact_sk],
    i.[previous_specialist_group_sk],
    i.[previous_specialist_user_sk],
    i.[urgency_sk],
    i.[priority_sk],
    i.[registry_type_sk],
    i.[specialist_group_sk],
    i.[specialist_user_sk],
    i.[customer_user_sk],
    i.[author_user_sk],
    i.[company_sk],
    i.[ci_sk],
    i.[modifier_user_sk],
    i.[receptor_user_sk],
    i.[integration_sk],
    i.[calendar_sla_sk],
    i.[calendar_uc_sk],
    i.[calendar_ola_sk],
    i.[model_sk],
    i.[sla_sk],
    i.[uc_sk],
    i.[ola_sk],
    i.[provider_sk],
    i.[unit_sk],
    i.[previous_status_sk],
    i.[cost_model_sk],
    i.[profit_center_sk],
    i.[cost_center_sk],
    i.[interface_sk],
    i.[state_initial],
    i.[state_final],
    i.[location_sk],
    i.[contract_sk],
    i.[applicant_sk],
    i.[estimated_date],
    i.[estimated_date_sk],
    i.[current_progress],
    i.[current_time],
	dbo.FUN_MIN_TO_HHMMSS(i.[current_time]) [current_time_formatted],
    i.[price],
    i.[cost],
    i.[effort],
    i.[available_cost],
    i.[available_effort],
    i.[available_price],
    i.[available_count],
    i.[time],
	dbo.FUN_MIN_TO_HHMMSS(i.[time]) [time_formatted],
    i.[created_date],
    i.[created_date_sk],
    i.[opened_date],
    i.[open_date_sk],
    i.[closed_date],
    i.[close_date_sk],
    i.[default_time_real_date],
    i.[default_time_real_date_sk],
    i.[estimated_time],
    i.[attention_date_key], 
    i.[rev],
    n.note_count,
    n.private_note_count,
    n.note_count - n.private_note_count public_note_count,
    ad.attention_date,
    ad.attention_time,
    ad.wait_time,
    ad.specialist_wait_time,
    fat.first_assignment_time,
    frt.first_reply_time,
    first_reply_date,
    fart.f_assign_to_resolution_time,
    las.last_assign_solve_time,
    st.solution_time,
    st.[solution_date],
	1 [case], 
    CASE
        WHEN t.name = 'CHANGE' THEN 1
    END change,
    CASE
        WHEN t.name = 'INCIDENTS' THEN 1
    END incident,
    CASE
        WHEN t.name = 'PROBLEM' THEN 1
    END problem,
    CASE   
        WHEN t.name = 'RELEASE' THEN 1
    END release,
    CASE
        WHEN t.name = 'SERVICECALL' THEN 1
    END requirement,
    CASE
        WHEN sb.status_behavior = 'NUEVO' THEN 1
    END new_case,
    CASE
        WHEN sb.status_behavior = 'NUEVO'
        AND t.name = 'CHANGE' THEN 1
    END new_change,
    CASE
        WHEN sb.status_behavior = 'NUEVO'
        AND t.name = 'INCIDENTS' THEN 1
    END new_incident,
    CASE
        WHEN sb.status_behavior = 'NUEVO'
        AND t.name = 'PROBLEM' THEN 1
    END new_problem,
    CASE
        WHEN sb.status_behavior = 'NUEVO'
        AND t.name = 'RELEASE' THEN 1
    END new_release,
    CASE
        WHEN sb.status_behavior = 'NUEVO'
        AND t.name = 'SERVICECALL' THEN 1
    END new_requirement,
    CASE
        WHEN sb.[status_behavior] = 'EN ESPERA' THEN 1
    END case_onhold,
    CASE
        WHEN sb.[status_behavior] NOT IN ('SOLUCIONADO', 'CERRADO', 'ANULADO') THEN 1
    END case_pending,
    CASE
        WHEN sb.[status_behavior] NOT IN ('SOLUCIONADO', 'CERRADO', 'ANULADO')
        AND i.[specialist_user_sk] IS NULL THEN 1
    END case_pending_unassigned,
    CASE
        WHEN n.note_count - n.private_note_count = 0 THEN 1
    END case_unanswered,
    CASE
        WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO') THEN 1
    END case_solved,
    CASE
        WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
        AND st.solution_date >= DATEADD(WEEK, DATEDIFF(WEEK, 0, GETDATE()), 0)
        AND st.solution_date < DATEADD(WEEK, DATEDIFF(WEEK, 0, GETDATE()) + 1, 0) THEN 1
    END solved_current_week,
    CASE
        WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
        AND st.solution_date >= DATEFROMPARTS(
            YEAR(GETUTCDATE()),
            MONTH (GETUTCDATE()),
            1
        )
        AND st.solution_date <= GETUTCDATE() THEN 1
    END solved_current_month,
    CASE
		WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
		AND st.[solution_date] >= DATEFROMPARTS(YEAR(GETUTCDATE()) - 1, MONTH(GETUTCDATE()), 1)
		AND st.[solution_date] < DATEADD(
			MONTH,
			1,
			DATEFROMPARTS(YEAR(GETUTCDATE()) - 1, MONTH(GETUTCDATE()), 1)
		) THEN 1
    END solved_same_month_last_year,
    CASE
        WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
        AND st.solution_date >= DATEFROMPARTS(
            YEAR(GETUTCDATE()),
            ((DATEPART(QUARTER, GETUTCDATE()) - 1) * 3 + 1),
            1
        )
        AND st.solution_date <= GETUTCDATE() THEN 1
    END solved_current_quarter,
    CASE
		WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
		AND st.[solution_date] >= DATEADD(
			YEAR,
			-1,
			DATEADD(QUARTER, DATEDIFF(QUARTER, 0, GETUTCDATE()), 0)
		)
		AND st.[solution_date] < DATEADD(
			YEAR,
			-1,
			DATEADD(
				QUARTER,
				DATEDIFF(QUARTER, 0, GETUTCDATE()) + 1,
				0
			)
		) THEN 1
	END solved_same_quarter_last_year,
    CASE
        WHEN st.solution_date >= DATEFROMPARTS(YEAR(GETUTCDATE()), 1, 1)
        AND st.solution_date <= GETUTCDATE()
        AND sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO') THEN 1
    END solved_current_year,
    CASE
        WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
        AND YEAR(st.solution_date) = YEAR(GETUTCDATE()) - 1 THEN 1
    END solved_last_year,
    CASE
        WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
        AND (
            n.note_count - n.private_note_count = 0
            OR n.note_count - n.private_note_count IS NULL
        ) THEN 1
    END solved_non_interventions,
    CASE
        WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
        AND n.note_count - n.private_note_count = 1 THEN 1
    END solved_one_intervention,
    CASE
        WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
        AND n.note_count - n.private_note_count > 1 THEN 1
    END solved_multiple_interventions,
    CASE
        WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
        AND i.[current_progress] <= 1 THEN 1
    END solved_within_SLA,
    CASE
        WHEN sb.[status_behavior] IN ('SOLUCIONADO', 'CERRADO')
        AND i.[current_progress] > 1 THEN 1
    END solved_outside_SLA
FROM
    adw.FACT_ASDK_ITEM i
    LEFT JOIN adw.V_ASDK_STATUS_BEHAVIOR sb ON sb.stat_id = i.status_sk
    LEFT JOIN dbo.ASMS_TYPES t ON i.item_type_sk = t.id
    LEFT JOIN adw.V_ASDK_SOLUTION_TIMES st ON i.id = st.item_id
		AND i.model_sk = st.model_id
    LEFT JOIN adw.FACT_ASDK_ITEM_REVISION n ON n.id = i.id
		AND n.modified_date = i.modified_date
    LEFT JOIN cte_times ad ON i.id = ad.id
    LEFT JOIN cte_first_assignment_time fat ON i.id = fat.id
    LEFT JOIN cte_first_reply_time frt ON i.id = frt.id
    LEFT JOIN cte_f_assign_to_resolution_time fart ON i.id = fart.id
    LEFT JOIN cte_last_assign_solve_time las ON i.id = las.id
WHERE
	i.item_type_sk <> 6;
GO
PRINT N'Creating View [ADW].[V_FACT_ASDK_ITEM_REVISION]...';


GO
CREATE VIEW [ADW].[V_FACT_ASDK_ITEM_REVISION] AS
SELECT
    ir.[id],
    ir.[id_by_project],
    ir.[modified_date],
    ir.[date_sk],
    ir.[rev],
    ir.[item_type_sk],
    ir.[status_sk],
    ir.[project_sk],
    ir.[reason_sk],
    ir.[category_sk],
    ir.[service_sk],
    ir.[impact_sk],
    ir.[urgency_sk],
    ir.[priority_sk],
    ir.[previous_specialist_group_sk],
    ir.[previous_specialist_user_sk],
    ir.[registry_type_sk],
    ir.[specialist_group_sk],
    ir.[specialist_user_sk],
    ir.[customer_user_sk],
    ir.[author_user_sk],
    ir.[company_sk],
    ir.[ci_sk],
    ir.[modifier_user_sk],
    ir.[receptor_user_sk],
    ir.[integration_sk],
    ir.[interface_sk],
    ir.[calendar_sla_sk],
    ir.[calendar_uc_sk],
    ir.[calendar_ola_sk],
    ir.[model_sk],
    ir.[sla_sk],
    ir.[uc_sk],
    ir.[ola_sk],
    ir.[provider_sk],
    ir.[unit_sk],
    ir.[previous_status_sk],
    ir.[cost_model_sk],
    ir.[profit_center_sk],
    ir.[cost_center_sk],
    ir.[state_initial],
    ir.[state_final],
    ir.[location_sk],
    ir.[contract_sk],
    ir.[applicant_sk],
    ir.[estimated_date],
    ir.[current_progress],
    ir.[current_time],
	dbo.FUN_MIN_TO_HHMMSS(ir.[current_time]) [current_time_formatted],
    ir.[current_cost],
    ir.[current_effort],
    ir.[current_price],
    ir.[time],
	dbo.FUN_MIN_TO_HHMMSS(ir.[time]) [time_formatted],
    ir.[note_count],
    ir.[private_note_count],
	ir.[note_count] - ir.[private_note_count] [public_note_count],
	1 updates,
    CASE WHEN ir.specialist_user_sk = ir.modifier_user_sk THEN 1 END specialists_updates,
    CASE WHEN ir.customer_user_sk = ir.modifier_user_sk THEN 1 END users_updates,
    note_count commentaries,
    note_count - private_note_count public_commentaries,
    private_note_count private_commentaries,
    CASE WHEN ir.previous_specialist_user_sk <> ir.specialist_user_sk THEN 1 END assigned_agent_reassignments,
    CASE WHEN ir.previous_specialist_group_sk <> ir.specialist_group_sk THEN 1 END group_reassignments,
    ir.time field_change_time_min,
    CASE WHEN sb.status_stage = 'New' THEN ir.time END new_state_time_min,
    CASE WHEN sb.status_stage = 'InProgress' THEN ir.time END in_progress_time_min,
    CASE WHEN sb.status_stage = 'OnHold' THEN ir.time END on_hold_time_min,
    CASE WHEN sb.status_stage = 'Scheduled' THEN ir.time END scheduled_state_time_min,
    ir.time / 60.0 field_change_time_h,
    CASE WHEN sb.status_stage = 'New' THEN ir.time / 60.0 END new_state_time_h,
    CASE WHEN sb.status_stage = 'InProgress' THEN ir.time / 60.0 END in_progress_time_h,
    CASE WHEN sb.status_stage = 'OnHold' THEN ir.time / 60.0 END on_hold_time_h,
    CASE WHEN sb.status_stage = 'Scheduled' THEN ir.time / 60.0 END scheduled_state_time_h,
    ir.time / 1440.0 field_change_time_days,
    CASE WHEN sb.status_stage = 'New' THEN ir.time / 1440.0 END new_state_time_days,
    CASE WHEN sb.status_stage = 'InProgress' THEN ir.time / 1440.0 END in_progress_time_days,
    CASE WHEN sb.status_stage = 'OnHold' THEN ir.time / 1440.0 END on_hold_time_days,
    CASE WHEN sb.status_stage = 'Scheduled' THEN ir.time / 1440.0 END scheduled_state_time_days
FROM
    adw.FACT_ASDK_ITEM_REVISION ir
    LEFT JOIN adw.FACT_ASDK_ITEM i ON ir.id = i.id
    LEFT JOIN adw.V_ASDK_STATUS_BEHAVIOR sb ON sb.stat_id = ir.status_sk
    LEFT JOIN adw.V_ASDK_STATUS_BEHAVIOR sbp ON sbp.stat_id = ir.previous_status_sk
    LEFT JOIN dbo.ASMS_TYPES t ON ir.item_type_sk = t.id
    LEFT JOIN adw.V_ASDK_SOLUTION_TIMES st ON ir.id = st.item_id
        AND ir.model_sk = st.model_id
WHERE
	i.item_type_sk <> 6;
GO
PRINT N'Creating View [ADW].[V_FACT_ASDK_TASK_REVISION]...';


GO
CREATE VIEW [ADW].[V_FACT_ASDK_TASK_REVISION] AS 
WITH 
cte_fact_asdk_task AS (
    SELECT
        ir.[id],
		ir.[id_by_project],
		ir.[modified_date],
		ir.[date_sk],
		ir.[rev],
		ir.[status_sk],
		ir.[project_sk],
		ir.[reason_sk],
		ir.[category_sk],
		ir.[service_sk],
		ir.[specialist_group_sk],
		ir.[specialist_user_sk],
		ir.[previous_specialist_user_sk],
		ir.[previous_specialist_group_sk],
		ir.[author_user_sk],
		ir.[modifier_user_sk],
		ir.[receptor_user_sk],
		ir.[integration_sk],
		ir.[calendar_sla_sk],
		ir.[model_sk],
		ir.[previous_status_sk],
		ir.[estimated_date],
		ir.[current_progress],
		ir.[current_time] current_duration,
		ir.[current_cost],
		ir.[current_effort],
		ir.[current_price],
		ir.[current_time],
		ir.[time] duration,
		ir.[note_count],
		ir.[private_note_count],
		ir.[note_count] - ir.[private_note_count] [public_note_count]
    FROM
        adw.FACT_ASDK_ITEM_REVISION ir
		LEFT JOIN dbo.ASMS_TYPES t ON ir.item_type_sk = t.id
	WHERE
    T.name = 'TASK'

),

cte_fact_asdk_item AS (
    SELECT
        i.id,
        i.opened_date,
        i.closed_date,
        i.item_type_sk
    FROM
        adw.FACT_ASDK_ITEM i
)
SELECT
    ir.[id],
    ir.[id_by_project],
    ir.[modified_date],
    ir.[date_sk],
    ir.[rev],
    ir.[status_sk],
    ir.[project_sk],
    ir.[reason_sk],
    ir.[category_sk],
    ir.[service_sk],
    ir.[specialist_group_sk],
    ir.[specialist_user_sk],
    ir.[previous_specialist_user_sk],
    ir.[previous_specialist_group_sk],
    ir.[author_user_sk],
    ir.[modifier_user_sk],
    ir.[receptor_user_sk],
    ir.[integration_sk],
    ir.[calendar_sla_sk],
    ir.[model_sk],
    ir.[previous_status_sk],
    ir.[estimated_date],
    ir.[current_progress],
    ir.[current_time] current_duration,
	dbo.FUN_MIN_TO_HHMMSS( ir.[current_time]) AS current_duration_formatted,
    ir.[current_cost],
    ir.[current_effort],
    ir.[current_price],
    ir.duration,
    dbo.FUN_MIN_TO_HHMMSS(ir.duration) AS duration_formatted,
    ir.[note_count],
    ir.[private_note_count],
    ir.[public_note_count],
    CASE
        WHEN ifr.add_bool_1 = 1 THEN 'CAMPO'
        ELSE 'ESTANDAR'
    END [task_subtype],
	CASE
        WHEN ir.specialist_user_sk <> ir.previous_specialist_user_sk THEN 1
    END AS specialist_reassigned,
    CASE
        WHEN ir.specialist_group_sk <> ir.previous_specialist_group_sk THEN 1
    END specialist_group_reassigned,
	1 task,
    CASE
        WHEN i.[opened_date] >= DATEADD(WEEK, DATEDIFF(WEEK, 0, GETDATE()), 0)
        AND i.[opened_date] < DATEADD(WEEK, DATEDIFF(WEEK, 0, GETDATE()) + 1, 0) THEN 1
    END task_created_current_week,
    CASE
        WHEN i.[opened_date] >= DATEFROMPARTS(YEAR(GETUTCDATE()), MONTH(GETUTCDATE()), 1)
        AND i.[opened_date] <= GETUTCDATE() THEN 1
    END task_created_current_month,
    CASE
        WHEN i.[opened_date] >= DATEFROMPARTS(YEAR(GETUTCDATE()) - 1, MONTH(GETUTCDATE()), 1)
        AND i.[opened_date] < DATEFROMPARTS(
            YEAR(GETUTCDATE()) - 1,
            MONTH(GETUTCDATE()) + 1,
            1
        ) THEN 1
    END task_created_same_mth_last_yr,
	 CASE
        WHEN i.[opened_date] >= DATEFROMPARTS(
            YEAR(GETUTCDATE()),
            MONTH (GETUTCDATE()),
            1
        )
        AND i.[opened_date] <= GETUTCDATE() THEN 1
    END task_created_current_quarter,
	CASE
		WHEN i.[opened_date] >= DATEADD(
			YEAR,
			-1,
			DATEADD(QUARTER, DATEDIFF(QUARTER, 0, GETUTCDATE()), 0)
		)
		AND i.[opened_date] < DATEADD(
			YEAR,
			-1,
			DATEADD(
						QUARTER,
						DATEDIFF(QUARTER, 0, GETUTCDATE()) + 1,
						0
					)
				) THEN 1
				END task_created_same_qtr_last_yr,
    CASE
        WHEN i.[opened_date] >= DATEFROMPARTS(YEAR(GETUTCDATE()), 1, 1)
        AND i.[opened_date] <= GETUTCDATE() THEN 1
    END task_created_current_year,
    CASE
        WHEN i.[opened_date] >= DATEFROMPARTS(YEAR(GETUTCDATE()) - 1, 1, 1)
        AND i.[opened_date] < DATEFROMPARTS(YEAR(GETUTCDATE()), 1, 1) THEN 1
    END task_created_last_year,
    CASE
        wHEN i.closed_date IS NULL THEN 1
    END task_open,
    CASE
        wHEN i.closed_date IS NOT NULL THEN 1
    END task_closed,
    CASE
        WHEN i.closed_date >= DATEADD(WEEK, DATEDIFF(WEEK, 0, GETDATE()), 0)
        AND i.closed_date < DATEADD(WEEK, DATEDIFF(WEEK, 0, GETDATE()) + 1, 0) THEN 1
    END task_closed_current_week,
    CASE
        WHEN i.closed_date >= DATEFROMPARTS(YEAR(GETUTCDATE()), MONTH(GETUTCDATE()), 1)
        AND i.closed_date <= GETUTCDATE() THEN 1
    END task_closed_current_month,
    CASE
        WHEN i.closed_date >= DATEFROMPARTS(YEAR(GETUTCDATE()) - 1, MONTH(GETUTCDATE()), 1)
        AND i.closed_date < DATEFROMPARTS(
            YEAR(GETUTCDATE()) - 1,
            MONTH(GETUTCDATE()) + 1,
            1
        ) THEN 1
    END task_closed_same_mth_last_yr,
	CASE
        WHEN  i.closed_date >= DATEFROMPARTS(
            YEAR(GETUTCDATE()),
            ((DATEPART(QUARTER, GETUTCDATE()) - 1) * 3 + 1),
            1
        )
        AND i.closed_date <= GETUTCDATE() THEN 1
    END task_closed_current_quarter,
	CASE
		WHEN i.closed_date >= DATEADD(
			YEAR,
			-1,
			DATEADD(QUARTER, DATEDIFF(QUARTER, 0, GETUTCDATE()), 0)
		)
		AND i.closed_date < DATEADD(
			YEAR,
			-1,
			DATEADD(
						QUARTER,
						DATEDIFF(QUARTER, 0, GETUTCDATE()) + 1,
						0
					)
				) THEN 1
				END task_closed_same_qtr_last_yr,
    CASE
        WHEN i.closed_date >= DATEFROMPARTS(YEAR(GETUTCDATE()), 1, 1)
        AND i.closed_date <= GETUTCDATE() THEN 1
    END task_closed_current_year,
    CASE
        WHEN i.closed_date >= DATEFROMPARTS(YEAR(GETUTCDATE()) - 1, 1, 1)
        AND i.closed_date < DATEFROMPARTS(YEAR(GETUTCDATE()), 1, 1) THEN 1
    END task_closed_last_year,
    CASE
        WHEN i.closed_date IS NOT NULL
        AND ir.current_progress <= 1 THEN 1
    END task_closed_in_est_date,
    CASE
        WHEN i.closed_date IS NOT NULL
        AND ir.current_progress > 1 THEN 1
    END task_closed_out_est_date,
    CASE
        WHEN tpp.name = 'CHANGE' THEN 1
    END parent_case_change,
    CASE
        WHEN tpp.name = 'INCIDENTS' THEN 1
    END parent_case_incident,
    CASE
        WHEN tpp.name = 'PROBLEM' THEN 1
    END parent_case_problem,
    CASE
        WHEN tpp.name = 'RELEASE' THEN 1
    END parent_case_release,
    CASE
        WHEN tpp.name = 'SERVICECALL' THEN 1
    END parent_case_requirement 
FROM
    cte_fact_asdk_task ir
         JOIN cte_fact_asdk_item i ON ir.id = i.id
    LEFT JOIN adw.FACT_ASDK_ITEM_FIELDS_REVISION ifr ON ir.id = ifr.id
    LEFT JOIN cte_fact_asdk_item ipa ON ipa.id = ifr.add_int_3
    LEFT JOIN ASMS_TYPES tpp ON tpp.id = ipa.item_type_sk
    LEFT JOIN adw.V_ASDK_STATUS_BEHAVIOR sb ON sb.stat_id = ir.status_sk   
    LEFT JOIN ASMS_STATUS s ON s.stat_id = ir.status_sk;
GO
PRINT N'Creating View [adw].[V_FACT_ASDK_USER_SURVEY]...';


GO
CREATE VIEW adw.V_FACT_ASDK_USER_SURVEY
AS 
	SELECT 
		CAST(su.DataConcept AS INT) AS id,
		su.SurveyId AS survey_sk,
		sq.Id AS question_sk,
		sq.QuestionTypeId AS question_type_sk,
		dbo.FUN_ADW_DATE_KEY(su.FinishedAt) AS response_date_sk,
		su.FinishedAt AS response_date,
		dbo.FUN_ADW_DATE_KEY(su.CreationDate) AS creation_date_sk,
		su.CreationDate AS creation_date,
		1 AS survey_sent,
		su.InvitationSent AS invitation_sent_email,
		CASE
			WHEN su.FinishedAt IS NOT NULL THEN 1
		END AS survey_answered,
		CASE
			WHEN su.FinishedAt IS NULL THEN 1
		END AS survey_unanswered,
		IIF(
				UPPER(sqt.[Name]) = 'RANKING',
				sa.ResponseChoiceId,
				NULL
			) AS rating,
		CASE
			WHEN UPPER(sqt.Name) = 'RANKING'
				AND sa.ResponseChoiceId = sq.MaxValue
			THEN 1
		END AS survey_rating_max,
		CASE
			WHEN UPPER(sqt.Name) = 'RANKING'
				AND sa.ResponseChoiceId = 1
			THEN 1
		END AS survey_rating_min,
		CASE
			WHEN su.ConceptItemId = 1
				AND su.FinishedAt IS NOT NULL THEN 1
		END AS incident_survey_answered,
		CASE
			WHEN su.ConceptItemId = 3
				AND su.FinishedAt IS NOT NULL THEN 1
		END AS change_survey_answered,
		CASE
			WHEN su.ConceptItemId = 4
				AND su.FinishedAt IS NOT NULL THEN 1
		END AS service_call_survey_answered
	FROM
		AFW_SURVEY_USER su
		LEFT JOIN AFW_SURVEY s ON s.Id = su.SurveyId
		LEFT JOIN AFW_SURVEY_QUESTION sq ON s.Id = sq.SurveyId
		LEFT JOIN AFW_SURVEY_QUESTION_TYPE sqt ON sq.QuestionTypeId = sqt.Id
		LEFT JOIN AFW_SURVEY_ANSWERS sa ON sq.Id = sa.QuestionId
			  AND sa.Token = su.Token
GO
PRINT N'Creating View [adw].[V_FACT_ASDK_USER_SURVEY_SENT]...';


GO
CREATE VIEW adw.V_FACT_ASDK_USER_SURVEY_SENT
AS 
	SELECT 
		CAST(su.DataConcept AS INT) AS id,
		su.SurveyId AS survey_sk,
		dbo.FUN_ADW_DATE_KEY(su.CreationDate) AS creation_date_sk,
		su.CreationDate AS creation_date,
		1 AS survey_sent,
		su.InvitationSent AS invitation_sent_email
	FROM
		AFW_SURVEY_USER su
		LEFT JOIN AFW_SURVEY s ON s.Id = su.SurveyId
GO
PRINT N'Creating View [dbo].[V_ASDK_ITEM_INFO]...';


GO
CREATE VIEW [dbo].[V_ASDK_ITEM_INFO]
AS
    SELECT a.id,
    a.id_by_project,
    a.subject,
    a.type_id,
    a.[state_id],
    g.stat_name AS state_name,
    g.stat_background_color_rgb AS background_color_rgb,
    g.stat_final AS final_status,
    g.stat_initial AS initial_status,
    a.survey_token,
    a.previous_status_id,
    a.project_id,
    a.reason_id,
    a.category_id,
    a.service_id,
    service.name AS service_name,
    a.impact_id,
    a.urgency_id,
    a.priority_id,
    a.registry_type_id,
    registry.code_value AS registry_type_name,
    a.group_id,
    k.grou_name AS group_name,
    a.responsible_id,
    responsible.user_name AS responsible_name,
    a.integration_id,
    a.customer_id,
    customer.user_name AS customer_name,
    a.author_id,
     author.user_name AS author_name,  
    a.company_id,
    company.Name company_name,
    a.ci_id,
    ci.name AS ci_name,
    ci.serial AS ci_serial,
    ci.asset_tag AS ci_asset_tag,
    a.modifier_id,
    modifier.user_name AS modifier_name,
    a.receptor_id,
    receptor.user_name AS receptor_name,
    a.interface_id,
    a.model_id,
    m.name AS model_name,
    a.opened_date,
    a.modified_date,
    a.closed_date,
    a.commentary_nohtml,
    a.cause_nohtml,
    a.sla_id,
    sla.name AS sla_name,
    a.uc_id,
    uc.name AS uc_name,
    a.ola_id,
    ola.name AS ola_name,
    a.provider_id,
    provider.Name AS provider_name,
    a.unit_id,
    unit.grou_name AS unit_name,
    ISNULL(a.price, 0) price,
    ISNULL(a.cost, 0) cost,
    ISNULL(a.effort, 0) effort,
    a.cost_model_id,
    a.income_center_id,
    a.cost_center_id,
    a.add_int_1,
    a.add_int_2,
    a.add_int_3,
    a.add_int_4,
    a.add_int_5,
    a.add_int_6,
    a.add_int_7,
    a.add_int_8,
    a.add_int_9,
    a.add_int_10,
    a.add_str_1,
    a.add_str_2,
    a.add_str_3,
    a.add_str_4,
    a.add_str_5,
    a.add_str_6,
    a.add_str_7,
    a.add_str_8,
    a.add_str_9,
    a.add_str_10,
    a.add_date_1,
    a.add_date_2,
    a.add_date_3,
    a.add_date_4,
    a.add_date_5,
    a.add_date_6,
    a.add_date_7,
    a.add_date_8,
    a.add_date_9,
    a.add_date_10,
    a.add_float_1,
    a.add_float_2,
    a.add_float_3,
    a.add_float_4,
    a.add_float_5,
    a.add_float_6,
    a.add_float_7,
    a.add_float_8,
    a.add_float_9,
    a.add_float_10,
    a.add_bool_1,
    a.add_bool_2,
    a.add_bool_3,
    a.add_bool_4,
    a.add_bool_5,
    a.add_bool_6,
    a.add_bool_7,
    a.add_bool_8,
    a.add_bool_9,
    a.add_bool_10,
    a.rev,
    n.proj_name AS project_name,
    o.reas_description AS reason_name,
    b.ctg_caption AS category_name,
    b.fl_str_hierarchy AS category_hierarchy,
    cal_sla.CALENDAR_NAME AS calendar_sla_name, 
    cal_uc.CALENDAR_NAME AS calendar_uc_name, 
    cal_ola.CALENDAR_NAME AS calendar_ola_name,
    d.code_value AS impact_name,
    e.code_value AS urgency_name,
    f.code_value AS priority_name, 
    a.description,
    description_nohtml,
	ISNULL(td.estimated_date, t.estimated_date) AS estimated_date,
    ISNULL(td.end_date, t.end_date) AS real_date,
    ISNULL(td.estimated_time, t.estimated_time) AS estimated_time,
    COALESCE(td.sdb_current_progress, t.sdb_current_progress, 0) AS current_progress,
    ISNULL(td.sdb_time, t.sdb_time) AS [current_time],
	ISNULL(td.time_id, t.time_id) AS time_id,
	a.location_id AS location_id,
	a.contract_id AS contract_id,
	CASE
		WHEN ctr.class_id = 0 OR ctr.class_id = 1
			THEN ctr.NumberContract + ' - ' + con_company.Name
		WHEN ctr.class_id = 2
			THEN ctr.NumberContract + ' - ' + con_groups.grou_name
		ELSE ctr.NumberContract
    END AS contract_name,
	lct.name AS location_name,
	ass.scheduled_date scheduled_date,
	a.applicant_id AS applicant_id, 
	applicant.user_name AS applicant_name,
	[ist].[construction_duration],
	[ist].[construction_final_date],
	[ist].[construction_initial_date],
	[ist].[test_duration],
	[ist].[test_final_date],
	[ist].[test_initial_date],
	[ist].[instalation_duration],
	[ist].[instalation_final_date],
	[ist].[instalation_initial_date],
	[ist].[pso_duration],
	[ist].[pso_final_date],
	[ist].[pso_initial_date]
FROM dbo.[ASDK_ITEM] AS a  
LEFT OUTER JOIN dbo.[ASDK_CATEGORY] b ON a.category_id = b.ctg_index 
LEFT OUTER JOIN dbo.[AFW_CATALOG_CODE] AS d ON a.impact_id = d.code_id 
LEFT OUTER JOIN dbo.[AFW_CATALOG_CODE] AS e ON a.urgency_id = e.code_id 
LEFT OUTER JOIN dbo.[AFW_CATALOG_CODE] AS f ON a.priority_id = f.code_id 
LEFT OUTER JOIN dbo.[ASMS_STATUS] AS g ON a.[state_id] = g.stat_id 
LEFT OUTER JOIN dbo.[AFW_GROUPS] AS k ON a.group_id = k.grou_id 
LEFT OUTER JOIN dbo.[ASMS_PROJECTS] AS n ON a.project_id = n.proj_id 
LEFT OUTER JOIN dbo.[ASMS_STATUS_REASON] AS o ON a.reason_id = o.reas_id 
LEFT OUTER JOIN dbo.[ASMS_MODEL] AS m ON a.model_id = m.id 
LEFT OUTER JOIN dbo.[ASMS_CALENDAR] AS cal_sla  ON cal_sla.[CALENDAR_ID] = a.calendar_sla_id
LEFT OUTER JOIN dbo.[ASMS_CALENDAR] AS cal_uc  ON cal_uc.[CALENDAR_ID] = a.calendar_uc_id
LEFT OUTER JOIN dbo.[ASMS_CALENDAR] AS cal_ola  ON cal_ola.[CALENDAR_ID] = a.calendar_ola_id
LEFT OUTER JOIN dbo.[CMDB_CI] AS ci  ON ci.[id] = a.ci_id
LEFT OUTER JOIN dbo.[ASDK_SERVICE] AS service ON service.id = a.service_id
LEFT OUTER JOIN dbo.[V_ASDK_ALTERNATE_TIME] at ON at.category_id = a.category_id
	AND at.service_id = a.service_id
	AND at.model_id = a.model_id
LEFT OUTER JOIN dbo.[ASMS_TIMES_DATA] td ON td.item_type_id = a.type_id
	AND td.item_id = a.id
	AND td.time_id = at.time_id
LEFT OUTER JOIN dbo.[ASMS_TIMES_DATA] AS t ON t.item_id = a.id
    AND t.item_type_id = a.type_id
	AND t.time_id = m.default_time_id
LEFT OUTER JOIN dbo.[AFW_CATALOG_CODE] AS registry ON registry.code_id = a.registry_type_id
LEFT OUTER JOIN dbo.[AFW_USERS] AS responsible ON responsible.user_id = a.responsible_id
LEFT OUTER JOIN dbo.[AFW_USERS] AS customer ON customer.user_id = a.customer_id
LEFT OUTER JOIN dbo.[AFW_USERS] AS author ON author.user_id = a.author_id
LEFT OUTER JOIN dbo.[AFW_USERS] AS modifier ON modifier.user_id = a.modifier_id
LEFT OUTER JOIN dbo.[AFW_USERS] AS receptor ON receptor.user_id = a.receptor_id
LEFT OUTER JOIN dbo.[ASMS_COMPANY] AS company ON company.Id = a.company_id
LEFT OUTER JOIN dbo.[ASMS_COMPANY] AS provider ON provider.Id = a.provider_id
LEFT OUTER JOIN dbo.[AFW_GROUPS] AS unit ON unit.grou_id = a.unit_id
LEFT OUTER JOIN dbo.[ASDK_SLA] AS sla ON sla.sla_id = a.sla_id
    AND sla.contract_type = 14
LEFT OUTER JOIN dbo.[ASDK_SLA] AS uc ON uc.sla_id = a.uc_id
    AND uc.contract_type = 54
LEFT OUTER JOIN dbo.[ASDK_SLA] AS ola ON ola.sla_id = a.ola_id
	AND ola.contract_type = 55
LEFT OUTER JOIN dbo.[ASMS_CONTRACT] AS ctr ON ctr.ContractId = a.contract_id
	LEFT OUTER JOIN dbo.AFW_GROUPS AS con_groups ON  con_groups.grou_id = ctr.area_id
	LEFT OUTER JOIN dbo.[ASMS_COMPANY] AS con_company ON  con_company.id = ctr.vendorid
LEFT OUTER JOIN dbo.[ASMS_LOCATION] AS lct ON lct.Id = a.location_id
LEFT OUTER JOIN dbo.[ASDK_SCHEDULED_STATUS] AS ass ON ass.item_id = a.id
LEFT OUTER JOIN dbo.[AFW_USERS] AS applicant ON applicant.user_id = a.applicant_id
LEFT OUTER JOIN [dbo].[ASDK_ITEM_STAGE] [ist] ON [ist].[item_id] = [a].[id];
GO
PRINT N'Creating View [dbo].[V_ASDK_ITEM_INFO_ALL]...';


GO
CREATE VIEW [dbo].[V_ASDK_ITEM_INFO_ALL] AS
SELECT
	a.id, 
	a.id_by_project, 
	a.subject,
	a.type_id, 
	a.state_id, 
	a.project_id, 
	a.reason_id, 
	a.category_id, 
	a.service_id, 
	a.impact_id, 
	a.urgency_id, 
	a.priority_id, 
	a.registry_type_id, 
	a.group_id, 
	a.responsible_id, 
	a.integration_id, 
    a.customer_id, 
	a.author_id, 
	a.company_id, 
	a.ci_id, 
	a.modifier_id, 
	a.receptor_id, 
	a.interface_id, 
	a.model_id, 
	a.opened_date, 
	a.modified_date, 
	a.closed_date, 
	a.commentary_nohtml, 
	a.cause_nohtml, 
	a.sla_id, 
	a.uc_id, 
	a.ola_id, 
	a.provider_id, 
	a.unit_id, 
	price, 
	cost, 
	effort, 
	cost_model_id, 
	[income_center_id], 
	cost_center_id,
	a.add_int_1, 
    a.add_int_2,
	a.add_int_3, 
	a.add_int_4, 
	a.add_int_5, 
	a.add_int_6, 
	a.add_int_7, 
	a.add_int_8, 
	a.add_int_9, 
	a.add_int_10, 
	a.add_str_1, 
	a.add_str_2, 
	a.add_str_3, 
	a.add_str_4, 
	a.add_str_5, 
	a.add_str_6, 
	a.add_str_7, 
    a.add_str_8, 
	a.add_str_9, 
	a.add_str_10, 
	a.add_date_1, 
	a.add_date_2, 
	a.add_date_3, 
	a.add_date_4, 
	a.add_date_5, 
	a.add_date_6, 
	a.add_date_7, 
	a.add_date_8, 
	a.add_date_9, 
	a.add_date_10,
	a.add_float_1, 
    a.add_float_2, 
	a.add_float_3, 
	a.add_float_4, 
	a.add_float_5, 
	a.add_float_6, 
	a.add_float_7, 
	a.add_float_8, 
	a.add_float_9, 
	a.add_float_10, 
	a.add_bool_1, 
	a.add_bool_2, 
	a.add_bool_3, 
	a.add_bool_4, 
	a.add_bool_5, 
    a.add_bool_6, 
	a.add_bool_7, 
	a.add_bool_8, 
	a.add_bool_9, 
	a.add_bool_10, 
	a.state_name, 
	a.project_name, 
	a.reason_name, 
	a.category_name, 
	a.category_hierarchy, 
	a.calendar_sla_name, 
	a.calendar_uc_name,
	a.calendar_ola_name, 
	a.service_name, 
	a.impact_name, 
	a.urgency_name, 
    a.priority_name, 
	a.registry_type_name, 
	a.group_name, 
	a.responsible_name,
    a.customer_name,
    a.author_name,
    a.company_name, 
	a.provider_name, 
	a.unit_name, 
	a.sla_name, 
	a.uc_name, 
	a.ola_name, 
	a.ci_name, 
	a.ci_serial, 
	a.ci_asset_tag, 
	a.modifier_name,
    a.receptor_name,
    a.status_color as background_color_rgb ,
    a.state_final as final_status, 
    a.state_initial AS initial_status, 
    a.survey_token, 
    a.previous_status_id,
    CONVERT(NVARCHAR(MAX), a.description) AS description,
	description_nohtml,
	a.estimated_date AS estimated_date,
	IIF(a.state_final = 0, ISNULL(cat.end_date, td.end_date), a.real_date) AS real_date,
	a.estimated_time AS estimated_time,
	COALESCE(cat.sdb_current_progress, t.sdb_current_progress, 0) AS current_progress,
	a.[current_time] AS [current_time],
    a.model_name AS  model_name,
	a.location_id AS location_id,
	a.contract_id AS contract_id,
	a.applicant_id AS applicant_id,
	a.applicant_name,
	lt.name AS location_name,
	IIF([a].[state_final] = 1, [istc].[construction_duration], [ist].[construction_duration]) AS [construction_duration],
	IIF([a].[state_final] = 1, [istc].[construction_final_date], [ist].[construction_final_date]) AS [construction_final_date],
	IIF([a].[state_final] = 1, [istc].[construction_initial_date], [ist].[construction_initial_date]) AS [construction_initial_date],
	IIF([a].[state_final] = 1, [istc].[test_duration], [ist].[test_duration]) AS [test_duration],
	IIF([a].[state_final] = 1, [istc].[test_final_date], [ist].[test_final_date]) AS [test_final_date],
	IIF([a].[state_final] = 1, [istc].[test_initial_date], [ist].[test_initial_date]) AS [test_initial_date],
	IIF([a].[state_final] = 1, [istc].[instalation_duration], [ist].[instalation_duration]) AS [instalation_duration],
	IIF([a].[state_final] = 1, [istc].[instalation_final_date], [ist].[instalation_final_date]) AS [instalation_final_date],
	IIF([a].[state_final] = 1, [istc].[instalation_initial_date], [ist].[instalation_initial_date]) AS [instalation_initial_date],
	IIF([a].[state_final] = 1, [istc].[pso_duration], [ist].[pso_duration]) AS [pso_duration],
	IIF([a].[state_final] = 1, [istc].[pso_final_date], [ist].[pso_final_date]) AS [pso_final_date],
	IIF([a].[state_final] = 1, [istc].[pso_initial_date], [ist].[pso_initial_date]) AS [pso_initial_date]
FROM dbo.[ASDK_ITEM_DW_LAST] AS a
JOIN ASMS_MODEL md ON md.id = a.model_id
LEFT JOIN ASMS_TIMES_DATA td ON td.item_id = a.id
	AND td.time_id = md.default_time_id
	AND td.item_type_id = a.type_id
LEFT JOIN ASMS_LOCATION lt ON lt.Id = a.location_id
LEFT OUTER JOIN (
	SELECT
		times_d.time_id,
		times_d.item_type_id,
		times_d.item_id,
		times_d.estimated_date,
		times_d.end_date,
		times_d.estimated_time,
		times_d.sdb_current_progress,
		times_d.sdb_time,
		moti.model_id
	FROM dbo.[ASMS_TIMES_DATA] AS times_d WITH (NOLOCK)
	JOIN dbo.[ASMS_TIMES] moti ON times_d.time_id = moti.id
) AS cat ON a.model_id = cat.model_id
	AND a.type_id = cat.item_type_id 
	AND a.id = cat.item_id
    AND EXISTS (
		SELECT
			*
		FROM [ASDK_CATEGORY_TIME_DEFAULT] ctd
		WHERE ctd.time_id = cat.time_id
			AND a.category_id = ctd.category_id
			AND a.service_id = ctd.service_id
	)
LEFT OUTER JOIN dbo.[ASMS_TIMES_DATA] AS t WITH (NOLOCK) ON md.default_time_id = t.time_id 
    AND a.id = t.item_id 
    AND a.type_id = t.item_type_id
LEFT JOIN [dbo].[ASDK_ITEM_STAGE] [ist] ON [ist].[item_id] = [a].[id]
LEFT JOIN [dbo].[ASDK_ITEM_STAGE_CLOSED] [istc] ON [istc].[item_id] = [a].[id]
GO
PRINT N'Creating View [dbo].[V_ASDK_ITEM_INFO_CLOSED]...';


GO
CREATE VIEW [dbo].[V_ASDK_ITEM_INFO_CLOSED] AS
SELECT   
	afr.[id]												id, 
	afr.[id_by_project]                                     id_by_project, 
	dit.[subject]                                           subject, 
	afr.[item_type_sk]                                      type_id, 
	afr.[status_sk]                                         state_id, 
	afr.[project_sk]                                        project_id, 
	afr.[reason_sk]                                         reason_id, 
	afr.[category_sk]                                       category_id, 
	afr.[service_sk]                                        service_id, 
	afr.[impact_sk]                                         impact_id, 
	afr.[urgency_sk]                                        urgency_id, 
	afr.[priority_sk]                                       priority_id, 
	afr.[registry_type_sk]                                  registry_type_id, 
	afr.[specialist_group_sk]                               group_id, 
	afr.[specialist_user_sk]                                responsible_id, 
	afr.[integration_sk]                                    integration_id, 
	afr.[customer_user_sk]                                  customer_id, 
	afr.[author_user_sk]                                    author_id, 
	afr.[company_sk]                                        company_id, 
	afr.[ci_sk]                                             ci_id, 
	afr.[modifier_user_sk]                                  modifier_id, 
	afr.[receptor_user_sk]                                  receptor_id, 
	afr.[interface_sk]                                      interface_id, 
	afr.[model_sk]                                          model_id, 
	afr.[opened_date]                                       opened_date, 
	fitf.[modified_date]                                    modified_date,
	afr.[closed_date]                                       closed_date, 
	dit.[commentary_nohtml]                                 commentary_nohtml, 
	dit.[cause_nohtml]                                      cause_nohtml,
	afr.[calendar_sla_sk]                                   sla_id, 
	afr.[calendar_uc_sk]                                    uc_id, 
	afr.[calendar_ola_sk]                                   ola_id,
	afr.[provider_sk]                                       provider_id, 
	afr.[unit_sk]                                           unit_id, 
	afr.[price]                                             price, 
	afr.[cost]                                              cost, 
	afr.[effort]                                            effort, 
	afr.[cost_model_sk]                                     cost_model_id, 
	afr.[profit_center_sk]                                  income_center_id, 
	afr.[cost_center_sk]                                    cost_center_id,
	fitf.[add_int_1]                                        add_int_1, 
	fitf.[add_int_2]                                        add_int_2, 
	fitf.[add_int_3]                                        add_int_3, 
	fitf.[add_int_4]                                        add_int_4, 
	fitf.[add_int_5]                                        add_int_5, 
	fitf.[add_int_6]                                        add_int_6, 
	fitf.[add_int_7]                                        add_int_7, 
	fitf.[add_int_8]                                        add_int_8, 
	fitf.[add_int_9]                                        add_int_9, 
	fitf.[add_int_10]                                       add_int_10, 
	fitf.[add_str_1]                                        add_str_1, 
	fitf.[add_str_2]                                        add_str_2, 
	fitf.[add_str_3]                                        add_str_3, 
	fitf.[add_str_4]                                        add_str_4, 
	fitf.[add_str_5]                                        add_str_5, 
	fitf.[add_str_6]                                        add_str_6, 
	fitf.[add_str_7]                                        add_str_7, 
	fitf.[add_str_8]                                        add_str_8, 
	fitf.[add_str_9]                                        add_str_9, 
	fitf.[add_str_10]                                       add_str_10, 
	fitf.[add_date_1]                                       add_date_1, 
	fitf.[add_date_2]                                       add_date_2, 
	fitf.[add_date_3]                                       add_date_3, 
	fitf.[add_date_4]                                       add_date_4, 
	fitf.[add_date_5]                                       add_date_5, 
	fitf.[add_date_6]                                       add_date_6, 
	fitf.[add_date_7]                                       add_date_7, 
	fitf.[add_date_8]                                       add_date_8, 
	fitf.[add_date_9]                                       add_date_9, 
	fitf.[add_date_10]                                      add_date_10, 
	fitf.[add_float_1]                                      add_float_1, 
	fitf.[add_float_2]                                      add_float_2, 
	fitf.[add_float_3]                                      add_float_3, 
	fitf.[add_float_4]                                      add_float_4, 
	fitf.[add_float_5]                                      add_float_5, 
	fitf.[add_float_6]                                      add_float_6, 
	fitf.[add_float_7]                                      add_float_7, 
	fitf.[add_float_8]                                      add_float_8, 
	fitf.[add_float_9]                                      add_float_9, 
	fitf.[add_float_10]                                     add_float_10, 
	fitf.[add_bool_1]                                       add_bool_1, 
	fitf.[add_bool_2]                                       add_bool_2, 
	fitf.[add_bool_3]                                       add_bool_3, 
	fitf.[add_bool_4]                                       add_bool_4, 
	fitf.[add_bool_5]                                       add_bool_5, 
	fitf.[add_bool_6]                                       add_bool_6, 
	fitf.[add_bool_7]                                       add_bool_7, 
	fitf.[add_bool_8]                                       add_bool_8, 
	fitf.[add_bool_9]                                       add_bool_9, 
	fitf.[add_bool_10]                                      add_bool_10, 
	a_st_name.stat_name										state_name, 
	projects_name.proj_name									project_name, 
	a_st_reason.reas_description							reason_name, 
	asdk_cat.ctg_caption									category_name, 
	asdk_cat_h.fl_str_hierarchy								category_hierarchy, 
	acc.calendar_name										calendar_sla_name, 
	accu.calendar_name										calendar_uc_name, 
	acco.calendar_name										calendar_ola_name, 
	asdk_name.name											service_name, 
	afw_impact.code_value									impact_name, 
	afw_urgen.code_value									urgency_name, 
	afw_prio.code_value										priority_name, 
	afw_regis.code_value									registry_type_name, 
	afw_groups.grou_name									group_name, 
	aur.user_name											responsible_name,
	auc.user_name											customer_name,
	aua.user_name											author_name,
	ac.Name													company_name, 
	asp.Name												provider_name, 
	afg.grou_name											unit_name, 
	ass.Name												sla_name, 
	asu.Name												uc_name, 
	aso.Name												ola_name,
	cc.Name													ci_name, 
	cc.serial												ci_serial, 
	cc.asset_tag											ci_asset_tag,
	au.user_name											modifier_name,
	aure.user_name											receptor_name,
	atc.stat_background_color_rgb							background_color_rgb,
	afr.state_final											final_status, 
	ati.stat_initial										initial_status, 
	asd.token												survey_token, 
	afr.[previous_status_sk]								previous_status_id,
	CONVERT(NVARCHAR(MAX), dit.[description])				description,
	CONVERT(NVARCHAR(MAX), dit.[description_nohtml])		description_nohtml,
	afr.[estimated_date]									estimated_date,
	default_time_real_date									real_date,
	afr.[estimated_time]									estimated_time,
	afr.[current_progress]									current_progress,
	afr.[current_time]										[current_time],
	am.Name													model_name,
	afr.[location_sk]										location_id,
	afr.[contract_sk]										contract_id,
	afr.[applicant_sk]										applicant_id,
	af.user_name											applicant_name,  
	afr.[previous_specialist_group_sk]                      previous_specialist_group_sk,
	afr.[previous_specialist_user_sk]                       previous_specialist_user_sk,
	ist.construction_duration                               construction_duration,
	ist.construction_final_date                             construction_final_date,
	ist.construction_initial_date                           construction_initial_date,
	ist.test_duration                                       test_duration,
	ist.test_final_date                                     test_final_date,
	ist.test_initial_date                                   test_initial_date,
	ist.instalation_duration                                instalation_duration,
	ist.instalation_final_date                              instalation_final_date,
	ist.instalation_initial_date                            instalation_initial_date,
	ist.pso_duration                                        pso_duration,
	ist.pso_final_date                                      pso_final_date,
	ist.pso_initial_date                                    pso_initial_date
FROM [adw].[FACT_ASDK_ITEM] AS afr WITH (NOLOCK)
LEFT JOIN [adw].[FACT_ASDK_ITEM_FIELDS_REVISION] AS fitf ON afr.[id] = fitf.[id]
 AND fitf.is_current = 1
LEFT JOIN [adw].[DIM_ASDK_ITEM_TEXT] AS dit ON fitf.[id] = dit.[item_sk]
 AND dit.is_current = 1
LEFT JOIN [dbo].ASMS_SURVEY_DATA AS asd ON asd.item_id = fitf.[id] 
	AND asd.is_current = 1
LEFT JOIN ASMS_MODEL md ON md.id = afr.model_sk
LEFT JOIN ASMS_TIMES_DATA td ON td.item_id = afr.id
	AND td.time_id = md.default_time_id
	AND td.item_type_id = afr.item_type_sk
LEFT JOIN ASMS_LOCATION lt ON lt.Id =  afr.location_sk
LEFT JOIN ASDK_ITEM_STAGE_CLOSED AS ist ON ist.item_id = fitf.id
LEFT JOIN AFW_USERS AS a_mail ON afr.[author_user_sk] = a_mail.[user_id]
LEFT JOIN ASMS_STATUS AS a_st_name ON a_st_name.[stat_id] = afr.[status_sk]
LEFT JOIN ASMS_PROJECTS AS projects_name ON projects_name.[proj_id] = afr.[project_sk]
LEFT JOIN ASMS_STATUS_REASON AS a_st_reason ON a_st_reason.[reas_id] = afr.[reason_sk]
LEFT JOIN ASDK_CATEGORY AS asdk_cat ON asdk_cat.[ctg_index] = afr.[category_sk]
LEFT JOIN ASDK_CATEGORY AS asdk_cat_h ON asdk_cat_h.[ctg_index] = afr.[category_sk]
LEFT JOIN ASDK_SERVICE AS asdk_name ON asdk_name.[Id] = afr.[service_sk]
LEFT JOIN  (
	SELECT 
		iptacc.code_cata_id,
		iptacc.code_id,
		iptacc.code_value 
	FROM AFW_CATALOG iptact
	INNER JOIN AFW_CATALOG_CODE iptacc ON iptact.cata_id = iptacc.code_cata_id 
		AND iptact.cata_name = 'IMPACT' 
) AS afw_impact ON afw_impact.[code_id] = afr.[impact_sk]
LEFT JOIN  (
	SELECT 
		urgacc.code_cata_id,
		urgacc.code_id,
		urgacc.code_value 
	FROM AFW_CATALOG urgact
	INNER JOIN AFW_CATALOG_CODE urgacc ON urgact.cata_id = urgacc.code_cata_id 
		AND urgact.cata_name = 'URGENCY' 
) AS afw_urgen ON afw_urgen.[code_id] = afr.[urgency_sk]
LEFT JOIN  (
	SELECT 
		pryacc.code_cata_id,
		pryacc.code_id,
		pryacc.code_value 
	FROM AFW_CATALOG pryact
	INNER JOIN AFW_CATALOG_CODE pryacc ON pryact.cata_id = pryacc.code_cata_id 
		AND pryact.cata_name = 'PRIORITY' 
) AS afw_prio ON afw_prio.[code_id] = afr.[priority_sk]
LEFT JOIN  (
	SELECT 
		rgtacc.code_cata_id,
		rgtacc.code_id,
		rgtacc.code_value 
	FROM AFW_CATALOG rgtact
	INNER JOIN AFW_CATALOG_CODE rgtacc ON rgtact.cata_id = rgtacc.code_cata_id 
		AND rgtact.cata_name = 'REGISTRY_TYPE' 
) AS afw_regis ON afw_regis.[code_id] = afr.[registry_type_sk]
LEFT JOIN AFW_GROUPS AS afw_groups ON afw_groups.[grou_id] = afr.[specialist_group_sk]
LEFT JOIN AFW_USERS AS aur ON aur.[user_id] = afr.[specialist_user_sk]
LEFT JOIN AFW_USERS AS auc ON auc.[user_id] = afr.[customer_user_sk]
LEFT JOIN AFW_USERS AS aua ON aua.[user_id] = afr.[author_user_sk]
LEFT JOIN ASMS_COMPANY AS ac ON ac.[id] = afr.[company_sk]
LEFT JOIN CMDB_CI AS cc ON cc.[id] = afr.[ci_sk]
LEFT JOIN AFW_USERS AS au ON au.[user_id] = afr.[modifier_user_sk]
LEFT JOIN AFW_USERS AS aure ON aure.[user_id] = afr.[receptor_user_sk]
LEFT JOIN ASMS_MODEL AS am ON am.[id] = afr.[model_sk]
LEFT JOIN ASDK_SLA AS ass ON ass.[SLA_ID] = afr.[sla_sk]
LEFT JOIN ASDK_SLA AS asu ON asu.[SLA_ID] = afr.[uc_sk]
LEFT JOIN ASDK_SLA AS aso ON aso.[SLA_ID] = afr.[ola_sk]
LEFT JOIN ASMS_COMPANY AS asp ON asp.[id] = afr.[provider_sk]
LEFT JOIN AFW_GROUPS AS afg ON afg.[grou_id] = afr.[unit_sk]
LEFT JOIN ASMS_TYPES AS att ON att.[id] = afr.[item_type_sk]
LEFT JOIN ASMS_CALENDAR AS acc ON acc.[CALENDAR_ID] = afr.[calendar_sla_sk]
LEFT JOIN ASMS_CALENDAR AS accu ON accu.[CALENDAR_ID] = afr.[calendar_uc_sk]
LEFT JOIN ASMS_CALENDAR AS acco ON acco.[CALENDAR_ID] = afr.[calendar_ola_sk]
LEFT JOIN ASMS_STATUS AS atc ON atc.[stat_id] = afr.[status_sk]
LEFT JOIN ASMS_STATUS AS ati ON ati.[stat_id] = afr.[previous_status_sk]
LEFT JOIN AFW_USERS AS af ON af.[user_id] = afr.[applicant_sk]
WHERE afr.[state_final] = 1
GO
PRINT N'Creating View [dbo].[V_ASDK_ITEM_OPENED]...';


GO
CREATE VIEW [dbo].[V_ASDK_ITEM_OPENED] AS
SELECT
	it.id,
	it.id_by_project,
	it.rev,
	it.subject,
	it.type_id,
	it.state_id,
	it.project_id,
	it.reason_id,
	it.category_id,
	it.service_id,
	it.impact_id,
	it.urgency_id,
	it.priority_id,
	it.registry_type_id,
	it.description,
	it.description_nohtml,
	it.group_id,
	it.responsible_id,
	it.customer_id,
	it.author_id,
	it.company_id,
	it.ci_id,
	it.modifier_id,
	it.receptor_id,
	it.integration_id,
	it.opened_date,
	it.closed_date,
	it.modified_date,
	it.created_date,
	it.calendar_sla_id,
	it.calendar_uc_id,
	it.calendar_ola_id,
	it.commentary,
	it.commentary_nohtml,
	it.cause,
	it.cause_nohtml,
	it.model_id,
	it.sla_id,
	it.uc_id,
	it.ola_id,
	it.provider_id,
	it.unit_id,
	it.survey_token,
	it.previous_status_id,
	it.price,
	it.cost,
	it.effort,
	it.cost_model_id,
	it.income_center_id,
	it.cost_center_id,
	it.interface_id,
	it.available_cost,
	it.available_effort,
	it.available_price,
	it.available_count,
	it.author_email,
	it.add_int_1,
	it.add_int_2,
	it.add_int_3,
	it.add_int_4,
	it.add_int_5,
	it.add_int_6,
	it.add_int_7,
	it.add_int_8,
	it.add_int_9,
	it.add_int_10,
	it.add_str_1,
	it.add_str_2,
	it.add_str_3,
	it.add_str_4,
	it.add_str_5,
	it.add_str_6,
	it.add_str_7,
	it.add_str_8,
	it.add_str_9,
	it.add_str_10,
	it.add_date_1,
	it.add_date_2,
	it.add_date_3,
	it.add_date_4,
	it.add_date_5,
	it.add_date_6,
	it.add_date_7,
	it.add_date_8,
	it.add_date_9,
	it.add_date_10,
	it.add_float_1,
	it.add_float_2,
	it.add_float_3,
	it.add_float_4,
	it.add_float_5,
	it.add_float_6,
	it.add_float_7,
	it.add_float_8,
	it.add_float_9,
	it.add_float_10,
	it.add_bool_1,
	it.add_bool_2,
	it.add_bool_3,
	it.add_bool_4,
	it.add_bool_5,
	it.add_bool_6,
	it.add_bool_7,
	it.add_bool_8,
	it.add_bool_9,
	it.add_bool_10,
	st.stat_name state_name,
	st.stat_background_color_rgb background_color_rgb,
	st.stat_final final_status,
	st.stat_behavior profile_id,
	st.stat_initial is_initial,
	ur.user_name responsible_name,
	ua.user_name author_name,
	um.user_name modifier_name,
	gr.grou_name group_name,
	md.name model_name,
	pr.proj_name project_name,
	sr.name service_name,
	sr.type_id service_type,
	cg.ctg_caption category_name,
	cg.fl_str_hierarchy category_hierarchy,
	re.reas_description reason_name,
	ci.code_value impact_name,
	cu.code_value urgency_name,
	cp.code_value priority_name,
	cf.name ci_name,
	cf.serial ci_serial,
	cf.asset_tag ci_asset_tag,
	uc.user_name customer_name,
	cm.name company_name,
	sl.name sla_name,
	sl_uc.name uc_name,
	sl_ol.name ola_name,
	cv.name provider_name,
	gu.grou_name unit_name,
	up.user_name receptor_name,
	cr.code_value registry_type_name,
	cl_sl.calendar_name calendar_sla_name,
	cl_uc.calendar_name calendar_uc_name,
	cl_ol.calendar_name calendar_ola_name,
	ISNULL(cat.sdb_time, td.sdb_time) AS [current_time],
	ISNULL(cat.sdb_current_progress, td.sdb_current_progress) AS current_progress,
	ISNULL(cat.estimated_time, td.estimated_time) AS estimated_time,
	ISNULL(cat.estimated_date, td.estimated_date) AS estimated_date,
	ISNULL(cat.end_date, td.end_date) AS real_date,
	ISNULL(cat.time_id, td.time_id) AS time_id,
	it.location_id,
	it.contract_id,
	ctr.NumberContract AS contract_name,
	lct.name AS location_name,
	ass.scheduled_date scheduled_date,
	it.applicant_id AS applicant_id,
	applicant.user_name AS applicant_name,
	[ist].[construction_duration],
	[ist].[construction_final_date],
	[ist].[construction_initial_date],
	[ist].[test_duration],
	[ist].[test_final_date],
	[ist].[test_initial_date],
	[ist].[instalation_duration],
	[ist].[instalation_final_date],
	[ist].[instalation_initial_date],
	[ist].[pso_duration],
	[ist].[pso_final_date],
	[ist].[pso_initial_date]
FROM ASDK_ITEM it
JOIN ASMS_STATUS st ON st.stat_id = it.state_id
JOIN AFW_USERS ur ON ur.user_id = it.responsible_id
JOIN AFW_USERS ua ON ua.user_id = it.author_id
JOIN AFW_USERS um ON um.user_id = it.modifier_id
JOIN AFW_GROUPS gr ON gr.grou_id = it.group_id
JOIN ASMS_MODEL md ON md.id = it.model_id
JOIN ASMS_PROJECTS pr ON pr.proj_id = it.project_id
JOIN ASDK_SERVICE sr ON sr.id = it.service_id
JOIN ASDK_CATEGORY cg ON cg.ctg_index = it.category_id
LEFT JOIN ASMS_STATUS_REASON re ON re.reas_id = it.reason_id
LEFT JOIN AFW_CATALOG_CODE ci ON ci.code_id = it.impact_id
LEFT JOIN AFW_CATALOG_CODE cu ON cu.code_id = it.urgency_id
LEFT JOIN AFW_CATALOG_CODE cp ON cp.code_id = it.priority_id
LEFT JOIN AFW_CATALOG_CODE cr ON cr.code_id = it.registry_type_id
LEFT JOIN CMDB_CI cf ON cf.id = it.ci_id
LEFT JOIN AFW_USERS uc ON uc.user_id = it.customer_id
LEFT JOIN AFW_USERS up ON up.user_id = it.receptor_id
LEFT JOIN ASMS_COMPANY cm ON cm.id = it.company_id
LEFT JOIN ASMS_COMPANY cv ON cv.id = it.provider_id
LEFT JOIN ASDK_SLA sl ON sl.sla_id = it.sla_id
LEFT JOIN ASDK_SLA sl_uc ON sl_uc.sla_id = it.uc_id
LEFT JOIN ASDK_SLA sl_ol ON sl_ol.sla_id = it.ola_id
LEFT JOIN ASMS_CALENDAR cl_sl ON cl_sl.calendar_id = sl.calendar_id
LEFT JOIN ASMS_CALENDAR cl_uc ON cl_uc.calendar_id = sl_uc.calendar_id
LEFT JOIN ASMS_CALENDAR cl_ol ON cl_ol.calendar_id = sl_ol.calendar_id
LEFT JOIN AFW_GROUPS gu ON gu.grou_id = it.unit_id
LEFT OUTER JOIN (
	SELECT
		times_d.time_id,
		times_d.item_type_id,
		times_d.item_id,
		times_d.estimated_date,
		times_d.end_date,
		times_d.estimated_time,
		times_d.sdb_current_progress,
		times_d.sdb_time,
		moti.model_id
	FROM dbo.[ASMS_TIMES_DATA] AS times_d WITH (NOLOCK)
	JOIN dbo.[ASMS_TIMES] moti ON times_d.time_id = moti.id
) AS cat ON it.model_id = cat.model_id
	AND it.type_id = cat.item_type_id 
	AND it.id = cat.item_id
    AND EXISTS (SELECT * FROM [ASDK_CATEGORY_TIME_DEFAULT] ctd WHERE ctd.time_id = cat.time_id
        AND it.category_id = ctd.category_id
        AND it.service_id = ctd.service_id)
LEFT JOIN ASMS_TIMES_DATA td ON td.item_id = it.id
	AND td.time_id = md.default_time_id
	AND td.item_type_id = it.type_id
LEFT JOIN dbo.[ASMS_CONTRACT] AS ctr ON ctr.ContractId = it.contract_id
LEFT JOIN dbo.[ASMS_LOCATION] AS lct ON lct.Id = it.location_id
LEFT JOIN dbo.[ASDK_SCHEDULED_STATUS] AS ass ON ass.item_id = it.id
LEFT JOIN dbo.[AFW_USERS] AS applicant ON applicant.user_id = it.applicant_id
LEFT JOIN dbo.AFW_GROUPS AS con_groups ON  con_groups.grou_id = ctr.area_id
LEFT JOIN dbo.[ASMS_COMPANY] AS con_company ON  con_company.Id = ctr.VENDORID
LEFT JOIN [dbo].[ASDK_ITEM_STAGE] [ist] ON [ist].[item_id] = [it].[id];
GO
PRINT N'Creating View [dbo].[V_ASDK_SURVEY_USER]...';


GO
CREATE VIEW V_ASDK_SURVEY_USER
AS
SELECT 
	v.id,
	v.customer_id, 
	v.id_by_project,	
	survey.surveyid AS surv_id,
	survey.dataconcept AS surv_dataconcept,
	survey.conceptitemid AS surv_dataconceptype,
	survey.token AS surv_token,
	survey.finishedat AS surv_finishedat,
	infosurvey.name AS surv_name,
	afws.enddate AS surv_enddate,
	afws.status AS surv_state
FROM V_ASDK_ITEM_INFO_ALL AS v
INNER JOIN AFW_SURVEY_USER AS survey ON survey.dataconcept = v.id
INNER JOIN ASMS_SURVEY AS infosurvey ON infosurvey.survey_id = survey.surveyid
INNER JOIN AFW_SURVEY AS afws ON afws.id = survey.surveyid
WHERE survey.finishedat IS NULL
GO
PRINT N'Creating View [dbo].[V_ASMS_TIMES_DATA_ALL]...';


GO
CREATE VIEW dbo.[V_ASMS_TIMES_DATA_ALL]
AS
SELECT  [item_id]
      ,[time_id]
      ,[estimated_time]
      ,[estimated_date]
      ,[end_time]
      ,[end_date]
      ,[start_date]
      ,[sdb_last_shot]
      ,[sdb_time] sdb_current_time
      ,[sdb_current_progress]
      ,[status_type]
      ,[calendar_id]
      ,[complies]
      ,[type_agree]
      ,[start_state_id]
      ,[end_state_id]
      ,[time_type_id]
      ,[start_condition]
      ,[end_condition]
      ,[running_condition] 
  FROM [ASMS_TIMES_DATA]
UNION
SELECT [item_id]
      ,[time_id]
      ,[estimated_time]
      ,[estimated_date]
      ,[end_time]
      ,[end_date]
      ,[start_date]
      ,[sdb_last_shot]
      ,[sdb_current_time]
      ,[sdb_current_progress]
      ,[status_type]
      ,[calendar_id]
      ,[complies]
      ,[type_agree]
      ,[start_state_id]
      ,[end_state_id]
      ,[time_type_id]
      ,[start_condition]
      ,[end_condition]
      ,[running_condition] 
  FROM [ASMS_TIMES_DATA_CLOSED]
GO
PRINT N'Creating View [dbo].[V_CLIENT_FILES]...';


GO
CREATE VIEW V_CLIENT_FILES
AS

		SELECT B.id AS [file_version_id],
               A.id AS [file_id],
               D.name AS [file_extension], 
               A.name AS [file_name],
			   C.size AS [default_file_size],
               dbo.FUN_GETMEASURE(C.size,'CAPACITY') AS [file_size_convert],
			   B.file_version AS[file_version],
               B.file_description AS [file_description],
			   C.modification_date AS [file_modification_date],
               E.path AS [file_path]
		FROM AAM_FILE_NAME A
			 JOIN AAM_FILE_VERSION B ON A.id = B.file_name_id
			 JOIN AAM_DEVICE_FILE_VERSION C ON B.id = C.file_version_id
			 JOIN AAM_EXTENSION D ON A.extension_id = D.id
			 JOIN AAM_PATH E ON C.path_id = E.id

	UNION ALL

		SELECT NULL AS [file_version_id], 
               C.id AS [file_id], 
               D.name AS [file_extension],
               C.name AS [file_name],
			   A.size AS [default_file_size], 
               dbo.FUN_GETMEASURE(A.size,'CAPACITY') AS [file_size_convert],
			   '---' AS [file_version], 
               '---' AS [file_description],
			   A.modification_date AS [file_modification_date], 
               E.path AS [file_path]
		FROM AAM_DEVICE_FILE A
			 INNER JOIN AAM_DEVICE B ON A.device_id = B.id
			 INNER JOIN AAM_FILE_NAME AS C ON A.file_name_id = C.id
			 INNER JOIN AAM_EXTENSION D ON C.extension_id = D.id
			 LEFT JOIN AAM_PATH E ON  A.path_id = E.id
			 LEFT JOIN AAM_GROUP_DEVICE F ON B.id = F.device_id
GO
PRINT N'Creating View [dbo].[V_CLIENT_HARDWARE_SUMMARY]...';


GO
CREATE VIEW V_CLIENT_HARDWARE_SUMMARY
AS

	WITH
		[video]
		AS
		(
			SELECT [videocard_id],
				COUNT(DISTINCT [device_id]) [device_count]
			FROM [AAM_DEVICE_VIDEOCARD]
			GROUP BY [videocard_id]
		),
		[keyboard]
		AS
		(
			SELECT [keyboard_id],
				COUNT(DISTINCT [device_id]) [device_count]
			FROM [AAM_DEVICE_KEYBOARD]
			GROUP BY [keyboard_id]
		),
		[driver]
		AS
		(
			SELECT [driver_id],
				COUNT(DISTINCT [device_id]) [device_count]
			FROM [AAM_DEVICE_DRIVER]
			GROUP BY [driver_id]
		),
		[printer]
		AS
		(
			SELECT [driver_id],
				COUNT(DISTINCT [device_id]) [device_count]
			FROM [AAM_DEVICE_PRINTER]
			GROUP BY [driver_id]
		),
		[disk]
		AS
		(
			SELECT [disk_id],
				[dbo].[FUN_AAM_DISK_TYPE](media_type) [type],
				COUNT(DISTINCT [device_id]) [device_count]
			FROM [AAM_DEVICE_DISK]
			GROUP BY [disk_id],
		[dbo].[FUN_AAM_DISK_TYPE](media_type)
		),
		[processor]
		AS
		(
			SELECT [processor_id],
				COUNT(DISTINCT [device_id]) [device_count]
			FROM [AAM_DEVICE_PROCESSORSLOT]
			GROUP BY [processor_id]
		),
		[bios]
		AS
		(
			SELECT [bios_id],
				COUNT(DISTINCT [device_id]) [device_count]
			FROM [AAM_DEVICE_BIOS]
			GROUP BY [bios_id]
		),
		[network]
		AS
		(
			SELECT [adapter_id],
				COUNT(DISTINCT [device_id]) [device_count]
			FROM [AAM_DEVICE_NETWORKADAPTER]
			GROUP BY [adapter_id]
		),
		[display]
		AS
		(
			SELECT [display_id],
				COUNT(DISTINCT [device_id]) [device_count]
			FROM [AAM_DEVICE_DISPLAY]
			GROUP BY [display_id]
		),
		[memory]
		AS
		(
			SELECT [memory_id],
				COUNT(DISTINCT [device_id]) [device_count]
			FROM [AAM_DEVICE_MEMORYSLOT]
			WHERE [AAM_DEVICE_MEMORYSLOT].[size] > 0
			GROUP BY [memory_id]
		)

	SELECT
		ROW_NUMBER() OVER(ORDER BY [hardware_type], [type_hardware_id]) AS[hardware_id], *

	FROM (
		--VIDEO
																																								SELECT
				[AAM_VIDEOCARD].[id]						AS [type_hardware_id],
				10											AS [hardware_type],
				'VIDEO'										AS [type],
				[AAM_VIDEOCARD].[name]						AS [name],
				[video].[device_count]						AS [device_count],
				[AAM_MANUFACTURER].[name]					AS [manufacturer]
			FROM [AAM_VIDEOCARD]
				JOIN [video] ON [AAM_VIDEOCARD].[id] = [video].[videocard_id]
				JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_VIDEOCARD].[manufacturer_id]

		UNION ALL
			--KEYBOARD
			SELECT
				[AAM_KEYBOARD].[id]							AS [type_hardware_id],
				9											AS [hardware_type],
				'KEYBOARD'									AS [type],
				[AAM_KEYBOARD].[description]				AS [name],
				[keyboard].[device_count]					AS [device_count],
				[AAM_MANUFACTURER].[name]					AS [manufacturer]
			FROM [keyboard]
				JOIN [AAM_KEYBOARD] ON [AAM_KEYBOARD].[id] = [keyboard].[keyboard_id]
				JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_KEYBOARD].[manufacturer_id]

		UNION ALL
			--DRIVERS
			SELECT
				[AAM_DRIVER].[id]							AS [type_hardware_id],
				3											AS [hardware_type],
				'DRIVERS'									AS [type],
				[AAM_DRIVER].[name]							AS [name],
				[driver].[device_count]						AS [device_count],
				[AAM_MANUFACTURER].[name]					AS [manufacturer]
			FROM [AAM_DRIVER]
				JOIN [driver] ON [driver].[driver_id] = [AAM_DRIVER].[id]
				JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_DRIVER].[manufacturer_id]

		UNION ALL
			--PRINTER
			SELECT
				[AAM_PRINTERDRIVER].[id]					AS [type_hardware_id],
				5											AS [hardware_type],
				'PRINTER'									AS [type],
				[AAM_DEVICE_PRINTER].[name]					AS [name],  
				[printer].[device_count]					AS [device_count],
				[AAM_MANUFACTURER].[name]					AS [manufacturer]
			FROM [printer]
				JOIN [AAM_PRINTERDRIVER] ON [AAM_PRINTERDRIVER].[id] = [printer].[driver_id]
				JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_PRINTERDRIVER].[manufacturer_id]
				JOIN [AAM_DEVICE_PRINTER] ON [AAM_DEVICE_PRINTER].driver_id = [printer].[driver_id]

		UNION ALL
			--PHYSICAL DISKS
			SELECT
				[AAM_DISK].[id]								AS [type_hardware_id],
				[disk].[type]								AS [hardware_type],
				'PHYSICAL DISKS'							AS [type],
				[AAM_DISK].[model]							AS [name],
				[disk].[device_count]						AS [device_count],
				[AAM_MANUFACTURER].[name]					AS [manufacturer]
			FROM [AAM_DISK]
				JOIN [disk] ON [disk].[disk_id] = [AAM_DISK].[id]
				JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_DISK].[manufacturer_id]

		UNION ALL
			--PROCESSOR
			SELECT
				[AAM_PROCESSOR].[id]						AS [type_hardware_id],
				8											AS [hardware_type],
				'PROCESSOR'									AS [type],
				[AAM_PROCESSOR].[model]						AS [name],
				[processor].[device_count]					AS [device_count],
				[AAM_MANUFACTURER].[name]					AS [manufacturer]
			FROM [AAM_PROCESSOR]
				JOIN [processor] ON [processor].[processor_id] = [AAM_PROCESSOR].[id]
				JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_PROCESSOR].[manufacturer_id]

		UNION ALL
			--BIOS
			SELECT
				[AAM_BIOS].[id]								AS [type_hardware_id],
				1											AS [hardware_type],
				'BIOS'										AS [type],
				[AAM_BIOS].[version]						AS [name],
				[bios].[device_count]						AS [device_count],
				[AAM_MANUFACTURER].[name]					AS [manufacturer]
			FROM [AAM_BIOS]
				JOIN [bios] ON [bios].[bios_id] = [AAM_BIOS].[id]
				JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_BIOS].[manufacturer_id]

		UNION ALL
			--NETWORK ADAPTER
			SELECT
				[AAM_NETWORKADAPTER].[id]					AS [type_hardware_id],
				0											AS [hardware_type],
				'NETWORK ADAPTER'							AS [type],
				[AAM_NETWORKADAPTER].[name]	 COLLATE SQL_Latin1_General_CP1_CI_AS AS [name],
				[network].[device_count]					AS [device_count],
				[AAM_MANUFACTURER].[name]					AS [manufacturer]
			FROM [AAM_NETWORKADAPTER]
				JOIN [network] ON [network].[adapter_id] = [AAM_NETWORKADAPTER].[id]
				JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_NETWORKADAPTER].[manufacturer_id]

		UNION ALL
			---DISPLAY
			SELECT
				[AAM_DISPLAY].[id]							AS [type_hardware_id],
				7											AS [hardware_type],
				'DISPLAY'									AS [type],
				[AAM_DISPLAY].[model] + ' (' + [AAM_DISPLAY].[name] + ')' AS [name],
				[display].[device_count]					AS [device_count],
				[AAM_MANUFACTURER].[name]					AS [manufacturer]
			FROM [AAM_DISPLAY]
				JOIN [display] ON [display].[display_id] = [AAM_DISPLAY].[id]
				JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_DISPLAY].[manufacturer_id]

		UNION ALL
			--MEMORY
			SELECT
				[AAM_MEMORY].[id]							AS [type_hardware_id],
				6											AS [hardware_type],
				'MEMORY'									AS [type],
				[model]										AS [name],
				[memory].[device_count]						AS [device_count],
				[AAM_MANUFACTURER].[name]					AS [manufacturer]
			FROM [memory]
				JOIN [AAM_MEMORY] ON [AAM_MEMORY].[id] = [memory].[memory_id]
				JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_MEMORY].[manufacturer_id])AS X
GO
PRINT N'Creating View [dbo].[VIEW_AAM_HARDWARE_SUMMARY]...';


GO
CREATE VIEW [dbo].[VIEW_AAM_HARDWARE_SUMMARY]
AS

WITH [video] AS (
	SELECT [videocard_id],
		COUNT(DISTINCT [device_id]) [device_count]
	FROM [AAM_DEVICE_VIDEOCARD]
	GROUP BY [videocard_id]
), [keyboard] AS (
	SELECT [keyboard_id],
		COUNT(DISTINCT [device_id]) [device_count]
	FROM [AAM_DEVICE_KEYBOARD]
	GROUP BY [keyboard_id]
), [driver] AS (
	SELECT [driver_id],
		COUNT(DISTINCT [device_id]) [device_count]
	FROM [AAM_DEVICE_DRIVER]
	GROUP BY [driver_id]
), [printer] AS (
	SELECT [driver_id],
		COUNT(DISTINCT [device_id]) [device_count]
	FROM [AAM_DEVICE_PRINTER]
	GROUP BY [driver_id]
), [disk] AS (
	SELECT [disk_id],
		[dbo].[FUN_AAM_DISK_TYPE](media_type) [type],
		COUNT(DISTINCT [device_id]) [device_count]
	FROM [AAM_DEVICE_DISK]
	GROUP BY [disk_id],
		[dbo].[FUN_AAM_DISK_TYPE](media_type)
), [processor] AS (
	SELECT [processor_id],
		COUNT(DISTINCT [device_id]) [device_count]
	FROM [AAM_DEVICE_PROCESSORSLOT]
	GROUP BY [processor_id]
), [bios] AS (
	SELECT [bios_id],
		COUNT(DISTINCT [device_id]) [device_count]
	FROM [AAM_DEVICE_BIOS]
	GROUP BY [bios_id]
), [network] AS (
	SELECT [adapter_id],
		COUNT(DISTINCT [device_id]) [device_count]
	FROM [AAM_DEVICE_NETWORKADAPTER]
	GROUP BY [adapter_id]
), [display] AS (
	SELECT [display_id],
		COUNT(DISTINCT [device_id]) [device_count]
	FROM [AAM_DEVICE_DISPLAY]
	GROUP BY [display_id]
), [memory] AS (
	SELECT [memory_id],
		COUNT(DISTINCT [device_id]) [device_count]
	FROM  [AAM_DEVICE_MEMORYSLOT]
	WHERE [AAM_DEVICE_MEMORYSLOT].[size] > 0
	GROUP BY [memory_id]
)
--VIDEO
SELECT
	10											AS [type],
	[AAM_VIDEOCARD].[id]						AS [id],
	[AAM_VIDEOCARD].[name]						AS [name],
	[video].[device_count]						AS [device_count],
	[AAM_MANUFACTURER].[name]					AS [manufacturer],
	[AAM_VIDEOCARD].[manufacturer_id]			AS [manufacturer_id]
FROM [AAM_VIDEOCARD]
	JOIN [video] ON [AAM_VIDEOCARD].[id] = [video].[videocard_id]
	JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_VIDEOCARD].[manufacturer_id]

UNION ALL
--KEYBOARD
SELECT
	9											AS [type],
	[AAM_KEYBOARD].[id]							AS [id],
	[AAM_KEYBOARD].[description]						AS [name],
	[keyboard].[device_count]					AS [device_count],
	[AAM_MANUFACTURER].[name]					AS [manufacturer],
	[AAM_KEYBOARD].[manufacturer_id]   AS [manufacturer_id]
FROM [keyboard]
	JOIN [AAM_KEYBOARD] ON [AAM_KEYBOARD].[id] = [keyboard].[keyboard_id]
	JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_KEYBOARD].[manufacturer_id]

UNION ALL
--DRIVERS
SELECT
	3											AS [type],
	[AAM_DRIVER].[id]							AS [id],
	[AAM_DRIVER].[name]							AS [name],
	[driver].[device_count]						AS [device_count],
	[AAM_MANUFACTURER].[name]					AS [manufacturer],
	[AAM_DRIVER].[manufacturer_id]				AS [manufacturer_id]
FROM [AAM_DRIVER]
	JOIN [driver] ON [driver].[driver_id] = [AAM_DRIVER].[id]
	JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_DRIVER].[manufacturer_id]

UNION ALL
--PRINTER
SELECT
	5											AS [type],
	[AAM_PRINTERDRIVER].[id]					AS [id],
	[AAM_PRINTERDRIVER].[name]					AS [name],
	[printer].[device_count]					AS [device_count],
	[AAM_MANUFACTURER].[name]					AS [manufacturer],
	[AAM_PRINTERDRIVER].[manufacturer_id]		AS [manufacturer_id]
FROM [printer]
	JOIN [AAM_PRINTERDRIVER] ON [AAM_PRINTERDRIVER].[id] = [printer].[driver_id]
	JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_PRINTERDRIVER].[manufacturer_id]

UNION ALL
--PHYSICAL DISKS
SELECT
	[disk].[type]								AS [type],
	[AAM_DISK].[id]								AS [id],
	[AAM_DISK].[model]							AS [name],
	[disk].[device_count]						AS [device_count],
	[AAM_MANUFACTURER].[name]					AS [manufacturer],
	[AAM_DISK].[manufacturer_id]				AS [manufacturer_id]
FROM [AAM_DISK]
	JOIN [disk] ON [disk].[disk_id] = [AAM_DISK].[id]
	JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_DISK].[manufacturer_id]

UNION ALL
--PROCESSOR
SELECT
	8											AS [type],
	[AAM_PROCESSOR].[id]						AS [id],
	[AAM_PROCESSOR].[model]						AS [name],
	[processor].[device_count]					AS [device_count],
	[AAM_MANUFACTURER].[name]					AS [manufacturer],
	[AAM_PROCESSOR].[manufacturer_id]			AS [manufacturer_id]
FROM [AAM_PROCESSOR]
	JOIN [processor] ON [processor].[processor_id] = [AAM_PROCESSOR].[id]
	JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_PROCESSOR].[manufacturer_id]

UNION ALL
--BIOS
SELECT
	1											AS [type],
	[AAM_BIOS].[id]								AS [id],
	[AAM_BIOS].[version]						AS [name],
	[bios].[device_count]						AS [device_count],
	[AAM_MANUFACTURER].[name]					AS [manufacturer],
	[AAM_BIOS].[manufacturer_id]				AS [manufacturer_id]
FROM [AAM_BIOS]
	JOIN [bios] ON [bios].[bios_id] = [AAM_BIOS].[id]
	JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_BIOS].[manufacturer_id]

UNION ALL
--NETWORK ADAPTER
SELECT
	0											AS [type],
	[AAM_NETWORKADAPTER].[id]					AS [id],
	[AAM_NETWORKADAPTER].[name]	COLLATE SQL_Latin1_General_CP1_CI_AS AS [name],
	[network].[device_count]					AS [device_count],
	[AAM_MANUFACTURER].[name]					AS [manufacturer],
	[AAM_NETWORKADAPTER].[manufacturer_id]		AS [manufacturer_id]
FROM [AAM_NETWORKADAPTER]
	JOIN [network] ON [network].[adapter_id] = [AAM_NETWORKADAPTER].[id]
	JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_NETWORKADAPTER].[manufacturer_id]

UNION ALL
---DISPLAY
SELECT
	7											AS [type],
	[AAM_DISPLAY].[id]							AS [id],
	[AAM_DISPLAY].[model] + ' (' + [AAM_DISPLAY].[name] + ')' AS [name],
	[display].[device_count]					AS [device_count],
	[AAM_MANUFACTURER].[name]					AS [manufacturer],
	[AAM_DISPLAY].[manufacturer_id]				AS [manufacturer_id]
FROM [AAM_DISPLAY]
	JOIN [display] ON [display].[display_id] = [AAM_DISPLAY].[id]
	JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_DISPLAY].[manufacturer_id]

UNION ALL
--AAM_MEMORY
SELECT
	6											AS [type],
	[AAM_MEMORY].[id]							AS [id],
	[model]										AS [name],
	[memory].[device_count]						AS [device_count],
	[AAM_MANUFACTURER].[name]					AS [manufacturer],
	[AAM_MEMORY].[manufacturer_id]				AS [manufacturer_id]
FROM [memory]
	JOIN [AAM_MEMORY] ON [AAM_MEMORY].[id] = [memory].[memory_id]
	JOIN [AAM_MANUFACTURER] ON [AAM_MANUFACTURER].[id] = [AAM_MEMORY].[manufacturer_id]
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_ALLDEVICELIST]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_ALLDEVICELIST]
AS 
/*====================================================================================================================================================================================*/
	/* SELECT #1: Eleccion de los dispositivos que ya estan en el sistema */
	/*====================================================================================================================================================================================*/
	SELECT 
		d.id AS [INDX]
		,d.uniquedeviceidentifier AS [UDI]
		,d.companyowned AS [CorporateOwned]
		,u.user_email AS [Email]
		,p.[penr_requestdate] AS [EnrollRequestDate] 
		,dbo.FUN_AMDM_GETSTATUS(d.status_id, p.penr_statusid, p.penr_expirydate) AS [DeviceStatus]
		,p.[penr_enrollmentcode] AS [EnrollmentCode]
		,p.[penr_expirydate] AS [ExpiryDate]
		,p.[penr_mobileuserid] AS [MobileUserId]
		,p.[penr_platformid] AS [Platform]
		,ldap.name + '\' + u.user_nick_name AS [UserName]
		,d.currentnetworkcarrier AS [CurrentNetworkCarrier]
		,d.id AS [DeviceId]
		,ISNULL(d.name, '????' + u.[user_name]) AS [DeviceName]
		,ISNULL(d.serialnumber,hw.devh_serialnumber) AS [DeviceSerialNumber]
		,ISNULL(hw.devh_simserialnumber,'') AS [SimSerialNumber]
		,ISNULL(d.enrollmentdate, DATEADD(DAY, -1, GETUTCDATE())) AS [EnrollmentDate] --si es nulo se coloca el dia anterior para que pueda ser considerado en los reportes
		,d.imei AS [IMEI]
		,d.uuidios AS [UUIDIOS]
		,d.lastupdatehw AS [LastUpdate_HW]
		,d.lastupdateloc AS [LastUpdate_Location]
		,d.lastupdatenw AS [LastUpdate_NW]
		,d.lastupdatesw AS [LastUpdate_SW]
		,d.latitude AS [Latitude]
		,d.longitude AS [Longitude]
		,d.user_id AS [DeviceUserId]
		,ISNULL(hw.devh_devicemanufacturer, 'NotDefined') AS [Manufacturer]
		,d.model AS [Model]
		,d.osversion AS [OsVersion]
		,d.phonenumber AS [PhoneNumber]
		,d.totalinternalstorage AS [TotalInternalStorage]
		,ISNULL(d.devicetype, 'NotDefined') AS [Type]
		,u.user_name AS [UserFullName]
		,d.lastreported AS [LastReport]
		,pol.policy_policyname AS [PolicyName]
		,pol.policy_version AS [PolicyVersion]
		,flags.penrf_iosauthenticated AS [iosauthenticated]
		,flags.penrf_iostokenupdated AS [iostokenupdated]
		,flags.penrf_iosappauthenticated AS [iosappauthenticated]
		,flags.penrf_iosapptermsaccepted AS [iosapptermsaccepted]
		,flags.penrf_iosappapnstokenupdated AS [iosappapnstokenupdated]
		,flags.penrf_androidappauthenticated AS [androidappauthenticated]
		,flags.penrf_androidapptermsaccepted AS [androidapptermsaccepted]
		,flags.penrf_androidappadminaccepted AS [androidappadminaccepted]
		,flags.penrf_androidappgcmidupdated AS [androidappgcmidupdated]
		,flags.penrf_iosprofiledownloaded AS [iosprofiledownloaded]
		,flags.penrf_iosappdownloaded AS [iosappdownloaded]
		,flags.penrf_androidappdownloaded AS [androidappdownloaded]
		,flags.penrf_dispatchertermsaccepted AS [dispatchertermsaccepted]
		,CASE WHEN d.policy_id IS NULL OR d.status_id <> 0 THEN -1 WHEN ISNULL(pfp.total, 0) = 0 THEN 1 ELSE 0 END AS [Fulfillment]
		,CASE WHEN d.policy_id IS NULL OR d.status_id <> 0 OR ISNULL(d.fulfilledpolicy, 1) IN(1, -1) THEN 0 ELSE ISNULL(pfp.TOTAL, 0) END [FulfillmentProblems]
		,ISNULL(dp.platf_id, 0) AS [PlatformId]
		,dp.platf_name AS [PlatformName]
		,(1 - d.issecuritybroken) AS [IsSecure] 
		,s.devstat_name AS [StatusName]
		,d.alertstatusdeviceabsent AS AlertStatusDeviceAbsent
		,CASE WHEN d.apnsapppushtoken IS NOT NULL OR d.windowsappchanneluri IS NOT NULL OR d.gcmregistrationid IS NOT NULL THEN 1 ELSE 0 END AS appIsEnrolled
		,d.androidforworktokenset AS androidfwtokenset
		,ISNULL(d.androidforworkmode_id,0) AS afwmodeid,
		d.gcmregistrationid AS gcmregistrationid,
		d.apnsapppushtoken AS apnsapppushtoken,
		d.mdmpushmagic AS mdmpushmagic,
		d.apnsmdmpushtoken AS apnsmdmpushtoken,
		d.windowsmdmchanneluri AS windowsMDMchannelUri,
		d.windowsappchanneluri AS windowsappchannelUri,
		d.lostmode AS lostmode,
		d.lostmodepassword AS lostmodepassword,
		d.agentversion AS agentversion,
		CAST(ISNULL(kf.value, 0) AS BIT) AS isInKiosk,
		CAST(ISNULL(mf.value, 0) AS BIT) AS metricsEnabled,
		CAST(ISNULL(hdf.value, 0) AS BIT) AS healthDeviceEnabled,
		hw.devh_batteryhealth AS [BatteryHealth],
		hw.devh_batteryvoltage AS [BatteryVoltage],
		hw.devh_batterytechnology AS [BatteryTechnology],
		hw.devh_batterytemperature AS [BatteryTemperature],
		hw.devh_cpucores AS [Cores],
		hw.devh_cpufrequency AS [Frequency],
		hw.devh_cpuname AS [CpuName],
		hw.devh_screenresolution AS [ScreenResolution],
		hw.devh_screensize AS [ScreenSize]
	FROM AMDM_DEVICE d
	LEFT JOIN AMDM_PENDINGENROLL p ON d.enrollmentrecord_id = p.penr_id
	LEFT JOIN AMDM_PENDINGENROLLFLAGS flags ON flags.penrf_id = p.penr_idenrollmentflags
	JOIN AFW_USERS u ON d.user_id = u.user_id
	JOIN AFW_LDAP ldap ON ldap.id = u.user_authentication_id
	LEFT JOIN AMDM_DEVICEHARDWARE hw ON hw.devh_id = d.devicehardware_id
	LEFT JOIN AMDM_POLICY pol ON pol.policy_id = d.policy_id
	LEFT JOIN AMDM_DEVICESTATUS s ON s.devstat_id = dbo.FUN_AMDM_GETSTATUS(d.status_id, p.penr_statusid, p.penr_expirydate)
	JOIN AMDM_DEVICEPLATFORM dp ON dp.platf_id = d.platform_id
	LEFT JOIN AMDM_DEVICEFLAGS kf ON kf.device_id = d.id
		AND kf.flag_id = 1
	LEFT JOIN AMDM_DEVICEFLAGS mf ON mf.device_id = d.id
		AND mf.flag_id = 2
	LEFT JOIN AMDM_DEVICEFLAGS hdf ON hdf.device_id = d.id
		AND hdf.flag_id = 4
	LEFT JOIN (
		SELECT
			COUNT(1) AS total,
			fulfilledprom_deviceid
		FROM AMDM_POLICYFULFILLMENTPROBLEM
		GROUP BY fulfilledprom_deviceid
	) AS pfp ON d.id = pfp.fulfilledprom_deviceid


	UNION ALL
	/*====================================================================================================================================================================================*/
	/* SELECT #2: Seleccionar registros de vinculación activos que no estén atados a ningún dispositivo */
	/*====================================================================================================================================================================================*/

	SELECT
		p.penr_id * (-1) AS [INDX] 
		, NULL AS [UDI]
		, [penr_companyowned] AS [CorporateOwned]
		, u.user_email AS [Email]
		, [penr_requestdate] AS [EnrollRequestDate]
		, 1 /*DEV_STATUS=PENDING*/ AS [DeviceStatus]
		, [penr_enrollmentcode] AS [EnrollmentCode]
		, [penr_expirydate] AS [ExpiryDate]
		, [penr_mobileuserid] AS [MobileUserId]
		, ISNULL([penr_platformid],0) AS [Platform]
		, ldap.name + '\' + u.user_nick_name AS [UserName]
		, NULL AS [CurrentNetworkCarrier]
		, NULL AS [DeviceId]
		, ISNULL([penr_devicename], '????' + u.[user_name]) AS [DeviceName]
		, NULL AS [DeviceSerialNumber]
		, NULL AS [SimSerialNumber]
		, NULL AS [EnrollmentDate]
		, NULL AS [IMEI]
		, NULL AS [UUIDIOS]
		, NULL AS [LastUpdate_HW]
		, NULL AS [LastUpdate_Location]
		, NULL AS [LastUpdate_NW]
		, NULL AS [LastUpdate_SW]
		, NULL AS [Latitude]
		, NULL AS [Longitude]
		, NULL AS [DevUserId]
		, 'NotDefined' AS [Manufacturer]
		, NULL AS [Model]
		, NULL AS [OsVersion]
		, NULL AS [PhoneNumber]
		, NULL AS [TotalInternalStorage]
		, 'NotDefined' AS [Type]
		, u.user_name AS [UserFullName]
		, NULL AS [LastReport]
		, NULL AS [PolicyName]
		, NULL AS [PolicyVersion]
		, flags.penrf_iosauthenticated AS [iosauthenticated]
		, flags.penrf_iostokenupdated AS [iostokenupdated]
		, flags.penrf_iosappauthenticated AS [iosappauthenticated]
		, flags.penrf_iosapptermsaccepted AS [iosapptermsaccepted]
		, flags.penrf_iosappapnstokenupdated AS [iosappapnstokenupdated]
		, flags.penrf_androidappauthenticated AS [androidappauthenticated]
		, flags.penrf_androidapptermsaccepted AS [androidapptermsaccepted]
		, flags.penrf_androidappadminaccepted AS [androidappadminaccepted]
		, flags.penrf_androidappgcmidupdated AS [androidappgcmidupdated]
		, flags.penrf_iosprofiledownloaded AS [iosprofiledownloaded]
		, flags.penrf_iosappdownloaded AS [iosappdownloaded]
		, flags.penrf_androidappdownloaded AS [androidappdownloaded]
		, flags.penrf_dispatchertermsaccepted AS [dispatchertermsaccepted]
		, -1 AS [Fulfillment]
		, 0 AS [FulfillmentProblems]
		, 0 AS [PlatformId]
		, CASE WHEN penr_platformid = 1 THEN 'Android' WHEN penr_platformid = 4 THEN 'iOS' ELSE 'NotDefined' END AS [PlatformName] 
		, 0 AS [IsSecure] 
		, 'PendingForEnrollment' AS [StatusName]
		, CAST(0 AS BIT) AS 'AlertStatusDeviceAbsent' 
		, 0 AS appIsEnrolled
		, 0 AS androidfwtokenset
		, 0 AS afwmodeid
		, NULL AS gcmregistrationid
		, NULL AS apnsapppushtoken
		, NULL AS mdmpushmagic
		, NULL AS apnsmdmpushtoken
		, NULL AS windowsMDMchannelUri
		, NULL AS windowsappchannelUri
		, NULL AS lostmode
		, NULL AS lostmodepassword
		, NULL AS agentversion
		, NULL AS isInKiosk
		, NULL AS metricsEnabled
		, NULL AS healthDeviceEnabled
		, NULL AS [BatteryHealth]
		, NULL AS [BatteryVoltage]
		, NULL AS [BatteryTechnology]
		, NULL AS [BatteryTemperature]
		, NULL AS [Cores]
		, NULL AS [Frequency]
		, NULL AS [CpuName]
		, NULL AS [ScreenResolution]
		, NULL AS [ScreenSize]
	FROM [AMDM_PENDINGENROLL] p
	JOIN AMDM_PENDINGENROLLFLAGS flags ON flags.penrf_id = p.penr_idenrollmentflags
	JOIN AFW_USERS u ON p.penr_mobileuserid = u.user_id
	JOIN AFW_LDAP ldap ON ldap.id = u.user_authentication_id 
	WHERE NOT EXISTS (
		SELECT id 
		FROM AMDM_DEVICE 
		WHERE enrollmentrecord_id = penr_id
			AND status_id <> 0
	)
	AND p.penr_statusid = 0
	AND p.penr_expirydate > GETDATE()
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_ALLDEVICELISTMIN]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_ALLDEVICELISTMIN]
AS 
	/*====================================================================================================================================================================================*/
	/* SELECT #1: Eleccion de los dispositivos que ya estan en el sistema                                                                                                                 */
	/*====================================================================================================================================================================================*/

	SELECT 
       d.id AS [INDX]
	  , d.uniquedeviceidentifier AS [UDI]
      , d.id AS [DeviceId]
      , ISNULL(d.name, '????' + u.[user_name]) AS [DeviceName]
      , ISNULL(plat.platf_id, 0) AS [PlatformId]
      , plat.platf_name	AS [PlatformName]
	  , dbo.FUN_AMDM_GETSTATUS(d.status_id,p.penr_statusid ,p.penr_expirydate) AS [DeviceStatus]
	  , d.policy_id AS [PolicyId]
	  , CAST(ISNULL(kf.value, 0) AS BIT) AS isInKiosk
	  , CAST(ISNULL(mf.value, 0) AS BIT) AS metricsEnabled
	  , CAST(ISNULL(hdf.value, 0) AS BIT) AS healthDeviceEnabled
	  
	FROM AMDM_DEVICE d
	JOIN AMDM_PENDINGENROLL p ON d.enrollmentrecord_id = p.penr_id
    JOIN AFW_USERS u ON d.user_id = u.[user_id]
    JOIN AMDM_DEVICEPLATFORM plat ON plat.platf_id = d.platform_id
	LEFT JOIN AMDM_DEVICEFLAGS kf ON kf.device_id = d.id
		AND kf.flag_id = 1
	LEFT JOIN AMDM_DEVICEFLAGS mf ON mf.device_id = d.id
		AND mf.flag_id = 2
	LEFT JOIN AMDM_DEVICEFLAGS hdf ON hdf.device_id = d.id
		AND hdf.flag_id = 4

	UNION ALL
	/*====================================================================================================================================================================================*/
	/* SELECT #2: Seleccionar registros de vinculación activos que no estén atados a ningún dispositivo                                                                                   */
	/*====================================================================================================================================================================================*/

	SELECT
       p.penr_id * (-1)	AS [INDX]
	  , NULL AS [UDI]
      , NULL AS [DeviceId]
      , ISNULL([penr_devicename], '????' + u.[user_name]) AS [DeviceName]
	  , 0 AS [PlatformId]
      , CASE WHEN penr_platformid = 1 THEN 'Android' WHEN penr_platformid = 4 THEN 'iOS' ELSE 'NotDefined' END AS [PlatformName]
	  , 1 /*DEV_STATUS=PENDING*/ AS [DeviceStatus]
	  , NULL AS [PolicyId]
	  , NULL AS isInKiosk
	  , NULL AS metricsEnabled
	  , NULL AS healthDeviceEnabled
	   
	FROM [AMDM_PENDINGENROLL] p
	JOIN AFW_USERS u   ON p.penr_mobileuserid = u.[user_id]
	WHERE NOT EXISTS
	(
		SELECT id 
		FROM AMDM_DEVICE 
		WHERE enrollmentrecord_id = penr_id and status_id<>0
	)
	AND p.penr_statusid = 0 AND p.penr_expirydate > GETDATE()
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_ALLIDENTIFIEDDEVICELIST]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_ALLIDENTIFIEDDEVICELIST]
AS 
/*====================================================================================================================================================================================*/
/* SELECT #1: Eleccion de los dispositivos que ya estan en el sistema                                                                                                                 */
/*====================================================================================================================================================================================*/

SELECT 
		d.id AS [INDX]
		,d.uniquedeviceidentifier AS [UDI]
		,d.companyowned AS [CorporateOwned]
		,u.user_email AS [Email]
		,dbo.FUN_AMDM_GETSTATUS(d.status_id, p.penr_statusid, p.penr_expirydate) AS [DeviceStatus]
		,p.[penr_platformid] AS [Platform]
		,d.id AS [DeviceId]
		,ISNULL(d.name, '????' + u.[user_name]) AS [DeviceName]
		,d.serialnumber AS [DeviceSerialNumber]
		,d.imei AS [IMEI]
		,ISNULL(hw.devh_devicemanufacturer, 'NotDefined') AS [Manufacturer]
		,d.model AS [Model]
		,d.osversion AS [OsVersion]
		,ISNULL(d.devicetype, 'NotDefined') AS [Type]
		,u.user_name AS [UserFullName]
		,CASE WHEN d.policy_id IS NULL OR d.status_id <> 0 THEN -1 WHEN ISNULL(pfp.total, 0) = 0 THEN 1 ELSE 0 END AS [Fulfillment]
		,d.androidforworktokenset AS androidfwtokenset
		,ISNULL(d.androidforworkmode_id,0) AS afwmodeid,
		d.lostmode AS lostmode,
		CAST(ISNULL(mf.value, 0) AS BIT) AS metricsEnabled
	FROM AMDM_DEVICE d
	LEFT JOIN AMDM_PENDINGENROLL p ON d.enrollmentrecord_id = p.penr_id
	JOIN AFW_USERS u ON d.user_id = u.user_id
	JOIN AFW_LDAP ldap ON ldap.id = u.user_authentication_id
	LEFT JOIN AMDM_DEVICEHARDWARE hw ON hw.devh_id = d.devicehardware_id
	LEFT JOIN AMDM_DEVICEFLAGS mf ON mf.device_id = d.id
		AND mf.flag_id = 2
	LEFT JOIN (
		SELECT
			COUNT(1) AS total,
			fulfilledprom_deviceid
		FROM AMDM_POLICYFULFILLMENTPROBLEM
		GROUP BY fulfilledprom_deviceid
	) AS pfp ON d.id = pfp.fulfilledprom_deviceid

	UNION ALL
	/*====================================================================================================================================================================================*/
	/* SELECT #2: Seleccionar registros de vinculación activos que no estén atados a ningún dispositivo */
	/*====================================================================================================================================================================================*/

	SELECT
		p.penr_id * (-1) AS [INDX] 
		, NULL AS [UDI]
		, [penr_companyowned] AS [CorporateOwned]
		, u.user_email AS [Email]
		, 1 /*DEV_STATUS=PENDING*/ AS [DeviceStatus]
		, ISNULL([penr_platformid],0) AS [Platform]
		, NULL AS [DeviceId]
		, ISNULL([penr_devicename], '????' + u.[user_name]) AS [DeviceName]
		, NULL AS [DeviceSerialNumber]
		, NULL AS [IMEI]
		, 'NotDefined' AS [Manufacturer]
		, NULL AS [Model]
		, NULL AS [OsVersion]
		, 'NotDefined' AS [Type]
		, u.user_name AS [UserFullName]
		, -1 AS [Fulfillment]
		, 0 AS androidfwtokenset
		, 0 AS afwmodeid
		, NULL AS lostmode
		, NULL AS metricsEnabled
	FROM [AMDM_PENDINGENROLL] p
	JOIN AFW_USERS u ON p.penr_mobileuserid = u.user_id
	JOIN AFW_LDAP ldap ON ldap.id = u.user_authentication_id 
	WHERE NOT EXISTS (
		SELECT id 
		FROM AMDM_DEVICE 
		WHERE enrollmentrecord_id = penr_id
			AND status_id <> 0
	)
	AND p.penr_statusid = 0
	AND p.penr_expirydate > GETDATE()
GO
PRINT N'Creating View [dbo].[VIEW_AMDM_DEVICELIST]...';


GO
CREATE VIEW [dbo].[VIEW_AMDM_DEVICELIST]
AS 
	/*====================================================================================================================================================================================*/
	/* SELECT #1: Eleccion de los dispositivos que ya estan en el sistema */
	/*====================================================================================================================================================================================*/
	SELECT 
		 d.id AS [INDX]
		,d.uniquedeviceidentifier AS [UDI]
		,d.id AS [DeviceId]
		,ISNULL(d.name, '????' + u.[user_name]) AS [DeviceName]
		,ISNULL(d.serialnumber,hw.devh_serialnumber) AS [DeviceSerialNumber]
		,dbo.FUN_AMDM_GETSTATUS(d.status_id, p.penr_statusid, p.penr_expirydate) AS [DeviceStatus]
		,u.user_email AS [Email]
		,ISNULL(d.enrollmentdate, p.[penr_requestdate]) AS [EnrollmentDate]
		,d.imei AS [IMEI]
		,p.[penr_requestdate] AS [EnrollRequestDate] 
		,d.lastreported AS [LastReport]
		,p.[penr_expirydate] AS [ExpiryDate]
		,d.lastupdatehw AS [LastUpdate_HW]
		,d.lastupdateloc AS [LastUpdate_Location]
		,d.lastupdatenw AS [LastUpdate_NW]
		,d.lastupdatesw AS [LastUpdate_SW]
		,CASE WHEN CAST(ISNULL(kf.value, 0) AS BIT) = 0 THEN 'normal' ELSE 'kiosk' END AS [Mode]
		,d.model AS [Model]
		,d.phonenumber AS [PhoneNumber]
		,pol.policy_policyname AS [PolicyName]
		,ISNULL(d.devicetype, 'NotDefined') AS [Type]
		,u.user_name AS [UserFullName]
		,ldap.name + '\' + u.user_nick_name AS [UserName]
		,d.androidforworktokenset AS androidfwtokenset
		,ISNULL(d.androidforworkmode_id,0) AS afwmodeid
		,d.companyowned AS [CorporateOwned]
		,flags.penrf_iosauthenticated AS [iosauthenticated]
		,flags.penrf_iostokenupdated AS [iostokenupdated]
		,flags.penrf_iosappauthenticated AS [iosappauthenticated]
		,flags.penrf_iosapptermsaccepted AS [iosapptermsaccepted]
		,flags.penrf_iosappapnstokenupdated AS [iosappapnstokenupdated]
		,flags.penrf_androidappauthenticated AS [androidappauthenticated]
		,flags.penrf_androidapptermsaccepted AS [androidapptermsaccepted]
		,flags.penrf_androidappadminaccepted AS [androidappadminaccepted]
		,flags.penrf_androidappgcmidupdated AS [androidappgcmidupdated]
		,flags.penrf_iosprofiledownloaded AS [iosprofiledownloaded]
		,flags.penrf_iosappdownloaded AS [iosappdownloaded]
		,flags.penrf_androidappdownloaded AS [androidappdownloaded]
		,flags.penrf_dispatchertermsaccepted AS [dispatchertermsaccepted]
		,p.[penr_enrollmentcode] AS [EnrollmentCode]
		,p.[penr_platformid] AS [Platform]
		,ISNULL(hw.devh_devicemanufacturer, 'NotDefined') AS [Manufacturer]
		,d.osversion AS [OsVersion]
		,CASE WHEN d.apnsapppushtoken IS NOT NULL OR d.windowsappchanneluri IS NOT NULL OR d.gcmregistrationid IS NOT NULL THEN 1 ELSE 0 END AS appIsEnrolled
		,d.lostmode AS lostmode
		,CASE WHEN d.policy_id IS NULL OR d.status_id <> 0 THEN -1 WHEN ISNULL(pfp.total, 0) = 0 THEN 1 ELSE 0 END AS [Fulfillment]
		,CAST(ISNULL(hdf.value, 0) AS BIT) AS healthDeviceEnabled
		,d.latitude AS [Latitude]
		,d.longitude AS [Longitude]
		,CAST(ISNULL(mf.value, 0) AS BIT) AS metricsEnabled
	FROM AMDM_DEVICE d
	LEFT JOIN AMDM_PENDINGENROLL p ON d.enrollmentrecord_id = p.penr_id
	LEFT JOIN AMDM_PENDINGENROLLFLAGS flags ON flags.penrf_id = p.penr_idenrollmentflags
	JOIN AFW_USERS u ON d.user_id = u.user_id
	JOIN AFW_LDAP ldap ON ldap.id = u.user_authentication_id
	LEFT JOIN AMDM_DEVICEHARDWARE hw ON hw.devh_id = d.devicehardware_id
	LEFT JOIN AMDM_POLICY pol ON pol.policy_id = d.policy_id
	LEFT JOIN AMDM_DEVICESTATUS s ON s.devstat_id = dbo.FUN_AMDM_GETSTATUS(d.status_id, p.penr_statusid, p.penr_expirydate)
	JOIN AMDM_DEVICEPLATFORM dp ON dp.platf_id = d.platform_id
	LEFT JOIN AMDM_DEVICEFLAGS kf ON kf.device_id = d.id
		AND kf.flag_id = 1
	LEFT JOIN AMDM_DEVICEFLAGS mf ON mf.device_id = d.id
		AND mf.flag_id = 2
	LEFT JOIN AMDM_DEVICEFLAGS hdf ON hdf.device_id = d.id
		AND hdf.flag_id = 4
	LEFT JOIN (
		SELECT
			COUNT(1) AS total,
			fulfilledprom_deviceid
		FROM AMDM_POLICYFULFILLMENTPROBLEM
		GROUP BY fulfilledprom_deviceid
	) AS pfp ON d.id = pfp.fulfilledprom_deviceid

	UNION ALL
	/*====================================================================================================================================================================================*/
	/* SELECT #2: Seleccionar registros de vinculaci�n activos que no est�n atados a ning�n dispositivo */
	/*====================================================================================================================================================================================*/
	SELECT
		p.penr_id * (-1) AS [INDX] 
		, NULL AS [UDI]
		, NULL AS [DeviceId]
		, ISNULL([penr_devicename], '????' + u.[user_name]) AS [DeviceName]
		, NULL AS [DeviceSerialNumber]
		, 1 /*DEV_STATUS=PENDING*/ AS [DeviceStatus]
		, u.user_email AS [Email]
		, NULL AS [EnrollmentDate]
		, NULL AS [IMEI]
		, [penr_requestdate] AS [EnrollRequestDate]
		, NULL AS [LastReport]
		, [penr_expirydate] AS [ExpiryDate]
		, NULL AS [LastUpdate_HW]
		, NULL AS [LastUpdate_Location]
		, NULL AS [LastUpdate_NW]
		, NULL AS [LastUpdate_SW]
		, NULL AS [Mode]
		, NULL AS [Model]
		, NULL AS [PhoneNumber]
		, NULL AS [PolicyName]
		, 'NotDefined' AS [Type]
		, u.user_name AS [UserFullName]
		, ldap.name + '\' + u.user_nick_name AS [UserName]
		, 0 AS androidfwtokenset
		, 0 AS afwmodeid
		, [penr_companyowned] AS [CorporateOwned]
		, flags.penrf_iosauthenticated AS [iosauthenticated]
		, flags.penrf_iostokenupdated AS [iostokenupdated]
		, flags.penrf_iosappauthenticated AS [iosappauthenticated]
		, flags.penrf_iosapptermsaccepted AS [iosapptermsaccepted]
		, flags.penrf_iosappapnstokenupdated AS [iosappapnstokenupdated]
		, flags.penrf_androidappauthenticated AS [androidappauthenticated]
		, flags.penrf_androidapptermsaccepted AS [androidapptermsaccepted]
		, flags.penrf_androidappadminaccepted AS [androidappadminaccepted]
		, flags.penrf_androidappgcmidupdated AS [androidappgcmidupdated]
		, flags.penrf_iosprofiledownloaded AS [iosprofiledownloaded]
		, flags.penrf_iosappdownloaded AS [iosappdownloaded]
		, flags.penrf_androidappdownloaded AS [androidappdownloaded]
		, flags.penrf_dispatchertermsaccepted AS [dispatchertermsaccepted]
		, [penr_enrollmentcode] AS [EnrollmentCode]
		, ISNULL([penr_platformid],0) AS [Platform]
		, 'NotDefined' AS [Manufacturer]
		, NULL AS [OsVersion]
		, 0 AS appIsEnrolled
		, NULL AS lostmode
		, -1 AS [Fulfillment]
		, NULL AS healthDeviceEnabled
		, NULL AS [Latitude]
		, NULL AS [Longitude]
		, NULL AS [metricsEnabled]
	FROM [AMDM_PENDINGENROLL] p
	JOIN AMDM_PENDINGENROLLFLAGS flags ON flags.penrf_id = p.penr_idenrollmentflags
	JOIN AFW_USERS u ON p.penr_mobileuserid = u.user_id
	JOIN AFW_LDAP ldap ON ldap.id = u.user_authentication_id 
	WHERE NOT EXISTS (
		SELECT id 
		FROM AMDM_DEVICE 
		WHERE enrollmentrecord_id = penr_id
			AND status_id <> 0
	)
	AND p.penr_statusid = 0
	AND p.penr_expirydate > GETDATE()
GO
PRINT N'Creating Function [dbo].[CompareVersionNumbers]...';


GO

CREATE FUNCTION [dbo].[CompareVersionNumbers]
(
    @Source nvarchar(max),
    @Target nvarchar(max),
    @Parts int = 4
)
RETURNS INT
AS
BEGIN
/*
-1 : target has higher version number (later version)
0 : same
1 : source has higher version number (later version)
*/ 
    DECLARE @ReturnValue int
	SET @ReturnValue = 0
    DECLARE @PartIndex int
	SET @PartIndex = 1
    DECLARE @SourcePartValue int
	SET @SourcePartValue = 0
    DECLARE @TargetPartValue int
	SET @TargetPartValue = 0
    WHILE (@PartIndex <= @Parts AND @ReturnValue = 0)
    BEGIN
        SET @SourcePartValue = [dbo].[VersionNthPart](@Source, @PartIndex);
        SET @TargetPartValue = [dbo].[VersionNthPart](@Target, @PartIndex);
        IF @SourcePartValue > @TargetPartValue
            SET @ReturnValue = 1
        ELSE IF @SourcePartValue < @TargetPartValue
            SET @ReturnValue = -1
        SET @PartIndex = @PartIndex + 1;
    END
    RETURN @ReturnValue
END
GO
PRINT N'Creating Function [dbo].[FUN_AMDM_COMPAREVERSIONS]...';


GO
CREATE FUNCTION [dbo].[FUN_AMDM_COMPAREVERSIONS]
(
    @appVersion		nvarchar(32),
    @devSwVersion	nvarchar(32)
)
RETURNS INT
AS
BEGIN
/* Valores de retorno
-1 : Si la versión de la app instalada en el dispositivo (devSw) es mayor a la versión de la app en el catálogo (app)
0  : Si la versión de la app instalada en el dispositivo (devSw) es igual a la versión de la app en el catálogo (app)
1  : Si la versión de la app instalada en el dispositivo (devSw) es menor a la versión de la app en el catálogo (app)
*/
	DECLARE @parts INT
    DECLARE @result INT = 0;
    DECLARE @partIndex INT = 1;
    DECLARE @appVersionPartValue NVARCHAR(32) = '0';
    DECLARE @devSwVersionPartValue NVARCHAR(32) = '0';

	SET @parts = [dbo].[FUN_AMDM_GETVERSIONSPARTS](@appVersion, @devSwVersion)


    WHILE (@partIndex <= @parts AND @result = 0)
    BEGIN
        SET @appVersionPartValue   = [dbo].[FUN_AMDM_GETVERSIONPARTVALUE](@appVersion, @partIndex);
        SET @devSwVersionPartValue = [dbo].[FUN_AMDM_GETVERSIONPARTVALUE](@devSwVersion, @partIndex);
        
		IF @appVersionPartValue > @devSwVersionPartValue
			SET @result = 1
        ELSE IF @devSwVersionPartValue > @appVersionPartValue
            SET @result = -1
        
		SET @partIndex = @partIndex + 1;
    END
    RETURN @result
END
GO
PRINT N'Creating Foreign Key [dbo].[FK01_ASMS_TIMES_DATA]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_DATA] WITH NOCHECK
    ADD CONSTRAINT [FK01_ASMS_TIMES_DATA] FOREIGN KEY ([time_id]) REFERENCES [dbo].[ASMS_TIMES] ([id]);


GO
PRINT N'Creating Foreign Key [dbo].[FK02_ASMS_TIMES_DATA]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_DATA] WITH NOCHECK
    ADD CONSTRAINT [FK02_ASMS_TIMES_DATA] FOREIGN KEY ([type_agree]) REFERENCES [dbo].[ASMS_TYPES] ([id]);


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_TIMES_DATA]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_DATA]
    ADD DEFAULT ((0)) FOR [status_type];


GO
PRINT N'Creating Default Constraint unnamed constraint on [dbo].[ASMS_TIMES_DATA]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_DATA]
    ADD DEFAULT (0) FOR [recalculate_date];


GO
PRINT N'Creating Default Constraint [dbo].[DF_ASMS_TIMES_DATA_type_id]...';


GO
ALTER TABLE [dbo].[ASMS_TIMES_DATA]
    ADD CONSTRAINT [DF_ASMS_TIMES_DATA_type_id] DEFAULT ((0)) FOR [time_type_id];


GO
PRINT N'Creating View [dbo].[V_CLIENT_DEVICE_HARDWARE]...';


GO
CREATE VIEW [V_CLIENT_DEVICE_HARDWARE]
AS

											SELECT
			DEV.id										AS[view_device_id],
			VIEW_HARD.hardware_id						AS[view_hardware_id]

		FROM AAM_DEVICE DEV
			JOIN AAM_DEVICE_NETWORKADAPTER NET ON DEV.id = NET.device_id
			JOIN V_CLIENT_HARDWARE_SUMMARY VIEW_HARD ON NET.id = VIEW_HARD.type_hardware_id AND VIEW_HARD.hardware_type = 0

	UNION ALL

		SELECT
			DEV.id										AS[view_device_id],
			VIEW_HARD.hardware_id						AS[view_hardware_id]

		FROM AAM_DEVICE DEV
			JOIN AAM_DEVICE_BIOS BIOS ON DEV.id = BIOS.device_id
			JOIN V_CLIENT_HARDWARE_SUMMARY VIEW_HARD ON BIOS.bios_id = VIEW_HARD.type_hardware_id AND VIEW_HARD.hardware_type = 1

	UNION ALL

		SELECT
			DEV.id										AS[view_device_id],
			VIEW_HARD.hardware_id						AS[view_hardware_id]

		FROM AAM_DEVICE DEV
			JOIN AAM_DEVICE_DISK DEV_DISK ON DEV.id = DEV_DISK.device_id
			JOIN V_CLIENT_HARDWARE_SUMMARY VIEW_HARD ON DEV_DISK.disk_id = VIEW_HARD.type_hardware_id AND VIEW_HARD.hardware_type = [dbo].[FUN_AAM_DISK_TYPE](media_type)

	UNION ALL

		SELECT
			DEV.id										AS[view_device_id],
			VIEW_HARD.hardware_id						AS[view_hardware_id]

		FROM AAM_DEVICE DEV
			JOIN AAM_DEVICE_DRIVER DRIVER ON DEV.id = DRIVER.device_id
			JOIN V_CLIENT_HARDWARE_SUMMARY VIEW_HARD ON DRIVER.driver_id	 = VIEW_HARD.type_hardware_id AND VIEW_HARD.hardware_type = 3

	UNION ALL

		SELECT
			DEV.id										AS[view_device_id],
			VIEW_HARD.hardware_id						AS[view_hardware_id]

		FROM AAM_DEVICE DEV
			JOIN AAM_DEVICE_PRINTER PRIN ON DEV.id = PRIN.device_id
			JOIN V_CLIENT_HARDWARE_SUMMARY VIEW_HARD ON PRIN.driver_id	 = VIEW_HARD.type_hardware_id AND VIEW_HARD.hardware_type = 5

	UNION ALL

		SELECT
			DEV.id										AS[view_device_id],
			VIEW_HARD.hardware_id						AS[view_hardware_id]

		FROM AAM_DEVICE DEV
			JOIN AAM_DEVICE_MEMORYSLOT MEMORY ON DEV.id = MEMORY.device_id
			JOIN V_CLIENT_HARDWARE_SUMMARY VIEW_HARD ON MEMORY.memory_id	 = VIEW_HARD.type_hardware_id AND VIEW_HARD.hardware_type = 6

	UNION ALL

		SELECT
			DEV.id										AS[view_device_id],
			VIEW_HARD.hardware_id						AS[view_hardware_id]

		FROM AAM_DEVICE DEV
			JOIN AAM_DEVICE_DISPLAY DISPLAY ON DEV.id = DISPLAY.device_id
			JOIN V_CLIENT_HARDWARE_SUMMARY VIEW_HARD ON DISPLAY.display_id	 = VIEW_HARD.type_hardware_id AND VIEW_HARD.hardware_type = 7

	UNION ALL

		SELECT
			DEV.id										AS[view_device_id],
			VIEW_HARD.hardware_id						AS[view_hardware_id]

		FROM AAM_DEVICE DEV
			JOIN AAM_DEVICE_PROCESSORSLOT PROCESS ON DEV.id = PROCESS.device_id
			JOIN V_CLIENT_HARDWARE_SUMMARY VIEW_HARD ON PROCESS.processor_id	 = VIEW_HARD.type_hardware_id AND VIEW_HARD.hardware_type = 8

	UNION ALL

		SELECT
			DEV.id										AS[view_device_id],
			VIEW_HARD.hardware_id						AS[view_hardware_id]

		FROM AAM_DEVICE DEV
			JOIN AAM_DEVICE_KEYBOARD KEYB ON DEV.id = KEYB.device_id
			JOIN V_CLIENT_HARDWARE_SUMMARY VIEW_HARD ON KEYB.keyboard_id	 = VIEW_HARD.type_hardware_id AND VIEW_HARD.hardware_type = 9

	UNION ALL

		SELECT
			DEV.id										AS[view_device_id],
			VIEW_HARD.hardware_id						AS[view_hardware_id]

		FROM AAM_DEVICE DEV
			JOIN AAM_DEVICE_VIDEOCARD VID ON DEV.id = VID.device_id
			JOIN V_CLIENT_HARDWARE_SUMMARY VIEW_HARD ON VID.videocard_id	 = VIEW_HARD.type_hardware_id AND VIEW_HARD.hardware_type = 10
GO
PRINT N'Creating Function [adw].[FUN_ASMS_FIELD_VALUE]...';


GO
CREATE FUNCTION [adw].[FUN_ASMS_FIELD_VALUE](
	@i_item_type INT,
	@i_item_id INT,
	@i_field_name NVARCHAR(100)
) RETURNS TABLE AS
RETURN (
	SELECT
		fd.field_value
	FROM
		adw.ASMS_FIELDS_DATA fd
		JOIN dbo.ASMS_FIELDS f ON f.id = fd.field_id
	WHERE
		fd.item_type_id = @i_item_type
		AND fd.item_id = @i_item_id
		AND f.name = @i_field_name
);
GO
PRINT N'Creating Function [dbo].[ExplodeDates]...';


GO

CREATE FUNCTION [dbo].[ExplodeDates](
    @startdate datetime, 
    @enddate datetime
)
returns table as
return (
with 
 N0 as (SELECT 1 as n UNION ALL SELECT 1)
,N1 as (SELECT 1 as n FROM N0 t1, N0 t2)
,N2 as (SELECT 1 as n FROM N1 t1, N1 t2)
,N3 as (SELECT 1 as n FROM N2 t1, N2 t2)
,N4 as (SELECT 1 as n FROM N3 t1, N3 t2)
,N5 as (SELECT 1 as n FROM N4 t1, N4 t2)
,N6 as (SELECT 1 as n FROM N5 t1, N5 t2)
,nums as (SELECT ROW_NUMBER() OVER (ORDER BY (SELECT 1)) as num FROM N6)
SELECT DATEADD(day,num-1,@startdate) as thedate
FROM nums
WHERE num <= DATEDIFF(day,@startdate,@enddate) + 1
);
GO
PRINT N'Creating Function [dbo].[ExplodeDatesMonth]...';


GO
create FUNCTION [dbo].[ExplodeDatesMonth](
	@startdate datetime, 
	@enddate datetime
)
returns table as
return (

	WITH cte AS 
	(
		SELECT dt = DATEADD(DAY, -(DAY(@startdate) - 1), @startdate)

		UNION ALL

		SELECT DATEADD(MONTH, 1, dt)
		FROM cte
		WHERE dt < DATEADD(DAY, -(DAY(@enddate) - 1), @enddate)
	)
	SELECT CONVERT(CHAR(4), dt, 100) + CONVERT(CHAR(4), dt, 120) AS THEDATE 
	FROM cte
);
GO
PRINT N'Creating View [dbo].[AFLS_CALENDAR_NEXT_EVENTS]...';


GO
CREATE VIEW [dbo].[AFLS_CALENDAR_NEXT_EVENTS]
AS
SELECT Row_number() 
         OVER( 
           ORDER BY start_date ASC) AS calevent_id, 
		T1.cale_id,
		T1.casc_day,
		T1.start_date,
		CASE WHEN T1.start_date > T1.end_date THEN DATEADD(DAY, 1, T1.end_date) ELSE T1.end_date END AS 'end_date',
		T1.duration 
FROM   (SELECT cale_id, 
               casc_day, 
               CONVERT(DATETIME, CONVERT(CHAR(8), DS.thedate, 112) + ' ' + CONVERT(CHAR(8), casc_hour_start, 108)) AS 'start_date', 
			   CONVERT(DATETIME, CONVERT(CHAR(8), DS.thedate, 112) + ' ' + CONVERT(CHAR(8), casc_hour_end, 108)) AS 'end_date',
               Datediff(mi, casc_hour_start, casc_hour_end) AS 'duration' 
        FROM   afls_calendar_schedule AS SCH 
               INNER JOIN (SELECT * 
                           FROM   dbo.Explodedates(Cast(Datename(yyyy, Getdate())-1 AS VARCHAR(4)) + '/' + Cast(Datepart(mm, Getdate()) AS VARCHAR(2)) + '/' + '01', 
                                  Cast(Datename(yyyy, Getdate())+1 AS VARCHAR(4)) + '/' + Cast(Datepart(mm, Getdate()) AS VARCHAR(2)) + '/' + '01') AS d) AS DS 
                       ON SCH.casc_day = Datepart(dw, DS.thedate) 
        WHERE  DS.thedate NOT IN (SELECT caex_date 
                                  FROM   afls_calendar_exception 
                                  WHERE  cale_id = SCH.cale_id)) AS T1
GO
PRINT N'Creating Function [dbo].[FUN_AFW_SPLIT]...';


GO
CREATE FUNCTION [dbo].[FUN_AFW_SPLIT]
(
	@value		NVARCHAR(MAX),
	@character	NVARCHAR(5)
)  
RETURNS @table table 
(
	Id		INT IDENTITY(1,1),
	[Data]	NVARCHAR(4000)
) 
AS  
BEGIN 
	DECLARE
		@cnt INT;

	SET	@cnt = 1;

	WHILE (CHARINDEX(@character, @value) > 0)
	BEGIN
		INSERT INTO @table (
			Data
		)
		VALUES (
			LTRIM(RTRIM(SUBSTRING(@value, 1, CHARINDEX(@character, @value)-1)))
		);

		SET @value = SUBSTRING(@value, CHARINDEX(@character, @value) + 1, LEN(@value));
		SET @cnt = @cnt + 1;

	END;
	
	INSERT INTO @table (
		Data
	) VALUES (
		LTRIM(RTRIM(@value))
	);

	RETURN;

END;
GO
PRINT N'Creating Function [dbo].[FUN_AMDM_SPLITSTRING]...';


GO
CREATE FUNCTION [dbo].[FUN_AMDM_SPLITSTRING] 
( 
    @string NVARCHAR(MAX), 
    @delimiter CHAR(1) 
) 
RETURNS @output TABLE(id NVARCHAR(32)) 
BEGIN 
    DECLARE @start INT, @end INT 
    SELECT @start = 1, @end = CHARINDEX(@delimiter, @string) 
    WHILE @start < LEN(@string) + 1 BEGIN 
        IF @end = 0  
            SET @end = LEN(@string) + 1
       
        INSERT INTO @output (id)  
        VALUES(SUBSTRING(@string, @start, @end - @start)) 
        SET @start = @end + 1 
        SET @end = CHARINDEX(@delimiter, @string, @start)
        
    END 
    RETURN 
END
GO
PRINT N'Creating Function [dbo].[FUN_AQM_GET_TREE]...';


GO
CREATE FUNCTION [dbo].[FUN_AQM_GET_TREE] (
	@i_root_folder INT,
	@i_document_type INT
) RETURNS @v_folders TABLE (
	fold_id INT,
	doc_count INT
) AS
BEGIN
	DECLARE @v_afw_folder TABLE (
		fold_id INT,
		fold_parent INT,
		doc_count INT
	);

	WITH cte_child_folders AS (
		SELECT
			fl.fold_id,
			fl.fold_parent
		FROM AFW_FOLDER fl
		WHERE fl.fold_application_id = 29
			AND fl.fold_id = @i_root_folder
		UNION ALL
		SELECT
			fl.fold_id,
			fl.fold_parent
		FROM AFW_FOLDER fl
		JOIN cte_child_folders cf ON cf.fold_id = fl.fold_parent
	)

	INSERT INTO @v_afw_folder (
		fold_id,
		fold_parent,
		doc_count
	)
	SELECT
		fl.fold_id,
		fl.fold_parent,
		ISNULL(dc.doc_count, 0)
	FROM AFW_FOLDER fl
	JOIN cte_child_folders cf ON cf.fold_id = fl.fold_id
	LEFT JOIN (
		SELECT
			dc.docu_parent_id,
			COUNT(1) doc_count
		FROM AFW_DOCUMENT dc 
		LEFT JOIN AQM_DOCUMENT dm ON dm.DocumentId = dc.docu_id
		WHERE dm.IsPublished = 1
			AND dm.Type = @i_document_type
		GROUP BY
			dc.docu_parent_id
	) dc ON dc.docu_parent_id = fl.fold_id;

	WITH cte_folders AS (
		SELECT
			fl.fold_id,
			fl.fold_parent,
			fl.doc_count
		FROM @v_afw_folder fl
		WHERE NOT EXISTS (
			SELECT *
			FROM @v_afw_folder cf
			WHERE cf.fold_parent = fl.fold_id
		)
		UNION ALL
		SELECT
			tf.fold_id,
			tf.fold_parent,
			tf.doc_count + cf.doc_count
		FROM @v_afw_folder tf
		JOIN cte_folders cf ON cf.fold_parent = tf.fold_id
	)

	INSERT INTO @v_folders (
		fold_id,
		doc_count
	)
	SELECT
		fold_id,
		SUM(doc_count) doc_count
	FROM cte_folders
	GROUP BY
		fold_id;

	RETURN;

END;
GO
PRINT N'Creating Function [dbo].[FUN_AQM_TREE_SEARCH]...';


GO
CREATE FUNCTION [dbo].[FUN_AQM_TREE_SEARCH] (
	@i_search_text NVARCHAR(4000),
	@i_root_folder INT,
	@i_document_type INT
) RETURNS @t_ret TABLE (
	Id INT,
	InternalId INT,
	ParentNode INT,
	Type CHAR(3),
	Name NVARCHAR(255),
	Sequence INT
) AS
BEGIN
	WITH cte_found AS (
		SELECT
			fl.fold_id AS node_id,
			fl.fold_id AS internal_node_id,
			fl.fold_parent AS node_parent,
			'fld' AS node_type,
			fl.fold_name AS node_name,
			fl.fold_order AS node_order,
			tf.doc_count,
			1 AS lvl
		FROM AFW_FOLDER fl
		JOIN dbo.FUN_AQM_GET_TREE(@i_root_folder, @i_document_type) tf ON tf.fold_id = fl.fold_id
		WHERE CONTAINS(fold_name, @i_search_text)
			OR FREETEXT(fold_name, @i_search_text)
		UNION ALL
		SELECT
			dm.Id node_id,
			dc.docu_id node_id,
			dc.docu_parent_id node_parent,
			'doc' node_type,
			dc.docu_name node_name,
			NULL node_order,
			0 doc_count,
			1 lvl
		FROM AFW_DOCUMENT dc
		JOIN AQM_DOCUMENT dm ON dm.DocumentId = dc.docu_id
		JOIN dbo.FUN_AQM_GET_TREE(@i_root_folder, @i_document_type) fd ON fd.fold_id = dc.docu_parent_id
		WHERE dm.IsPublished = 1
			AND dm.Type = @i_document_type
			AND (
				CONTAINS((dc.docu_name, dc.docu_description), @i_search_text)
				OR FREETEXT((dc.docu_name, dc.docu_description), @i_search_text)
			)
		UNION ALL
		SELECT
			fl.fold_id,
			fl.fold_id,
			fl.fold_parent,
			'fld',
			CONVERT(NVARCHAR(255), fl.fold_name),
			fl.fold_order,
			tf.doc_count,
			lvl + 1
		FROM AFW_FOLDER fl
		JOIN cte_found fn ON fn.node_parent = fl.fold_id
		JOIN dbo.FUN_AQM_GET_TREE(@i_root_folder, @i_document_type) tf ON tf.fold_id = fl.fold_id
	)

	INSERT INTO @t_ret (
		Id,
		InternalId,
		ParentNode,
		Type,
		Name,
		Sequence
	)
	SELECT DISTINCT
		node_id AS Id,
		internal_node_id AS InternalId,
		node_parent AS ParentNode,
		node_type AS Type,
		node_name AS Name,
		node_order AS Sequence
	FROM cte_found f
	WHERE doc_count > 0
		AND f.node_id != @i_root_folder
		AND node_type = 'fld'
		OR node_type = 'doc';

	RETURN;

END;
GO
PRINT N'Creating Function [dbo].[FUN_SPLIT_STRING]...';


GO
CREATE FUNCTION dbo.FUN_SPLIT_STRING 
( 
    @stringToSplit VARCHAR(MAX), 
    @delim CHAR
)
RETURNS
 @returnList TABLE ([value] [nvarchar] (500))
AS
BEGIN

 DECLARE @value NVARCHAR(255)
 DECLARE @pos INT

 WHILE CHARINDEX(@delim, @stringToSplit) > 0
 BEGIN
  SELECT @pos  = CHARINDEX(@delim, @stringToSplit)  
  SELECT @value = SUBSTRING(@stringToSplit, 1, @pos-1)

  INSERT INTO @returnList 
  SELECT @value

  SELECT @stringToSplit = SUBSTRING(@stringToSplit, @pos+1, LEN(@stringToSplit)-@pos)
 END

 INSERT INTO @returnList
 SELECT @stringToSplit

 RETURN
END
GO
PRINT N'Creating Function [dbo].[parseJSON]...';


GO
CREATE FUNCTION dbo.parseJSON( 
	@JSON NVARCHAR(MAX)
)
	RETURNS @hierarchy TABLE
	  (
	   element_id INT IDENTITY(1, 1) NOT NULL, /* internal surrogate primary key gives the order of parsing and the list order */
	   sequenceNo [int] NULL, /* the place in the sequence for the element */
	   parent_ID INT,/* if the element has a parent then it is in this column. The document is the ultimate parent, so you can get the structure from recursing from the document */
	   Object_ID INT,/* each list or object has an object id. This ties all elements to a parent. Lists are treated as objects here */
	   NAME NVARCHAR(2000),/* the name of the object */
	   StringValue NVARCHAR(MAX) NOT NULL,/*the string representation of the value of the element. */
	   ValueType VARCHAR(10) NOT null /* the declared type of the value represented as a string in StringValue*/
	  )
	AS
	BEGIN
	  DECLARE
	    @FirstObject INT, --the index of the first open bracket found in the JSON string
	    @OpenDelimiter INT,--the index of the next open bracket found in the JSON string
	    @NextOpenDelimiter INT,--the index of subsequent open bracket found in the JSON string
	    @NextCloseDelimiter INT,--the index of subsequent close bracket found in the JSON string
	    @Type NVARCHAR(10),--whether it denotes an object or an array
	    @NextCloseDelimiterChar CHAR(1),--either a '}' or a ']'
	    @Contents NVARCHAR(MAX), --the unparsed contents of the bracketed expression
	    @Start INT, --index of the start of the token that you are parsing
	    @end INT,--index of the end of the token that you are parsing
	    @param INT,--the parameter at the end of the next Object/Array token
	    @EndOfName INT,--the index of the start of the parameter at end of Object/Array token
	    @token NVARCHAR(200),--either a string or object
	    @value NVARCHAR(MAX), -- the value as a string
	    @SequenceNo int, -- the sequence number within a list
	    @name NVARCHAR(200), --the name as a string
	    @parent_ID INT,--the next parent ID to allocate
	    @lenJSON INT,--the current length of the JSON String
	    @characters NCHAR(36),--used to convert hex to decimal
	    @result BIGINT,--the value of the hex symbol being parsed
	    @index SMALLINT,--used for parsing the hex value
	    @Escape INT --the index of the next escape character
	    
	  DECLARE @Strings TABLE /* in this temporary table we keep all strings, even the names of the elements, since they are 'escaped' in a different way, and may contain, unescaped, brackets denoting objects or lists. These are replaced in the JSON string by tokens representing the string */
	    (
	     String_ID INT IDENTITY(1, 1),
	     StringValue NVARCHAR(MAX)
	    )
	  SELECT--initialise the characters to convert hex to ascii
	    @characters='0123456789abcdefghijklmnopqrstuvwxyz',
	    @SequenceNo=0, --set the sequence no. to something sensible.
	  /* firstly we process all strings. This is done because [{} and ] aren't escaped in strings, which complicates an iterative parse. */
	    @parent_ID=0;
	  WHILE 1=1 --forever until there is nothing more to do
	    BEGIN
	      SELECT
	        @start=PATINDEX('%[^a-zA-Z]["]%', @json collate SQL_Latin1_General_CP850_Bin);--next delimited string
	      IF @start=0 BREAK --no more so drop through the WHILE loop
	      IF SUBSTRING(@json, @start+1, 1)='"' 
	        BEGIN --Delimited Name
	          SET @start=@Start+1;
	          SET @end=PATINDEX('%[^\]["]%', RIGHT(@json, LEN(@json+'|')-@start) collate SQL_Latin1_General_CP850_Bin);
	        END
	      IF @end=0 --no end delimiter to last string
	        BREAK --no more
	      SELECT @token=SUBSTRING(@json, @start+1, @end-1)
	      --now put in the escaped control characters
	      SELECT @token=REPLACE(@token, FROMString, TOString)
	      FROM
	        (SELECT
	          '\"' AS FromString, '"' AS ToString
	         UNION ALL SELECT '\\', '\'
	         UNION ALL SELECT '\/', '/'
	         UNION ALL SELECT '\b', CHAR(08)
	         UNION ALL SELECT '\f', CHAR(12)
	         UNION ALL SELECT '\n', CHAR(10)
	         UNION ALL SELECT '\r', CHAR(13)
	         UNION ALL SELECT '\t', CHAR(09)
	        ) substitutions
	      SELECT @result=0, @escape=1
	  --Begin to take out any hex escape codes
	      WHILE @escape>0
	        BEGIN
	          SELECT @index=0,
	          --find the next hex escape sequence
	          @escape=PATINDEX('%\x[0-9a-f][0-9a-f][0-9a-f][0-9a-f]%', @token collate SQL_Latin1_General_CP850_Bin)
	          IF @escape>0 --if there is one
	            BEGIN
	              WHILE @index<4 --there are always four digits to a \x sequence   
	                BEGIN
	                  SELECT --determine its value
	                    @result=@result+POWER(16, @index)
	                    *(CHARINDEX(SUBSTRING(@token, @escape+2+3-@index, 1),
	                                @characters)-1), @index=@index+1 ;
	         
	                END
	                -- and replace the hex sequence by its unicode value
	              SELECT @token=STUFF(@token, @escape, 6, NCHAR(@result))
	            END
	        END
	      --now store the string away 
	      INSERT INTO @Strings (StringValue) SELECT @token
	      -- and replace the string with a token
	      SELECT @JSON=STUFF(@json, @start, @end+1,
	                    '@string'+CONVERT(NVARCHAR(5), @@identity))
	    END
	  -- all strings are now removed. Now we find the first leaf.  
	  WHILE 1=1  --forever until there is nothing more to do
	  BEGIN
	 
	  SELECT @parent_ID=@parent_ID+1
	  --find the first object or list by looking for the open bracket
	  SELECT @FirstObject=PATINDEX('%[{[[]%', @json collate SQL_Latin1_General_CP850_Bin)--object or array
	  IF @FirstObject = 0 BREAK
	  IF (SUBSTRING(@json, @FirstObject, 1)='{') 
	    SELECT @NextCloseDelimiterChar='}', @type='object'
	  ELSE 
	    SELECT @NextCloseDelimiterChar=']', @type='array'
	  SELECT @OpenDelimiter=@firstObject
	  WHILE 1=1 --find the innermost object or list...
	    BEGIN
	      SELECT
	        @lenJSON=LEN(@JSON+'|')-1
	  --find the matching close-delimiter proceeding after the open-delimiter
	      SELECT
	        @NextCloseDelimiter=CHARINDEX(@NextCloseDelimiterChar, @json,
	                                      @OpenDelimiter+1)
	  --is there an intervening open-delimiter of either type
	      SELECT @NextOpenDelimiter=PATINDEX('%[{[[]%',
	             RIGHT(@json, @lenJSON-@OpenDelimiter)collate SQL_Latin1_General_CP850_Bin)--object
	      IF @NextOpenDelimiter=0 
	        BREAK
	      SELECT @NextOpenDelimiter=@NextOpenDelimiter+@OpenDelimiter
	      IF @NextCloseDelimiter<@NextOpenDelimiter 
	        BREAK
	      IF SUBSTRING(@json, @NextOpenDelimiter, 1)='{' 
	        SELECT @NextCloseDelimiterChar='}', @type='object'
	      ELSE 
	        SELECT @NextCloseDelimiterChar=']', @type='array'
	      SELECT @OpenDelimiter=@NextOpenDelimiter
	    END
	  ---and parse out the list or name/value pairs
	  SELECT
	    @contents=SUBSTRING(@json, @OpenDelimiter+1,
	                        @NextCloseDelimiter-@OpenDelimiter-1)
	  SELECT
	    @JSON=STUFF(@json, @OpenDelimiter,
	                @NextCloseDelimiter-@OpenDelimiter+1,
	                '@'+@type+CONVERT(NVARCHAR(5), @parent_ID))
	  WHILE (PATINDEX('%[A-Za-z0-9@+.e]%', @contents collate SQL_Latin1_General_CP850_Bin))<>0 
	    BEGIN
	      IF @Type='Object' --it will be a 0-n list containing a string followed by a string, number,boolean, or null
	        BEGIN
	          SELECT
	            @SequenceNo=0,@end=CHARINDEX(':', ' '+@contents)--if there is anything, it will be a string-based name.
	          SELECT  @start=PATINDEX('%[^A-Za-z@][@]%', ' '+@contents collate SQL_Latin1_General_CP850_Bin)--AAAAAAAA
	          SELECT @token=SUBSTRING(' '+@contents, @start+1, @End-@Start-1),
	            @endofname=PATINDEX('%[0-9]%', @token collate SQL_Latin1_General_CP850_Bin),
	            @param=RIGHT(@token, LEN(@token)-@endofname+1)
	          SELECT
	            @token=LEFT(@token, @endofname-1),
	            @Contents=RIGHT(' '+@contents, LEN(' '+@contents+'|')-@end-1)
	          SELECT  @name=stringvalue FROM @strings
	            WHERE string_id=@param --fetch the name
	        END
	      ELSE 
	        SELECT @Name=null,@SequenceNo=@SequenceNo+1 
	      SELECT
	        @end=CHARINDEX(',', @contents)-- a string-token, object-token, list-token, number,boolean, or null
	      IF @end=0 
	        SELECT  @end=PATINDEX('%[A-Za-z0-9@+.e][^A-Za-z0-9@+.e]%', @Contents+' ' collate SQL_Latin1_General_CP850_Bin)
	          +1
	       SELECT
	        @start=PATINDEX('%[^A-Za-z0-9@+.e][A-Za-z0-9@+.e]%', ' '+@contents collate SQL_Latin1_General_CP850_Bin)
	      --select @start,@end, LEN(@contents+'|'), @contents  
	      SELECT
	        @Value=RTRIM(SUBSTRING(@contents, @start, @End-@Start)),
	        @Contents=RIGHT(@contents+' ', LEN(@contents+'|')-@end)
	      IF SUBSTRING(@value, 1, 7)='@object' 
	        INSERT INTO @hierarchy
	          (NAME, SequenceNo, parent_ID, StringValue, Object_ID, ValueType)
	          SELECT @name, @SequenceNo, @parent_ID, SUBSTRING(@value, 8, 5),
	            SUBSTRING(@value, 8, 5), 'object' 
	      ELSE 
	        IF SUBSTRING(@value, 1, 6)='@array' 
	          INSERT INTO @hierarchy
	            (NAME, SequenceNo, parent_ID, StringValue, Object_ID, ValueType)
	            SELECT @name, @SequenceNo, @parent_ID, SUBSTRING(@value, 7, 5),
	              SUBSTRING(@value, 7, 5), 'array' 
	        ELSE 
	          IF SUBSTRING(@value, 1, 7)='@string' 
	            INSERT INTO @hierarchy
	              (NAME, SequenceNo, parent_ID, StringValue, ValueType)
	              SELECT @name, @SequenceNo, @parent_ID, stringvalue, 'string'
	              FROM @strings
	              WHERE string_id=SUBSTRING(@value, 8, 5)
	          ELSE 
	            IF @value IN ('true', 'false') 
	              INSERT INTO @hierarchy
	                (NAME, SequenceNo, parent_ID, StringValue, ValueType)
	                SELECT @name, @SequenceNo, @parent_ID, @value, 'boolean'
	            ELSE
	              IF @value='null' 
	                INSERT INTO @hierarchy
	                  (NAME, SequenceNo, parent_ID, StringValue, ValueType)
	                  SELECT @name, @SequenceNo, @parent_ID, @value, 'null'
	              ELSE
	                IF PATINDEX('%[^0-9]%', @value collate SQL_Latin1_General_CP850_Bin)>0 
	                  INSERT INTO @hierarchy
	                    (NAME, SequenceNo, parent_ID, StringValue, ValueType)
	                    SELECT @name, @SequenceNo, @parent_ID, @value, 'real'
	                ELSE
	                  INSERT INTO @hierarchy
	                    (NAME, SequenceNo, parent_ID, StringValue, ValueType)
	                    SELECT @name, @SequenceNo, @parent_ID, @value, 'int'
	      if @Contents=' ' Select @SequenceNo=0
	    END
	  END
	INSERT INTO @hierarchy (NAME, SequenceNo, parent_ID, StringValue, Object_ID, ValueType)
	  SELECT '-',1, NULL, '', @parent_id-1, @type
	--
	   RETURN
	END
GO
PRINT N'Creating Function [dbo].[VarcharArrayToIntTable]...';


GO
CREATE FUNCTION [VarcharArrayToIntTable] ( 
    @StringInput VARCHAR(8000)
)
RETURNS @OutputTable TABLE ( [Integer] INT )
AS
BEGIN

    DECLARE @String			INT
	DECLARE @Delimiter		CHAR
	SET @Delimiter = ',';

    WHILE LEN(@StringInput) > 0
    BEGIN
        SET @String      = LEFT(@StringInput, 
                                ISNULL(NULLIF(CHARINDEX(@Delimiter, @StringInput) - 1, -1),
                                LEN(@StringInput)))
        SET @StringInput = SUBSTRING(@StringInput,
                                     ISNULL(NULLIF(CHARINDEX(@Delimiter, @StringInput), 0),
                                     LEN(@StringInput)) + 1, LEN(@StringInput))

        INSERT INTO @OutputTable ( [Integer] )
        VALUES ( Cast(@String as INT)  )
    END

    RETURN
END
GO
PRINT N'Creating Function [dbo].[FUN_AQM_PLAIN_SEARCH]...';


GO
CREATE FUNCTION dbo.FUN_AQM_PLAIN_SEARCH (
	@i_search_text NVARCHAR(4000),
	@i_root_folder INT,
	@i_document_type INT,
	@i_top_n INT
) RETURNS TABLE AS
RETURN(
	SELECT TOP(@i_top_n)
		Id,
		InternalId,
		Name,
		Type
	FROM (
		SELECT TOP(@i_top_n)
			d.fold_id Id,
			d.fold_id InternalId,
			d.fold_name Name,
			'fld' Type,
			ISNULL(c.[rank], 0) + ISNULL(f.[rank], 0) [Rank]
		FROM AFW_FOLDER d
		JOIN dbo.FUN_AQM_GET_TREE(@i_root_folder, @i_document_type) t ON t.fold_id = d.fold_id
		LEFT JOIN CONTAINSTABLE(AFW_FOLDER, *, @i_search_text) c ON c.[key] = d.fold_id
		LEFT JOIN FREETEXTTABLE(AFW_FOLDER, *, @i_search_text) f ON f.[key] = d.fold_id
		WHERE (
			c.[key] IS NOT NULL
			AND c.[rank] > 0
			OR f.[key] IS NOT NULL
			AND f.[rank] > 0
		)
		AND t.doc_count > 0
		AND d.fold_id != @i_root_folder
		ORDER BY [rank] DESC
		UNION ALL
		SELECT TOP(@i_top_n)
			dm.Id,
			d.docu_id,
			d.docu_name,
			'doc' Type,
			ISNULL(c.[rank], 0) + ISNULL(f.[rank], 0) [Rank]
		FROM AFW_DOCUMENT d
		JOIN AQM_DOCUMENT dm ON dm.DocumentId = d.docu_id
		JOIN dbo.FUN_AQM_GET_TREE(@i_root_folder, @i_document_type) t ON t.fold_id = d.docu_parent_id
		LEFT JOIN CONTAINSTABLE(AFW_DOCUMENT, *, @i_search_text) c ON c.[key] = d.docu_id
		LEFT JOIN FREETEXTTABLE(AFW_DOCUMENT, *, @i_search_text) f ON f.[key] = d.docu_id
		WHERE (
			c.[key] IS NOT NULL
			AND c.[rank] > 0
			OR f.[key] IS NOT NULL
			AND f.[rank] > 0
		)
		AND dm.IsPublished = 1
		ORDER BY [rank] DESC
	) t
	ORDER BY t.[rank] DESC
);
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_AGGREGATE]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_AGGREGATE] (
	@i_id UNIQUEIDENTIFIER,
	@i_function VARCHAR(15)
	
) AS
BEGIN
	UPDATE DMM_AGGREGATE SET		
		[function] = @i_function
	WHERE
		id = @i_id;

	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO DMM_AGGREGATE(
			id,			
			[function]
		) VALUES (
			@i_id,
			@i_function
		);
	END;
END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_AGGREGATE_TRANSLATION]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_AGGREGATE_TRANSLATION]
(	
	@i_aggregate_id UNIQUEIDENTIFIER,
	@i_language_id CHAR(2),
	@i_name VARCHAR(30)	
) AS
BEGIN
	INSERT INTO DMM_AGGREGATE_TRANSLATION (
		aggregate_id,
		language_id,
		name
	) VALUES (
		@i_aggregate_id,
		@i_language_id,
		@i_name
	);

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_ATTRIBUTE]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_ATTRIBUTE](
	@i_id UNIQUEIDENTIFIER,
	@i_type VARCHAR(10),
	@i_column_id UNIQUEIDENTIFIER,
	@i_can_sort BIT = 0,
	@i_can_filter BIT = 0
) AS
BEGIN
	UPDATE DMM_ATTRIBUTE SET
		type = @i_type,
		column_id = @i_column_id,
		can_sort = @i_can_sort,
		can_filter = @i_can_filter
	WHERE
		id = @i_id;

	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO DMM_ATTRIBUTE (
			id,
			type,
			column_id,
			can_sort,
			can_filter
		) VALUES (
			@i_id,
			@i_type,
			@i_column_id,
			@i_can_sort,
			@i_can_filter
		);

	END;
END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_ATTRIBUTE_TRANSLATION]...';


GO

CREATE PROCEDURE [dbo].[MD_DMM_ATTRIBUTE_TRANSLATION]
(	
	@i_attribute_id UNIQUEIDENTIFIER,
	@i_language_id CHAR(2),
	@i_name VARCHAR(60)	
) AS
BEGIN
	INSERT INTO DMM_ATTRIBUTE_TRANSLATION (
		attribute_id,
		language_id,
		name
	) VALUES (
		@i_attribute_id,
		@i_language_id,
		@i_name
	);

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_COLUMN]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_COLUMN] (
	@i_id UNIQUEIDENTIFIER,
	@i_name VARCHAR(30),
	@i_dataset_id UNIQUEIDENTIFIER,
	@i_unique_key BIT = 0
) AS
BEGIN
	UPDATE DMM_COLUMN SET
		name = @i_name,
		dataset_id = @i_dataset_id,
		unique_key = @i_unique_key
	WHERE
		id = @i_id;

	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO DMM_COLUMN (
			id,
			name,
			dataset_id,
			unique_key
		) VALUES (
			@i_id,
			@i_name,
			@i_dataset_id,
			@i_unique_key
		);

	END;

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_DATA_TYPE]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_DATA_TYPE](
	@i_id int,
	@i_name VARCHAR(40)
) AS
BEGIN
	UPDATE DMM_DATA_TYPE SET
		name = @i_name
	WHERE
		id = @i_id;

	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO DMM_DATA_TYPE (
			id,
			name
		) VALUES (
			@i_id,
			@i_name
		);

	END;

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_DATA_TYPE_COLUMN]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_DATA_TYPE_COLUMN]
(
	@i_column_id UNIQUEIDENTIFIER,
	@i_data_type_id INT,
	@i_length VARCHAR(20) = NULL
) AS
BEGIN
	UPDATE DMM_DATA_TYPE_COLUMN SET
		data_type_id = @i_data_type_id
	WHERE
		column_id = @i_column_id;

	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO DMM_DATA_TYPE_COLUMN (
			column_id,
			data_type_id,
			length
		) VALUES (
			@i_column_id,
			@i_data_type_id,
			@i_length
		);

	END;

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_DATASET]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_DATASET] (
	@i_id UNIQUEIDENTIFIER,
	@i_name VARCHAR(35),
	@i_type VARCHAR(10),
	@i_base_object_type CHAR(2),
	@i_is_external BIT
) AS
BEGIN
	IF @i_type NOT IN('DIM', 'FACT')
	BEGIN
		RAISERROR('Type is not valid', 11, 1);

	END;

	UPDATE DMM_DATASET SET
		name = @i_name,
		type = @i_type,
		base_object_type = @i_base_object_type,
		is_external = @i_is_external
	WHERE
		id = @i_id;

	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO DMM_DATASET (
			id,
			name,
			type,
			base_object_type,
			is_external
		) VALUES (
			@i_id,
			@i_name,
			@i_type,
			@i_base_object_type,
			@i_is_external
		);

	END;

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_DATASET_PARAMETERS]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_DATASET_PARAMETERS] (
	@i_id UNIQUEIDENTIFIER,
	@i_dataset_id UNIQUEIDENTIFIER,
	@i_parameter_order INT
) AS
BEGIN
	UPDATE DMM_DATASET_PARAMETERS SET
		parameter_order = @i_parameter_order
	WHERE
		id = @i_id;

	WHILE @@ROWCOUNT = 0
	BEGIN
		INSERT INTO DMM_DATASET_PARAMETERS (
			id,
			dataset_id,
			parameter_order
		) VALUES (
			@i_id,
			@i_dataset_id,
			@i_parameter_order
		);

	END;

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_DATASET_PARAMETERS_MAPPING]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_DATASET_PARAMETERS_MAPPING] (
	@i_parameter_id UNIQUEIDENTIFIER,
	@i_map_to_dataset_id UNIQUEIDENTIFIER,
	@i_map_to_column_id UNIQUEIDENTIFIER
) AS
BEGIN
	UPDATE DMM_DATASET_PARAMETERS_MAPPING SET
		map_to_column_id = @i_map_to_column_id
	WHERE
		map_to_dataset_id = @i_map_to_dataset_id
		AND parameter_id = @i_parameter_id;

	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO DMM_DATASET_PARAMETERS_MAPPING (
			parameter_id,
			map_to_dataset_id,
			map_to_column_id
		) VALUES (
			@i_parameter_id,
			@i_map_to_dataset_id,
			@i_map_to_column_id
		);

	END;

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_DATASET_TRANSLATION]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_DATASET_TRANSLATION]
(	
	@i_dataset_id UNIQUEIDENTIFIER,
	@i_language_id CHAR(2),
	@i_model_name VARCHAR(50)
) AS
BEGIN
	INSERT INTO DMM_DATASET_TRANSLATION (
		dataset_id,
		language_id,
		model_name
	) VALUES (
		@i_dataset_id,
		@i_language_id,
		@i_model_name
	);

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_METRIC]...';


GO

CREATE PROCEDURE [dbo].[MD_DMM_METRIC](
	@i_id UNIQUEIDENTIFIER,
	@i_aggregate_id UNIQUEIDENTIFIER,
	@i_attribute_id UNIQUEIDENTIFIER
) AS
BEGIN
	UPDATE DMM_METRIC SET
		aggregate_id = @i_aggregate_id,
		attribute_id = @i_attribute_id
		
	WHERE
		id = @i_id;

	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO DMM_METRIC (
			id,
			aggregate_id,
			attribute_id
			
		) VALUES (
			@i_id,
			@i_aggregate_id,
			@i_attribute_id
			
		);

	END;
END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_METRIC_TRANSLATION]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_METRIC_TRANSLATION]
(
	@i_metric_id UNIQUEIDENTIFIER,
	@i_language_id CHAR(2),
	@i_name VARCHAR(60)
) AS
BEGIN
	INSERT INTO DMM_METRIC_TRANSLATION (
		metric_id,
		language_id,
		name
	) VALUES (
		@i_metric_id,
		@i_language_id,
		@i_name
	);

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_RELATIONSHIP]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_RELATIONSHIP](
    @i_id UNIQUEIDENTIFIER,
	@i_inner_dataset UNIQUEIDENTIFIER,
	@i_outer_dataset UNIQUEIDENTIFIER,
	@i_inner_column UNIQUEIDENTIFIER,
	@i_outer_column UNIQUEIDENTIFIER
) AS
BEGIN
	INSERT INTO DMM_RELATIONSHIP (
		id,
		inner_dataset,
		outer_dataset,
		inner_column,
		outer_column
	) VALUES (
		@i_id,
		@i_inner_dataset,
		@i_outer_dataset,
		@i_inner_column,
		@i_outer_column
	);

END;
GO
PRINT N'Creating Procedure [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION]...';


GO
CREATE PROCEDURE [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION]
(
	@i_relationship_id UNIQUEIDENTIFIER,
	@i_language_id CHAR(2),
	@i_name VARCHAR(40)
) AS
BEGIN
	INSERT INTO DMM_RELATIONSHIP_TRANSLATION (
		relationship_id,
		language_id,
		name
	) VALUES (
		@i_relationship_id,
		@i_language_id,
		@i_name
	);

END;
GO
PRINT N'Creating Procedure [dbo].[METADATA_ACTION_RELATION]...';


GO
CREATE PROCEDURE METADATA_ACTION_RELATION
(
	@v_name NVARCHAR(64)     
)
AS
BEGIN

	IF (NOT EXISTS(SELECT 1 FROM [ADM_ACTION] WHERE [name] = @v_name))
	BEGIN
		INSERT INTO [ADM_ACTION] ([name], [enable], [creation_date]) VALUES (@v_name,1, GETUTCDATE())
	END 
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_ACTIVITY_STATUS]...';


GO
CREATE PROCEDURE METADATA_ACTIVITY_STATUS
    @id                INT,
    @name            VARCHAR(50),
	@activityTypeId		INT
AS
BEGIN
    DECLARE @current_id INT;

    SET @current_id = NULL
    SELECT @current_id = [id] 
        FROM [AAM_DEVICE_RECORD_ACT_STA]
        WHERE [id] = @id

    IF @current_id IS NOT NULL
    BEGIN
        UPDATE [AAM_DEVICE_RECORD_ACT_STA]
        SET 
            [name] = @name,
			[activity_type_id] = @activityTypeId
        WHERE [id] = @current_id
    END
    ELSE
    BEGIN
        INSERT INTO [AAM_DEVICE_RECORD_ACT_STA](
            [id],
            [name],
			[activity_type_id]
        )VALUES(
            @id,
            @name,
			@activityTypeId
        )
    END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_ACTIVITY_TYPE]...';


GO
CREATE PROCEDURE METADATA_ACTIVITY_TYPE
    @id                INT,
    @name            VARCHAR(50)
AS
BEGIN
    DECLARE @current_id INT;

    SET @current_id = NULL
    SELECT @current_id = [id] 
        FROM [AAM_DEVICE_REC_ACT_TYPE] 
        WHERE [id] = @id

    IF @current_id IS NOT NULL
    BEGIN
        UPDATE [AAM_DEVICE_REC_ACT_TYPE]
        SET 
            [name] = @name
        WHERE [id] = @current_id
    END
    ELSE
    BEGIN
        INSERT INTO [AAM_DEVICE_REC_ACT_TYPE](
            [id],
            [name]
        )VALUES(
            @id,
            @name
        )
    END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_AGENT_EXCEPTION]...';


GO
CREATE PROCEDURE METADATA_AGENT_EXCEPTION
AS
BEGIN
    DECLARE @profileId int 
    SELECT TOP(1) 
        @profileId = id 
    FROM ADM_AGENT_PROFILE;
  
    INSERT INTO ADM_AGENT_PROFILE_EXCEP (
        [profile_id], 
        [type], 
        [value]
    ) 
    VALUES (
        @profileId, 
        0, 
        'C:\Program Files'
    );

    INSERT INTO ADM_AGENT_PROFILE_EXCEP (
        [profile_id], 
        [type], 
        [value]
    ) 
    VALUES (
        @profileId, 
        0, 
        'C:\Program Files (x86)'
    );

    INSERT INTO ADM_AGENT_PROFILE_EXCEP (
        [profile_id], 
        [type], 
        [value]
    ) 
    VALUES (
        @profileId, 
        0, 
        'C:\Windows'
    );
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_AGENT_EXTENSION]...';


GO
CREATE PROCEDURE METADATA_AGENT_EXTENSION
AS
BEGIN

	  DECLARE @idAngent int 
	  SELECT TOP(1) @idAngent = id FROM ADM_AGENT_PROFILE;
  
	  INSERT INTO ADM_AGENT_PROFILE_EXT
	  SELECT @idAngent,id FROM AAM_EXTENSION WHERE [default]= 1
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_AGENT_PROFILE_APPLICATION]...';


GO
CREATE PROCEDURE METADATA_AGENT_PROFILE_APPLICATION
	@profile_id						INT,
	@application_id					INT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [ADM_AGENT_PROFILE_APPLIC] 
				WHERE profile_id = @profile_id 
				AND application_id = @application_id)
		
		UPDATE [ADM_AGENT_PROFILE_APPLIC]
		SET profile_id = @profile_id, [application_id] = @application_id
		WHERE profile_id = @profile_id and application_id = @application_id
	
	ELSE
		INSERT INTO [ADM_AGENT_PROFILE_APPLIC]
		(profile_id,[application_id])
		VALUES
		(@profile_id,@application_id)
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_AGENT_PROFILE_SETTING]...';


GO
CREATE PROCEDURE METADATA_AGENT_PROFILE_SETTING
	@profile_id						INT,
	@setting						NVARCHAR(MAX),
	@enabled_p2p					BIT,
	@show_icon						BIT,
	@show_ars_icon					BIT
AS
BEGIN
	IF EXISTS (SELECT 1
	FROM [ADM_AGENT_PROFILE_SETTING]
	WHERE profile_id = @profile_id)
		UPDATE [ADM_AGENT_PROFILE_SETTING]
		SET 
			profile_id		=	@profile_id,
			enabled_p2p		=	@enabled_p2p,
			show_icon		=	@show_icon,
			show_ars_icon	=	@show_ars_icon
		WHERE 
			profile_id = @profile_id
	ELSE
		INSERT INTO [ADM_AGENT_PROFILE_SETTING]
		(
			profile_id,
			setting,
			enabled_p2p,
			show_icon,
			show_ars_icon
		)
		VALUES
		(
			@profile_id,
			@setting,
			@enabled_p2p,
			@show_icon,
			@show_ars_icon
		)
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_AGENTE_PROFILE]...';


GO
CREATE PROCEDURE METADATA_AGENTE_PROFILE
	@id						INT,
	@name					VARCHAR(255),
	@creation_date			DATETIME,
	@creator_user			INT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [ADM_AGENT_PROFILE] WHERE id = @id)
		UPDATE [ADM_AGENT_PROFILE]
		SET [name] = @name,
			[creation_date] = @creation_date,
			[creator_user] = @creator_user	
		WHERE id = @id
	ELSE
		INSERT INTO [ADM_AGENT_PROFILE]
		(
		[name],
		[creation_date],
		[creator_user]
		)
		VALUES
		(
			@name,
			@creation_date,
			@creator_user
		)
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_ANM_MONITOR_METRIC]...';


GO

CREATE PROCEDURE [dbo].[METADATA_ANM_MONITOR_METRIC]
	@i_id		    INT,
	@i_name			NVARCHAR(50), 
	@i_metrics		NVARCHAR(MAX)	
AS
BEGIN	

	 IF EXISTS (SELECT 1
				FROM [ANM_MONITOR_METRIC] 
				WHERE [id] = @i_id)
		UPDATE [ANM_MONITOR_METRIC]
		SET [id] = @i_id,
			[name] = @i_name,
			[metrics] = @i_metrics			
		WHERE [id] = @i_id
	ELSE
		INSERT INTO [ANM_MONITOR_METRIC] (
			[id],
			[name], 
			[metrics]
		) VALUES (
			@i_id,
			@i_name,
			@i_metrics			
		)
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_APM_CATEGORY]...';


GO
CREATE PROCEDURE [dbo].[METADATA_APM_CATEGORY] (
	@i_id			INT,	
	@i_name			NVARCHAR(64)
)
AS
BEGIN
	IF EXISTS ( SELECT 1 
				FROM [APM_CATEGORY] 
				WHERE [id] = @i_id)
	BEGIN
		UPDATE [APM_CATEGORY]
		SET [name] = @i_name
		WHERE  [id]   = @i_id
	END	
	ELSE
	BEGIN
		SET IDENTITY_INSERT APM_CATEGORY ON
		INSERT INTO [APM_CATEGORY] (
				[id],
				[name],
				[created_date]
		   ) VALUES (
		       @i_id,
		       @i_name,
			   GETUTCDATE()
           ) 
		SET IDENTITY_INSERT APM_CATEGORY OFF
	END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_APM_DOWNLOAD_STATUS]...';


GO
CREATE PROCEDURE [dbo].[METADATA_APM_DOWNLOAD_STATUS]
(
	@i_id			INT,
	@i_name			NVARCHAR(255)
)
AS
BEGIN
	IF EXISTS ( SELECT 1 
				FROM [APM_DOWNLOAD_STATUS] 
				WHERE [id] = @i_id)
	BEGIN
		UPDATE [dbo].[APM_DOWNLOAD_STATUS]
		SET [status_name] = @i_name
		WHERE  [id]   = @i_id
	END	
	ELSE
	BEGIN
		INSERT INTO [dbo].[APM_DOWNLOAD_STATUS] (
			[id],
            [status_name]
		) VALUES (
			@i_id,
            @i_name
		)
	END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_APM_PATCH_TYPE]...';


GO
CREATE PROCEDURE [dbo].[METADATA_APM_PATCH_TYPE]
(
	@i_id			INT,	
	@i_name			NVARCHAR(50)
)
AS
BEGIN
	IF EXISTS ( SELECT 1 
				FROM [APM_PATCH_TYPE] 
				WHERE [id] = @i_id)
	BEGIN
		UPDATE [APM_PATCH_TYPE]
		SET [name] = @i_name
		WHERE  [id]   = @i_id
	END	
	ELSE
	BEGIN
		INSERT INTO [APM_PATCH_TYPE] (
			[id],
			[name]
		) VALUES (
		    @i_id,
		    @i_name
	    ) 
	END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_APM_SEVERITY]...';


GO
CREATE PROCEDURE [dbo].[METADATA_APM_SEVERITY] (
	@i_id			INT,
	@i_name			NVARCHAR(50),
	@i_description	VARCHAR(100)
)
AS
BEGIN
	IF EXISTS ( SELECT 1 
				FROM [APM_SEVERITY] 
				WHERE [id] = @i_id)
	BEGIN
		UPDATE [APM_SEVERITY]
		SET [name] = @i_name,
		   [description] = @i_description
		WHERE  [id]   = @i_id
	END	
	ELSE
	BEGIN
		INSERT INTO [APM_SEVERITY] (
			[id],
			[name],
			[description]
		) VALUES (
		    @i_id,
		    @i_name,
			@i_description
	    ) 
	END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_APWM_PROFILE]...';


GO
CREATE PROCEDURE [dbo].[METADATA_APWM_PROFILE]
    @i_id			INT,
    @i_description	NVARCHAR(20), 
    @i_caption		NVARCHAR(20),
    @i_alarm    	NVARCHAR(20),
    @i_send_message	NVARCHAR(20),
    @i_send_mail    NVARCHAR(20)
AS
BEGIN
	IF EXISTS (SELECT 1  
			   FROM [APWM_PROFILE] 
			   WHERE [device_type] = @i_id)
		UPDATE [APWM_PROFILE]
		SET [device_type]		= @i_id,
			[name]				= @i_description,
			[on]				= CAST(@i_caption AS NUMERIC(15, 3)),
			[sleep]				= CAST(@i_alarm AS NUMERIC(15, 3)),
			[offhd]				= CAST(@i_send_message AS NUMERIC(15, 3)),
			[monitor]			= CAST(@i_send_mail AS NUMERIC(15, 3))
		WHERE [device_type]	= @i_id
	ELSE
		INSERT INTO [APWM_PROFILE] (
		   [device_type],
		   [name],
		   [on],
		   [sleep],
		   [offhd],
		   [monitor]
		 )
		 VALUES (
			   @i_id,
			   @i_description,
			   CAST(@i_caption			AS NUMERIC(15, 3)),
			   CAST(@i_alarm			AS NUMERIC(15, 3)),
			   CAST(@i_send_message		AS NUMERIC(15, 3)),
			   CAST(@i_send_mail		AS NUMERIC(15, 3))  
		 )
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_ASM_LICENSE_TYPE]...';


GO
CREATE PROCEDURE [dbo].[METADATA_ASM_LICENSE_TYPE]
    @i_name			NVARCHAR(255), 
    @i_description	NVARCHAR(255) = NULL
AS
BEGIN
	IF EXISTS ( SELECT 1  
				FROM [ASM_LICENSE_TYPE] 
				WHERE [name] = @i_name)
		UPDATE [ASM_LICENSE_TYPE]
		SET [description] = @i_description
		WHERE [name] = @i_name
	ELSE
		INSERT INTO [ASM_LICENSE_TYPE] (
			[name], 
			[description]
		) VALUES (
			@i_name,	
			@i_description
		)
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_CLOUD_PLATFORM]...';


GO
CREATE PROCEDURE [dbo].[METADATA_CLOUD_PLATFORM]
(
	@i_id_type	INT,	
	@i_name		VARCHAR(50)
)
AS
BEGIN

	IF EXISTS (SELECT 1 
			   FROM [AAM_CLOUD_PLATFORM] 
			   WHERE [id_Type] = @i_id_type)
	BEGIN
		UPDATE [AAM_CLOUD_PLATFORM]
		SET [name] = @i_name
		WHERE [id_Type] = @i_id_type
	END	
	ELSE
	BEGIN
		INSERT INTO [AAM_CLOUD_PLATFORM] (
			[id_Type],
			[name]
		) VALUES (
		    @i_id_type,
		    @i_name
        ) 
	END

END
GO
PRINT N'Creating Procedure [dbo].[METADATA_COMPONENT_REQUEST_STATUS]...';


GO
CREATE PROCEDURE [dbo].METADATA_COMPONENT_REQUEST_STATUS (
	@i_id		TINYINT,	
	@i_name		VARCHAR(32)
)
AS
BEGIN
	UPDATE ADM_COMPONENT_REQUEST_STATUS 
	SET [name] = @i_name
	WHERE [id] = @i_id;

	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO ADM_COMPONENT_REQUEST_STATUS (
			[id],
			[name]
		) VALUES (
			@i_id,
			@i_name
		) 
	END;
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_CURRENCY]...';


GO
CREATE PROCEDURE [dbo].[METADATA_CURRENCY]
    @i_id                INT,
    @i_name              VARCHAR(50),
    @i_symbol            VARCHAR(10)
AS
BEGIN
    DECLARE @current_id INT;

    SELECT @current_id = [id] 
    FROM [ASM_CURRENCY] 
    WHERE [name] = @i_name 
      AND [symbol] = @i_symbol

    IF @current_id IS NOT NULL
    BEGIN
        UPDATE [ASM_CURRENCY]
        SET [name] = @i_name,
            [symbol] = @i_symbol
        WHERE [id] = @current_id
    END
    ELSE
    BEGIN
        INSERT INTO [ASM_CURRENCY] (
            [name],
            [symbol]
        ) VALUES (
            @i_name,
            @i_symbol
        )
    END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_DEVICE_CONFLICT_ACTION]...';


GO
CREATE PROCEDURE METADATA_DEVICE_CONFLICT_ACTION
	@id				INT,
	@action			VARCHAR(255)
AS
BEGIN
	DECLARE @current_id INT;

	SET @current_id = NULL
	SELECT @current_id = [id] 
		FROM [AAM_DEVICE_CONFLICT_ACT] 
		WHERE [action] = @action

	IF @current_id IS NOT NULL
	BEGIN
		UPDATE [AAM_DEVICE_CONFLICT_ACT]
		SET 
			[action] = @action
		WHERE [id] = @current_id
	END
	ELSE
	BEGIN
		INSERT INTO [AAM_DEVICE_CONFLICT_ACT](
			[id],
			[action]
		)VALUES(
			@id,
			@action
		)
	END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_DEVICE_CONFLICT_CAUSE]...';


GO
CREATE PROCEDURE METADATA_DEVICE_CONFLICT_CAUSE
	@id				INT,
	@cause			VARCHAR(255)
AS
BEGIN
	DECLARE @current_id INT;

	SET @current_id = NULL
	SELECT @current_id = [id] 
		FROM [AAM_DEVICE_CONFLICT_CAUSE] 
		WHERE [cause] = @cause

	IF @current_id IS NOT NULL
	BEGIN
		UPDATE [AAM_DEVICE_CONFLICT_CAUSE]
		SET 
			[cause] = @cause
		WHERE [id] = @current_id
	END
	ELSE
	BEGIN
		INSERT INTO [AAM_DEVICE_CONFLICT_CAUSE](
			[id],
			[cause]
		)VALUES(
			@id,
			@cause
		)
	END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_DEVICE_CONFLICT_STATUS]...';


GO
CREATE PROCEDURE METADATA_DEVICE_CONFLICT_STATUS
	@id				INT,
	@status		VARCHAR(255)
AS
BEGIN
	DECLARE @current_id INT;

	SET @current_id = NULL
	SELECT @current_id = [id] 
		FROM [AAM_DEVICE_CONFLICT_STATU] 
		WHERE [status] = @status

	IF @current_id IS NOT NULL
	BEGIN
		UPDATE [AAM_DEVICE_CONFLICT_STATU]
		SET 
			[status] = @status
		WHERE [id] = @current_id
	END
	ELSE
	BEGIN
		INSERT INTO [AAM_DEVICE_CONFLICT_STATU](
			[id],
			[status]
		)VALUES(
			@id,
			@status
		)
	END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_DEVICE_CONFLICT_TYPE]...';


GO
CREATE PROCEDURE METADATA_DEVICE_CONFLICT_TYPE
	@id				INT,
	@type		VARCHAR(255)
AS
BEGIN
	DECLARE @current_id INT;

	SET @current_id = NULL
	SELECT @current_id = [id] 
		FROM [AAM_DEVICE_CONFLICT_TYPE] 
		WHERE [type] = @type

	IF @current_id IS NOT NULL
	BEGIN
		UPDATE [AAM_DEVICE_CONFLICT_TYPE]
		SET 
			[type] = @type
		WHERE [id] = @current_id
	END
	ELSE
	BEGIN
		INSERT INTO [AAM_DEVICE_CONFLICT_TYPE](
			[id],
			[type]
		)VALUES(
			@id,
			@type
		)
	END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_DEVICE_TYPE]...';


GO
CREATE PROCEDURE [dbo].[METADATA_DEVICE_TYPE]
(
	@i_id		INT,	
	@i_name		NVARCHAR(64)
)
AS
BEGIN
	IF EXISTS (SELECT 1 
		       FROM [AAM_DEVICE_TYPE] 
			   WHERE [id] = @i_id)
	BEGIN
		UPDATE [AAM_DEVICE_TYPE]
		SET [name] = @i_name
		WHERE [id] = @i_id
	END	
	ELSE
	BEGIN
		SET IDENTITY_INSERT AAM_DEVICE_TYPE ON;

		INSERT INTO [AAM_DEVICE_TYPE] (
			[id],
			[name]
		) VALUES (
		    @i_id,
		    @i_name
        ) 

		SET IDENTITY_INSERT AAM_DEVICE_TYPE OFF; 
	END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_DISCOVERY_MODEL]...';


GO
CREATE PROCEDURE dbo.METADATA_DISCOVERY_MODEL(
    @i_name NVARCHAR(256),
    @i_device_type_id INT,
    @i_manufacturer_id INT,
    @i_enabled BIT,
    @o_id INT OUTPUT
)
AS
BEGIN
    SET NOCOUNT ON;
    SET @o_id = NULL;

    SELECT @o_id = id
    FROM dbo.ADM_DISCOVERY_MODEL
    WHERE name = @i_name;

    IF @o_id IS NULL
    BEGIN
        INSERT INTO dbo.ADM_DISCOVERY_MODEL
        (
            name,
            device_type_id,
            manufacturer_id,
            enabled
        )
        VALUES
        (
            @i_name,
            @i_device_type_id,
            @i_manufacturer_id,
            @i_enabled
        );

        SET @o_id = SCOPE_IDENTITY();
    END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_EXTENSION]...';


GO
CREATE PROCEDURE METADATA_EXTENSION
(
   @v_categoryId   INT,
   @v_extension    NVARCHAR(255),
   @v_default      BIT
)
AS
BEGIN

	IF (NOT EXISTS(SELECT 1 FROM [AAM_EXTENSION] WHERE name = @v_extension))
	BEGIN
		INSERT INTO [AAM_EXTENSION] ([name], [category_id], [default]) VALUES (@v_extension, @v_categoryId, @v_default)
    END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_MANUFACTURER]...';


GO
CREATE PROCEDURE dbo.METADATA_MANUFACTURER (
    @i_name NVARCHAR(512),
    @o_id INT OUTPUT
)
AS
BEGIN
    SET NOCOUNT ON;
    SET @o_id = NULL;

    SELECT @o_id = id
    FROM dbo.AAM_MANUFACTURER
    WHERE name = @i_name;

    IF @o_id IS NULL
    BEGIN
        INSERT INTO dbo.AAM_MANUFACTURER (name)
        VALUES (@i_name);

        SET @o_id = SCOPE_IDENTITY();
    END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_SNMP_IDENTIFIER]...';


GO
CREATE PROCEDURE dbo.METADATA_SNMP_IDENTIFIER (
    @i_device_identifier VARCHAR(128),
    @i_discovery_model_id INT
)
AS
BEGIN
    SET NOCOUNT ON;

    IF NOT EXISTS
    (
        SELECT 1
        FROM dbo.ADM_SNMP_IDENTIFIER
        WHERE device_identifier = @i_device_identifier
    )
    BEGIN
        INSERT INTO dbo.ADM_SNMP_IDENTIFIER
        (
            device_identifier,
            discovery_model_id
        )
        VALUES
        (
            @i_device_identifier,
            @i_discovery_model_id
        );
    END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_SOFTWARE]...';


GO
CREATE PROCEDURE [dbo].[METADATA_SOFTWARE]
(
	@i_id	   INT,	
	@i_type    VARCHAR(50)
)
AS
BEGIN
	IF EXISTS (SELECT 1 
			   FROM [AAM_SOFTWARE_TYPE] 
			   WHERE [id] = @i_id)
	BEGIN
		UPDATE [AAM_SOFTWARE_TYPE]
		SET [type] = @i_type
		WHERE [id] = @i_id
	END	
	ELSE
	BEGIN
		INSERT INTO [AAM_SOFTWARE_TYPE] (
			[id],
			[type]
		) VALUES (
		    @i_id,
		    @i_type
        ) 
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AAM_CLEANDEVICE]...';


GO
CREATE PROCEDURE dbo.PRC_AAM_CLEANDEVICE
(
	@v_deviceId INT
)
AS
BEGIN
	-- Quitar los registros de inventarios
	DELETE FROM ADM_DEVICE_INVENTORY                
	WHERE device_id = @v_deviceId AND app_code = 1

	-- Eliminar alertas relacionadas con el inventario de dispositivos
	DELETE FROM AFW_ALERT 
	WHERE item_id = @v_deviceId
		AND category_id >= 32100 AND category_id <= 32203
	
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AAM_CLEANSECTION]...';


GO
/*========================================================================================================================*/
/* REALIZA LA LIMPIEZA DEL INVENTARIO DE ASSET MANAGEMENT                                                                 */
/*========================================================================================================================*/
CREATE PROCEDURE dbo.PRC_AAM_CLEANSECTION
(
	@v_section		NVARCHAR(50),
	@v_deviceId		INT,
	@v_option		NVARCHAR(50)
)
AS
BEGIN 

	/*========================================================================================================================*/
	/* MEMORIA                                                                                                                */
	/*========================================================================================================================*/
	IF @v_section = 'MEMORY'	   
	BEGIN
		DELETE 
		FROM	AAM_DEVICE_MEMORYSLOT 		
		WHERE	krun_status		= 'D' 
		AND		device_id		= @v_deviceId

		UPDATE	AAM_DEVICE_MEMORYSLOT
		SET		krun_status		= 'D' 
		WHERE	device_id		= @v_deviceId		
	END

	/*========================================================================================================================*/
	/* ADAPTADORES DE RED                                                                                                     */
	/*========================================================================================================================*/
	IF @v_section = 'NETWORKADAPTER'	   
	BEGIN
		-- Borra las direcciones ip sobrantes
		DELETE		[AAM_NETWORKADAPTER_ADDRES] 
		FROM		[AAM_NETWORKADAPTER_ADDRES] 
		INNER JOIN	[AAM_DEVICE_NETWORKADAPTER]  ON [AAM_DEVICE_NETWORKADAPTER].[id] = [AAM_NETWORKADAPTER_ADDRES].device_adapter_id
		WHERE		[AAM_NETWORKADAPTER_ADDRES].krun_status		= 'D' 
		AND			[AAM_DEVICE_NETWORKADAPTER].device_id	= @v_deviceId

		-- Actualiza las direcciones
		UPDATE		[AAM_NETWORKADAPTER_ADDRES] 
		SET			[AAM_NETWORKADAPTER_ADDRES].krun_status		= 'D' 
		FROM		[AAM_NETWORKADAPTER_ADDRES]
		INNER JOIN	[AAM_DEVICE_NETWORKADAPTER]  ON [AAM_DEVICE_NETWORKADAPTER].[id] = [AAM_NETWORKADAPTER_ADDRES].device_adapter_id		
		WHERE		[AAM_DEVICE_NETWORKADAPTER].device_id	= @v_deviceId
		
		-- Borra las direcciones ip de configuracion		
		DELETE		[AAM_NETWORKADAPTER_CONFIG] 
		FROM		[AAM_NETWORKADAPTER_CONFIG] 
		INNER JOIN	[AAM_DEVICE_NETWORKADAPTER]  ON [AAM_DEVICE_NETWORKADAPTER].[id] = [AAM_NETWORKADAPTER_CONFIG].device_adapter_id
		WHERE		[AAM_NETWORKADAPTER_CONFIG].krun_status		= 'D' 
		AND			[AAM_DEVICE_NETWORKADAPTER].device_id	= @v_deviceId

		-- Actualiza las direcciones ip de configuracion
		UPDATE		[AAM_NETWORKADAPTER_CONFIG] 
		SET			[AAM_NETWORKADAPTER_CONFIG].krun_status		= 'D' 
		FROM		[AAM_NETWORKADAPTER_CONFIG]
		INNER JOIN	[AAM_DEVICE_NETWORKADAPTER]  ON [AAM_DEVICE_NETWORKADAPTER].[id] = [AAM_NETWORKADAPTER_CONFIG].device_adapter_id		
		WHERE		[AAM_DEVICE_NETWORKADAPTER].device_id		= @v_deviceId

		-- Limpieza de adaptadores de red
		DELETE 
		FROM	[AAM_DEVICE_NETWORKADAPTER]
		WHERE	krun_status	= 'D'
		AND		device_id	= @v_deviceId

		UPDATE	[AAM_DEVICE_NETWORKADAPTER]		
		SET		krun_status	= 'D'
		WHERE	device_id	= @v_deviceId
	END

	/*========================================================================================================================*/
	/* DISCOS                                                                                                                 */
	/*========================================================================================================================*/
	IF @v_section = 'DISK'                 
	BEGIN
			-- Borra las unidades logicas
			DELETE		AAM_LOGICAL_DISK
			FROM		AAM_LOGICAL_DISK						
			INNER JOIN	AAM_DEVICE_DISK  ON AAM_LOGICAL_DISK.device_diskid = AAM_DEVICE_DISK.id
			WHERE		AAM_LOGICAL_DISK.krun_status		= 'D' 
			AND			AAM_DEVICE_DISK.device_id			= @v_deviceId

			-- Actualiza las unidades logicas
			UPDATE		AAM_LOGICAL_DISK 
			SET			AAM_LOGICAL_DISK.krun_status		= 'D' 
			FROM		AAM_LOGICAL_DISK
			INNER JOIN	AAM_DEVICE_DISK  ON AAM_LOGICAL_DISK.device_diskid = AAM_DEVICE_DISK.id	
			WHERE		AAM_DEVICE_DISK.device_id			= @v_deviceId

			-- Quita discos sobrantes
			DELETE 
			FROM	AAM_DEVICE_DISK 
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			-- Actualiza los discos
			UPDATE AAM_DEVICE_DISK 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END
	
	/*========================================================================================================================*/
	/* RECURSOS COMPARTIDOS                                                                                                   */
	/*========================================================================================================================*/
	IF @v_section = 'SHAREDRESOURCE'       
	BEGIN
			-- Permisos sobre los recursos compartidos
			DELETE	AAM_SHAREDRESOURCE_PERM
			FROM	AAM_SHAREDRESOURCE_PERM
			JOIN	AAM_DEVICE_SHAREDRESOURCE ON AAM_DEVICE_SHAREDRESOURCE.id = AAM_SHAREDRESOURCE_PERM.[shared_resource_id]
			WHERE	AAM_DEVICE_SHAREDRESOURCE.device_id = @v_deviceId
			AND		AAM_SHAREDRESOURCE_PERM.krun_status = 'D'			

			-- Actualiza los restantes
			UPDATE	AAM_SHAREDRESOURCE_PERM		
			SET		krun_status		= 'D'
			FROM	AAM_SHAREDRESOURCE_PERM
			JOIN	AAM_DEVICE_SHAREDRESOURCE ON AAM_DEVICE_SHAREDRESOURCE.id = AAM_SHAREDRESOURCE_PERM.[shared_resource_id]
			WHERE	device_id		= @v_deviceId
						-- Borra los recursos compartidos
			DELETE FROM AAM_DEVICE_SHAREDRESOURCE 
			WHERE	krun_status		= 'D'
			AND		device_id		= @v_deviceId

			-- Actualiza los restantes
			UPDATE  AAM_DEVICE_SHAREDRESOURCE 
			SET		krun_status		= 'D'
			WHERE	device_id		= @v_deviceId
	END	

	/*========================================================================================================================*/
	/* PROCESADORES                                                                                                           */
	/*========================================================================================================================*/
	IF @v_section = 'PROCESSOR' 
	BEGIN  
			-- Borra los cache de procesadores desactualizados
			DELETE	AAM_PROCESSOR_CACHE
			FROM	AAM_PROCESSOR_CACHE
			JOIN	AAM_DEVICE_PROCESSORSLOT ON AAM_DEVICE_PROCESSORSLOT.id = AAM_PROCESSOR_CACHE.device_processor_id
			WHERE	AAM_DEVICE_PROCESSORSLOT.device_id = @v_deviceId
			AND		AAM_PROCESSOR_CACHE.krun_status = 'D' 
			
			-- Actualiza los restantes
			UPDATE	AAM_PROCESSOR_CACHE
			SET		krun_status = 'D'			
			FROM	AAM_PROCESSOR_CACHE
			JOIN	AAM_DEVICE_PROCESSORSLOT ON AAM_DEVICE_PROCESSORSLOT.id = AAM_PROCESSOR_CACHE.device_processor_id
			WHERE	AAM_DEVICE_PROCESSORSLOT.device_id = @v_deviceId
			
			-- Borra los procesadores
			DELETE 
			FROM	AAM_DEVICE_PROCESSORSLOT
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			-- Actualiza la lista
			UPDATE	AAM_DEVICE_PROCESSORSLOT 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END

	/*========================================================================================================================*/
	/* BOARD SLOT                                                                                                             */
	/*========================================================================================================================*/
	IF @v_section = 'BOARDSLOT'
	BEGIN
			DELETE FROM AAM_DEVICE_BOARDSLOT
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_BOARDSLOT 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END

	/*========================================================================================================================*/
	/* CONTROLADORES                                                                                                          */
	/*========================================================================================================================*/	
	IF @v_section = 'DRIVER'               
	BEGIN  
			DELETE FROM AAM_DEVICE_DRIVER
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_DRIVER 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END

	/*========================================================================================================================*/
	/* IMPRESORAS                                                                                                             */
	/*========================================================================================================================*/		
	IF @v_section = 'PRINTER'              
	BEGIN  
			DELETE FROM AAM_DEVICE_PRINTER
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_PRINTER 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END
	
	/*========================================================================================================================*/
	/* SERVICIOS                                                                                                              */
	/*========================================================================================================================*/		
	IF @v_section = 'SERVICE'              
	BEGIN 
			DELETE FROM AAM_DEVICE_SERVICE
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_SERVICE 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END

	/*========================================================================================================================*/
	/* TARJETAS DE VIDEO                                                                                                      */
	/*========================================================================================================================*/		
	IF @v_section = 'VIDEOCARD'            
	BEGIN
			DELETE FROM AAM_DEVICE_VIDEOCARD
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_VIDEOCARD 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END

	/*========================================================================================================================*/
	/* DISPLAY / PANTALLAS                                                                                                    */
	/*========================================================================================================================*/		
	IF @v_section = 'DISPLAY'              
	BEGIN
			DELETE FROM AAM_DEVICE_DISPLAY
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_DISPLAY 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END

	/*========================================================================================================================*/
	/* UNIDADES COMPARTIDAS                                                                                                   */
	/*========================================================================================================================*/		
	IF @v_section = 'UNITMAPPING'          
	BEGIN  
			DELETE FROM AAM_DEVICE_UNITMAPPING
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_UNITMAPPING 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END

	/*========================================================================================================================*/
	/* TECLADOS                                                                                                               */
	/*========================================================================================================================*/		
	IF @v_section = 'KEYBOARD'             
	BEGIN  
			DELETE FROM AAM_DEVICE_KEYBOARD
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_KEYBOARD 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END

	/*========================================================================================================================*/
	/* COMANDOS DE INICIO                                                                                                     */
	/*========================================================================================================================*/		
	IF @v_section = 'STARTUPCOMMAND'       
	BEGIN  
			DELETE FROM AAM_DEVICE_STARTUPCOMMAND
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_STARTUPCOMMAND 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END

	/*========================================================================================================================*/
	/* SYSTEMSETUP                                                                                                   */
	/*========================================================================================================================*/		
	IF @v_section = 'SYSTEMSETUP'       
	BEGIN  
			DELETE FROM AAM_DEVICE_PORTCONNECTOR
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_PORTCONNECTOR 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId					
	END	

	/*========================================================================================================================*/
	/* SOFTWARE                                                                                                               */
	/*========================================================================================================================*/		
	IF @v_section = 'SOFTWARE'             
	BEGIN  

			DELETE [AAM_DEVICE_RECORD_ACT_REQ] 
			FROM [AAM_DEVICE_RECORD_ACT_REQ] r
			JOIN [AAM_DEVICE_SOFTWARE] s ON r.[device_software_id]=s.id
			WHERE krun_status = 'D' AND s.device_id	= @v_deviceId
            
			DELETE FROM AAM_DEVICE_SOFTWARE
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			UPDATE AAM_DEVICE_SOFTWARE 
			SET		krun_status = 'D'
			WHERE	device_id	= @v_deviceId
	END	

	/*========================================================================================================================*/
	/* ARCHIVOS                                                                                                               */
	/*========================================================================================================================*/		
	IF @v_section = 'FILE'             
	BEGIN  
		
		IF @v_option = 'START'
		BEGIN
			UPDATE  AAM_DEVICE_FILE 
			SET		krun_status =  'D'
			WHERE	device_id	= @v_deviceId
			
			UPDATE  AAM_DEVICE_FILE_VERSION 
			SET		krun_status =  'D'
			WHERE	device_id	= @v_deviceId
		END
		ELSE
		BEGIN  
			DELETE 
			FROM	AAM_DEVICE_FILE
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId
		
			DELETE 
			FROM	AAM_DEVICE_FILE_VERSION
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId
		END
	END

	/*========================================================================================================================*/
	/* Usuarios y grupos locales                                                                                              */
	/*========================================================================================================================*/		
	IF @v_section = 'MEMBERSHIP'             
	BEGIN  

			DELETE 
			FROM	AAM_DEVICE_MEMBERSHIP
			WHERE	krun_status = 'D'
			AND		device_id	= @v_deviceId

			
			UPDATE  AAM_DEVICE_MEMBERSHIP 
			SET		krun_status =  'D'
			WHERE	device_id	= @v_deviceId	
	END

END
GO
PRINT N'Creating Procedure [dbo].[PRC_ADW_PROCESS_CUBES]...';


GO

CREATE PROCEDURE [dbo].[PRC_ADW_PROCESS_CUBES]
		
AS
BEGIN

	DELETE FROM  [dbo].[ADW_ARTICLE_CUBE]

	INSERT INTO [dbo].[ADW_ARTICLE_CUBE]
	SELECT [project_id]
		  ,[state_id]
		  ,[type_id]
		  ,[author_id]
		  ,[responsible_id]
		  ,[group_id]
		  ,[modifier_id]
		  ,ISNULL ([reason_id],0)
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,COUNT(1) 
		  ,SUM([hit])
		  ,AVG([rating])
	  FROM [dbo].[ASS_ARTICLE_DW_LAST]
	  GROUP BY CUBE ( [project_id]
		  ,[state_id]
		  ,[type_id]
		  ,[author_id]
		  ,[responsible_id]
		  ,[group_id]
		  ,[modifier_id]
		  ,ISNULL ([reason_id],0))


	DELETE FROM  [dbo].[ADW_CI_CUBE]

	INSERT INTO [dbo].[ADW_CI_CUBE]
	SELECT [state_id]
		  ,[category_id]
		  ,[responsible_id]
		  ,[author_id]
		  ,[modifier_id]
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,ISNULL ([impact_id],0)
		  ,ISNULL ([brand_id],0)
		  ,ISNULL ([model_id],0)
		  ,ISNULL ([reason_id],0)
		  ,ISNULL ([costcenter_id],0)
		  ,ISNULL ([manufacturer_id],0)
		  ,ISNULL ([provider_id],0)
		  ,COUNT(1)
		  ,SUM([price])
	  FROM [dbo].[CMDB_CI_DW_LAST]  
	  GROUP BY CUBE ( [state_id]
		  ,[category_id]
		  ,[responsible_id]
		  ,[author_id]
		  ,[modifier_id]
		  ,ISNULL ([impact_id],0)
		  ,ISNULL ([brand_id],0)      
		  ,ISNULL ([model_id],0)
		  ,ISNULL ([reason_id],0)
		  ,ISNULL ([costcenter_id],0)
		  ,ISNULL ([manufacturer_id],0)
		  ,ISNULL ([provider_id],0))


	DELETE FROM  [dbo].[ADW_EVENT_CUBE]

	INSERT INTO [dbo].[ADW_EVENT_CUBE]
	SELECT [author_id]
		  ,[responsible_id]
		  ,[state_id]
		  ,[project_id]
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,[modifier_id]
		  ,[type_id]
		  ,ISNULL ([priority_id],0)
		  ,ISNULL ([reason_id],0)
		  ,[group_id]
		  ,ISNULL ([ci_id],0)
		  ,SUM([recurrence])
		  ,COUNT(1) 
		  ,SUM([value])
	  FROM [dbo].[ASDK_EVENT_DW_LAST]
	  GROUP BY CUBE ([author_id]
		  ,[responsible_id]
		  ,[state_id]
		  ,[project_id]
		  ,[modifier_id]
		  ,[type_id]
		  ,ISNULL ([priority_id],0)
		  ,ISNULL ([reason_id],0)
		  ,[group_id]
		  ,ISNULL ([ci_id],0))


	DELETE FROM [dbo].[ADW_SERVICE_CUBE]

	INSERT INTO [dbo].[ADW_SERVICE_CUBE]
	SELECT [responsible_id]
		  ,[project_id]
		  ,[state_id]
		  ,[author_id]
		  ,[modifier_id]
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,ISNULL ([impact_id],0)
		  ,[stage_id]
		  ,[type_id]
		  ,ISNULL ([reason_id],0)
		  ,ISNULL ([group_id],0)
		  ,COUNT(1) 
	  FROM [dbo].[ASDK_SERVICE_DW_LAST]
      GROUP BY CUBE ([responsible_id]
		  ,[project_id]
		  ,[state_id]
		  ,[author_id]
		  ,[modifier_id]
		  ,ISNULL ([impact_id],0)
		  ,[stage_id]
		  ,[type_id]
		  ,ISNULL ([reason_id],0)
		  ,ISNULL ([group_id],0))


	DELETE FROM [dbo].[ADW_ITEM_CUBE]

	INSERT INTO [dbo].[ADW_ITEM_CUBE]
	SELECT  [project_id]
		  ,[modifier_id]
		  ,[author_id]
		  ,[responsible_id]
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,[state_id]
		  ,[model_id]
		  ,ISNULL ([impact_id],0)
		  ,ISNULL ([urgency_id],0)
		  ,ISNULL ([priority_id],0)
		  ,[category_id]
		  ,[service_id]
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  ,NULL
		  --,ISNULL ([registry_type_id],0)
		  --,ISNULL ([customer_id],0)
		  --,ISNULL ([company_id],0)
		  --,ISNULL ([sla_id],0)
		  --,ISNULL ([uc_id],0)
		  --,ISNULL ([ola_id],0)
		  --,ISNULL ([reason_id],0)
		  --,[group_id]
		  --,ISNULL ([ci_id],0)
		  --,ISNULL ([provider_id],0)
		  --,ISNULL ([unit_id],0)
		  ,[type_id]
		  ,SUM([price]) 
		  ,SUM([cost]) 
		  ,SUM([effort]) 
		  ,SUM([estimated_time]) 
		  ,SUM([current_progress]) 
		  ,SUM([current_time]) 
		  ,COUNT(1) 
	FROM [dbo].[ASDK_ITEM_DW_LAST]
	GROUP BY CUBE ([project_id]
		  ,[modifier_id]
		  ,[author_id]
		  ,[responsible_id]
		  ,[state_id]
		  ,[model_id]
		  ,ISNULL ([impact_id],0)
		  ,ISNULL ([urgency_id],0)
		  ,ISNULL ([priority_id],0)
		  ,[category_id]
		  ,[service_id]
		  ,[type_id]
		  --,ISNULL ([registry_type_id],0)
		  --,ISNULL ([customer_id],0)
		  --,ISNULL ([company_id],0)
		  --,ISNULL ([sla_id],0)
		  --,ISNULL ([uc_id],0)
		  --,ISNULL ([ola_id],0)
		  --,ISNULL ([reason_id],0)
		  --,[group_id]
		  --,ISNULL ([ci_id],0)
		  --,ISNULL ([provider_id],0)
		  )
END
GO
PRINT N'Creating Procedure [dbo].[PRC_ADW_PROCESS_DIMS]...';


GO


CREATE PROCEDURE [dbo].[PRC_ADW_PROCESS_DIMS]
		
AS
BEGIN

	DELETE FROM [dbo].[ADW_ARTICLE_CUBE]
	DELETE FROM [dbo].[ADW_EVENT_CUBE]
	DELETE FROM [dbo].[ADW_CI_CUBE]
	DELETE FROM [dbo].[ADW_ITEM_CUBE]
	DELETE FROM [dbo].[ADW_SERVICE_CUBE]

	DELETE FROM [dbo].[ADW_PROJECT_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT project_id AS id, project_name AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASS_ARTICLE_DW_LAST 
			GROUP BY project_id, project_name
		UNION
		SELECT project_id AS id, project_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_EVENT_DW_LAST 
			GROUP BY project_id, project_name
		UNION
		SELECT project_id AS id, project_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_ITEM_DW_LAST 
			GROUP BY project_id, project_name
		UNION
		SELECT project_id AS id, project_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_SERVICE_DW_LAST 
			GROUP BY project_id, project_name)
	INSERT INTO [dbo].[ADW_PROJECT_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END



	DELETE FROM [dbo].[ADW_TYPE_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL([type_id],0) AS id, ISNULL([type_name],'') AS name, MAX(modified_date) AS modified_date
			FROM ASS_ARTICLE_DW_LAST 
			GROUP BY type_id, type_name
		UNION
		SELECT ISNULL(category_id,0) AS id, ISNULL(category_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY category_id, category_name
		UNION
		SELECT ISNULL(model_id,0) AS id, ISNULL(model_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY model_id, model_name)
	INSERT INTO [dbo].[ADW_TYPE_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END



	DELETE FROM [dbo].[ADW_ITEM_TYPE_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT type_id AS id, type_name AS name, MAX(modified_date) AS modified_date
			FROM ASDK_ITEM_DW_LAST 
			GROUP BY type_id, type_name)
	INSERT INTO [dbo].[ADW_ITEM_TYPE_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_RESPONSIBLE_DIM]
    BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(responsible_id,0) AS id, ISNULL(responsible_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASS_ARTICLE_DW_LAST 
			GROUP BY responsible_id, responsible_name
		UNION
		SELECT ISNULL(responsible_id,0) AS id, ISNULL(responsible_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY responsible_id, responsible_name
		UNION
		SELECT ISNULL(responsible_id,0) AS id, ISNULL(responsible_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_EVENT_DW_LAST
			GROUP BY responsible_id, responsible_name
		UNION
		SELECT ISNULL(responsible_id,0) AS id, ISNULL(responsible_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY responsible_id, responsible_name
		UNION
		SELECT ISNULL(responsible_id,0) AS id, ISNULL(responsible_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_SERVICE_DW_LAST
			GROUP BY responsible_id, responsible_name)
	INSERT INTO [dbo].[ADW_RESPONSIBLE_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END
	


	DELETE FROM [dbo].[ADW_STATUS_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT state_id AS id, state_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASS_ARTICLE_DW_LAST 
			GROUP BY state_id, state_name
		union
		SELECT state_id AS id, state_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.CMDB_CI_DW_LAST 
			GROUP BY state_id, state_name
		UNION
		SELECT state_id AS id, state_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_EVENT_DW_LAST  
			GROUP BY state_id, state_name
		UNION
		SELECT state_id AS id, state_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_ITEM_DW_LAST  
			GROUP BY state_id, state_name
		UNION
		SELECT state_id AS id, state_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_SERVICE_DW_LAST 
			GROUP BY state_id, state_name) 
	INSERT INTO [dbo].[ADW_STATUS_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END
	   


	DELETE FROM [dbo].[ADW_AUTHOR_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT author_id AS id, author_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASS_ARTICLE_DW_LAST
			GROUP BY author_id, author_name
		UNION
		SELECT author_id AS id, author_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY author_id, author_name
		UNION
		SELECT author_id AS id, author_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_EVENT_DW_LAST
			GROUP BY author_id, author_name
		UNION
		SELECT author_id AS id, author_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY author_id, author_name
		UNION
		SELECT author_id AS id, author_name AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_SERVICE_DW_LAST
			GROUP BY author_id, author_name)
	INSERT INTO [dbo].[ADW_AUTHOR_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END

	   


	DELETE FROM [dbo].[ADW_MODIFIER_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(modifier_id,0) AS id, ISNULL(modifier_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASS_ARTICLE_DW_LAST
			GROUP BY modifier_id, modifier_name
		UNION
		SELECT ISNULL(modifier_id,0) AS id, ISNULL(modifier_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY modifier_id, modifier_name
		UNION
		SELECT ISNULL(modifier_id,0) AS id, ISNULL(modifier_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_EVENT_DW_LAST
			GROUP BY modifier_id, modifier_name
		UNION
		SELECT ISNULL(modifier_id,0) AS id, ISNULL(modifier_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY modifier_id, modifier_name
		UNION
		SELECT ISNULL(modifier_id,0) AS id, ISNULL(modifier_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_SERVICE_DW_LAST
			GROUP BY modifier_id, modifier_name)
	INSERT INTO [dbo].[ADW_MODIFIER_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END

	   


	DELETE FROM [dbo].[ADW_REASON_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(reason_id,0) AS id,  ISNULL(reason_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASS_ARTICLE_DW_LAST
			GROUP BY reason_id, reason_name
		UNION
		SELECT ISNULL(reason_id,0) AS id, ISNULL(reason_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY reason_id, reason_name
		UNION
		SELECT ISNULL(reason_id,0) AS id, ISNULL(reason_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_EVENT_DW_LAST 
			GROUP BY reason_id, reason_name
		UNION
		SELECT ISNULL(reason_id,0) AS id,  ISNULL(reason_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY reason_id, reason_name 
		UNION
		SELECT ISNULL(reason_id,0) AS id,  ISNULL(reason_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_SERVICE_DW_LAST
			GROUP BY reason_id, reason_name)
	INSERT INTO [dbo].[ADW_REASON_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_GROUP_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(group_id,0) AS id, ISNULL(group_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASS_ARTICLE_DW_LAST
			GROUP BY group_id, group_name
		UNION
		SELECT ISNULL(group_id,0) AS id, ISNULL(group_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_EVENT_DW_LAST
			GROUP BY group_id, group_name
		UNION
		SELECT ISNULL(group_id,0) AS id, ISNULL(group_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY group_id, group_name
		UNION
		SELECT ISNULL(group_id,0) AS id, ISNULL(group_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_SERVICE_DW_LAST
			GROUP BY group_id, group_name) 
	INSERT INTO [dbo].[ADW_GROUP_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_CI_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(ci_id,0) AS id, ISNULL(ci_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_EVENT_DW_LAST
			GROUP BY ci_id, ci_name
		UNION
		SELECT ISNULL(ci_id,0) AS id, ISNULL(ci_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY ci_id, ci_name)
	INSERT INTO [dbo].[ADW_CI_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_IMPACT_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(impact_id,0) AS id, ISNULL(impact_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY impact_id, impact_name
		UNION
		SELECT ISNULL(impact_id,0) AS id, ISNULL(impact_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY impact_id, impact_name
		UNION
		SELECT ISNULL(impact_id,0) AS id, ISNULL(impact_name,'') AS name, MAX(modified_date) AS modified_date
			FROM  dbo.ASDK_SERVICE_DW_LAST
			GROUP BY impact_id, impact_name)
	INSERT INTO [dbo].[ADW_IMPACT_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END





	DELETE FROM [dbo].[ADW_PRIORITY_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(priority_id,0) AS id, ISNULL(priority_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_EVENT_DW_LAST
			GROUP BY priority_id, priority_name
		UNION
		SELECT ISNULL(priority_id,0) AS id, ISNULL(priority_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY priority_id, priority_name)
	INSERT INTO [dbo].[ADW_PRIORITY_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_PROVIDER_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(provider_id,0) AS id, ISNULL(provider_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY provider_id, provider_name
		UNION
		SELECT ISNULL(provider_id,0) AS id, ISNULL(provider_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY provider_id, provider_name) 
	INSERT INTO [dbo].[ADW_PROVIDER_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_URGENCY_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(urgency_id,0) AS id, ISNULL(urgency_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY urgency_id, urgency_name) 
	INSERT INTO [dbo].[ADW_URGENCY_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END


	DELETE FROM [dbo].[ADW_EVENT_TYPE_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL([type_id],0) AS id, ISNULL([type_name],'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.[ASDK_EVENT_DW_LAST]
			GROUP BY [type_id], [type_name]) 
	INSERT INTO [dbo].[ADW_EVENT_TYPE_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END
		


	DELETE FROM [dbo].[ADW_SERVICE_TYPE_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL([type_id],0) AS id, ISNULL([type_name],'Intern') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.[ASDK_SERVICE_DW_LAST]
			GROUP BY [type_id], [type_name])
	INSERT INTO [dbo].[ADW_SERVICE_TYPE_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END
		


	DELETE FROM [dbo].[ADW_SERVICE_STAGE_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(stage_id,0) AS id, CASE ISNULL(stage_name,'Strategy') WHEN '' THEN 'Strategy' ELSE ISNULL(stage_name,'Strategy')END  AS name, MAX(modified_date) AS modified_date
		FROM  dbo.[ASDK_SERVICE_DW_LAST]
			GROUP BY stage_id, stage_name)
	INSERT INTO [dbo].[ADW_SERVICE_STAGE_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END


		
	DELETE FROM [dbo].[ADW_BRAND_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(brand_id,0) AS id, ISNULL(brand_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY brand_id, brand_name)
	INSERT INTO [dbo].[ADW_BRAND_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END


		
	DELETE FROM [dbo].[ADW_MODEL_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(model_id,0) AS id, ISNULL(model_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY model_id, model_name) 
	INSERT INTO [dbo].[ADW_MODEL_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END


		
	DELETE FROM [dbo].[ADW_COST_CENTER_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(costcenter_id,0) AS id, ISNULL(costcenter_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY costcenter_id, costcenter_name) 
	INSERT INTO [dbo].[ADW_COST_CENTER_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END


		
	DELETE FROM [dbo].[ADW_MANUFACTURER_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(manufacturer_id,0) AS id, ISNULL(manufacturer_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.CMDB_CI_DW_LAST
			GROUP BY manufacturer_id, manufacturer_name)
	INSERT INTO [dbo].[ADW_MANUFACTURER_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_SERVICE_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(service_id,0) AS id, ISNULL(service_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY service_id, service_name)
	INSERT INTO [dbo].[ADW_SERVICE_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_CATEGORY_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(category_id,0) AS id, ISNULL(category_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY category_id, category_name)
	INSERT INTO [dbo].[ADW_CATEGORY_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_SLA_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(sla_id,0) AS id, ISNULL(sla_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY sla_id, sla_name)
	INSERT INTO [dbo].[ADW_SLA_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_UC_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(uc_id,0) AS id, ISNULL(uc_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY uc_id, uc_name)
	INSERT INTO [dbo].[ADW_UC_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_OLA_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(ola_id,0) AS id, ISNULL(ola_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY ola_id, ola_name)
	INSERT INTO [dbo].[ADW_OLA_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_REGISTRY_TYPE_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(registry_type_id,0) AS id, ISNULL(registry_type_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY registry_type_id, registry_type_name)
	INSERT INTO [dbo].[ADW_REGISTRY_TYPE_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END





	DELETE FROM [dbo].[ADW_CUSTOMER_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(customer_id,0) AS id, ISNULL(customer_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY customer_id, customer_name)
	INSERT INTO [dbo].[ADW_CUSTOMER_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_COMPANY_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(company_id,0) AS id, ISNULL(company_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY company_id, company_name)
	INSERT INTO [dbo].[ADW_COMPANY_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END




	DELETE FROM [dbo].[ADW_AREA_DIM]
	BEGIN
	WITH temp_table AS ( 
		SELECT ISNULL(unit_id,0) AS id, ISNULL(unit_name,'') AS name, MAX(modified_date) AS modified_date
		FROM  dbo.ASDK_ITEM_DW_LAST
			GROUP BY unit_id, unit_name)
	INSERT INTO [dbo].[ADW_AREA_DIM]
	SELECT n.id, n.name
        FROM  temp_table n
		INNER JOIN (
		SELECT id AS id, MAX(modified_date) AS modified_date
  		FROM temp_table GROUP BY id
		) AS m ON n.id=m.id AND n.modified_date=m.modified_date
	END


END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34001_REPORT_DATASET_COMPILANCE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34001_REPORT_DATASET_COMPILANCE]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,		
	@service				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN
SELECT TOP 5 R.SERVICIO, R.SERV_NAME, SUM(R.DENTRO) AS DENTRO, SUM(R.FUERA) AS FUERA
	FROM
	(
	SELECT WO.serv_id AS SERVICIO, SV.serv_name AS SERV_NAME,
	CASE WHEN
	ISNULL((
	SELECT COUNT(CRR.chresult_item_id) AS TOTAL
	FROM [dbo].[AFLS_CHRONOS_RESULTS_REPORT] AS CRR
	WHERE CRR.chresult_item_id = WO.work_id AND CRR.chresult_providerid IS NULL AND
	CRR.chresult_complies = 0 AND CRR.chresult_currenttime > 0
	), 0) != 0 THEN 0 ELSE 1 END AS DENTRO,
	CASE WHEN
	ISNULL((
	SELECT COUNT(CRR.chresult_item_id) AS TOTAL
	FROM [dbo].[AFLS_CHRONOS_RESULTS_REPORT] AS CRR
	WHERE CRR.chresult_item_id = WO.work_id AND CRR.chresult_providerid IS NULL AND 
	CRR.chresult_complies = 0 AND CRR.chresult_currenttime > 0
	), 0) != 0 THEN 1 ELSE 0 END AS FUERA
	FROM AFLS_WORKORDERS AS WO
	JOIN AFW_USERS AS US ON US.user_id = WO.work_attendant
	JOIN AFLS_SERVICES AS SV ON WO.serv_id = SV.serv_id
	WHERE
	CAST(WO.work_attention_end_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE) AND
	WO.stat_id = 4 
	AND (@service = -1 OR WO.serv_id = @service)
	AND (@provider = -1 OR WO.work_provider_id = @provider)
	) AS R
	GROUP BY R.SERVICIO, R.SERV_NAME
	ORDER BY SUM(R.FUERA) DESC, SUM(R.DENTRO) ASC
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34001_REPORT_DATASET_ORDERS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34001_REPORT_DATASET_ORDERS]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,		
	@service				INT = -1,
	@provider				INT = -1,
	@offset					INT
) 
AS		
BEGIN

SET @initDate = DATEADD(MINUTE,@offset, @initDate)
SET @endDate = DATEADD(MINUTE,@offset, @endDate)

SELECT WO.ticket_id, SV.serv_name, WO.work_subject, WO.work_created_date,
		WO.work_tentative_attention_start_date,
		WO.work_tentative_attention_end_date,
		WO.work_attention_start_date,
		WO.work_attention_end_date,
		CASE WHEN
		ISNULL((
		SELECT COUNT(CRR.chresult_item_id) AS TOTAL
		FROM [dbo].[AFLS_CHRONOS_RESULTS_REPORT] AS CRR
		WHERE CRR.chresult_item_id = WO.work_id AND CRR.chresult_providerid IS NULL
		AND CRR.chresult_complies = 0 AND CRR.chresult_currenttime > 0
		), 0) != 0 THEN 'Fuera' ELSE 'Dentro' END AS Estado,
		ISNULL((
		SELECT MAX(CAST(CRR.chresult_currenttime/60 AS DECIMAL(24,4))) AS TOTAL
		FROM [dbo].[AFLS_CHRONOS_RESULTS_REPORT] AS CRR		
		WHERE CRR.chresult_item_id = WO.work_id AND CRR.chresult_providerid IS NULL
		AND CRR.chresult_complies = 0 AND CRR.chresult_currenttime > 0
		GROUP BY  crr.chresult_item_id
		), 0) 'Tiempo Fuera' ,
		  
		US.user_name AS Agente
		FROM AFLS_WORKORDERS AS WO
		JOIN AFW_USERS AS US ON US.user_id = WO.work_attendant
		JOIN AFLS_SERVICES AS SV ON WO.serv_id = SV.serv_id
		WHERE
		CAST(WO.work_attention_end_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE) AND
		WO.stat_id = 4 
		AND (@service = -1 OR WO.serv_id = @service)
		AND (@provider = -1 OR WO.work_provider_id = @provider)
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34001_REPORT_DATASET_ORDERS_STATE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34001_REPORT_DATASET_ORDERS_STATE]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,		
	@service				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN
SELECT [STATES], [AMOUNT]
FROM 
(SELECT
ISNULL(SUM(R.DENTRO),0) AS DENTRO, ISNULL(SUM(R.FUERA),0) AS FUERA
        FROM
        (
        SELECT WO.serv_id AS SERVICIO, SV.serv_name AS SERV_NAME,
        CASE WHEN
        ISNULL((
        SELECT COUNT(CRR.chresult_item_id) AS TOTAL
        FROM [dbo].[AFLS_CHRONOS_RESULTS_REPORT] AS CRR
        WHERE CRR.chresult_item_id = WO.work_id AND CRR.chresult_providerid IS NULL AND 
        CRR.chresult_complies = 0 AND CRR.chresult_currenttime > 0
        ), 0) != 0 THEN 0 ELSE 1 END AS DENTRO,
        CASE WHEN
        ISNULL((
        SELECT COUNT(CRR.chresult_item_id) AS TOTAL
        FROM [dbo].[AFLS_CHRONOS_RESULTS_REPORT] AS CRR
        WHERE CRR.chresult_item_id = WO.work_id AND CRR.chresult_providerid IS NULL AND
        CRR.chresult_complies = 0 AND CRR.chresult_currenttime > 0
        ), 0) != 0 THEN 1 ELSE 0 END AS FUERA
        FROM AFLS_WORKORDERS AS WO
        JOIN AFW_USERS AS US ON US.user_id = WO.work_attendant
        JOIN AFLS_SERVICES AS SV ON WO.serv_id = SV.serv_id
        WHERE
        CAST(WO.work_attention_end_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE) AND
        WO.stat_id = 4 
		AND (@service = -1 OR WO.serv_id = @service)
		AND (@provider = -1 OR WO.work_provider_id = @provider)
        ) AS R
	)R1
	UNPIVOT
([AMOUNT] FOR [STATES] IN 
    (DENTRO,FUERA)
)AS unpvt 
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34002_REPORT_DATASET_ORDERS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34002_REPORT_DATASET_ORDERS]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,		
	@service				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN
SELECT US.user_name AS SPECIALIST, COUNT(WO.work_id) AS CASOS, COUNT(WO.work_id) * CAST(AVG(CRR.chresult_currenttime/60) AS DECIMAL(21,4)) AS TOTAL ,CAST(AVG(CRR.chresult_currenttime/60) AS DECIMAL(21,4)) AS PROMEDIO
	FROM AFLS_WORKORDERS AS WO
	JOIN AFW_USERS AS US ON US.user_id = WO.work_attendant
	LEFT JOIN [dbo].[AFLS_CHRONOS_RESULTS_REPORT] AS CRR ON WO.work_id = CRR.chresult_item_id AND CRR.chresult_itemtime_id = 1 AND CRR.chresult_providerid IS NULL       
	WHERE
	CAST(WO.work_created_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE) AND
	WO.stat_id = 4 AND CRR.chresult_currenttime >= 0 
	AND (@service = -1 OR WO.serv_id = @service)
	AND (@provider = -1 OR WO.work_provider_id = @provider)
	GROUP BY WO.work_attendant, US.user_name
	ORDER BY CASOS
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34002_REPORT_DATASET_ORDERS_BY_SPECIALIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34002_REPORT_DATASET_ORDERS_BY_SPECIALIST]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,		
	@service				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN
          SELECT TOP(5) 
			US.user_name AS SPECIALIST,
			COUNT(WO.work_id) AS CASOS
		FROM AFLS_WORKORDERS AS WO
		LEFT JOIN AFW_USERS AS US ON WO.work_attendant = US.user_id
		WHERE
		WO.stat_id = 4
		AND CAST(WO.work_created_date AS DATE) BETWEEN CAST(@initDate  AS DATE) AND CAST(@endDate AS DATE)
		AND (@service = -1 OR WO.serv_id = @service)
		AND (@provider = -1 OR WO.work_provider_id = @provider)
		GROUP BY US.user_name		
		ORDER BY COUNT(WO.work_id) DESC

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34002_REPORT_DATASET_ORDERS_TIME_BY_SPECIALIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34002_REPORT_DATASET_ORDERS_TIME_BY_SPECIALIST]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,		
	@service				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN
SELECT TOP 5 US.user_name AS SPECIALIST, CAST(AVG(CRR.chresult_currenttime/60) AS DECIMAL(21,4)) AS PROMEDIO
	FROM AFLS_WORKORDERS AS WO
	JOIN AFW_USERS AS US ON US.user_id = WO.work_attendant
	LEFT JOIN [dbo].[AFLS_CHRONOS_RESULTS_REPORT] AS CRR ON WO.work_id = CRR.chresult_item_id AND CRR.chresult_itemtime_id = 1 AND CRR.chresult_providerid IS NULL
	WHERE
	CAST(WO.work_created_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE) AND
	WO.stat_id = 4 AND CRR.chresult_currenttime >= 0 
	AND (@service = -1 OR WO.serv_id = @service)
	AND (@provider = -1 OR WO.work_provider_id = @provider)
	GROUP BY WO.work_attendant, US.user_name
	ORDER BY PROMEDIO
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34003_REPORT_DATASET_ORDERS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34003_REPORT_DATASET_ORDERS]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,		
	@service				INT = -1,
	@provider				INT = -1,
	@offset					INT
) 
AS		
BEGIN
	
	SET @initDate = DATEADD(MINUTE,@offset, @initDate)
	SET @endDate = DATEADD(MINUTE,@offset, @endDate)

	SELECT AFLS_WORKORDERS.ticket_id,
			AFLS_WORKORDERS.work_subject,
			AFLS_STATES.stat_name,
			AFLS_SERVICES.serv_name,
			AFLS_WORKORDERS.work_tentative_attention_start_date,
			AFLS_WORKORDERS.work_tentative_attention_end_date,
			AFW_USERS.user_name AS Specialist,
			CLIENT.user_name AS Client,
			AFLS_WORKORDERS.work_address,
			AFLS_WORKORDER_CONSOLIDATES.cons_transport + AFLS_WORKORDER_CONSOLIDATES.cons_specialist + AFLS_WORKORDER_CONSOLIDATES.cons_products + AFLS_WORKORDER_CONSOLIDATES.cons_service AS Cost,
			AFLS_WORKORDERS.work_created_date
	FROM AFLS_WORKORDERS
	INNER JOIN AFLS_STATES ON AFLS_WORKORDERS.stat_id = AFLS_STATES.stat_id
	INNER JOIN AFLS_SERVICES ON AFLS_WORKORDERS.serv_id = AFLS_SERVICES.serv_id
	LEFT OUTER JOIN AFW_USERS ON AFLS_WORKORDERS.work_attendant = AFW_USERS.user_id
	INNER JOIN AFW_USERS AS CLIENT ON AFLS_WORKORDERS.clie_id = CLIENT.user_id
	LEFT OUTER JOIN AFLS_WORKORDER_CONSOLIDATES ON AFLS_WORKORDERS.work_id = AFLS_WORKORDER_CONSOLIDATES.work_id
	WHERE CAST(AFLS_WORKORDERS.work_created_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE)
		AND (@service = -1 OR AFLS_SERVICES.serv_id = @service)
		AND (@provider = -1 OR AFLS_WORKORDERS.work_provider_id = @provider)
	ORDER BY AFLS_WORKORDERS.work_id

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34003_REPORT_DATASET_ORDERS_BY_SERVICE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34003_REPORT_DATASET_ORDERS_BY_SERVICE]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,		
	@service				INT = -1,
	@provider				INT = -1,
	@TOTAL					INT = 0
) 
AS		
BEGIN
	SELECT @TOTAL = COUNT(WO.work_id)
	FROM
		AFLS_WORKORDERS AS WO
	WHERE
		CAST(WO.work_created_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE)
	AND (@service = -1 OR WO.serv_id = @service)
	AND (@provider = -1 OR WO.work_provider_id = @provider)


	DECLARE @services TABLE(
		SERVICESID INT,
		SERVICES VARCHAR(MAX),
		AMOUNT INT
	);

	INSERT INTO @services(SERVICESID, SERVICES, AMOUNT)
	SELECT WO.serv_id, SV.serv_name AS 'SERVICES', 
		  COUNT(WO.work_id) AS AMOUNT
	FROM
		AFLS_WORKORDERS AS WO
	JOIN AFLS_SERVICES AS SV ON SV.serv_id = WO.serv_id
	WHERE
		CAST(WO.work_created_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE)
	AND (@service = -1 OR WO.serv_id = @service)
	AND (@provider = -1 OR WO.work_provider_id = @provider)
	GROUP BY WO.serv_id,SV.serv_name
	ORDER BY COUNT(WO.work_id) DESC

	SELECT R.SERVICES,
		SUM(R.AMOUNT) AS AMOUNT,
		CAST(CASE WHEN @Total = 0 THEN 0 ELSE ISNULL(CAST((SUM(R.AMOUNT)*100) AS DECIMAL(18,2))/@Total,0) END AS DECIMAL(18,2)) AS 'PERCENT',
		@Total AS TOTAL
	FROM
	(
		SELECT CASE WHEN TG.SERVICESID IN (SELECT TOP 4 SR.SERVICESID FROM @services AS SR ORDER BY SR.AMOUNT DESC) THEN TG.SERVICES ELSE 'Others' END SERVICES,	
		TG.AMOUNT
		FROM @services AS TG	
	)R
	GROUP BY R.SERVICES
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34003_REPORT_ORDER_STATE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34003_REPORT_ORDER_STATE]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,		
	@service				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN
SELECT ST.stat_name AS STATES,
	COUNT(WO.work_id) AS AMOUNT
FROM
	AFLS_WORKORDERS AS WO
JOIN AFLS_STATES AS ST ON WO.stat_id = ST.stat_id
WHERE
	CAST(WO.work_created_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE)
AND (@service = -1 OR WO.serv_id = @service)
AND (@provider = -1 OR WO.work_provider_id = @provider)
GROUP BY ST.stat_name

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34004_REPORT_DATASET_SERVICES]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34004_REPORT_DATASET_SERVICES]
AS		
BEGIN
SELECT        - 1 AS serv_id, 'Todos los servicios' AS serv_name
          UNION
          SELECT        serv_id, serv_name
          FROM            AFLS_SERVICES
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34004_REPORT_TREND_BY_COMPILANCE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34004_REPORT_TREND_BY_COMPILANCE]
(
	@range_time				VARCHAR(10) = '',	
	@service				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN

DECLARE @THEDATES TABLE ( THEDATE VARCHAR(100));
	IF @range_time = 'SS'
	BEGIN
		INSERT @THEDATES (THEDATE)
		SELECT * FROM ExplodeDates(CONVERT(char(12), DATEADD(DAY, -6,GetDate()),112), CONVERT(char(12), GetDate(),112))
	END
	ELSE IF  @range_time = 'MM'
	BEGIN
		INSERT @THEDATES (THEDATE)
		SELECT * FROM ExplodeDates(CONVERT(char(12), DATEADD(DAY, -30,GetDate()),112), CONVERT(char(12), GetDate(),112))
	END
	ELSE
	BEGIN
		INSERT @THEDATES (THEDATE)
		SELECT * FROM ExplodeDatesMonth(CONVERT(char(12), DATEADD(MONTH, -11,GetDate()),112), CONVERT(char(12), GetDate(),112))
	END

	SELECT ROW_NUMBER() OVER(ORDER BY CAST(DA.THEDATE AS DATE) ASC) AS ORDEN,CAST(DA.THEDATE AS DATE) AS TIEMPO,  SUM(CASE WHEN CRR.chresult_complies = 1 THEN 1 ELSE 0 END) AS DENTRO
	, SUM(CASE WHEN CRR.chresult_complies = 0 THEN 1 ELSE 0 END) AS FUERA
	FROM (
	SELECT CRR1.chresult_complies, CRR1.chresult_enddate FROM
	[dbo].[AFLS_CHRONOS_RESULTS_REPORT] AS CRR1
	JOIN [dbo].[AFLS_WORKORDERS] AS WOR ON WOR.work_id = CRR1.chresult_item_id
	WHERE
	WOR.stat_id = 4 AND CRR1.chresult_providerid IS NULL
	AND (@service = -1 OR WOR.serv_id = @service)
	AND (@provider = -1 OR WOR.work_provider_id = @provider)
	) AS CRR
	RIGHT JOIN @THEDATES AS DA ON
	CASE WHEN @range_time = 'SS' OR @range_time = 'MM' THEN DAY(DA.THEDATE) ELSE MONTH(THEDATE) END =
	CASE WHEN @range_time = 'SS' OR @range_time = 'MM' THEN DAY(CRR.chresult_enddate) ELSE MONTH(CRR.chresult_enddate) END AND
	MONTH(CRR.chresult_enddate) = MONTH(DA.THEDATE)
	GROUP BY DA.THEDATE	
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34004_REPORT_TREND_BY_SOLUTION]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34004_REPORT_TREND_BY_SOLUTION]
(
	@range_time				VARCHAR(10),	
	@service				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN

DECLARE @THEDATES TABLE ( THEDATE VARCHAR(100));
          IF @range_time = 'SS'
          BEGIN
          INSERT @THEDATES (THEDATE)
          SELECT * FROM ExplodeDates(CONVERT(char(12), DATEADD(DAY, -6,GetDate()),112), CONVERT(char(12), GetDate(),112))
          END
          ELSE IF  @range_time = 'MM'
          BEGIN
          INSERT @THEDATES (THEDATE)
          SELECT * FROM ExplodeDates(CONVERT(char(12), DATEADD(DAY, -30,GetDate()),112), CONVERT(char(12), GetDate(),112))
          END
          ELSE
          BEGIN
          INSERT @THEDATES (THEDATE)
          SELECT * FROM ExplodeDatesMonth(CONVERT(char(12), DATEADD(MONTH, -11,GetDate()),112), CONVERT(char(12), GetDate(),112))
          END

          SELECT ROW_NUMBER() OVER(ORDER BY CAST(DA.THEDATE AS DATE) ASC) AS ORDEN, CAST(DA.THEDATE AS DATE) AS TIEMPO, CAST(AVG(CASE WHEN CRR.chresult_currenttime > 0 THEN CRR.chresult_currenttime ELSE 0 END) AS DECIMAL(10,2))/60 AS TOTAL
          FROM (
          SELECT CRR1.chresult_currenttime, CRR1.chresult_enddate FROM
          [dbo].[AFLS_CHRONOS_RESULTS_REPORT] AS CRR1
          JOIN [dbo].[AFLS_WORKORDERS] AS WOR ON WOR.work_id = CRR1.chresult_item_id 
          WHERE
          CRR1.chresult_itemtime_id = 3 AND CRR1.chresult_agreetype is not null AND WOR.stat_id = 4 AND CRR1.chresult_providerid IS NULL
          AND (@service = -1 OR WOR.serv_id = @service)
		  AND (@provider = -1 OR WOR.work_provider_id = @provider)
          ) AS CRR
          RIGHT JOIN @THEDATES AS DA ON
          CASE WHEN @range_time = 'SS' OR @range_time = 'MM' THEN DAY(DA.THEDATE) ELSE MONTH(THEDATE) END =
          CASE WHEN @range_time = 'SS' OR @range_time = 'MM' THEN DAY(CRR.chresult_enddate) ELSE MONTH(CRR.chresult_enddate) END AND
          MONTH(CRR.chresult_enddate) = MONTH(DA.THEDATE)
          GROUP BY DA.THEDATE	
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34004_REPORT_TREND_BY_STATUS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34004_REPORT_TREND_BY_STATUS]
(
	@range_time				VARCHAR(10),	
	@service				INT = -1,
	@provider				INT = -1

) 
AS		
BEGIN
IF @range_time LIKE 'SS'
	SELECT 
		ROW_NUMBER() OVER(ORDER BY CAST(ISNULL(R.TIEMPO, THEDATE) AS DATE) ASC) AS ORDEN,
		ISNULL(R.TIEMPO, THEDATE) AS TIEMPO, 
		ISNULL(SUM(R.REPORTADOS),0) AS REPORTADOS,
		ISNULL(SUM(R.ABIERTOS),0) AS ABIERTOS,
		ISNULL(SUM(R.CERRADOS),0) AS CERRADOS	
	FROM
	(
		SELECT  
			CAST(WO.work_created_date AS DATE) TIEMPO, 
			ISNULL(COUNT(WO.work_id),0) REPORTADOS,
			ISNULL(CASE WHEN WO.stat_id IN(1,2) THEN COUNT(WO.work_id) END, 0) AS ABIERTOS,
			ISNULL(CASE WHEN WO.stat_id = 4 THEn COUNT(WO.work_id) END, 0) AS CERRADOS
		FROM AFLS_WORKORDERS WO
		WHERE	
			(@provider = -1 OR WO.work_provider_id = @provider) AND	 
			(@service = -1 OR WO.serv_id = @service)
		GROUP BY WO.stat_id, CAST(WO.work_created_date AS DATE)
	) As R RIGHT JOIN ExplodeDates(CONVERT(char(12), DATEADD(DAY, -6,GetDate()),112), CONVERT(char(12), GetDate(),112)) AS F	ON R.TIEMPO = CAST(THEDATE AS DATE)
	GROUP BY ISNULL(R.TIEMPO, THEDATE);

	ELSE IF @range_time LIKE 'MM'

	SELECT 
		ROW_NUMBER() OVER(ORDER BY CAST(ISNULL(R.TIEMPO, THEDATE) AS DATE) ASC) AS ORDEN,
		ISNULL(R.TIEMPO, THEDATE) AS TIEMPO, 
		ISNULL(SUM(R.REPORTADOS),0) AS REPORTADOS,
		ISNULL(SUM(R.ABIERTOS),0) AS ABIERTOS,
		ISNULL(SUM(R.CERRADOS),0) AS CERRADOS	
	FROM
	(
		SELECT  
			CAST(WO.work_created_date AS DATE) TIEMPO, 
			ISNULL(COUNT(WO.work_id),0) REPORTADOS,
			ISNULL(CASE WHEN WO.stat_id IN(1,2) THEN COUNT(WO.work_id) END, 0) AS ABIERTOS,
			ISNULL(CASE WHEN WO.stat_id = 4 THEn COUNT(WO.work_id) END, 0) AS CERRADOS
		FROM AFLS_WORKORDERS WO
		WHERE		 
			(@provider = -1 OR WO.work_provider_id = @provider) AND	 
			(@service = -1 OR WO.serv_id = @service)
		GROUP BY WO.stat_id, CAST(WO.work_created_date AS DATE)
	) As R RIGHT JOIN ExplodeDates(CONVERT(char(12), DATEADD(DAY, -30,GetDate()),112), CONVERT(char(12), GetDate(),112)) AS F	ON R.TIEMPO = CAST(THEDATE AS DATE)
	GROUP BY ISNULL(R.TIEMPO, THEDATE);


	ELSE

	SELECT 
		ROW_NUMBER() OVER(ORDER BY CAST(THEDATE AS DATE) ASC) AS ORDEN,
		CAST(THEDATE AS DATE) AS TIEMPO, 
		ISNULL(SUM(R.REPORTADOS),0) AS REPORTADOS,
		ISNULL(SUM(R.ABIERTOS),0) AS ABIERTOS,
		ISNULL(SUM(R.CERRADOS),0) AS CERRADOS	
	FROM
	(
		SELECT  
			CAST(WO.work_created_date AS DATE) TIEMPO, 
			ISNULL(COUNT(WO.work_id),0) REPORTADOS,
			ISNULL(CASE WHEN WO.stat_id IN(1,2) THEN COUNT(WO.work_id) END, 0) AS ABIERTOS,
			ISNULL(CASE WHEN WO.stat_id = 4 THEn COUNT(WO.work_id) END, 0) AS CERRADOS
		FROM AFLS_WORKORDERS WO
		WHERE		 
			(@provider = -1 OR WO.work_provider_id = @provider) AND	 
			(@service = -1 OR WO.serv_id = @service)
		GROUP BY WO.stat_id, CAST(WO.work_created_date AS DATE)
	) As R RIGHT JOIN ExplodeDatesMonth(CONVERT(char(12), DATEADD(MONTH, -11,GetDate()),112), CONVERT(char(12), GetDate(),112)) AS F
		ON YEAR(R.TIEMPO) = YEAR(THEDATE) AND
		MONTH(R.TIEMPO) = MONTH(THEDATE)
	GROUP BY THEDATE;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34005_REPORT_SOLUTION_TIME]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34005_REPORT_SOLUTION_TIME]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,
	@provider				INT = -1
) 
AS		
BEGIN
SELECT SRC.SERVICIO, SUM(SRC.TIEMPO) AS TIEMPO
          FROM
          (
          SELECT AFLS_SERVICES.serv_name AS SERVICIO,
          CAST(
          (
          SELECT ISNULL(SUM(chresult_currenttime)/60,0) FROM AFLS_CHRONOS_RESULTS_REPORT WHERE chresult_item_id = AFLS_WORKORDERS.work_id AND chresult_itemtime_id = 3 AND chresult_currenttime > 0 AND chresult_providerid IS NULL
          ) AS DECIMAL(21,4))  AS TIEMPO
          FROM AFLS_WORKORDERS
          INNER JOIN AFLS_SERVICES ON AFLS_WORKORDERS.serv_id = AFLS_SERVICES.serv_id
          WHERE (@provider = -1 OR work_provider_id = @provider) AND (AFLS_WORKORDERS.stat_id = 4) AND
          AFLS_WORKORDERS.work_attendant IS NOT NULL AND
          (CAST(AFLS_WORKORDERS.work_attention_end_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE))
          ) AS SRC
          GROUP BY SRC.SERVICIO
          ORDER BY TIEMPO DESC
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34005_REPORT_WORKORDER_LIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34005_REPORT_WORKORDER_LIST]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,
	@provider				INT = -1,
	@offset					INT
) 
AS		
BEGIN

	SET @initDate = DATEADD(MINUTE,@offset, @initDate)
	SET @endDate = DATEADD(MINUTE,@offset, @endDate)
	
	SELECT AFLS_WORKORDERS.ticket_id,
			AFLS_WORKORDERS.work_subject,
			AFLS_WORKORDERS.work_created_date,
			CAST(
			(
			SELECT ISNULL(SUM(chresult_currenttime)/60,0) FROM AFLS_CHRONOS_RESULTS_REPORT WHERE chresult_item_id = AFLS_WORKORDERS.work_id AND chresult_itemtime_id = 2 AND chresult_currenttime > 0 AND chresult_providerid IS NULL
			)AS DECIMAL(21,4)) AS onProcess,
			CAST(
			(
			SELECT ISNULL(SUM(chresult_currenttime)/60,0) FROM AFLS_CHRONOS_RESULTS_REPORT WHERE chresult_item_id = AFLS_WORKORDERS.work_id AND chresult_itemtime_id = 1 AND chresult_currenttime > 0 AND chresult_providerid IS NULL
			) AS DECIMAL(21,4))  AS ejecucion,
			AFLS_SERVICES.serv_name
	FROM AFLS_WORKORDERS
			INNER JOIN AFLS_SERVICES ON AFLS_WORKORDERS.serv_id = AFLS_SERVICES.serv_id
	WHERE (@provider = -1 OR work_provider_id = @provider) AND (AFLS_WORKORDERS.stat_id = 4) AND
			AFLS_WORKORDERS.work_attendant IS NOT NULL AND
			(CAST(AFLS_WORKORDERS.work_attention_end_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE))

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34006_REPORT_DATASET_COMPANIES]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34006_REPORT_DATASET_COMPANIES]
AS		
BEGIN
SELECT        - 1 AS comp_id, 'Todas las compañias' AS comp_name
          UNION
          SELECT C.comp_id, C.comp_name FROM AFLS_COMPANIES C
          ORDER BY comp_id

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34006_REPORT_DATASET_SERVICES]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34006_REPORT_DATASET_SERVICES]
AS		
BEGIN
SELECT        - 1 AS serv_id , 'Todos los servicios' AS serv_name
          UNION
          SELECT S.serv_id , S.serv_name FROM AFLS_SERVICES S
          ORDER BY serv_id

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34006_REPORT_DATASET_TOTALS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34006_REPORT_DATASET_TOTALS]
(
	@endDate datetime,
	@initDate datetime,
	@service int,
	@companie int,
	@provider int
)
AS		
BEGIN
  SELECT 
			 ISNULL(COUNT(WO.work_id), 0) AS 'NUMERO_ORDENES',
			 ISNULL(CAST(SUM(cons_service+cons_products+cons_transport+cons_specialist) AS DECIMAL(20,2)),0) AS 'COSTO_TOTAL'
			FROM 
				AFLS_WORKORDERS AS WO
			JOIN AFLS_WORKORDER_CONSOLIDATES AS WOC ON WOC.work_id = WO.work_id
			WHERE 
				WO.stat_id = 4 AND CAST(WO.work_attention_end_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE)
				AND
					  (@service = -1 OR WO.serv_id = @service) AND
					  (@companie = -1 OR Wo.comp_id = @companie) AND 
					  (@provider = -1 OR WO.work_provider_id = @provider) 

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34006_REPORT_DATASET_WORKORDER_LIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34006_REPORT_DATASET_WORKORDER_LIST]
(
	@endDate		DATETIME,
	@initDate		DATETIME,
	@service		INT,
	@provider		INT,
	@companie		INT,
	@offset			INT
)
AS		
BEGIN

	SET @initDate = DATEADD(MINUTE,@offset, @initDate)
	SET @endDate = DATEADD(MINUTE,@offset, @endDate)

	SELECT w.work_attention_end_date,
			w.ticket_id as 'work_id',
			w.work_id as 'id',
			CAST(s.serv_base_cost AS DECIMAL(20,2)) as 'serv_base_cost',
			CAST(wc.cons_products AS DECIMAL(20,2)) as 'cons_products',
			CAST(wc.cons_transport AS DECIMAL(20,2)) as 'cons_transport',
			CAST(wc.cons_specialist AS DECIMAL(20,2)) as 'cons_specialist',
			CAST((s.serv_base_cost + wc.cons_products + wc.cons_transport + wc.cons_specialist) AS DECIMAL(20,2)) 'total',
			c.comp_name,
			u.user_name
	FROM AFLS_WORKORDERS w
			LEFT JOIN AFLS_COMPANIES c ON c.comp_id = w.comp_id
			JOIN AFW_USERS u ON w.work_attendant = u.user_id
			JOIN AFLS_SERVICES s ON w.serv_id = s.serv_id
			JOIN AFLS_WORKORDER_CONSOLIDATES wc  ON w.work_id = wc.work_id
	WHERE
			W.stat_id =  4
			AND (@service = -1 OR w.serv_id = @service)
			AND (@companie = -1 OR w.comp_id = @companie)
			AND (@provider = -1 OR w.work_provider_id = @provider)
			AND w.work_attention_end_date BETWEEN CAST(@initDate AS DATE) AND DATEADD(DAY,1,CAST(@endDate AS DATE))
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34006_REPORT_DATASET_WORKORDER_PROM_COST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34006_REPORT_DATASET_WORKORDER_PROM_COST]
(
	@endDate datetime,
	@initDate datetime,
	@service int,
	@companie int,
	@provider int
)
AS		
BEGIN
SELECT 
	 CASE WHEN COUNT(WO.work_id) > 0 THEN ISNULL(SUM(cons_service),0)/COUNT(WO.work_id) ELSE 0 END AS 'Costo base promedio de servicio',
     CASE WHEN COUNT(WO.work_id) > 0 THEN ISNULL(SUM(cons_products),0)/COUNT(WO.work_id) ELSE 0 END AS 'Costo promedio de inventario',
     CASE WHEN COUNT(WO.work_id) > 0 THEN ISNULL(SUM(cons_transport),0)/COUNT(WO.work_id) ELSE 0 END AS 'Costo promedio de transporte',
     CASE WHEN COUNT(WO.work_id) > 0 THEN ISNULL(SUM(cons_specialist),0)/COUNT(WO.work_id) ELSE 0 END AS 'Costo promedio de especialistas'
FROM 
	AFLS_WORKORDERS AS WO
JOIN AFLS_WORKORDER_CONSOLIDATES AS WOC ON WOC.work_id = WO.work_id
WHERE 
	WO.stat_id = 4 AND CAST(WO.work_attention_end_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE)
	AND
          (@service = -1 OR WO.serv_id = @service) AND
          (@companie = -1 OR WO.comp_id = @companie) AND 
		  (@provider = -1 OR WO.work_provider_id = @provider)
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34006_REPORT_DATASET_WORKORDER_TOTAL_COST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34006_REPORT_DATASET_WORKORDER_TOTAL_COST]
(
	@endDate datetime,
	@initDate datetime,
	@service int,
	@companie int,
	@provider int
)
AS		
BEGIN
SELECT 
	 ISNULL(SUM(cons_service),0) AS 'Costo base total de servicio',
     ISNULL(SUM(cons_products),0) AS 'Costo total de inventario',
     ISNULL(SUM(cons_transport),0) AS 'Costo total de transporte',
     ISNULL(SUM(cons_specialist),0) AS 'Costo total de especialistas'
FROM 
	AFLS_WORKORDERS AS WO
JOIN AFLS_WORKORDER_CONSOLIDATES AS WOC ON WOC.work_id = WO.work_id
WHERE 
	WO.stat_id = 4 AND CAST(WO.work_attention_end_date AS DATE) BETWEEN CAST(@initDate AS DATE) AND CAST(@endDate AS DATE)
	AND
          (@service = -1 OR WO.serv_id = @service) AND
          (@companie = -1 OR Wo.comp_id = @companie)  AND 
		  (@provider = -1 OR WO.work_provider_id = @provider)
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34007_REPORT_GENERAL_INVENTORY]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34007_REPORT_GENERAL_INVENTORY]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,	
	@locationId				INT = -1
) 
AS		
BEGIN
	DECLARE @id INT
	DECLARE @targetLocationId INT = @locationId;
	DECLARE @targetLocationPath VARCHAR(MAX)

	SELECT 
	@id = LI.grou_id 
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS LI 
	WHERE LI.grou_name = 'AFLS_Locations';

    SELECT 
	@targetLocationPath = aslt_path 
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] 
	WHERE grou_id = @targetLocationId;

	SELECT
	location_id,
	location_name,
	product_id,
	product_name,
	product_measure,
	product_sku,
	ISNULL(product_avg_to_purchase, 0) AS product_avg_to_purchase,
	product_avg_to_sale,
	product_type,
	initial_inventory,
	inputs_quantity,
	returns_quantity,
	outputs_by_orders_quantity,
	outputs_without_order_quantity,
	outputs_quantity,
	(PRO.initial_inventory + PRO.inputs_quantity - PRO.outputs_quantity) AS final_inventory
	FROM
	(
	SELECT
	PAR.[location_id] AS location_id,
	PAR.[location_name] AS location_name,
	PRO.[prod_id] AS product_id,
	PRO.[prod_name] AS product_name,
	MEA.[mea_name] AS product_measure,
	PRO.[prod_sku] AS product_sku,
	(
	SELECT 
	ISNULL(PPUR.aipp_purchase, 0)
	FROM [dbo].[AFLS_INVENTORY_PRODUCTS_PURCHASE] AS PPUR
	WHERE PPUR.prod_id = PRO.[prod_id] AND PPUR.[group_id]= PAR.[location_id]
	) AS product_avg_to_purchase,
	PRO.[prod_cost] AS product_avg_to_sale,
	PTYPE.aipt_name AS product_type,
	(
	SELECT
	ISNULL(SUM(CASE WHEN  MOV0.[mov_inout] = 1 THEN MOV0.[mov_quantity] ELSE MOV0.[mov_quantity] * -1 END), 0)
	FROM [dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV0
	JOIN [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS SLI0 ON MOV0.[grou_id] = SLI0.[grou_id]
	WHERE
	MOV0.[type_id] <> 4 AND MOV0.[prod_id] = PRO.[prod_id] AND CAST(MOV0.mov_register_date AS DATE) < CAST(@initDate AS DATE)
	AND SLI0.[aslt_path] LIKE
	(
	SELECT 
	SLI01.[aslt_path]
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS SLI01
	WHERE SLI01.[grou_id] = PAR.[location_id]
	) + '%'
	) AS initial_inventory,

	ISNULL(SUM(CASE WHEN MOV.[type_id] = 1 AND MOV.[mov_inout] = 1 THEN MOV.[mov_quantity] END), 0) AS inputs_quantity,

	ISNULL(SUM(CASE WHEN MOV.[type_id] = 3 AND MOV.[mov_inout] = 1 AND MOV.[spec_id] IS NULL THEN MOV.[mov_quantity] END), 0) AS returns_quantity,

	ISNULL(SUM(CASE WHEN MOV.[type_id] <> 4 AND MOV.[mov_inout] = 0 AND MOV.[work_id] IS NOT NULL THEN MOV.[mov_quantity] END), 0) -
		ISNULL(SUM(CASE WHEN MOV.[type_id] = 3 AND MOV.[mov_inout] = 1 AND MOV.[spec_id] IS NULL THEN MOV.[mov_quantity] END), 0) AS outputs_by_orders_quantity,

	ISNULL(SUM(CASE WHEN MOV.[type_id] <> 4 AND MOV.[mov_inout] = 0 AND MOV.[work_id] IS NULL THEN MOV.[mov_quantity] END), 0) AS outputs_without_order_quantity,

	ISNULL(SUM(CASE WHEN MOV.[type_id] <> 4 AND MOV.[mov_inout] = 0 THEN MOV.[mov_quantity] END), 0) - 
		ISNULL(SUM(CASE WHEN MOV.[type_id] = 3 AND MOV.[mov_inout] = 1 AND MOV.[spec_id] IS NULL THEN MOV.[mov_quantity] END), 0) AS outputs_quantity

	FROM
	[dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
	INNER JOIN [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS SLI ON MOV.[grou_id] = SLI.[grou_id]
	INNER JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
	INNER JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
	INNER JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON PRO.[prod_type] = PTYPE.[aipt_id]
	LEFT JOIN
	(
	SELECT 
	SLI.[grou_id] AS location_id, 
	SLI.[grou_name] AS location_name, 
	SLI.[aslt_path] AS location_path
	FROM
	 [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS SLI
	WHERE
	SLI.[grou_id] != @id AND
	((@targetLocationId = @id AND SLI.[asli_parent] = @targetLocationId) OR SLI.[grou_id] = @targetLocationId)
	)AS PAR ON SLI.[aslt_path] LIKE PAR.[location_path] + '%'
	WHERE
	MOV.[type_id] <> 4 AND CAST(MOV.[mov_register_date] AS DATE) BETWEEN CAST(@initDate AS DATE) AND @endDate
	AND (@targetLocationId = @id OR SLI.[aslt_path] LIKE @targetLocationPath + '%')
	GROUP BY
	PAR.[location_id],
	PAR.[location_name],
	PRO.[prod_id],
	PRO.[prod_name], 
	PRO.[prod_sku], 
	PRO.[prod_type], 
	MEA.[mea_name],
	PRO.[prod_cost],
	PTYPE.[aipt_name]
	)PRO
	ORDER BY PRO.[location_name], PRO.[product_name]
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34007_REPORT_TOP_PRODUCT_FINAL_INVENTORY]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34007_REPORT_TOP_PRODUCT_FINAL_INVENTORY]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,	
	@locationId				INT = -1
) 
AS		
BEGIN
	DECLARE @id INT
	DECLARE @targetLocationId INT = @locationId;
	DECLARE @targetLocationPath VARCHAR(MAX)

	SELECT 
	@id = LI.grou_id 
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS LI 
	WHERE LI.grou_name = 'AFLS_Locations';

    SELECT 
	@targetLocationPath = aslt_path 
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] 
	WHERE grou_id = @targetLocationId;

	SELECT TOP 5
	product_id,
	product_name,
	product_measure,
	product_sku,
	product_type,
	initial_inventory,
	inputs_quantity,
	outputs_quantity,
	(PRO.initial_inventory + PRO.inputs_quantity - PRO.outputs_quantity) AS final_inventory
	FROM
	(
	SELECT
	PRO.[prod_id] AS product_id,
	PRO.[prod_name] AS product_name,
	MEA.[mea_name] AS product_measure,
	PRO.[prod_sku] AS product_sku,
	PTYPE.aipt_name AS product_type,
	(
	SELECT
	ISNULL(SUM(CASE WHEN  MOV0.[mov_inout] = 1 THEN MOV0.[mov_quantity] ELSE MOV0.[mov_quantity] * -1 END), 0)
	FROM [dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV0
	WHERE
	MOV0.[type_id] <> 4 AND MOV0.[prod_id] = PRO.[prod_id] AND CAST(MOV0.mov_register_date AS DATE) < CAST(@initDate AS DATE)
	) AS initial_inventory,

	ISNULL(SUM(CASE WHEN MOV.[type_id] = 1 AND MOV.[mov_inout] = 1 THEN MOV.[mov_quantity] END), 0) AS inputs_quantity,

	ISNULL(SUM(CASE WHEN MOV.[type_id] <> 4 AND MOV.[mov_inout] = 0 AND MOV.[work_id] IS NOT NULL THEN MOV.[mov_quantity] END), 0) AS outputs_by_orders_quantity,

	ISNULL(SUM(CASE WHEN MOV.[type_id] <> 4 AND MOV.[mov_inout] = 0 AND MOV.[work_id] IS NULL THEN MOV.[mov_quantity] END), 0) AS outputs_without_order_quantity,

	ISNULL(SUM(CASE WHEN MOV.[type_id] <> 4 AND MOV.[mov_inout] = 0 THEN MOV.[mov_quantity] END), 0) - 
		ISNULL(SUM(CASE WHEN MOV.[type_id] = 3 AND MOV.[mov_inout] = 1 AND MOV.[spec_id] IS NULL THEN MOV.[mov_quantity] END), 0) AS outputs_quantity

	FROM
	[dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
	INNER JOIN [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS LI ON MOV.[grou_id] = LI.[grou_id]
	INNER JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
	INNER JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
	INNER JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON PRO.[prod_type] = PTYPE.[aipt_id]
	WHERE
	MOV.[type_id] <> 4 AND CAST(MOV.[mov_register_date] AS DATE) BETWEEN CAST(@initDate AS DATE) AND @endDate
	AND (@targetLocationId = @id OR LI.[aslt_path] LIKE @targetLocationPath + '%')
	GROUP BY
	PRO.[prod_id],
	PRO.[prod_name], 
	PRO.[prod_sku], 
	PRO.[prod_type], 
	MEA.[mea_name],
	PTYPE.[aipt_name]
	)PRO
	ORDER BY ((PRO.initial_inventory + PRO.inputs_quantity) - PRO.outputs_quantity) ASC;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34007_REPORT_TOP_PRODUCT_OUTPUTS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34007_REPORT_TOP_PRODUCT_OUTPUTS]
(
	@initDate				DATETIME,	
	@endDate				DATETIME,	
	@locationId				INT = -1
) 
AS		
BEGIN
	DECLARE @id INT
	DECLARE @targetLocationId INT = @locationId;
	DECLARE @targetLocationPath VARCHAR(MAX)

	SELECT 
	@id = LI.grou_id 
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS LI 
	WHERE LI.grou_name = 'AFLS_Locations';

    SELECT 
	@targetLocationPath = aslt_path 
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] 
	WHERE grou_id = @targetLocationId;

	SELECT TOP 5
	PRO.[prod_id] AS product_id,
	PRO.[prod_name] AS product_name,
	MEA.[mea_name] AS product_measure,
	ISNULL(SUM(CASE WHEN MOV.[type_id] <> 4 AND MOV.[mov_inout] = 0 THEN MOV.[mov_quantity] END), 0) -
		ISNULL(SUM(CASE WHEN MOV.[type_id] = 3 AND MOV.[mov_inout] = 1 AND MOV.[spec_id] IS NULL THEN MOV.[mov_quantity] END), 0)	AS outputs_quantity
	FROM
	[dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
	INNER JOIN [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS LI ON MOV.[grou_id] = LI.[grou_id]
	INNER JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
	INNER JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
	WHERE
	MOV.[type_id] <> 4 AND CAST(MOV.[mov_register_date] AS DATE) BETWEEN CAST(@initDate AS DATE) AND @endDate
	AND (@targetLocationId = @id OR LI.[aslt_path] LIKE @targetLocationPath + '%')
	GROUP BY
	PRO.[prod_id],
	PRO.[prod_name],  
	PRO.[prod_type], 
	MEA.[mea_name]
	ORDER BY 
	outputs_quantity DESC
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34008_REPORT_MOST_USED_LASTMONTH]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34008_REPORT_MOST_USED_LASTMONTH]
(
	@locationId				INT = -1
) 
AS		
BEGIN
	DECLARE @id INT
	DECLARE @targetLocationId INT = @locationId;
	DECLARE @targetLocationPath VARCHAR(MAX)

	SELECT 
	@id = LI.grou_id 
	FROM AFLS_INVENTORY_LOCATION_INFO AS LI 
	WHERE LI.grou_name = 'AFLS_Locations';

    SELECT 
	@targetLocationPath = aslt_path 
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] 
	WHERE grou_id = @targetLocationId;

	SELECT 
	PRO.product_id,
	PRO.product_name,
	PRO.product_measure,
	PRO.product_sku,
	PRO.product_type,
	PRO.outputs_stock 
	FROM
	(
	SELECT 	TOP 5
	PRO.[prod_id] AS product_id,
	PRO.[prod_name] AS product_name,
	MEA.[mea_name] AS product_measure,
	PRO.[prod_sku] AS product_sku,
	PTYPE.aipt_name AS product_type,

	ISNULL(SUM(CASE WHEN MOV.[type_id] <> 4 AND MOV.[mov_inout] = 0 THEN MOV.[mov_quantity] END), 0) - 
		ISNULL(SUM(CASE WHEN MOV.[type_id] = 3 AND MOV.[mov_inout] = 1 AND MOV.[spec_id] IS NULL THEN MOV.[mov_quantity] END), 0) AS outputs_stock

	FROM
	[dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
	JOIN [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS SLI ON MOV.[grou_id] = SLI.[grou_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
	JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON PRO.[prod_type] = PTYPE.[aipt_id]
	WHERE
	MOV.[type_id] <> 4 
	AND MOV.[mov_register_date] BETWEEN CAST(DATEADD(DAY, -30, CAST(GETDATE() AS DATE)) AS DATETIME) AND GETDATE()
	AND (@targetLocationId = @id OR SLI.[aslt_path] LIKE @targetLocationPath + '%')
	GROUP BY
	PRO.[prod_id],
	PRO.[prod_name],
	MEA.[mea_name],
	PRO.[prod_sku],
	PTYPE.aipt_name
	ORDER BY outputs_stock DESC
	) AS PRO
	WHERE PRO.outputs_stock > 0
	ORDER BY PRO.outputs_stock;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34008_REPORT_SUMMARY_INVENTORY_BY_LOCATION]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34008_REPORT_SUMMARY_INVENTORY_BY_LOCATION]
(
	@locationId				INT = -1
) 
AS		
BEGIN
	DECLARE @id INT
	DECLARE @targetLocationId INT = @locationId;
	DECLARE @targetLocationPath VARCHAR(MAX)

	SELECT 
	@id = LI.grou_id 
	FROM AFLS_INVENTORY_LOCATION_INFO AS LI 
	WHERE LI.grou_name = 'AFLS_Locations';

    SELECT 
	@targetLocationPath = aslt_path 
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] 
	WHERE grou_id = @targetLocationId;

	SELECT
	PAR.[location_id] AS location_id,
	PAR.[location_name] AS location_name,
	PRO.[prod_id] AS product_id,
	PRO.[prod_name] AS product_name,
	MEA.[mea_name] AS product_measure,
	PRO.[prod_sku] AS product_sku,
	PTYPE.aipt_name AS product_type,
	ISNULL(SUM(CASE WHEN  MOV.[mov_inout] = 1 THEN MOV.[mov_quantity] ELSE MOV.[mov_quantity] * -1 END), 0) AS inventory_stock
	FROM
	[dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
	JOIN [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS SLI ON MOV.[grou_id] = SLI.[grou_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
	JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON PRO.[prod_type] = PTYPE.[aipt_id]
	LEFT JOIN
	(
	SELECT 
	SLI.[grou_id] AS location_id, 
	SLI.[grou_name] AS location_name, 
	SLI.[aslt_path] AS location_path
	FROM
	 [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS SLI
	WHERE
	SLI.[grou_id] != @id AND
	((@targetLocationId = @id AND SLI.[asli_parent] = @targetLocationId) OR SLI.[grou_id] = @targetLocationId)
	)AS PAR ON SLI.[aslt_path] LIKE PAR.[location_path] + '%'
	WHERE
	MOV.[type_id] <> 4
	AND (@targetLocationId = @id OR SLI.[aslt_path] LIKE @targetLocationPath + '%')
	GROUP BY
	PAR.[location_id],
	PAR.[location_name],
	PRO.[prod_id],
	PRO.[prod_name],
	MEA.[mea_name],
	PRO.[prod_sku],
	PTYPE.aipt_name
	ORDER BY PAR.[location_name], PRO.[prod_name];
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34008_REPORT_TOP5_LOWEST_STOCK]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34008_REPORT_TOP5_LOWEST_STOCK]
(
	@locationId				INT = -1
) 
AS		
BEGIN
	DECLARE @id INT
	DECLARE @targetLocationId INT = @locationId;
	DECLARE @targetLocationPath VARCHAR(MAX)

	SELECT 
	@id = LI.grou_id 
	FROM AFLS_INVENTORY_LOCATION_INFO AS LI 
	WHERE LI.grou_name = 'AFLS_Locations';

    SELECT 
	@targetLocationPath = aslt_path 
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] 
	WHERE grou_id = @targetLocationId;

	SELECT 	TOP 5
	PRO.[prod_id] AS product_id,
	PRO.[prod_name] AS product_name,
	MEA.[mea_name] AS product_measure,
	PRO.[prod_sku] AS product_sku,
	PTYPE.aipt_name AS product_type,
	ISNULL(SUM(CASE WHEN  MOV.[mov_inout] = 1 THEN MOV.[mov_quantity] ELSE MOV.[mov_quantity] * -1 END), 0) AS inventory_stock
	FROM
	[dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
	JOIN [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS SLI ON MOV.[grou_id] = SLI.[grou_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
	JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON PRO.[prod_type] = PTYPE.[aipt_id]
	WHERE
	MOV.[type_id] <> 4 AND (@targetLocationId = @id OR SLI.[aslt_path] LIKE @targetLocationPath + '%')
	GROUP BY
	PRO.[prod_id],
	PRO.[prod_name],
	MEA.[mea_name],
	PRO.[prod_sku],
	PTYPE.aipt_name
	ORDER BY inventory_stock;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34009_REPORT_DATASET_SPECIALISTS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34009_REPORT_DATASET_SPECIALISTS]
AS		
BEGIN
	SELECT -1 AS Id, 'Todos los especialistas' AS Name
          UNION ALL
          SELECT USR.[user_id], USR.[user_name]
          FROM [AFW_USERS] AS USR
          JOIN [AFLS_USERS_SPECIALISTS] AS SP ON SP.[user_id] = USR.[user_id]
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34009_REPORT_MOST_USED_LAST_MONTH]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34009_REPORT_MOST_USED_LAST_MONTH]
(
	@locationId				INT = -1
) 
AS		
BEGIN
	DECLARE @targetLocationId INT = @locationId;

	SELECT PRO.product_id,PRO.product_name,PRO.product_measure,PRO.product_sku,PRO.product_type,PRO.outputs_stock 
	FROM
	(
	SELECT 	TOP 5
	PRO.[prod_id] AS product_id,
	PRO.[prod_name] AS product_name,
	MEA.[mea_name] AS product_measure,
	PRO.[prod_sku] AS product_sku,
	PTYPE.aipt_name AS product_type,
	ISNULL(SUM(CASE WHEN MOV.[type_id] <> 4 AND MOV.[mov_inout] = 0 THEN MOV.[mov_quantity] END), 0) AS outputs_stock
	FROM
	[dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
	JOIN [dbo].[AFW_USERS] AS USR ON MOV.[spec_id] = USR.[user_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
	JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON PRO.[prod_type] = PTYPE.[aipt_id]
	WHERE
	MOV.[type_id] = 2
	AND MOV.[mov_register_date] BETWEEN CAST(DATEADD(DAY, -30, CAST(GETDATE() AS DATE)) AS DATETIME) AND GETDATE()
	AND (@targetLocationId = -1 OR USR.[user_id] = @targetLocationId)
	GROUP BY
	PRO.[prod_id],
	PRO.[prod_name],
	MEA.[mea_name],
	PRO.[prod_sku],
	PTYPE.aipt_name
	ORDER BY outputs_stock DESC
	) AS PRO
	WHERE PRO.outputs_stock > 0;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34009_REPORT_SUMMARY_INVENTORY_BY_LOCATION]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34009_REPORT_SUMMARY_INVENTORY_BY_LOCATION]
(
	@locationId				INT = -1
) 
AS		
BEGIN
    DECLARE @targetLocationId INT = @locationId;
    DECLARE @targetLocationPath VARCHAR(MAX) = (SELECT aslt_path FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] WHERE  grou_id = @targetLocationId);

    SELECT
    USR.[user_id] AS location_id,
    USR.[user_name] AS location_name,
    PRO.[prod_id] AS product_id,
    PRO.[prod_name] AS product_name,
    MEA.[mea_name] AS product_measure,
    PRO.[prod_sku] AS product_sku,
	PTYPE.aipt_name AS product_type,
    ISNULL(SUM(CASE WHEN  MOV.[mov_inout] = 1 THEN CASE WHEN MOV.[type_id] = 3 AND MOV.[grou_id] IS NULL AND MOV.[work_id] IS NULL THEN 0 ELSE MOV.[mov_quantity] END ELSE MOV.[mov_quantity] * -1 END), 0) AS inventory_stock
    FROM
    [dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
    JOIN [dbo].[AFW_USERS] AS USR ON MOV.[spec_id] = USR.[user_id]
    JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
    JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON PRO.[prod_type] = PTYPE.[aipt_id]
    WHERE
    MOV.[type_id] <> 4
    AND (@targetLocationId = -1 OR USR.[user_id] = @targetLocationId)
    GROUP BY
    USR.[user_id],
    USR.[user_name],
    PRO.[prod_id],
    PRO.[prod_name],
    MEA.[mea_name],
    PRO.[prod_sku],
	PTYPE.aipt_name
    ORDER BY USR.[user_name], PRO.[prod_name];
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34009_REPORT_TOP5_LOWEST_STOCK]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34009_REPORT_TOP5_LOWEST_STOCK]
(
	@locationId				INT = -1
) 
AS		
BEGIN
	DECLARE @targetLocationId INT = @locationId;
	SELECT 	TOP 5
	PRO.[prod_id] AS product_id,
	PRO.[prod_name] AS product_name,
	MEA.[mea_name] AS product_measure,
	PRO.[prod_sku] AS product_sku,
	PTYPE.aipt_name AS product_type,
	ISNULL(SUM(CASE WHEN  MOV.[mov_inout] = 1 THEN CASE WHEN MOV.[type_id] = 3 AND MOV.[grou_id] IS NULL AND MOV.[work_id] IS NULL THEN 0 ELSE MOV.[mov_quantity] END ELSE MOV.[mov_quantity] * -1 END), 0) AS inventory_stock
	FROM
	[dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
	JOIN [dbo].[AFW_USERS] AS USR ON MOV.[spec_id] = USR.[user_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
	JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
    JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON PRO.[prod_type] = PTYPE.[aipt_id]
	WHERE
	MOV.[type_id] <> 4
	AND (@targetLocationId = -1 OR USR.[user_id] = @targetLocationId)
	GROUP BY
	PRO.[prod_id],
	PRO.[prod_name],
	MEA.[mea_name],
	PRO.[prod_sku],
	PTYPE.aipt_name
	ORDER BY inventory_stock;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34010_REPORT_TOP5_MOST_USED_PRODUCT]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34010_REPORT_TOP5_MOST_USED_PRODUCT]
(
	@initDate				DATETIME,
	@endDate				DATETIME,
	@serviceId				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN

	DECLARE @targetServiceId INT = @serviceId;

	SELECT TOP 5
	PRO.[prod_id] AS product_id,
	PRO.[prod_name] AS product_name,
	MEA.[mea_name] AS product_measure,
	PRO.[prod_sku] AS product_sku,
	PTYPE.aipt_name AS product_type,

	ISNULL(SUM(CASE WHEN MOV.[type_id] <> 4 AND MOV.[mov_inout] = 0 THEN MOV.[mov_quantity] END), 0) - 
		(SELECT ISNULL(SUM(MOV_AUX.[mov_quantity]), 0)
		FROM [dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV_AUX 
		WHERE MOV_AUX.[type_id] = 3 AND MOV_AUX.[mov_inout] = 1 AND MOV_AUX.[spec_id] IS NULL AND MOV_AUX.[grou_id] IS NOT NULL AND MOV_AUX.[prod_id] = PRO.[prod_id]) AS outputs_stock

	FROM
	[dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
	JOIN [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS SLI ON MOV.[grou_id] = SLI.[grou_id]
	JOIN [dbo].[AFLS_WORKORDERS] AS WO ON MOV.[work_id] = WO.[work_id]
	JOIN [dbo].[AFLS_SERVICES] AS SER ON WO.[serv_id] = SER.[serv_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
	JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
	JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON PRO.[prod_type] = PTYPE.[aipt_id]
	LEFT JOIN [dbo].[AFLS_INVENTORY_SERVICE_PRODUCTS] AS SSP ON (SER.[serv_id] = SSP.[serv_id] AND PRO.[prod_id] = SSP.[prod_id])
	WHERE
	MOV.mov_register_date BETWEEN @initDate AND @endDate
	AND MOV.[type_id] <> 4  AND MOV.[work_id] IS NOT NULL 
	AND (@targetServiceId = -1 OR SER.[serv_id] = @targetServiceId)
	AND (@provider = -1 OR WO.[work_provider_id] = @provider)
	GROUP BY
	PRO.[prod_id],
	PRO.[prod_name],
	MEA.[mea_name],
	PRO.[prod_sku],
	PTYPE.aipt_name
	ORDER BY outputs_stock DESC;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34010_REPORT_USED_PRODUCT_BY_SERVICE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34010_REPORT_USED_PRODUCT_BY_SERVICE]
(
	@initDate				DATETIME,
	@endDate				DATETIME,
	@serviceId				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN

DECLARE @targetServiceId INT = @serviceId;

          SELECT
          SER.[serv_id] AS service_id,
          SER.[serv_name] AS service_name,
          PRO.[prod_id] AS product_id,
          PRO.[prod_name] AS product_name,
          MEA.[mea_name] AS product_measure,
          PRO.[prod_sku] AS product_sku,
          PTYPE.aipt_name AS product_type,
          ISNULL(AVG(CASE WHEN  MOV.[mov_inout] = 0 THEN MOV.[mov_quantity] END), 0) AS avg_outputs_stock,
          ISNULL(SSP.[srsp_quantity], 0) AS default_quantity
          FROM
          [dbo].[AFLS_INVENTORY_MOVEMENTS] AS MOV
          JOIN [dbo].[AFLS_WORKORDERS] AS WO ON MOV.[work_id] = WO.[work_id]
          JOIN [dbo].[AFLS_SERVICES] AS SER ON WO.[serv_id] = SER.[serv_id]
          JOIN [dbo].[AFLS_INVENTORY_PRODUCTS] AS PRO ON MOV.[prod_id] = PRO.[prod_id]
          JOIN [dbo].[AFLS_INVENTORY_MEASURES] AS MEA ON PRO.[mea_id] = MEA.[mea_id]
		  JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON PRO.[prod_type] = PTYPE.[aipt_id]
          LEFT JOIN [dbo].[AFLS_INVENTORY_SERVICE_PRODUCTS] AS SSP ON (SER.[serv_id] = SSP.[serv_id] AND PRO.[prod_id] = SSP.[prod_id])
          WHERE
		  MOV.mov_register_date BETWEEN format(cast(@initDate as date),'yyyyMMdd') AND format(cast(@endDate as date),'yyyyMMdd')
          AND MOV.[type_id]<> 4 AND MOV.[work_id] IS NOT NULL
          AND (@targetServiceId = -1 OR SER.[serv_id] = @targetServiceId)
          AND (@provider = -1 OR WO.[work_provider_id] = @provider)
          GROUP BY
          SER.[serv_id],
          SER.[serv_name],
          PRO.[prod_id],
          PRO.[prod_name],
          MEA.[mea_name],
          PRO.[prod_sku],
          SSP.[srsp_quantity],
          PTYPE.aipt_name
          ORDER BY SER.[serv_name], PRO.[prod_name];
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET1]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET1]
(
	@initDate				DATETIME,
	@endDate				DATETIME,
	@idSurvey				INT,
	@provider				INT = -1,
	@offset					INT
) 
AS		
BEGIN

	SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

	SET @initDate = DATEADD(MINUTE,@offset, @initDate)
	SET @endDate = DATEADD(MINUTE,@offset, @endDate)

	DECLARE @tablePreg TABLE(
	Id_Respuesta  INT,
	Token VARCHAR(1000),
	IdPregunta INT ,
	Pregunta VARCHAR(2000) ,
	IdTipoPregunta INT ,
	FechaCreacion date ,
	incluirEnReporte Bit,
	FechaRespuesta datetime,
	orden INT
	);


	DECLARE @tableNamePreg TABLE(
	IdPregunta  INT,
	Name VARCHAR(1000)
	);


	INSERT INTO @tablePreg
	SELECT DISTINCT
	sa.Id,
	SA.Token,
	SQ.Id,
	SQ.title,
	sq.QuestionTypeId,
	SU.CreationDate,
	sq.IncludedToReport,
	SU.FinishedAt,
	SQ.QuestionOrder
	FROM AFW_SURVEY_ANSWERS  SA WITH(NOLOCK)
	inner join AFW_SURVEY_USER SU WITH(NOLOCK) ON SA.Token = SU.Token
	inner join AFW_SURVEY S WITH(NOLOCK) ON SU.SurveyId = s.Id
	inner join AFW_SURVEY_QUESTION SQ WITH(NOLOCK) ON SQ.SurveyId = s.Id
	WHERE
	(@idSurvey = -1 OR s.Id = @idSurvey)
	AND
	SQ.IsDeleted = 0
	AND
	SU.FinishedAt BETWEEN CAST(@initDate AS DATE) AND  DATEADD(DAY, 1, CAST((@endDate) AS DATE))


	INSERT INTO @tableNamePreg
	SELECT IdPregunta, Name FROM (
	SELECT t.IdPregunta,'Pregunta '+Convert(VARCHAR(50),ROW_NUMBER() OVER(ORDER BY t.orden)) AS Name
	FROM @tablePreg T
	INNER JOIN AFW_SURVEY_ANSWERS SA with(NOLOCK) ON t.IdPregunta = SA.QuestionId and t.Id_Respuesta = sa.Id
	GROUP BY  t.IdPregunta, T.IdTipoPregunta, t.orden
	) S1
	ORDER BY S1.IdPregunta

	DECLARE @table TABLE(
	ticket_id INT,
	Id_Orden INT,
	id_Agente INT,
	Id_Respuesta  INT,
	Token VARCHAR(1000) ,
	IdPregunta INT ,
	Pregunta VARCHAR(4000) ,
	IdTipoPregunta INT ,
	Cliente VARCHAR(1000),
	FechaCreacion DATEtime,
	FechaRespuesta DATEtime
	);

	DECLARE @tableUsers TABLE(
	user_id INT,
	user_email VARCHAR(1000),
	user_name VARCHAR(1000))

	INSERT INTO @tableUsers
	SELECT user_id, user_email, user_name  FROM AFW_USERS
	WHERE user_id NOT IN (SELECT user_id FROM AFLS_USERS_SPECIALISTS
	UNION
	SELECT user_id FROM AFLS_USERS_WEB
	)

	INSERT INTO @table
	SELECT DISTINCT
	wo.ticket_id,
	wo.work_id,
	wo.work_attendant,
	sa.Id,
	SA.Token,
	SQ.Id,
	SQ.title,
	sq.QuestionTypeId,
	u.user_name Cliente,
	SU.CreationDate,
	SU.FinishedAt
	FROM AFW_SURVEY_ANSWERS  SA WITH(NOLOCK)
	INNER JOIN AFW_SURVEY_USER SU WITH(NOLOCK) ON SA.Token = SU.Token
	LEFT JOIN AFLS_WORKORDERS WO WITH(NOLOCK) ON wo.survey_id = SU.Token
	INNER JOIN AFW_SURVEY S WITH(NOLOCK) ON SU.SurveyId = s.Id
	INNER JOIN AFW_SURVEY_QUESTION SQ WITH(NOLOCK) ON SQ.SurveyId = s.Id and sq.Id = SA.QuestionId
	INNER JOIN AFW_USERS U  ON u.user_id = WO.clie_id	
	WHERE
	(@idSurvey = -1 OR s.Id = @idSurvey)
	AND
	(@provider = -1 OR WO.work_provider_id = @provider)
	AND
	SU.FinishedAt BETWEEN CAST(@initDate AS DATE) AND  DATEADD(day,1,CAST(@endDate AS DATE))

	SELECT
	ISNULL(CONVERT(VARCHAR(50),ticket_id), 'NA') idOrden,
	ISNULL(CONVERT(VARCHAR(50),Id_Orden), 'NA') id, t.Pregunta,t.Cliente,
	CASE
	WHEN
	ISNULL(t.id_Agente, -1) = -1
	THEN
	'NA'
	ELSE
	(SELECT USER_NAME FROM AFW_USERS WHERE user_id = t.id_Agente)
	END AS Agente,
	CASE
	WHEN  T.IdTipoPregunta = '1' THEN CONVERT(VARCHAR(50),SA.ResponseChoiceId)
	WHEN  T.IdTipoPregunta = '2' THEN CONVERT(VARCHAR(50),SA.ResponseValue)
	WHEN  T.IdTipoPregunta = '3' THEN CONVERT(VARCHAR(50),(SELECT Text FROM AFW_SURVEY_QRESP_CHOICE WHERE Id = SA.ResponseChoiceId))
	WHEN  T.IdTipoPregunta = '5' THEN CONVERT(VARCHAR(50),(SELECT Text FROM AFW_SURVEY_QRESP_CHOICE WHERE Id = SA.ResponseChoiceId))
	END Respuesta , t.FechaCreacion, t.Token,  t.FechaRespuesta,
	CASE
	WHEN
	ISNULL(tp.Name,'') = '' THEN 'NA' ELSE tp.Name END Name
	FROM @table T
	INNER JOIN AFW_SURVEY_ANSWERS SA WITH(NOLOCK) ON t.IdPregunta = SA.QuestionId AND t.Id_Respuesta = sa.Id
	LEFT JOIN @tableNamePreg TP ON T.IdPregunta = tp.Idpregunta
	ORDER BY t.FechaRespuesta DESC
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET2]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET2]
(
	@initDate				DATETIME,
	@endDate				DATETIME,
	@idSurvey				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN
	DECLARE @table TABLE(
	Id_Respuesta  int,
	Token varchar(1000) ,
	IdPregunta int ,
	IdTipoPregunta int ,
	incluirEnReporte Bit
	);


	insert into @table
	select distinct
	sa.Id,
	SA.Token,
	SQ.Id,
	sq.QuestionTypeId,
	sq.IncludedToReport
	FROM AFW_SURVEY_ANSWERS  SA with(NOLOCK)
	inner join AFW_SURVEY_USER SU with(NOLOCK) ON SA.Token = SU.Token
	inner join AFW_SURVEY S with(NOLOCK) on SU.SurveyId = s.Id
	inner join AFW_SURVEY_QUESTION SQ with(NOLOCK) on SQ.SurveyId = s.Id
	inner join AFLS_WORKORDERS WO with(NOLOCK) on WO.survey_id = SA.Token
	where
	(@idSurvey = -1 OR s.Id = @idSurvey)
	AND
	(@provider = -1 OR WO.work_provider_id = @provider)
	AND
	SU.FinishedAt BETWEEN CAST(@initDate AS DATE) AND  DATEADD(DAY, 1, CAST((@endDate) AS DATE))

	select
	ROUND((AVG(CAST(sa.ResponseChoiceId AS FLOAT))),1) PromSatisfactionLevel
	from @table T
	INNER JOIN AFW_SURVEY_ANSWERS SA with(NOLOCK) ON t.IdPregunta = SA.QuestionId and t.Id_Respuesta = sa.Id
	where
	T.IdTipoPregunta = 1
	and T.incluirEnReporte = 1
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET3]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET3]

AS		
BEGIN
	Select id,Name ID_Filter from AFW_SURVEY where IsDeleted = 0
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET4]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET4]
(
	@initDate				DATETIME,
	@endDate				DATETIME,
	@idSurvey				INT = -1,
	@provider				INT = -1
) 
AS		
BEGIN
	DECLARE @tablePreg TABLE(
	Id_Respuesta  INT,
	Token VARCHAR(1000) ,
	IdPregunta INT ,
	Pregunta VARCHAR(2000) ,
	IdTipoPregunta INT ,
	FechaCreacion date ,
	incluirEnReporte Bit
	);

	DECLARE @tableNamePreg TABLE(
	IdPregunta  INT,
	Name VARCHAR(2000)
	);

	INSERT INTO @tablePreg
	SELECT DISTINCT
	sa.Id,
	SA.Token,
	SQ.Id,
	SQ.title,
	sq.QuestionTypeId,
	SU.CreationDate,
	sq.IncludedToReport
	FROM AFW_SURVEY_ANSWERS  SA WITH(NOLOCK)
	inner join AFW_SURVEY_USER SU WITH(NOLOCK) ON SA.Token = SU.Token
	inner join AFW_SURVEY S WITH(NOLOCK) ON SU.SurveyId = s.Id
	inner join AFW_SURVEY_QUESTION SQ WITH(NOLOCK) ON SQ.SurveyId = s.Id
	inner join AFLS_WORKORDERS WO with(NOLOCK) on WO.survey_id = SA.Token
	WHERE
	(@idSurvey = -1 OR s.Id = @idSurvey)
	AND
	(@provider = -1 OR WO.work_provider_id = @provider)
	AND
	SQ.IsDeleted = 0
	AND
	SU.FinishedAt BETWEEN CAST(@initDate AS DATE) AND  DATEADD(day,1,CAST(@endDate AS DATE))


	SELECT IdPregunta, CONVERT (FLOAT, PromResponse) PromResponse FROM (
	SELECT 'Pregunta '+Convert(VARCHAR(50),ROW_NUMBER() OVER(ORDER BY t.IdPregunta )) AS IdPregunta,
	CASE WHEN  T.IdTipoPregunta = 1THEN CONVERT(VARCHAR(50),ROUND((AVG(CAST(sa.ResponseChoiceId AS FLOAT))),1))  ELSE 'NA' END PromResponse
	FROM @tablePreg T
	INNER JOIN AFW_SURVEY_ANSWERS SA with(NOLOCK) ON t.IdPregunta = SA.QuestionId and t.Id_Respuesta = sa.Id
	GROUP BY  t.IdPregunta, T.IdTipoPregunta
	) S1
	WHERE s1.PromResponse != 'NA'
	ORDER BY S1.IdPregunta
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET5]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET5]
(
	@idSurvey				INT = -1
) 
AS		
BEGIN
	DECLARE @SatisfactionLevelSpected int

	select @SatisfactionLevelSpected = Value from AFW_SATISFACTION_LEVEL
	where (@idSurvey = -1 OR Item = @idSurvey)

	IF IsNull(@SatisfactionLevelSpected,-9) = -9
	BEGIN
	SELECT TOP 1 SatisfactionLevel FROM AFW_SURVEY_CONFIGURATION
	END
	ELSE
	BEGIN
	SELECT @SatisfactionLevelSpected SatisfactionLevel
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET6]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET6]
AS		
BEGIN
	SELECT GETDATE() as FechaCreacion
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET7]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34011_REPORT_SURVEY_DATASET7]
(
	@idSurvey				INT = -1
) 
AS		
BEGIN
	Select Name  as NameSurvey from AFW_Survey where (@idSurvey = -1 OR id = @idSurvey)
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET1]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET1]
(
	@initDate				DATETIME,
	@endDate				DATETIME,
	@idSurvey				INT,
	@offset					INT	
) 
AS		
BEGIN

	SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
	
	SET @initDate = DATEADD(MINUTE,@offset, @initDate)
	SET @endDate = DATEADD(MINUTE,@offset, @endDate)

	DECLARE @surveyWorkOrders TABLE( Token varchar(200))

	INSERT INTO @surveyWorkOrders
	SELECT survey_id
	FROM AFLS_WORKORDERS
	WHERE stat_id = 4 and survey_id is not null

	DECLARE @tablePreg TABLE(
	Id_Respuesta  INT,
	Token VARCHAR(1000),
	IdPregunta INT ,
	Pregunta VARCHAR(2000) ,
	IdTipoPregunta INT ,
	FechaCreacion date ,
	incluirEnReporte Bit,
	FechaRespuesta datetime,
	orden INT
	);


	DECLARE @tableNamePreg TABLE(
	IdPregunta  INT,
	Name VARCHAR(1000)
	);
	INSERT INTO @tablePreg
	SELECT DISTINCT
	sa.Id,
	SA.Token,
	SQ.Id,
	SQ.title,
	sq.QuestionTypeId,
	SU.CreationDate,
	sq.IncludedToReport,
	SU.FinishedAt,
	SQ.QuestionOrder
	FROM AFW_SURVEY_ANSWERS  SA WITH(NOLOCK)
	inner join AFW_SURVEY_USER SU WITH(NOLOCK) ON SA.Token = SU.Token
	inner join AFW_SURVEY S WITH(NOLOCK) ON SU.SurveyId = s.Id
	inner join AFW_SURVEY_QUESTION SQ WITH(NOLOCK) ON SQ.SurveyId = s.Id
	WHERE
	(@idSurvey = -1 OR s.Id = @idSurvey)
	AND
	SQ.IsDeleted = 0
	AND
	SU.FinishedAt BETWEEN CAST(@initDate AS DATE) AND  DATEADD(DAY, 1, CAST((@endDate) AS DATE))	

	INSERT INTO @tableNamePreg
	SELECT IdPregunta, Name FROM (
	SELECT t.IdPregunta,'Pregunta '+Convert(VARCHAR(50),ROW_NUMBER() OVER(ORDER BY t.orden)) AS Name
	FROM @tablePreg T
	INNER JOIN AFW_SURVEY_ANSWERS SA with(NOLOCK) ON t.IdPregunta = SA.QuestionId and t.Id_Respuesta = sa.Id
	GROUP BY  t.IdPregunta, T.IdTipoPregunta, t.orden
	) S1
	ORDER BY S1.IdPregunta	

	DECLARE @table TABLE(	
	Id_Respuesta  INT,
	Token VARCHAR(1000) ,
	IdPregunta INT ,
	Pregunta VARCHAR(4000) ,
	IdTipoPregunta INT ,
	Cliente VARCHAR(1000),
	FechaCreacion DATEtime,
	FechaRespuesta DATEtime
	);

	DECLARE @tableUsers TABLE(
	user_id INT,
	user_email VARCHAR(1000),
	user_name VARCHAR(1000))

	INSERT INTO @tableUsers
	SELECT user_id, user_email, user_name  FROM AFW_USERS
	WHERE user_id NOT IN (SELECT user_id FROM AFLS_USERS_SPECIALISTS
	UNION
	SELECT user_id FROM AFLS_USERS_WEB
	)

	INSERT INTO @table
	SELECT DISTINCT	
	sa.Id,
	SA.Token,
	SQ.Id,
	SQ.title,
	sq.QuestionTypeId,
	SU.Email Cliente,
	SU.CreationDate,
	SU.FinishedAt
	FROM AFW_SURVEY_ANSWERS  SA WITH(NOLOCK)
	INNER JOIN AFW_SURVEY_USER SU WITH(NOLOCK) ON SA.Token = SU.Token	
	INNER JOIN AFW_SURVEY S WITH(NOLOCK) ON SU.SurveyId = s.Id
	INNER JOIN AFW_SURVEY_QUESTION SQ WITH(NOLOCK) ON SQ.SurveyId = s.Id and sq.Id = SA.QuestionId	
	WHERE
	(@idSurvey = -1 OR s.Id = @idSurvey)
	AND
	SU.Token NOT IN (SELECT token FROM @surveyWorkOrders)
	AND
	SU.FinishedAt BETWEEN CAST(@initDate AS DATE) AND  DATEADD(day,1,CAST(@endDate AS DATE))


	SELECT
	t.Pregunta,t.Cliente,	
	CASE
	WHEN  T.IdTipoPregunta = '1' THEN CONVERT(VARCHAR(50),SA.ResponseChoiceId)
	WHEN  T.IdTipoPregunta = '2' THEN CONVERT(VARCHAR(50),SA.ResponseValue)
	WHEN  T.IdTipoPregunta = '3' THEN CONVERT(VARCHAR(50),(SELECT Text FROM AFW_SURVEY_QRESP_CHOICE WHERE Id = SA.ResponseChoiceId))
	WHEN  T.IdTipoPregunta = '5' THEN CONVERT(VARCHAR(50),(SELECT Text FROM AFW_SURVEY_QRESP_CHOICE WHERE Id = SA.ResponseChoiceId))
	END Respuesta , t.FechaCreacion, t.Token,  t.FechaRespuesta,
	CASE
	WHEN
	ISNULL(tp.Name,'') = '' THEN 'NA' ELSE tp.Name END Name
	FROM @table T
	INNER JOIN AFW_SURVEY_ANSWERS SA WITH(NOLOCK) ON t.IdPregunta = SA.QuestionId AND t.Id_Respuesta = sa.Id
	LEFT JOIN @tableNamePreg TP ON T.IdPregunta = tp.Idpregunta
	ORDER BY t.FechaRespuesta DESC
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET2]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET2]
(
	@initDate				DATETIME,
	@endDate				DATETIME,
	@idSurvey				INT = -1	
) 
AS		
BEGIN

	DECLARE @surveyWorkOrders TABLE( Token varchar(200))

	INSERT INTO @surveyWorkOrders
	SELECT survey_id
	FROM AFLS_WORKORDERS
	WHERE stat_id = 4 AND survey_id IS NOT NULL


	DECLARE @table TABLE(
	Id_Respuesta  int,
	Token varchar(1000) ,
	IdPregunta int ,
	IdTipoPregunta int ,
	incluirEnReporte Bit
	);

	insert into @table
	select distinct
	sa.Id,
	SA.Token,
	SQ.Id,
	sq.QuestionTypeId,
	sq.IncludedToReport
	FROM AFW_SURVEY_ANSWERS  SA with(NOLOCK)
	inner join AFW_SURVEY_USER SU with(NOLOCK) ON SA.Token = SU.Token
	inner join AFW_SURVEY S with(NOLOCK) on SU.SurveyId = s.Id
	inner join AFW_SURVEY_QUESTION SQ with(NOLOCK) on SQ.SurveyId = s.Id	
	where
	(@idSurvey = -1 OR s.Id = @idSurvey)
	AND
	SU.Token NOT IN (SELECT token FROM @surveyWorkOrders)	
	AND
	SU.FinishedAt BETWEEN CAST(@initDate AS DATE) AND  DATEADD(DAY, 1, CAST((@endDate) AS DATE))

	select
	ROUND((AVG(CAST(sa.ResponseChoiceId AS FLOAT))),1) PromSatisfactionLevel
	from @table T
	INNER JOIN AFW_SURVEY_ANSWERS SA with(NOLOCK) ON t.IdPregunta = SA.QuestionId and t.Id_Respuesta = sa.Id
	where
	T.IdTipoPregunta = 1
	and T.incluirEnReporte = 1
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET3]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET3]

AS		
BEGIN
	Select id,Name ID_Filter from AFW_SURVEY where IsDeleted = 0
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET4]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET4]
(
	@initDate				DATETIME,
	@endDate				DATETIME,
	@idSurvey				INT = -1
) 
AS		
BEGIN

	DECLARE @surveyWorkOrders TABLE( Token varchar(200))

	INSERT INTO @surveyWorkOrders
	SELECT survey_id
	FROM AFLS_WORKORDERS
	WHERE stat_id = 4 AND survey_id IS NOT NULL

	DECLARE @tablePreg TABLE(
	Id_Respuesta  INT,
	Token VARCHAR(1000) ,
	IdPregunta INT ,
	Pregunta VARCHAR(2000) ,
	IdTipoPregunta INT ,
	FechaCreacion date ,
	incluirEnReporte Bit
	);

	DECLARE @tableNamePreg TABLE(
	IdPregunta  INT,
	Name VARCHAR(2000)
	);

	INSERT INTO @tablePreg
	SELECT DISTINCT
	SA.Id,
	SA.Token,
	SQ.Id,
	SQ.title,
	SQ.QuestionTypeId,
	SU.CreationDate,
	SQ.IncludedToReport
	FROM AFW_SURVEY_ANSWERS  SA WITH(NOLOCK)
	INNER JOIN AFW_SURVEY_USER SU WITH(NOLOCK) ON SA.Token = SU.Token
	INNER JOIN AFW_SURVEY S WITH(NOLOCK) ON SU.SurveyId = s.Id
	INNER JOIN AFW_SURVEY_QUESTION SQ WITH(NOLOCK) ON SQ.SurveyId = s.Id
	
	WHERE
	(@idSurvey = -1 OR s.Id = @idSurvey)
	AND
	SU.Token NOT IN (SELECT token FROM @surveyWorkOrders)	
	AND
	SQ.IsDeleted = 0
	AND
	SU.FinishedAt BETWEEN CAST(@initDate AS DATE) AND  DATEADD(day,1,CAST(@endDate AS DATE))


	SELECT IdPregunta, CONVERT (FLOAT, PromResponse) PromResponse FROM (
	SELECT 'Pregunta '+Convert(VARCHAR(50),ROW_NUMBER() OVER(ORDER BY t.IdPregunta )) AS IdPregunta,
	CASE WHEN  T.IdTipoPregunta = 1THEN CONVERT(VARCHAR(50),ROUND((AVG(CAST(sa.ResponseChoiceId AS FLOAT))),1))  ELSE 'NA' END PromResponse
	FROM @tablePreg T
	INNER JOIN AFW_SURVEY_ANSWERS SA with(NOLOCK) ON t.IdPregunta = SA.QuestionId and t.Id_Respuesta = sa.Id
	GROUP BY  t.IdPregunta, T.IdTipoPregunta
	) S1
	WHERE s1.PromResponse != 'NA'
	ORDER BY S1.IdPregunta
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET5]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET5]
(
	@idSurvey				INT = -1
) 
AS		
BEGIN
	DECLARE @SatisfactionLevelSpected int

	select @SatisfactionLevelSpected = Value from AFW_SATISFACTION_LEVEL
	where (@idSurvey = -1 OR Item = @idSurvey)

	IF IsNull(@SatisfactionLevelSpected,-9) = -9
	BEGIN
	SELECT TOP 1 SatisfactionLevel FROM AFW_SURVEY_CONFIGURATION
	END
	ELSE
	BEGIN
	SELECT @SatisfactionLevelSpected SatisfactionLevel
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET6]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET6]
AS		
BEGIN
	SELECT GETDATE() as FechaCreacion
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET7]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34012_REPORT_SURVEY_DATASET7]
(
	@idSurvey				INT = -1
) 
AS		
BEGIN
	Select Name  as NameSurvey from AFW_Survey where (@idSurvey = -1 OR id = @idSurvey)
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34014_REPORT_INFO_LOCATIONS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34014_REPORT_INFO_LOCATIONS]
AS		
BEGIN
	SELECT 
		LI.grou_id AS locationId,
		LI.grou_name AS locationName,
		LI.asli_description AS locationDescription,
		LC.aslc_name AS locationCategory,
		LT.aslt_name AS locationType,
		CASE LIINFO.grou_name WHEN 'AFLS_Locations' THEN NULL ELSE LIINFO.grou_name END AS locationParent,
		CASE LI.asli_is_active WHEN 1 THEN 'ACTIVO' ELSE 'INACTIVO' END AS locationState
	FROM 
		AFLS_INVENTORY_LOCATION_INFO LI
			INNER JOIN 
		AFLS_INVENTORY_LOCATION_CATEGORIES LC ON (LI.aslc_id = LC.aslc_id)
			INNER JOIN 
		AFLS_INVENTORY_LOCATION_TYPES LT ON (LI.aslt_id = LT.aslt_id)
			INNER JOIN 
		AFLS_INVENTORY_LOCATION_INFO LIINFO ON (LI.asli_parent = LIINFO.grou_id)
	WHERE 
		LI.asli_parent IS NOT NULL
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34015_REPORT_INFO_SPECIALISTS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34015_REPORT_INFO_SPECIALISTS]
AS		
BEGIN
	SELECT 
		S.user_id AS specialistId,
		U.user_nick_name AS specialistUser,
		U.user_name AS specialistName,
		VT.vehi_name AS specialistVehi,
		WP.posi_name AS specialistPosi,
		P.Name AS specialistProvider,
		CASE u.user_active WHEN 1 THEN 'ACTIVO' ELSE 'INACTIVO' END AS specialistState
	FROM 
		AFLS_USERS_SPECIALISTS S
			INNER JOIN 
		AFW_USERS U ON (S.user_id = U.user_id)
			LEFT JOIN 
		AFLS_PROVIDERS P ON (S.spc_provider_id = P.ProviderId)
			INNER JOIN 
		AFLS_VEHICLE_TYPE VT ON (S.vehi_id = VT.vehi_id)
			INNER JOIN 
		AFLS_WORK_POSITIONS WP ON (S.posi_id = WP.posi_id)
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_34016_REPORT_INFO_PRODUCTS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_34016_REPORT_INFO_PRODUCTS]
AS		
BEGIN
	SELECT 
		P.prod_id AS productId,
		P.prod_name AS productName,
		P.prod_description AS productDescription,
		PTYPE.aipt_name AS product_type,
		P.prod_sku AS productSKU,
		M.mea_name AS productMea,
		p.prod_min_amount AS productMin,
		CASE P.prod_active WHEN 1 THEN 'ACTIVO' ELSE 'INACTIVO' END AS productState
	FROM 
		AFLS_INVENTORY_PRODUCTS P
		INNER JOIN AFLS_INVENTORY_MEASURES M ON (P.mea_id = M.mea_id)		
		JOIN [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] AS PTYPE ON P.[prod_type] = PTYPE.[aipt_id]
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_DASH_DEMAND_FOR_LABOR]...';


GO
/*=======================================================================*/
/*  Archivo:            PRC_AFLS_DEMAND_FOR_LABOR.sql                 */
/*  Stored procedure:   PRC_AFLS_DEMAND_FOR_LABOR		             */
/*  Producto:           Aranda FIELD SERVICE                             */
/*  Disenado por:       Aranda Software Corporation                      */
/*  Fecha de escritura: [12/02/2012]                                     */
/*=======================================================================*/
/*                          IMPORTANTE                                   */
/*  ESTE PROGRAMA ES PROPIEDAD DE "ARANDA SOFTWARE CORPORATION".         */
/*  HA SIDO DISEÑADO BAJO EL AMBIENTE OPERATIVO DE ARANDA.               */
/*  DESARROLLADO POR "ARANDA SOFTWARE CORPORATION - COLOMBIA"            */
/*  SU USO NO AUTORIZADO QUEDA EXPRESAMENTE PROHIBIDO ASI COMO CUALQUIER */
/*  ALTERACION O AGREGADO HECHO POR ALGUNO DE SUS USUARIOS SIN EL DEBIDO */
/*  CONSENTIMIENTO POR ESCRITO DE LA GERENCIA GENERAL DE ARANDA O SU     */
/*  REPRESENTANTE.                                                       */
/*=======================================================================*/
/* OBJETIVO: Permite contabilizar la cantidad de horas disponibles       */
/*		de todos los especialistas activos y la cantidad de horas		 */
/*		de ordenes de trabajo para el dashboard						     */	
/* PARAMETROS DE ENTRADA:                                                */
/*          @i_tent_id: id del tenant							         */
/*          @i_start_date: fecha de inicio							     */
/*          @i_end_date: fecha fin								         */
/* PARAMETROS DE SALIDA:                                                 */
/*           Una tabla temporal									         */
/* RETORNA:                                                              */
/*           No hay retorno                                              */
/*=======================================================================*/

CREATE PROCEDURE [dbo].[PRC_AFLS_DASH_DEMAND_FOR_LABOR]
(
	@i_tent_id				BIGINT,
	@i_start_date			DATETIME,
	@i_end_date				DATETIME,
	@ProviderId				INT,
	@Lic_Actives			VARCHAR(100),
	@AllProviders			BIT
) 
AS
	DECLARE @dateStart DATETIME,
			@dateEnd DATETIME,
			@dayWeek DATETIME,
			@calendarException INT
	
BEGIN
	
	--Validar si consultamos todos los provedores o uno especifico
	IF @AllProviders = 1
	BEGIN
	SET @ProviderId = -1
	END
	--------------------------------------------------------------

	CREATE TABLE #tmpDemandForLabor
	(
		dayWeek int,
		date datetime,
		hours_specialists decimal(8,2),
		hours_workorders decimal(8,2)
	)
	 --tabla temporal para licencias activas
	  create table ##Lic_Actives (licencesActives NVARCHAR(MAX)) 
		DECLARE @start INT, @end INT 
		SELECT @start = 1, @end = CHARINDEX(',', @Lic_Actives) 
		WHILE @start < LEN(@Lic_Actives) + 1 BEGIN 
			IF @end = 0  
				SET @end = LEN(@Lic_Actives) + 1
       
			INSERT INTO ##Lic_Actives (licencesActives) 
			VALUES(SUBSTRING(@Lic_Actives, @start, @end - @start)) 
			SET @start = @end + 1 
			SET @end = CHARINDEX(',', @Lic_Actives, @start)  
		END
	  --
	--seteo la variable que contiene la fecha	
	--SELECT @dateStart =  @i_start_date
	SELECT @dateStart =  cast(@i_start_date As Date)
	
	
	WHILE (SELECT @dateStart) <= @i_end_date
		BEGIN
			DECLARE @hoursSpecialists DECIMAL(8,2)
			SET @calendarException = 0
			SET @hoursSpecialists = 0
		    --Validar si es dia festivo
			SELECT @calendarException = COUNT(*)
			  FROM  AFLS_CALENDAR_EXCEPTION
			  WHERE caex_date = @dateStart
			  AND CALE_ID = 0
			  and caex_is_restriction = 1
			--Solo calcular los dias si no son festivos
			IF @calendarException = 0
			BEGIN
			--obtengo el dia de la semana que corresponde a la fecha			
				SELECT @dayWeek = (SELECT DATEPART(dw, @dateStart))				
				--obtengo los minutos de disponibilidad para cada día de la tabla de capacidad
				SELECT @hoursSpecialists=(SELECT SUM(cap_hours) FROM AFLS_REPORT_CAPACITY RC
					INNER JOIN AFLS_USERS_SPECIALISTS U  ON U.user_id = RC.user_id   
					INNER JOIN AFW_USERS CU ON U.user_id = CU.user_id
					INNER JOIN AFW_LICENSE_ASSIGNMENT LIC ON LIC.user_id = U.user_id
					WHERE	CU.user_active=1 AND cap_day=@dayWeek
					AND (U.spc_provider_id = @ProviderId OR @ProviderId = -1)
					AND LIC.license_id IN (select licencesActives from ##Lic_Actives))
			END
			--valido que haya orse hace la conversion a horas			
			IF @hoursSpecialists is null
			BEGIN 
				SELECT @hoursSpecialists=0
			END
			--------------------------------------------------
			-- obtengo los minutos de las ordenes de trabajo
			DECLARE @minutesWO INT
			SELECT @minutesWO =(SELECT SUM(DATEDIFF(minute,work_tentative_travel_start_date, work_tentative_attention_end_date ))  
						FROM AFLS_WORKORDERS  
						WHERE CONVERT(VARCHAR(10), work_tentative_attention_start_date, 103)=  CONVERT(VARCHAR(10), @dateStart, 103)  AND tent_id=@i_tent_id
						AND (work_provider_id = @ProviderId OR @ProviderId = -1))  

			--valido que haya datos, para hacer la conversiona  horas
			DECLARE @hoursWorkOrders DECIMAL(8,2)
			IF @minutesWO is not null
			BEGIN
				SELECT @hoursWorkOrders =(SELECT CONVERT(DECIMAL(8,2),(CONVERT(DECIMAL(8,2),@minutesWO)/CONVERT(DECIMAL(8,2),60))))
			END	
			ELSE
			BEGIN 
				SELECT @hoursWorkOrders=0
			END
			--inserto la informacion en la tabla temporal
			INSERT INTO #tmpDemandForLabor (dayWeek,date,  hours_specialists,hours_workorders  )VALUES( Convert(int,@dayWeek),@dateStart, @hoursSpecialists,  @hoursWorkOrders)			
			--aumento la fecha en un día
			SELECT @dateStart= (SELECT DATEADD(dd,1, @dateStart) )
		END	
	--se retorna una tabla temporal con la informacion que se necesita
	SELECT dayWeek  as DayWeek,  Date , hours_specialists as HoursSpecialists, hours_workorders  as hoursWorkorders FROM #tmpDemandForLabor
	DROP TABLE #tmpDemandForLabor
	DROP TABLE ##Lic_Actives
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_DASH_STATUS]...';


GO




CREATE PROCEDURE [dbo].[PRC_AFLS_DASH_STATUS]
(

/*=======================================================================*/
/*  Archivo:            PRC_AFLS_DASH_STATUS.sql					     */
/*  Stored procedure:   PRC_AFLS_DASH_STATUS		                     */
/*  Producto:           Aranda FIELD SERVICE                             */
/*  Disenado por:       Aranda Software Corporation                      */
/*  Fecha de escritura: [13/02/2012]                                     */
/*=======================================================================*/
/*                          IMPORTANTE                                   */
/*  ESTE PROGRAMA ES PROPIEDAD DE "ARANDA SOFTWARE CORPORATION".         */
/*  HA SIDO DISEÑADO BAJO EL AMBIENTE OPERATIVO DE ARANDA.               */
/*  DESARROLLADO POR "ARANDA SOFTWARE CORPORATION - COLOMBIA"            */
/*  SU USO NO AUTORIZADO QUEDA EXPRESAMENTE PROHIBIDO ASI COMO CUALQUIER */
/*  ALTERACION O AGREGADO HECHO POR ALGUNO DE SUS USUARIOS SIN EL DEBIDO */
/*  CONSENTIMIENTO POR ESCRITO DE LA GERENCIA GENERAL DE ARANDA O SU     */
/*  REPRESENTANTE.                                                       */
/*=======================================================================*/
/* OBJETIVO: Permite traer la cantidad de ordenes de trabajo             */
/*			teniendo en cuenta el estado, para dibujar en el dash        */
/* PARAMETROS DE ENTRADA:                                                */
/*          @i_tent_id: id del tenant							         */
/*          @i_start_date: fecha de inicio							     */
/*          @i_end_date: fecha fin								         */
/* PARAMETROS DE SALIDA:                                                 */
/*           Una tabla temporal									         */
/* RETORNA:                                                              */
/*           No hay retorno                                              */
/*=======================================================================*/
/*                          MODIFICACIONES                               */
/*  FECHA       AUTOR          RAZON                                     */
/*  ----------  -------------- ----------------------------------------- */
/*	05/02/2013	Eimy Castro		Emisión Inicial							 */
/*=======================================================================*/


	@i_tent_id				BIGINT,
	@i_start_date			DATETIME,
	@i_end_date				DATETIME,
	@ProviderId				INT,
	@AllProviders			BIT 
) 
AS
	DECLARE @dateStart DATETIME,
			@dateEnd DATETIME,
			@stat_id INT,
			@stat_color VARCHAR(100),
			@stat_name VARCHAR(100)
BEGIN
	
	--Validar si consultamos todos los provedores o uno especifico
	IF @AllProviders = 1
	BEGIN
	SET @ProviderId = -1
	END
	--------------------------------------------------------------

	--creo la tabla temporal para la insercion de la informacion
	CREATE TABLE #tmp
	(	date datetime, 
		stat_color varchar(100), 
		stat_id int,
		stat_name varchar(100),  
		cont int)
	
	--creo cursor para manejar los estados que existen actualmente
	DECLARE cursorStatus CURSOR FOR
	SELECT  
		stat_id,
		stat_color,
		stat_name
	FROM
		 AFLS_STATES
	WHERE stat_id not in (3,5)
	OPEN  cursorStatus
		FETCH NEXT FROM cursorStatus INTO @stat_id,@stat_color, @stat_name
		WHILE @@FETCH_STATUS=0
			BEGIN
				DECLARE @cont int
				SELECT @cont=0 
				SELECT @dateStart = @i_start_date 
				--cuento la cantidad de ordenes de trabajo 	
				SELECT @cont= (SELECT COUNT(*) FROM AFLS_WORKORDERS 
						WHERE work_tentative_attention_start_date BETWEEN @i_start_date AND	@i_end_date
						and stat_id=@stat_id AND tent_id = @i_tent_id AND (work_provider_id = @ProviderId OR @ProviderId = -1))
				--inserto en la tabla temporal la cantidad de ordenes de trtab
				INSERT INTO #tmp (date,stat_color, stat_id, stat_name,  cont)
				VALUES(@dateStart,  @stat_color,@stat_id, @stat_name, @cont)						

							
				FETCH NEXT FROM cursorStatus INTO @stat_id,@stat_color, @stat_name
			END
		
	CLOSE cursorStatus
	DEALLOCATE cursorStatus

	SELECT date as StartDate,  stat_color  as StatColor, stat_id as StatId, stat_name as StatName,  cont as Total FROM #tmp
	DROP TABLE #tmp
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_DASH_SUMMARY_SPECIALISTS]...';


GO
/*=======================================================================*/ 
/*  Archivo:            PRC_AFLS_DASH_SUMMARY_SPECIALISTS.sql            */ 
/*  Stored procedure:   PRC_AFLS_DASH_SUMMARY_SPECIALISTS                */ 
/*  Producto:           Aranda FIELD SERVICE                             */ 
/*  Disenado por:       Aranda Software Corporation                      */ 
/*  Fecha de escritura: [14/02/2012]                                     */ 
/*=======================================================================*/ 
/*                          IMPORTANTE                                   */ 
/*  ESTE PROGRAMA ES PROPIEDAD DE "ARANDA SOFTWARE CORPORATION".         */ 
/*  HA SIDO DISEÑADO BAJO EL AMBIENTE OPERATIVO DE ARANDA.               */ 
/*  DESARROLLADO POR "ARANDA SOFTWARE CORPORATION - COLOMBIA"            */ 
/*  SU USO NO AUTORIZADO QUEDA EXPRESAMENTE PROHIBIDO ASI COMO CUALQUIER */ 
/*  ALTERACION O AGREGADO HECHO POR ALGUNO DE SUS USUARIOS SIN EL DEBIDO */ 
/*  CONSENTIMIENTO POR ESCRITO DE LA GERENCIA GENERAL DE ARANDA O SU     */ 
/*  REPRESENTANTE.                                                       */ 
/*=======================================================================*/ 
/* OBJETIVO: Permite traer el resumen del estadp de los especialistas    */ 
/*                  para mostrarlos en el DASH                           */
/* PARAMETROS DE ENTRADA:                                                */ 
/*          @i_tent_id: id del tenant                                    */ 
/*          @i_start_date: fecha de inicio                               */
/*          @i_end_date: fecha fin                                       */
/* PARAMETROS DE SALIDA:                                                 */ 
/*           Una tabla temporal                                          */
/* RETORNA:                                                              */ 
/*           No hay retorno                                              */ 
/*=======================================================================*/ 

CREATE PROCEDURE [dbo].[PRC_AFLS_DASH_SUMMARY_SPECIALISTS] 
(
	@i_tent_id			BIGINT, 
	@i_date				DATETIME,
	@ProviderId			INT,
	@Lic_Actives		VARCHAR(100),
	@AllProviders		BIT 
)
AS 
    DECLARE @specialistsWorkingAssets    INT, 
            @unemployedSpecialistsAssets INT, 
            @inactiveSpecialists         INT, 
            @contSpecialist              INT, 
            @dayWeek                     INT, 
            @date_now                    DATETIME, 
            @hour                        DATETIME, 
            @calendarException           INT, 
            @dateStart                   DATE 

  BEGIN 
      DECLARE @onsiterole INT 

      SET @onsiterole = 3 

      SELECT @onsiterole = role_id 
      FROM   afw_roles 
      WHERE  role_name = 'OnSiteSpecialist' 

	  --tabla temporal para licencias activas
	  create table ##Lic_Actives2 (licencesActives NVARCHAR(MAX)) 
		DECLARE @start INT, @end INT 
		SELECT @start = 1, @end = CHARINDEX(',', @Lic_Actives) 
		WHILE @start < LEN(@Lic_Actives) + 1 BEGIN 
			IF @end = 0  
				SET @end = LEN(@Lic_Actives) + 1
       
			INSERT INTO ##Lic_Actives2 (licencesActives) 
			VALUES(SUBSTRING(@Lic_Actives, @start, @end - @start)) 
			SET @start = @end + 1 
			SET @end = CHARINDEX(',', @Lic_Actives, @start)  
		END
	  --


	  --Validar si consultamos todos los provedores o uno especifico
	  IF @AllProviders = 1
	  BEGIN
	  SET @ProviderId = -1
	  END
	  --------------------------------------------------------------

      --Validar si es dia festivo   
      SELECT @dateStart = Cast(@i_date AS DATE) 

      SELECT @calendarException = Count(*) 
      FROM   afls_calendar_exception 
      WHERE  caex_date = @dateStart 
             AND cale_id = 0 
             AND caex_is_restriction = 1 

      -- se crea la tabla temporal con la información del resumen del especialista   
      CREATE TABLE #tmpsummaryspecialist 
        ( 
           name_summary VARCHAR(50), 
           total        INT, 
           style_link   VARCHAR(50), 
           image_spec   VARCHAR(50) 
        ) 

      -------------------------------------------------------------------------------------------      
      -- consulto la informacion de los especialistas activos con trabajo   
      SELECT @specialistsWorkingAssets = (SELECT Count(DISTINCT U.user_id) 
                                          FROM   afls_workorders W 
             INNER JOIN afls_users_specialists 
                        U 
                     ON W.work_attendant = 
                        U.user_id 
             INNER JOIN afw_users CU 
                     ON U.user_id = CU.user_id 
             INNER JOIN AFW_LICENSE_ASSIGNMENT LIC
                     ON LIC.user_id = 
                        U.user_id 
      WHERE  stat_id NOT IN (4,5)
            AND CU.user_active = 1
			AND (U.spc_provider_id = @ProviderId OR @ProviderId = -1) 
			AND LIC.license_id IN (select licencesActives from ##Lic_Actives2)
                    AND CONVERT(DATE, work_tentative_travel_start_date) = 
                    CONVERT(DATE, @i_date) 
                                                 AND 
                    CONVERT(DATE, work_tentative_attention_end_date) = 
                    CONVERT(DATE, @i_date)) 

      ---inserto la informacion en la tabla temporal   
      INSERT INTO #tmpsummaryspecialist 
                  (name_summary, 
                   total, 
                   style_link, 
                   image_spec) 
      VALUES     ('SpecialistWorking', 
                  @specialistsWorkingAssets, 
                  'linkspecialistactive', 
                  'specialist_actives.png') 

      -------------------------------------------------------------------------------------------      
      -- consulto la informacion de los especialistas activos sin trabajo   
      --- obtengo la hora de la fecha correspondiente   
      SELECT @date_now = (SELECT CONVERT(VARCHAR(8), @i_date, 108)AS hora) 

      --- obtengo el dia de la semana    
      SELECT @dayWeek = (SELECT Datepart(dw, @i_date)) + 1

      --   
      SELECT @unemployedSpecialistsAssets = (SELECT Count(DISTINCT U.user_id) 
                                             FROM   afls_users_specialists U 
                                                    INNER JOIN afw_users CU 
                                                            ON CU.user_id = 
                                                               U.user_id 
             INNER JOIN afls_report_capacity RC 
                     ON U.user_id = RC.user_id 
                        AND 
             RC.cap_day = @dayWeek 
                        AND RC.cap_hours > 0 
             INNER JOIN AFW_LICENSE_ASSIGNMENT LIC 
                     ON LIC.user_id = U.user_id 
      WHERE  CU.user_active = 1
		AND (U.spc_provider_id = @ProviderId OR @ProviderId = -1) 
        AND @calendarException = 0 
        AND 
                    U.user_id NOT IN(SELECT work_attendant 
                                     FROM   afls_workorders 
                                     WHERE 
                    CONVERT(DATE, work_tentative_travel_start_date) = 
                    CONVERT(DATE, @i_date) 
                    AND CONVERT(DATE, work_tentative_attention_end_date) 
                        = 
                        CONVERT(DATE, @i_date) 
                    AND work_attendant IS NOT NULL)
					AND LIC.license_id in (select licencesActives from ##Lic_Actives2))

      ---inserto la informacion en la tabla temporal   
      IF @unemployedSpecialistsAssets IS NULL 
        BEGIN 
            SELECT @unemployedSpecialistsAssets = 0 
        END 

      INSERT INTO #tmpsummaryspecialist 
                  (name_summary, 
                   total, 
                   style_link, 
                   image_spec) 
      VALUES     ('SpecialistNotWorking', 
                  @unemployedSpecialistsAssets, 
                  'linkspecialistjobless', 
                  'specialist_tractives.png') 

      -------------------------------------------------------------------------------------------   
      --- contabilizo todos los usuarios que se encuentren activos y sean especialistas en campo   
      SELECT @contSpecialist = (SELECT count(DISTINCT(U.user_id)) 
                                FROM   afls_users_specialists U 
                                       INNER JOIN afw_users CU 
                                               ON U.user_id = CU.user_id 
                                       INNER JOIN AFW_LICENSE_ASSIGNMENT LIC 
                                               ON LIC.user_id = U.user_id 
                                WHERE  CU.user_active = 1
								AND (U.spc_provider_id = @ProviderId OR @ProviderId = -1)
								AND LIC.license_id in (select licencesActives from ##Lic_Actives2))

      SELECT @inactiveSpecialists = 
             @contSpecialist - ( @specialistsWorkingAssets 
                                 + @unemployedSpecialistsAssets 
                               ) 

      ---inserto la informacion en la tabla temporal   
      INSERT INTO #tmpsummaryspecialist 
                  (name_summary, 
                   total, 
                   style_link, 
                   image_spec) 
      VALUES     ('SpecialistNotAvailable', 
                  @inactiveSpecialists, 
                  'linkspecialistinactive', 
                  'specialist_inactives.png') 

      SELECT name_summary AS NameSummary, 
             total        AS Total, 
             style_link   AS StyleLink, 
             image_spec   AS ImageSpec 
      FROM   #tmpsummaryspecialist 

      DROP TABLE #tmpsummaryspecialist 
	  DROP TABLE ##Lic_Actives2
  END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_DELETE_ERROR_MOBILE_LOG]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_DELETE_ERROR_MOBILE_LOG]
	@date  DATETIME
AS
BEGIN
	DELETE TOP (5000) FROM AFLS_ERROR_MOBILE_LOG WHERE (error_date <= @date)

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (5000) FROM AFLS_ERROR_MOBILE_LOG WHERE (error_date <= @date)
    END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_ORDER_COST]...';


GO

/*=======================================================================*/
/*  Archivo:            PRC_AFLS_ORDER_STATISTICS.sql					     */
/*  Stored procedure:   PRC_AFLS_ORDER_STATISTICS		                     */
/*  Producto:           Aranda FIELD SERVICE                             */
/*  Disenado por:       Aranda Software Corporation                      */
/*  Fecha de escritura: [10/09/2014]                                     */
/*=======================================================================*/
/*                          IMPORTANTE                                   */
/*  ESTE PROGRAMA ES PROPIEDAD DE "ARANDA SOFTWARE CORPORATION".         */
/*  HA SIDO DISEÑADO BAJO EL AMBIENTE OPERATIVO DE ARANDA.               */
/*  DESARROLLADO POR "ARANDA SOFTWARE CORPORATION - COLOMBIA"            */
/*  SU USO NO AUTORIZADO QUEDA EXPRESAMENTE PROHIBIDO ASI COMO CUALQUIER */
/*  ALTERACION O AGREGADO HECHO POR ALGUNO DE SUS USUARIOS SIN EL DEBIDO */
/*  CONSENTIMIENTO POR ESCRITO DE LA GERENCIA GENERAL DE ARANDA O SU     */
/*  REPRESENTANTE.                                                       */
/*=======================================================================*/
/* OBJETIVO: Llena el cubo de olap para reporte de ordenes		         */
/*																		 */
/*=======================================================================*/
/*                          MODIFICACIONES                               */
/*  FECHA       AUTOR          RAZON                                     */
/*  ----------  -------------- ----------------------------------------- */
/*																		 */
/*=======================================================================*/

CREATE PROCEDURE [dbo].[PRC_AFLS_ORDER_COST] 	
AS
BEGIN

	TRUNCATE TABLE [AFLS_REPORT_ORDER_COST]
	
	INSERT INTO [dbo].[AFLS_REPORT_ORDER_COST] ([FECHA],[SERVICIO],[COMPANIA],[ESPECIALISTA],[COSTO_BASE_SERV],[COSTO_INVENTARIO],
						[COSTO_TRANSPORTE],[COSTO_ESPECIALISTA],[COSTO_PROM_SERV],[COSTO_PROM_INV],[COSTO_PROM_TRANS],
						[COSTO_PROM_ESP],[COSTO_TOTAL], [NUMERO_ORDENES])
	SELECT 
		FECHA,
		SERVICIO,
		COMPANIA,
		ESPECIALISTA,
		SUM(COSTO_BASE_SERV) AS 'COSTO_TOTAL_SERV',
		SUM(COSTO_INVENTARIO) AS 'COSTO_TOTAL_INV',
		SUM(COSTO_TRANSPORTE) AS 'COSTO_TOTAL_TRANS',
		SUM(COSTO_ESPECIALISTA) AS 'COSTO_TOTAL_ESP',
		CAST(AVG(COSTO_BASE_SERV) as decimal(20,2)) AS 'COSTO_PROM_SERV',
		CAST(AVG(COSTO_INVENTARIO) as decimal(20,2)) AS 'COSTO_PROM_INV',
		CAST(AVG(COSTO_TRANSPORTE) as decimal(20,2)) AS 'COSTO_PROM_TRANS',
		CAST(AVG(COSTO_ESPECIALISTA) as decimal(20,2)) AS 'COSTO_PROM_ESP',
		(SUM(COSTO_BASE_SERV) + SUM(COSTO_INVENTARIO) + SUM(COSTO_TRANSPORTE) + SUM(COSTO_ESPECIALISTA)) AS 'COSTO_TOTAL',
		COUNT(ORDEN_ID) AS 'NUMERO_ORDENES'
	FROM
		(SELECT CAST(w.work_attention_end_date AS DATE) AS 'FECHA',
			   w.serv_id AS 'SERVICIO',
			   w.comp_id AS 'COMPANIA',
			   w.work_attendant AS 'ESPECIALISTA',
			   s.serv_base_cost AS 'COSTO_BASE_SERV',
			   wc.cons_products AS 'COSTO_INVENTARIO',
			   wc.cons_transport AS 'COSTO_TRANSPORTE',
			   wc.cons_specialist AS 'COSTO_ESPECIALISTA',
			   w.work_id AS 'ORDEN_ID'	   	   
		FROM AFLS_WORKORDERS w 
			 JOIN AFLS_SERVICES s ON w.serv_id = s.serv_id
			 JOIN AFLS_WORKORDER_CONSOLIDATES wc  ON w.work_id = wc.work_id 
		WHERE w.stat_id = 4 AND
			  w.work_attendant IS NOT NULL) AS lw
	GROUP BY CUBE (FECHA, SERVICIO, COMPANIA, ESPECIALISTA)
	
	
		
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_ORDER_STATISTICS]...';


GO
/*=======================================================================*/
/*  Archivo:            PRC_AFLS_ORDER_STATISTICS.sql					     */
/*  Stored procedure:   PRC_AFLS_ORDER_STATISTICS		                     */
/*  Producto:           Aranda FIELD SERVICE                             */
/*  Disenado por:       Aranda Software Corporation                      */
/*  Fecha de escritura: [10/09/2014]                                     */
/*=======================================================================*/
/*                          IMPORTANTE                                   */
/*  ESTE PROGRAMA ES PROPIEDAD DE "ARANDA SOFTWARE CORPORATION".         */
/*  HA SIDO DISEÑADO BAJO EL AMBIENTE OPERATIVO DE ARANDA.               */
/*  DESARROLLADO POR "ARANDA SOFTWARE CORPORATION - COLOMBIA"            */
/*  SU USO NO AUTORIZADO QUEDA EXPRESAMENTE PROHIBIDO ASI COMO CUALQUIER */
/*  ALTERACION O AGREGADO HECHO POR ALGUNO DE SUS USUARIOS SIN EL DEBIDO */
/*  CONSENTIMIENTO POR ESCRITO DE LA GERENCIA GENERAL DE ARANDA O SU     */
/*  REPRESENTANTE.                                                       */
/*=======================================================================*/
/* OBJETIVO: Llena el cubo de olap para reporte de ordenes		         */
/*																		 */
/*=======================================================================*/
/*                          MODIFICACIONES                               */
/*  FECHA       AUTOR          RAZON                                     */
/*  ----------  -------------- ----------------------------------------- */
/*																		 */
/*=======================================================================*/

CREATE PROCEDURE [dbo].[PRC_AFLS_ORDER_STATISTICS] 	
AS
BEGIN

	TRUNCATE TABLE [AFLS_REPORT_ORDERS]
	
	INSERT INTO [dbo].[AFLS_REPORT_ORDERS] ([ESTADO] ,[TIPO_FECHA] ,[FECHA] ,[SERVICIO] ,[ESPECIALISTA] ,[CUMPLE_SLA] ,[NUMERO_ORDENES] ,[TIEMPO_PROMEDIO], [EJECUCION_PROMEDIO])

	SELECT ESTADO,
		   1 AS TIPO_FEC,
		   FECHA,
		   SERVICIO,
		   CASE
			   WHEN (GROUPING(ESPECIALISTA) = 1) THEN NULL
			   WHEN ESPECIALISTA IS NULL THEN -1
			   ELSE ESPECIALISTA
		   END AS ESPECIALISTA,
		   CASE
			   WHEN (GROUPING(CUMPLE_SLA) = 1) THEN NULL
			   WHEN CUMPLE_SLA IS NULL THEN -1
			   ELSE CUMPLE_SLA
		   END AS CUMPLE_SLA,
		   COUNT(*) AS 'NUMERO_ORDENES',
		   AVG(TIEMPO_SOLUCION) AS 'TIEMPO_PROMEDIO',
		   CAST((CAST(AVG(TIEMPO_EJECUCION) AS DECIMAL(10,2)) /60) AS DECIMAL(10,2)) AS 'EJECUCION_PROMEDIO'
	FROM
	  (SELECT W.stat_id AS 'ESTADO',
			  CAST(W.work_created_date AS DATE) AS 'FECHA',
			  W.serv_id AS 'SERVICIO',
			  W.work_attendant AS 'ESPECIALISTA',
			  CASE
				  WHEN W.stat_id = 4
					   AND W.work_attendant IS NOT NULL
					   AND W.work_attention_end_date <= W.work_max_solution_time THEN 1
				  WHEN W.stat_id = 4
					   AND W.work_attendant IS NOT NULL
					   AND W.work_attention_end_date > W.work_max_solution_time THEN 0
				  ELSE NULL
			  END AS 'CUMPLE_SLA' ,
			  CASE
				  WHEN W.stat_id = 4
					   AND work_attendant IS NOT NULL THEN DATEDIFF(HOUR, W.work_created_date, W.WORK_ATTENTION_END_DATE)
				  ELSE NULL
			  END AS 'TIEMPO_SOLUCION',
			  CASE
				  WHEN W.stat_id = 4
					   AND work_attendant IS NOT NULL THEN CAST((W.WORK_RUNTIME) AS DECIMAL (10,2))
				  ELSE NULL
			  END AS 'TIEMPO_EJECUCION'
	   FROM AFLS_WORKORDERS AS W) AS T
	GROUP BY CUBE(FECHA, ESTADO, SERVICIO, ESPECIALISTA, CUMPLE_SLA)
	UNION
	SELECT W.stat_id AS 'ESTADO',
		   2 AS TIPO_FEC,
		   CAST(W.work_attention_start_date AS DATE) AS 'FECHA',
		   W.serv_id AS 'SERVICIO',
		   CASE
			   WHEN (GROUPING(W.work_attendant) = 1) THEN NULL
			   WHEN W.work_attendant IS NULL THEN -1
			   ELSE W.work_attendant
		   END AS 'ESPECIALISTA',
		   -1 AS 'CUMPLE_SLA',
		   COUNT(*) AS 'NUMERO_ORDENES',
		   -1 AS 'TIEMPO_PROMEDIO',
		   -1 AS 'EJECUCION_PROMEDIO'
	FROM AFLS_WORKORDERS AS W
	WHERE W.stat_id IN (2,
						3)
	GROUP BY CUBE(CAST(w.work_attention_start_date AS DATE), W.stat_id, W.serv_id, W.work_attendant)
	UNION
	SELECT ESTADO,
		   4 AS TIPO_FEC,
		   FECHA,
		   SERVICIO,
		   CASE
			   WHEN (GROUPING(ESPECIALISTA) = 1) THEN NULL
			   WHEN ESPECIALISTA IS NULL THEN -1
			   ELSE ESPECIALISTA
		   END AS ESPECIALISTA,
		   CASE
			   WHEN (GROUPING(CUMPLE_SLA) = 1) THEN NULL
			   WHEN CUMPLE_SLA IS NULL THEN -1
			   ELSE CUMPLE_SLA
		   END AS CUMPLE_SLA,
		   COUNT(*) AS 'NUMERO_ORDENES',
		   AVG(TIEMPO_SOLUCION) AS 'TIEMPO_PROMEDIO',
		   CAST((CAST(AVG(TIEMPO_EJECUCION) AS DECIMAL(10,2)) /60) AS DECIMAL(10,2)) AS 'EJECUCION_PROMEDIO'
		FROM
		  (SELECT W.stat_id AS 'ESTADO',
				  CAST(W.work_attention_end_date AS DATE) AS 'FECHA',
				  W.serv_id AS 'SERVICIO',
				  W.work_attendant AS 'ESPECIALISTA',
				  CASE
					  WHEN W.work_attendant IS NOT NULL
						   AND W.work_attention_end_date <= W.work_max_solution_time THEN 1
					  WHEN W.work_attendant IS NOT NULL
						   AND W.work_attention_end_date > W.work_max_solution_time THEN 0
					  ELSE NULL
				  END AS 'CUMPLE_SLA' ,
				  CASE
					  WHEN work_attendant IS NOT NULL THEN DATEDIFF(HOUR, W.work_created_date, W.WORK_ATTENTION_END_DATE)
					  ELSE NULL
				  END AS 'TIEMPO_SOLUCION',
				  CASE
					  WHEN work_attendant IS NOT NULL THEN CAST((W.WORK_RUNTIME) AS DECIMAL (10,2))
					  ELSE NULL
				  END AS 'TIEMPO_EJECUCION'
		   FROM AFLS_WORKORDERS AS W
		   WHERE W.stat_id = 4) AS T
		GROUP BY CUBE(FECHA, ESTADO, SERVICIO, ESPECIALISTA, CUMPLE_SLA)
	
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_PROVIDERS_CALCULATE_SCORE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_PROVIDERS_CALCULATE_SCORE]
(
    @DateCalculation DATETIME
)
AS
BEGIN
    SET NOCOUNT ON;

    SET @DateCalculation = DATEADD(DAY, -1, GETDATE());

    DECLARE @v_initial_date DATETIME;
    SET @v_initial_date = DATEADD(DD, -30, @DateCalculation);

    -- Tabla inicial para c�lculos
    DECLARE @v_temp_table AS TABLE
    (
        work_id INT,
        token VARCHAR(100),
        provider_id INT
    );

    -- Tabla C�lculo de Calificaci�n
    DECLARE @v_qualification_table AS TABLE
    (
        provider_id INT,
        qualification DECIMAL(18, 2)
    );

    -- Tabla C�lculo de Respuesta
    DECLARE @v_reply_table AS TABLE
    (
        provider_id INT,
        reply DECIMAL(18, 2)
    );

    -- Tabla C�lculo de Cumplimiento
    DECLARE @v_accomplishment_table AS TABLE
    (
        provider_id INT,
        accomplishment DECIMAL(18, 2)
    );

    -- Tabla de resultados
    DECLARE @v_table_result AS TABLE
    (
        provider_id INT,
        qualification DECIMAL(18, 2),
        accomplishment DECIMAL(18, 2),
        reply DECIMAL(18, 2),
        date_score DATE
    );

    -- Inicializo la tabla de c�lculos
    INSERT INTO @v_temp_table
    SELECT
        W.work_id,
        S.Token,
        W.work_provider_id
    FROM AFLS_WORKORDERS W WITH(NOLOCK)
    INNER JOIN AFW_SURVEY_USER S WITH(NOLOCK)
        ON W.survey_id = S.Token
    WHERE W.stat_id = 4
        AND S.FinishedAt >= CAST(@DateCalculation AS DATE)
        AND S.FinishedAt < DATEADD(DAY, 1, CAST(@DateCalculation AS DATE))
        AND w.work_include_provider_statics = 0
        AND S.FinishedAt IS NOT NULL;

    -- Poblar la tabla de satisfacci�n
    INSERT INTO @v_qualification_table
    SELECT
        sb2.provider_id,
        ROUND(AVG(CAST(sb2.val AS FLOAT)), 2)
    FROM
    (
        SELECT
            sb1.provider_id,
            ROUND(AVG(CAST(sb1.val AS FLOAT)), 2) val
        FROM
        (
            SELECT
                T.provider_id,
                SA.token,
                CASE
                    WHEN SQ.MaxValue != 10
                        THEN ((CAST(SA.ResponseChoiceId AS FLOAT) * 10) / SQ.MaxValue)
                    ELSE CAST(SA.ResponseChoiceId AS FLOAT)
                END val
            FROM AFW_SURVEY_ANSWERS SA WITH(NOLOCK)
            INNER JOIN AFW_SURVEY_QUESTION SQ WITH(NOLOCK)
                ON SA.QuestionId = SQ.Id
            INNER JOIN @v_temp_table T
                ON SA.Token = T.token
            WHERE SQ.IncludedToReport = 1
                AND SQ.QuestionTypeId = 1
        ) sb1
        GROUP BY sb1.provider_id, sb1.token
    ) sb2
    GROUP BY sb2.provider_id;

    -- Poblar la tabla de respuesta
    DECLARE @v_start_date DATETIME = CAST(@DateCalculation AS DATE);
    DECLARE @v_end_date DATETIME = DATEADD(DAY, 1, @v_start_date);

    INSERT INTO @v_reply_table (provider_id, reply)
    SELECT
        P.ProviderId,
        CASE
            WHEN ISNULL(LogData.unattendant, 0) = ISNULL(LogData.unattendant, 0)
                AND ISNULL(LogData.unattendant, 0) <> 0
                THEN 1
            ELSE CAST(
                (CAST(ISNULL(LogData.attendant, 0) AS DECIMAL(18, 2)) * 100
                / NULLIF(ISNULL(LogData.total, 0), 0)) / 10
                AS DECIMAL(18, 2)
            )
        END reply
    FROM AFLS_PROVIDERS P WITH(NOLOCK)
    LEFT JOIN
    (
        SELECT
            ProviderId,
            COUNT(CASE WHEN ProviderActionDate IS NULL AND State = 4 THEN 1 END) unattendant,
            COUNT(CASE WHEN State IN (2, 3) THEN 1 END) attendant,
            COUNT(CASE WHEN State NOT IN (1, 6, 5) THEN 1 END) total
        FROM AFLS_WORKORDER_PROVIDER_LOG WITH(NOLOCK)
        WHERE CreationDate >= @v_start_date
            AND CreationDate < @v_end_date
        GROUP BY ProviderId
    ) LogData
        ON P.ProviderId = LogData.ProviderId;

    -- Inicializar Tabla de Cumplimiento
    DECLARE @v_accomplishment_temp_table AS TABLE
    (
        provider_id INT,
        [in] INT,
        [out] INT,
        total INT
    );

    INSERT INTO @v_accomplishment_temp_table
    SELECT ProviderId, 0, 0, 0
    FROM AFLS_PROVIDERS;

    SELECT work_id, work_provider_id
    INTO #Orders
    FROM AFLS_WORKORDERS
    WHERE work_attention_end_date >= CAST(@DateCalculation AS DATE)
        AND work_attention_end_date < DATEADD(DAY, 1, CAST(@DateCalculation AS DATE))
        AND stat_id = 4;

    DECLARE @v_provider_id INT;

    DECLARE Provider_Cursor CURSOR FOR
    SELECT ProviderId
    FROM AFLS_PROVIDERS
    WHERE IsDeleted = 0
        AND IsActive = 1;

    OPEN Provider_Cursor;

    FETCH NEXT FROM Provider_Cursor
    INTO @v_provider_id;

    WHILE @@FETCH_STATUS = 0
    BEGIN
        DECLARE @v_work_id INT;
        DECLARE @v_provider_finish_order_id INT;

        DECLARE Orders_Cursor CURSOR FOR
        SELECT work_id, work_provider_id
        FROM #Orders;

        OPEN Orders_Cursor;

        FETCH NEXT FROM Orders_Cursor
        INTO @v_work_id, @v_provider_finish_order_id;

        WHILE @@FETCH_STATUS = 0
        BEGIN
            IF (@v_provider_finish_order_id = @v_provider_id)
            BEGIN
                DECLARE @v_in INT;
                DECLARE @v_out INT;
                DECLARE @v_count INT;

                SELECT @v_count = COUNT(R.chresult_item_id)
                FROM afls_workorders W WITH(NOLOCK)
                INNER JOIN afls_chronos_results_report R WITH(NOLOCK)
                    ON W.work_id = R.chresult_item_id
                WHERE R.chresult_providerid = @v_provider_id
                    AND W.work_id = @v_work_id
                    AND R.chresult_complies = 0
                    AND R.chresult_currenttime > 0;

                IF (@v_count != 0)
                BEGIN
                    SET @v_out = 1;
                    SET @v_in = 0;
                END
                ELSE
                BEGIN
                    SET @v_out = 0;
                    SET @v_in = 1;
                END;

                UPDATE TA
                SET
                    TA.[in] = (TA.[in] + @v_in),
                    TA.[out] = (TA.[out] + @v_out)
                FROM @v_accomplishment_temp_table TA
                WHERE provider_id = @v_provider_id;
            END;

            FETCH NEXT FROM Orders_Cursor
            INTO @v_work_id, @v_provider_finish_order_id;
        END;

        CLOSE Orders_Cursor;
        DEALLOCATE Orders_Cursor;

        FETCH NEXT FROM Provider_Cursor
        INTO @v_provider_id;
    END;

    CLOSE Provider_Cursor;
    DEALLOCATE Provider_Cursor;

    UPDATE T
    SET T.total = T.[in] + T.[out]
    FROM @v_accomplishment_temp_table T;

    DELETE FROM @v_accomplishment_temp_table
    WHERE total = 0;

    DROP TABLE #Orders;

    INSERT INTO @v_accomplishment_table
    SELECT
        provider_id,
        CASE
            WHEN (total = [out]) AND [out] <> 0
                THEN 1
            ELSE (((CONVERT(DECIMAL(18, 2), [in]) * 100
                / CONVERT(DECIMAL(18, 2), CASE WHEN total = 0 THEN 1 ELSE total END)) * 10) / 100)
        END accomplishment
    FROM @v_accomplishment_temp_table;

    INSERT INTO @v_table_result
    SELECT P.ProviderId, 0, 0, 0, @DateCalculation
    FROM AFLS_PROVIDERS P
    WHERE P.IsDeleted = 0
        AND P.IsActive = 1;

    UPDATE Tr
    SET
        Tr.qualification = ISNULL((
            SELECT qualification
            FROM @v_qualification_table
            WHERE provider_id = Tr.provider_id
        ), 0),
        Tr.reply = ISNULL((
            SELECT reply
            FROM @v_reply_table
            WHERE provider_id = Tr.provider_id
        ), 0),
        Tr.accomplishment = ISNULL((
            SELECT accomplishment
            FROM @v_accomplishment_table
            WHERE provider_id = Tr.provider_id
        ), 0)
    FROM @v_table_result Tr;

    UPDATE W
    SET W.work_include_provider_statics = 1
    FROM AFLS_WORKORDERS W WITH(NOLOCK)
    INNER JOIN @v_temp_table T
        ON W.work_id = T.work_id;

    INSERT INTO AFLS_PROVIDER_SCORE
    SELECT provider_id, qualification, accomplishment, reply, date_score
    FROM @v_table_result;

    -- C�lculo de puntuaciones generales
    DECLARE @v_general_qualification AS TABLE
    (
        provider_id INT,
        qualification DECIMAL(18, 2)
    );

    DECLARE @v_general_reply AS TABLE
    (
        provider_id INT,
        reply DECIMAL(18, 2)
    );

    DECLARE @v_general_accomplishment AS TABLE
    (
        provider_id INT,
        accomplishment DECIMAL(18, 2)
    );

    INSERT INTO @v_general_qualification
    SELECT ProviderId, 0
    FROM AFLS_PROVIDERS;

    INSERT INTO @v_general_reply
    SELECT ProviderId, 10
    FROM AFLS_PROVIDERS;

    INSERT INTO @v_general_accomplishment
    SELECT ProviderId, 10
    FROM AFLS_PROVIDERS;

    UPDATE Q
    SET Q.qualification = ISNULL((
        SELECT AVG(Qualification)
        FROM AFLS_PROVIDER_SCORE
        WHERE Qualification != 0
            AND ProviderId = Q.provider_id
            AND DateScore >= @v_initial_date
            AND DateScore < DATEADD(DAY, 1, @DateCalculation)
        GROUP BY ProviderId
    ), 0)
    FROM @v_general_qualification Q;

    UPDATE R
    SET R.reply = ISNULL((
        SELECT AVG(Reply)
        FROM AFLS_PROVIDER_SCORE
        WHERE Reply != 0
            AND ProviderId = R.provider_id
            AND DateScore >= @v_initial_date
            AND DateScore < DATEADD(DAY, 1, @DateCalculation)
        GROUP BY ProviderId
    ), 10)
    FROM @v_general_reply R;

    UPDATE A
    SET A.accomplishment = ISNULL((
        SELECT AVG(Accomplishment)
        FROM AFLS_PROVIDER_SCORE
        WHERE Accomplishment != 0
            AND ProviderId = A.provider_id
            AND DateScore >= @v_initial_date
            AND DateScore < DATEADD(DAY, 1, @DateCalculation)
        GROUP BY ProviderId
    ), 10)
    FROM @v_general_accomplishment A;

    INSERT INTO AFLS_PROVIDER_GENERAL_SCORE
    SELECT ProviderId, -1, -1, -1
    FROM AFLS_PROVIDERS
    WHERE ProviderId NOT IN (SELECT ProviderId FROM AFLS_PROVIDER_GENERAL_SCORE);

    UPDATE GS
    SET GS.Qualification = CASE
                               WHEN GS.Qualification = 0 THEN 10
                               ELSE
                                   (SELECT CASE
                                               WHEN qualification = 0 THEN 10
                                               ELSE qualification
                                           END
                                    FROM @v_general_qualification
                                    WHERE provider_id = GS.ProviderId)
                           END,
        GS.Reply = CASE
                       WHEN GS.Reply = 0 THEN 10
                       ELSE
                           (SELECT CASE
                                       WHEN reply = 0 THEN 10
                                       ELSE reply
                                   END
                            FROM @v_general_reply
                            WHERE provider_id = GS.ProviderId)
                   END,
        GS.Accomplishment = CASE
                                WHEN GS.Accomplishment = 0 THEN 10
                                ELSE
                                    (SELECT CASE
                                                WHEN accomplishment = 0 THEN 10
                                                ELSE accomplishment
                                            END
                                     FROM @v_general_accomplishment
                                     WHERE provider_id = GS.ProviderId)
                            END
    FROM AFLS_PROVIDER_GENERAL_SCORE GS WITH(NOLOCK)
    INNER JOIN AFLS_PROVIDERS P WITH(NOLOCK)
        ON GS.ProviderId = P.ProviderId;

    SELECT * FROM AFLS_PROVIDER_SCORE;

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_REPORT_DATASET_COMPANY]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_REPORT_DATASET_COMPANY]
AS		
BEGIN
SELECT [esta_code] ,
       [esta_name]
FROM [AFLS_ESTABLISHMENT]
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_REPORT_DATASET_LOCATION]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_REPORT_DATASET_LOCATION]
AS		
BEGIN
	DECLARE @id INT 
	
	SELECT 
	@id = LI.grou_id 
	FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] AS LI 
	WHERE LI.grou_name = 'AFLS_Locations';

	SELECT 
		LI.grou_id AS Id,
		CASE LI.grou_name WHEN 'AFLS_Locations' THEN 'Todas las sedes' ELSE LI.grou_name END AS Name
	FROM 
		[dbo].[AFLS_INVENTORY_LOCATION_INFO] AS LI
	WHERE
		LI.asli_parent = @id OR LI.grou_id = @id
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_REPORT_DATASET_PROVIDERS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_REPORT_DATASET_PROVIDERS]
AS		
BEGIN
SELECT - 1 AS prov_id,
         'Todos los proveedores' AS provider_name
UNION
SELECT ProviderId,
       Name
FROM AFLS_PROVIDERS

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_REPORT_DATASET_SERVICE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_REPORT_DATASET_SERVICE]
AS		
BEGIN
SELECT - 1 AS serv_id,
         'Todos los servicios' AS serv_name
UNION
SELECT serv_id,
       serv_name
FROM AFLS_SERVICES
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_REPORT_DATASET_SURVEY_NAME]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_REPORT_DATASET_SURVEY_NAME]
(
@idSurvey				INT 
)
AS		
BEGIN

SELECT 
Name Name
FROM AFW_SURVEY WITH(NOLOCK) 
WHERE Id = @idSurvey 

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_REPORT_DATASET_SURVEYS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_REPORT_DATASET_SURVEYS]
AS		
BEGIN

SELECT Id prov_id,
       Name Survey_Name
FROM AFW_SURVEY

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_TRANSFER_INFO_LOCATION_HISTORY]...';


GO



CREATE PROCEDURE PRC_AFLS_TRANSFER_INFO_LOCATION_HISTORY 
AS
BEGIN
DECLARE @DayTransFer INT

SELECT @DayTransFer = sett_value FROM AFW_SETTINGS WHERE sett_key = 'PeriodDaysTransferLocationData'


DECLARE @DateMax DATETIME
SET @DateMax = DATEADD(dd, (@DayTransFer*-1), DATEDIFF(dd, 0, GETDATE()))

PRINT 'inicio seleccion de datos' + CONVERT(VARCHAR(50),GETDATE())

SELECT 
loct_id
,user_id
,loct_lon
,loct_lat
,loct_date
,loct_distance_FROM_last
,loct_speed
,loct_accuraccy
,loct_altitude
,loct_provider
,loct_bearing
,loct_priority
,loct_device_id
,loct_metadata
,loct_sync_id
INTO #TempData FROM AFLS_LOCATIONS
WHERE 
DATEADD(dd, 0, DATEDIFF(dd, 0, loct_date)) < @DateMax

PRINT 'acabo seleccion de datos ' + CONVERT(VARCHAR(50),GETDATE())

PRINT 'inicio insercion de datos ' + CONVERT(VARCHAR(50),GETDATE())
INSERT INTO AFLS_LOCATIONS_HISTORY
SELECT * FROM #TempData
PRINT 'acabo insercion de datos ' + CONVERT(VARCHAR(50),GETDATE())

PRINT 'inicio eliminacion de datos ' + CONVERT(VARCHAR(50),GETDATE())
DELETE FROM AFLS_LOCATIONS 
WHERE loct_id in (SELECT loct_id FROM #TempData)
PRINT 'acabo eliminacion de datos ' + CONVERT(VARCHAR(50),GETDATE())


DROP TABLE #TempData




END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_USER_SEARCH]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFLS_USER_SEARCH]
(
	@i_page					INT,
	@i_rows					INT,
	@i_type_user			VARCHAR(100),
	@i_provider_id			INT = NULL,
	@i_imported_from		VARCHAR(50) = NULL,
	@i_only_active			BIT = 1,
	@i_text					NVARCHAR(1000) = ''
)
AS
BEGIN
	

	IF @i_type_user = 'Client'
	BEGIN
		IF @i_text IS NOT NULL AND RTRIM(@i_text) <> ''
		BEGIN
			SELECT 
				UC.user_id AS Id,	
				UC.clie_longitude AS Longitude,
				UC.clie_latitude AS Latitude,
				UC.clie_imported_from AS ImportedFrom,
				UC.clie_addl_address_info AS AddressInfo,
				UC.clie_address AS Address,
				UC.clie_is_imported AS IsImported,
				UC.comp_id AS CompanyId,
				U.user_nick_name AS UserName,
				U.user_name AS Name,
				U.user_active AS IsActive,
				U.user_creation_date AS CreatedDate,				
				U.user_email AS Email,
				U.user_guid_ldap AS GuidLDAP,
				U.user_path_ldap AS PathLDAP,
				U.user_phone1 AS Phone,
				U.user_authentication_id AS AuthenticationId
			FROM
				AFW_USERS AS U
					INNER JOIN 
				AFLS_USERS_CLIENTS AS UC
					ON U.user_id = UC.user_id
					INNER JOIN 
				CONTAINSTABLE
					(AFW_USERS,([user_name],[user_nick_name]),@i_text,LANGUAGE 0) AS F
					ON F.[Key] = U.user_id
			WHERE 
				(@i_only_active = 0 OR (@i_only_active = 1 AND  U.user_active = @i_only_active)) AND
				(@i_imported_from IS NULL OR (@i_imported_from IS NOT NULL AND UC.clie_imported_from = @i_imported_from))
			ORDER BY F.[Rank] DESC
			OFFSET(@i_page - 1) * @i_rows ROWS
			FETCH NEXT @i_rows ROWS ONLY;
		END
		ELSE
		BEGIN
			SELECT 
				UC.user_id AS Id,	
				UC.clie_longitude AS Longitude,
				UC.clie_latitude AS Latitude,
				UC.clie_imported_from AS ImportedFrom,
				UC.clie_addl_address_info AS AddressInfo,
				UC.clie_address AS Address,
				UC.clie_is_imported AS IsImported,
				UC.comp_id AS CompanyId,
				U.user_nick_name AS UserName,
				U.user_name AS Name,
				U.user_active AS IsActive,
				U.user_creation_date AS CreatedDate,				
				U.user_email AS Email,
				U.user_guid_ldap AS GuidLDAP,
				U.user_path_ldap AS PathLDAP,
				U.user_phone1 AS Phone,
				U.user_authentication_id AS AuthenticationId
			FROM
				AFW_USERS AS U
					INNER JOIN 
				AFLS_USERS_CLIENTS AS UC
					ON U.user_id = UC.user_id
			WHERE 
				(@i_only_active = 0 OR (@i_only_active = 1 AND  U.user_active = @i_only_active)) AND
				(@i_imported_from IS NULL OR (@i_imported_from IS NOT NULL AND UC.clie_imported_from = @i_imported_from))
			ORDER BY U.user_id
			OFFSET(@i_page - 1) * @i_rows ROWS
			FETCH NEXT @i_rows ROWS ONLY;
		END
	END
	ELSE IF @i_type_user = 'Web'
	BEGIN
		IF @i_text IS NOT NULL AND RTRIM(@i_text) <> ''
		BEGIN
			SELECT 
				UW.user_id AS Id,	
				UW.web_imported_from AS ImportedFrom,
				UW.web_is_imported AS IsImported,
				U.user_nick_name AS UserName,
				U.user_name AS Name,
				U.user_active AS IsActive,
				U.user_creation_date AS CreatedDate,				
				U.user_email AS Email,
				U.user_guid_ldap AS GuidLDAP,
				U.user_path_ldap AS PathLDAP,
				U.user_phone1 AS Phone,
				U.user_authentication_id AS AuthenticationId
			FROM
				AFW_USERS AS U
					INNER JOIN 
				AFLS_USERS_WEB AS UW
					ON U.user_id = UW.user_id
					INNER JOIN 
				CONTAINSTABLE
					(AFW_USERS,([user_name],[user_nick_name],[user_email]),@i_text,LANGUAGE 0) AS F
					ON F.[Key] = U.user_id
			WHERE 
				(@i_only_active = 0 OR (@i_only_active = 1 AND  U.user_active = @i_only_active))
			ORDER BY F.[Rank] DESC
			OFFSET(@i_page - 1) * @i_rows ROWS
			FETCH NEXT @i_rows ROWS ONLY;
		END
		ELSE
		BEGIN
			SELECT 
				UW.user_id AS Id,	
				UW.web_imported_from AS ImportedFrom,
				UW.web_is_imported AS IsImported,
				U.user_nick_name AS UserName,
				U.user_name AS Name,
				U.user_active AS IsActive,
				U.user_creation_date AS CreatedDate,				
				U.user_email AS Email,
				U.user_guid_ldap AS GuidLDAP,
				U.user_path_ldap AS PathLDAP,
				U.user_phone1 AS Phone,
				U.user_authentication_id AS AuthenticationId
			FROM
				AFW_USERS AS U
					INNER JOIN 
				AFLS_USERS_WEB AS UW
					ON U.user_id = UW.user_id
			WHERE 
				(@i_only_active = 0 OR (@i_only_active = 1 AND  U.user_active = @i_only_active))
			ORDER BY U.user_id
			OFFSET(@i_page - 1) * @i_rows ROWS
			FETCH NEXT @i_rows ROWS ONLY;
		END
	END
	ELSE IF @i_type_user = 'Mobile'
	BEGIN
		IF @i_text IS NOT NULL AND RTRIM(@i_text) <> ''
		BEGIN
			SELECT 
				US.user_id AS Id,	
				US.spc_platform AS Platform,
				US.spc_push_id AS PushId,
				U.user_nick_name AS UserName,
				U.user_name AS Name,
				U.user_active AS IsActive,
				U.user_creation_date AS CreatedDate,				
				U.user_email AS Email,
				U.user_guid_ldap AS GuidLDAP,
				U.user_path_ldap AS PathLDAP,
				U.user_phone1 AS Phone,
				U.user_authentication_id AS AuthenticationId
			FROM
				AFW_USERS AS U
					INNER JOIN 
				AFLS_USERS_SPECIALISTS AS US
					ON U.user_id = US.user_id
					INNER JOIN 
				CONTAINSTABLE
					(AFW_USERS,([user_name],[user_nick_name],[user_email]),@i_text,LANGUAGE 0) AS F
					ON F.[Key] = U.user_id
			WHERE 
				(@i_only_active = 0 OR (@i_only_active = 1 AND  U.user_active = @i_only_active)) AND
				(@i_provider_id IS NULL OR (@i_provider_id IS NOT NULL AND US.spc_provider_id = @i_provider_id))
			ORDER BY F.[Rank] DESC
			OFFSET(@i_page - 1) * @i_rows ROWS
			FETCH NEXT @i_rows ROWS ONLY;
		END
		ELSE
		BEGIN
			SELECT 
				US.user_id AS Id,	
				US.spc_platform AS Platform,
				US.spc_push_id AS PushId,
				U.user_nick_name AS UserName,
				U.user_name AS Name,
				U.user_active AS IsActive,
				U.user_creation_date AS CreatedDate,				
				U.user_email AS Email,
				U.user_guid_ldap AS GuidLDAP,
				U.user_path_ldap AS PathLDAP,
				U.user_phone1 AS Phone,
				U.user_authentication_id AS AuthenticationId
			FROM
				AFW_USERS AS U
					INNER JOIN 
				AFLS_USERS_SPECIALISTS AS US
					ON U.user_id = US.user_id
			WHERE 
				(@i_only_active = 0 OR (@i_only_active = 1 AND  U.user_active = @i_only_active)) AND
				(@i_provider_id IS NULL OR (@i_provider_id IS NOT NULL AND US.spc_provider_id = @i_provider_id))
			ORDER BY U.user_id
			OFFSET(@i_page - 1) * @i_rows ROWS
			FETCH NEXT @i_rows ROWS ONLY;
		END
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_WORFLOW_ACTION_CHRONOMETER]...';


GO
/*=======================================================================*/  
/*  Archivo:            PRC_AFLS_WORFLOW_ACTION_CHRONOMETER.sql              */  
/*  Stored procedure:   PRC_AFLS_WORFLOW_ACTION_CHRONOMETER                  */  
/*  Producto:           Aranda FIELD SERVICE                             */  
/*  Disenado por:       Aranda Software Corporation                      */  
/*  Fecha de escritura: [19/05/2016]                                     */  
/*=======================================================================*/  
/*                          IMPORTANTE                                   */  
/*  ESTE PROGRAMA ES PROPIEDAD DE "ARANDA SOFTWARE CORPORATION".         */  
/*  HA SIDO DISEÑADO BAJO EL AMBIENTE OPERATIVO DE ARANDA.               */  
/*  DESARROLLADO POR "ARANDA SOFTWARE CORPORATION - COLOMBIA"            */  
/*  SU USO NO AUTORIZADO QUEDA EXPRESAMENTE PROHIBIDO ASI COMO CUALQUIER */  
/*  ALTERACION O AGREGADO HECHO POR ALGUNO DE SUS USUARIOS SIN EL DEBIDO */  
/*  CONSENTIMIENTO POR ESCRITO DE LA GERENCIA GENERAL DE ARANDA O SU     */  
/*  REPRESENTANTE.                                                       */  
/*=======================================================================*/  
/* OBJETIVO: Permite ejecutar la acción de iniciar o detener cronometros */  
/*=======================================================================*/  

CREATE PROCEDURE  [dbo].[PRC_AFLS_WORFLOW_ACTION_CHRONOMETER]  
( 
	@workOrderId		INT,  
	@new_parent_state	INT,  
	@new_sub_state		INT,  
	@i_provider_id		INT,  
	@b_only_provider	BIT = 0  
)  
AS  
BEGIN  
 -- SET NOCOUNT ON added to prevent extra result sets from  
 -- interfering with SELECT statements.  
 SET NOCOUNT ON;  
 BEGIN TRANSACTION CHRONOS;   
  
 --Acción  
 DECLARE @beforeChronos AS TABLE  
 (  
  chr_chrono_id INT NOT NULL  
 );  
  
 DECLARE @afterChronos AS TABLE  
 (  
  chr_chrono_id INT NOT NULL  
 );  
  
	DECLARE @previousProviderId INT = -1 
	DECLARE @executionDate DATETIME;

	SET @executionDate = GETUTCDATE();
   
   DECLARE @val int
   SELECT @val = COUNT(1) FROM AFLS_WORKORDER_PROVIDER_LOG WHERE WorkId = @workOrderId
   IF @val != 1
   BEGIN
   SET @previousProviderId  = (SELECT TOP 1 ProviderId From (SELECT Top 2 * FROM AFLS_WORKORDER_PROVIDER_LOG WHERE WorkId = @workOrderId ORDER BY Id DESC) x ORDER BY Id);  
   END
   
 
  
 --Manejo de cronometros para el proveedor   
 IF @previousProviderId <> @i_provider_id  
 BEGIN  
   IF @previousProviderId IS NOT NULL   
   BEGIN  
    --Detiene todos los cronometros del proveedor anterior     
    INSERT INTO [dbo].[AFLS_CHRONOS_EVENTS]        
	  ([chevent_itemtime_id] ,[chevent_doc_id] ,[chevent_doc_status] ,[chevent_status] ,[chevent_startdate],[chevent_chronos_refresh], [chevent_providerid])       
    SELECT chresult_itemtime_id, @workOrderId, @new_parent_state, 2, @executionDate, 1, chresult_providerid  
    FROM AFLS_CHRONOS_RESULTS  
    WHERE chresult_item_id = @workOrderId AND chresult_providerid = @previousProviderId AND chresult_status = 1  
  
    UPDATE AFLS_CHRONOS_RESULTS SET chresult_status = 2   
    WHERE chresult_item_id = @workOrderId AND chresult_providerid = @previousProviderId AND chresult_status = 1  
   END  
  
   --Inicializa los cronometros del nuevo proveedor solo si no existen  
   IF  @i_provider_id IS NOT NULL AND @i_provider_id <> -1 AND NOT EXISTS(SELECT  chresult_id FROM AFLS_CHRONOS_RESULTS WHERE chresult_item_id = @workOrderId AND chresult_providerid = @i_provider_id)   
   BEGIN  
    INSERT INTO [dbo].[AFLS_CHRONOS_RESULTS]  
    ([chresult_item_id],[chresult_itemtime_id],[chresult_estimateddate],[chresult_estimatedtime],[chresult_startdate]  
      ,[chresult_enddate],[chresult_enddatetime],[chresult_lastshot],[chresult_currenttime],[chresult_currentprogress],[chresult_status],[chresult_calendarid]  
      ,[chresult_complies],[chresult_agreetype],[chresult_providerid])  
      SELECT   
    [chresult_item_id],[chresult_itemtime_id],NULL,NULL,NULL  
      ,NULL,NULL,NULL,NULL,NULL,0,[chresult_calendarid]  
      ,NULL,NULL,@i_provider_id  
      FROM [dbo].[AFLS_CHRONOS_RESULTS] WHERE chresult_item_id = @workOrderId AND chresult_providerid IS NULL;  
   END  
 END  
  
   
  
 DECLARE @targets TABLE(TargetId INT NOT NULL);  
 IF(@b_only_provider = 0)  
 BEGIN  
  INSERT INTO @targets (TargetId) VALUES (-1);  
 END  
  
 IF(@i_provider_id IS NOT NULL)  
 BEGIN  
  INSERT INTO @targets (TargetId) VALUES (@i_provider_id);  
 END  
  
 DECLARE @AuxProviderId INT = NULL   
 SET  @AuxProviderId = (SELECT TOP 1 TargetId FROM @targets ORDER BY TargetId);  
    
 WHILE  @AuxProviderId IS NOT NULL  
 BEGIN  
  
  DECLARE @targetProvider INT = NULL   
  SET @targetProvider = CASE WHEN @AuxProviderId = -1 THEN NULL ELSE @AuxProviderId END;   
  
  --Cronometros anteriores  
  INSERT INTO @beforeChronos (chr_chrono_id)  
  SELECT chresult_itemtime_id chresult_itemtime_id FROM AFLS_CHRONOS_RESULTS_REPORT WHERE chresult_item_id = @workOrderId AND chresult_status = 1  AND chresult_providerid = @targetProvider  
  
  --Cronometros nuevos  
  INSERT INTO @afterChronos (chr_chrono_id)  
  SELECT timeId FROM [dbo].[AFW_STATEMACHINE_STATES_BY_ITEM_TIMES] WHERE stateId = @new_sub_state   
  
  --Chronos to Start  
  DECLARE @chronosToStart AS TABLE  
  (  
   chr_chrono_id INT NOT NULL  
  );  
  INSERT INTO @chronosToStart (chr_chrono_id)  
  SELECT * FROM @afterChronos  
  EXCEPT  
  SELECT * FROM @beforeChronos  
  
  ----Chronos to Stop  
  DECLARE @chronosToStop AS TABLE  
  (  
   chr_chrono_id INT NOT NULL  
  );  
  INSERT INTO @chronosToStop (chr_chrono_id)  
  SELECT * FROM @beforeChronos  
  EXCEPT   
  SELECT * FROM @afterChronos    
  
   --Inicio de cronometros para el proveedor  


   DECLARE @Validator int = 0

   SELECT @Validator = COUNT(0) 
   FROM [dbo].[AFLS_CHRONOS_EVENTS] CE
   INNER JOIN  @chronosToStart CS ON CE.chevent_itemtime_id = chr_chrono_id
   WHERE CE.[chevent_doc_id] = @workOrderId
   AND (ISNULL(@targetProvider,-1) = ISNULL(chevent_providerid,-1) OR chevent_providerid = @targetProvider)

   IF @Validator = 0
   BEGIN
   INSERT INTO [dbo].[AFLS_CHRONOS_EVENTS]  
           ([chevent_itemtime_id] ,[chevent_doc_id] ,[chevent_doc_status] ,[chevent_status] ,[chevent_startdate],[chevent_chronos_refresh], [chevent_providerid])       
   SELECT chr_chrono_id, @workOrderId, @new_parent_state, 1, @executionDate, 1, @targetProvider   
   FROM @chronosToStart  
   END
  
   UPDATE AFLS_CHRONOS_RESULTS SET chresult_status = 1 WHERE chresult_item_id = @workOrderId AND chresult_providerid = @targetProvider AND chresult_itemtime_id IN (SELECT chr_chrono_id FROM @chronosToStart)  
   --Fin de inicio de cronometros    
  
   DELETE FROM [dbo].[AFLS_CHRONOS_ALARMS] WHERE chalarm_docid = @workOrderId AND chalarm_itemtime_id IN (SELECT chr_chrono_id FROM @chronosToStop) AND chalarm_provider_id = @targetProvider AND chalarm_status = 1  
  
  SELECT @AuxProviderId = (SELECT TOP 1 TargetId FROM @targets WHERE TargetId > @AuxProviderId ORDER BY TargetId)  
 END    
   
  
 COMMIT TRANSACTION CHRONOS;    
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_WORFLOW_ACTION_COST]...';


GO

/*=======================================================================*/
/*  Archivo:            PRC_AFLS_WORFLOW_ACTION_COST.sql              */
/*  Stored procedure:   PRC_AFLS_WORFLOW_ACTION_COST	                 */
/*  Producto:           Aranda FIELD SERVICE                             */
/*  Disenado por:       Aranda Software Corporation                      */
/*  Fecha de escritura: [19/05/2016]                                     */
/*=======================================================================*/
/*                          IMPORTANTE                                   */
/*  ESTE PROGRAMA ES PROPIEDAD DE "ARANDA SOFTWARE CORPORATION".         */
/*  HA SIDO DISEÑADO BAJO EL AMBIENTE OPERATIVO DE ARANDA.               */
/*  DESARROLLADO POR "ARANDA SOFTWARE CORPORATION - COLOMBIA"            */
/*  SU USO NO AUTORIZADO QUEDA EXPRESAMENTE PROHIBIDO ASI COMO CUALQUIER */
/*  ALTERACION O AGREGADO HECHO POR ALGUNO DE SUS USUARIOS SIN EL DEBIDO */
/*  CONSENTIMIENTO POR ESCRITO DE LA GERENCIA GENERAL DE ARANDA O SU     */
/*  REPRESENTANTE.                                                       */
/*=======================================================================*/
/* OBJETIVO: Permite ejecutar la acción de calculo de costos */
/*=======================================================================*/
/*                          MODIFICACIONES                               */
/*  FECHA       AUTOR          RAZON                                     */
/*  ----------  -------------- ----------------------------------------*/
/*	19/05/2016	Diego Buitrago			Emisión Inicial			         */
/*=======================================================================*/
CREATE PROCEDURE  PRC_AFLS_WORFLOW_ACTION_COST
(	-- Add the parameters for the stored procedure here
	@workOrderId INT,
	@work_attendant INT,
	@execution_date DATETIME
)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
	BEGIN TRANSACTION COST; 

    DECLARE @last_trace_state_id INT = 0;
	DECLARE @last_trace_date DATETIME = NULL;

	SELECT TOP 1  @last_trace_state_id = [stc_state_id], @last_trace_date = [stc_date]
	FROM [dbo].[AFW_STATEMACHINE_TRACE_CONTEXT]
	WHERE stc_context_id = @workOrderId
	ORDER BY stc_date;

	DECLARE @last_trace_reference_app_id INT = 0;
	SELECT TOP 1 @last_trace_reference_app_id = CAST(st_reference_app_id AS INT)
	FROM [dbo].[AFW_STATEMACHINE_STATES]
	WHERE st_id = @last_trace_state_id;

	DECLARE @parameters VARCHAR(MAX) = '';

	SELECT TOP 1 @parameters = actyst_parameters
	FROM [dbo].[AFW_STATEMACHINE_ACTION_TYPE_STATE]
	WHERE actyst_state_id = @last_trace_state_id AND actyst_action_type_id = 3

	IF @parameters IS NOT NULL AND @parameters <> ''
	BEGIN

		DECLARE @costTypesToApply AS TABLE
		(
			cost_type VARCHAR(250) NOT NULL,
			cost_apply VARCHAR(10) NOT NULL
		);

		BEGIN TRY	
			INSERT INTO @costTypesToApply (cost_type, cost_apply)
			Select [NAME], StringValue from dbo.parseJSON(@parameters)
			WHERE [NAME] IN ('displacement', 'specialist');
		END TRY
		BEGIN CATCH		
		END CATCH;	
	
		DECLARE @travelDistance DECIMAL(32,2) = 0;
		DECLARE @travelCost DECIMAL(32,2) = 0;
		DECLARE @specialistTime DECIMAL(32,2) = 0;
		DECLARE @specialistCost DECIMAL(32,2) = 0;
		DECLARE @saveCost BIT = 0;

		IF((SELECT TOP 1 cost_apply FROM @costTypesToApply WHERE cost_type = 'displacement') = 'true')
		BEGIN
		
			DECLARE @CostByKilometer INT = 0;
			SELECT TOP 1 @CostByKilometer = VT.vehi_cost_by_kilometer
			FROM AFLS_USERS_SPECIALISTS US
			JOIN AFLS_VEHICLE_TYPE VT ON VT.vehi_id = US.vehi_id;

			SELECT @travelDistance = ISNULL(CAST((SUM(LO.loct_distance_from_last)/1000) AS DECIMAL(32,2)),0) 
			FROM AFLS_LOCATIONS LO
			WHERE LO.user_id = @work_attendant 
			AND LO.loct_date >= @last_trace_date AND LO.loct_date <= @execution_date
			AND LO.loct_distance_from_last IS NOT NULL

			SET @travelCost = CAST((@travelDistance * @CostByKilometer) AS DECIMAL(32,2));

			SET @saveCost = 1;

		END

		IF((SELECT TOP 1 cost_apply FROM @costTypesToApply WHERE cost_type = 'specialist') = 'true')
		BEGIN
		
			DECLARE @CostPosition INT = 0;
			SELECT TOP 1 @CostPosition = ISNULL(CAST(WP.posi_cost/60 AS DECIMAL(32,2)),0)
			FROM AFLS_USERS_SPECIALISTS US		
			JOIN AFLS_WORK_POSITIONS WP ON US.posi_id = WP.posi_id
			WHERE US.user_id = @work_attendant

			SET @specialistTime = CAST((DATEDIFF(MINUTE, @last_trace_date , @execution_date)) AS DECIMAL(32,2));

			SET @specialistCost = CAST((@specialistTime * @CostPosition) AS DECIMAL(32,2));

			SET @saveCost = 1;

		END

		IF(@saveCost = 1)
		BEGIN		

		INSERT INTO [dbo].[AFLS_WORKORDERS_STATE_COST]
				([awsc_work_id],[awsc_status_id],[awsc_substatus_id],[awsc_startdate],[awsc_enddate],[awsc_specialistid],[awsc_travel_kilometers],[awsc_travel_cost],[awsc_specialist_time],[awsc_specialist_cost])
			VALUES
				(@workOrderId
				,@last_trace_reference_app_id
				,@last_trace_state_id
				,@last_trace_date
				,@execution_date
				,@work_attendant
				,@travelDistance
				,@travelCost
				,@specialistTime
				,@specialistCost);

		END

	END

	COMMIT TRANSACTION COST;  
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFW_ADDITIONAL_FIELD_VALUES]...';


GO
CREATE PROCEDURE PRC_AFW_ADDITIONAL_FIELD_VALUES
    --Recibe un array separado por coma con los id de los items. Ej: '1,5,41,23' 
    @conceptId int   
AS  
--TODO:SELECT 
--		F.Id						AS Id,
--		F.Code						AS Code,
--		F.ConceptId					AS ConceptId,
--		F.Description				AS Description,
--		F.HelpMessage				AS HelpMessage,
--		F.FormatValidator			AS FormatValidator,
--		F.IsEditable				AS IsEditable,
--		F.IsRequired				AS IsRequired,
--		F.IsVisible					AS IsVisible,
--		F.KeepHistory				AS KeepHistory,
--		F.Name						AS Name,
--		F.Label						AS Label,
--		F.[Order]					AS [Order],
--		F.ParentId					AS ParentId,
--		F.Status					AS Status,
--		F.TypeId					AS TypeId,
--		0							AS ValueId,
--		0							AS ValueItemId,
--		NULL						AS ValueLastUpdate,
--		NULL						AS ValueDateTime,
--		0							AS ValueInteger,
--		NULL						AS ValueText,
--		dbo.FUN_AFW_ADDITIONAL_FIELD_LOOKUP(F.Id) AS Options		
--FROM 
--		AFW_ADDITIONAL_FIELD		AS F
				
--WHERE
--	F.ConceptId = @conceptId
GO
PRINT N'Creating Procedure [dbo].[PRC_AFW_ADDITIONAL_FIELD_VALUES_BY_ITEMS]...';


GO
CREATE PROCEDURE PRC_AFW_ADDITIONAL_FIELD_VALUES_BY_ITEMS
    --Recibe un array separado por coma con los id de los items. Ej: '1,5,41,23'
	@itemId varchar(MAX),   
    @conceptId int   
AS  
--TODO: SELECT 
--		F.Id						AS Id,
--		F.Code						AS Code,
--		F.ConceptId					AS ConceptId,
--		F.Description				AS Description,
--		F.HelpMessage				AS HelpMessage,
--		F.FormatValidator			AS FormatValidator,
--		F.IsEditable				AS IsEditable,
--		F.IsRequired				AS IsRequired,
--		F.IsVisible					AS IsVisible,
--		F.KeepHistory				AS KeepHistory,
--		F.Label						AS Label,
--		F.Name						AS Name,
--		F.[Order]					AS [Order],
--		F.ParentId					AS ParentId,
--		F.Status					AS Status,
--		F.TypeId					AS TypeId,
--		FV.Id						AS ValueId,
--		FV.ItemId					AS ValueItemId,
--		FV.LastUpdate				AS ValueLastUpdate,
--		FV.ValueDateTime			AS ValueDateTime,
--		FV.ValueInteger				AS ValueInteger,
--		FV.ValueText				AS ValueText,
--		dbo.FUN_AFW_ADDITIONAL_FIELD_LOOKUP(F.Id) AS Options		
--FROM 
--		AFW_ADDITIONAL_FIELD		AS F								LEFT JOIN
--		AFW_ADDITIONAL_FIELD_VALUE	AS FV		ON FV.FieldId = F.Id								
				
--WHERE
--	F.ConceptId = @conceptId 		
--	AND 	
--	FV.ItemId in (select * from VarcharArrayToIntTable(@itemId))
GO
PRINT N'Creating Procedure [dbo].[PRC_AFW_DIM_DATE]...';


GO
CREATE PROCEDURE PRC_AFW_DIM_DATE (
    @i_start_date DATE
) AS
BEGIN
    DECLARE
        @v_current_date DATE,
        @v_last_date DATE;
    
    SET @v_current_date = @i_start_date;
    SET @v_last_date = DATEFROMPARTS(YEAR(@v_current_date), 12, 31);
	IF NOT EXISTS (SELECT 1 FROM AFW_DIM_DATE WHERE value = @v_last_date)
	BEGIN
		WHILE @v_current_date <= @v_last_date
		BEGIN
			IF NOT EXISTS (SELECT 1 FROM AFW_DIM_DATE WHERE value = @v_current_date)
			BEGIN
				INSERT INTO AFW_DIM_DATE (
					[value],
					[year],
					[month],
					[day]
				) VALUES (
					@v_current_date,
					YEAR(@v_current_date),
					MONTH(@v_current_date),
					DAY(@v_current_date)
				);
			END;

			SET @v_current_date = DATEADD(DD, 1, @v_current_date);
		END;
	END;
END;
GO
PRINT N'Creating Procedure [dbo].[PRC_AFW_HIERARCHY_GROUPS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFW_HIERARCHY_GROUPS]
(
	@i_operation NVARCHAR(20),
	@i_groupid   INT       
)
AS
BEGIN

    /*=========================================================================================================*/
	/* RELACION DE PADRES, DADO UN GRUPO DE ORIGEN DERIVAR SUS POSIBLES PARENTS                                */
	/*=========================================================================================================*/
	IF @i_operation = 'P'
	BEGIN
		--PARENTS
		WITH [RecursiveTree] AS
		(
			SELECT	[grou_id], 
					[grou_parent]
			FROM	[AFW_GROUPS] 
			WHERE	[grou_id] = @i_groupid
			UNION   ALL
			SELECT	[Parent].[grou_id],
					[Parent].[grou_parent]
			FROM	[AFW_GROUPS] AS [Parent] 
					JOIN [RecursiveTree] ON [Parent].[grou_id] = [RecursiveTree].[grou_parent]
		)
		SELECT [grou_id] FROM [RecursiveTree]
		
	END

	/*=========================================================================================================*/
	/* RELACION DE HIJOS, DADO UN GRUPO DE ORIGEN DERIVAR SUS POSIBLES DESCENDIENTES                           */
	/*=========================================================================================================*/
	IF @i_operation = 'C'
	BEGIN
			--CHILDS
			WITH [RecursiveTree] 
			AS (
				-- Anchor
				SELECT	[grou_id]
				FROM	[AFW_GROUPS]
				WHERE	[grou_id] = @i_groupid
				UNION ALL
				-- Recursive Member
				SELECT	[Child].[grou_id]
				FROM	[AFW_GROUPS] AS [Child]
						JOIN [RecursiveTree] AS [Parent] ON [Child].[grou_parent] = [Parent].[grou_id]
			)
			SELECT [grou_id] 
			FROM [RecursiveTree]

	END

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFW_PAGINATE_QUERY]...';


GO
CREATE PROCEDURE [dbo].[PRC_AFW_PAGINATE_QUERY]
(
	@i_select_clause                VARCHAR(MAX),
	@i_from_clause                  VARCHAR(MAX),
	@i_where_clause                 VARCHAR(MAX),
	@i_order_clause                 VARCHAR(MAX),
	@i_primary_key                  VARCHAR(MAX),
	@i_lower_bound                  INT,
	@i_upper_bound					INT,
	@o_total_rows                   INT OUTPUT
) AS



-- Variables usadas para el manejo de las sentencias SQL
DECLARE
	@v_count_sentence               NVARCHAR(MAX),
	@v_query_sentence               NVARCHAR(MAX),
	@v_base_sentence                NVARCHAR(MAX),
	@v_sentence                     NVARCHAR(MAX)
   
-- Variables usadas para el registro de log de tiempos de ejecucion y errores
DECLARE
    @v_sql_cod                     INT,
    @v_sql_msg                     VARCHAR(4000)   
   
-- Variables usadas para la ejecucion dinamica de sentenicias SQL
DECLARE
   @v_parameters                   NVARCHAR(500),
   @v_where_clause                 VARCHAR(MAX),
   @v_order_clause                 VARCHAR(MAX),
   @v_lower_bound                  INT,
   @v_higher_bound                 INT
   
BEGIN
--Tabla temporal para almacenar los resultados completos de la consulta
	CREATE TABLE #table_select
	(
		ID			INT,
		ROW_NUM		INT PRIMARY KEY
	)
	-- Inicia varibles usadas para calcular los tiempos de ejecucion
	SET NOCOUNT ON;
	SET @v_parameters = N'@v_count INT OUTPUT'
	SET @v_lower_bound  = @i_lower_bound;
    SET @v_higher_bound = @i_upper_bound;

   
   -- MODELO BASICO DE LA SENTENCIA
	SET @v_base_sentence =	  'INSERT INTO #table_select' + CHAR(10)
							+ ' SELECT ' + @i_primary_key + CHAR(10)
							+ ' ,ROW_NUMBER() OVER({ORDER_CLAUSE}) row_num' + CHAR(10)
							+ @i_from_clause + CHAR(10)
							+ ' {WHERE_CLAUSE} ' + CHAR(10)
							+ ' {ORDER_CLAUSE} ' + CHAR(10)
	
	-- Remplaza los tokens por las clausulas Where y Order correspondientes 
	SET @v_base_sentence = REPLACE(@v_base_sentence, '{ORDER_CLAUSE}', @i_order_clause);
	SET @v_base_sentence = REPLACE(@v_base_sentence, '{WHERE_CLAUSE}', @i_where_clause);

	-- Ejecuta la sentencia para insertar los registros en la variable de tipo Table
	EXECUTE sp_executesql @v_base_sentence	

   
	/*======================================*/
	/* ARMA SENTENCIA PARA CONTAR REGISTROS */
	/*======================================*/
	SET @v_count_sentence = 'SELECT @v_count = COUNT(*)' + CHAR(10)
	SET @v_count_sentence = @v_count_sentence + ' FROM #table_select' + CHAR(10)


	/*=======================================================================================*/
	/* EJECUTA LA SENTENCIA QUE CUENTA LOS REGISTROS QUE CUMPLEN CON EL CRITERIO DE BUSQUEDA */
	/*=======================================================================================*/
	EXECUTE sp_executesql @v_count_sentence, @v_parameters, @v_count = @o_total_rows OUTPUT;


	--Paginacion para todos los registros
	IF (@v_higher_bound  IS NULL OR @v_higher_bound = 0)
	BEGIN
        SET @v_lower_bound = 1
        SET @v_higher_bound = @o_total_rows
    END

   /*=============================================*/
   /* ARMA SENTENCIA PARA CONSULTAR LOS REGISTROS */
   /*=============================================*/

	SET @v_query_sentence =	@i_select_clause +		CHAR(10)
							+ @i_from_clause +	CHAR(10)
							+ ' INNER JOIN #table_select' + CHAR(10)
							+ 'ON (' + @i_primary_key + ' = #table_select.ID)' + CHAR(10)
							+ 'WHERE #table_select.row_num between ' + CONVERT(VARCHAR, @v_lower_bound) + CHAR(10)
							+ 'AND ' +  CONVERT(VARCHAR, @v_higher_bound) + CHAR(10)
							+ 'order by row_num'
   
	/*============================================================================================================*/
	/* EJECUTA LA SENTENCIA QUE EXTRAE LOS REGISTROS DE ACUERDO AL CRITERIO DE BUSQUEDA Y LAS FILAS ESPECIFICADAS */
	/*============================================================================================================*/
	EXECUTE sp_executesql @v_query_sentence
	
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_ALLDEVICELISTMIN]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_ALLDEVICELISTMIN]
	@i_pageindex            INT,
	@i_pagesize             INT,
	@i_querycondition       NVARCHAR(MAX)		= NULL,
	
	/*Filtros de Busqueda*/
	/*plataforma*/
	@i_isApple              BIT,
	@i_isAndroid            BIT,
	@i_isWindows            BIT,
	@i_isUnknown            BIT,	

	/*estado*/
	@i_isRegistered         BIT,
	@i_isUnrolled           BIT,
	@i_isPending            BIT,

	/*politica*/
	@i_policyId				INT,

	/*Banderas*/
	@i_kioskFlag			BIT = NULL,
	@i_metricsFlag			BIT = NULL,
	@i_healthDeviceFlag		BIT = NULL,

	@o_row_count            INT					OUTPUT

AS
BEGIN

	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @seachQuery     VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[INDX] 
		, [DeviceId]
		, [DeviceName]'
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_ALLDEVICELISTMIN] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @seachQuery = ' WHERE 1 = 1 ';

	--No se muestran dispositivos marcados como duplicados
	SET @whereClause =' UDI NOT LIKE (''$$%'') '

	-- Agregar cadena de búsqueda si es necesario
	IF @i_querycondition IS NOT NULL AND  LEN(@i_querycondition)>0
	BEGIN
		SET @whereClause = @whereClause + ' AND (DeviceName LIKE ''%' + @i_querycondition + '%'') '
			
	END
	
	-- Agregar filtro por plataforma si es necesario
	IF (@i_isAndroid <> @i_isApple) OR (@i_isAndroid <> @i_isUnknown) OR (@i_isAndroid <> @i_isWindows)
	BEGIN
		SET @whereClause = @whereClause + ' AND PlatformId IN (';
		
		IF(@i_isAndroid = 'True')
			SET @whereClause = @whereClause + '1,';

		IF(@i_isWindows = 'True')
			SET @whereClause = @whereClause + '3,';
		
		IF(@i_isApple = 'True')
			SET @whereClause = @whereClause + '4,';

		IF(@i_isUnknown = 'True')
			SET @whereClause = @whereClause + '0,';
		
		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = @whereClause + ')';
	END


	-- Agregar filtro por estado si es necesario
	IF (@i_isRegistered <> @i_isUnrolled) OR (@i_isRegistered <> @i_isPending)
	BEGIN
		SET @whereClause = @whereClause + ' AND DeviceStatus IN (';

		IF(@i_isRegistered = 'True')
			SET @whereClause = @whereClause + '0,';

		IF(@i_isPending = 'True')
			SET @whereClause = @whereClause + '1,';

		IF(@i_isUnrolled = 'True')
			SET @whereClause = @whereClause + '2,';

		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = @whereClause + ')';
	END

	-- Agregar filtro por política
	IF(@i_policyId <> 0)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND PolicyId = ', @i_policyId)
	END

	-- Agregar filtros de banderas
	IF(@i_kioskFlag IS NOT NULL)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND isInKiosk = ', @i_kioskFlag);
	END

	IF(@i_metricsFlag IS NOT NULL)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND metricsEnabled = ', @i_metricsFlag);
	END

	IF(@i_healthDeviceFlag IS NOT NULL)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND healthDeviceEnabled = ', @i_healthDeviceFlag);
	END

	SET @seachQuery = @seachQuery + ' AND ' + @whereClause

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY DeviceName ASC';

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'INDX';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@seachQuery,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_ALLEXPENSEPLANSLIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_ALLEXPENSEPLANSLIST]
	@i_pageIndex		INT,
	@i_pageSize			INT,
	
	/*Filtros de Busqueda*/
	/*compartido*/
	@i_isShared			bit,
	@i_isNoShared		bit,
	@i_searchText		NVARCHAR(MAX)		= NULL,

	@i_orderField		NVARCHAR(max)		= NULL,
	@i_orderType		NVARCHAR(max)		= NULL,
	@o_row_count		INT					OUTPUT
AS
BEGIN

	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[planId]
		, [billingCycleDate]
		, [correctionFactor]
		, [costUnitData]
		, [costUnitVoice]
		, [createdDate]
		, [currencyId]
		, [dataSize]
		, [planDescription]
		, [exceptions]
		, [measureDataSize]
		, [measuerVoiceSize]
		, [planName]
		, [roamingCostUnitData]
		, [roamingCostUnitVoice]
		, [roamingDataSize]
		, [roamingVoiceSize]
		, [isShared]
		, [userId]
		, [fullUserName]
		, [voiceSize]
		, [carrierName]
		, [consumedLocalData]
		, [consumedLocalVoice]
		, [consumedRoamingData]
		, [consumedRoamingVoice]
		, [modificationDate]
		, [ruleSetExpensePlanId]
		, [consumedLocalVoiceCost]
		, [consumedRoamingVoiceCost]'		
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_ALLEXPENSEPLANS] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @whereClause = ' WHERE 1 = 1 ';

	-- Agregar filtro por estado si es necesario
	IF (@i_isShared <> @i_isNoShared)
	BEGIN
		IF(@i_isShared = 'True' AND @i_isNoShared = 'False')
			SET @whereClause = CONCAT(@whereClause, ' AND isShared = ''True'' ');

		IF(@i_isShared = 'False' AND @i_isNoShared = 'True')
			SET @whereClause = CONCAT(@whereClause, ' AND isShared = ''False'' ');
	END

	--Agregar filtro por nombre del proyecto si es necesario
	IF @i_searchText IS NOT NULL AND LEN(@i_searchText) > 0
		SET @whereClause = CONCAT(@whereClause, ' AND planName LIKE ''%', @i_searchText , '%'' ')

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = CONCAT(' ORDER BY ', @i_orderField, ' ', @i_orderType);

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'planId';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageIndex + 1;
	SET @upperBound = @lowerBound + @i_pageSize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_ALLMANPROJECTSLIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_ALLMANPROJECTSLIST]
	@i_pageIndex		INT,
	@i_pageSize			INT,
	
	/*Filtros de Busqueda*/
	/*estado*/
	@i_isScheduled		bit,
	@i_isRunning		bit,
	@i_isCompleted		bit,
	@i_isCancelled		bit,
	@i_isCreating		bit,
	@i_searchText		NVARCHAR(MAX)		= NULL,

	@i_orderField		NVARCHAR(max)		= NULL,
	@i_orderType		NVARCHAR(max)		= NULL,
	@o_row_count		INT					OUTPUT
AS
BEGIN

	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[projectId] 
		, [projectName]
		, [startDate]
		, [finishDate]
		, [statusId]
		, [userId]
		, [statusName]
		, [fullUserName]
		, [createdDate]
		, [actionName]'		
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_ALLMANPROJECTS] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @whereClause = ' WHERE 1 = 1 ';

	-- Agregar filtro por estado si es necesario
	IF (@i_isScheduled <> @i_isRunning) OR (@i_isScheduled <> @i_isCompleted) OR (@i_isScheduled <> @i_isCancelled) OR (@i_isScheduled <> @i_isCreating)
	BEGIN
		SET @whereClause = @whereClause + ' AND statusId IN (';
		
		IF(@i_isScheduled = 'True')
			SET @whereClause = @whereClause + '1,';

		IF(@i_isRunning = 'True')
			SET @whereClause = @whereClause + '2,';

		IF(@i_isCompleted = 'True')
			SET @whereClause = @whereClause + '3,';		

		IF(@i_isCancelled = 'True')
			SET @whereClause = @whereClause + '4,';

		IF(@i_isCreating = 'True')
			SET @whereClause = @whereClause + '5,';
		
		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = @whereClause + ')';
	END

	--Agregar filtro por nombre del proyecto si es necesario
	IF @i_searchText IS NOT NULL AND LEN(@i_searchText) > 0
		SET @whereClause = @whereClause + ' AND projectName LIKE ''%' + @i_searchText + '%'' '

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY ' + @i_orderField + ' ' + @i_orderType;

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'projectId';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageIndex + 1;
	SET @upperBound = @lowerBound + @i_pageSize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_APPLICATION_METRICS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_APPLICATION_METRICS]
	@i_appid				INT,
	@i_mode					VARCHAR(10),
	@i_searchid				INT				= NULL,
	@i_datestart			INT				= NULL,
	@i_dateend				INT				= NULL,
	@o_row_count			INT				OUTPUT,
	@o_total_consumption	BIGINT			OUTPUT,
	@o_total_time			INT				OUTPUT

AS
BEGIN 

	SELECT 
		@o_row_count = COUNT(DISTINCT devId) 
	FROM 
		[VIEW_AMDM_APPLICATION_METRICS]  
	WHERE 
		appId = @i_appid 
		AND ( ISNULL(@i_datestart, 0) = 0 OR dateId >= @i_datestart) 
		AND (ISNULL(@i_dateend, 0) = 0 OR dateId <= @i_dateend)
		AND 
			CASE 
				WHEN @i_mode = 'all' THEN 1
				WHEN @i_mode = 'one' THEN
					CASE 
						WHEN ISNULL(@i_searchid, 0) = 0 THEN 1
						ELSE
							CASE 
								WHEN devId = @i_searchid THEN 1
								ELSE 0
							END
					END
				WHEN @i_mode = 'group' THEN
					CASE 
						WHEN ISNULL(@i_searchid, 0) = 0 THEN 1
						ELSE
							CASE 
								WHEN groupId = @i_searchid THEN 1
								ELSE 0
							END
					END
				ELSE 0 
			END = 1;

	SELECT
		@o_total_consumption = SUM([dataConsumption]),
        @o_total_time = SUM([useTime])
	FROM
	(
		SELECT
			DISTINCT
			SUM([dataConsumption]) AS dataConsumption,
			SUM([useTime]) AS useTime
		FROM 
			[VIEW_AMDM_APPLICATION_METRICS]  
		WHERE 
			appId = @i_appid 
			AND ( ISNULL(@i_datestart, 0) = 0 OR dateId >= @i_datestart) 
			AND (ISNULL(@i_dateend, 0) = 0 OR dateId <= @i_dateend)
			AND 
				CASE 
					WHEN @i_mode = 'all' THEN 1
					WHEN @i_mode = 'one' THEN
						CASE 
							WHEN ISNULL(@i_searchid, 0) = 0 THEN 1
							ELSE
								CASE 
									WHEN devId = @i_searchid THEN 1
									ELSE 0
								END
						END
					WHEN @i_mode = 'group' THEN
						CASE 
							WHEN ISNULL(@i_searchid, 0) = 0 THEN 1
							ELSE
								CASE 
									WHEN groupId = @i_searchid THEN 1
									ELSE 0
								END
						END
					ELSE 0 
				END = 1
		GROUP BY devId, groupId
	) met;

    SELECT 
		DISTINCT
        TOP 30
        [appId],
        [devId],
        [devName],
        [userName],
        SUM([dataConsumption]) AS dataConsumption,
        SUM([useTime]) AS useTime
    FROM 
        [VIEW_AMDM_APPLICATION_METRICS]  
    WHERE appId = @i_appid 
        AND ( ISNULL(@i_datestart, 0) = 0 OR dateId >= @i_datestart) 
        AND (ISNULL(@i_dateend, 0) = 0 OR dateId <= @i_dateend)
        AND 
        CASE 
            WHEN @i_mode = 'all' THEN 1
            WHEN @i_mode = 'one' THEN
				CASE 
					WHEN ISNULL(@i_searchid, 0) = 0 THEN 1
					ELSE
						CASE 
							WHEN devId = @i_searchid THEN 1
							ELSE 0
						END
				END
            WHEN @i_mode = 'group' THEN
				CASE 
					WHEN ISNULL(@i_searchid, 0) = 0 THEN 1
					ELSE
						CASE 
							WHEN groupId = @i_searchid THEN 1
							ELSE 0
						END
				END
            ELSE 0 
        END = 1
    GROUP BY 
		[appId], [devId], [devName], [userName], [groupId] 
	ORDER BY 
		dataConsumption DESC, useTime DESC; 
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_APPLICATIONCATEGORIES]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_APPLICATIONCATEGORIES]
(
    @i_pageIndex	INT,
    @i_pageSize		INT,
 	@i_searchString NVARCHAR(max),
	@i_orderField	NVARCHAR(max),
	@i_orderType	NVARCHAR(max),
	@o_rowCount		INT					OUTPUT

)
AS 
BEGIN

    DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @orderField		VARCHAR(64)
	DECLARE @orderType		VARCHAR(8)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT

SET NOCOUNT ON;

----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------

SET @selectClause = 'SELECT 
      cat.[id]
      ,cat.[name]
      ,cat.[description] '
  

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------

SET @fromClause = ' FROM [AMDM_APPCATEGORY] cat '
				

----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
			
SET @whereClause = ' WHERE 1 = 1 '

IF @i_searchString IS NOT NULL AND  LEN(@i_searchString)>0
BEGIN
   SET @whereClause = @whereClause + ' AND cat.[name] LIKE ''%'	+ @i_searchString + '%'' OR cat.[description] LIKE ''%'	+ @i_searchString + '%'' '  
END


IF @i_orderField = 'Description'
	BEGIN
		SET @orderField = 'cat.[description]'
	END
ELSE
	BEGIN
		SET @orderField = 'cat.[name]'
	END
  
IF(@i_orderType = 'desc')
	BEGIN
		SET @orderType = 'DESC'
	END
ELSE
	BEGIN
		SET @orderType = 'ASC'
	END

----------------------------------------------------------------
-- ORDER
----------------------------------------------------------------

SET @orderClause = ' ORDER BY ' + @orderField + ' ' + @orderType;

----------------------------------------------------------------
-- PRIMARY KEY
----------------------------------------------------------------

SET @primaryKey = 'cat.[id]';

----------------------------------------------------------------
-- LOWER Y UPPER BOUND
----------------------------------------------------------------

SET @lowerBound = @i_pageIndex + 1;
SET @upperBound = @lowerBound + @i_pageSize - 1


----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_rowCount OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_APPLICATIONLIST]...';


GO

CREATE PROCEDURE [dbo].[PRC_AMDM_APPLICATIONLIST] 
	@i_pageindex		INT,
	@i_pagesize			INT,
	@i_querycondition	NVARCHAR(MAX)		= NULL,
	@i_languague		NVARCHAR(MAX)		= 'en',
	
	/*Filtros de Busqueda*/
	/*plataforma*/
	@i_isApple			BIT,
	@i_isAndroid		BIT,
	@i_isWindows        BIT,
	
	/*Fabricación*/
	@i_isCorporated		BIT,
	@i_isStore			BIT,

	/*Origen*/
	@i_IsSystem			BIT,
	@i_IsInstalled		BIT,
	

	/*Google Android for Work*/
	@i_isPublic		    BIT,
	@i_isNotApproved    BIT,
	@i_isPrivate		BIT,

	/*Aplicaciones productivas*/
	@i_productive		BIT,
	@i_notProductive	BIT,
	@i_categoryIds		NVARCHAR(MAX)		= NULL,
	
	@i_orderfield		NVARCHAR(MAX)		= NULL,
	@i_ordertype		NVARCHAR(MAX)		= NULL,
	@o_row_count		INT				 OUTPUT
AS
BEGIN


	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 'SELECT
	[INDX]
	,[packageName]
    ,[nameApp]
    ,[avgRank]
    ,[platformId]
    ,[deviceCount]
    ,[version]
    ,[description]
    ,[icon]
    ,[isCorporate]
    ,[IOStrackId]
    ,[Developer]
    ,[typeApp]
    ,[lastUpdate]
    ,[nextUpdate]
    ,[price]
    ,[isProcessed]
    ,[hasDeviceCount]
    ,[lang]
	,[isAFW]
	,[isPrivate]
	,[externalUrl]
	,[isProductive] 
	,[synchronized]
	,[totalPolicies]
	,[totalMetrics]';
	
	    

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_APPSINFORMATION] '; 
	
	-- Agregar filtro de categorías si es necesario
	IF (LEN(ISNULL(@i_categoryIds, '')) > 0)
	 BEGIN
		SET @fromClause = CONCAT(@fromClause, ' INNER JOIN (SELECT DISTINCT application_id FROM AMDM_APPSINFO_CATEGORY WHERE appcategory_id IN (', @i_categoryIds, ')) ac ON [appId] = ac.application_id ');
	END
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	IF @i_languague NOT IN ('es','pt','en')
		SET @i_languague = 'es'
	
	SET @whereClause = CONCAT(' WHERE lang = ''', @i_languague, ''' ');
	
	-- Agregar cadena de búsqueda si es necesario
	IF @i_querycondition NOT IN ('', '%', '*')
		SET @whereClause = CONCAT(@whereClause, ' AND nameApp LIKE ''%', @i_querycondition, '%'' '); 
	
	-- Agregar filtro por plataforma si es necesario
	IF (@i_isAndroid <> @i_isApple) or (@i_isAndroid <> @i_isWindows)
	BEGIN
	SET @whereClause = CONCAT(@whereClause, ' AND platformId IN (');
		
		IF(@i_isAndroid = 'True')
			SET @whereClause = CONCAT(@whereClause, '1,');

		IF(@i_isWindows = 'True')
			SET @whereClause = CONCAT(@whereClause, '3,');
		
		IF(@i_isApple = 'True')
			SET @whereClause = CONCAT(@whereClause, '4,');
			
			SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END		
		
	-- Agregar filtro por fabricación si es necesario
	IF @i_isCorporated = 'True' AND @i_isStore = 'False'
		SET @whereClause = CONCAT(@whereClause, ' AND isCorporate = 1 ');
	
	IF @i_isCorporated = 'False' AND @i_isStore = 'True'
		SET @whereClause = CONCAT(@whereClause, ' AND isCorporate = 0 ');

	-- Agregar filtro por origen si es necesario
	IF @i_IsInstalled = 'True' AND @i_IsSystem = 'False'
		SET @whereClause = CONCAT(@whereClause, ' AND isVisible = 1 ');

	IF @i_IsInstalled = 'False' AND @i_IsSystem = 'True'
		SET @whereClause = CONCAT(@whereClause, ' AND isVisible = 0 ');
	
	--Agregar filtro por características de Android for Work si es necesario
	IF (@i_isPrivate <> @i_isPublic) or (@i_isPrivate <> @i_isNotApproved)
	 BEGIN

		SET @whereClause = CONCAT(@whereClause, ' AND (platformId = 1 AND ( ');
		
		IF @i_isPublic = 'True'
			SET @whereClause = CONCAT(@whereClause, ' (isAFW = 1 AND isPrivate = 0) OR');

		IF @i_isPrivate = 'True'
			SET @whereClause = CONCAT(@whereClause, ' (isAFW = 1 AND isPrivate = 1) OR');

		IF @i_isNotApproved = 'True'
			SET @whereClause = CONCAT(@whereClause, ' (isCorporate = 0 AND isAFW = 0) OR');
		ELSE
			SET @whereClause = CONCAT(@whereClause, ' (isCorporate = 1 AND isAFW = 0) OR');

		SET @whereClause = CONCAT(@whereClause, ') )');

		SET @whereClause = REPLACE(@whereClause,' OR) )',') ) ')
	 END

	 -- Agregar filtro de aplicaciones productivas si es necesario
	IF @i_productive = 'True' AND @i_notProductive = 'False'
		SET @whereClause = CONCAT(@whereClause, ' AND isProductive = 1 ');

	IF @i_productive = 'False' AND @i_notProductive = 'True'
		SET @whereClause = CONCAT(@whereClause, ' AND isProductive = 0 ');

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = CONCAT(' ORDER BY ', @i_orderfield, ' ', @i_ordertype);

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'INDX';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_APPLICATIONSINPOLICY]...';


GO
CREATE PROCEDURE PRC_AMDM_APPLICATIONSINPOLICY
	 (@i_platform	INT)
AS
BEGIN
SET NOCOUNT ON;
    SELECT 
    p.policy_id AS [Id], 
    p.policy_policyname AS [Name], 
    ap2.politemparam_name AS [Type], 
    ap2.politemparam_value AS [Json], 
    p.policy_platformid AS [Platform],
	ap2.politemparam_parammainappid AS [appRestrictionId]
    FROM dbo.AMDM_POLICY AS p 	
    INNER JOIN AMDM_POLICYITEM ap ON ap.politem_policyid = p.policy_id
    INNER JOIN AMDM_POLICYITEMTYPEPARAMETER ap2 ON ap2.politemparam_policyitemid = ap.politem_id	
    INNER JOIN AMDM_POLICYITEMTYPE ap3 ON ap3.politemtype_id = ap.politem_policyitemtype		
    LEFT JOIN AMDM_POLICYSTATUSTYPE AS posttype ON posttype.polstatype_id = p.policy_status	
    LEFT JOIN AMDM_DEVICEPLATFORM ad ON ad.platf_id = p.policy_platformid								
    WHERE posttype.polstatype_name <> 'Removed' AND (ap3.politemtype_name IN ('Applications', 'AFW_Applications', 'AFW_Kiosk', 'Kiosk'))
    AND p.policy_platformid = @i_platform
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_APPMETRICS_DEVICE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_APPMETRICS_DEVICE]
	@i_deviceid				INT,
	@i_datestart			INT				= NULL,
	@i_dateend				INT				= NULL

AS
BEGIN 

    SELECT 
        [appId],
		SUM([dataConsumption])	AS [dataConsumption],
		SUM([useTime])			AS [useTime],
		[appNameEs],
		[appNameEn],
		[appNamePt],
		[iconUrl],
		[installed]
    FROM 
        [VIEW_AMDM_APPMETRICS_DEVICE]  
    WHERE 
		devId = @i_deviceid
        AND ( ISNULL(@i_datestart, 0) = 0 OR dateId >= @i_datestart) 
        AND (ISNULL(@i_dateend, 0) = 0 OR dateId <= @i_dateend)
	GROUP BY
		[appId], [appNameEs], [appNameEn], [appNamePt], [iconUrl], [installed]
	ORDER BY 
		dataConsumption DESC, useTime DESC;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_CLEAN_DEVICE_FLAGS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_CLEAN_DEVICE_FLAGS]
	@i_deviceId INTEGER
AS
BEGIN
	UPDATE AMDM_DEVICEFLAGS SET value = '0' WHERE device_id = @i_deviceId
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_CLEAN_OLD_METRICS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_CLEAN_OLD_METRICS]
	@i_datetodelete		INT
AS

	DELETE TOP (10000) FROM AMDM_APPLICATION_METRICS WHERE dimdate_id < @i_datetodelete

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (10000) FROM AMDM_APPLICATION_METRICS WHERE dimdate_id < @i_datetodelete
    END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_CLEAN_PUSHREQ_PROCESS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_CLEAN_PUSHREQ_PROCESS]
	@i_totalDays	int
AS
BEGIN
	DELETE TOP (2000)
	FROM AMDM_PUSHREQUESTCL
	WHERE pushreq_requestDate < DATEADD(DD, - @i_totalDays, GETUTCDATE());

	WHILE @@ROWCOUNT > 0
	BEGIN
        DELETE TOP (2000)
		FROM AMDM_PUSHREQUESTCL
		WHERE pushreq_requestDate < DATEADD(DD, - @i_totalDays, GETUTCDATE());
	END;
END;
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_CLEAN_TIMELINE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_CLEAN_TIMELINE]
	@i_totalDays			INT
AS
BEGIN
	DECLARE
		@v_delete_date DATETIME,
		@v_batch_size INT = 4000;

    SET @v_delete_date = DATEADD(DAY, -@i_totalDays, GETUTCDATE());

	--Eliminación de registros a partir de la fecha obtenida
	DELETE TOP (@v_batch_size)
	FROM dbo.AMDM_DEVICEEVENT
	WHERE devevent_date < @v_delete_date;

	WHILE @@ROWCOUNT = @v_batch_size
	BEGIN
		--Eliminación de registros a partir de la fecha obtenida
		DELETE TOP (@v_batch_size) 
		FROM dbo.AMDM_DEVICEEVENT 
		WHERE devevent_date < @v_delete_date;

	END;

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_CLEAR_DEV_OLD_LOC]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_CLEAR_DEV_OLD_LOC]
	@minDateToKeepLocation		DATETIME
AS
	DECLARE @minDate			DATETIME

	SELECT @minDate =  MIN(reportdate) from AMDM_DEVICELOCATION

	DELETE TOP (10000) FROM AMDM_DEVICELOCATION WHERE (reportdate < @minDateToKeepLocation AND reportdate > @minDate) AND (islastlocation = 0 OR islastlocation IS NULL)

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (10000) FROM AMDM_DEVICELOCATION WHERE (reportdate < @minDateToKeepLocation AND reportdate > @minDate) AND (islastlocation = 0 OR islastlocation IS NULL)
    END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_CLEAR_LOCDT_BY_DEVICE]...';


GO
CREATE PROCEDURE PRC_AMDM_CLEAR_LOCDT_BY_DEVICE
	@idDevice	INT
AS
BEGIN

	DELETE TOP (10000) FROM AMDM_DEVICELOCATION WHERE (device_id = @idDevice)

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (10000) FROM AMDM_DEVICELOCATION WHERE (device_id = @idDevice)
    END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DELETE_APPDET_REP]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DELETE_APPDET_REP] 
	
AS
	DECLARE @countDetails AS INT
	DECLARE @countApps AS INT

	SELECT @countApps = COUNT(*)
	FROM [dbo].[AMDM_APPSINFORMATION]

	SELECT @countDetails = COUNT(*)
	FROM [dbo].[AMDM_APPSINFORMATIONDETAIL]

	IF @countApps*3 < @countDetails
	BEGIN
		--SELECT  @countDetails, @countApps
		
		DECLARE appsIds CURSOR FOR SELECT [id]
		FROM [dbo].[AMDM_APPSINFORMATION]
		DECLARE @newId AS nvarchar(400)
		OPEN appsIds
		FETCH NEXT FROM appsIds INTO @newId
		WHILE @@fetch_status = 0
		BEGIN
			--PRINT @newId
			DECLARE @countRepeats AS INT
			SELECT @countRepeats = Count([appsinfodetail_appid]) 
			FROM [dbo].[AMDM_APPSINFORMATIONDETAIL]
			WHERE [appsinfodetail_appid] = @newId
			
			IF @countRepeats > 3
			BEGIN
				--PRINT @newId
				DECLARE groupsRepeats CURSOR FOR SELECT [appsinfodetail_id], [appsinfodetail_lang]
				FROM [dbo].[AMDM_APPSINFORMATIONDETAIL]
				WHERE [appsinfodetail_appid] = @newId
				DECLARE @idRepeated AS nvarchar(50)
				DECLARE @lang AS nvarchar(10)
				OPEN groupsRepeats
				FETCH NEXT FROM groupsRepeats INTO @idRepeated, @lang 
				DECLARE @countES AS INT
				DECLARE @countEN AS INT
				DECLARE @countPT AS INT
				SET @countES = 0
				SET @countEN = 0
				SET @countPT = 0

				WHILE @@fetch_status = 0
				BEGIN
					---PRINT @idRepeated
					IF @countES = 0 and @lang = 'es'
						BEGIN
							SET @countES = @countES + 1
						END
					ELSE
						BEGIN
							IF @lang = 'es'
								BEGIN
									--PRINT @idRepeated		
									DELETE FROM [dbo].[AMDM_APPSINFORMATIONDETAIL] WHERE [appsinfodetail_id] = @idRepeated
								END
						END

					IF @countEN = 0 and @lang = 'en'
						BEGIN
							SET @countEN = @countEN + 1
						END
					ELSE
						BEGIN
							IF @lang = 'en'
								BEGIN
									--PRINT @idRepeated		
									DELETE FROM [dbo].[AMDM_APPSINFORMATIONDETAIL] WHERE [appsinfodetail_id] = @idRepeated
								END
						END

					IF @countPT = 0 and @lang = 'pt'
						BEGIN
							SET @countPT = @countPT + 1
						END
					ELSE
						BEGIN
							IF @lang = 'pt'
								BEGIN
									--PRINT @idRepeated		
									DELETE FROM [dbo].[AMDM_APPSINFORMATIONDETAIL] WHERE [appsinfodetail_id] = @idRepeated
								END
						END

					FETCH NEXT FROM groupsRepeats INTO @idRepeated, @lang 
				END

				CLOSE groupsRepeats
				DEALLOCATE groupsRepeats
			END
			FETCH NEXT FROM appsIds INTO @newId
		END
		CLOSE appsIds
		DEALLOCATE appsIds

	END
			
RETURN
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DELETE_EXPENSE_PLAN]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DELETE_EXPENSE_PLAN]
	@i_expensePlanId INT
AS
--Eliminación de registros en AMDM_COMMANDREQUEST asociados al plan de consumos--
IF EXISTS (SELECT 1 FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId) 
	BEGIN

		SELECT [reqaction_id] FROM [AMDM_COMMANDREQUESTACTION] WHERE reqaction_requestid IN
		(
  			SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId 
		)

		WHILE @@ROWCOUNT >0
		BEGIN
			DELETE TOP (10000) FROM [AMDM_COMMANDREQUESTACTION] WHERE [reqaction_id] IN 
			(
				SELECT [reqaction_id] FROM [AMDM_COMMANDREQUESTACTION] WHERE reqaction_requestid IN
				(
  					SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId
				)
			);

			SELECT [reqaction_id] FROM [AMDM_COMMANDREQUESTACTION] WHERE reqaction_requestid IN
			(
  				SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId
			)
		END

		SELECT [sentcmdlg_sentcommandid] FROM [AMDM_SENTCOMMANDLOG] WHERE [sentcmdlg_sentcommandid] IN 
		(
			SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN 
			(
				SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId
			)
		)

		WHILE @@ROWCOUNT > 0
		BEGIN
			DELETE TOP (10000) FROM [AMDM_SENTCOMMANDLOG] WHERE sentcmdlg_sentcommandid IN 
			(
				SELECT [sentcmdlg_sentcommandid] FROM [AMDM_SENTCOMMANDLOG] WHERE [sentcmdlg_sentcommandid] IN 
				(
					SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN 
					(
						SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId
					)
				)
			);

			SELECT [sentcmdlg_sentcommandid] FROM [AMDM_SENTCOMMANDLOG] WHERE [sentcmdlg_sentcommandid] IN 
			(
				SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN 
				(
					SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId
				)
			)
		END

		SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN
		(
			SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId
		)

		WHILE @@ROWCOUNT > 0
		BEGIN
			DELETE TOP (10000) FROM [AMDM_SENTCOMMAND] WHERE sentcmd_id IN 
			(
				SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN
				(
					SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId
				)
			);

			SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN
			(
				SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId
			)
		END

		SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId;

		WHILE @@ROWCOUNT > 0
		BEGIN
			DELETE TOP (10000) FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId;

			SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_expenseid] = @i_expensePlanId;
		END
	END

--Eliminar el resumen del plan
DELETE FROM [AMDM_EXPENSEPLANSUMMARY] WHERE [plansum_planid] = @i_expensePlanId;

--Eliminar el plan
DELETE FROM [AMDM_EXPENSEPLAN] WHERE [plan_id] = @i_expensePlanId;
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DELETE_RULE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DELETE_RULE]
	@i_ruleId INT
AS
--Eliminación de registros en AMDM_COMMANDREQUEST asociados a la regla--
IF EXISTS (SELECT 1 FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId) 
	BEGIN

		SELECT [reqaction_id] FROM [AMDM_COMMANDREQUESTACTION] WHERE reqaction_requestid IN
		(
  			SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId
		)

		WHILE @@ROWCOUNT >0
		BEGIN
			DELETE TOP (10000) FROM [AMDM_COMMANDREQUESTACTION] WHERE [reqaction_id] IN 
			(
				SELECT [reqaction_id] FROM [AMDM_COMMANDREQUESTACTION] WHERE reqaction_requestid IN
				(
  					SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId
				)
			);

			SELECT [reqaction_id] FROM [AMDM_COMMANDREQUESTACTION] WHERE reqaction_requestid IN
			(
  				SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId
			)
		END

		SELECT [sentcmdlg_sentcommandid] FROM [AMDM_SENTCOMMANDLOG] WHERE [sentcmdlg_sentcommandid] IN 
		(
			SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN 
			(
				SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId
			)
		)

		WHILE @@ROWCOUNT > 0
		BEGIN
			DELETE TOP (10000) FROM [AMDM_SENTCOMMANDLOG] WHERE sentcmdlg_sentcommandid IN 
			(
				SELECT [sentcmdlg_sentcommandid] FROM [AMDM_SENTCOMMANDLOG] WHERE [sentcmdlg_sentcommandid] IN 
				(
					SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN 
					(
						SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId
					)
				)
			);

			SELECT [sentcmdlg_sentcommandid] FROM [AMDM_SENTCOMMANDLOG] WHERE [sentcmdlg_sentcommandid] IN 
			(
				SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN 
				(
					SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId
				)
			)
		END

		SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN
		(
			SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId
		)

		WHILE @@ROWCOUNT > 0
		BEGIN
			DELETE TOP (10000) FROM [AMDM_SENTCOMMAND] WHERE sentcmd_id IN 
			(
				SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN
				(
					SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId
				)
			);

			SELECT [sentcmd_id] FROM [AMDM_SENTCOMMAND] WHERE sentcmd_requestid IN
			(
				SELECT [cmdreq_id] FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId
			)
		END

		SELECT cmdreq_ruleid FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId;

		WHILE @@ROWCOUNT > 0
		BEGIN
			DELETE TOP (10000) FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId;

			SELECT cmdreq_ruleid FROM [AMDM_COMMANDREQUEST] WHERE [cmdreq_ruleid] = @i_ruleId;
		END
	END

--Eliminación de registros en AMDM_RULESET_RULE asociados a la regla--
DELETE FROM [AMDM_RULESET_RULE] WHERE [rset_rulesetid] = @i_ruleId;

--Desasociar dispositivos a la regla
UPDATE [AMDM_DEVICE] SET [ruleset_id] = NULL WHERE [ruleset_id] = @i_ruleId;

--Eliminar regla
DELETE FROM [AMDM_RULESET] WHERE [ruleset_id] = @i_ruleId;
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEV_MASSIVE_COMMAND]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEV_MASSIVE_COMMAND]
	/*Paginación*/
	@i_pageindex				INT,
	@i_pagesize					INT,
	@i_querycondition			NVARCHAR(MAX) = NULL,
	@i_orderfield				NVARCHAR(MAX) = NULL,
	@i_ordertype				NVARCHAR(MAX) = NULL,
	@o_row_count				INT	OUTPUT,

	/*Identificadores de dispositivos involucrados*/
	@i_devicesIdentifiers			NVARCHAR(MAX) = NULL,

	/*Variables de validación*/
	@i_validateStatus				BIT	= NULL,
	@i_validatePlatform				BIT	= NULL,
	@i_validateWindowsAgent			BIT	= NULL,
	@i_validateAFW					BIT	= NULL,
	@i_validatePolicy				BIT	= NULL,
	@i_validateRuleset				BIT	= NULL,
	@i_validateContentLock			BIT	= NULL,
	@i_validateLostMode				BIT	= NULL,
	@i_validateGenericKnox			BIT	= NULL,
	@i_validateTotalLock			BIT	= NULL,
	@i_validateHealthDeviceStatus	BIT = NULL,

	/*Variables de estado*/
	@i_isEnrolled					BIT	= NULL,
	@i_isPendingEnrolled			BIT	= NULL,
	@i_isUnenroll					BIT	= NULL,

	/*Variables de plataforma*/
	@i_isAndroid					BIT	= NULL,
	@i_isIOs						BIT	= NULL,
	@i_isWindows					BIT	= NULL,

	/*Variables de AFW*/
	@i_isDeviceOwner				BIT	= NULL,
	@i_isProfileOWner				BIT	= NULL,

	/*Variables de política*/
	@i_policyId						INT	= NULL,

	/*Variables de ruleset*/
	@i_rulesetId					INT	= NULL,

	/*Contenido bloqueado*/
	@i_isContentLock				BIT	= NULL,

	/*Modo perdido*/
	@i_isLostMode					BIT	= NULL,

	/*Knox genérico*/
	@i_isGenericKnox				BIT	= NULL,

	/*Bloqueo total*/
	@i_isTotalLock					BIT	= NULL,

	/*Agente windows instalado*/
	@i_isInstalledWindowsAgent		BIT	= NULL,

	/*Banderas de dispositivo*/
	@i_isHealthDeviceActive			BIT = NULL,

	/*Obtener los dispositivos excluidos*/
	@i_getExcludedDevices			BIT	= NULL

AS
BEGIN
	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT

	----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		dev.id									AS DeviceId,
		dev.uniquedeviceidentifier				AS UDI,
		dev.name								AS DeviceName,
		platf.platf_id							AS Platform,
		platf.platf_name						AS PlatformName,
		dev.devicetype							AS Type,
		dev.imei								AS IMEI,
		dev.status_id							AS DeviceStatus,
		dev.windowsappchanneluri				AS WindowsAppChannelUri,
		dev.androidforworkmode_id				AS AfwModeId,
		dev.androidforworktokenset				AS AndroidFWTokenSet,
		dev.user_id								AS UserId,
		dev.lostmode							AS LostMode,
		dev.isknox								AS IsKnox,
		dev.istotallocked						AS IsTotalLock ';
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = 
	' FROM
		AMDM_DEVICE dev
		JOIN AMDM_DEVICEPLATFORM platf ON dev.platform_id = platf.platf_id 
		LEFT JOIN AMDM_DEVICEFLAGS hdf ON hdf.device_id = dev.id
			AND hdf.flag_id = 4'; 
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @whereClause = '';

	IF(@i_getExcludedDevices = 1)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' WHERE 1 = 1');

		--Agregar identificadores de dispositivos si es necesario
		IF ISNULL(@i_devicesIdentifiers, '') <> ''
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND dev.id IN (', @i_devicesIdentifiers, ') ');
		END

		SET @whereClause = CONCAT(@whereClause, ' AND dev.id NOT IN (SELECT dev.id FROM AMDM_DEVICE dev JOIN AMDM_DEVICEPLATFORM platf ON dev.platform_id = platf.platf_id ');
	END
	
	SET @whereClause = CONCAT(@whereClause, ' WHERE 1 = 1 ');

	--No se muestran dispositivos marcados como duplicados
	SET @whereClause = CONCAT(@whereClause, ' AND dev.uniquedeviceidentifier NOT LIKE (''$$%'') ');

	--Agregar identificadores de dispositivos si es necesario
	IF ISNULL(@i_devicesIdentifiers, '') <> ''
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND dev.id IN (', @i_devicesIdentifiers, ') ');
	END

	-- Agregar cadena de búsqueda si es necesario
	IF ISNULL(@i_querycondition, '') <> ''
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND ('
			, '		dev.name		LIKE ''%', @i_querycondition, '%'' ' 
			, ' OR	platf.platf_id	LIKE ''%', @i_querycondition, '%'' ' 
			, '	OR	dev.devicetype	LIKE ''%', @i_querycondition, '%'' ' 
			, '	OR	dev.imei		LIKE ''%', @i_querycondition, '%'' ' 
			, ' ) ');
	END
	
	-- Agregar filtro por estado si es necesario
	IF (@i_validateStatus = 1)
	BEGIN
		IF(@i_isEnrolled <> @i_isPendingEnrolled) OR (@i_isEnrolled <> @i_isUnenroll)
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND dev.status_id IN (');

			IF(@i_isEnrolled = 'True')
				SET @whereClause = CONCAT(@whereClause, '0,');

			IF(@i_isPendingEnrolled = 'True')
				SET @whereClause = CONCAT(@whereClause, '1,');

			IF(@i_isUnenroll = 'True')
				SET @whereClause = CONCAT(@whereClause, '2,');

			SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
			SET @whereClause = CONCAT(@whereClause, ')');
		END	
	END
	
	-- Agregar filtro por plataforma si es necesario
	IF(@i_validatePlatform = 1)
	BEGIN
		IF (@i_isAndroid <> @i_isIOs) OR (@i_isAndroid <> @i_isWindows)
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND platf.platf_id IN (');
		
			IF(@i_isAndroid = 'True')
				SET @whereClause = CONCAT(@whereClause, '1,');

			IF(@i_isWindows = 'True')
				SET @whereClause = CONCAT(@whereClause, '3,');
		
			IF(@i_isIOs = 'True')
				SET @whereClause = CONCAT(@whereClause, '4,');
		
			SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
			SET @whereClause = CONCAT(@whereClause, ')');
		END
	END

	-- Agregar filtro de agente de windows instalado si es necesario
	IF(@i_validateWindowsAgent = 1)
	BEGIN
		IF(@i_isInstalledWindowsAgent = 1)
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND ((platf.platf_id = 3 AND (LEN(ISNULL(dev.windowsappchanneluri, '''')) > 0))');
			
			IF(@i_isAndroid = 1)
			BEGIN
				SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 1) ');
			END

			IF(@i_isIOs = 1)
			BEGIN
				SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 4) ');
			END
			
			SET @whereClause = CONCAT(@whereClause, ') ');
		END
		ELSE
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND ((platf.platf_id = 3 AND (LEN(ISNULL(dev.windowsappchanneluri, '''')) = 0)) ');

			IF(@i_isAndroid = 1)
			BEGIN
				SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 1) ');
			END

			IF(@i_isIOs = 1)
			BEGIN
				SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 4) ');
			END
			
			SET @whereClause = CONCAT(@whereClause, ') ');
		END
	END
	
	--Agregar filtro por características de Android for Work si es necesario
	IF(@i_validateAFW = 1)
	BEGIN
		IF (@i_isDeviceOwner <> @i_isProfileOWner)
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND (');

			IF(@i_isAndroid = 1)
			BEGIN
				SET @whereClause = CONCAT(@whereClause, '((dev.androidforworktokenset = 1 AND platf.platf_id = 1) ');
		
				IF @i_isProfileOWner = 'True'
					SET @whereClause = CONCAT(@whereClause, ' AND (dev.androidforworkmode_id = 1) ');

				IF @i_isDeviceOwner = 'True'
					SET @whereClause = CONCAT(@whereClause, ' AND (dev.androidforworkmode_id = 2) ');

				SET @whereClause = CONCAT(@whereClause, ') ');
			END
			ELSE
			BEGIN
				SET @whereClause = CONCAT(@whereClause, '(platf.platf_id != 1)');
			END

			IF(@i_isWindows = 1)
			BEGIN
				SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 3) ');
			END

			IF(@i_isIOs = 1)
			BEGIN
				SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 4) ');
			END

			SET @whereClause = CONCAT(@whereClause, ') ');
		END
	END	
		
	-- Agregar filtro de politica si es necesario
	IF(@i_validatePolicy = 1)
	BEGIN
		IF(@i_policyId != 0)
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND platf.platf_id = (SELECT policy_platformid FROM AMDM_POLICY WHERE policy_id = ', @i_policyId, ') '); 
		END
	END

	--Agregar filtro de ruleset si es necesario
	IF(@i_validateRuleset = 1)
	BEGIN
		IF(@i_rulesetId != 0)
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND (');
			--Android
			SET @whereClause = CONCAT(@whereClause, '(platf.platf_id = 1)');
			--IOs
			SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 4 AND (SELECT COUNT(rset_id) FROM AMDM_RULESET_RULE WHERE rset_rulesetid = ', @i_rulesetId, ' AND rset_rule_typeid = 10) = 0)');
			--Windows
			SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 3 AND (SELECT COUNT(rset_id) FROM AMDM_RULESET_RULE WHERE rset_rulesetid = ', @i_rulesetId, ' AND rset_rule_typeid IN (3, 7, 10)) = 0) AND (SELECT COUNT(rset_id) FROM AMDM_RULESET_RULE WHERE rset_rulesetid = ', @i_rulesetId, ' AND rset_rule_typeid IN (1, 8)) > 0 AND (LEN(ISNULL(dev.windowsappchanneluri, '''')) > 0) ');
			
			SET @whereClause = CONCAT(@whereClause, ') ');
		END
	END

	--Agregar filtro de contenido bloqueado si es necesario
	IF(@i_validateContentLock = 1)
	BEGIN
		IF(@i_isContentLock = 1)
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND dev.user_id IN (SELECT userlock_userid FROM AMDM_USER_CONTENTLOCK) ');
		END
		ELSE
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND dev.user_id NOT IN (SELECT userlock_userid FROM AMDM_USER_CONTENTLOCK) ');
		END
	END

	--Agregar filtro de modo perdido si es necesario
	IF(@i_validateLostMode = 1)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND dev.lostmode = ', @i_isLostMode, ' ');
	END

	--Agregar filtro de knox genérico si es necesario
	IF(@i_validateGenericKnox = 1)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 1 AND dev.androidforworktokenset = 0 AND dev.isknox = ', @i_isGenericKnox, ')');
	END

	--Agregar filtros para bloqueo total si es necesario
	IF(@i_validateTotalLock = 1)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND ((platf.platf_id = 3 AND dev.istotallocked = ', @i_isTotalLock,') ');

		IF(@i_isAndroid = 1)
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 1) ');
		END

		IF(@i_isIOs = 1)
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' OR (platf.platf_id = 4) ');
		END

		SET @whereClause = CONCAT(@whereClause, ') ');
	END

	--Agregar filtro de bandera de salud de dispositivo si es necesario
	IF(@i_validateHealthDeviceStatus = 1)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND CAST(hdf.value AS BIT) = ', @i_isHealthDeviceActive);
	END

	IF(@i_getExcludedDevices = 1)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ') ');
	END


----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = CONCAT(' ORDER BY ', @i_orderfield, ' ', @i_ordertype);

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'dev.id';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEV_PENDING_COMMANDS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEV_PENDING_COMMANDS]
(
    @i_pageindex	INT,
    @i_pagesize		INT,
    @i_deviceid		INT
    
)
AS 
BEGIN
SET NOCOUNT ON;
SELECT TOP(@i_pagesize) * FROM 
(
    SELECT 
    ROW_NUMBER() OVER(ORDER BY sc.sentcmd_sendDate DESC) AS INDX,
    sc.sentcmd_statusid AS [Status], 
	sc.sentcmd_sendDate AS [DateDispatch], 
	sc.sentcmd_fetchDate AS [DateReception], 
	ct.cmdtype_name AS [Type], 
	ISNULL(cat.cmdactype_name,'') + ISNULL(p.policy_policyname,'') + ISNULL(rs.ruleset_name, '') + + ISNULL(ep.plan_name, '') AS [Event], 
	sc.sentcmd_id AS Id, 
	d.name AS PcName,
	d.id AS Pcid,
	cr.cmdreq_userid AS UserId,
	u.user_name AS UserName

	FROM AMDM_SENTCOMMAND sc
	LEFT JOIN AMDM_COMMANDREQUEST cr ON (sc.sentcmd_requestid = cr.cmdreq_id)
	INNER JOIN AMDM_COMMANDTYPE ct ON (cr.cmdreq_commandtypeid = ct.cmdtype_id)
	LEFT JOIN AMDM_COMMANDREQUESTACTION cra ON (cra.reqaction_requestid = cr.cmdreq_id)
	LEFT JOIN AMDM_COMMANDACTIONTYPE cat ON (cat.cmdactype_id = cra.reqaction_actiontypeid)
	LEFT JOIN AMDM_POLICY p ON (cr.cmdreq_policyid = p.policy_id)
	LEFT JOIN AMDM_RULESET rs ON (cr.cmdreq_ruleid = rs.ruleset_id)
	LEFT JOIN AMDM_EXPENSEPLAN ep ON (cr.cmdreq_expenseid = ep.plan_id)
	LEFT JOIN AMDM_DEVICE d ON (d.id = sc.sentcmd_deviceid)
	LEFT JOIN AFW_USERS u ON (u.user_id = cr.cmdreq_userid)
	
	WHERE 
	sc.sentcmd_statusid IN (0,1) AND
	sc.sentcmd_deviceid = @i_deviceid


	) AS CommandList 
	WHERE CommandList.INDX >= @i_pageindex

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVBYAPPMETRICS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVBYAPPMETRICS]
	@i_searchtext   VARCHAR(50),
	@i_pageindex    INT,
	@i_pagesize     INT,

	@o_row_count    INT				OUTPUT

AS
BEGIN


	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @searchQuery     VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[devId],
		[devName]'
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_DEVBYAPPMETRICS] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @searchQuery = ' WHERE 1 = 1 ';

	--Filtros de fecha
	IF (LEN(ISNULL(@i_searchtext, '')) > 0)
	BEGIN
		SET @searchQuery = CONCAT(@searchQuery, ' AND devName LIKE ''%', @i_searchtext, '%''');
	END

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = 'ORDER BY devName ASC ';

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'devId';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@searchQuery,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVBYIDSCHEDMANPROJ]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVBYIDSCHEDMANPROJ]
	@i_pageIndex				INT,
	@i_pageSize					INT,
	@i_projectId				INT,
	
	/*Filtros de Busqueda*/
	@i_searchText				VARCHAR(max)		= NULL,
	
	@i_orderfield		NVARCHAR(max)		= NULL,
	@i_ordertype		NVARCHAR(max)		= NULL,
	@o_row_count		INT					OUTPUT

AS
BEGIN


	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[fetchDate]
		, [sendDate]
		, [answerDate]
		, [deviceUDID]
		, [deviceName]
		, [deviceId]
		, [platformId]
		, [errorTypeId]
		, [statusId]
		, [projectId]'		
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_ALLDEVBYSCHEDMANPROJ] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @whereClause = ' WHERE 1 = 1 ';

	--Filtro por id del proyecto
	SET @whereClause = @whereClause + ' AND projectId = ' + STR(@i_projectId)

	--Agregar filtro por nombre del dispositivo si es necesario
	IF @i_searchText IS NOT NULL AND LEN(@i_searchText) > 0
		SET @whereClause = @whereClause + ' AND deviceName LIKE ''%' + @i_searchText + '%'' '

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY ' + @i_orderfield + ' ' + @i_ordertype;

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'projectDeviceId';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageIndex + 1;
	SET @upperBound = @lowerBound + @i_pageSize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVEXP_BYPLANID]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVEXP_BYPLANID]
	@i_datestart	DATETIME,
	@i_datefinish	DATETIME,
	@i_planid		INT,
	@o_row_count	INT				 OUTPUT
AS
BEGIN

	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 'SELECT IDX, deviceId, deviceName, measureUnitData, measureUnitVoice, localDataConsumption, localVoiceConsumption, roamingDataConsumption, roamingVoiceConsumption, active ';
	    

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = CONCAT(' FROM
	(
		SELECT
			ROW_NUMBER() OVER(ORDER BY dev.name ASC) AS IDX,
			dev.id AS deviceId,
			dev.name AS deviceName,
			cons.measureUnitData AS measureUnitData,
			cons.measureUnitVoice AS measureUnitVoice,
			ISNULL(cons.localDataConsumption, 0) localDataConsumption,
			ISNULL(cons.localVoiceConsumption, 0) localVoiceConsumption,
			ISNULL(cons.roamingDataConsumption, 0) roamingDataConsumption,
			ISNULL(cons.roamingVoiceConsumption, 0) roamingVoiceConsumption,
			IIF(dev.expenseplan_id = ', @i_planid, ', ISNULL(cons.planId, 1), 0) AS active
		FROM AMDM_DEVICE dev
		FULL OUTER JOIN (

			SELECT
				COALESCE(dev.id, de.devexp_deviceid) AS deviceId,
				CASE
					WHEN de.devexp_active IS NOT NULL THEN de.devexp_active
					WHEN COALESCE(dev.id, de.devexp_deviceid) IS NOT NULL THEN 1
					ELSE 0
				END AS isActive,
				ep.plan_id							AS planId,
				ep.plan_measuredatasize				AS measureUnitData,
				ep.plan_measurevoicesize			AS measureUnitVoice,
				ISNULL(SUM(CASE WHEN de.devexp_daily_isroaming = 0 THEN de.devexp_daily_datausage END), 0)  AS localDataConsumption,
				ISNULL(SUM(CASE WHEN de.devexp_daily_isroaming = 0 THEN de.devexp_daily_voiceusage END), 0) AS localVoiceConsumption,
				ISNULL(SUM(CASE WHEN de.devexp_daily_isroaming = 1 THEN de.devexp_daily_datausage END), 0)  AS roamingDataConsumption,
				ISNULL(SUM(CASE WHEN de.devexp_daily_isroaming = 1 THEN de.devexp_daily_voiceusage END), 0) AS roamingVoiceConsumption
			FROM AMDM_EXPENSEPLAN ep
			LEFT JOIN AMDM_DEVICE dev ON
				dev.expenseplan_id = ep.plan_id
			LEFT JOIN AMDM_DEVICEEXPENSE de ON
				ep.plan_id = de.devexp_planid
				AND de.devexp_lastupdate BETWEEN ''', @i_datestart, ''' AND ''', @i_datefinish, '''
			GROUP BY
				COALESCE(dev.id, de.devexp_deviceid),
				CASE
					WHEN de.devexp_active IS NOT NULL THEN de.devexp_active
					WHEN COALESCE(dev.id, de.devexp_deviceid) IS NOT NULL THEN 1
					ELSE 0
				END,
				ep.plan_id,
				ep.plan_measuredatasize,
				ep.plan_measurevoicesize

		) cons ON cons.deviceId = dev.id
		WHERE 
			dev.expenseplan_id = ', @i_planid, '
			OR cons.planId = ', @i_planid, '
		) AS deviceExpenses ');
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------	
	SET @whereClause = ' WHERE 1 = 1 ';

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY IDX ASC';

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'IDX';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = 0;
	SET @upperBound = 0
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVICE_POLICY_APPS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVICE_POLICY_APPS]
	@i_deviceIds	VARCHAR(MAX),
	@i_packageName	VARCHAR(MAX),
	@i_install		BIT
AS
BEGIN
	IF (@i_install = 1)
	BEGIN
		SELECT DeviceId FROM VIEW_AMDM_DEVICE_POLICY_APPS WHERE DeviceId IN (SELECT CAST(id AS INT) FROM [dbo].[FUN_AMDM_SPLITSTRING](@i_deviceIds, ',')) AND ISNULL(BlackList, '') NOT LIKE '%' + @i_packageName + '%'
	END
	ELSE
	BEGIN
		SELECT DeviceId FROM VIEW_AMDM_DEVICE_POLICY_APPS WHERE DeviceId IN (SELECT CAST(id AS INT) FROM [dbo].[FUN_AMDM_SPLITSTRING](@i_deviceIds, ',')) AND ISNULL(RequiredApps, '') NOT LIKE '%' + @i_packageName + '%'
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVICE_RCSESSION]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVICE_RCSESSION]
(
    @i_pageindex	INT,
    @i_pagesize		INT,
    @i_deviceid		INT
    
)
AS
BEGIN
SET NOCOUNT ON;

SELECT TOP(@i_pagesize) * FROM 
(
    SELECT 
    ROW_NUMBER() OVER(ORDER BY s.rcsession_startdate DESC) AS [INDX],
    s.rcsession_statusid AS [Status], 
	s.rcsession_startdate AS [DateStart], 
	s.rcsession_enddate as [DateEnd], 
	s.rcsession_id AS [Id],
	d.name AS [PcName],
	d.id AS [Pcid],
	s.rcsession_userid AS [UserId],
	u.user_name AS [UserName],
	sm.rcsessionmedia_id AS [MediaId]
	

	FROM 
	AMDM_RCSESSION s
	LEFT JOIN AMDM_DEVICE_RCSESSION ds ON (s.rcsession_id = ds.device_rcsession_rcsessionid)
	LEFT JOIN AMDM_DEVICE  d ON (ds.device_rcsession_deviceid = d.id)
	LEFT JOIN AFW_USERS u ON (s.rcsession_userid = u.user_id)
	LEFT JOIN AMDM_RCSESSIONMEDIA sm ON (s.rcsession_id = sm.rcsessionmedia_rcsessionid)

	WHERE d.id = @i_deviceid
	AND s.rcsession_statusid IN (2,3)


	) AS SessionList 
	WHERE SessionList.INDX >= @i_pageindex

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVICEAGENTPROFILE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVICEAGENTPROFILE]
(
    @i_pageindex	INT,
    @i_pagesize		INT,
 	@i_searchstring NVARCHAR(max),
	@i_orderfield	NVARCHAR(max),
	@i_ordertype	NVARCHAR(max),
	@o_row_count	INT						OUTPUT

)
AS 
BEGIN

    DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT

SET NOCOUNT ON;

----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------

SET @selectClause = 'SELECT 
      [devagentprofile_id]
      ,[devagentprofile_name]
      ,[devagentprofile_creationdate]
      ,[devagentprofile_usercreatorid]
	  ,l.name + ''\'' + u.user_name as user_name' 
  

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------

SET @fromClause = ' FROM [AMDM_DEVICEAGENTPROFILE] 
                    LEFT JOIN AFW_USERS u on (devagentprofile_usercreatorid = u.user_id) 
				    LEFT JOIN AFW_LDAP l on (l.id = u.user_authentication_id)'
				

----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
			
SET @whereClause = ' WHERE 1 = 1 '

IF @i_searchstring IS NOT NULL AND  LEN(@i_searchstring)>0
BEGIN
   SET @whereClause = @whereClause + ' AND [devagentprofile_name] LIKE ''%'	+ @i_searchstring + '%'' ' 
END


IF @i_orderfield = 'Name'
     BEGIN
	  SET @i_orderfield = 'devagentprofile_name'
	 END
  ELSE IF @i_orderfield = 'User'
	 BEGIN
	  SET @i_orderfield = 'devagentprofile_usercreatorid'
	 END
  ELSE IF @i_orderfield = 'CreatedDate'
	 BEGIN
	  SET @i_orderfield = 'devagentprofile_creationdate'
	 END
  ELSE
     BEGIN
      SET @i_orderfield = 'devagentprofile_id'
	 END
  
  IF(@i_ordertype = 'asc')
   BEGIN
	SET @i_ordertype = 'ASC'
   END
  ELSE IF(@i_ordertype = 'desc')
   BEGIN
	SET @i_ordertype = 'DESC'
   END
  ELSE
   BEGIN
	SET @i_ordertype = 'ASC'
   END

----------------------------------------------------------------
-- ORDER
----------------------------------------------------------------

SET @orderClause = ' ORDER BY ' + @i_orderfield + ' ' + @i_ordertype;

----------------------------------------------------------------
-- PRIMARY KEY
----------------------------------------------------------------

SET @primaryKey = '[devagentprofile_id]';

----------------------------------------------------------------
-- LOWER Y UPPER BOUND
----------------------------------------------------------------

SET @lowerBound = @i_pageindex + 1;
SET @upperBound = @lowerBound + @i_pagesize - 1


----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT



END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVICEBYAPPLICATION]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVICEBYAPPLICATION]
(
	@i_pageindex		INT,
	@i_pagesize			INT,
	@i_querycondition	NVARCHAR(MAX)		= NULL,
	@i_platform			INT,
	@i_packageId 		NVARCHAR(MAX)		= NULL,
	@i_fulfilled		BIT,
	@i_notFulfilled		BIT,
	@i_updated			BIT,
	@i_outdated			BIT,
	@i_versions			NVARCHAR(MAX)		= NULL,
  	@o_row_count		INT					OUTPUT
)

AS
BEGIN

	DECLARE @appVersion VARCHAR(MAX)

	SELECT @appVersion = [version] FROM AMDM_APPSINFORMATION WHERE bundleid = @i_packageId AND platform_id = @i_platform;

	IF LEN(ISNULL(@appVersion,'')) != 0 
	BEGIN
		UPDATE AMDM_DEVICESOFTWARE SET isupdated = 1 WHERE packagename = @i_packageId AND [version] = @appVersion;
		UPDATE AMDM_DEVICESOFTWARE SET isupdated = 0 WHERE packagename = @i_packageId AND [version] != @appVersion;
	END

	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @seachQuery     VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT

	IF @i_fulfilled='False' AND @i_notFulfilled = 'False'
		BEGIN
			SET @i_fulfilled='True'
			SET @i_notFulfilled = 'True'		
		END

	IF @i_updated='False' AND @i_outdated = 'False'
		BEGIN
			SET @i_updated='True'
			SET @i_outdated = 'True'		
		END

	----------------------------------------------------------------
	-- SELECT
	----------------------------------------------------------------
	
		SET @selectClause = 'SELECT INDX, DeviceName, DeviceId, DeviceStatus, IsFulFilling, IsUpdated, AppVersion, PackageName, PlatformId ';
	    

	----------------------------------------------------------------
	-- FROM
	----------------------------------------------------------------
		SET @fromClause = ' FROM VIEW_AMDM_DEVICEBYAPPLICATION '
	
	
	----------------------------------------------------------------
	-- WHERE
	----------------------------------------------------------------	
		SET @whereClause = ' WHERE DeviceStatus = 0 ';

		IF @i_querycondition = '%'
		   SET @i_querycondition = '*'

		IF LEN(ISNULL(@i_querycondition,'')) = 0
			SET @i_querycondition = ''
		ELSE 
			SET @i_querycondition = RTRIM(LTRIM(LOWER(@i_querycondition)))

		SET @whereClause = CONCAT(@whereClause, ' AND PackageName = ''', @i_packageId, ''' ')
	
		SET @whereClause = CONCAT(@whereClause, ' AND PlatformId = ', @i_platform, ' ')

		SET @whereClause = CONCAT(@whereClause, ' AND RTRIM(LTRIM(LOWER(DeviceName))) LIKE ''%', @i_querycondition, '%'' ')

		SET @whereClause = CONCAT(@whereClause, ' AND ((ISNULL(IsFulFilling, 1) = CASE ', @i_fulfilled, ' WHEN 1 THEN 1 END) OR (IsFulFilling = CASE ', @i_notFulfilled, ' WHEN 1 THEN 0 END)) ')

		SET @whereClause = CONCAT(@whereClause, ' AND ((ISNULL(IsUpdated, 1) = CASE ', @i_updated, ' WHEN 1 THEN 1 END) OR (IsUpdated = CASE ', @i_outdated, ' WHEN 1 THEN 0 END)) ')

		IF LEN(ISNULL(@i_versions,'')) > 0
			SET @whereClause = CONCAT(@whereClause, ' AND AppVersion IN (', @i_versions ,')')
	
	----------------------------------------------------------------
	-- ORDER BY
	----------------------------------------------------------------

		SET @orderClause = ' ORDER BY INDX ASC';

	----------------------------------------------------------------
	-- Llave primaria
	----------------------------------------------------------------
	
		SET @primaryKey = 'INDX';
	
	----------------------------------------------------------------
	-- Inicio y tamaño de página
	----------------------------------------------------------------
		SET @lowerBound = @i_pageindex + 1;
		SET @upperBound = @lowerBound + @i_pagesize - 1
	

	----------------------------------------------------------------
	-- Llamar procedimiento de búsqueda con paginación
	----------------------------------------------------------------

	EXECUTE [PRC_AFW_PAGINATE_QUERY]
		@selectClause,
		@fromClause,
		@whereClause,
		@orderClause,
		@primaryKey,
		@lowerBound,
		@upperBound,
		@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVICEBYIDMANPROJECT]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVICEBYIDMANPROJECT]
	@i_pageIndex				INT,
	@i_pageSize					INT,
	@i_projectId				INT,
	
	/*Filtros de Busqueda*/
	@i_isCommandsSend		    bit,
	@i_isCommandsReceived		bit,
	@i_isCommandsExecuted		bit,
	@i_isCommandsFailed			bit,
	@i_searchText				VARCHAR(max)		= NULL,
	
	@i_orderfield		NVARCHAR(max)		= NULL,
	@i_ordertype		NVARCHAR(max)		= NULL,
	@o_row_count		INT					OUTPUT

AS
BEGIN


	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[fetchDate]
		, [sendDate]
		, [answerDate]
		, [deviceUDID]
		, [deviceName]
		, [deviceId]
		, [platformId]
		, [errorTypeId]
		, [statusId]
		, [projectId]
		, [sentCommandId]'		
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_ALLDEVSBYMANPROJECT] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @whereClause = ' WHERE 1 = 1 ';

	--Filtro por id del proyecto
	SET @whereClause = @whereClause + ' AND projectId = ' + STR(@i_projectId)
	
	-- Agregar filtro por estado del comando
	IF (@i_isCommandsSend <> @i_isCommandsReceived) OR (@i_isCommandsSend <> @i_isCommandsExecuted) OR (@i_isCommandsSend <> @i_isCommandsFailed)
	BEGIN
		SET @whereClause = @whereClause + ' AND StatusId IN (';
		
		IF(@i_isCommandsSend = 'True')
			SET @whereClause = @whereClause + '0,';

		IF(@i_isCommandsReceived = 'True')
			SET @whereClause = @whereClause + '1,';

		IF(@i_isCommandsExecuted = 'True' OR @i_isCommandsFailed = 'True')
			SET @whereClause = @whereClause + '2,';
		
		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = @whereClause + ')';
	END

	-- Agregar complemento de filtro para estado fallido y no ejecutado
	IF @i_isCommandsFailed = 'True' AND @i_isCommandsExecuted = 'False'
		SET @whereClause = @whereClause + ' AND errorTypeId IS NOT NULL  AND errorTypeId <> 0 '

	-- Agregar complemento de filtro para estado ejecutado y no fallido
	IF @i_isCommandsFailed = 'False' AND @i_isCommandsExecuted = 'True'
		SET @whereClause = @whereClause + ' AND errorTypeId IS NOT NULL AND errorTypeId = 0 '

	--Agregar filtro por nombre del dispositivo si es necesario
	IF @i_searchText IS NOT NULL AND LEN(@i_searchText) > 0
		SET @whereClause = @whereClause + ' AND deviceName LIKE ''%' + @i_searchText + '%'' '

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY ' + @i_orderfield + ' ' + @i_ordertype;

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'IDX';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageIndex + 1;
	SET @upperBound = @lowerBound + @i_pageSize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVICESBYAPPLICENSE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVICESBYAPPLICENSE]
(
	@i_pageindex		INT,
	@i_pagesize			INT,
	@i_querycondition	NVARCHAR(MAX)		= NULL,
	@i_platform			INT,
	@i_serials			NVARCHAR(MAX)		= NULL,

	/*Selección de dispositivos en el listado*/
	@i_selectAll        BIT,
	@i_selectedDevices  NVARCHAR(max),

  	@o_row_count		VARCHAR(MAX)					OUTPUT
)

AS
BEGIN


	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @searchQuery    VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT 
		ad.name						 AS DeviceName,
		ad.id						 AS DeviceId,
		ad.status_id				 AS DeviceStatus,
		ad.serialnumber				 AS DeviceSerialNumber ';
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = 
	'FROM AMDM_DEVICE ad '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------

	SET @searchQuery = ' WHERE 1 = 1 ';
	SET @whereClause = '';

	-- Agregar filtro por plataforma 
	SET @whereClause = CONCAT(@whereClause, ' ad.platform_id = ', @i_platform, ' ');

	-- Agregar cadena de búsqueda si es necesario
	IF LEN(ISNULL(@i_querycondition, '')) > 0
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND ('
				, '	RTRIM(LTRIM(LOWER(ad.name))) LIKE ''%', @i_querycondition, '%'' ' 
				, ' ) ');	
		END

	-- Agregar filtro por números de serie 
	IF LEN(ISNULL(@i_serials, '')) > 0
		BEGIN
			SET @whereClause = CONCAT(@whereClause, ' AND ad.serialnumber IN (', @i_serials, ') ');
		END

	--Agregar filtros para dispositivos de la lista seleccionados
	IF(@i_selectAll = 'False')
		BEGIN
			IF(LEN(ISNULL(@i_selectedDevices, '')) > 0)
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND (', @whereClause, ') AND (ad.id IN (', @i_selectedDevices, '))');
				END
			ELSE
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND ', @whereClause);
				END
		END
	ELSE
		BEGIN
			IF(LEN(ISNULL(@i_selectedDevices, '')) > 0)
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND (', @whereClause, ') OR (ad.id NOT IN (', @i_selectedDevices, '))');
				END
			ELSE
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND ', @whereClause);
				END
		END

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY ad.name ASC';

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'ad.id';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@searchQuery,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVSNOFULFILLMENTPOLICY]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVSNOFULFILLMENTPOLICY]
	@i_pageindex        INT,
	@i_pagesize         INT,
	
	/*Filtros de Busqueda*/
	/*plataforma*/
	@i_platformId       INT,

	/*politica*/
	@i_policyId         INT,

	/*dispositivos*/
	@i_deviceIds        NVARCHAR(MAX),


	@i_orderfield       NVARCHAR(MAX)		= NULL,
	@i_ordertype        NVARCHAR(MAX)		= NULL,
	@o_row_count        INT					OUTPUT

AS
BEGIN


	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[DeviceId],
		[DeviceName],
		[PlatformId],
		[PlatformName],
		[OSVersion],
		[PolicyId],
		[PolicyVersion],
		[PolicyName],
		[BlacklistApps], 
		[WhitelistApps],
		[RequiredApps]'
		;
		
----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_DEVSNOFULFILLMENTPOLICY] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @whereClause = ' WHERE (BlacklistApps IS NOT NULL OR WhitelistApps IS NOT NULL OR RequiredApps IS NOT NULL) ';

	-- Agregar identificador de plataforma si es necesario
	IF @i_platformId <> 0
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND [PlatformId] = ', @i_platformId);
	END
	
	-- Agregar identificador de política si es necesario
	IF @i_policyId <> 0
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND [PolicyId] = ', @i_policyId);
	END

	-- Agregar identificadores de dispositivos si es necesario
	IF LEN(ISNULL(@i_deviceIds, '')) > 0
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND [DeviceId] IN (', @i_deviceIds, ') ');
	END

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY ' + @i_orderfield + ' ' + @i_ordertype;

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = '[DeviceId]';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1
	
----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_EVENT_MANAGEMENT_LIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_EVENT_MANAGEMENT_LIST]
	@i_pageindex        INT,
	@i_pagesize         INT,
	@i_querycondition	NVARCHAR(MAX)		= NULL,
	@i_orderfield       NVARCHAR(MAX)		= NULL,
	@i_ordertype        NVARCHAR(MAX)		= NULL,
	@o_row_count        INT					OUTPUT
AS
BEGIN

	DECLARE @v_select_clause	VARCHAR(MAX)
	DECLARE @v_from_clause		VARCHAR(MAX)
	DECLARE @v_where_clause		VARCHAR(MAX)
	DECLARE @v_order_clause		VARCHAR(MAX)
	DECLARE @v_primary_key		VARCHAR(MAX)
	DECLARE @v_lower_bound		INT
	DECLARE @v_upper_bound		INT


	SET @v_select_clause = 'SELECT	
		EM.[id], EM.[file_name],ET.[name] AS type,ES.[name] AS status,EM.[file_type],EM.[total_failed],EM.[total_successful],
		EM.[total_failed] + EM.[total_successful] AS total,EM.[error_log],EM.[row_date]'

	SET @v_from_clause = 'FROM [AMDM_EVENT_MANAGEMENT] EM
		INNER JOIN [AMDM_EVENT_TYPE] ET ON EM.[event_type_id] = ET.[id]
		INNER JOIN [AMDM_EVENT_STATUS] ES ON EM.[event_status_id] = ES.[id]'

	IF ISNULL(@i_querycondition, '') <> ''
	BEGIN
		SET @i_querycondition = LOWER(@i_querycondition)
		SET @v_where_clause = CONCAT('WHERE EM.[file_name] LIKE ''', @i_querycondition, '%''')
	END
	ELSE
	BEGIN
		SET @v_where_clause = ''
	END	

	SET @v_order_clause = CONCAT(' ORDER BY EM.', @i_orderfield, ' ', @i_ordertype);
	
	SET @v_primary_key = 'EM.[id]';

	SET @v_lower_bound = @i_pageindex + 1;
	SET @v_upper_bound = @v_lower_bound + @i_pagesize - 1

	EXECUTE [PRC_AFW_PAGINATE_QUERY]
		@v_select_clause,
		@v_from_clause,
		@v_where_clause,
		@v_order_clause,
		@v_primary_key,
		@v_lower_bound,
		@v_upper_bound,
		@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_EVENTS_FOR_DEV_FILTER]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_EVENTS_FOR_DEV_FILTER] (
		@i_pageindex	INT,
	@i_pagesize		INT,
	@i_deviceid		INT,
	@i_searchstring NVARCHAR(MAX)	= NULL,
	@i_filterevents NVARCHAR(MAX)	= NULL,
	@i_startdate	DATE			= NULL,
	@i_finishdate	DATE			= NULL,
	@i_manprojectId INT				= NULL,
	@o_row_count    INT		OUTPUT
)
AS 
BEGIN
    DECLARE
		@selectClause	VARCHAR(MAX),
		@fromClause		VARCHAR(MAX),
		@whereClause	VARCHAR(MAX),
		@orderClause	VARCHAR(MAX),
		@primaryKey		VARCHAR(MAX),
		@lowerBound		INT,
		@upperBound		INT;

	-- SELECT
	SET @selectClause =
		'SELECT
			ad.devevent_id AS Id,
			ad3.deventtype_id AS DeviceEventType,
			ad.devevent_notificationtypeid AS NotificationEventType,
			ad.devevent_message AS [Message],
			ad.devevent_date AS [Date],
			ad.devevent_deviceid AS DeviceId,
			ad.devevent_userid AS UserId,
			ad2.name AS DeviceName,			
			(CASE WHEN u.user_nick_name IS NOT NULL 
				THEN pr.name + ''/'' + u.user_nick_name  
				ELSE '''' 
			END)
			AS UserName,
			pr.name AS ProviderName';

	-- FROM
	SET @fromClause = '
		FROM AMDM_DEVICEEVENT ad 
		LEFT OUTER JOIN AMDM_DEVICE ad2 ON ad2.id = ad.devevent_deviceid
		LEFT OUTER JOIN AFW_USERS u ON u.[user_id] = ad.devevent_userid
		LEFT OUTER JOIN AMDM_DEVICEEVENTTYPE ad3 ON ad3.deventtype_id = ad.devevent_evtypeid 
		LEFT OUTER JOIN AFW_LDAP pr ON u.user_authentication_id = pr.id';
	
	-- WHERE
	SET @whereClause = 'WHERE';

	IF @i_deviceid IS NOT NULL
	BEGIN
		SET @whereClause = CONCAT(
			@whereClause,
			' ad.devevent_deviceid = ',
			STR(@i_deviceid)
		);

	END;

	IF LEN(ISNULL(@i_searchstring, '')) > 0
	BEGIN
		SET @i_searchstring = CONCAT('''%', @i_searchstring, '%''');
		SET @whereClause = CONCAT(
			@whereClause,
			' AND ad.devevent_message LIKE ',
			@i_searchstring
		);

	END;

	IF LEN(ISNULL(@i_filterevents, '')) > 0
	BEGIN
		SET @whereClause = CONCAT(
			@whereClause,
			' AND ad3.deventtype_id IN (',
			@i_filterevents,
			')'
		);

	END;

	IF (
		@i_startdate IS NOT NULL
		AND @i_finishdate IS NOT NULL
	)
	BEGIN
		IF (@i_startdate = @i_finishdate)
		BEGIN
			SET @whereClause = CONCAT(
				@whereClause,
				' AND ad.devevent_date = ''',
				CAST(@i_startdate AS VARCHAR),
				''' '
			);

		END;
		ELSE
		BEGIN
			SET @whereClause = CONCAT(
				@whereClause,
				' AND ad.devevent_date BETWEEN ''',
				CAST(@i_startdate AS VARCHAR),
				''' AND ''',
				CAST(@i_finishdate AS VARCHAR),
				''' '
			);

		END;

	END;

	IF @i_manprojectId IS NOT NULL
	BEGIN
		SET @whereClause = CONCAT(
			@whereClause,
			' AND ad.devevent_manprojectid = ',
			STR(@i_manprojectId),
			' '
		);

	END;

	-- ORDER BY
	SET @orderClause = ' ORDER BY ad.devevent_date DESC ';

	-- Llave primaria
	SET @primaryKey = 'ad.devevent_id';
	
	-- Inicio y tamaño de página
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1;
	

	-- Llamar procedimiento de búsqueda con paginación
	EXECUTE [PRC_AFW_PAGINATE_QUERY]
		@selectClause,
		@fromClause,
		@whereClause,
		@orderClause,
		@primaryKey,
		@lowerBound,
		@upperBound,
		@o_row_count OUTPUT;

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_EVENTS_FOR_DEVICE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_EVENTS_FOR_DEVICE]
(
    @i_pageindex	INT,
    @i_pagesize		INT,
    @i_deviceid		INT
)
AS 
BEGIN
SET NOCOUNT ON;
SELECT TOP(@i_pagesize) * FROM 
(
    SELECT 
    ROW_NUMBER() OVER(ORDER BY ad.devevent_date DESC) AS INDX,
    ad.devevent_id AS Id,
    ad3.deventtype_id AS DeviceEventType,
    ad.devevent_notificationtypeid AS NotificationEventType,
    ad.devevent_message AS [Message],
    ad.devevent_date AS [Date],
    ad.devevent_deviceid AS DeviceId,
    ad.devevent_userid AS UserId,
    ad2.name AS DeviceName
    FROM AMDM_DEVICEEVENT ad 
    LEFT OUTER JOIN AMDM_DEVICE ad2 ON ad2.id = ad.devevent_deviceid
    LEFT OUTER JOIN AFW_USERS u ON u.[user_id] = ad2.user_id
    LEFT OUTER JOIN AMDM_DEVICEEVENTTYPE ad3 ON ad3.deventtype_id = ad.devevent_evtypeid
    WHERE ad.devevent_deviceid = CASE WHEN @i_deviceid <> 0 THEN @i_deviceid ELSE ad.devevent_deviceid END
) AS EventList 
WHERE EventList.INDX >= @i_pageindex	

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_EXPENSEPLANINFO]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_EXPENSEPLANINFO]
	@i_planId	INT,
	@o_row_count	INT					OUTPUT
AS
BEGIN

	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[planId]
		, [billingCycleDate]
		, [correctionFactor]
		, [costUnitData]
		, [costUnitVoice]
		, [createdDate]
		, [currencyId]
		, [dataSize]
		, [planDescription]
		, [exceptions]
		, [measureDataSize]
		, [measuerVoiceSize]
		, [planName]
		, [roamingCostUnitData]
		, [roamingCostUnitVoice]
		, [roamingDataSize]
		, [roamingVoiceSize]
		, [isShared]
		, [userId]
		, [fullUserName]
		, [voiceSize]
		, [carrierName]
		, [consumedLocalData]
		, [consumedLocalVoice]
		, [consumedRoamingData]
		, [consumedRoamingVoice]
		, [modificationDate]
		, [ruleSetExpensePlanId]
		, [consumedLocalVoiceCost]
		, [consumedRoamingVoiceCost]'		
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_ALLEXPENSEPLANS] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @whereClause = ' WHERE planId = ' + STR(@i_planId);

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY planId '

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'planId';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = 0;
	SET @upperBound = 0
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_FACTUPDATE_APPS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_FACTUPDATE_APPS]
AS
BEGIN 

	TRUNCATE TABLE [AMDM_REPORT_FACT_APPLICATIONS]

	INSERT INTO [AMDM_REPORT_FACT_APPLICATIONS]
	(	
		[dimPlatform],
		[dimAppSource],	
		[dimAppCategory],
		[meaApplicationCount]
	)

	SELECT 
		CASE WHEN GROUPING([dimPlatform])=1 THEN 'ALL' ELSE ISNULL([dimPlatform], 'UNKNOWN') END AS [dimPlatform],
		CASE WHEN GROUPING([dimAppSource])=1 THEN 'ALL' ELSE ISNULL([dimAppSource], 'UNKNOWN') END AS [dimAppSource],	
		CASE WHEN GROUPING([dimAppCategory])=1 THEN 'ALL' ELSE ISNULL([dimAppCategory], 'UNKNOWN') END AS [dimAppCategory],
		COUNT(1) [meaApplicationCount]
	FROM
	(SELECT 
		app.bundleid, 
		p.platf_name AS dimPlatform, 
		CASE 
			WHEN app.iscorporate = 1 THEN 'Corporate'
			ELSE 'Market'
		END AS 'dimAppSource',
		MAX(ad.appsinfodetail_genres) AS 'dimAppCategory'	
	FROM 
		AMDM_APPSINFORMATION app
		INNER JOIN AMDM_DEVICEPLATFORM p on p.platf_id = app.platform_id
		INNER JOIN AMDM_APPSINFORMATIONDETAIL ad on app.id = ad.appsinfodetail_appid
	WHERE app.issystem = 0
	GROUP BY 
		app.bundleid, 
		p.platf_name, 
		CASE 
			WHEN app.iscorporate = 1 THEN 'Corporate'
			ELSE 'Market'
		END
	) SUBQ1

	GROUP BY CUBE ( [dimPlatform],
		[dimAppSource],	
		[dimAppCategory]
	)
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_FACTUPDATE_DEVICES]...';


GO

CREATE PROCEDURE [dbo].[PRC_AMDM_FACTUPDATE_DEVICES]
AS
BEGIN 

	TRUNCATE TABLE [AMDM_REPORT_FACT_DEVICES]

	INSERT INTO [AMDM_REPORT_FACT_DEVICES]

	SELECT 
		  CASE WHEN GROUPING(dimDevStatus     )=1 THEN 'ALL' ELSE ISNULL(dimDevStatus, 'UNKNOWN')     END AS dimDevStatus
		, CASE WHEN GROUPING(dimPlatform      )=1 THEN 'ALL' ELSE ISNULL(dimPlatform, 'UNKNOWN')      END AS dimPlatform
		, CASE WHEN GROUPING(dimManufacturer  )=1 THEN 'ALL' ELSE ISNULL(dimManufacturer, 'UNKNOWN')  END AS dimManufacturer
		, CASE WHEN GROUPING(dimDevType       )=1 THEN 'ALL' ELSE ISNULL(dimDevType, 'UNKNOWN')       END AS dimDevType
		, CASE WHEN GROUPING(dimSecurityState )=1 THEN 'ALL' ELSE ISNULL(dimSecurityState, 'UNKNOWN') END AS dimSecurityState
		, CASE WHEN GROUPING(dimPropertyType  )=1 THEN 'ALL' ELSE ISNULL(dimPropertyType, 'UNKNOWN')  END AS dimPropertyType
		, CASE WHEN GROUPING(dimEnrollDate    )=1 THEN 'ALL' ELSE ISNULL(dimEnrollDate, 'UNKNOWN')    END AS dimEnrollDate
		, CASE WHEN GROUPING(dimLastSeenDate  )=1 THEN 'ALL' ELSE ISNULL(dimLastSeenDate, 'UNKNOWN')  END AS dimLastSeenDate
		, CASE WHEN GROUPING(dimOsVersion     )=1 THEN 'ALL' ELSE ISNULL(dimOsVersion, 'UNKNOWN')     END AS dimOsVersion
		, CASE WHEN GROUPING(dimDevModel      )=1 THEN 'ALL' ELSE ISNULL(dimDevModel, 'UNKNOWN')      END AS dimDevModel
		, CASE WHEN GROUPING(dimSimCarrier    )=1 THEN 'ALL' ELSE ISNULL(dimSimCarrier, 'UNKNOWN')    END AS dimSimCarrier
		, CASE WHEN GROUPING(dimPolicy        )=1 THEN 'ALL' ELSE ISNULL(dimPolicy, 'UNKNOWN')        END AS dimPolicy
		, COUNT(1)                                                                                        AS meaDeviceCount
	FROM
	(
		  SELECT 
				 d.StatusName                                                                             AS dimDevStatus,   
				 d.PlatformName                                                                           AS dimPlatform,                 
				 d.Manufacturer                                                                           AS dimManufacturer,
				 [Type]                                                                                   AS dimDevType,                                                    
				 convert(varchar(10),d.IsSecure)                                                          AS dimSecurityState,
				 CASE  CorporateOwned						                                                  
					  WHEN 1 THEN 'Company'					                                                  
					  ELSE 'User'							                                                  
				  END                                                                                     AS dimPropertyType,
				 CASE
					  WHEN d.EnrollmentDate BETWEEN DATEADD(Week, -1, GETUTCDATE()) AND GETUTCDATE() THEN 'Last week'
					  WHEN d.EnrollmentDate BETWEEN DATEADD(Month, -1, GETUTCDATE()) AND DATEADD(Week, -1, GETUTCDATE()) THEN 'Last month'
					  WHEN d.EnrollmentDate < DATEADD(Month, -1, GETUTCDATE()) THEN 'Before last month'
				  END                                                                                    AS dimEnrollDate,
				 CASE
					  WHEN d.LastReport BETWEEN DATEADD(Week, -1, GETUTCDATE()) AND GETUTCDATE() THEN 'Last week'
					  WHEN d.LastReport BETWEEN DATEADD(Month, -1, GETUTCDATE()) AND DATEADD(Week, -1, GETUTCDATE()) THEN 'Last month'
					  WHEN d.LastReport < DATEADD(Month, -1, GETUTCDATE()) THEN 'Before last month'
				  END                                                                                     AS dimLastSeenDate,
				d.OsVersion                                                                               AS dimOsVersion,
				d.Model                                                                                   AS dimDevModel,
				d.CurrentNetworkCarrier                                                                   AS dimSimCarrier,
				d.PolicyName                                                                              AS dimPolicy  
		  FROM  dbo.VIEW_AMDM_ALLDEVICELIST d 
		  WHERE d.UDI NOT LIKE ('$$%')
	) AS SUBQ   
    
	GROUP BY CUBE 
	( 
		  [dimDevStatus]
		, [dimPlatform]
		, [dimManufacturer]
		, [dimDevType]
		, [dimSecurityState]
		, [dimPropertyType]
		, [dimEnrollDate]
		, [dimLastSeenDate]
		, [dimOsVersion]
		, [dimDevModel]
		, [dimSimCarrier]
		, [dimPolicy]
		)
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_FACTUPDATE_ENROLLMENT]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_FACTUPDATE_ENROLLMENT]
AS
BEGIN

TRUNCATE TABLE [AMDM_REPORT_FACT_ENROLLMENTS]


INSERT INTO [AMDM_REPORT_FACT_ENROLLMENTS]

SELECT
    [dimDate],
    CASE 
         WHEN GROUPING([dimPlatform])=1 THEN 'ALL' 
         ELSE ISNULL([dimPlatform], 'UNKNOWN') 
    END AS [dimPlatform],
    CASE 
         WHEN GROUPING([dimEnrollmentStatus])=1 THEN 'ALL' 
         ELSE ISNULL([dimEnrollmentStatus], 'UNKNOWN') 
    END AS [dimEnrollmentStatus],
    COUNT(1) [measEnrollments]
FROM
(
           SELECT
                  CONVERT (datetime, pe.penr_requestdate) as [dimDate],
                  pl.platf_name                           as [dimPlatform],
                  s.enrstat_name                          as [dimEnrollmentStatus] 
           FROM AMDM_PENDINGENROLL      pe
           JOIN AMDM_DEVICEPLATFORM     pl  ON pl.platf_id  = pe.penr_platformid
           JOIN AMDM_DEVICEENROLLSTATUS s   ON s.enrstat_id = pe.penr_statusid	
		   WHERE penr_statusid = 2 
		   AND   penr_errorid  = 0
) AS SUBQ1
           
GROUP BY CUBE 
(
   [dimDate],
   [dimPlatform],
   [dimEnrollmentStatus]
)

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_FACTUPDATE_POLICIES]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_FACTUPDATE_POLICIES]
AS
BEGIN

TRUNCATE TABLE [AMDM_REPORT_FACT_POLICIES]

INSERT INTO [AMDM_REPORT_FACT_POLICIES]

SELECT 
      CASE 
                WHEN GROUPING([dimPolicyStatus])=1 THEN 'ALL' 
                ELSE ISNULL([dimPolicyStatus], 'UNKNOWN') 
      END                                                      AS [dimPolicyStatus]
    , CASE 
                WHEN GROUPING([dimPlatform])=1 THEN 'ALL' 
                ELSE ISNULL([dimPlatform], 'UNKNOWN') 
      END                                                      AS [dimPlatform]
    , SUM ([meaFulfillCount])                                  AS [meaFulfillCount]
    , SUM([meaNotFulfillCount])                                AS [meaNotFulfillCount]
    , COUNT(1)                                                 AS [meaPolicyCount]
FROM
(
    --No tiene en cuenta las politicas borradas
    SELECT 
          AMDM_POLICYSTATUSTYPE.polstatype_name AS [dimPolicyStatus],
          AMDM_DEVICEPLATFORM.platf_name        AS [dimPlatform],
          (   
		      --Cuenta cuantos dispositivos cumplen con la politica
              SELECT COUNT(*) 
              FROM AMDM_DEVICE 
              WHERE 
                  policy_id        = AMDM_POLICY.policy_id  
              AND fulfilledpolicy  = 1  
              AND status_id        = 0
          )                                     AS [meaFulfillCount],
          (   
		     --Cuenta cuantos dispositivos NO cumplen con la politica
              SELECT COUNT(*) 
              FROM AMDM_DEVICE 
              WHERE 
                  policy_id        = AMDM_POLICY.policy_id 
              AND fulfilledpolicy  = 0 
              AND status_id        = 0
          )                                     AS [meaNotFulfillCount]   
    FROM  AMDM_POLICY 
    JOIN  AMDM_DEVICEPLATFORM     ON AMDM_POLICY.policy_platformid           = AMDM_DEVICEPLATFORM.platf_id
    JOIN  AMDM_POLICYSTATUSTYPE   ON AMDM_POLICYSTATUSTYPE.polstatype_id     = AMDM_POLICY.policy_status
	WHERE AMDM_POLICYSTATUSTYPE.polstatype_id <> 4
) AS SUBQ1
    
GROUP BY CUBE 
( 
   [dimPolicyStatus],
   [dimPlatform]
) 

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_GETDEVICECOUNTBYAPP]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_GETDEVICECOUNTBYAPP]
	@i_platformid	INTEGER,
	@i_packagename	NVARCHAR(MAX),
	@o_devicecount	INTEGER		OUTPUT
AS
BEGIN
	DECLARE @totalDevices INT;
	DECLARE @hasDeviceCount BIT;

	SELECT 
		@totalDevices = COUNT(DISTINCT sw.device_id)
	FROM AMDM_DEVICESOFTWARE sw
		INNER JOIN AMDM_DEVICE d ON sw.device_id = d.id
	WHERE
	sw.packagename = @i_packagename
		AND d.status_id = 0 
		AND d.platform_id = @i_platformid

	IF @totalDevices > 0
	BEGIN
		SET @hasDeviceCount = 1;
	END
	ELSE
	BEGIN
		SET @hasDeviceCount = 0;
	END

	UPDATE AMDM_APPSINFORMATION 
	SET devicecount = @totalDevices, hasdevicecount = @hasDeviceCount 
	WHERE bundleid = @i_packagename 
		AND platform_id = @i_platformid;

	SET @o_devicecount = @totalDevices;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_GROUP_USER_HIERACHY]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_GROUP_USER_HIERACHY]
@group_ids varchar(MAX),
@group_out varchar(MAX) OUT 
AS
BEGIN
DECLARE
@group_aux  varchar(MAX),
@return int

	SET NOCOUNT ON;
	
	IF @group_out IS NULL
	BEGIN
    SET @group_out = ''
	END

	SET @group_aux = (
	SELECT CAST(grou_id AS VARCHAR) + ',' FROM AFW_GROUPS
	WHERE ',' + @group_ids + ',' LIKE '%,' + CAST(grou_parent as VARCHAR)  + ',%'
	FOR XML PATH ('')
	)
	
	IF @group_aux IS NOT NULL
	BEGIN
	  SET @group_out = @group_out + ISNULL(@group_aux,'')
	  EXEC @return = [dbo].[PRC_AMDM_GROUP_USER_HIERACHY]
		   @group_ids = @group_aux,
		   @group_out = @group_out OUTPUT 
	END			
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_HIDDENPACKAGES_LIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_HIDDENPACKAGES_LIST]
	@i_pageIndex            INT,
	@i_pageSize             INT,
	@i_queryCondition       NVARCHAR(MAX)		= NULL,
	
	@i_orderField           NVARCHAR(max)		= NULL,
	@i_orderType            NVARCHAR(max)		= NULL,
	@o_rowCount             INT					OUTPUT

AS
BEGIN


	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @searchQuery    VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[AMDM_HIDDEN_PACKAGE].[id]
		, [AMDM_HIDDEN_PACKAGE].[name]
		, [AMDM_HIDDEN_PACKAGE].[package] '
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [AMDM_HIDDEN_PACKAGE] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @searchQuery = ' WHERE 1 = 1 ';

	-- Agregar cadena de búsqueda si es necesario
	IF @i_queryCondition IS NOT NULL AND  LEN(@i_queryCondition)>0
	BEGIN
		SET @searchQuery = CONCAT(@searchQuery, ' AND (
			name LIKE ''%', @i_queryCondition, '%'' OR 
			package LIKE ''%', @i_queryCondition, '%''
		)'); 			
	END

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY ' + @i_orderField + ' ' + @i_orderType;

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'AMDM_HIDDEN_PACKAGE.id';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageIndex + 1;
	SET @upperBound = @lowerBound + @i_pageSize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@searchQuery,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_rowCount OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_HIERARCHY_GROUPS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_HIERARCHY_GROUPS]
(
	@i_operation VARCHAR(20),
	@i_groupid   INT       
)
AS
BEGIN

    /*=========================================================================================================*/
	/* RELACION DE PADRES, DADO UN GRUPO DE ORIGEN DERIVAR SUS POSIBLES PARENTS                                */
	/*=========================================================================================================*/
	IF @i_operation = 'P'
	BEGIN
		--PARENTS
		WITH [RecursiveTree] AS
		(
			SELECT	[grou_id], 
					[grou_parent], 
					[grou_name] 
			FROM	[AFW_GROUPS] 
			WHERE	[grou_id] = @i_groupid
			UNION   ALL
			SELECT	[Parent].[grou_id],
					[Parent].[grou_parent], 
					[Parent].[grou_name]
			FROM	[AFW_GROUPS] AS [Parent] 
					JOIN [RecursiveTree] ON [Parent].[grou_id] = [RecursiveTree].[grou_parent]
		)
		SELECT [grou_id], [grou_parent], [grou_name], [guserspolicy_policyid] 
		FROM [RecursiveTree]
		LEFT JOIN AMDM_GROUPUSERS_POLICY ON (AMDM_GROUPUSERS_POLICY.guserspolicy_groupid = grou_id)
		
	END

	/*=========================================================================================================*/
	/* RELACION DE HIJOS, DADO UN GRUPO DE ORIGEN DERIVAR SUS POSIBLES DESCENDIENTES                           */
	/*=========================================================================================================*/
	IF @i_operation = 'C'
	BEGIN
			--CHILDS
			WITH [RecursiveTree] 
			AS (
				-- Anchor
				SELECT	[grou_id], 
					[grou_parent], 
					[grou_name]
				FROM	[AFW_GROUPS]
				WHERE	[grou_id] = @i_groupid
				UNION ALL
				-- Recursive Member
				SELECT	[Child].[grou_id],
					[Child].[grou_parent], 
					[Child].[grou_name]
				FROM	[AFW_GROUPS] AS [Child]
						JOIN [RecursiveTree] AS [Parent] ON [Child].[grou_parent] = [Parent].[grou_id]
			)
			SELECT [grou_id], [grou_parent], [grou_name], [guserspolicy_policyid] 
			FROM [RecursiveTree]
			LEFT JOIN AMDM_GROUPUSERS_POLICY ON (AMDM_GROUPUSERS_POLICY.guserspolicy_groupid = grou_id)

	END

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_MAINTENANCEDATABASE]...';


GO
/*************************************************************************
Procedimiento para archivamiento de registros historicos
Ultima actualización: 29/05/2018
**************************************************************************/
CREATE PROCEDURE [dbo].[PRC_AMDM_MAINTENANCEDATABASE]
	
	/*Tiempo en dias de antigüedad mínima de registros a conservar*/
	@i_daysbefore INT	

AS
BEGIN
	--Tabla temporal para ids de sentCommands a eliminar
	DECLARE
		@vt_commands_delete TABLE (
			sentcmd_id INT,
			sentcmd_requestid INT
		);

	-- Llenado de tabla temporal de ids de comandos completados y expirados antiguos
	INSERT INTO @vt_commands_delete (
		sentcmd_id,
		sentcmd_requestid
	)
	SELECT
		sentcmd_id,
		sentcmd_requestid
	FROM AMDM_SENTCOMMAND sc
	WHERE sc.sentcmd_sendDate < DATEADD(DD, -@i_daysbefore, GETUTCDATE())
		AND (
			sc.sentcmd_statusid = 2
			OR sc.sentcmd_expirydate < DATEADD(DD, -@i_daysbefore, GETUTCDATE())
			AND sc.sentcmd_statusid = 0
		);

	/* Delete AMDM_REQACTIONPARAM */
	/* Eliminar y copiar registros históricos */
	WHILE @@ROWCOUNT > 0
	BEGIN
		DELETE TOP (10000)
			ap
		OUTPUT
			deleted.actparams_id,
			deleted.actparams_actionid,
			deleted.actparams_paramname,
			deleted.actparams_paramvalue
		INTO AMDM_HISTORY_REQACTIONPARAM (
			actparams_id,
			actparams_actionid,
			actparams_paramname,
			actparams_paramvalue
		)
		FROM AMDM_REQACTIONPARAM ap
		JOIN AMDM_COMMANDREQUESTACTION ra ON ra.reqaction_id = ap.actparams_actionid
		JOIN @vt_commands_delete cd ON cd.sentcmd_requestid = ra.reqaction_requestid;

	END;

	/* Delete AMDM_COMMANDREQUESTACTION */
	/* Eliminar y copiar registros históricos */
	WHILE @@ROWCOUNT > 0
	BEGIN
		DELETE TOP (10000)
			ra
		OUTPUT
			deleted.reqaction_id,
			deleted.reqaction_requestid,
			deleted.reqaction_actiontypeid
		INTO AMDM_HISTORY_COMMANDREQACTION (
			reqaction_id,
			reqaction_requestid,
			reqaction_actiontypeid
		)
		FROM AMDM_COMMANDREQUESTACTION ra
		JOIN @vt_commands_delete cd ON cd.sentcmd_requestid = ra.reqaction_requestid;

	END;

	/* Delete AMDM_CMDREQ_SCRIPTCMD_STATUS */
	/* Eliminar registros */
	WHILE @@ROWCOUNT > 0
	BEGIN
		DELETE TOP (10000)
			ss
		FROM AMDM_CMDREQ_SCRIPTCMD_STATUS ss
		JOIN @vt_commands_delete cd ON cd.sentcmd_requestid = ss.commandrequest_id;

	END;

	/* Delete AMDM_COMMANDREQUEST */
	/* Eliminar y copiar registros históricos */
	WHILE @@ROWCOUNT > 0
	BEGIN
		DELETE TOP (10000)
			cr
		OUTPUT
			deleted.cmdreq_id,
			deleted.cmdreq_policyid,
			deleted.cmdreq_ruleid,
			deleted.cmdreq_expenseid,
			deleted.cmdreq_requestdate,
			deleted.cmdreq_commandtypeid,
			deleted.cmdreq_targettypeid,
			deleted.cmdreq_deviceid,
			deleted.cmdreq_groupid,
			deleted.cmdreq_userid,
			deleted.cmdreq_manprojectid
		INTO AMDM_HISTORY_COMMANDREQUEST (
			cmdreq_id,
			cmdreq_policyid,
			cmdreq_ruleid,
			cmdreq_expenseid,
			cmdreq_requestdate,
			cmdreq_commandtypeid,
			cmdreq_targettypeid,
			cmdreq_deviceid,
			cmdreq_groupid,
			cmdreq_userid,
			cmdreq_manprojectid
		)
		FROM AMDM_COMMANDREQUEST cr
		JOIN @vt_commands_delete cd ON cd.sentcmd_requestid = cr.cmdreq_id;

	END;

	/* Delete AMDM_SENTCOMMAND */
	/* Eliminar y copiar registros históricos */
	WHILE @@ROWCOUNT > 0
	BEGIN
		DELETE TOP(10000)
			sc
		OUTPUT
			deleted.sentcmd_id,
			deleted.sentcmd_requestid,
			deleted.sentcmd_statusid,
			deleted.sentcmd_deviceid,
			deleted.sentcmd_expirydate,
			deleted.sentcmd_errortypeid,
			deleted.sentcmd_uuid,
			deleted.sentcmd_targetprotocolid,
			deleted.sentcmd_sendDate,
			deleted.sentcmd_fetchDate,
			deleted.sentcmd_answerDate
		INTO AMDM_HISTORY_SENTCOMMAND (
			sentcmd_id,
			sentcmd_requestid,
			sentcmd_statusid,
			sentcmd_deviceid,
			sentcmd_expirydate,
			sentcmd_errortypeid,
			sentcmd_uuid,
			sentcmd_targetprotocolid,
			sentcmd_sendDate,
			sentcmd_fetchDate,
			sentcmd_answerDate
		)
		FROM AMDM_SENTCOMMAND sc
		JOIN @vt_commands_delete cd ON cd.sentcmd_id = sc.sentcmd_id;

	END;

	/* Delete AMDM_COMMANDREQUEST */
	/* Eliminar registros */
	WHILE @@ROWCOUNT > 0
	BEGIN
		DELETE TOP (10000)
		FROM AMDM_DEVICEEXPENSE
		WHERE devexp_lastupdate < DATEADD(DD, -90, GETUTCDATE());

	END;

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_MANAGEMENTPROJECTINFO]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_MANAGEMENTPROJECTINFO]
	@i_projectId	INT,
	@o_row_count	INT					OUTPUT
AS
BEGIN

	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[projectId] 
		, [projectName]
		, [startDate]
		, [finishDate]
		, [statusId]
		, [userId]
		, [statusName]
		, [fullUserName]
		, [createdDate]
		, [actionName]'		
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_ALLMANPROJECTS] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @whereClause = ' WHERE projectId = ' + STR(@i_projectId);

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY projectId '

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'projectId';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = 0;
	SET @upperBound = 0
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_MARK_EXP_UNENROLL_DEV]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_MARK_EXP_UNENROLL_DEV]
	@i_datestart datetime,
	@i_deviceid int
AS

UPDATE AMDM_DEVICEEXPENSE
SET
  devexp_active = 0
WHERE
   devexp_deviceid = @i_deviceid AND
   devexp_lastupdate >= @i_datestart
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_MOBILEMANUFACTURERS_LIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_MOBILEMANUFACTURERS_LIST]
	@i_pageIndex            INT,
	@i_pageSize             INT,
	@i_queryCondition       NVARCHAR(MAX)		= NULL,
	
	@i_orderField           NVARCHAR(max)		= NULL,
	@i_orderType            NVARCHAR(max)		= NULL,
	@o_rowCount             INT					OUTPUT

AS
BEGIN


	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @searchQuery    VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @selectClause = 
	'SELECT
		[mobman_id]
		, [mobman_name]'
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [AMDM_MOBILEMANUFACTURERS] '; 
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @searchQuery = ' WHERE 1 = 1 ';

	-- Agregar cadena de búsqueda si es necesario
	IF @i_queryCondition IS NOT NULL AND  LEN(@i_queryCondition)>0
	BEGIN
		SET @searchQuery = CONCAT(@searchQuery, ' AND mobman_name LIKE ''%', @i_queryCondition, '%'' '); 			
	END

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = CONCAT(' ORDER BY ', @i_orderField, ' ', @i_orderType);

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'mobman_id';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageIndex + 1;
	SET @upperBound = @lowerBound + @i_pageSize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@searchQuery,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_rowCount OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_POLICY_FULFILLMENT]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_POLICY_FULFILLMENT]
	@i_idpolicy INT	
AS
     
DECLARE @policyversion INT

SET @policyversion = (SELECT policy_version FROM AMDM_POLICY
WHERE policy_id = @i_idpolicy)

SELECT
(SELECT COUNT(*) 
FROM AMDM_DEVICE d
WHERE d.policy_id = @i_idpolicy
AND d.status_id = 0
AND d.policyversion = @policyversion) AS currentversion,

(SELECT COUNT(*) 
FROM AMDM_DEVICE d
WHERE d.policy_id = @i_idpolicy
AND d.status_id = 0
AND (d.policyversion <> @policyversion OR d.policyversion IS NULL)) AS previousversion,

(SELECT COUNT(*) 
FROM AMDM_DEVICE d
WHERE d.policy_id = @i_idpolicy
AND d.status_id = 0
AND d.policyversion = @policyversion
AND d.fulfilledpolicy = 1) AS currentfulfill,

(SELECT COUNT(*) 
FROM AMDM_DEVICE d
WHERE d.policy_id = @i_idpolicy
AND d.status_id = 0
AND d.policyversion = @policyversion
AND d.fulfilledpolicy = 0) AS currentnotfulfill,

(SELECT COUNT(*) 
FROM AMDM_DEVICE d
WHERE d.policy_id = @i_idpolicy
AND d.status_id = 0
AND (d.policyversion <> @policyversion OR d.policyversion IS NULL)
AND d.fulfilledpolicy = 1) AS previousfulfill,

(SELECT COUNT(*) 
FROM AMDM_DEVICE d
WHERE d.policy_id = @i_idpolicy
AND d.status_id = 0
AND (d.policyversion <> @policyversion OR d.policyversion IS NULL)
AND d.fulfilledpolicy = 0) AS previousnotfulfill
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_POLICYLIST]...';


GO

CREATE PROCEDURE [dbo].[PRC_AMDM_POLICYLIST]
(
	@i_pageindex		INT,
	@i_pagesize			INT,
	@i_querycondition	NVARCHAR(MAX)		= NULL,
	@i_orderfield		NVARCHAR(MAX)		= NULL,
	@i_ordertype		NVARCHAR(MAX)		= NULL,
  
	/*Filtros*/
	/*Plataforma*/
	@i_isApple			BIT,
	@i_isAndroid		BIT,
	@i_isWindows		BIT,
  
	/*Estado*/
	@i_isEditing		BIT,
	@i_isApproved		BIT,
	@i_isReleased		BIT,

	/*Items Android*/
	@i_isGeneric		BIT					= NULL,
	@i_isAFW			BIT					= NULL,
	@o_row_count		INT	OUTPUT
)

AS
BEGIN
	SET NOCOUNT ON;
	
	IF @i_querycondition = '%'
	   SET @i_querycondition = '*'

	IF LEN(ISNULL(@i_querycondition,'')) = 0
		SET @i_querycondition = ''
	ELSE
		SET @i_querycondition = LOWER(@i_querycondition)
		  
		IF LOWER(@i_ordertype) = 'asc'
			SET @i_orderfield = LOWER(@i_orderfield)+'_asc'
		ELSE
			SET @i_orderfield = LOWER(@i_orderfield)+'_desc'

	--VALIDAR LA CONDICION DE TODOS EN BLANCO SIGNIFICA SIN FILTROS -> ENTONCES TODOS EN TRUE EN CADA CATEGORIA

	/*plataforma*/
    IF @i_isApple='False' AND @i_isAndroid = 'False' AND @i_isWindows = 'False'
	BEGIN
		SET @i_isApple='True'
		SET @i_isAndroid = 'True'
		SET @i_isWindows = 'True'
	END
	
	/*Estado*/
	IF @i_isEditing='False' AND @i_isApproved = 'False' AND @i_isReleased = 'False'
	BEGIN
		SET @i_isEditing	='True'
		SET @i_isApproved	='True'
		SET @i_isReleased	='True'
	END

	DECLARE
	@init				INT,
	@size				INT,
	@androidItems		VARCHAR(8)

	IF(@i_isGeneric <> @i_isAFW)
		BEGIN
			IF(@i_isGeneric = 'True' AND @i_isAFW = 'False')
				SET @androidItems = 'Generic'
			ELSE
				SET @androidItems = 'AFW'
		END
	ELSE
		SET @androidItems = 'All'

	/*Conteo de políticas*/
	SELECT	@o_row_count = COUNT(1)	
	FROM
	(
		SELECT 
		ROW_NUMBER() OVER(ORDER BY p.policy_id ASC)-1 AS INDX							    		
		FROM dbo.AMDM_POLICY AS p 				
		LEFT JOIN [AFW_USERS] AS uscre ON p.policy_createby = uscre.[user_id]
		LEFT JOIN [AFW_USERS] AS usmodd ON usmodd.[user_id] = p.policy_modifiedby 
		LEFT JOIN AMDM_POLICYSTATUSTYPE AS posttype ON posttype.polstatype_id = p.policy_status	
		LEFT JOIN AMDM_DEVICEPLATFORM ad ON ad.platf_id = p.policy_platformid								
		WHERE 
		posttype.polstatype_name <> 'Removed' AND
		(
			p.policy_policyname LIKE '%'+@i_querycondition+'%' OR 
			uscre.[user_name] LIKE '%'+@i_querycondition+'%'OR 
			usmodd.[user_name]  LIKE '%'+@i_querycondition+'%' OR 
			p.policy_version LIKE '%'+@i_querycondition+'%' OR 
			usmodd.[user_phone1] LIKE '%'+@i_querycondition+'%' OR 
			usmodd.user_email LIKE '%'+@i_querycondition+'%' OR 
			ad.platf_name LIKE'%'+@i_querycondition+'%'
		) AND 
		/*filtros de plataforma*/
		(
			(ad.[platf_name] = CASE @i_isAndroid WHEN 'True' THEN 'Android' END AND 
				CASE WHEN @i_isAndroid = 'True'
					THEN
						CASE WHEN @androidItems = 'All'
							THEN 1							
						ELSE
							CASE WHEN @androidItems = 'Generic'
								THEN policy_isgeneric
								ELSE policy_isafw
							END
						END
					ELSE 1
				END 
				= 1) OR 
			(ad.[platf_name] = CASE @i_isApple WHEN 'True' THEN 'iOS' END) OR
			(ad.[platf_name] = CASE @i_isWindows WHEN 'True' THEN 'Windows' END)
		) AND 
		/* filtros de estado*/
		(
			(posttype.polstatype_name = CASE @i_isEditing WHEN 'True' THEN 'Editing' END) OR 
			(posttype.polstatype_name = CASE @i_isApproved WHEN 'True' THEN 'Approved' END) OR 
			(posttype.polstatype_name = CASE @i_isReleased WHEN 'True' THEN 'Released' END)
		)
	) AS [AllPolicies]

    SET @init = @i_pageindex

	IF @i_pagesize>0
		SET @size = @i_pageindex+@i_pagesize-1
	ELSE 
		SET @size = @o_row_count

	/*Consulta de políticas*/
    SELECT
	[PolicyEnabled].INDX,
	[PolicyEnabled].policy_id AS [PolicyId],
	[PolicyEnabled].policy_policyname AS [PolicyName],
	[PolicyEnabled].Creator AS [CreatedByUser],
	[PolicyEnabled].policy_lastmodified AS [LastModified],
	[PolicyEnabled].policy_lastapproved AS [LastApproval],
	piy.politemtype_id AS [Type],
	piy.politemtype_name AS [TypeName],
	pitp.politemparam_policyitemid AS [IdItem],
	pitp.politemparam_id AS [ParamID],
	pitp.politemparam_name AS [name],
	pitp.politemparam_value AS [value],
	pitp.politemparam_parammainappid AS [MainParamApp],
	[PolicyEnabled].modifiedUser AS [ModifyByUser],
	PolicyEnabled.PhoneModifyUser AS [PhoneModifyUser],
	PolicyEnabled.EmailModifyUser AS [EmailModifyUser],
	PolicyEnabled.[Status] AS PolicyStatus,
	pl.platf_id AS [Platform],
	[PolicyEnabled].policy_version AS [PolicyVersion],
	[PolicyEnabled].[CreateDate],
	[PolicyEnabled].policy_isgeneric AS [IsGeneric],
	[PolicyEnabled].policy_isafw AS [IsAFW],
	(SELECT COUNT(1) FROM AMDM_DEVICE AS devices WHERE devices.policy_id = [PolicyEnabled].policy_id AND devices.status_id = 0) AS TotalDeviceCount 
	FROM  
    (
		SELECT *
		FROM
		(
			SELECT
			ROW_NUMBER() OVER
			(
				ORDER BY 
				CASE @i_orderfield WHEN 'policyname_asc' THEN p.policy_policyname END ASC, 
				CASE @i_orderfield WHEN 'policyname_desc' THEN p.policy_policyname END DESC,
									
				CASE @i_orderfield WHEN 'createdbyuser_asc' THEN uscre.[user_name] END ASC, 
				CASE @i_orderfield WHEN 'createdbyuser_desc' THEN uscre.[user_name] END DESC,
					
				CASE @i_orderfield WHEN 'modifiedbyuser_asc' THEN usmodd.[user_name] END ASC, 
				CASE @i_orderfield WHEN 'modifiedbyuser_desc' THEN usmodd.[user_name] END DESC,
					
				CASE @i_orderfield WHEN 'policystatus_asc' THEN  p.[policy_status] END ASC, 
				CASE @i_orderfield WHEN 'policystatus_desc' THEN  p.[policy_status] END DESC,
					
				CASE @i_orderfield WHEN 'lastapproval_asc' THEN p.policy_lastapproved END ASC, 
				CASE @i_orderfield WHEN 'lastapproval_desc' THEN p.policy_lastapproved END DESC,
										
				CASE @i_orderfield WHEN 'lastmodified_asc' THEN p.policy_lastmodified END ASC,
				CASE @i_orderfield WHEN 'lastmodified_desc' THEN p.policy_lastmodified END DESC,

				CASE @i_orderfield WHEN 'platform_asc' THEN ad.[platf_name] END ASC,
				CASE @i_orderfield WHEN 'platform_desc' THEN ad.[platf_name] END DESC,	
						
				CASE @i_orderfield WHEN 'policyversion_asc' THEN p.policy_version END ASC,
				CASE @i_orderfield WHEN 'policyversion_desc' THEN p.policy_version END DESC					    
			)-1 AS INDX,
			p.policy_id,
			p.policy_platformid,
			p.policy_policyname,
			p.policy_createdate AS [CreateDate],
			p.policy_lastmodified,
			p.policy_lastapproved,
			p.[policy_status] AS [Status],
			p.policy_version,
			uscre.[user_id] AS CreatorID, 
			usmodd.[user_id] AS ModifierID,						 
			uscre.[user_name] AS Creator, 
			uscre.[user_id] AS userCreator, 
			usmodd.[user_name] AS modifiedUser, 
			usmodd.[user_id] AS usermod,
			usmodd.[user_phone1] AS PhoneModifyUser,
			usmodd.user_email AS EmailModifyUser,
			p.policy_isgeneric,
			p.policy_isafw
			FROM dbo.AMDM_POLICY AS p 
			LEFT JOIN [AFW_USERS] AS uscre ON p.policy_createby = uscre.[user_id]
			LEFT JOIN [AFW_USERS] AS usmodd ON usmodd.[user_id] = p.policy_modifiedby 									
			LEFT JOIN AMDM_POLICYSTATUSTYPE AS posttype ON posttype.polstatype_id = p.policy_status	
			LEFT JOIN AMDM_DEVICEPLATFORM ad ON ad.platf_id = p.policy_platformid								
			WHERE 
			posttype.polstatype_name <> 'Removed' AND 
			(
				p.policy_policyname LIKE '%'+@i_querycondition+'%' OR 
				uscre.[user_name] LIKE '%'+@i_querycondition+'%' OR 
				usmodd.[user_name]  LIKE '%'+@i_querycondition+'%' OR 
				p.policy_version LIKE '%'+@i_querycondition+'%' OR 
				usmodd.user_phone1 LIKE '%'+@i_querycondition+'%'OR 
				usmodd.user_email LIKE '%'+@i_querycondition+'%'OR 
				ad.platf_name LIKE'%'+@i_querycondition+'%' 
			)
			AND
			/*filtros de plataforma*/	
			(
				(ad.[platf_name] = CASE @i_isAndroid WHEN 'True' THEN 'Android' END AND 
					CASE WHEN @i_isAndroid = 'True'
						THEN
							CASE WHEN @androidItems = 'All'
								THEN 1							
							ELSE
								CASE WHEN @androidItems = 'Generic'
									THEN policy_isgeneric
									ELSE policy_isafw
								END
							END
						ELSE 1
					END 
				= 1) OR 
				(ad.[platf_name] = CASE @i_isApple WHEN 'True' THEN 'iOS' END) OR 
				(ad.[platf_name] = CASE @i_isWindows WHEN 'True' THEN 'Windows' END)
			) AND
			/* filtros de estado*/
			(
				(posttype.polstatype_name = CASE @i_isEditing WHEN 'True' THEN 'Editing' END) OR 
				(posttype.polstatype_name = CASE @i_isApproved WHEN 'True' THEN 'Approved' END) OR
				(posttype.polstatype_name = CASE @i_isReleased WHEN 'True' THEN 'Released' END)
			) 
		) AS [AllPolicies]
		WHERE [AllPolicies].INDX BETWEEN @init AND @size
	) AS [PolicyEnabled]
    
    LEFT JOIN dbo.AMDM_POLICYITEM AS [pit] ON [PolicyEnabled].policy_id = pit.politem_policyid	
    LEFT JOIN dbo.AMDM_POLICYITEMTYPEPARAMETER AS [pitp] ON pit.politem_id = pitp.politemparam_policyitemid  
    LEFT JOIN dbo.AMDM_DEVICEPLATFORM pl ON [PolicyEnabled].policy_platformid = pl.platf_id	
    LEFT JOIN dbo.AMDM_POLICYITEMTYPE piy ON	piy.politemtype_id = pit.politem_policyitemtype
	
	ORDER BY

	CASE @i_orderfield WHEN 'policyname_asc' THEN [PolicyEnabled].policy_policyname END ASC, 
	CASE @i_orderfield WHEN 'policyname_desc' THEN [PolicyEnabled].policy_policyname END DESC,
									
	CASE @i_orderfield WHEN 'createdbyuser_asc' THEN [PolicyEnabled].Creator END ASC, 
	CASE @i_orderfield WHEN 'createdbyuser_desc' THEN [PolicyEnabled].Creator END DESC,
					
	CASE @i_orderfield WHEN 'lastapproval_asc' THEN [PolicyEnabled].policy_lastapproved END ASC, 
	CASE @i_orderfield WHEN 'lastapproval_desc' THEN [PolicyEnabled].policy_lastapproved END DESC,
										
	CASE @i_orderfield WHEN 'lastmodified_asc' THEN [PolicyEnabled].policy_lastmodified END ASC,
	CASE @i_orderfield WHEN 'lastmodified_desc' THEN [PolicyEnabled].policy_lastmodified END DESC,

	CASE @i_orderfield WHEN 'platform_asc' THEN pl.platf_id END ASC,
	CASE @i_orderfield WHEN 'platform_desc' THEN pl.platf_id END DESC  
    
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_POLICYLISTMIN]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_POLICYLISTMIN]
(
	@i_pageindex		INT,
	@i_pagesize			INT,
	@i_querycondition	NVARCHAR(MAX)		= NULL,
  
	/*Filtros*/
	/*Plataforma*/
	@i_isApple			BIT,
	@i_isAndroid		BIT,
	@i_isWindows		BIT,
  
	/*Estado*/
	@i_isEditing		BIT,
	@i_isApproved		BIT,
	@i_isReleased		BIT,

	@o_row_count		INT	OUTPUT
)

AS
BEGIN
	SET NOCOUNT ON;
	
	IF @i_querycondition = '%'
	   SET @i_querycondition = '*'

	IF LEN(ISNULL(@i_querycondition,'')) = 0
		SET @i_querycondition = ''
	ELSE
		SET @i_querycondition = LOWER(@i_querycondition)

	--VALIDAR LA CONDICION DE TODOS EN BLANCO SIGNIFICA SIN FILTROS -> ENTONCES TODOS EN TRUE EN CADA CATEGORIA

	/*plataforma*/
    IF @i_isApple='False' and @i_isAndroid = 'False' and @i_isWindows = 'False'
	BEGIN
		SET @i_isApple='True'
		SET @i_isAndroid = 'True'
		SET @i_isWindows = 'True'
	END
	
	/*Estado*/
	IF @i_isEditing='False' and @i_isApproved = 'False' and @i_isReleased = 'False'
	BEGIN
		SET @i_isEditing	='True'
		SET @i_isApproved	='True'
		SET @i_isReleased	='True'
	END

	DECLARE
	@init				INT,
	@size				INT

	/*Conteo de políticas*/
	SELECT	@o_row_count = COUNT(1)	
	FROM
	(
		SELECT 
		ROW_NUMBER() OVER(ORDER BY p.policy_id asc)-1 AS INDX							    		
		FROM dbo.AMDM_POLICY AS p
		WHERE 
		p.policy_status <> 4 AND
		(
			p.policy_policyname LIKE '%'+@i_querycondition+'%' 
		) AND 
		/*filtros de plataforma*/
		(
			(p.[policy_platformid] = CASE @i_isAndroid WHEN 'True' THEN 1 END) OR 
			(p.[policy_platformid]  = CASE @i_isApple WHEN 'True' THEN 4 END) OR
			(p.[policy_platformid] = CASE @i_isWindows WHEN 'True' THEN 3 END)
		) AND 
		/* filtros de estado*/
		(
			(p.[policy_status] = CASE @i_isEditing WHEN 'True' THEN 1 END) OR 
			(p.[policy_status] = CASE @i_isApproved WHEN 'True' THEN 2 END) OR 
			(p.[policy_status] = CASE @i_isReleased WHEN 'True' THEN 3 END)
		)
	) AS [AllPolicies]

    SET @init = @i_pageindex

	IF @i_pagesize>0
		SET @size = @i_pageindex+@i_pagesize-1
	ELSE 
		SET @size = @o_row_count

	/*Consulta de políticas*/
    SELECT
	[PolicyEnabled].INDX				AS	[INDX],
	[PolicyEnabled].policy_id			AS [PolicyId],
	[PolicyEnabled].policy_policyname	AS [PolicyName]
	
	FROM  
    (
		SELECT *
		FROM
		(
			SELECT
			ROW_NUMBER() OVER
			(
				ORDER BY p.policy_policyname ASC					    
			)-1 AS INDX,
			p.policy_id,
			p.policy_policyname
			
			FROM dbo.AMDM_POLICY AS p 
								
			WHERE 
			p.policy_status <> 4 AND
			(
				p.policy_policyname LIKE '%'+@i_querycondition+'%' 
			) AND 
			/*filtros de plataforma*/
			(
				(p.[policy_platformid] = CASE @i_isAndroid WHEN 'True' THEN 1 END) OR 
				(p.[policy_platformid]  = CASE @i_isApple WHEN 'True' THEN 4 END) OR
				(p.[policy_platformid] = CASE @i_isWindows WHEN 'True' THEN 3 END)
			) AND 
			/* filtros de estado*/
			(
				(p.[policy_status] = CASE @i_isEditing WHEN 'True' THEN 1 END) OR 
				(p.[policy_status] = CASE @i_isApproved WHEN 'True' THEN 2 END) OR 
				(p.[policy_status] = CASE @i_isReleased WHEN 'True' THEN 3 END)
			)
		) AS [AllPolicies]
		WHERE [AllPolicies].INDX BETWEEN @init and @size
	) AS [PolicyEnabled]
	
	ORDER BY[PolicyEnabled].policy_policyname ASC 
    
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_RULESETLIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_RULESETLIST]
(
	@i_pageindex		    INT,
	@i_pagesize			    INT,
	@i_searchtext   	    VARCHAR(255)		= NULL,
	
    @i_haveGeofencing		BIT                 = NULL,
    @i_haveUnenroll			BIT                 = NULL,
    @i_haveRooted			BIT                 = NULL,
    @i_haveFullFillment  	BIT                 = NULL, 
	@i_haveWorkHorary  		BIT                 = NULL, 
	@i_haveExpense  		BIT                 = NULL, 
	@i_haveNewInventory  	BIT                 = NULL, 
	@i_haveWififencing  	BIT                 = NULL, 
	@i_haveUserLogged	  	BIT                 = NULL,
	@i_haveLoginFailed	  	BIT                 = NULL,
				    
	
	@i_orderfield		    VARCHAR(255)		= NULL,
	@i_ordertype		    VARCHAR(255)		= NULL,
	@o_row_count		    INT					OUTPUT
)
AS
BEGIN

	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT

	DECLARE @flagClause		VARCHAR(MAX)

SET @selectClause =

'SELECT 
		RuleSetId,
		name,
		creationdate,
		usercreatorid,
		lastuserid,
		lastmodification,
		haveGeofencing,
		haveWififencing,
		haveUserLogged,
		haveUnenroll,
		haveRooted,
		haveFullFillment,
		haveWorkHorary,
		haveNewInventory,
		haveExpense,
		haveLoginFailed,
		fullusername'

SET @fromClause =' FROM [VIEW_AMDM_RULESET]'


SET @whereClause = ' WHERE 1=1 AND name != '''' '


--ANALISIS DE LAS CONDICIONES DE LA CONSULTA

--Banderas de tipos de reglas asociadas a los rulesets,

-- Solo tiene en cuenta el flag en la condicion si esta prendido, es decir el estado de los demas flags
-- no interesa

IF  NOT (@i_haveGeofencing = 1 and @i_haveUnenroll = 1  and @i_haveRooted = 1  and @i_haveFullFillment = 1   and @i_haveExpense = 1 and  @i_haveNewInventory = 1 and @i_haveWorkHorary = 1 and @i_haveWififencing = 1 and @i_haveUserLogged = 1 and @i_haveLoginFailed = 1) 
BEGIN

	IF @i_haveGeofencing = 1 OR @i_haveUnenroll = 1  OR @i_haveRooted = 1  OR @i_haveFullFillment = 1  OR @i_haveExpense = 1 OR  @i_haveNewInventory = 1 OR @i_haveWorkHorary = 1 OR @i_haveWififencing = 1 OR @i_haveUserLogged = 1 OR @i_haveLoginFailed = 1
	BEGIN

			SET @flagClause=''

			IF @i_haveGeofencing = 1 
			BEGIN
				SET @flagClause = @flagClause + ' OR haveGeofencing    = 1'
			END

			IF @i_haveUnenroll = 1 
			BEGIN
				SET @flagClause = @flagClause + ' OR haveUnenroll      = 1'
			END

			IF @i_haveRooted = 1 
			BEGIN
				SET @flagClause = @flagClause + ' OR haveRooted        = 1'
			END

			IF @i_haveFullFillment = 1
			BEGIN
				SET @flagClause = @flagClause + ' OR haveFullFillment  = 1'
			END

				IF  @i_haveWorkHorary= 1
			BEGIN
				SET @flagClause = @flagClause + ' OR haveWorkHorary  = 1'
			END
				
				IF @i_haveNewInventory = 1
			BEGIN
				SET @flagClause = @flagClause + ' OR haveNewInventory  = 1'
			END
				
				IF  @i_haveExpense= 1
			BEGIN
				SET @flagClause = @flagClause + ' OR haveExpense  = 1'
			END

				IF  @i_haveWififencing = 1
			BEGIN
				SET @flagClause = @flagClause + ' OR haveWififencing  = 1'
			END

			IF  @i_haveUserLogged = 1
			BEGIN
				SET @flagClause = @flagClause + ' OR haveUserLogged  = 1'
			END

			IF  @i_haveLoginFailed = 1
			BEGIN
				SET @flagClause = @flagClause + ' OR haveLoginFailed  = 1'
			END

			
			SET @whereClause = @whereClause + ' AND ( '+ SUBSTRING( @flagClause,4,LEN(@flagClause)) + ' ) '

			PRINT @whereClause
	END
END

--Buscador por texto en el nombre de la reglo o el usuario creador
IF  @i_searchtext IS NOT NULL AND LEN(@i_searchtext)>0
BEGIN      
      SET @whereClause = @whereClause + ' AND ( '

      SET @whereClause = @whereClause + 'name  LIKE  ''%' + @i_searchtext + '%'''	
	  
	  SET @whereClause = @whereClause + 'OR fullusername  LIKE  ''%' + @i_searchtext + '%'''	

      SET @whereClause = @whereClause + ' )'	  	  
END


----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'RuleSetId';

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = ' ORDER BY ' + @i_orderfield + ' ' + @i_ordertype
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@whereClause,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT   

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_SCRIPTCOMMANDS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_SCRIPTCOMMANDS]
(
    @i_pageIndex	INT,
    @i_pageSize		INT,
 	@i_searchString NVARCHAR(max),
	@i_orderField	NVARCHAR(max),
	@i_orderType	NVARCHAR(max),
	@i_isActive		BIT = NULL,
	@o_rowCount		INT					OUTPUT

)
AS 
BEGIN

    DECLARE @v_select_clause	VARCHAR(MAX)
	DECLARE @v_from_clause		VARCHAR(MAX)
	DECLARE @v_where_clause		VARCHAR(MAX)
	DECLARE @v_order_clause		VARCHAR(MAX)
	DECLARE @v_primary_key		VARCHAR(MAX)
	DECLARE @v_lower_bound		INT
	DECLARE @v_upper_bound		INT
	DECLARE @v_where			VARCHAR(200)

SET NOCOUNT ON;

----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------

SET @v_select_clause = 'SELECT 
      [AMDM_SCRIPT_COMMAND].[id]
      ,[AMDM_SCRIPT_COMMAND].[name]
      ,[AMDM_SCRIPT_COMMAND].[description]
      ,[AMDM_SCRIPT_COMMAND].[is_active]
	  ,[AMDM_SCRIPT_COMMAND].[script]
	  ,[AMDM_SCRIPT_COMMAND].[user_id]
	  ,[AFW_LDAP].[name] + ''\'' + [AFW_USERS].[user_name] AS user_name' 
  

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------

SET @v_from_clause = ' FROM [AMDM_SCRIPT_COMMAND] 
					LEFT JOIN AFW_USERS ON (AMDM_SCRIPT_COMMAND.user_id = AFW_USERS.user_id) 
				    LEFT JOIN AFW_LDAP ON (AFW_LDAP.id = AFW_USERS.user_authentication_id)'
				

----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
			
SET @v_where_clause = ''

IF @i_searchString IS NOT NULL AND  LEN(@i_searchString)>0
BEGIN
   SET @v_where_clause += ' WHERE ([AMDM_SCRIPT_COMMAND].[name] LIKE ''%'	+ @i_searchString + '%'' OR [AMDM_SCRIPT_COMMAND].[description] LIKE ''%'	+ @i_searchString + '%'') '  
END

IF @i_isactive IS NOT NULL
BEGIN
	SET @v_where = ' [AMDM_SCRIPT_COMMAND].[is_active] = ' + CONVERT(VARCHAR, @i_isactive)
	IF LEN(@v_where_clause)> 0
	BEGIN
		SET @v_where_clause += 'AND ' + @v_where
	END
	ELSE
	BEGIN
		SET @v_where_clause += 'WHERE ' + @v_where
	END
   
END


IF @i_orderField = 'Name'
BEGIN
	SET @i_orderField = '[AMDM_SCRIPT_COMMAND].[name]'
END
ELSE IF @i_orderField = 'Description'
BEGIN
	SET @i_orderField = '[AMDM_SCRIPT_COMMAND].[description]'
END
  
IF(@i_orderType = 'asc')
BEGIN
	SET @i_orderType = 'ASC'
END
ELSE IF(@i_orderType = 'desc')
BEGIN
	SET @i_orderType = 'DESC'
END
ELSE
BEGIN
	SET @i_orderType = 'ASC'
END

----------------------------------------------------------------
-- ORDER
----------------------------------------------------------------

SET @v_order_clause = ' ORDER BY ' + @i_orderField + ' ' + @i_orderType;

----------------------------------------------------------------
-- PRIMARY KEY
----------------------------------------------------------------

SET @v_primary_key = '[AMDM_SCRIPT_COMMAND].[id]';

----------------------------------------------------------------
-- LOWER Y UPPER BOUND
----------------------------------------------------------------

SET @v_lower_bound = @i_pageIndex + 1;
SET @v_upper_bound = @v_lower_bound + @i_pageSize - 1

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@v_select_clause,
	@v_from_clause,
	@v_where_clause,
	@v_order_clause,
	@v_primary_key,
	@v_lower_bound,
	@v_upper_bound,
	@o_rowCount OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_SYSTEMAPP_LIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_SYSTEMAPP_LIST]
	@i_pageIndex            INT,
	@i_pageSize             INT,
	@i_queryCondition       NVARCHAR(MAX)		= NULL,
	
	@i_systemAppType        INTEGER,

	@i_orderField           NVARCHAR(max)		= NULL,
	@i_orderType            NVARCHAR(max)		= NULL,
	@o_rowCount             INT					OUTPUT

AS
BEGIN


	DECLARE @v_select_clause	VARCHAR(MAX)
	DECLARE @v_from_clause		VARCHAR(MAX)
	DECLARE @v_search_query    VARCHAR(MAX)
	DECLARE @v_order_clause	VARCHAR(MAX)
	DECLARE @v_primary_key		VARCHAR(MAX)
	DECLARE @v_lower_bound		INT
	DECLARE @v_upper_bound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	
	SET @v_select_clause = 
	'SELECT
		sa.[systemapp_id] 
		, sa.[systemapp_package]
		, sa.[systemapp_typeid]
		, dt.[sysapptype_name]'
		;
		

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @v_from_clause = ' FROM [AMDM_SYSTEMAPP] sa
							INNER JOIN [AMDM_SYSTEMAPPTYPE] dt ON sa.systemapp_typeid = dt.sysapptype_id ';  
	
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @v_search_query = ' WHERE 1 = 1 ';

	-- Agregar cadena de búsqueda si es necesario
	IF @i_queryCondition IS NOT NULL AND  LEN(@i_queryCondition)>0
	BEGIN
		SET @v_search_query = CONCAT(@v_search_query, ' AND systemapp_package LIKE ''%', @i_queryCondition, '%'' '); 			
	END
	
	-- Agregar filtro por tipo si es necesario
	IF (@i_systemAppType > 0)
	BEGIN
		SET @v_search_query = CONCAT(@v_search_query, ' AND systemapp_typeid = ', @i_systemAppType, ' ');
	END

----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @v_order_clause = CONCAT(' ORDER BY ' ,@i_orderField ,' ' ,@i_orderType);

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @v_primary_key = 'systemapp_id';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @v_lower_bound = @i_pageIndex + 1;
	SET @v_upper_bound = @v_lower_bound + @i_pageSize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@v_select_clause,
	@v_from_clause,
	@v_search_query,
	@v_order_clause,
	@v_primary_key,
	@v_lower_bound,
	@v_upper_bound,
	@o_rowCount OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_UPDATE_DASHB_SOURCES]...';


GO
--Procedimiento que actualiza las tablas fuente auxiliares de los Dashboards


CREATE PROCEDURE [dbo].[PRC_AMDM_UPDATE_DASHB_SOURCES]	
AS

--********************************************************************************************************
--****************************************** DASHBOARD EXPENSES PART 1: DEVICES***************************
--********************************************************************************************************

--Eliminando registros antiguos
DELETE from AMDM_DB_EXPENSESDEVICES

--Insertardo nuevos registros
INSERT INTO AMDM_DB_EXPENSESDEVICES          
SELECT * FROM
(
SELECT
d.id													AS [IdDevice],
d.name													AS [DeviceName],
u.user_name												AS [UserName],
ep.plan_name											AS [PlanName],
ec.carrier_name											AS [CarrierName],

-- OVER LIMIT LOCAL DATA
(SELECT 
    CASE 
	WHEN ep.plan_shared = 1 THEN 0			
	WHEN ep.plan_shared = 0 AND SUM(AMDM_DEVICEEXPENSE.devexp_daily_datausage) > ep.plan_datasize THEN 1
	ELSE 0
	END
	FROM AMDM_DEVICEEXPENSE 
	WHERE AMDM_DEVICEEXPENSE.devexp_deviceid = d.id
	AND AMDM_DEVICEEXPENSE.devexp_planid = d.expenseplan_id
	AND AMDM_DEVICEEXPENSE.devexp_daily_isroaming = 0
	AND AMDM_DEVICEEXPENSE.devexp_lastupdate > 
	DATEADD(MONTH,                                                                                                                  
	DATEDIFF(MONTH, 0, GETUTCDATE()) - CASE WHEN DAY(GETUTCDATE()) > ep.plan_billingcicledate THEN 0 ELSE 1 END,                   
	DATEADD(DAY, ep.plan_billingcicledate - 1, 0)  
	
)
)															AS [OLLocalData],

-- OVER LIMIT LOCAL VOICE
(SELECT 
    CASE 
	WHEN ep.plan_shared = 1 THEN 0			
	WHEN ep.plan_shared = 0 AND SUM(AMDM_DEVICEEXPENSE.devexp_daily_voiceusage) > ep.plan_voicesize THEN 1
	ELSE 0
	END
	FROM AMDM_DEVICEEXPENSE 
	WHERE AMDM_DEVICEEXPENSE.devexp_deviceid = d.id
	AND AMDM_DEVICEEXPENSE.devexp_planid = d.expenseplan_id
	AND AMDM_DEVICEEXPENSE.devexp_daily_isroaming = 0
	AND AMDM_DEVICEEXPENSE.devexp_lastupdate > 
	DATEADD(MONTH,                                                                                                                  
	DATEDIFF(MONTH, 0, GETUTCDATE()) - CASE WHEN DAY(GETUTCDATE()) > ep.plan_billingcicledate THEN 0 ELSE 1 END,                   
	DATEADD(DAY, ep.plan_billingcicledate - 1, 0)  
	
)
)															AS [OLLocalVoice],

--  OVER LIMIT ROAMING DATA
(SELECT 
    CASE 
	WHEN ep.plan_shared = 1 THEN 0			
	WHEN ep.plan_shared = 0 AND CAST(SUM(AMDM_DEVICEEXPENSE.devexp_daily_datausage) AS bigint) > CAST(ep.plan_roamingdatasize AS BIGINT) THEN 1
	ELSE 0
	END
	FROM AMDM_DEVICEEXPENSE 
	WHERE AMDM_DEVICEEXPENSE.devexp_deviceid = d.id
	AND AMDM_DEVICEEXPENSE.devexp_planid = d.expenseplan_id
	AND AMDM_DEVICEEXPENSE.devexp_daily_isroaming = 1
	AND AMDM_DEVICEEXPENSE.devexp_lastupdate > 
	DATEADD(MONTH,                                                                                                                  
	DATEDIFF(MONTH, 0, GETUTCDATE()) - CASE WHEN DAY(GETUTCDATE()) > ep.plan_billingcicledate THEN 0 ELSE 1 END,                   
	DATEADD(DAY, ep.plan_billingcicledate - 1, 0)  
	
)
)															AS [OLRoaminglData],

-- OVER LIMIT ROAMING VOICE
(SELECT 
    CASE 
	WHEN ep.plan_shared = 1 THEN 0			
	WHEN ep.plan_shared = 0 AND CAST(SUM(AMDM_DEVICEEXPENSE.devexp_daily_voiceusage) AS BIGINT) > CAST(ep.plan_roamingvoicesize AS BIGINT) THEN 1
	ELSE 0
	END
	FROM AMDM_DEVICEEXPENSE 
	WHERE AMDM_DEVICEEXPENSE.devexp_deviceid = d.id
	AND AMDM_DEVICEEXPENSE.devexp_planid = d.expenseplan_id
	AND AMDM_DEVICEEXPENSE.devexp_daily_isroaming = 1
	AND AMDM_DEVICEEXPENSE.devexp_lastupdate > 
	DATEADD(MONTH,                                                                                                                  
	DATEDIFF(MONTH, 0, GETUTCDATE()) - CASE WHEN DAY(GETUTCDATE()) > ep.plan_billingcicledate THEN 0 ELSE 1 END,                   
	DATEADD(DAY, ep.plan_billingcicledate - 1, 0)  
	
)
)															AS [OLRoaminglVoice]
FROM
AMDM_DEVICE d
INNER JOIN AMDM_EXPENSEPLAN ep ON d.expenseplan_id = ep.plan_id
INNER JOIN AMDM_EXPENSECARRIER ec ON ep.plan_expensecarrier_id = ec.carrier_id
INNER JOIN AFW_USERS u ON d.user_id = u.user_id
) cons





--********************************************************************************************************
--****************************************** DASHBOARD EXPENSES PART 2: PLANS*****************************
--********************************************************************************************************

--Eliminando registros antiguos
DELETE FROM [AMDM_DB_EXPENSESPLANS]

--Insertando Registros Nuevos
INSERT INTO [AMDM_DB_EXPENSESPLANS]
SELECT 
ep.plan_name												AS PlanName,

--Local Data
(
 SELECT  
 CASE
 WHEN ep.plan_measuredatasize = 'Gigabytes' THEN SUM(devexp_daily_datausage) * 1024
 ELSE SUM(devexp_daily_datausage)
 END
 FROM AMDM_DEVICEEXPENSE
 WHERE devexp_planid = ep.plan_id
 AND devexp_daily_isroaming = 0
 AND devexp_lastupdate >= DATEADD(MONTH,-1,GETUTCDATE())
)															AS LocalData,

--Roaming Data
(
 SELECT 
 CASE
 WHEN ep.plan_measuredatasize = 'Gigabytes' THEN SUM(devexp_daily_datausage) * 1024
 ELSE SUM(devexp_daily_datausage)
 END
 FROM AMDM_DEVICEEXPENSE
 WHERE devexp_planid = ep.plan_id
 AND devexp_daily_isroaming = 1
 AND devexp_lastupdate >= DATEADD(MONTH,-1,GETUTCDATE())
)															AS RoamingData,

--Local Voice
(
 SELECT 
 CASE
 WHEN ep.plan_measurevoicesize = 'Minutes' THEN SUM(devexp_daily_voiceusage) * 60
 ELSE SUM(devexp_daily_voiceusage)
 END
 FROM AMDM_DEVICEEXPENSE
 WHERE devexp_planid = ep.plan_id
 AND devexp_daily_isroaming = 0
 AND devexp_lastupdate >= DATEADD(MONTH,-1,GETUTCDATE())
)															AS LocalVoice,

--Roaming Voice
(
 SELECT 
 CASE
 WHEN ep.plan_measurevoicesize = 'Minutes' THEN SUM(devexp_daily_voiceusage) * 60
 ELSE SUM(devexp_daily_voiceusage)
 END
 FROM AMDM_DEVICEEXPENSE
 WHERE devexp_planid = ep.plan_id
 AND devexp_daily_isroaming = 1
 AND devexp_lastupdate >= DATEADD(MONTH,-1,GETUTCDATE())
)															AS RoamingVoice

FROM AMDM_EXPENSEPLAN ep
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_UPDATEAPPROVEDAPPS]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_UPDATEAPPROVEDAPPS]
(
	@AllNewsProductId VARCHAR(1000) OUTPUT
)
AS
BEGIN
	DECLARE @productId VARCHAR(200);
	SET @AllNewsProductId = '';

	--Aplicaciones que se deben actualizar con 0, ya que no estan aprobadas en AFW y existen en la bd como aprobadas
    UPDATE AMDM_APPSINFORMATION
		SET isafw = 0
		WHERE isafw = 1 AND
			bundleid NOT IN (SELECT app_productId FROM AMDM_APPSINFORMATION_TMP WHERE app_productType = 'public');

	--Aplicaciones que se deben actualizar con 1, ya que ahora estan aprobadas y existen en la bd como NO aprobadas
	 UPDATE AMDM_APPSINFORMATION
		SET isafw = 1,
		    isvisible = 1
		WHERE isafw = 0 AND
			bundleid IN (SELECT app_productId FROM AMDM_APPSINFORMATION_TMP);
	
	--Aplicaciones que se deben insertar en la tabla, ya que ahora estan aprobadas y no existen en la BD
	DECLARE new_apps_approved_cursor CURSOR FOR 
		SELECT app_productId FROM AMDM_APPSINFORMATION_TMP WHERE app_productId NOT IN 
			(SELECT bundleid FROM AMDM_APPSINFORMATION )
	
	OPEN new_apps_approved_cursor;
	FETCH NEXT FROM new_apps_approved_cursor INTO @productId;
	WHILE @@FETCH_STATUS = 0  
	BEGIN
		--PRINT 'Insertando APP: ' + @productId;
		SET @AllNewsProductId = @AllNewsProductId + @productId + ',';	
		FETCH NEXT FROM new_apps_approved_cursor INTO @productId;
	END;

	-- Eliminar ultimo caracter
	SET @AllNewsProductId = 
     CASE @AllNewsProductId WHEN '' THEN '' 
     ELSE (
         CASE LEN(@AllNewsProductId) WHEN 0 THEN @AllNewsProductId 
            ELSE LEFT(@AllNewsProductId, LEN(@AllNewsProductId) - 1) 
         END 
     ) END

	--PRINT 'AllNewsProductId: ' + @AllNewsProductId;

	CLOSE new_apps_approved_cursor;
	DEALLOCATE new_apps_approved_cursor;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_UPDATEEXPPLANSUMM]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_UPDATEEXPPLANSUMM]
	@i_datestart datetime,
	@i_datefinish datetime,
	@i_planid int
AS
	
IF NOT EXISTS (SELECT * FROM AMDM_EXPENSEPLANSUMMARY WHERE plansum_id = @i_planid) 
BEGIN

INSERT INTO [dbo].[AMDM_EXPENSEPLANSUMMARY]
           ([plansum_localdata]
           ,[plansum_localvoice]
           ,[plansum_roamingdata]
           ,[plansum_roamingvoice]
           ,[plansum_planid]
           ,[plansum_refreshdate]
           ,[plansum_localvoicecost]
           ,[plansum_roamingvoicecost])
     VALUES
           (0
           ,0
           ,0
           ,0
           ,@i_planid
           ,GETUTCDATE()
           ,0
           ,0)
END

UPDATE AMDM_EXPENSEPLANSUMMARY
SET
  plansum_localdata = conslocal.datausage,
  plansum_localvoice = conslocal.voiceusage,
  plansum_localvoicecost = conslocal.costvoice
FROM
(
SELECT SUM(devexp_daily_voiceusage) AS voiceusage, SUM(devexp_daily_datausage) AS datausage, SUM(devexp_daily_costvoice) AS costvoice
FROM AMDM_DEVICEEXPENSE
WHERE devexp_planid = @i_planid
AND devexp_lastupdate between @i_datestart and @i_datefinish
AND devexp_daily_isroaming = 0
) AS conslocal
WHERE
   plansum_id = @i_planid

UPDATE AMDM_EXPENSEPLANSUMMARY
SET
  plansum_roamingdata = consroaming.datausage,
  plansum_roamingvoice = consroaming.voiceusage,
  plansum_roamingvoicecost = consroaming.costvoice,
  plansum_refreshdate = GETUTCDATE()  
FROM
(
SELECT SUM(devexp_daily_voiceusage) AS voiceusage, SUM(devexp_daily_datausage) AS datausage, SUM(devexp_daily_costvoice) AS costvoice
FROM AMDM_DEVICEEXPENSE
WHERE devexp_planid = @i_planid
AND devexp_lastupdate between @i_datestart and @i_datefinish
AND devexp_daily_isroaming = 1
) AS consroaming
WHERE
   plansum_id = @i_planid
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_VALIDATE_DEVSW_VERSION]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_VALIDATE_DEVSW_VERSION]
(
	@i_bundleId			NVARCHAR(32)
)

AS
BEGIN
	SET NOCOUNT ON;
	DECLARE @appVersion		NVARCHAR(32);
	DECLARE @devSwVersion	NVARCHAR(32);
	DECLARE @compareValue	INT;

	SELECT
		@appVersion = [version]
	FROM AMDM_APPSINFORMATION
	WHERE bundleid = @i_bundleId;

	IF @appVersion IS NOT NULL
	BEGIN
		DECLARE cur_versions CURSOR LOCAL FAST_FORWARD FOR
		SELECT DISTINCT
			[version]
		FROM AMDM_DEVICESOFTWARE
		WHERE packagename = @i_bundleId;

		OPEN cur_versions;

		FETCH NEXT FROM cur_versions INTO
			@devSwVersion;

		WHILE @@FETCH_STATUS = 0
		BEGIN
			SET @compareValue = [dbo].[FUN_AMDM_COMPAREVERSIONS](@appVersion, @devSwVersion);

			UPDATE AMDM_DEVICESOFTWARE
			SET isupdated = IIF(@compareValue = 1, 0, 1)
			WHERE packagename = @i_bundleId
			AND [version] = @devSwVersion;

			FETCH NEXT FROM cur_versions INTO
				@devSwVersion;

		END;

	END;
	ELSE
	BEGIN
		UPDATE AMDM_DEVICESOFTWARE
		SET isupdated = 1
		WHERE packagename = @i_bundleId;

	END;
END
GO
PRINT N'Creating Procedure [dbo].[PRC_ANM_CLEAN_DEVICE_METR]...';


GO
CREATE PROCEDURE [PRC_ANM_CLEAN_DEVICE_METR]
(
	 @i_date DATE
)
AS
BEGIN
	DELETE FROM [ANM_DEVICE_METRIC]
	WHERE [sampling_date] <= @i_date
END
GO
PRINT N'Creating Procedure [dbo].[PRC_APM_CLEANDEVICE]...';


GO
CREATE PROCEDURE [dbo].[PRC_APM_CLEANDEVICE]
(
	@v_deviceId INT
)
AS
BEGIN

	DELETE 
	FROM	[ADM_DEVICE_INVENTORY] 
	WHERE	[device_id] = @v_deviceId 
	AND		[app_code] = 28
END
GO
PRINT N'Creating Procedure [dbo].[PRC_APWM_CLEANDEVICE]...';


GO
CREATE PROCEDURE [dbo].[PRC_APWM_CLEANDEVICE]
(
	@v_deviceId INT
)
AS
BEGIN

	DELETE FROM ADM_DEVICE_INVENTORY 
	WHERE device_id = @v_deviceId AND app_code = 31

	DELETE 
	FROM	APWM_POLICY_ASSIGNMENT
	WHERE   [device_id] =  @v_deviceId

END
GO
PRINT N'Creating Procedure [dbo].[PRC_APWM_GENERATE_CUBE]...';


GO
CREATE PROCEDURE [PRC_APWM_GENERATE_CUBE]
(
	@i_cubeId	INT,
	@i_days		INT = 15
)
AS
BEGIN

	-- Fecha de inicio del calculo de datos
	DECLARE @start_date DATETIME
	SELECT	@start_date = ISNULL( MAX([date]) ,GETDATE())
	FROM	APWM_POLICY_HOUR

	-- Consolidado por grupo, politica y dia
	IF @i_cubeId = 1
	BEGIN
		/*=============================================================================================================*/
		/* Cubo de informacion por dia, politica y grupo por dia                                                       */
		/*=============================================================================================================*/
		TRUNCATE TABLE [APWM_CONSUMPTION_CUBE]
		INSERT INTO    [APWM_CONSUMPTION_CUBE]	
		(
			[date],
			[group],
			[policy],
			[watts],
			[co2],
			[cost],
			[saving_watts],
			[saving_co2],
			[saving_cost]
		)
		SELECT
			  CONVERT(DATE, APWM_POLICY_HOUR.[date]) dimdate,
			  AFW_GROUPS.[grou_name] AS dimgroup,
			  APWM_POLICY.[name] AS dimpolicy,
			  SUM([watts])																									    AS con_kwh,    	
			  SUM([co2])																										AS con_co2,   	
			  SUM([cost])																									    AS con_cost,  
			  SUM([full_watts]  - [watts])																					    AS sav_kwh,    	
			  SUM([full_co2]    - [co2])																						AS sav_co2,   	
			  SUM([full_cost]   - [cost])																						AS sav_money
		FROM  APWM_POLICY_HOUR	
		JOIN  AFW_GROUPS   ON AFW_GROUPS.grou_id  = APWM_POLICY_HOUR.[group_id]
		JOIN APWM_POLICY_DAY ON APWM_POLICY_HOUR.policy_day_id = APWM_POLICY_DAY.id
		JOIN APWM_POLICY_INVENTORY ON APWM_POLICY_DAY.policy_inventory_id = APWM_POLICY_INVENTORY.id
		JOIN APWM_POLICY ON APWM_POLICY_INVENTORY.policy_id = APWM_POLICY.id
		WHERE DATEDIFF(DAY,APWM_POLICY_HOUR.[date],@start_date)	<= @i_days
		GROUP BY 
			CONVERT(DATE, APWM_POLICY_HOUR.[date]),
			AFW_GROUPS.[grou_name],
			APWM_POLICY.[name]    
	END

	-- Por dispositivo
	IF @i_cubeId = 2
	BEGIN
		/*=============================================================================================================*/
		/* Cubo de informacion por dispositivo  por dia                                                               */
		/*=============================================================================================================*/
		TRUNCATE TABLE [APWM_DEVICE_CONSUM_CUBE]
		INSERT INTO    [APWM_DEVICE_CONSUM_CUBE]
		(		
			[device],
			[date],
			[watts],      		
			[co2],      			
			[cost],   			
			[saving_watts],
			[saving_co2],
			[saving_cost]		
		)
		SELECT		
			  AAM_DEVICE.name AS dimDevice,
			  CONVERT(DATE, APWM_POLICY_HOUR.[date]) AS dimdate,
				  SUM([watts])																									AS con_kwh,    	
				  SUM([co2])																									AS con_co2,   	
				  SUM([cost])																									AS con_cost,  
				  SUM([full_watts]  - [watts])																					AS sav_kwh,    	
				  SUM([full_co2]    - [co2])																					AS sav_co2,   	
				  SUM([full_cost]   - [cost])																					AS sav_money
			FROM  APWM_POLICY_HOUR	
			JOIN APWM_POLICY_DAY ON APWM_POLICY_HOUR.policy_day_id = APWM_POLICY_DAY.id
			JOIN APWM_POLICY_INVENTORY ON APWM_POLICY_DAY.policy_inventory_id = APWM_POLICY_INVENTORY.id
			JOIN  AAM_DEVICE   ON AAM_DEVICE.id       = APWM_POLICY_INVENTORY.device_id
			WHERE DATEDIFF(DAY,APWM_POLICY_HOUR.date,@start_date)	<= @i_days
			GROUP BY 
				CONVERT(DATE, APWM_POLICY_HOUR.[date]),
				AAM_DEVICE.[name]
	END

	-- Por hora
	IF @i_cubeId = 3
	BEGIN
		/*=============================================================================================================*/
		/* Cubo de informacion por hora                                                                                */
		/*=============================================================================================================*/
		TRUNCATE TABLE [APWM_HOUR_CONSUM_CUBE]
		INSERT INTO    [APWM_HOUR_CONSUM_CUBE]
		(		
			[hour],
			[watts],      		
			[co2],      			
			[cost],   			
			[saving_watts],
			[saving_co2],
			[saving_cost]		
		)
		SELECT
		DATEPART(HOUR,[date])+1															AS dimHour,
		SUM([watts])																	AS con_kwh,    	
		SUM([co2])																		AS con_co2,   	
		SUM([cost])																		AS con_cost,  
		SUM([full_watts]  - [watts])													AS sav_kwh,    	
		SUM([full_co2]    - [co2])														AS sav_co2,   	
		SUM([full_cost]   - [cost])														AS sav_money
		FROM  APWM_POLICY_HOUR			
		WHERE DATEDIFF(DAY,[date],@start_date)	<= @i_days			
		GROUP BY  DATEPART(HOUR,[date])		
		ORDER BY  DATEPART(HOUR,[date])
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AQM_SENDMAIL_TASK]...';


GO
CREATE PROCEDURE [dbo].[PRC_AQM_SENDMAIL_TASK]
(
    @emailList   NVARCHAR(MAX),
    @documentId  INT,    	
	@jsonParams  NVARCHAR(MAX)  =  NULL,
	@format      NVARCHAR(10)   = 'PDF',
	@language    NVARCHAR(10)   = 'ES',

    -- Se conserva el parametro por compatiblidad
    @separator   NVARCHAR(10)   = ','    
)
AS
BEGIN

    DECLARE @taskId           INT
    DECLARE @parameters       NVARCHAR(MAX)
    DECLARE @executionDate    DATETIME    
    DECLARE @name             NVARCHAR(128)   
    DECLARE @url              NVARCHAR(300)   
	DECLARE @exportRequestId  INT
	DECLARE @aqmDocumentId    INT
    
    SET @executionDate = GETUTCDATE()

	SELECT @aqmDocumentId = AQM_DOCUMENT.Id 
	FROM AQM_DOCUMENT 
	JOIN AFW_DOCUMENT ON AFW_DOCUMENT.docu_id =AQM_DOCUMENT.DocumentId 
	WHERE AQM_DOCUMENT.DocumentId = @documentId

	 -- Se supone el usuario 1 (Administrador)
	INSERT INTO AQM_EXPORT_REQUEST(CreationDate,UserId,DocumentId) VALUES(@executionDate,1,@aqmDocumentId)
	SET @exportRequestId = @@IDENTITY
  
    SET @name  = 'AQM_SEND_MAIL.'+CONVERT(nvarchar(100),@documentId)+ '.1'

    SELECT   @url = sett_value 
    FROM     AFW_SETTINGS 
    WHERE    sett_application_id = 29 
    AND      sett_key            = 'DocumentUrl' 	
	  

	DECLARE @ParametersTable TABLE
	(
		[MAIL_TO]				NVARCHAR(2000),
		[LANGUAGE]				NVARCHAR(50),
		[FORMAT]				NVARCHAR(10),
		[DOCUMENT_ID]			NVARCHAR(10),
		[AQM_SERVER_URL]		NVARCHAR(500),
		[REPORT_PARAMS]			NVARCHAR(MAX),
		[EXPORT_REQUESTID]		NVARCHAR(10)
	)	
	
	INSERT INTO @ParametersTable VALUES (@emailList, @language, @format, @aqmDocumentId, @url, @jsonParams, @exportRequestId)
	
	SELECT @parameters = 
    (
        SELECT 
            '{' +
            '"MAIL_TO":"'			+ [MAIL_TO]								+ '",' +
            '"LANGUAGE":"'			+ [LANGUAGE]							+ '",' +
            '"FORMAT":"'			+ [FORMAT]								+ '",' +
            '"DOCUMENT_ID":"'		+ [DOCUMENT_ID]							+ '",' +
            '"AQM_SERVER_URL":"'	+ [AQM_SERVER_URL]						+ '",' +
            CASE WHEN [REPORT_PARAMS] IS NOT NULL 
                 THEN '"REPORT_PARAMS":"' + REPLACE([REPORT_PARAMS], '"', '\"') + '",' 
                 ELSE ''
            END +
            '"EXPORT_REQUESTID":"'	+ [EXPORT_REQUESTID]					+ '"' +
            '}'
        FROM @ParametersTable
        FOR XML PATH(''), TYPE
    ).value('.', 'NVARCHAR(MAX)')

    SET @parameters = CONVERT(NVARCHAR(MAX), @parameters)

    -- Identificador de la tarea de enviar correo
    SELECT @taskId= task_id from AFW_TASKS  where  task_id=29001
    
    DECLARE @creationDate DATETIME 
    SET @creationDate= GETUTCDATE()

    INSERT INTO [AFW_SCHEDULER]
               ([sche_name]                 ,[sche_description]                              ,[sche_frecuency_type]           ,[sche_recurse_every]
               ,[sche_weekdays]             ,[sche_months]                                   ,[sche_cardinal_days]            ,[sche_ordinal_days]
               ,[sche_start_date]           ,[sche_end_date]                                 ,[sche_task_id]                  ,[sche_application_id]
               ,[sche_last_execution]       ,[sche_next_execution]                           ,[sche_max_delay]                ,[sche_creation_date]
               ,[sche_parameters]           ,[sche_builtin])
    VALUES
               (
               @name,                        'Creado desde PRC_AQM_SENDMAIL_TASK ',          'Ontime',                         0,
               0,                             0,                                             0,                                0,                    
               @executionDate,                NULL,                                          @taskId,                          29,
               NULL,                          @executionDate,                                120,                              @creationDate,
               @parameters,                   0
               )
END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASD_CLEANDEVICE]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASD_CLEANDEVICE]
(
	@v_deviceId INT
)
AS
BEGIN
	DELETE FROM ADM_DEVICE_INVENTORY 
	WHERE device_id = @v_deviceId AND app_code = 6

	DELETE 
	FROM ASD_EXECUTION_DEVICE		   
	WHERE device_id = @v_deviceId

	DELETE 
	FROM ASD_EXEC_PACKAGE_DEVICE
	WHERE device_id = @v_deviceId

	DELETE 
	FROM ASD_EXEC_PACK_DEVICE_HIST
	WHERE device_id = @v_deviceId

END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASDK_ARTICLE_ITEMS_SEARCH]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASDK_ARTICLE_ITEMS_SEARCH] (
	@i_user_id INT = -1,
	@i_text VARCHAR (1000),
	@i_select_type INT = -1
) AS
BEGIN
    DECLARE
        @v_expression VARCHAR (8000),
        @v_search_text VARCHAR (MAX);
 
    SET @i_text = REPLACE(REPLACE(REPLACE (@i_text, '(', ''),')',''),',',' ');
    SET @v_search_text = LTRIM(RTRIM(@i_text));
 
    WHILE @v_search_text LIKE '%  %'
    BEGIN
        SET @v_search_text = REPLACE (@v_search_text, '  ', ' ');
 
    END;
 
    SET @v_search_text = REPLACE (@v_search_text, ' ', ', ');
    IF OBJECT_ID(N'sys.database_service_objectives') IS NOT NULL 
        SET @v_expression = CONCAT ('FORMSOF (INFLECTIONAL, ', @v_search_text, ') ', 'OR ISABOUT (', @v_search_text, ') ');
    ELSE
        SET @v_expression = CONCAT ('FORMSOF (INFLECTIONAL, ', @v_search_text, ') ', 'OR FORMSOF (THESAURUS, ', @v_search_text, ') ', 'OR ISABOUT (', @v_search_text, ') ');
 
    WITH project_user AS 
    (
        SELECT 
            p.proj_id,
            P.proj_name
        FROM ASMS_PROJECTS p
        JOIN ASMS_PROJECT_USER up ON up.proj_id = p.proj_id
        AND up.type_id = 37 AND up.user_id = @i_user_id
        WHERE p.proj_state = 1
        AND EXISTS
        (
                SELECT DIStinct ctt.caty_type_rec_id
                FROM ASDK_SERVICE s
                JOIN ASDK_CATEGORY_TYPE ctt ON s.id = ctt.caty_service_id
                WHERE p.proj_id = s.project_id
                AND EXISTS (
                                SELECT * FROM 
                                            (
                                                SELECT us.ser_id
                                                FROM ASDK_SLA_USER us
                                                WHERE us.user_id = @i_user_id
                                                UNION
                                                SELECT sc.ser_id
                                                FROM ASDK_SLA_VENDOR sc
                                                JOIN ASMS_USER_VENDOR uv ON sc.company_id = uv.VENDOR_ID
                                                WHERE sc.type_id = 38 AND uv.user_id = @i_user_id
                                                UNION
                                                SELECT sc.ser_id
                                                FROM ASDK_SLA_GROUP sc
                                                JOIN ASMS_GROUP_USER gu ON sc.grou_id = gu.group_id
                                                WHERE sc.type_id = 64 AND gu.user_id = @i_user_id
                                            ) su
                                JOIN ASDK_SERVICE s ON s.id = su.ser_id
                                WHERE s.project_id = p.proj_id
                            )
        )
    )


SELECT 
        i.[CategoryName],
        i.[Created],
        i.[description],
        i.[id],
        i.[IdByProject],
        i.[identifier],
        i.[ItemTypeId],
        i.[keyword],
        p.proj_id project_id,
        p.proj_name project_name,
        i.[Rating],
        i.[ServiceName],
        i.[Subject],
        i.[title]
FROM (
        SELECT
            kb.id,
            kb.identifier [key_internal],
            kb.title [title],
            kb.description [description],
            'KB' [key_type],
            kb.project_id [project_id],
            null [image_name],
            null [image_id],
            null [alternative_description],
            null [type_id],
            ROW_NUMBER() OVER(ORDER BY [rank] DESC) rown,
            IIF(@i_select_type>2, 3, 1) search_class,
            '' CategoryName,
            kb.created_date Created,
            kb.identifier,
            12 [ItemTypeId],
            kb.keyword,
            null [IdByProject],
            kb.Rating,
            '' [ServiceName],
            '' [Subject]
        FROM ASS_ARTICLE kb
        JOIN ASMS_STATUS s ON kb.state_id = s.stat_id
        JOIN CONTAINSTABLE (
            ASS_ARTICLE,
            (
                title, 
                keyword, 
                content
            ),
            @v_expression,
            LANGUAGE 0
        ) ON [key] = kb.id
        WHERE kb.is_public = 1 AND s.stat_behavior = 1 
        UNION ALL 
        SELECT DISTINCT
            kb.id,
            kb.identifier [key_internal],
            kb.title [title],
            kb.description [description],
            'KB' [key_type],
            kb.project_id [project_id],
            null [image_name],
            null [image_id],
            null [alternative_description],
            null [type_id],
            kb.id rown,
            IIF(@i_select_type>2, 3, 1) search_class,
            '' CategoryName,
            kb.created_date Created,
            kb.identifier,
            12 [ItemTypeId],
            kb.keyword,
            null [IdByProject],
            kb.Rating,
            '' [ServiceName],
            '' [Subject]
        FROM ASS_ARTICLE kb
        JOIN ASMS_STATUS s ON kb.state_id = s.stat_id
        left join ASMS_STATUS_REASON rs on kb.reason_id = rs.reas_id
        left join ASMS_STATUS st on kb.state_id = st.stat_id
        WHERE (st.stat_name LIKE '%'+@i_text+'%' OR rs.reas_description LIKE '%'+@i_text+'%')
        UNION ALL 
        SELECT
            it.id,
            it.id_by_project,
            '' [title],
            null,
            'IT',
            it.project_id,
            null,
            null,
            sr.name,
            it.type_id,
            ROW_NUMBER() OVER(ORDER BY [rank] DESC) rown,
            IIF(@i_select_type>2, 3, 2) search_class,
            ct.ctg_caption CategoryName,
            it.created_date Created,
            null identifier,
            it.type_id [ItemTypeId],
            null [keyword],
            it.id_by_project [IdByProject],
            0 [Rating],
            sr.name [ServiceName],
            it.subject [Subject]
        FROM ASDK_ITEM it
        LEFT JOIN ASDK_CATEGORY ct ON it.category_id = ct.ctg_index
        JOIN ASDK_SERVICE sr ON sr.id = it.service_id  
        JOIN CONTAINSTABLE (
            ASDK_ITEM,
            (
                subject, 
                id_by_project
            ),
            @v_expression,
            LANGUAGE 0
        ) ON [key] = it.id
        WHERE it.customer_id = @i_user_id
        AND @i_user_id > 0
        UNION ALL 
        SELECT
            ito.id,
            ito.id_by_project,
            '' [title],
            null,
            'IT',
            ito.project_id,
            null,
            null,
            srv.name,
            ito.type_id,
            ito.id rown,
            IIF(@i_select_type>2, 3, 2) search_class,
            cty.ctg_caption CategoryName,
            ito.created_date Created,
            null identifier,
            ito.type_id [ItemTypeId],
            null [keyword],
            ito.id_by_project [IdByProject],
            0 [Rating],
            srv.name [ServiceName],
            ito.subject [Subject]
        FROM ASDK_ITEM ito
        LEFT JOIN ASDK_CATEGORY cty ON ito.category_id = cty.ctg_index
        JOIN ASDK_SERVICE srv ON srv.id = ito.service_id 
		JOIN ASMS_PROJECTS prj ON ito.project_id = prj.proj_id
		JOIN ASMS_STATUS sts ON ito.state_id = sts.stat_id
        WHERE ito.customer_id = @i_user_id
		AND (prj.proj_name LIKE '%'+@i_text+'%' OR srv.name LIKE '%'+@i_text+'%' OR sts.stat_name LIKE '%'+@i_text+'%' OR cty.ctg_caption LIKE '%'+@i_text+'%')
        AND  @i_user_id > 0


    )i 
    JOIN project_user p ON p.proj_id = i.project_id
    AND i.search_class in (@i_select_type)
	ORDER BY [id];
END;
GO
PRINT N'Creating Procedure [dbo].[PRC_ASDK_LANGUAGE_HIERARCHY]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASDK_LANGUAGE_HIERARCHY] (
  @i_ctg_index INT = -1,
  @i_language_id VARCHAR (6)
) AS
BEGIN
  SET NOCOUNT ON;

    DECLARE @v_parentHierarchy NVARCHAR(4000);

    -- Se eliminan tablas temporales por si por alguna razón todavia existen en memoria

      DROP TABLE IF EXISTS #TempCategories;
      DROP TABLE IF EXISTS #TempCategoryBaseData;

    -- Optimización: Usar tabla temporal para evitar repetidos JSON_VALUE y Joins en la recursión
    -- Esto mejora significativamente el rendimiento cuando se procesan todas las categorías
    CREATE TABLE #TempCategoryBaseData (
        ctg_index INT NOT NULL,
        ctg_parent INT,
        fl_str_hierarchy NVARCHAR(4000) COLLATE DATABASE_DEFAULT NULL,
        CONSTRAINT PK_tmp_BaseData PRIMARY KEY CLUSTERED (ctg_index)
    );
    -- Índice crítico para la recursión
    CREATE NONCLUSTERED INDEX IX_Temp_Parent ON #TempCategoryBaseData(ctg_parent);


    CREATE TABLE #TempCategories (
        ctg_index        INT            NOT NULL,
        fl_str_hierarchy NVARCHAR(4000)  COLLATE DATABASE_DEFAULT NOT NULL,
        CONSTRAINT PK_tmp_hierarchy PRIMARY KEY CLUSTERED (ctg_index)
    );

  -- Identificar la jerarquia del padre del ítem seleccionado
  IF (@i_ctg_index = -1)
  BEGIN

    -- Poblar temporal con traducciones ya resueltas
    -- Se usa t.value_name (columna computada cubierta por IX01_ASMS_TRANSLATION) para evitar key lookup
    INSERT INTO #TempCategoryBaseData (
        ctg_index, 
        ctg_parent, 
        fl_str_hierarchy
    )
    SELECT 
        c.ctg_index, 
        c.ctg_parent, 
        COALESCE(t.value_name, c.ctg_caption, '')
    FROM ASDK_CATEGORY c 
    LEFT JOIN (
        SELECT instance_id, value_name
        FROM ASMS_TRANSLATION
        WHERE type_id = 83 
        AND language_id = @i_language_id
    ) t ON t.instance_id = c.ctg_index;

    -- CTE Recursivo sobre la temporal (mucho más rápido que sobre la vista/join complejo)
    WITH cte_ctegories AS (
        SELECT 
            c.ctg_index, 
            COALESCE(fl_str_hierarchy, N'' COLLATE DATABASE_DEFAULT) AS fl_str_hierarchy, 
            1 lvl
        FROM #TempCategoryBaseData c WHERE ctg_parent IS NULL
        UNION ALL
        SELECT 
            ch.ctg_index, 
            CAST( CONCAT( COALESCE(cp.fl_str_hierarchy, N'' COLLATE DATABASE_DEFAULT),
                        N'.' COLLATE DATABASE_DEFAULT,
                        COALESCE(ch.fl_str_hierarchy, N'' COLLATE DATABASE_DEFAULT)
                    )
            AS NVARCHAR(4000)), 
            lvl + 1
        FROM cte_ctegories cp 
        JOIN #TempCategoryBaseData ch ON ch.ctg_parent = cp.ctg_index
    )

    INSERT INTO #TempCategories (
        ctg_index, 
        fl_str_hierarchy
    )
    SELECT ctg_index, 
        fl_str_hierarchy  
    FROM   cte_ctegories
    OPTION (MAXRECURSION 0);

    -- UPDATE - solo registros donde la jerarquía cambió

    UPDATE tgt
    SET    tgt.fl_str_hierarchy = src.fl_str_hierarchy
    FROM   ASDK_CATEGORY_HIERARCHY tgt
    JOIN   #TempCategories src ON  src.ctg_index = tgt.ctg_index
            AND  tgt.language_id = @i_language_id
    WHERE  tgt.fl_str_hierarchy <> src.fl_str_hierarchy;

    -- INSERT - solo registros que no existen aún en ASDK_CATEGORY_HIERARCHY

    INSERT INTO ASDK_CATEGORY_HIERARCHY (
        ctg_index, 
        language_id, 
        fl_str_hierarchy
    )
    SELECT 
        src.ctg_index, 
        @i_language_id, 
        src.fl_str_hierarchy
    FROM #TempCategories src
    WHERE NOT EXISTS (
        SELECT 1 FROM   ASDK_CATEGORY_HIERARCHY tgt
        WHERE  tgt.ctg_index   = src.ctg_index 
        AND  tgt.language_id = @i_language_id
    );

    -- DELETE - Elimina solo categorías que ya no existen en ASDK_CATEGORY_HIERARCHY

    DELETE tgt
    FROM   ASDK_CATEGORY_HIERARCHY tgt
    WHERE  tgt.language_id = @i_language_id
    AND  NOT EXISTS (
        SELECT 
            1 
        FROM   #TempCategories src
        WHERE  src.ctg_index = tgt.ctg_index
    );


  END
  ELSE
  BEGIN


    -- Obtener la jerarquía ya construida del PADRE del ítem recibido
    SELECT TOP 1 @v_parentHierarchy = fl_str_hierarchy 
    FROM ASDK_CATEGORY_HIERARCHY 
    WHERE   language_id = @i_language_id 
    AND ctg_index = (  
        SELECT 
            ctg_parent 
        FROM ASDK_CATEGORY 
        WHERE ctg_index = @i_ctg_index
    );
    
    --Crear jerarquía para un ítem dado de acuerdo al lenguaje encontrado
    ;WITH cte_subtree AS (
        SELECT 
            ctg_index,
            ctg_caption, 
            ctg_parent
        FROM   ASDK_CATEGORY WHERE  ctg_index = @i_ctg_index
        UNION ALL
        SELECT 
            c.ctg_index, 
            c.ctg_caption, 
            c.ctg_parent
        FROM   ASDK_CATEGORY c
        JOIN   cte_subtree   s ON c.ctg_parent = s.ctg_index
    )
    INSERT INTO #TempCategoryBaseData (
        ctg_index, 
        ctg_parent, 
        fl_str_hierarchy
    )
    SELECT 
        c.ctg_index, 
        c.ctg_parent,
        COALESCE(t.value_name, c.ctg_caption, '')
    FROM cte_subtree c   
    LEFT JOIN ASMS_TRANSLATION t
            ON t.instance_id = c.ctg_index
            AND t.language_id = @i_language_id
            AND t.type_id     = 83
    OPTION (MAXRECURSION 0);

    WITH  cte_ctegories AS (
      SELECT c.ctg_index, COALESCE(fl_str_hierarchy, N'' COLLATE DATABASE_DEFAULT) AS fl_str_hierarchy, 1 lvl
      FROM #TempCategoryBaseData c 
      WHERE ctg_index = @i_ctg_index
      UNION ALL
      SELECT 
        ch.ctg_index, 
        CAST(CONCAT(COALESCE(cp.fl_str_hierarchy, N'' COLLATE DATABASE_DEFAULT),
        N'.' COLLATE DATABASE_DEFAULT,COALESCE(ch.fl_str_hierarchy, N'' COLLATE DATABASE_DEFAULT)) AS NVARCHAR(4000)), 
        lvl + 1
      FROM cte_ctegories cp 
      JOIN #TempCategoryBaseData ch ON ch.ctg_parent = cp.ctg_index
    )

    INSERT INTO #TempCategories (
        ctg_index, 
        fl_str_hierarchy
    )
    SELECT 
        ctg_index, 
        fl_str_hierarchy  
    FROM   cte_ctegories
    OPTION (MAXRECURSION 0);

    -- UPDATE - solo registros donde la jerarquía cambió

    UPDATE tgt
    SET    tgt.fl_str_hierarchy = IIF(COALESCE(@v_parentHierarchy,'')= '',
        src.fl_str_hierarchy, 
        CONCAT(@v_parentHierarchy, '.', src.fl_str_hierarchy)) 
    FROM   ASDK_CATEGORY_HIERARCHY tgt
    JOIN   #TempCategories        src
            ON  src.ctg_index   = tgt.ctg_index
            AND  tgt.language_id = @i_language_id
    WHERE  tgt.fl_str_hierarchy <> IIF(
        COALESCE(@v_parentHierarchy, '') = '',
        src.fl_str_hierarchy,
        CONCAT(@v_parentHierarchy, '.', src.fl_str_hierarchy)
    );

    -- INSERT - solo registros que no existen aún en ASDK_CATEGORY_HIERARCHY

    INSERT INTO ASDK_CATEGORY_HIERARCHY (
        ctg_index, 
        language_id, 
        fl_str_hierarchy
    )
    SELECT 
        src.ctg_index, 
        @i_language_id,
        IIF( COALESCE(@v_parentHierarchy, '') = '',
            src.fl_str_hierarchy, CONCAT(@v_parentHierarchy, '.', src.fl_str_hierarchy))
    FROM #TempCategories src
    WHERE NOT EXISTS (
        SELECT 1 
        FROM   ASDK_CATEGORY_HIERARCHY tgt
        WHERE  tgt.ctg_index   = src.ctg_index 
        AND  tgt.language_id = @i_language_id
    );

    -- DELETE - Elimina solo categorías que ya no existen en ASDK_CATEGORY_HIERARCHY

    DELETE tgt
    FROM   ASDK_CATEGORY_HIERARCHY tgt
    WHERE  tgt.language_id = @i_language_id
    AND  tgt.ctg_index  IN (
        SELECT 
            ctg_index 
        FROM #TempCategoryBaseData)
        AND  NOT EXISTS (
            SELECT 
                1 
            FROM   #TempCategories src
            WHERE  src.ctg_index = tgt.ctg_index
    );

  END

  DROP TABLE IF EXISTS #TempCategories;
  DROP TABLE IF EXISTS #TempCategoryBaseData;

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_ASDK_REVIEW_PROFILES]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASDK_REVIEW_PROFILES]
	@i_serviceId INT
AS
BEGIN
	SET NOCOUNT ON;

	DECLARE @v_group_UserId INT;
    DECLARE @v_profileName VARCHAR(MAX);
	DECLARE @TT_ProfileNames TABLE 
	(
		Name VARCHAR(MAX)
	);

	INSERT INTO @TT_ProfileNames
	SELECT AMP.name
	FROM ASDK_SERVICE_TYPE AST 
	JOIN ASMS_MODEL AM ON AM.id = AST.model_id
	JOIN ASMS_MODELPROFILES AMP ON AMP.model_id = AM.id
	WHERE AST.service_id = @i_serviceId
	UNION
	SELECT AMP.name
	FROM ASDK_CATEGORY_TYPE ACT 
	JOIN ASMS_MODEL AM ON AM.id = ACT.caty_model_id
	JOIN ASMS_MODELPROFILES AMP ON AMP.model_id = AM.id
	WHERE ACT.caty_service_id = @i_serviceId

	DECLARE @TT_Result TABLE 
	(
		ProfileId INT,
		GroupId INT NULL,
		UserId INT NULL,
		IsInsert BIT
	);

	DECLARE @TT_Profiles TABLE
	(
		Id INT,
		Name VARCHAR(MAX)
	);

	DECLARE @TT_Groups TABLE
	(
		Id INT,
		ProfileName VARCHAR(MAX)
	);
	DECLARE @TT_Users TABLE
	(
		Id INT,
		ProfileName VARCHAR(MAX)
	);

	DECLARE ProfileNamesCursor CURSOR
	FOR
	SELECT Name
	FROM @TT_ProfileNames;

	OPEN ProfileNamesCursor
	FETCH NEXT FROM ProfileNamesCursor INTO @v_profileName
	WHILE @@FETCH_STATUS = 0
	BEGIN
		INSERT INTO @TT_Profiles
		SELECT AMP.id, AMP.name
		FROM ASDK_SERVICE_TYPE AST 
		JOIN ASMS_MODEL AM ON AM.id = AST.model_id
		JOIN ASMS_MODELPROFILES AMP ON AMP.model_id = AM.id
		WHERE AST.service_id = @i_serviceId AND AMP.name = @v_profileName
		UNION
		SELECT AMP.id, AMP.name
		FROM ASDK_CATEGORY_TYPE ACT 
		JOIN ASMS_MODEL AM ON AM.id = ACT.caty_model_id
		JOIN ASMS_MODELPROFILES AMP ON AMP.model_id = AM.id
		WHERE ACT.caty_service_id = @i_serviceId AND AMP.name = @v_profileName;
				
		INSERT INTO @TT_Groups
		SELECT DISTINCT ASG.GRP_ID, AMP.name
		FROM ASDK_SERVICE_GROUP ASG
		JOIN ASMS_MODELPROFILES AMP ON AMP.id = ASG.profile_id
		WHERE ASG.FL_INT_SERVICE_ID = @i_serviceId AND AMP.name = @v_profileName;

		INSERT INTO @TT_Users
		SELECT DISTINCT ASS.specialist_id, AMP.name
		FROM ASDK_SERVICEPROFILE_SPECIALIST ASS
		JOIN ASMS_MODELPROFILES AMP ON AMP.id = ASS.profile_id
		WHERE ASS.service_id = @i_serviceId AND AMP.name = @v_profileName;

		FETCH NEXT FROM ProfileNamesCursor INTO @v_profileName
	END
	CLOSE ProfileNamesCursor
	DEALLOCATE ProfileNamesCursor

	DECLARE GroupCursor CURSOR
	FOR
	SELECT Id, ProfileName
	FROM @TT_Groups;

	OPEN GroupCursor
	FETCH NEXT FROM GroupCursor INTO @v_group_UserId, @v_profileName
	WHILE @@FETCH_STATUS = 0
	BEGIN
		INSERT INTO @TT_Result
		SELECT IIF(GroupService.profile_id IS NULL, Profiles.id, GroupService.profile_id), @v_group_UserId, NULL, IIF(GroupService.profile_id IS NULL, 1, 0)
		FROM 
		(
			SELECT ASG.profile_id, ASG.GRP_ID
			FROM ASDK_SERVICE_GROUP ASG
			JOIN ASMS_MODELPROFILES AMP ON AMP.id = ASG.profile_id
			WHERE ASG.FL_INT_SERVICE_ID = @i_serviceId AND AMP.name = @v_profileName AND GRP_ID = @v_group_UserId
		) AS GroupService
		FULL OUTER JOIN 
		(
			SELECT * 
			FROM @TT_Profiles
			WHERE Name = @v_profileName
		) AS Profiles ON GroupService.profile_id = Profiles.id
		WHERE Profiles.id IS NULL OR GroupService.profile_id IS NULL

		FETCH NEXT FROM GroupCursor INTO @v_group_UserId, @v_profileName
	END
	CLOSE GroupCursor 
	DEALLOCATE GroupCursor

	DECLARE UserCursor CURSOR
	FOR
	SELECT Id, ProfileName
	FROM @TT_Users;

	OPEN UserCursor
	FETCH NEXT FROM UserCursor INTO @v_group_UserId, @v_profileName
	WHILE @@FETCH_STATUS = 0
	BEGIN
		INSERT INTO @TT_Result
		SELECT IIF(UserService.profile_id IS NULL, Profiles.id, UserService.profile_id), NULL, @v_group_UserId, IIF(UserService.profile_id IS NULL, 1, 0)
		FROM 
		(
			SELECT ASS.profile_id, ASS.specialist_id
			FROM ASDK_SERVICEPROFILE_SPECIALIST ASS
			JOIN ASMS_MODELPROFILES AMP ON AMP.id = ASS.profile_id
			WHERE ASS.service_id = @i_serviceId AND AMP.name = @v_profileName AND ASS.specialist_id = @v_group_UserId
		) AS UserService
		FULL OUTER JOIN 
		(
			SELECT * 
			FROM @TT_Profiles
			WHERE Name = @v_profileName
		) AS Profiles ON UserService.profile_id = Profiles.id
		WHERE Profiles.id IS NULL OR UserService.profile_id IS NULL

		FETCH NEXT FROM UserCursor INTO @v_group_UserId, @v_profileName
	END
	CLOSE UserCursor 
	DEALLOCATE UserCursor

	--INSERT GROUP
	INSERT INTO ASDK_SERVICE_GROUP
	SELECT @i_serviceId, T.GroupId, T.ProfileId
	FROM @TT_Result T
	WHERE T.GroupId IS NOT NULL AND T.IsInsert = 1

	--DELETE GROUP
	DELETE ASG
	FROM ASDK_SERVICE_GROUP ASG
	JOIN @TT_Result R ON R.GroupId = ASG.GRP_ID AND R.ProfileId = ASG.profile_id
	WHERE ASG.FL_INT_SERVICE_ID = @i_serviceId AND R.GroupId IS NOT NULL AND R.IsInsert = 0

	--INSERT USER
	INSERT INTO ASDK_SERVICEPROFILE_SPECIALIST
	SELECT @i_serviceId, T.ProfileId, T.UserId
	FROM @TT_Result T
	WHERE T.UserId IS NOT NULL AND T.IsInsert = 1

	--DELETE USER
	DELETE ASS
	FROM ASDK_SERVICEPROFILE_SPECIALIST ASS
	JOIN @TT_Result R ON R.UserId = ASS.specialist_id AND R.ProfileId = ASS.profile_id
	WHERE ASS.service_id = @i_serviceId AND R.UserId IS NOT NULL AND R.IsInsert = 0
END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASDK_SEMANTIC_SEARCH]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASDK_SEMANTIC_SEARCH] (
	@i_user_id INT = -1,
	@i_text VARCHAR (1000),
	@i_service_id INT = -1,
	@i_user_language VARCHAR(2) = 'es'
) AS
BEGIN
	DECLARE
		@v_expression VARCHAR (8000),
		@v_search_text VARCHAR (MAX);
	SET @i_text = REPLACE(REPLACE(REPLACE (@i_text, '(', ''),')',''),',',' ');
	SET @v_search_text = LTRIM(RTRIM(@i_text));

	WHILE @v_search_text LIKE '%  %'
	BEGIN
		SET @v_search_text = REPLACE (@v_search_text, '  ', ' ');

	END;

	SET @v_search_text = REPLACE (@v_search_text, ' ', ', ');
	IF OBJECT_ID(N'sys.database_service_objectives') IS NOT NULL 
		SET @v_expression = CONCAT ('FORMSOF (INFLECTIONAL, ', @v_search_text, ') ', 'OR ISABOUT (', @v_search_text, ') ');
	ELSE
		SET @v_expression = CONCAT ('FORMSOF (INFLECTIONAL, ', @v_search_text, ') ', 'OR FORMSOF (THESAURUS, ', @v_search_text, ') ', 'OR ISABOUT (', @v_search_text, ') ');

	WITH project_user as (
		SELECT 
			p.proj_id,
			P.proj_name
		FROM ASMS_PROJECTS p
		JOIN ASMS_PROJECT_USER up ON up.proj_id = p.proj_id
		AND up.type_id = 37 AND up.user_id = @i_user_id
		WHERE p.proj_state = 1
		AND EXISTS (
				SELECT DISTINCT ctt.caty_type_rec_id
				FROM ASDK_SERVICE s
				JOIN ASDK_CATEGORY_TYPE ctt ON s.id = ctt.caty_service_id
				WHERE p.proj_id = s.project_id
		AND EXISTS (
				SELECT *
				FROM (
				SELECT us.ser_id
				FROM ASDK_SLA_USER us
				WHERE us.user_id = @i_user_id
				UNION
				SELECT sc.ser_id
				FROM ASDK_SLA_VENDOR sc
				JOIN ASMS_USER_VENDOR uv ON sc.company_id = uv.VENDOR_ID
				WHERE sc.type_id = 38 
				AND uv.user_id = @i_user_id
				UNION
				SELECT sc.ser_id
				FROM ASDK_SLA_GROUP sc
				JOIN ASMS_GROUP_USER gu ON sc.grou_id = gu.group_id
				WHERE sc.type_id = 64 
				AND gu.user_id = @i_user_id
					) su
		JOIN ASDK_SERVICE s ON s.id = su.ser_id
		WHERE s.project_id = p.proj_id

		))), type_cases_allowed AS (
			SELECT 
				DISTINCT ctt.caty_type_rec_id,
				s.project_id
			FROM ASDK_SERVICE s
				JOIN ASMS_PROJECT_USER pu ON pu.proj_id = s.project_id
				JOIN ASDK_CATEGORY_TYPE ctt ON s.id = ctt.caty_service_id
			WHERE  pu.user_id = @i_user_id  
			AND pu.type_id = 37 
		), translations_concepts AS (
			SELECT  
				trd.trans_id,
				trd.instance_id,
				trd.language_id,
				trd.type_id,
				trd.value_text,trd.value
			FROM ASMS_TRANSLATION trd
			WHERE  trd.language_id = @i_user_language 
			AND trd.type_id in (5,7,78, 83)
		)
		,service_project AS (
			SELECT distinct sv.project_id    project_id,
				sv.id    service_id,        
				sv.name service_name,
				sv.description  service_description,
				sv.image_name    service_image,
				sv.image_id service_image_id
			FROM ASDK_SERVICE sv
			JOIN ASMS_STATUS sb ON stat_id = sv.state_id AND stat_behavior IN (3)
			JOIN ASDK_CATEGORY_SERVICE c ON c.service_id = sv.id AND c.status_id = 1 AND c.is_visible_user = 1
			JOIN ASDK_CATEGORY_TYPE ctr ON ctr.caty_category_id = c.category_id AND ctr.caty_type_rec_id IN (1, 3, 4) AND c.service_id = ctr.caty_service_id
			LEFT JOIN AFW_CATALOG_CODE i ON i.code_id = sv.impact_id
			AND ctr.caty_type_rec_id IN (SELECT caty_type_rec_id FROM type_cases_allowed tc WHERE tc.project_id = sv.project_id) 
			AND EXISTS (
				SELECT 1
				FROM ASDK_CATEGORY c
				JOIN ASDK_CATEGORY_SERVICE acse ON c.ctg_index = acse.category_id
				WHERE c.ctg_index = category_id
				AND acse.is_visible_user = 1
			)
	)

	SELECT DISTINCT
		i.[key_type],
		i.[key],
		i.[key_internal],
		i.[title],
		i.[description],
		p.proj_id project_id,
		IIF( ISNULL(tc.value,'')<>'' , dbo.FUN_JSON_VALUE(tc.value,'"Name'), p.proj_name)  project_name,
		i.image_name,
		i.image_id,
		i.alternative_description,
		i.type_id
	FROM (	SELECT DISTINCT
			service_id [key],
			null [key_internal],
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Name'), service_name) as [title],
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Description'), service_description) as [description],
			'SR' [key_type],
			project_id,
			service_image [image_name],
			service_image_id [image_id],
			null [alternative_description],
			null [type_id],
			ROW_NUMBER() OVER(ORDER BY [rank] DESC) rown
		FROM (
			SELECT us.ser_id
			FROM ASDK_SLA_USER us
			WHERE us.user_id = @i_user_id
			UNION
			SELECT sc.ser_id
			FROM ASDK_SLA_VENDOR sc
			JOIN ASMS_USER_VENDOR uv ON sc.company_id = uv.VENDOR_ID
			WHERE sc.type_id = 38 AND uv.user_id = @i_user_id
			UNION
			SELECT sc.ser_id
			FROM ASDK_SLA_GROUP sc
			JOIN ASMS_GROUP_USER gu ON sc.grou_id = gu.group_id
			WHERE sc.type_id = 64 AND gu.user_id = @i_user_id
		) su
		JOIN (SELECT service_id,
			service_name,
			service_description,
			project_id,
			service_image,
			service_image_id
			FROM service_project  
			GROUP BY service_id,
			service_name,
			service_description,
			project_id,
			service_image,
			service_image_id) sp 
			ON sp.service_id = su.ser_id
		JOIN CONTAINSTABLE (
			ASDK_SERVICE,
			(
				name, 
				description
			),
			@v_expression,
			LANGUAGE 0
		) ON [key] = su.ser_id
		LEFT JOIN translations_concepts trd ON trd.instance_id = su.ser_id  AND trd.type_id = 5   

		UNION ALL

		SELECT DISTINCT
			service_id,
			null,
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Name'), service_name) as service_name,
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Description'), service_description) as service_description,
			'SR',
			project_id,
			service_image,
			service_image_id,
			null,
			null,
			ROW_NUMBER() OVER(ORDER BY [rank] DESC) rown
		FROM (
			SELECT us.ser_id
			FROM ASDK_SLA_USER us
			WHERE us.user_id = @i_user_id
			UNION
			SELECT sc.ser_id
			FROM ASDK_SLA_VENDOR sc
			JOIN ASMS_USER_VENDOR uv ON sc.company_id = uv.VENDOR_ID
			WHERE sc.type_id = 38 AND uv.user_id = @i_user_id
			UNION
			SELECT sc.ser_id
			FROM ASDK_SLA_GROUP sc
			JOIN ASMS_GROUP_USER gu ON sc.grou_id = gu.group_id
			WHERE sc.type_id = 64 
			AND gu.user_id = @i_user_id
		) su
		JOIN (SELECT service_id,
			service_name,
			service_description,
			project_id,
			service_image,
			service_image_id
			FROM service_project ) sp 
			ON sp.service_id = su.ser_id
		LEFT JOIN translations_concepts trd ON trd.instance_id = su.ser_id AND trd.type_id = 5 
		JOIN CONTAINSTABLE (
			ASMS_TRANSLATION,
			(
				value_text
			),
			@v_expression,
			LANGUAGE 0
		) ON [key] = trd.trans_id  

		UNION ALL
		SELECT DISTINCT
			c.ctg_index,
			convert(nvarchar,sc.id),
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Name'), c.fl_str_hierarchy) as fl_str_hierarchy,
			sc.name,
			'CT',
			sc.project_id,
			c.fl_str_image,
			c.fl_int_image_id,
			c.fl_str_description,
			null,
			ROW_NUMBER() OVER(ORDER BY [rank] DESC) rown
		FROM ASDK_CATEGORY c
		JOIN ASDK_CATEGORY_SERVICE asdc ON c.ctg_index = asdc.category_id
		JOIN ASDK_SERVICE sc ON asdc.service_id =  sc.id
		JOIN ASDK_CATEGORY_TYPE ctr ON ctr.caty_category_id = asdc.category_id AND ctr.caty_type_rec_id IN (1, 3, 4) AND asdc.service_id = ctr.caty_service_id
		JOIN ASMS_MODEL mdl ON ctr.caty_model_id = mdl.id AND mdl.active = 1
		JOIN ASMS_STATUS sb ON stat_id = sc.state_id AND stat_behavior IN (3)
		JOIN (
			SELECT us.ser_id
			FROM ASDK_SLA_USER us
			WHERE us.user_id = @i_user_id
			UNION
			SELECT sc.ser_id
			FROM ASDK_SLA_VENDOR sc
			JOIN ASMS_USER_VENDOR uv ON sc.company_id = uv.VENDOR_ID
			WHERE sc.type_id = 38 
			AND uv.user_id = @i_user_id
			UNION
			SELECT sc.ser_id
			FROM ASDK_SLA_GROUP sc
			JOIN ASMS_GROUP_USER gu ON sc.grou_id = gu.group_id
			WHERE sc.type_id = 64 
			AND gu.user_id = @i_user_id
		) su ON su.ser_id=  sc.id
		JOIN CONTAINSTABLE (
			ASDK_CATEGORY,
			(
				ctg_caption,
				fl_str_description
			),
			@v_expression,
			LANGUAGE 0
		) ON [key] = c.ctg_index
		LEFT JOIN translations_concepts trd ON c.ctg_index = trd.instance_id AND trd.type_id = 83
		WHERE asdc.is_visible_user = 1
		AND c.fl_int_status_id = 1 
		AND asdc.status_id = 1
		 

		UNION ALL
		SELECT DISTINCT
			c.ctg_index,
			convert(nvarchar,sc.id),
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Name'), c.fl_str_hierarchy) as fl_str_hierarchy,
			IIF( ISNULL(trdServ.value,'')<>'' , dbo.FUN_JSON_VALUE(trdServ.value,'"Name'), sc.name) ,
			'CT',
			sc.project_id,
			c.fl_str_image,
			c.fl_int_image_id,
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Description'), c.fl_str_description) as fl_str_description ,
			null,
			ROW_NUMBER() OVER(ORDER BY [rank] DESC) rown
		FROM ASDK_CATEGORY c
		JOIN ASDK_CATEGORY_SERVICE asdc ON c.ctg_index = asdc.category_id
		JOIN ASDK_SERVICE sc ON asdc.service_id =  sc.id
		JOIN ASDK_CATEGORY_TYPE ctr ON ctr.caty_category_id = asdc.category_id AND ctr.caty_type_rec_id IN (1, 3, 4) AND asdc.service_id = ctr.caty_service_id
		JOIN ASMS_MODEL mdl ON ctr.caty_model_id = mdl.id AND mdl.active = 1
		JOIN ASMS_STATUS sb ON stat_id = sc.state_id AND stat_behavior IN (3)
		JOIN (
			SELECT us.ser_id
			FROM ASDK_SLA_USER us
			WHERE us.user_id = @i_user_id
			UNION
			SELECT sc.ser_id
			FROM ASDK_SLA_VENDOR sc
			JOIN ASMS_USER_VENDOR uv ON sc.company_id = uv.VENDOR_ID
			WHERE sc.type_id = 38 
			AND uv.user_id = @i_user_id
			UNION
			SELECT sc.ser_id
			FROM ASDK_SLA_GROUP sc
			JOIN ASMS_GROUP_USER gu ON sc.grou_id = gu.group_id
			WHERE sc.type_id = 64 
			AND gu.user_id = @i_user_id
		) su ON su.ser_id=  sc.id
		LEFT JOIN translations_concepts trd ON c.ctg_index = trd.instance_id AND trd.type_id = 83 
		LEFT JOIN translations_concepts trdServ ON sc.id = trdServ.instance_id AND trdServ.type_id = 5 
		JOIN CONTAINSTABLE (
			ASMS_TRANSLATION,
			(
				value_text
			),
			@v_expression,
			LANGUAGE 0
		) ON [key] = trd.trans_id
		WHERE asdc.is_visible_user = 1
		AND c.fl_int_status_id = 1 
		AND asdc.status_id = 1
		

		UNION ALL
		SELECT DISTINCT
			af.ctg_index,
			NULL,
			af.ctg_caption,
			CONVERT(NVARCHAR(10), service_count) service_count,
			'FD',
			af.ctg_project_id,
			af.fl_str_image,
			af.fl_int_image_id,
			null,
			null,
			ROW_NUMBER() OVER(ORDER BY [rank] DESC) rown
		FROM ASMS_FOLDER af
		JOIN (SELECT afi2.folder_id,
			count(afi2.item_id) service_count FROM (SELECT 
			folder_id, 
			item_id 
		FROM ASMS_FOLDER_ITEM afi
		INNER JOIN ASDK_SERVICE ASE ON ASE.id = AFI.item_id
		INNER JOIN ASDK_CATEGORY_SERVICE AC ON AC.service_id = ASE.id
		INNER JOIN ASDK_CATEGORY_TYPE CT ON CT.caty_category_id = AC.category_id AND AC.service_id = CT.caty_service_id
		INNER JOIN ASMS_STATUS AS ST ON ASE.state_id = ST.stat_id
		WHERE afi.type_id = 5 
		AND CT.caty_type_rec_id IN (1,3,4)
		AND AC.status_id = 1
		AND ST.stat_final = 0
		AND ((EXISTS (SELECT 1 
		FROM ASDK_SLA_USER ASU 
		WHERE ASU.ser_id = afi.item_id 
		AND ASU.user_id = @i_user_id))
		OR (EXISTS(SELECT 1 
		FROM ASDK_SLA_GROUP ASG 
		JOIN AFW_GROUP_USER AGU ON AGU.grou_id = ASG.grou_id
		WHERE ASG.type_id = 64 
		AND ASG.ser_id = afi.item_id 
		AND AGU.user_id = @i_user_id)) 
		OR (EXISTS(SELECT 1 
		FROM ASDK_SLA_VENDOR ASV
		JOIN ASMS_USER_VENDOR AUV ON AUV.VENDOR_ID = ASV.company_id
		WHERE ASV.ser_id = afi.item_id 
		AND ASV.type_id = 38 
		AND AUV.user_id = @i_user_id)))
		GROUP BY afi.folder_id, AFI.item_id) afi2 GROUP BY afi2.folder_id) afi2 ON af.ctg_index = afi2.folder_id
		JOIN CONTAINSTABLE (
			ASMS_FOLDER,
			(
				ctg_caption,
				fl_str_description,
				fl_str_image
			),
			@v_expression,
			LANGUAGE 0
		) ON [key] = af.ctg_index
		UNION ALL
		SELECT
			it.id,
			it.id_by_project,
			it.subject,
			null,
			'IT',
			it.project_id,
			null,
			null,
			sr.name,
			it.type_id,
			ROW_NUMBER() OVER(ORDER BY [rank] DESC) rown
		FROM ASDK_ITEM it
		JOIN ASDK_SERVICE sr ON sr.id = it.service_id  
		JOIN CONTAINSTABLE (
			ASDK_ITEM,
			(
				subject, 
				id_by_project
			),
			@v_expression,
			LANGUAGE 0
		) ON [key] = it.id
		WHERE it.customer_id = @i_user_id
		AND @i_user_id > 0
	) i 
	JOIN project_user p ON p.proj_id = i.project_id
	LEFT JOIN translations_concepts tc ON tc.instance_id = p.proj_id AND tc.type_id = 78
	WHERE rown BETWEEN 1 AND 5
	UNION ALL
	SELECT DISTINCT
		kbq.[key_type],
		kbq.[key],
		kbq.[key_internal],
		kbq.[title],
		kbq.[description],
		kbq.project_id,
		kbq.project_name,
		kbq.image_name,
		kbq.image_id,
		kbq.alternative_description,
		kbq.type_id
	FROM (SELECT
			'KB' [key_type],
			kb.id [key],
			kb.identifier [key_internal],
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Title'), s.title)  [title],
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Description'), s.description)  [description],
			kb.project_id [project_id],
			null [project_name],
			null [image_name],
			null [image_id],
			null [alternative_description],
			null [type_id],
			ROW_NUMBER() OVER(ORDER BY [rank] DESC) rown
		FROM ASS_ARTICLE kb
		JOIN ASS_ARTICLE_VERSION s ON kb.id = s.id
		LEFT JOIN ASMS_MODEL m ON kb.type_id = m.id
		LEFT JOIN ASMS_TRANSLATION trd ON kb.id = trd.instance_id AND trd.type_id = 7 AND trd.language_id = @i_user_language
		JOIN CONTAINSTABLE (
			ASS_ARTICLE,
			(
				title, 
				keyword, 
				content
			),
			@v_expression,
			LANGUAGE 0
		) ON [key] = kb.id
		WHERE kb.is_public = 1 
		AND s.is_public = 1 
		AND s.is_active = 1
		AND m.active = 1
		AND NOT ( kb.enable_groups_relation IS NOT NULL
			AND kb.enable_groups_relation = 1 AND NOT EXISTS (
				SELECT 1 
				FROM ASMS_GROUP_USER AS gru 
				WHERE gru.type_id = 64 
				AND gru.user_id = @i_user_id 
				AND ( 
					EXISTS (
						SELECT 1 
						FROM AFW_GROUPS AS gp
						WHERE gp.GROU_ID = gru.group_id AND gp.grou_is_active = 1 
					)
				) 
				AND ( 
					EXISTS (
						SELECT 1 
						FROM ASS_ARTICLE_GROUP AS atg
						WHERE atg.group_id = gru.group_id 
						AND atg.article_id = kb.id 
						AND atg.type_id = 64 
					)
				) 
			)
		)
		UNION ALL
		SELECT
			'KB' [key_type],
			kb.id [key],
			kb.identifier [key_internal],
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Title'), s.title)  [title],
			IIF( ISNULL(trd.value,'')<>'' , dbo.FUN_JSON_VALUE(trd.value,'"Description'), s.description)  [description],
			kb.project_id [project_id],
			null [project_name],
			null [image_name],
			null [image_id],
			null [alternative_description],
			null [type_id],
			ROW_NUMBER() OVER(ORDER BY [rank] DESC) rown
		FROM ASS_ARTICLE kb
		JOIN ASS_ARTICLE_VERSION s ON kb.id = s.id
		LEFT JOIN ASMS_MODEL m ON kb.type_id = m.id
		LEFT JOIN ASMS_TRANSLATION trd ON kb.id = trd.instance_id AND trd.type_id = 7 AND trd.language_id = @i_user_language
		JOIN CONTAINSTABLE (
			ASMS_TRANSLATION,
			(
				value_text
			),
			@v_expression,
			LANGUAGE 0
		) ON [key] = trd.trans_id
		WHERE kb.is_public = 1 
		AND s.is_public = 1 
		AND s.is_active = 1
		AND m.active = 1
		AND NOT ( kb.enable_groups_relation IS NOT NULL
			AND kb.enable_groups_relation = 1 AND NOT EXISTS (
				SELECT 1 
				FROM ASMS_GROUP_USER AS gru 
				WHERE gru.type_id = 64 
				AND gru.user_id = @i_user_id 
				AND ( 
					EXISTS (
						SELECT 1 
						FROM AFW_GROUPS AS gp
						WHERE gp.GROU_ID = gru.group_id AND gp.grou_is_active = 1 
					)
				) 
				AND ( 
					EXISTS (
						SELECT 1 
						FROM ASS_ARTICLE_GROUP AS atg
						WHERE atg.group_id = gru.group_id 
						AND atg.article_id = kb.id 
						AND atg.type_id = 64 
					)
				) 
			)
		)
	) kbq

	JOIN ASMS_PROJECTS pkb ON pkb.proj_id = kbq.project_id
	JOIN ASMS_PROJECT_USER upkb ON upkb.proj_id = pkb.proj_id
	AND upkb.type_id = 37 AND upkb.user_id = @i_user_id
	LEFT JOIN ASMS_TRANSLATION tckb ON tckb.instance_id = pkb.proj_id AND tckb.type_id = 78
	WHERE rown BETWEEN 1 AND 5

	ORDER BY [key_type]
END;
GO
PRINT N'Creating Procedure [dbo].[PRC_ASDK_TRANSLATE_HIERARCHY]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASDK_TRANSLATE_HIERARCHY] (
	@i_categoryId INT = -1,
	@i_languageId VARCHAR (6) = NULL
) AS
BEGIN
    SET NOCOUNT ON;
    DECLARE
        @lang_id  VARCHAR (6);

	IF (@i_languageId is  null)
	BEGIN
		DECLARE cur_lang CURSOR LOCAL STATIC FOR
		SELECT id FROM ASMS_LANGUAGE;
		OPEN cur_lang;

		FETCH NEXT FROM cur_lang INTO
			@lang_id;
		WHILE @@FETCH_STATUS = 0
		BEGIN
			EXEC PRC_ASDK_LANGUAGE_HIERARCHY @i_categoryId, @lang_id;  
			FETCH NEXT FROM cur_lang INTO
				@lang_id;    
		END
        CLOSE cur_lang;
        DEALLOCATE cur_lang;
	END
	ELSE
	BEGIN
		EXEC PRC_ASDK_LANGUAGE_HIERARCHY @i_categoryId, @i_languageId;
	END

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_ASDK_UPDATE_SLA_USER]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASDK_UPDATE_SLA_USER] (
    @i_ldap_id INT,
    @i_batch_size INT = 1000
)
AS
BEGIN
    SET NOCOUNT ON;

    DECLARE @v_service_id INT;

    DECLARE cursor_sync_services CURSOR FOR 
    SELECT DISTINCT service_id 
    FROM ASDK_LDAP_SERVICE alsc
    CROSS JOIN (
        SELECT projects.[value] AS project_id
        FROM ASMS_SETTINGS AS as2
        CROSS APPLY OPENJSON(as2.sett_value)
        WITH (
            listIdProjects nvarchar(max) AS JSON
        ) AS projectsData
        CROSS APPLY OPENJSON(projectsData.listIdProjects) AS projects
        WHERE as2.sett_key = 'LdapProyectSetting'
    ) AS sp
    WHERE 
        alsc.ldap_id = @i_ldap_id AND 
        sp.project_id = alsc.project_id;

    OPEN cursor_sync_services;
    FETCH NEXT FROM cursor_sync_services INTO @v_service_id;

    WHILE @@FETCH_STATUS = 0
    BEGIN
        DECLARE @v_rows_affected INT = 1;

        WHILE @v_rows_affected > 0
        BEGIN
            WITH CTE_BATCH AS (
                SELECT TOP (@i_batch_size)
                    au.user_id
                FROM AFW_USERS au
                WHERE 
                    au.user_authentication_id = @i_ldap_id AND 
                    NOT EXISTS (
                        SELECT 1
                        FROM ASDK_LDAP_SERVICE als
                        INNER JOIN ASDK_SLA_USER asu
                        ON asu.ser_id = als.service_id
                        WHERE
                            als.service_id = @v_service_id AND 
                            asu.user_id = au.user_id
                    )
            )
            INSERT INTO ASDK_SLA_USER (sla_id, user_id, ser_id)
            SELECT 
                NULL,
                user_id,
                @v_service_id
            FROM CTE_BATCH;

            SET @v_rows_affected = @@ROWCOUNT;
        END

        FETCH NEXT FROM cursor_sync_services
        INTO @v_service_id;
    END

    CLOSE cursor_sync_services;
    DEALLOCATE cursor_sync_services;
END;
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_CLEAN_FILE_RULE]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASM_CLEAN_FILE_RULE]
(
	@i_file_rule_id INT
)
AS
BEGIN

UPDATE [file]
SET [file].[software_id] = NULL
FROM [AAM_FILE_VERSION] [file]
JOIN [ASM_FILE_GROUP] [group] ON [group].[file_version_id] = [file].[id]
WHERE [file_rule_id] = @i_file_rule_id

DELETE FROM [dbo].[ASM_FILE_GROUP]
WHERE [file_rule_id] = @i_file_rule_id

END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_CLEAN_SOFT_RULE]...';


GO
CREATE PROCEDURE [PRC_ASM_CLEAN_SOFT_RULE]
(
	@i_software_rule_id INT
)
AS
BEGIN

UPDATE [software]
SET [software].[parent_id] = NULL
FROM [AAM_SOFTWARE_VERSION] [software]
JOIN [ASM_SOFTWARE_GROUP] [group] ON [group].[software_id] = [software].[id]
WHERE [software_rule_id] = @i_software_rule_id

DELETE FROM [ASM_SOFTWARE_GROUP]
WHERE [software_rule_id] = @i_software_rule_id

END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_CLEAN_SOFT_USE]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASM_CLEAN_SOFT_USE]
(
	 @i_detail DATE,
	 @i_day DATE,
	 @i_month DATE
)
AS
BEGIN
	SELECT @@ROWCOUNT
	WHILE (@@ROWCOUNT > 0)
	BEGIN
		DELETE TOP(5000) FROM [dbo].[ASM_SOFTWARE_USAGE_DETAIL]   
		WHERE [date_id]  < (SELECT [dbo].[FUN_ADW_DATE_KEY] (@i_detail) )
	END

	SELECT @@ROWCOUNT
	WHILE (@@ROWCOUNT > 0)
	BEGIN
		DELETE TOP(5000) FROM [dbo].[ASM_SOFTWARE_USAGE_DAY]
		WHERE [date_id] <  (SELECT [dbo].[FUN_ADW_DATE_KEY] (@i_day) )
	END

	SELECT @@ROWCOUNT
	WHILE (@@ROWCOUNT > 0)
	BEGIN
		DELETE TOP(5000) su
		FROM  [ASM_SOFTWARE_USAGE_MONTH] su INNER JOIN [ADW_DIM_DATE] dd 
			  ON su.[year] = dd.[year]	AND su.[month] = dd.[month]
		WHERE dd.id < (SELECT [dbo].[FUN_ADW_DATE_KEY] (@i_month) )
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_CLEAN_SOFTWARE]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASM_CLEAN_SOFTWARE]
(
	@i_softwareId INT
)
AS
BEGIN

UPDATE [dbo].[AAM_SOFTWARE_VERSION]
SET [parent_id] = NULL
WHERE [parent_id] = @i_softwareId

DELETE FROM [dbo].[ASM_SOFTWARE_GROUP]
WHERE [software_id] = @i_softwareId

END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_CLEANDEVICE]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASM_CLEANDEVICE]
(
    @i_device_id INT
)
AS
BEGIN
    DECLARE @v_batch_size INT = 2000;

    -- ADM_DEVICE_INVENTORY
    DELETE FROM ADM_DEVICE_INVENTORY 
    WHERE device_id = @i_device_id 
      AND app_code = 8;

    -- ASM_LICENSE_ASSIGNMENT
    DELETE FROM ASM_LICENSE_ASSIGNMENT 
    WHERE device_id = @i_device_id;

    -- ASM_SOFTWARE_USAGE
    DELETE TOP (@v_batch_size) FROM ASM_SOFTWARE_USAGE 
    WHERE device_id = @i_device_id;

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (@v_batch_size) FROM ASM_SOFTWARE_USAGE 
        WHERE device_id = @i_device_id;
    END;

    -- ASM_SOFTWARE_USAGE_DAY
    DELETE TOP (@v_batch_size) FROM ASM_SOFTWARE_USAGE_DAY 
    WHERE device_id = @i_device_id;

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (@v_batch_size) FROM ASM_SOFTWARE_USAGE_DAY 
        WHERE device_id = @i_device_id;
    END;

    -- ASM_SOFTWARE_USAGE_DETAIL
    DELETE TOP (@v_batch_size) FROM ASM_SOFTWARE_USAGE_DETAIL 
    WHERE device_id = @i_device_id;

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (@v_batch_size) FROM ASM_SOFTWARE_USAGE_DETAIL 
        WHERE device_id = @i_device_id;
    END;
END;
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_CONSOLIDATE_CONTROL]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASM_CONSOLIDATE_CONTROL] (
	@i_id INT,
	@i_last_id BIGINT
) AS
BEGIN
	IF NOT EXISTS (
		SELECT *
		FROM ASM_CONSOLIDATE_CONTROL
		WHERE id = @i_id
	)
	BEGIN
		INSERT INTO ASM_CONSOLIDATE_CONTROL (
			id,
			last_id
		) VALUES (
			@i_id,
			@i_last_id
		);

	END;

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_CONSOLIDATE_MONTH]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASM_CONSOLIDATE_MONTH]
(
	@i_months INT
)
AS
BEGIN
		DECLARE @v_offset			INT,
				@v_day				INT,
				@v_from_date		DATE,
				@v_from_date_prev   DATE,
				@v_from_date_first  DATE

		SELECT @v_offset = sett_value FROM AFW_SETTINGS WHERE sett_key='ConsolidateASM';
		SET @v_from_date= CONVERT(DATE,DATEADD(HH,@v_offset, GETUTCDATE()))
		SET @v_from_date_first = CONVERT(DATE,DATEADD(MM,-@i_months, @v_from_date))
		SET @v_from_date_prev = DATEFROMPARTS(YEAR(@v_from_date_first), MONTH(@v_from_date_first), 1)

		DELETE  su
		 FROM [ASM_SOFTWARE_USAGE_MONTH] su
		INNER JOIN ADW_DIM_DATE dd 	ON su.[year] = dd.[year]  AND su.[month] = dd.[month]
		WHERE dd.[value] >= @v_from_date_prev

		INSERT INTO [dbo].[ASM_SOFTWARE_USAGE_MONTH]
				([year]
				,[month]
				,[device_id]
				,[file_id]
				,[logon_user_id]
				,[duration]
				,[cpu]
				,[memory])
		SELECT  dd.[year],
				dd.[month],
	  			sud.[device_id],
	  			sud.[file_id],
	  			sud.[logon_user_id],
				SUM(sud.[duration]) AS duration,
				SUM(sud.[cpu]) AS  cpu,
	  			SUM(sud.[memory]) AS memory
		FROM ASM_SOFTWARE_USAGE_DAY sud
		INNER JOIN ADW_DIM_DATE dd on sud.date_id= dd.id
		WHERE dd.[value] >= @v_from_date_prev
		GROUP BY dd.[year],
				dd.[month],
				sud.[device_id],
	  			sud.[file_id],
	  			sud.[logon_user_id]
END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_CONSOLIDATE_RANGE]...';


GO
CREATE PROCEDURE PRC_ASM_CONSOLIDATE_RANGE (
	@i_start INT,
	@i_end INT
) AS
BEGIN
	DECLARE @v_offset INT;

	SET NOCOUNT ON;

	SELECT
		@v_offset = CONVERT(INT, sett_value) * 60
	FROM AFW_SETTINGS
	WHERE sett_key = N'ConsolidateASM';

	IF @@ROWCOUNT = 0
	BEGIN
		SET @v_offset = -300;

	END;

	INSERT INTO STG_SOFTWARE_USAGE (
		device_id,
		file_id,
		logon_user_id,
		from_date,
		to_date,
		cpu,
		memory
	)
	SELECT TOP (@i_end - @i_start + 1)
		device_id,
		file_id,
		logon_user_id,
		DATEADD(MI, @v_offset, from_date) from_date,
	  	DATEADD(MI, @v_offset, to_date) to_date,
		cpu,
		memory
	FROM ASM_SOFTWARE_USAGE
	WHERE id BETWEEN @i_start AND @i_end
	OPTION (MAXDOP 1);

	MERGE ASM_SOFTWARE_USAGE_DAY t
	USING (
		SELECT
			dd.id,
			su.device_id,
			su.file_id,
			su.logon_user_id,
			SUM(DATEDIFF(SECOND, su.from_date, su.to_date)) duration,
			SUM(su.cpu) cpu,
			SUM(su.memory) memory
		FROM STG_SOFTWARE_USAGE su
		LEFT JOIN ADW_DIM_DATE dd ON dd.value = CONVERT(DATE, su.from_date)
		GROUP BY dd.id,
			su.device_id,
			su.file_id,
			su.logon_user_id
	) s ON (
		s.id = t.date_id
		AND s.device_id = t.device_id
		AND s.file_id = t.file_id
		AND s.logon_user_id = t.logon_user_id
	)
	WHEN MATCHED THEN UPDATE SET
		t.duration = s.duration,
		t.cpu = s.cpu,
		t.memory = s.memory
	WHEN NOT MATCHED THEN INSERT (
		date_id,
		device_id,
		file_id,
		logon_user_id,
		duration,
		cpu,
		memory
	) VALUES (
		s.id,
		s.device_id,
		s.file_id,
		s.logon_user_id,
		s.duration,
		s.cpu,
		s.memory
	)
	OPTION (MAXDOP 1);

	TRUNCATE TABLE STG_SOFTWARE_USAGE;

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_UPDATE_RULE_FILE]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASM_UPDATE_RULE_FILE]
	@i_fileVersionId INT	
AS
BEGIN
	DECLARE @ruleId INT;
	DECLARE @softwareId INT;
		
	SELECT TOP(1) 
		@ruleId = file_rule.id, 
		@softwareId = file_rule.software_id
	FROM ASM_FILE_RULE AS file_rule 
	WHERE
	EXISTS
	(
		SELECT 1
		FROM VIEW_AAM_FILE_VERSION [file]
		WHERE 
			[file].[id] = @i_fileVersionId AND			
			[file].[file_name] LIKE REPLACE(file_rule.[name] COLLATE SQL_Latin1_General_CP1_CS_AS, '*', '%')  AND
			(
				file_rule.[file_product_name] IS NULL OR 					
				[file].product_name LIKE REPLACE(file_rule.file_product_name, '*', '%')
			) AND(
				file_rule.[version] IS NULL OR 
				[file].file_version LIKE REPLACE(file_rule.[version], '*', '%')
			)				
	) ORDER BY file_rule.[update] DESC

	IF @ruleId IS NOT NULL
	BEGIN
		INSERT INTO [dbo].[ASM_FILE_GROUP](
			[file_version_id]
			,[file_rule_id]
		) VALUES(
			@i_fileVersionId,
			@ruleId
		)

		UPDATE [dbo].[AAM_FILE_VERSION]
		SET [software_id] = @softwareId
		WHERE [id] = @i_fileVersionId		
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_UPDATE_RULE_SOFT]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASM_UPDATE_RULE_SOFT]
	@i_softwareId INT	
AS
BEGIN

	DECLARE @ruleId INT;
	DECLARE @softwareId INT;

	SELECT TOP(1)  
		@ruleId = software_rule.id, 
		@softwareId = software_rule.software_id
	FROM ASM_SOFTWARE_RULE AS software_rule 
	WHERE
	EXISTS
	(
		SELECT 1
		FROM VIEW_AAM_SOFTWARE_VERSION software
		WHERE 
			software.id = @i_softwareId AND 
			software.is_inventory = 1 AND 
			software.name LIKE REPLACE(software_rule.name, '*', '%') AND
			(
				software_rule.manufacturer_name IS NULL OR
				software.manufacturer LIKE REPLACE(software_rule.manufacturer_name, '*', '%')			 				
			) AND (
				software_rule.version IS NULL OR
				software.version COLLATE SQL_Latin1_General_CP1_CI_AS LIKE REPLACE(software_rule.version, '*', '%')							
			)
	) ORDER BY [software_rule].[update] DESC

	IF @ruleId IS NOT NULL
	BEGIN
		INSERT INTO [dbo].[ASM_SOFTWARE_GROUP](
			[software_id]
			,[software_rule_id]
		) VALUES (
			@i_softwareId
			,@ruleId
		)
		
		UPDATE [dbo].[AAM_SOFTWARE_VERSION]
		SET [parent_id] = @softwareId
		WHERE [id] = @i_softwareId
	END

END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASMS_CALCULATE_TIMES]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASMS_CALCULATE_TIMES] (
	@i_calendar_id INT,
	@i_last_shot DATETIME,
	@i_next_active_date DATETIME,
	@i_next_inactive_date DATETIME) AS
BEGIN
	DECLARE
	@v_get_date_utc DATETIME = GETUTCDATE();

	UPDATE ATD SET ATD.sdb_current_time = IIF(ATD.status_type = 1, ATD.sdb_time, ATD.sdb_current_time),
					ATD.sdb_temporal_paused = IIF(ATD.status_type = 0, ATD.sdb_current_paused, ATD.sdb_temporal_paused),
					ATD.next_active_date = @i_next_active_date,
					ATD.next_inactive_date = @i_next_inactive_date,
					ATD.sdb_last_shot = @v_get_date_utc
	FROM ASMS_TIMES_DATA ATD
	JOIN ASMS_CALENDAR AC ON AC.calendar_id = ATD.calendar_id
	AND AC.next_inactive_date = ATD.next_inactive_date
	AND ATD.start_date IS NOT NULL
	AND ATD.end_date IS NULL
	WHERE AC.CALENDAR_ID = @i_calendar_id;

	UPDATE [dbo].[ASMS_CALENDAR] SET sdb_last_shot = @v_get_date_utc,
						next_active_date = @i_next_active_date,
						next_inactive_date = @i_next_inactive_date,
						is_change = 0
	WHERE calendar_id = @i_calendar_id;

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_ASMS_RULES_CLONE]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASMS_RULES_CLONE]
	@i_rule_ids VARCHAR (MAX),
	@i_project_models_ids VARCHAR (MAX)
AS
DECLARE 
	@v_rule_id INT,
	@v_project_model VARCHAR(20),
	@v_project_id INT,
	@v_model_id INT,
	@v_new_rule_common INT,
	@v_name NVARCHAR(510),
	@v_new_rule_asms INT,
	@v_action_id INT,
	@v_action_type INT,
	@v_action_order INT,
	@v_new_action_id INT,
	@v_condition_id INT,
	@v_rule_count_order INT,
	@v_name_rule NVARCHAR(510),
	@v_new_condition VARCHAR(MAX),
	@v_rule_date DATETIME;

BEGIN
	
	SET @v_rule_date = GETUTCDATE();

	DECLARE rule_cursor CURSOR
		FOR SELECT value FROM dbo.FUN_SPLIT_STRING(@i_rule_ids, ',')
	OPEN rule_cursor	

	FETCH NEXT FROM rule_cursor   
    INTO @v_rule_id

	WHILE @@FETCH_STATUS = 0  
	BEGIN
		DECLARE project_cursor CURSOR
			FOR SELECT value FROM dbo.FUN_SPLIT_STRING(@i_project_models_ids, ',')
		OPEN project_cursor

		-- Seleccionar el nombre de la regla.
		SELECT 
			@v_name_rule = rule_name 
		FROM AFW_RULE
		WHERE rule_id = @v_rule_id;

		FETCH NEXT FROM project_cursor   
		INTO @v_project_model

		WHILE  @@FETCH_STATUS = 0
		BEGIN
			SELECT @v_project_id = CONVERT(INT, (SELECT SUBSTRING(value, 2, LEN(value) - 1) FROM dbo.FUN_SPLIT_STRING(@v_project_model, '.') WHERE value LIKE 'P%'));
			SELECT @v_model_id = CONVERT(INT, (SELECT SUBSTRING(value, 2, LEN(value) - 1) FROM dbo.FUN_SPLIT_STRING(@v_project_model, '.') WHERE value LIKE 'M%'));
			SELECT @v_rule_count_order = COUNT(1) + 1 FROM AFW_RULE WHERE rule_project_id = @v_project_id AND rule_type = @v_model_id;

			--Se valida si el nombre existe, si es asi se cambia el nombre de la nueva regla.
			IF EXISTS(SELECT COUNT(1) FROM AFW_RULE WHERE rule_project_id = @v_project_id AND rule_name = @v_name_rule)
			BEGIN

				WITH gen AS (
					SELECT 1 AS num
					UNION ALL
					SELECT num+1 FROM gen WHERE num+1<=99
				  )
				SELECT 
					TOP 1
					@v_name = NG.rule_name
				FROM (SELECT CONCAT(@v_name_rule,' (', num, ')') rule_name FROM gen ) AS NG
				WHERE NOT EXISTS (
					SELECT *
					FROM AFW_RULE AF
					WHERE AF.rule_project_id = @v_project_id
					AND AF.rule_name = NG.rule_name)
			END

			--INSERT AFW_RULE
			INSERT INTO [dbo].[AFW_RULE](
				rule_context_id,
				rule_project_id,
				rule_created,
				rule_modified,
				rule_active,
				rule_definition,
				rule_condition,
				rule_eval_changed,
				rule_name,
				rule_builtin,
				rule_type,
				rule_order
			)
			SELECT 
				rule_context_id,
				@v_project_id,
				@v_rule_date,
				@v_rule_date,
				0,
				rule_definition,
				rule_condition,
				rule_eval_changed,
				@v_name,
				rule_builtin,
				IIF(@v_model_id = 0, NULL, @v_model_id),
				@v_rule_count_order
			FROM AFW_RULE 
			WHERE rule_id = @v_rule_id
			
			--obtiene el id de la regla common
			SET @v_new_rule_common = Scope_identity()

			--INSERT AFW_RULE_ACTION
			INSERT INTO AFW_RULE_ACTION (
			ruac_rule_id,
			ruac_action_type_id,
			ruac_order,
			ruac_parameters
			)
			SELECT 
				@v_new_rule_common,
				ruac_action_type_id,
				ruac_order,
				ruac_parameters
			FROM AFW_RULE_ACTION
			WHERE ruac_rule_id = @v_rule_id

			--INSERT ASMS_RULES
			INSERT INTO ASMS_RULES (
				ACTIVA,
				CONDICIONES,
				FL_INT_PROJECT_ID,
				FL_DAT_MODIFIED,
				FL_DAT_INSERTED,
				TABLE_ID,
				LABEL,
				TEXT,
				model_id,
				name,
				description,
				common_id,
				rule_type,
				rule_assembly,
				rule_order,
				CLONE_CHANGE
			)
			SELECT 
				0,
				CONDICIONES,
				@v_project_id,
				@v_rule_date,
				@v_rule_date,
				TABLE_ID,
				LABEL,
				TEXT,
				IIF(@v_model_id = 0, NULL, @v_model_id),
				@v_name,
				description,
				@v_new_rule_common,
				rule_type,
				rule_assembly,
				@v_rule_count_order,
				IIF(@v_model_id = 0, 0, IIF(@v_model_id = model_id, 0, 1))
			FROM ASMS_RULES
			WHERE common_id = @v_rule_id

			--obtiene el id de la regla asms
			SET @v_new_rule_asms = Scope_identity()

			--INSERT ASMS_RULES_CONDITIONS
			CREATE TABLE #condition_temp (
				old INT,
				new INT,
			)

			DECLARE condition_cursor CURSOR
				FOR SELECT ID
					FROM ASMS_RULES_CONDITIONS
					WHERE RULE_ID IN (SELECT RULE_ID 
							FROM ASMS_RULES
							WHERE common_id = @v_rule_id)

			OPEN condition_cursor

			FETCH NEXT FROM condition_cursor   
			INTO @v_condition_id

			WHILE  @@FETCH_STATUS = 0
			BEGIN

			INSERT INTO ASMS_RULES_CONDITIONS (
				CONDITION_ID,
				RULE_ID,
				FIELD_ID,
				OPERADOR,
				VALOR,
				FIELD_ID2,
				CONDITION_TYPE,
				LABEL,
				TEXT,
				OPERATOR_ID,
				TABLE_ID,
				VALUE_TEXT,
				field_type_id,
				field_name,
				field_value,
				operator_value,
				TABLE_ID2,
				field2_value,
				field2_name,
				function_id,
				function_value,
				function_name,
				value2,
				value2_name
			)
			SELECT 
				CONDITION_ID,
				@v_new_rule_asms,
				FIELD_ID,
				OPERADOR,
				VALOR,
				FIELD_ID2,
				CONDITION_TYPE,
				LABEL,
				TEXT,
				OPERATOR_ID,
				TABLE_ID,
				VALUE_TEXT,
				field_type_id,
				field_name,
				field_value,
				operator_value,
				TABLE_ID2,
				field2_value,
				field2_name,
				function_id,
				function_value,
				function_name,
				value2,
				value2_name
			FROM ASMS_RULES_CONDITIONS
			WHERE ID = @v_condition_id

			INSERT INTO #condition_temp VALUES(@v_condition_id,Scope_identity())

			FETCH NEXT FROM condition_cursor   
			INTO @v_condition_id

			END
			CLOSE condition_cursor;  
			DEALLOCATE condition_cursor;
			
			--Se actualiza la condición con los nuevos valores

			SELECT @v_new_condition = CONDICIONES FROM ASMS_RULES WHERE RULE_ID = @v_new_rule_asms

			SELECT @v_new_condition = replace(@v_new_condition,'C'+convert(varchar(18) ,old),'C'+convert(varchar(18) ,new)) FROM #condition_temp

			UPDATE ASMS_RULES SET CONDICIONES = @v_new_condition  WHERE RULE_ID = @v_new_rule_asms		
			
			DROP TABLE #condition_temp
			
			--INSERT ASMS_RULES_ACTIONS
			DECLARE action_cursor CURSOR
				FOR SELECT ACTION_ID,
					ACTION_TYPE,
					ORDEN
					FROM ASMS_RULES_ACTIONS
					WHERE RULE_ID IN (SELECT RULE_ID 
							FROM ASMS_RULES
							WHERE common_id = @v_rule_id)

			OPEN action_cursor

			FETCH NEXT FROM action_cursor   
			INTO @v_action_id, @v_action_type, @v_action_order

			WHILE  @@FETCH_STATUS = 0
			BEGIN
				--INSERT ASMS_RULES_ACTIONS
				INSERT INTO ASMS_RULES_ACTIONS (
				 RULE_ID,
				 ACTION_TYPE,
				 ORDEN
				)VALUES (
				@v_new_rule_asms,
				@v_action_type,
				@v_action_order
				)

				SET @v_new_action_id = Scope_identity()

				--INSERT ASMS_RULES_PARAM
				INSERT INTO ASMS_RULES_PARAM (
				PARAM_ID,
				ACTION_ID,
				PARAM_VALUE
				)
				SELECT 
					PARAM_ID,
					@v_new_action_id,
					PARAM_VALUE
				FROM ASMS_RULES_PARAM
				WHERE ACTION_ID = @v_action_id

				FETCH NEXT FROM action_cursor   
				INTO @v_action_id, @v_action_type, @v_action_order
			END;
			CLOSE action_cursor;  
			DEALLOCATE action_cursor;

			FETCH NEXT FROM project_cursor   
			INTO @v_project_model
		END;
		CLOSE project_cursor;  
		DEALLOCATE project_cursor;

		FETCH NEXT FROM rule_cursor   
		INTO @v_rule_id 
	END;
	CLOSE rule_cursor;  
	DEALLOCATE rule_cursor;  

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_ASMS_RULES_MOVE]...';


GO
CREATE PROCEDURE [dbo].[PRC_ASMS_RULES_MOVE] (
    @i_rule_id INT,
    @i_new_position INT
) AS
BEGIN
    -- Variables
    DECLARE @v_current_position INT;
    DECLARE @v_common_id INT;
    DECLARE @i_model_id INT;
    DECLARE @i_project_id INT;

    -- Obtener la posición actual de la regla y validar el modelo
    SELECT
        @v_current_position = [rule_order],
        @v_common_id = [common_id],
        @i_model_id = [model_id],
        @i_project_id = [fl_int_project_id]
    FROM [dbo].[ASMS_RULES]
    WHERE [rule_id] = @i_rule_id;

    -- Validar que la regla existe en el modelo especificado
    IF @v_current_position IS NULL
    BEGIN
        RAISERROR('La regla con ID %d no existe en el modelo %d.', 16, 1, @i_rule_id, @i_model_id);
        RETURN;
    END

    -- Validar que la nueva posición es válida
    IF @i_new_position < 1
    BEGIN
        RAISERROR('La posición de destino debe ser mayor o igual a 1.', 16, 1);
        RETURN;
    END

    BEGIN TRANSACTION;

    BEGIN TRY
        -- Caso 1: Mover la regla hacia ABAJO (aumentar rule_order)
        IF @i_new_position > @v_current_position
        BEGIN
            -- Desplazar hacia arriba las reglas entre la posición actual y la nueva (dentro del mismo modelo)
            UPDATE [dbo].[ASMS_RULES]
            SET [rule_order] = [rule_order] - 1,
                [fl_dat_modified] = GETDATE()
            WHERE
                [model_id] = @i_model_id
                AND [fl_int_project_id] = @i_project_id
                AND [rule_order] > @v_current_position 
                AND [rule_order] <= @i_new_position;

        END;
    
        -- Caso 2: Mover la regla hacia ARRIBA (disminuir rule_order)
        ELSE IF @i_new_position < @v_current_position
        BEGIN
            -- Desplazar hacia abajo las reglas entre la nueva posición y la actual (dentro del mismo modelo)
            UPDATE [dbo].[ASMS_RULES] SET
                [rule_order] = [rule_order] + 1,
                [fl_dat_modified] = GETDATE()
            WHERE [model_id] = @i_model_id
                AND [fl_int_project_id] = @i_project_id
                AND [rule_order] >= @i_new_position 
                AND [rule_order] < @v_current_position;

        END;

        -- Actualizar la regla a su nueva posición en ASMS_RULES
        UPDATE [dbo].[ASMS_RULES]
        SET [rule_order] = @i_new_position,
            [fl_dat_modified] = GETDATE()
        WHERE [rule_id] = @i_rule_id;

        -- Sincronizar en AFW_RULE
        UPDATE [r] SET
            [r].[rule_order] = [a].[rule_order],
            [r].[rule_modified] = [a].[fl_dat_modified]
        FROM [dbo].[AFW_RULE] [r]
        JOIN [dbo].[ASMS_RULES] [a] ON [a].[common_id] = [r].[rule_id]
        WHERE
            [a].[model_id] = @i_model_id
            AND [a].[fl_int_project_id] = @i_project_id;

        COMMIT TRANSACTION;

        -- Mostrar resultado de ASMS_RULES para el modelo
        PRINT 'Resultado en ASMS_RULES:';
        SELECT 
            [rule_id],
            [name],
            [model_id],
            [rule_order],
            [fl_dat_modified]
        FROM
            [dbo].[ASMS_RULES]
        WHERE
            [model_id] = @i_model_id
            AND [fl_int_project_id] = @i_project_id
        ORDER BY [rule_order];
    
        -- Mostrar resultado de AFW_RULE para las reglas sincronizadas
        PRINT '';
        PRINT 'Resultado en AFW_RULE (reglas sincronizadas):';
        SELECT 
            [r].[rule_id],
            [r].[rule_name],
            [r].[rule_order],
            [r].[rule_modified]
        FROM [dbo].[AFW_RULE] [r]
        INNER JOIN [dbo].[ASMS_RULES] [a] ON [r].[rule_id] = [a].[common_id]
        WHERE
            [a].[model_id] = @i_model_id
            AND [a].[fl_int_project_id] = @i_project_id
        ORDER BY
            [r].[rule_order];

        PRINT '';
        PRINT 'Reordenamiento completado exitosamente.';
        PRINT 'Regla ' + CAST(@i_rule_id AS VARCHAR(10)) + ' del modelo ' + CAST(@i_model_id AS VARCHAR(10)) + 
              ' movida de posición ' + CAST(@v_current_position AS VARCHAR(10)) + 
              ' a posición ' + CAST(@i_new_position AS VARCHAR(10));

    END TRY
    BEGIN CATCH
        ROLLBACK TRANSACTION;
    
        DECLARE @ErrorMessage NVARCHAR(4000) = ERROR_MESSAGE();
        DECLARE @ErrorSeverity INT = ERROR_SEVERITY();
        DECLARE @ErrorState INT = ERROR_STATE();
    
        RAISERROR(@ErrorMessage, @ErrorSeverity, @ErrorState);

    END CATCH;

END;
GO
PRINT N'Creating Procedure [dbo].[PRC_AVS_ADD_LICENSE_COUNT]...';


GO
CREATE PROCEDURE [dbo].[PRC_AVS_ADD_LICENSE_COUNT](
	@type INT,
	@license_id INT
	) AS
	BEGIN
		UPDATE [dbo].[AVS_LICENSE_COUNT]
				SET [row_count] = row_count + 1
				WHERE row_count < total_count
				AND [type] = @type AND [license_id] = @license_id

		RETURN  @@ROWCOUNT
	END
GO
PRINT N'Creating Procedure [dbo].[PRC_AVS_AUDIT]...';


GO
CREATE PROCEDURE [dbo].[PRC_AVS_AUDIT]
		@in_user_id INT,
		@in_device_id INT,
		@in_module INT,
		@in_action INT
AS
	DECLARE @au_user_id INT,
			@au_group_support_id INT = NULL,
			@au_device_id INT,
			@creation_date DATETIME,
			@date_key INT,
			@time_key INT;
	
	SELECT 
		@au_user_id = id 
	FROM [dbo].[AVS_AUDIT_USERS]
	WHERE is_current = 1 
		AND user_id = @in_user_id;

	SELECT 
		@au_group_support_id = id 
	FROM [dbo].[AVS_AUDIT_GROUP_SUPPORT]
	WHERE is_current = 1 
		AND group_support_id = (
								SELECT TOP 1 
									group_support_id 
								FROM [dbo].[AVS_DEVICE_GROUP_SUPPORT] 
								WHERE device_id = @in_device_id
								ORDER BY id DESC
								);

	SELECT 
		@au_device_id = id 
	FROM [dbo].[AVS_AUDIT_DEVICE]
	WHERE is_current = 1 
		AND device_id = @in_device_id;
	
	SET @creation_date = GETUTCDATE();
	
	SET @date_key = DATEPART(YEAR, @creation_date) * 10000 + DATEPART(MONTH, @creation_date) * 100 + DATEPART(DAY, @creation_date);
	
	SET @time_key = DATEPART(HOUR, @creation_date) * 10000 + DATEPART(MINUTE, @creation_date) * 100 + DATEPART(SECOND, @creation_date);

	INSERT INTO [dbo].[AVS_AUDIT] (
		audit_user_id, 
		audit_device_id, 
		audit_group_support_id, 
		module, 
		action,
		creation_date, 
		date_key, 
		time_key
	) VALUES (
		@au_user_id, 
		@au_device_id, 
		@au_group_support_id, 
		@in_module, 
		@in_action, 
		@creation_date, 
		@date_key, 
		@time_key
	);
RETURN 0;
GO
PRINT N'Creating Procedure [dbo].[PRC_AVS_AUDIT_CLEAN_OLD_DATA]...';


GO
CREATE PROCEDURE [dbo].[PRC_AVS_AUDIT_CLEAN_OLD_DATA]
AS

	SELECT @@ROWCOUNT;
	WHILE (@@ROWCOUNT > 0) 
	BEGIN
		DELETE TOP (14000) U 
		FROM [dbo].[AVS_AUDIT_USERS] U
		LEFT JOIN [dbo].[AVS_AUDIT] A ON U.id = A.audit_user_id
		WHERE U.is_current = 0 
			AND A.audit_user_id IS NULL;
	END;

	SELECT @@ROWCOUNT;
	WHILE (@@ROWCOUNT > 0) 
	BEGIN
		DELETE TOP (40000) D
		FROM [dbo].[AVS_AUDIT_DEVICE] D
		LEFT JOIN [dbo].[AVS_AUDIT] A ON D.id = A.audit_device_id
		WHERE D.is_current = 0 
			AND A.audit_device_id IS NULL;
	END;

	SELECT @@ROWCOUNT;
	WHILE (@@ROWCOUNT > 0)
	BEGIN
		DELETE TOP (20000) G 
		FROM [dbo].[AVS_AUDIT_GROUP_SUPPORT] G
		LEFT JOIN [dbo].[AVS_AUDIT] A ON G.id = A.audit_group_support_id
		WHERE G.is_current = 0 
			AND A.audit_group_support_id IS NULL;
	END;
	
RETURN 0;
GO
PRINT N'Creating Procedure [dbo].[PRC_AVS_AUDIT_LIST_FILE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AVS_AUDIT_LIST_FILE]
		@in_user_id INT,
		@in_device_id INT,
		@in_action INT,
		@message NVARCHAR(4000),
		@directory NVARCHAR(4000),
		@source BIT
AS
	DECLARE @au_user_id INT,
			@au_group_support_id INT = NULL,
			@au_device_id INT,
			@creation_date DATETIME,
			@date_key INT,
			@time_key INT;

	SELECT 
		@au_user_id = id 
	FROM [dbo].[AVS_AUDIT_USERS]
	WHERE is_current = 1 
		AND user_id = @in_user_id;

	SELECT 
		@au_group_support_id = id 
	FROM [dbo].[AVS_AUDIT_GROUP_SUPPORT]
	WHERE is_current = 1 
		AND group_support_id = (
								SELECT TOP 1 
									group_support_id 
								FROM [dbo].[AVS_DEVICE_GROUP_SUPPORT] 
								WHERE device_id = @in_device_id
								ORDER BY id DESC
								);

	SELECT 
		@au_device_id = id 
	FROM [dbo].[AVS_AUDIT_DEVICE]
	WHERE is_current = 1 
		AND device_id = @in_device_id;

	SET @creation_date = GETUTCDATE();
	
	SET @date_key = DATEPART(YEAR, @creation_date) * 10000 + DATEPART(MONTH, @creation_date) * 100 + DATEPART(DAY, @creation_date);
	
	SET @time_key = DATEPART(HOUR, @creation_date) * 10000 + DATEPART(MINUTE, @creation_date) * 100 + DATEPART(SECOND, @creation_date);
	
	INSERT INTO [dbo].[AVS_AUDIT] (
		audit_user_id, 
		audit_device_id, 
		audit_group_support_id, 
		module, 
		action,
		creation_date, 
		date_key, 
		time_key
	) VALUES (
		@au_user_id, 
		@au_device_id, 
		@au_group_support_id, 
		3, 
		@in_action, 
		@creation_date, 
		@date_key, 
		@time_key
	);
	
	INSERT INTO [dbo].[AVS_AUDIT_FILE_LIST] (
		audit_user_id, 
		audit_device_id, 
		audit_group_support_id, 
		action, 
		creation_date,
		date_key,
		time_key, 
		message, 
		directory, 
		source
	) VALUES (
		@au_user_id, 
		@au_device_id, 
		@au_group_support_id, 
		@in_action, 
		@creation_date, 
		@date_key, 
		@time_key, 
		@message, 
		@directory, 
		@source
	);
RETURN 0;
GO
PRINT N'Creating Procedure [dbo].[PRC_AVS_AUDIT_RECORDING_REGISTER_FILE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AVS_AUDIT_RECORDING_REGISTER_FILE]
		@in_user_id INT,
		@in_device_id INT,
		@in_action INT,
		@in_start DATETIME,
		@in_end DATETIME,
		@in_file_name VARCHAR(40)
AS
	DECLARE @au_user_id INT,
			@au_group_support_id INT = NULL,
			@au_device_id INT,
			@creation_date DATETIME,
			@date_key INT,
			@time_key INT,
			@start_date_key INT,
			@start_time_key INT,
			@end_date_key INT,
			@end_time_key INT;

	SELECT 
		@au_user_id = id 
	FROM [dbo].[AVS_AUDIT_USERS]
	WHERE is_current = 1 
		AND user_id = @in_user_id;

	SELECT 
		@au_group_support_id = id 
	FROM [dbo].[AVS_AUDIT_GROUP_SUPPORT]
	WHERE is_current = 1
		AND group_support_id = (
								SELECT TOP 1 
									group_support_id 
								FROM [dbo].[AVS_DEVICE_GROUP_SUPPORT] 
								WHERE device_id = @in_device_id
								ORDER BY id DESC
								);

	SELECT 
		@au_device_id = id 
	FROM [dbo].[AVS_AUDIT_DEVICE]
	WHERE is_current = 1 
		AND device_id = @in_device_id;

	SET @creation_date = GETUTCDATE();
	
	SET @date_key = DATEPART(YEAR, @creation_date) * 10000 + DATEPART(MONTH, @creation_date) * 100 + DATEPART(DAY, @creation_date);
	
	SET @time_key = DATEPART(HOUR, @creation_date) * 10000 + DATEPART(MINUTE, @creation_date) * 100 + DATEPART(SECOND, @creation_date);

	SET @start_date_key = DATEPART(YEAR, @in_start) * 10000 + DATEPART(MONTH, @in_start) * 100 + DATEPART(DAY, @in_start);
	
	SET @start_time_key = DATEPART(HOUR, @in_start) * 10000 + DATEPART(MINUTE, @in_start) * 100 + DATEPART(SECOND, @in_start);
	
	SET @end_date_key = DATEPART(YEAR, @in_end) * 10000 + DATEPART(MONTH, @in_end) * 100 + DATEPART(DAY, @in_end);
	
	SET @end_time_key = DATEPART(HOUR, @in_end) * 10000 + DATEPART(MINUTE, @in_end) * 100 + DATEPART(SECOND, @in_end);
	
	INSERT INTO [dbo].[AVS_AUDIT] (
		audit_user_id, 
		audit_device_id, 
		audit_group_support_id, 
		module, 
		action,
		creation_date, 
		date_key, 
		time_key
	) VALUES (
		@au_user_id, 
		@au_device_id,
		@au_group_support_id, 
		4, 
		@in_action, 
		@creation_date, 
		@date_key, 
		@time_key
	);
	
	INSERT INTO [dbo].[AVS_AUDIT_RECORDING] (
		audit_user_id, 
		audit_device_id, 
		audit_group_support_id,
		creation_date, 
		date_key, 
		time_key, 
		start_datetime, 
		start_date_key, 
		start_time_key, 
		end_datetime, 
		end_date_key, 
		end_time_key,
		file_name
	) VALUES (
		@au_user_id, 
		@au_device_id, 
		@au_group_support_id,
		@creation_date, 
		@date_key, 
		@time_key,
		@in_start, 
		@start_date_key, 
		@start_time_key,
		@in_end, 
		@end_date_key, 
		@end_time_key,
		@in_file_name
	);
RETURN 0;
GO
PRINT N'Creating Procedure [dbo].[PRC_AVS_AUDIT_RETENTION_POLICY]...';


GO
CREATE PROCEDURE [dbo].[PRC_AVS_AUDIT_RETENTION_POLICY]
	@in_instant DATETIME
AS

	DECLARE @utc_instant DATETIME = DATEADD(second, DATEDIFF(second, GETDATE(), GETUTCDATE()), @in_instant);

	SELECT @@ROWCOUNT;
	WHILE (@@ROWCOUNT > 0) 
	BEGIN
		DELETE TOP (50000)
		FROM [dbo].[AVS_AUDIT]
		WHERE creation_date <= @utc_instant;
	END;

	SELECT @@ROWCOUNT;
	WHILE (@@ROWCOUNT > 0) 
	BEGIN
		DELETE TOP (1500)
		FROM [dbo].[AVS_AUDIT_FILE_LIST]
		WHERE creation_date <= @utc_instant;
	END;

	SELECT @@ROWCOUNT;
	WHILE (@@ROWCOUNT > 0) 
	BEGIN
		DELETE TOP (1000)
		FROM [dbo].[AVS_AUDIT_FILE_TRANSFER]
		WHERE creation_date <= @utc_instant;
	END;
	
	SELECT @@ROWCOUNT;
	WHILE (@@ROWCOUNT > 0) 
	BEGIN
		DELETE TOP (1000)
		FROM [dbo].[AVS_AUDIT_RECORDING]
		WHERE creation_date <= @utc_instant;
	END;

	EXEC [dbo].[PRC_AVS_AUDIT_CLEAN_OLD_DATA];

RETURN 0;
GO
PRINT N'Creating Procedure [dbo].[PRC_AVS_AUDIT_TRANSFER_FILE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AVS_AUDIT_TRANSFER_FILE]
		@in_user_id INT,
		@in_device_id INT,
		@in_action INT,
		@target_path NVARCHAR(4000),
		@source_path NVARCHAR(4000),
		@file_name NVARCHAR(4000),
		@mode BIT
AS
	DECLARE @au_user_id INT,
			@au_group_support_id INT = NULL,
			@au_device_id INT,
			@creation_date DATETIME,
			@date_key INT,
			@time_key INT;

	SELECT 
		@au_user_id = id 
	FROM [dbo].[AVS_AUDIT_USERS]
	WHERE is_current = 1 
		AND user_id = @in_user_id;

	SELECT 
		@au_group_support_id = id 
	FROM [dbo].[AVS_AUDIT_GROUP_SUPPORT]
	WHERE is_current = 1 
		AND group_support_id = (
								SELECT TOP 1 
									group_support_id 
								FROM [dbo].[AVS_DEVICE_GROUP_SUPPORT] 
								WHERE device_id = @in_device_id
								ORDER BY id DESC
								);

	SELECT 
		@au_device_id = id 
	FROM [dbo].[AVS_AUDIT_DEVICE]
	WHERE is_current = 1 
		AND device_id = @in_device_id;

	SET @creation_date = GETUTCDATE();
	
	SET @date_key = DATEPART(YEAR, @creation_date) * 10000 + DATEPART(MONTH, @creation_date) * 100 + DATEPART(DAY, @creation_date);
	
	SET @time_key = DATEPART(HOUR, @creation_date) * 10000 + DATEPART(MINUTE, @creation_date) * 100 + DATEPART(SECOND, @creation_date);
	
	INSERT INTO [dbo].[AVS_AUDIT] (
		audit_user_id, 
		audit_device_id, 
		audit_group_support_id, 
		module, 
		action,
		creation_date, 
		date_key, 
		time_key
	) VALUES (
		@au_user_id, 
		@au_device_id, 
		@au_group_support_id, 
		2, 
		@in_action, 
		@creation_date, 
		@date_key, 
		@time_key
	);
	
	INSERT INTO [dbo].[AVS_AUDIT_FILE_TRANSFER] (
		audit_user_id, 
		audit_device_id, 
		audit_group_support_id, 
		action, 
		creation_date,
		date_key, 
		time_key, 
		target_path, 
		source_path, 
		file_name, 
		mode
	) VALUES (
		@au_user_id, 
		@au_device_id, 
		@au_group_support_id, 
		@in_action, 
		@creation_date, 
		@date_key, 
		@time_key, 
		@target_path, 
		@source_path, 
		@file_name, 
		@mode
	);
RETURN 0;
GO
PRINT N'Creating Procedure [dbo].[PRC_AVS_DEVICE_LICENSE_FREE]...';


GO
CREATE PROCEDURE [dbo].[PRC_AVS_DEVICE_LICENSE_FREE]
    AS
	BEGIN
		DECLARE @count INT = 0
        DECLARE @id INT
        
		DECLARE MY_CURSOR CURSOR
		 LOCAL STATIC READ_ONLY FORWARD_ONLY
		 FOR 
	     
		  SELECT license_id
		  FROM AVS_LICENSE_COUNT WHERE type = 0

		  OPEN MY_CURSOR
		  FETCH NEXT FROM MY_CURSOR INTO @id
		
		  WHILE @@FETCH_STATUS = 0
		  BEGIN           
          
		    DELETE licenses
			FROM AVS_DEVICE AS devices
			INNER JOIN AVS_DEVICE_LICENSE AS  licenses
			ON devices.id = licenses.device_id 
			WHERE licenses.license_id = @id AND devices.status = 1
	    
			SET @count = @@ROWCOUNT 
		
			IF (@count > 0)
			BEGIN  
			  UPDATE AVS_LICENSE_COUNT SET
					 row_count = CASE WHEN @count <= row_count THEN row_count - @count ELSE 0 END
					 WHERE license_id = @id;
			END
		   
		    FETCH NEXT FROM MY_CURSOR INTO @id
		 
		 END

	 CLOSE MY_CURSOR
	 DEALLOCATE MY_CURSOR
	END
GO
PRINT N'Creating Procedure [dbo].[PRC_AVS_DISCONNECT_DEVICES]...';


GO
CREATE PROCEDURE [dbo].[PRC_AVS_DISCONNECT_DEVICES](
	@num_hours INT
	) AS
	BEGIN
		UPDATE [dbo].[AVS_DEVICE] SET  [status] = 1 WHERE [status] = 0  AND [modification_date] < DATEADD(MINUTE, -@num_hours, GETUTCDATE())
	END
GO
PRINT N'Creating Procedure [dbo].[PRC_AVS_SUBTRACT_LICENSE_COUNT]...';


GO
CREATE PROCEDURE [dbo].[PRC_AVS_SUBTRACT_LICENSE_COUNT](
	@type INT,
	@license_id INT
	) AS
	BEGIN
		UPDATE [dbo].[AVS_LICENSE_COUNT]
				SET [row_count] = row_count - 1
				WHERE row_count > 0
				AND [type] = @type AND [license_id] = @license_id

		RETURN  @@ROWCOUNT
	END
GO
PRINT N'Creating Procedure [dbo].[PRC_CALCULATE_GROUP_COMPLIANCE_ASEC]...';


GO
CREATE PROCEDURE [dbo].[PRC_CALCULATE_GROUP_COMPLIANCE_ASEC]
(
	@group_id INT = NULL
)
AS
BEGIN
    SET NOCOUNT ON;

	DECLARE @date_id INT = [dbo].[FUN_ADW_DATE_KEY] (GETUTCDATE());
	
	WITH compliance_data AS (
        SELECT
            d.group_id,
            SUM(CASE WHEN c.complies = 1 THEN 1 ELSE 0 END) AS compliant,
            SUM(CASE WHEN c.complies = 0 OR c.complies IS NULL THEN 1 ELSE 0 END) AS non_compliant
        FROM AES_DEVICE d
        LEFT JOIN (
            SELECT
                device_id,
                MIN(CAST(state AS INT)) AS complies
            FROM AES_COMPLIANCE_MONITOR
            GROUP BY device_id
        ) c ON c.device_id = d.id
        WHERE 
            (@group_id IS NULL AND d.group_id IS NOT NULL)
            OR 
            (@group_id IS NOT NULL AND d.group_id = @group_id)
        GROUP BY d.group_id
    )

    MERGE AES_GROUP_COMPLIANCE AS target
    USING compliance_data AS source
        ON target.group_id = source.group_id AND target.date_id = @date_id
    WHEN MATCHED THEN
        UPDATE SET
            compliant_devices = source.compliant,
            non_compliant_devices = source.non_compliant
    WHEN NOT MATCHED THEN
        INSERT (group_id, compliant_devices, non_compliant_devices, date_id)
        VALUES (source.group_id, source.compliant, source.non_compliant, @date_id);
	

	SELECT compliant_devices, non_compliant_devices
		FROM AES_GROUP_COMPLIANCE 
		WHERE group_id = @group_id AND date_id = @date_id;

END
GO
PRINT N'Creating Procedure [dbo].[PRC_CATEGORY_ASEC]...';


GO
CREATE PROCEDURE [dbo].[PRC_CATEGORY_ASEC]
(
	@i_id		INT,	
	@i_name		NVARCHAR(50)
)
AS
BEGIN
	UPDATE [AES_CATEGORY]
	   SET [name] = @i_name
	 WHERE [id]   = @i_Id
	
	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO [AES_CATEGORY] (
			[id],
			[name]
		) VALUES (
		    @i_id,
		    @i_name
		) 
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_CONCURRENCY_LOCK]...';


GO
CREATE PROCEDURE [dbo].[PRC_CONCURRENCY_LOCK]
	@id			NVARCHAR(255),
	@lock_by	INT,
	@token		NVARCHAR(36),
	@o_token	NVARCHAR(36)	OUTPUT
AS
BEGIN
	DECLARE @v_modified INT
	DECLARE @v_lock_until DATETIME = DATEADD(SECOND, @lock_by, GETUTCDATE())

	DELETE FROM AFW_CONCURRENCY_LOCK
	WHERE locked_until < GETUTCDATE() 

	UPDATE AFW_CONCURRENCY_LOCK
	SET locked_until = @v_lock_until
	WHERE token = @token

	SET @v_modified = @@ROWCOUNT

	IF (@v_modified = 0)
	BEGIN
		BEGIN TRY
			INSERT INTO AFW_CONCURRENCY_LOCK (id, locked_until, token)
			VALUES (@id, @v_lock_until, @token)

			SET @v_modified = @@ROWCOUNT
		END TRY
		BEGIN CATCH
		END CATCH
	END

	SET @o_token = CASE @v_modified
		WHEN 0 THEN NULL
		ELSE @token END

END
GO
PRINT N'Creating Procedure [dbo].[PRC_DELETE_ATTACHMENT_HISTORY]...';


GO
CREATE PROCEDURE [dbo].[PRC_DELETE_ATTACHMENT_HISTORY](
	@date  DATETIME
) AS
BEGIN
    DELETE TOP (5000) 
    FROM 
        AIC_ATTACHMENT_HISTORY 
    WHERE 
        (modified_date <= @date)

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (5000) 
        FROM 
            AIC_ATTACHMENT_HISTORY 
        WHERE 
            (modified_date <= @date)
    END;
END;
GO
PRINT N'Creating Procedure [dbo].[PRC_DELETE_AUDIT_HISTORY]...';


GO
CREATE PROCEDURE [dbo].[PRC_DELETE_AUDIT_HISTORY]
	@date  DATETIME
AS
	DELETE TOP (5000) FROM AFW_AUDIT WHERE (audi_start_date <= @date)

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (5000) FROM AFW_AUDIT WHERE (audi_start_date <= @date)
    END
GO
PRINT N'Creating Procedure [dbo].[PRC_DELETE_DEVICE_ASEC]...';


GO
CREATE PROCEDURE [dbo].[PRC_DELETE_DEVICE_ASEC]
	@deviceId VARCHAR(36)
AS

	DELETE TOP (10000) FROM AES_DEVICE_REMEDIATION WHERE device_id = @deviceId
    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (10000) FROM AES_DEVICE_REMEDIATION WHERE device_id = @deviceId
    END


	DELETE TOP (10000) FROM AES_DEVICE_VULNERABILITY WHERE device_id = @deviceId
    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (10000) FROM AES_DEVICE_VULNERABILITY WHERE device_id = @deviceId
    END


	DELETE TOP (10000) FROM AES_COMPLIANCE_MONITOR WHERE device_id = @deviceId
    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (10000) FROM AES_COMPLIANCE_MONITOR WHERE device_id = @deviceId
    END


	DELETE FROM AES_DEVICE_VULNERABILITY_COUNTER WHERE device_id = @deviceId
	DELETE FROM AES_DEVICE WHERE id = @deviceId
GO
PRINT N'Creating Procedure [dbo].[PRC_DELETE_GROUP_COMPLIANCE_HISTORY]...';


GO
CREATE PROCEDURE [dbo].[PRC_DELETE_GROUP_COMPLIANCE_HISTORY]
(
	@date  DATETIME
)
AS
BEGIN
	DELETE TOP (10000) FROM AES_GROUP_COMPLIANCE 
	WHERE EXISTS (
		SELECT 1 
		FROM ADW_DIM_DATE D
		WHERE D.id = date_id and D.value <= @date
	)
	
	WHILE @@ROWCOUNT > 0
	BEGIN
		DELETE TOP (10000) FROM AES_GROUP_COMPLIANCE 
		WHERE EXISTS (
			SELECT 1 
			FROM ADW_DIM_DATE D
			WHERE D.id = date_id and D.value <= @date
		)
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_DELETE_MAIL_HISTORY]...';


GO
CREATE PROCEDURE [dbo].[PRC_DELETE_MAIL_HISTORY]
	@date  DATETIME
AS
	DELETE TOP (5000) FROM AFW_MAIL_HISTORY WHERE (mahi_created <= @date)

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (5000) FROM AFW_MAIL_HISTORY WHERE (mahi_created <= @date)
    END
GO
PRINT N'Creating Procedure [dbo].[PRC_DELETE_REMEDIATION_HISTORY]...';


GO
CREATE PROCEDURE [dbo].[PRC_DELETE_REMEDIATION_HISTORY]
(
	@date  DATETIME
)
AS
BEGIN
	DELETE TOP (10000) FROM AES_DEVICE_REMEDIATION WHERE (last_updated <= @date)
	
	WHILE @@ROWCOUNT > 0
	BEGIN
		DELETE TOP (10000) FROM AES_DEVICE_REMEDIATION WHERE (last_updated <= @date)
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_DELETE_SESSION_TOKEN]...';


GO
CREATE PROCEDURE [dbo].[PRC_DELETE_SESSION_TOKEN]
    @date   DATETIME
AS
	UPDATE AFW_USER_SESSION_LOG 
	SET [logout_date] = e.[validity]
	FROM AFW_USER_SESSION_LOG sl
	JOIN (
		SELECT 
			s.[id],
			st.[validity]
		FROM AFW_USER_SESSION_TOKEN st
		JOIN AFW_USER_SESSION s On s.[token_id] = st.[id]
		WHERE st.[validity] <= @date
	) AS e ON e.[id] = sl.[session_id]

	DELETE 
	FROM AFW_USER_SESSION_TOKEN 
	WHERE [validity] <= @date

	UPDATE AFW_USER_SESSION_LOG 
	SET [logout_date] = @date
	FROM  AFW_USER_SESSION_LOG l
	LEFT JOIN AFW_USER_SESSION s ON s.[id] = l.[session_id]
	WHERE [logout_date] IS NULL AND s.[id] IS NULL
GO
PRINT N'Creating Procedure [dbo].[PRC_DELETE_USER_SESSION_LOG]...';


GO
CREATE PROCEDURE [dbo].[PRC_DELETE_USER_SESSION_LOG]
	@date  DATETIME
AS
	DELETE TOP (5000) FROM AFW_USER_SESSION_LOG WHERE (login_date <= @date)

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (5000) FROM AFW_USER_SESSION_LOG WHERE (login_date <= @date)
    END
GO
PRINT N'Creating Procedure [dbo].[PRC_DELETE_WEBHOOK_HISTORY]...';


GO
CREATE PROCEDURE [dbo].[PRC_DELETE_WEBHOOK_HISTORY]
	@date  DATETIME
AS
	DELETE TOP (5000) FROM AFW_WEBHOOK_HISTORY WHERE (modified_date <= @date)

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (5000) FROM AFW_WEBHOOK_HISTORY WHERE (modified_date <= @date)
    END
GO
PRINT N'Creating Procedure [dbo].[PRC_DELETE_WORKER_LOG]...';


GO
CREATE PROCEDURE [dbo].[PRC_DELETE_WORKER_LOG]
	@date  DATETIME
AS
	DELETE TOP (5000) FROM AFW_WORKER_LOG WHERE (work_execution_date <= @date OR work_creation_date <= @date)

    WHILE @@ROWCOUNT > 0
    BEGIN
        DELETE TOP (5000) FROM AFW_WORKER_LOG WHERE (work_execution_date <= @date OR work_creation_date <= @date)
    END
GO
PRINT N'Creating Procedure [dbo].[PRC_DISCOVERY_MODEL]...';


GO
CREATE PROCEDURE [dbo].[PRC_DISCOVERY_MODEL]
(	
	@name				VARCHAR(256),
	@device_type_id		INT,
	@manufacturer_id	INT,
	@enabled			BIT,
	@id					INT OUTPUT			
)
AS
BEGIN
	SELECT @id = [id] FROM [ADM_DISCOVERY_MODEL] WHERE [name] = @name

	IF @id IS NOT NULL
	BEGIN
		UPDATE [ADM_DISCOVERY_MODEL]
		   SET  [name] = @name,
				[enabled] = @enabled				
		WHERE  [id]   = @Id
	END	
	ELSE
	BEGIN
		INSERT INTO [ADM_DISCOVERY_MODEL]
           (
			[name],         
			[device_type_id] ,
			[manufacturer_id],
			[enabled] 
		   )
		VALUES
           (
		       @name,
		       @device_type_id,
		       @manufacturer_id,
		       @enabled
           ) 
		SET @id = SCOPE_IDENTITY();
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_MANUFACTURER]...';


GO
CREATE PROCEDURE [dbo].[PRC_MANUFACTURER]
(
	@name	NVARCHAR(512),
	@id		INT OUTPUT
)
AS
BEGIN

	SELECT @id = [id] FROM [AAM_MANUFACTURER] WHERE [name] = @name

	IF @id IS NOT NULL
	BEGIN
		UPDATE [AAM_MANUFACTURER]
		   SET [name] = @name
		WHERE  [id]   = @Id
	END	
	ELSE
	BEGIN
		INSERT INTO [AAM_MANUFACTURER]
           (
				[name]
		   )
		VALUES
           (
		       @name
           ) 
		   SET @id = SCOPE_IDENTITY();
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_METHOD_ASEC]...';


GO
CREATE PROCEDURE [dbo].[PRC_METHOD_ASEC]
(
	@i_id					INT,	
	@i_name					NVARCHAR(100),	
	@i_type					INT,
	@i_parameter_type		INT,
	@i_remediation			INT = NULL
)
AS
BEGIN
	UPDATE [AES_METHOD]
	   SET [name] = @i_name,
		   [type] = @i_type,
		   [parameter_type] = @i_parameter_type,
		   [remediation_id] = @i_remediation	
	WHERE  [id]   = @i_id
	
	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO [AES_METHOD] (
			[id],
			[name],			
			[type],
			[parameter_type],
			[remediation_id]
		) VALUES (
		    @i_id,
		    @i_name,			
			@i_type,
			@i_parameter_type,
			@i_remediation
        ) 
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_POPULATE_DIM_DATE]...';


GO
CREATE PROCEDURE [dbo].[PRC_POPULATE_DIM_DATE]
(
	@i_start_date DATE
) AS
BEGIN
	SET NOCOUNT ON;

	DECLARE
		@v_id INT,
		@v_value DATE,
		@v_min_value DATE,
		@v_max_value DATE,
		@v_year SMALLINT,
		@v_semester SMALLINT,
		@v_quarter TINYINT,
		@v_month TINYINT,
		@v_week TINYINT,
		@v_month_name_spanish NVARCHAR (10),
		@v_month_name_english NVARCHAR (10),
		@v_month_name_portuguese NVARCHAR (10),
		@v_month_day TINYINT,
		@v_week_day TINYINT,
		@v_week_day_name_spanish NVARCHAR (20),
		@v_week_day_name_english NVARCHAR (20),
		@v_week_day_name_portuguese NVARCHAR (20),
		@v_currentLang SYSNAME,
		@v_end_date DATE;

	SET @v_currentLang = @@LANGUAGE;

	IF NOT EXISTS (SELECT * FROM ADW_DIM_DATE)
	BEGIN
		SET @v_min_value = DATEADD(D, -1, @i_start_date); 
		SET @v_max_value = @v_min_value;
	END;
	ELSE
	BEGIN
		SELECT
			@v_min_value = MIN (value),
			@v_max_value = MAX (value)
		FROM ADW_DIM_DATE;		
	END;

	SET @v_end_date = DATEADD(M, 2, GETUTCDATE()); 
	SET @v_end_date = DATEFROMPARTS(YEAR(@v_end_date), MONTH(@v_end_date), 1);
	
	SET @v_value = IIF(@i_start_date < @v_min_value, @i_start_date, @v_min_value);
	SET @v_end_date = IIF(@v_end_date > @v_max_value, @v_end_date, @v_max_value);
	
	WHILE @v_value < @v_end_date
	BEGIN
		IF (@v_value < @v_min_value OR @v_value > @v_max_value)
		BEGIN
			
			SET @v_year = CONVERT(SMALLINT, YEAR (@v_value));
			SET @v_semester = CEILING (MONTH (@v_value) / 6.0);
			SET @v_quarter = CEILING (MONTH (@v_value) / 3.0);
			SET @v_month = CONVERT(TINYINT, MONTH (@v_value));
			SET @v_week = DATEPART(WK, @v_value);
			SET @v_month_day = CONVERT(TINYINT, DATEPART (DAY, @v_value));
			SET @v_week_day = (DATEPART(DW, @v_value)  + @@DATEFIRST -2) % 7 + 1;
			SET @v_id = @v_year * 10000 + @v_month * 100 + @v_month_day;

			SET LANGUAGE SPANISH;
			SET @v_month_name_spanish = DATENAME (MM, @v_value);
			SET @v_week_day_name_spanish = DATENAME (DW, @v_value);
		
			SET LANGUAGE ENGLISH;
			SET @v_month_name_english = DATENAME (MM, @v_value);
			SET @v_week_day_name_english = DATENAME (DW, @v_value);
		
			SET LANGUAGE PORTUGUESE;
			SET @v_month_name_portuguese = DATENAME (MM, @v_value);
			SET @v_week_day_name_portuguese = DATENAME (DW, @v_value);
		
			INSERT INTO ADW_DIM_DATE (
				[id],
				[value],
				[year],
				[semester],
				[quarter],
				[month],
				[week],
				[month_day],
				[week_day],
				[month_name_spanish],
				[month_name_english],
				[month_name_portuguese],
				[week_day_name_spanish],
				[week_day_name_english],
				[week_day_name_portuguese]
			) VALUES (
				@v_id,
				@v_value,
				@v_year,
				@v_semester,
				@v_quarter,
				@v_month,
				@v_week,
				@v_month_day,
				@v_week_day,
				@v_month_name_spanish,
				@v_month_name_english,
				@v_month_name_portuguese,
				@v_week_day_name_spanish,
				@v_week_day_name_english,
				@v_week_day_name_portuguese
			);
		END
		SET @v_value = DATEADD (D, 1, @v_value);

	END;

	SET LANGUAGE @v_currentLang;

END
GO
PRINT N'Creating Procedure [dbo].[PRC_PRODUCT_ASEC]...';


GO
CREATE PROCEDURE [dbo].[PRC_PRODUCT_ASEC]
(
	@i_id				INT,	
	@i_name				NVARCHAR(200),
	@i_platform_id		INT,
	@i_vendor_id		INT
)
AS
BEGIN
	UPDATE [AES_PRODUCT]
	   SET [name]			= @i_name,
		   [platform_id]	= @i_platform_id,
		   [vendor_id] 		= @i_vendor_id
	WHERE  [id]				= @i_id
	
	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO [AES_PRODUCT] (
			[id],
			[name],
			[platform_id],
			[vendor_id]
		) VALUES (
		    @i_id,
		    @i_name,
			@i_platform_id,
			@i_vendor_id
        );
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_PRODUCT_CATEGORY_ASEC]...';


GO
CREATE PROCEDURE [dbo].[PRC_PRODUCT_CATEGORY_ASEC]
(	
	@i_product_id	INT,
	@i_category_id	INT
)
AS
BEGIN	
	IF NOT EXISTS (
		SELECT 1 
		FROM [AES_PRODUCT_CATEGORY]
		WHERE
			[product_id] = @i_product_id AND
			[category_id]= @i_category_id
	)
	BEGIN
		INSERT INTO [AES_PRODUCT_CATEGORY] (
			[product_id],
			[category_id]	
		) VALUES (				
		    @i_product_id,
			@i_category_id
        ) 
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_PRODUCT_METHOD_ASEC]...';


GO
CREATE PROCEDURE [dbo].[PRC_PRODUCT_METHOD_ASEC]
(	
	@i_product_id	INT,
	@i_method_id	INT
)
AS
BEGIN	
	IF NOT EXISTS (
		SELECT 1 
		FROM [AES_PRODUCT_METHOD]
		WHERE
			[product_id] = @i_product_id AND
			[method_id] = @i_method_id
	)
	BEGIN
		INSERT INTO [AES_PRODUCT_METHOD] (
			[product_id],
			[method_id]	
		) VALUES (				
		    @i_product_id,
			@i_method_id
        ) 
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_RECALCULATE_VULNERABILITIES_COUNTER_ASEC]...';


GO
CREATE PROCEDURE [dbo].[PRC_RECALCULATE_VULNERABILITIES_COUNTER_ASEC]
AS

UPDATE AVC
SET 
    AVC.low = Q.low,
    AVC.moderate = Q.moderate,
    AVC.important = Q.important,
    AVC.critical = Q.critical
FROM AES_DEVICE_VULNERABILITY_COUNTER AVC
JOIN (
    SELECT d.id AS device_id,
        SUM(CASE
            WHEN v.severity = 0 THEN 1
            ELSE 0
        END) AS low,
        SUM(CASE
            WHEN v.severity = 1 THEN 1
            ELSE 0
        END) AS moderate,
        SUM(CASE
            WHEN v.severity = 2 THEN 1
            ELSE 0
        END) AS important,
        SUM(CASE
            WHEN v.severity = 3 THEN 1
            ELSE 0
        END) AS critical
    FROM AES_DEVICE d
    LEFT JOIN [dbo].[AES_DEVICE_VULNERABILITY] dv
        ON dv.device_id = d.id
    LEFT JOIN AES_CVE v
        ON v.id = dv.cve_id
        AND v.treatment_status = 0
    WHERE
        d.last_scan IS NOT NULL
    GROUP BY d.id
) AS Q
    ON AVC.device_id = Q.device_id;
GO
PRINT N'Creating Procedure [dbo].[PRC_REMOVE_CVE_TREATMENT]...';


GO
CREATE PROCEDURE [dbo].[PRC_REMOVE_CVE_TREATMENT]
AS
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;

    DECLARE @v_system_user_id INT = 1;
    DECLARE @v_now DATETIME2 = SYSDATETIME();

    BEGIN TRY
        BEGIN TRANSACTION;

        ;WITH ExpiredCves AS
        (
            SELECT
                c.Id AS cve_id,
                t.[date]
            FROM dbo.AES_CVE c
            CROSS APPLY
            (
                SELECT TOP (1)
                    ct.id,
                    ct.status,
                    ct.[date],
                    ct.created_at
                FROM dbo.AES_CVE_TREATMENT ct
                WHERE ct.cve_id = c.Id
                ORDER BY ct.created_at DESC, ct.id DESC
            ) t
            WHERE c.treatment_status = 1
              AND t.status = 1
              AND t.[date] IS NOT NULL
              AND t.[date] < @v_now
        )
        UPDATE c
        SET
            c.treatment_status = 0,
            c.updated_at = @v_now
        FROM dbo.AES_CVE c
        INNER JOIN ExpiredCves e
            ON e.cve_id = c.Id;

        INSERT INTO dbo.AES_CVE_TREATMENT
        (
            cve_id,
            status,
            description,
            [date],
            user_created_id,
            created_at,
            updated_at
        )
        SELECT
            e.cve_id,
            0,
            'Cambio automático: venció el plazo de aceptación temporal.',
            NULL,
            @v_system_user_id,
            @v_now,
            NULL
        FROM ExpiredCves e;

        COMMIT TRANSACTION;
    END TRY
    BEGIN CATCH
        IF @@TRANCOUNT > 0
            ROLLBACK TRANSACTION;

        THROW;
    END CATCH
END
GO
PRINT N'Creating Procedure [dbo].[PRC_SIGNATURE_ASEC]...';


GO
CREATE PROCEDURE [dbo].[PRC_SIGNATURE_ASEC]
	@i_id			INT,	
	@i_name			NVARCHAR(100),
	@i_product_id	INT
AS
BEGIN
	UPDATE [AES_SIGNATURE]
	SET [name] = @i_name,
		[product_id] = @i_product_id	
	WHERE [id]   = @i_Id
	
	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO [AES_SIGNATURE] (
			[id],
			[name],
			[product_id]
		) VALUES (
		    @i_id,
		    @i_name,
			@i_product_id
		) 
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_SNMP_IDENTIFIER]...';


GO
CREATE PROCEDURE [dbo].[PRC_SNMP_IDENTIFIER]
(
	@device_identifier	VARCHAR(128),
	@discovery_model_id	INT,
	@id					INT = NULL
)
AS
BEGIN
	SELECT @id = id FROM [ADM_SNMP_IDENTIFIER] WHERE device_identifier = @device_identifier 
	
	IF @id	IS NOT NULL 
	BEGIN
		UPDATE [ADM_SNMP_IDENTIFIER]
		   SET [device_identifier] = @device_identifier
		WHERE  [id]   = @id
	END	
	ELSE
	BEGIN
		INSERT INTO [ADM_SNMP_IDENTIFIER]
           (
				[device_identifier],
				[discovery_model_id]
		   )
		VALUES
           (
		       @device_identifier,
			   @discovery_model_id
           ) 
	END
END
GO
PRINT N'Creating Procedure [dbo].[PRC_VENDOR_ASEC]...';


GO
CREATE PROCEDURE [dbo].[PRC_VENDOR_ASEC]
	@i_id		INT,	
	@i_name		NVARCHAR(200)
AS
BEGIN
	UPDATE [AES_VENDOR]
	SET [name] = @i_name
	WHERE [id]   = @i_Id
	
	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO [AES_VENDOR] (
			[id],
			[name]
		) VALUES (
		    @i_id,
		    @i_name
		) 
	END
END
GO
PRINT N'Creating Procedure [dbo].[METADATA_AGENT_EXECUTION]...';


GO
CREATE PROCEDURE METADATA_AGENT_EXECUTION
AS
BEGIN
	DECLARE @date DATETIME,
			@setting NVARCHAR(MAX)
	SET @date = GETDATE()
	 
	SELECT @setting = CONCAT('[{"FrecuencyType":3,"Name":0,"StartDate":', 
							CONVERT(nvarchar, DATEDIFF(SECOND,{d '1970-01-01'}, @date)), 
							',"Time":1,"Type":1}]'
							)
							
	
	EXEC METADATA_AGENTE_PROFILE  1	,	N'DEFAULT'	,	@date	,	1
	EXEC METADATA_AGENT_PROFILE_APPLICATION  1	,	1
	EXEC METADATA_AFW_SETTINGS  N'DefaultAgentProfile', 32, N'1', NULL, NULL
	EXEC METADATA_AGENT_PROFILE_SETTING  1, @setting ,0,0,0
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AFLS_REASSIGN_WO_SPECIALIST]...';


GO
/*=======================================================================*/  
/*  Archivo:            PRC_AFLS_REASSIGN_WO_SPECIALIST.sql              */  
/*  Stored procedure:   PRC_AFLS_REASSIGN_WO_SPECIALIST                  */  
/*  Producto:           Aranda FIELD SERVICE                             */  
/*  Disenado por:       Aranda Software Corporation                      */  
/*  Fecha de escritura: [14/03/2016]                                     */  
/*=======================================================================*/  
/*                          IMPORTANTE                                   */  
/*  ESTE PROGRAMA ES PROPIEDAD DE "ARANDA SOFTWARE CORPORATION".         */  
/*  HA SIDO DISEÑADO BAJO EL AMBIENTE OPERATIVO DE ARANDA.               */  
/*  DESARROLLADO POR "ARANDA SOFTWARE CORPORATION - COLOMBIA"            */  
/*  SU USO NO AUTORIZADO QUEDA EXPRESAMENTE PROHIBIDO ASI COMO CUALQUIER */  
/*  ALTERACION O AGREGADO HECHO POR ALGUNO DE SUS USUARIOS SIN EL DEBIDO */  
/*  CONSENTIMIENTO POR ESCRITO DE LA GERENCIA GENERAL DE ARANDA O SU     */  
/*  REPRESENTANTE.                                                       */  
/*=======================================================================*/  
/* OBJETIVO: Permite reasignar las ordenes de un especialista que        */  
/*  se va a desactivar ó, reasignar las ordenes que estan por			 */  
/*  fuera de su disponibilidad si se actualizo.                          */  
/*=======================================================================*/  
  
CREATE PROCEDURE [dbo].[PRC_AFLS_REASSIGN_WO_SPECIALIST]  
(  
	@i_spe_id			BIGINT,   
	@d_date				DATETIME,  
	@b_clear			TINYINT  = 0,  
	@i_provider_id		INT = -1,  
	@l_order_id			VARCHAR(MAX) = NULL,  
	@b_update_provider	BIT = 1  
)   
AS   

BEGIN  
  
	DECLARE @result BIT  
	DECLARE @ordersIds TABLE (orderId INT);  
	DECLARE @date_end_aux DATETIME = DATEADD(DAY,1,@d_date)

	-- Arma la tabla con ids de ordenes de trabajo  
	IF @l_order_id IS NOT NULL  
	BEGIN  
	DECLARE @Rowcount INT   
	DECLARE @S VARCHAR(MAX),  @Split CHAR(1),  @X XML  
  
	SELECT 
		@S = @l_order_id,  
		@Split = ';'  
  
	SELECT @X = CONVERT(xml,' <root> <s>' + REPLACE(@S,@Split,'</s> <s>') + '</s>   </root> ')  
  
	INSERT INTO @ordersIds 
	SELECT [Value] = T.c.value('.','varchar(20)')  
	FROM @X.nodes('/root/s') T(c)   
	END  
	-- fin Arma la tabla con ids  
  
	SET @result = 1;  
  
	BEGIN TRY  
  
	DECLARE @execution_date DATETIME = GETDATE();  
  
	DECLARE @WorkOrders AS TABLE
	(  
		work_id INT NOT NULL,  
		work_attendantId INT NULL,  
		work_attendantNickName VARCHAR(255) NULL,  
		work_tentative_travel_start_date DATETIME NULL,  
		work_tentative_attention_start_date DATETIME NULL,  
		work_tentative_attention_end_date DATETIME NULL,  
		work_attention_start_date DATETIME NULL,  
		work_attention_end_date DATETIME NULL,  
		work_travel_start_date DATETIME NULL,  
		stat_id INT NOT NULL,  
		work_sub_state_id INT NULL,  
		work_provider_id INT NULL,  
		work_service_id INT NULL  
	);  
  
	DECLARE @InitialStateWorkOrders AS TABLE  
	(  
		work_id INT NOT NULL,  
		initial_State INT NOT NULL,  
		parent_State INT NOT NULL  
	)   
  
	DECLARE @userInactive INT = ISNULL((SELECT TOP 1 1 FROM AFW_USERS WHERE user_id = @i_spe_id AND user_active = 0), 0);  
	DECLARE @userWithOutLicense INT = CASE WHEN @i_spe_id = -1 THEN 0 ELSE ISNULL((SELECT TOP 1 0 FROM AFW_LICENSE_ASSIGNMENT WHERE user_id = @i_spe_id), 1) END;    
    
	INSERT INTO @WorkOrders     
	SELECT   
	WO.work_id,  
	WO.work_attendant,  
	US.user_nick_name,  
	WO.work_tentative_travel_start_date,  
	WO.work_tentative_attention_start_date,  
	WO.work_tentative_attention_end_date,  
	WO.work_attention_start_date,  
	WO.work_attention_end_date,  
	WO.work_travel_start_date,  
	WO.stat_id,  
	WO.work_sub_state_id,  
	WO.work_provider_id,  
	WO.serv_id  
	FROM   
	AFLS_WORKORDERS AS WO  
	LEFT JOIN AFW_USERS AS US ON WO.work_attendant = US.[user_id]  
	WHERE  
	work_attendant IS NOT NULL
	AND((@l_order_id IS NULL OR @l_order_id = '') OR (work_id IN (SELECT * FROM @ordersIds)))  
	AND (@i_spe_id = -1 OR work_attendant = @i_spe_id)   
	AND (@i_provider_id = -1 OR work_provider_id = @i_provider_id)  
	AND (@b_clear = 0 OR @userInactive = 1 OR @userWithOutLicense = 1 OR  
	(work_assignment_type = 0 OR (CONVERT(DATE,work_tentative_attention_start_date) < CAST(@execution_date AS DATE) AND work_assignment_type = 1)))  
	AND (CONVERT(DATE,@d_date) = CONVERT(DATE,DATEFROMPARTS(2014, 1, 1)) OR work_tentative_attention_start_date BETWEEN @d_date AND @date_end_aux)  
	AND (@userInactive = 1 AND stat_id NOT IN (4,5) OR (@userWithOutLicense = 1 AND  stat_id = 1)  
	OR (@userInactive = 0 AND @userWithOutLicense = 0 AND stat_id IN (1,3)));  

	INSERT INTO @InitialStateWorkOrders  
	(  
		work_id,  
		initial_state,  
		parent_state  
	)  
	SELECT 
	wo.work_id,  
	ACS.st_id,  
	acs.st_reference_app_id  
	FROM   @WorkOrders AS WO  
	INNER JOIN AFLS_SERVICES AS S ON WO.work_service_id = s.serv_id  
	INNER JOIN AFW_ITEM_MODEL AS IM ON  IM.id = S.serv_model_id  
	INNER JOIN AFLS_WORKFLOWS  AS W ON  W.wf_id_model = IM.id  
	INNER JOIN AFW_STATEMACHINE_STATES AS ACS ON  w.wfcom_id = ACS.de_definition_id  
	WHERE  ACS.st_is_initial = 1    

	DECLARE @workOrderId INT = (SELECT TOP 1 work_id FROM @WorkOrders ORDER BY work_id);  
    
	WHILE @workOrderId IS NOT NULL  
	BEGIN  
  
		BEGIN TRANSACTION REASSIGN;  
  
		DECLARE @version INT = ISNULL((SELECT MAX(revi_version) FROM AFLS_REVIEWS WHERE revi_entity_id = @workOrderId), 0);   
		DECLARE @old_sub_state INT = -1;  
		DECLARE @old_parent_state INT = -1;  
		DECLARE @work_attendant INT = -1;  
		SELECT TOP 1 @old_sub_state = work_sub_state_id, @old_parent_state = stat_id, @work_attendant = work_attendantId FROM @WorkOrders WHERE work_id = @workOrderId;  
  
		DECLARE @new_sub_state INT = -1;  
		DECLARE @new_parent_state INT = -1;  
		SELECT TOP 1 @new_sub_state = initial_state, @new_parent_state = parent_state FROM @InitialStateWorkOrders WHERE work_id = @workOrderId;  
  
		-- escribir review's si el listado de ordenes es NULL  
		IF @l_order_id IS NULL  
		BEGIN  
			INSERT INTO [dbo].[AFLS_REVIEWS]  
			([revi_author] ,[revi_version] ,[revi_comment] ,[revi_entity_id] ,[revi_entity_type] ,[tent_id] ,[revi_date] ,[revi_sync] ,[revi_sync_id])  
			VALUES  
			('BusinessRules'  
			,@version + 1  
			,NULL  
			,@workOrderId  
			,'WorkOrder'  
			,1  
			,GETDATE()  
			,0  
			,NULL);  

			DECLARE @revi_id INT = @@Identity;
  
			-- Cambios  
			INSERT INTO [dbo].[AFLS_CHANGES]  
				([chng_type] ,[revi_id] ,[rela_id] ,[chng_attributes] ,[chng_old_value] ,[chng_new_value] ,[chng_data])    
			SELECT 'Review' ,@revi_id ,NULL , indicatorname, indicatorvalue, '' ,NULL  
			FROM  
			(  
			SELECT  
				WO.work_id,  
				CAST(US.user_nick_name AS VARCHAR(MAX)) AS AttendantId,     
				CONVERT(VARCHAR(MAX),WO.work_tentative_attention_start_date , 121) AS TentativeAttentionStartDate,  
				CONVERT(VARCHAR(MAX),WO.work_tentative_attention_end_date , 121) AS TentativeAttentionEndDate,  
				CONVERT(VARCHAR(MAX),WO.work_tentative_travel_start_date , 121) AS TentativeTravelStartDate,  
				CONVERT(VARCHAR(MAX),ST.st_display_name , 121) AS StateName  
				FROM   
				AFLS_WORKORDERS AS WO
				JOIN AFW_USERS AS US ON WO.work_attendant = US.[user_id]  
				JOIN AFW_STATEMACHINE_STATES ST ON WO.work_sub_state_id = ST.st_id  
				WHERE  
				work_id = @workOrderId  
				AND   
				stat_id IN (1,3)  
			)WO  
			UNPIVOT  
			(  
			indicatorvalue  
			FOR indicatorname IN (WO.AttendantId, WO.TentativeAttentionStartDate,  WO.TentativeAttentionEndDate, WO.TentativeTravelStartDate, WO.StateName)  
			) unpiv;  
		END 

		UPDATE WO   
			SET   
			WO.work_attendant = NULL,  
			WO.work_tentative_travel_start_date = NULL,  
			WO.work_tentative_attention_start_date = NULL,  
			WO.work_tentative_attention_end_date = NULL,  
			WO.work_attention_start_date = NULL,  
			WO.work_attention_end_date = NULL,  
			WO.work_travel_start_date = NULL,  
			WO.work_scheduler_attention_start_date = CASE WHEN @b_clear = 0 THEN NUll ELSE WO.work_scheduler_attention_start_date END,  
			WO.work_scheduler_attention_end_date = CASE WHEN @b_clear = 0 THEN NUll ELSE WO.work_scheduler_attention_end_date END,  
			WO.work_assignment_type = 0,  
			WO.work_sub_state_id = @new_sub_state,  
			WO.stat_id = @new_parent_state,  
			WO.work_provider_id = CASE WHEN @b_update_provider = 1 THEN NULL ELSE WO.work_provider_id END  
			FROM AFLS_WORKORDERS AS WO  
			WHERE  
			WO.work_id = @workOrderId 

		DECLARE @ProviderId int
   
		IF @i_provider_id = -1
		BEGIN
			SELECT @ProviderId = work_provider_id FROM AFLS_WORKORDERS where work_id = @workOrderId
		END
		ELSE
		BEGIN
			SET @ProviderId = @i_provider_id
		END

		EXECUTE [dbo].[PRC_AFLS_WORFLOW_ACTION_CHRONOMETER]   @workOrderId ,@new_parent_state ,@new_sub_state, @ProviderId;          
		EXECUTE [dbo].[PRC_AFLS_WORFLOW_ACTION_COST]  @workOrderId ,@work_attendant ,@execution_date;  
  
		--logica para limpiar tareas de la orden @workOrderId
		DECLARE @v_automatic_tasks BIT
		SELECT @v_automatic_tasks = ISNULL(sett_value, 0) FROM [dbo].[AFW_SETTINGS] WHERE sett_key = 'AutomaticTaskAssignmentEnable'

		IF @@ROWCOUNT = 0
		BEGIN
			SET @v_automatic_tasks = 0;
		END

		IF @v_automatic_tasks = 1
		BEGIN
			UPDATE [dbo].[AFLS_WORKORDER_TASKS] 
			SET 
				wtask_attendant_id = NULL, 
				wtask_attendant_name = NULL, 
				wtask_tentative_attention_start_date = NULL ,
				wtask_manual_programmed = 0
			WHERE wtask_work_id = @workOrderId
		END

		INSERT INTO AFW_STATEMACHINE_TRACE_CONTEXT  
		SELECT @workOrderId,@new_sub_state,NULL,NULL,@execution_date,1  
  
		COMMIT TRANSACTION REASSIGN;  
  
		SELECT @workOrderId = (SELECT TOP 1 work_id FROM @WorkOrders WHERE work_id > @workOrderId ORDER BY work_id)  
	END  
  
	END TRY  
	BEGIN CATCH  
		SET @result = 0;  
		ROLLBACK    
	END CATCH;  
  
	SELECT @result;     
END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_ALLDEVICELIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_ALLDEVICELIST]
	@i_pageindex            INT,
	@i_pagesize             INT,
	@i_querycondition       NVARCHAR(MAX)		= NULL,
	
	/*Filtros de Busqueda*/
	/*plataforma*/
	@i_isApple              BIT,
	@i_isAndroid            BIT,
	@i_isWindows            BIT,
	@i_isUnknown            BIT,	
	
	/*estado*/
	@i_isRegistered         BIT,
	@i_isUnrolled			BIT,
	@i_isPending			BIT,

	/*Tipo*/
	@i_isSmartPhone			BIT,
	@i_isTablet				BIT,
	@i_isDesktop			BIT,
	@i_isWithoutType		BIT,
	
	/*Propiedad*/
	@i_isCorporated			BIT,
	@i_isOwn				BIT,
	
	/*Cumplimiento de política*/
	@i_fulfilledPolicy		BIT,
	@i_noFulfilledPolicy	BIT,
	@i_noPolicyToFulfill	BIT,

	/*Grupos de dispositivo*/
	@i_groupsIds			NVARCHAR(MAX)		= NULL,
	
	/*Si el dipositivo esta en profile Owner, Device Owner o clasico*/
	@i_PO					BIT,
	@i_DO					BIT,
	@i_Classic				BIT,
	
	/*Modo perdido*/
	@i_lostModeOn			BIT,
	@i_lostModeOff			BIT,

	/*Metricas*/
	@i_metricsEnabled		BIT,
	@i_metricsDisabled		BIT,

	/*Estado de dispositivo*/
	@i_healthDeviceEnabled	BIT,
	@i_healthDeviceDisabled	BIT,

	/*Selección de dispositivos en el listado*/
	@i_selectAll            BIT,
	@i_selectedDevices      NVARCHAR(MAX),

	@i_orderfield           NVARCHAR(MAX)		= NULL,
	@i_ordertype            NVARCHAR(MAX)		= NULL,
	@i_actualuser			INT					= NULL,
	@o_row_count            INT					OUTPUT

AS
BEGIN


	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @searchQuery     VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	SET @selectClause = 'SELECT 
	[INDX] 
		, [UDI]
		, [CorporateOwned]
		, [Email]
		, [EnrollRequestDate]
		, [DeviceStatus]
		, [EnrollmentCode]
		, [ExpiryDate]  
		, [MobileUserId]
		, [Platform]
		, [UserName]
		, [CurrentNetworkCarrier]
		, [DeviceId]
		, [DeviceName]
		, [DeviceSerialNumber]
		, [SimSerialNumber]
		, [EnrollmentDate]
		, [IMEI]
		, LastUpdate_HW
		, LastUpdate_Location
		, LastUpdate_NW
		, LastUpdate_SW
		, [Latitude]
		, [Longitude]
		, [Manufacturer]
		, [Model]
		, [OsVersion]
		, [PhoneNumber]
		, [TotalInternalStorage]
		, [Type]
		, [UserFullName]
		, [LastReport]
		, [PolicyName]
		, [PolicyVersion]
		, [iosauthenticated]
		, [iostokenupdated]
		, [iosappauthenticated]
		, [iosapptermsaccepted]
		, [iosappapnstokenupdated]
		, [androidappauthenticated]
		, [androidapptermsaccepted]
		, [androidappadminaccepted]
		, [androidappgcmidupdated]
		, [iosprofiledownloaded]
		, [iosappdownloaded]
		, [androidappdownloaded]
		, [dispatchertermsaccepted]
		, [Fulfillment]
		, [FulfillmentProblems]
		, [PlatformName] 
		, [AlertStatusDeviceAbsent]
		, [appIsEnrolled]
		, [androidfwtokenset]
		, [afwmodeid]
		, [gcmregistrationid]
		, [apnsapppushtoken]
		, [mdmpushmagic]
		, [apnsmdmpushtoken]
		, [windowsMDMchannelUri]
		, [windowsappchannelUri]
		, [lostmode]
		, [lostmodepassword]
		, [UUIDIOS]
		, [agentversion]
		, [isInKiosk]
		, [metricsEnabled]
		, [healthDeviceEnabled]
		, [BatteryHealth]
		, [BatteryVoltage]
		, [BatteryTechnology]
		, [BatteryTemperature]
		, [Cores]
		, [Frequency]
		, [CpuName]
		, [ScreenResolution]
		, [ScreenSize]';	

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_ALLDEVICELIST] ';
	
	-- Agregar filtro por pertenencia a grupos si es necesario
	IF ISNULL(@i_groupsIds, '') <> ''
	BEGIN

		DECLARE @group_out VARCHAR(MAX)

		EXEC [dbo].[PRC_AMDM_GROUP_USER_HIERACHY]
			@group_ids = @i_groupsIds,
			@group_out = @group_out OUTPUT

		SET @fromClause = CONCAT(@fromClause, ' INNER JOIN (SELECT DISTINCT dev_id FROM AMDM_GROUPDEVICE WHERE group_id IN (', @group_out, @i_groupsIds, ')) gd ON [DeviceId] = gd.dev_id');
	END
	ELSE
	BEGIN
		
		DECLARE @v_view_other_devices INT
		
		SELECT TOP 1 
			@v_view_other_devices = role_id 
		FROM AFW_ROLES 
		WHERE role_name = 'View Other Devices' AND role_application_id = 33
		
		DECLARE @v_tb_role_user TABLE(	
			idGroup		INT,
			roleActive  INT NULL	
		)

		DECLARE @v_ls_groups VARCHAR(MAX) = '',
		@v_role_active BIT

		INSERT INTO @v_tb_role_user
		SELECT 	
			DISTINCT G.grou_id,	
			CASE WHEN ACC.roac_id IS NOT NULL THEN 1 ELSE 0 END AS roleActive
		FROM AFW_GROUPS G
			INNER JOIN AFW_GROUP_USER GUS ON  G.grou_id = GUS.grou_id
			LEFT OUTER JOIN AMDM_GROUPDEVICE GDE ON G.grou_id = GDE.group_id
			LEFT OUTER JOIN AFW_ROLE_ACCESS ACC ON G.grou_id = ACC.roac_grou_id
				AND roac_role_id = @v_view_other_devices
		WHERE GUS.user_id = @i_actualuser

		SET @v_ls_groups = 
			SUBSTRING(
				(
					SELECT ',' + CAST(G.idGroup AS VARCHAR) AS [text()]
					FROM @v_tb_role_user G
					FOR XML PATH (''), TYPE
				).value('text()[1]','VARCHAR(MAX)'), 2, 1000)

		SET @v_role_active = (SELECT COUNT(*) FROM @v_tb_role_user WHERE roleActive > 0)

		EXEC [dbo].[PRC_AMDM_GROUP_USER_HIERACHY]
			@group_ids = @v_ls_groups,
			@group_out = @group_out OUTPUT

		IF(@v_ls_groups <> '' AND @v_role_active = 0)
		BEGIN
			SET @fromClause = CONCAT(@fromClause, ' INNER JOIN (SELECT DISTINCT dev_id FROM AMDM_GROUPDEVICE WHERE group_id IN (', @group_out, @v_ls_groups, ')) gd ON [DeviceId] = gd.dev_id');
		END

	END
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @searchQuery = ' WHERE 1 = 1 ';

	--No se muestran dispositivos marcados como duplicados
	SET @whereClause = ' UDI NOT LIKE (''$$%'') '

	-- Agregar cadena de búsqueda si es necesario
	IF ISNULL(@i_querycondition, '') <> ''
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND ('
			, '		DeviceName LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	Type LIKE ''%'					, @i_querycondition + '%'' ' 
			, '	OR	OsVersion LIKE ''%'				, @i_querycondition + '%'' ' 
			, '	OR	UserFullName LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	Email LIKE ''%'					, @i_querycondition + '%'' ' 
			, '	OR	Manufacturer LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	Model LIKE ''%'					, @i_querycondition + '%'' '
			, '	OR	IMEI LIKE ''%'					, @i_querycondition + '%'' ' 
			, '	OR	UDI LIKE ''%'					, @i_querycondition + '%'' ' 
			, ' OR  DeviceSerialNumber LIKE ''%'	, @i_querycondition + '%'' '
			, ' ) ');
			
	END
	
	-- Agregar filtro por plataforma si es necesario
	IF (@i_isAndroid <> @i_isApple) OR (@i_isAndroid <> @i_isUnknown) OR (@i_isAndroid <> @i_isWindows)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND Platform IN (');
		
		IF(@i_isAndroid = 'True')
			SET @whereClause = CONCAT(@whereClause, '1,');

		IF(@i_isWindows = 'True')
			SET @whereClause = CONCAT(@whereClause, '3,');
		
		IF(@i_isApple = 'True')
			SET @whereClause = CONCAT(@whereClause, '4,');

		IF(@i_isUnknown = 'True')
			SET @whereClause = CONCAT(@whereClause, '0,');
		
		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END


	-- Agregar filtro por estado si es necesario
	IF (@i_isRegistered <> @i_isUnrolled) OR (@i_isRegistered <> @i_isPending)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND DeviceStatus IN (');

		IF(@i_isRegistered = 'True')
			SET @whereClause = CONCAT(@whereClause, '0,');

		IF(@i_isPending = 'True')
			SET @whereClause = CONCAT(@whereClause, '1,');

		IF(@i_isUnrolled = 'True')
			SET @whereClause = CONCAT(@whereClause, '2,');

		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END

	-- Agregar filtro por tipo dispositivo si es necesario
	IF (@i_isSmartPhone <> @i_isTablet)  OR (@i_isSmartPhone <> @i_isWithoutType) OR (@i_isSmartPhone <> @i_isDesktop)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND Type IN (');
	
		IF(@i_isSmartPhone = 'True')
			SET @whereClause = CONCAT(@whereClause, '''SmartPhone'',');

		IF(@i_isTablet = 'True')
			SET @whereClause = CONCAT(@whereClause, '''Tablet'',');

		IF(@i_isDesktop = 'True')
			SET @whereClause = CONCAT(@whereClause, '''Desktop'',');

		IF(@i_isWithoutType = 'True')
			SET @whereClause = CONCAT(@whereClause, '''NotDefined'',');

		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END

	-- Agregar filtro por tipo de propietario si es necesario
	IF @i_isCorporated = 'True' AND @i_isOwn = 'False'
		SET @whereClause = CONCAT(@whereClause, ' AND CorporateOwned = 1 ');
	
	IF @i_isCorporated = 'False' AND @i_isOwn = 'True'
		SET @whereClause = CONCAT(@whereClause, ' AND CorporateOwned = 0 ');

	--Agregar filtro por características de Android for Work si es necesario
	IF (@i_Classic <> @i_PO) OR (@i_Classic <> @i_DO)
	 BEGIN

		SET @whereClause = CONCAT(@whereClause, ' AND (Platform <> 1 ');
		
		IF @i_PO = 'True'
			SET @whereClause = CONCAT(@whereClause, ' OR (afwmodeid =1 AND androidfwtokenset = 1) ');

		IF @i_Classic = 'True'
			SET @whereClause = CONCAT(@whereClause, ' OR ( Platform = 1 AND androidfwtokenset = 0) ');

		IF @i_DO = 'True'
			SET @whereClause = CONCAT(@whereClause, ' OR  (afwmodeid =2 AND androidfwtokenset = 1) ');

		SET @whereClause = CONCAT(@whereClause, ' ) ');
	 END

	-- Agregar filtro por cumplimiento de política si es necesario
	IF (@i_fulfilledPolicy <> @i_noFulfilledPolicy) OR (@i_fulfilledPolicy <> @i_noPolicyToFulfill)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND Fulfillment IN (');
	
		IF(@i_fulfilledPolicy = 'True')
			SET @whereClause = CONCAT(@whereClause, '1,');

		IF(@i_noFulfilledPolicy = 'True')
			SET @whereClause = CONCAT(@whereClause, '0,');

		IF(@i_noPolicyToFulfill = 'True' )
			SET @whereClause = CONCAT(@whereClause, '-1,');

		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END

	--Agregar filtros para modo perdido
	IF(@i_lostModeOn = 'True' AND @i_lostModeOff = 'False')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND lostmode = 1 ');
	END

	IF(@i_lostModeOn = 'False' AND @i_lostModeOff = 'True')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND lostmode = 0 ');
	END

	--Agregar filtros para métricas
	IF(@i_metricsEnabled = 'True' AND @i_metricsDisabled = 'False')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND metricsEnabled = 1 ');
	END

	IF(@i_metricsEnabled = 'False' AND @i_metricsDisabled = 'True')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND metricsEnabled = 0 ');
	END

	--Agregar filtros para estado (salud) de dispositivo
	IF(@i_healthDeviceEnabled = 'True' AND @i_healthDeviceDisabled = 'False')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND healthDeviceEnabled = 1 ');
	END

	IF(@i_healthDeviceEnabled = 'False' AND @i_healthDeviceDisabled = 'True')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND healthDeviceEnabled = 0 ');
	END

	--Agregar filtros para dispositivos de la lista seleccionados
	IF(@i_selectAll = 'False')
		BEGIN
			IF ISNULL(@i_selectedDevices, '') <> ''
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND (', @whereClause, ') AND (DeviceId IN (', @i_selectedDevices, '))');
				END
			ELSE
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND ', @whereClause);
				END
		END
	ELSE
		BEGIN
			IF ISNULL(@i_selectedDevices, '') <> ''
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND (', @whereClause, ') AND (DeviceId NOT IN (', @i_selectedDevices, '))');
				END
			ELSE
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND ', @whereClause);
				END
		END

	SET @whereClause = '';
----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = CONCAT(' ORDER BY ', @i_orderfield, ' ', @i_ordertype);

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'INDX';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@searchQuery,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_ALLIDENTIFIEDDEVICELIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_ALLIDENTIFIEDDEVICELIST]
	@i_pageindex            INT,
	@i_pagesize             INT,
	@i_querycondition       NVARCHAR(MAX)		= NULL,
	
	/*Filtros de Busqueda*/
	/*plataforma*/
	@i_isApple              BIT,
	@i_isAndroid            BIT,
	@i_isWindows            BIT,
	@i_isUnknown            BIT,	
	/*estado*/
	@i_isRegistered         BIT,
	@i_isUnrolled           BIT,
	@i_isPending            BIT,
	/*Tipo*/
	@i_isSmartPhone         BIT,
	@i_isTablet             BIT,
	@i_isDesktop            BIT,
	@i_isWithoutType	    BIT,
	
	/*Propiedad*/
	@i_isCorporated         BIT,
	@i_isOwn                BIT,
	
	@i_fulfilledPolicy		BIT,
	@i_noFulfilledPolicy	BIT,
	@i_noPolicyToFulfill    BIT,
	@i_groupsIds            NVARCHAR(MAX)		= NULL,
	
	/*Si el dipositivo esta en profile Owner, Device Owner o clasico*/
	@i_PO                   BIT,
	@i_DO                   BIT,
	@i_Classic				BIT,
	
	/*Modo perdido*/
	@i_lostModeOn           BIT,
	@i_lostModeOff          BIT,

	/*Metricas*/
	@i_metricsEnabled		BIT,
	@i_metricsDisabled		BIT,

	/*Selección de dispositivos en el listado*/
	@i_selectAll            BIT,
	@i_selectedDevices      NVARCHAR(MAX),

	@i_orderfield           NVARCHAR(MAX)		= NULL,
	@i_ordertype            NVARCHAR(MAX)		= NULL,
	@i_actualuser			INT					= NULL,
	@o_row_count            INT					OUTPUT

AS
BEGIN


	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @searchQuery     VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT
	
	
----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	SET @selectClause = 'SELECT 
	[INDX] 
		, [DeviceId]
		, [DeviceName]';	

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_ALLIDENTIFIEDDEVICELIST] '; 
	
	-- Agregar filtro por pertenencia a grupos si es necesario
	IF ISNULL(@i_groupsIds, '') <> ''
	BEGIN
		DECLARE @group_out VARCHAR(MAX)

		EXEC [dbo].[PRC_AMDM_GROUP_USER_HIERACHY]
			@group_ids = @i_groupsIds,
			@group_out = @group_out OUTPUT

		SET @fromClause = CONCAT(@fromClause, ' INNER JOIN (SELECT DISTINCT dev_id FROM AMDM_GROUPDEVICE WHERE group_id IN (', @group_out, @i_groupsIds, ')) gd ON [DeviceId] = gd.dev_id');
	END
	ELSE
	BEGIN
		
		DECLARE @v_view_other_devices INT

		SELECT TOP 1 
			@v_view_other_devices = role_id 
		FROM AFW_ROLES 
		WHERE role_name = 'View Other Devices' AND role_application_id = 33
		
		DECLARE @v_tb_role_user TABLE(	
			idGroup		INT,
			roleActive  INT NULL	
		)

		DECLARE @v_lsgroups VARCHAR(MAX) = '',
		@v_role_active BIT

		INSERT INTO @v_tb_role_user
		SELECT 	
			DISTINCT G.grou_id,	
			CASE WHEN ACC.roac_id IS NOT NULL THEN 1 ELSE 0 END AS roleActive
		FROM AFW_GROUPS G
			INNER JOIN AFW_GROUP_USER GUS ON  G.grou_id = GUS.grou_id
			LEFT OUTER JOIN AMDM_GROUPDEVICE GDE ON G.grou_id = GDE.group_id
			LEFT OUTER JOIN AFW_ROLE_ACCESS ACC ON G.grou_id = ACC.roac_grou_id
				AND roac_role_id = @v_view_other_devices
		WHERE GUS.user_id = @i_actualuser

		SET @v_lsgroups = 
			SUBSTRING(
				(
					SELECT ',' + CAST(G.idGroup AS VARCHAR) AS [text()]
					FROM @v_tb_role_user G
					FOR XML PATH (''), TYPE
				).value('text()[1]','VARCHAR(MAX)'), 2, 1000)

		SET @v_role_active = (SELECT COUNT(*) FROM @v_tb_role_user WHERE roleActive > 0)


		EXEC [dbo].[PRC_AMDM_GROUP_USER_HIERACHY]
			@group_ids = @v_lsgroups,
			@group_out = @group_out OUTPUT

		IF(@v_lsgroups <> '' AND @v_role_active = 0)
		BEGIN
			SET @fromClause = CONCAT(@fromClause, ' INNER JOIN (SELECT DISTINCT dev_id FROM AMDM_GROUPDEVICE WHERE group_id IN (', @group_out, @v_lsgroups, ')) gd ON [DeviceId] = gd.dev_id');
		END

	END
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @searchQuery = ' WHERE 1 = 1 ';

	--No se muestran dispositivos marcados como duplicados
	SET @whereClause = ' UDI NOT LIKE (''$$%'') '

	-- Agregar cadena de búsqueda si es necesario
	IF ISNULL(@i_querycondition, '') <> ''
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND ('
			, '		DeviceName LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	Type LIKE ''%'					, @i_querycondition + '%'' ' 
			, '	OR	OsVersion LIKE ''%'				, @i_querycondition + '%'' ' 
			, '	OR	UserFullName LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	Email LIKE ''%'					, @i_querycondition + '%'' ' 
			, '	OR	Manufacturer LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	Model LIKE ''%'					, @i_querycondition + '%'' '
			, '	OR	IMEI LIKE ''%'					, @i_querycondition + '%'' ' 
			, '	OR	UDI LIKE ''%'					, @i_querycondition + '%'' ' 
			, ' OR  DeviceSerialNumber LIKE ''%'	, @i_querycondition + '%'' '
			, ' ) ');
			
	END
	
	-- Agregar filtro por plataforma si es necesario
	IF (@i_isAndroid <> @i_isApple) OR (@i_isAndroid <> @i_isUnknown) OR (@i_isAndroid <> @i_isWindows)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND Platform IN (');
		
		IF(@i_isAndroid = 'True')
			SET @whereClause = CONCAT(@whereClause, '1,');

		IF(@i_isWindows = 'True')
			SET @whereClause = CONCAT(@whereClause, '3,');
		
		IF(@i_isApple = 'True')
			SET @whereClause = CONCAT(@whereClause, '4,');

		IF(@i_isUnknown = 'True')
			SET @whereClause = CONCAT(@whereClause, '0,');
		
		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END


	-- Agregar filtro por estado si es necesario
	IF (@i_isRegistered <> @i_isUnrolled) OR (@i_isRegistered <> @i_isPending)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND DeviceStatus IN (');

		IF(@i_isRegistered = 'True')
			SET @whereClause = CONCAT(@whereClause, '0,');

		IF(@i_isPending = 'True')
			SET @whereClause = CONCAT(@whereClause, '1,');

		IF(@i_isUnrolled = 'True')
			SET @whereClause = CONCAT(@whereClause, '2,');

		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END

	-- Agregar filtro por tipo dispositivo si es necesario
	IF (@i_isSmartPhone <> @i_isTablet)  OR (@i_isSmartPhone <> @i_isWithoutType) OR (@i_isSmartPhone <> @i_isDesktop)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND Type IN (');
	
		IF(@i_isSmartPhone = 'True')
			SET @whereClause = CONCAT(@whereClause, '''SmartPhone'',');

		IF(@i_isTablet = 'True')
			SET @whereClause = CONCAT(@whereClause, '''Tablet'',');

		IF(@i_isDesktop = 'True')
			SET @whereClause = CONCAT(@whereClause, '''Desktop'',');

		IF(@i_isWithoutType = 'True')
			SET @whereClause = CONCAT(@whereClause, '''NotDefined'',');

		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END


	-- Agregar filtro por tipo de propietario si es necesario
	IF @i_isCorporated = 'True' AND @i_isOwn = 'False'
		SET @whereClause = CONCAT(@whereClause, ' AND CorporateOwned = 1 ');
	
	IF @i_isCorporated = 'False' AND @i_isOwn = 'True'
		SET @whereClause = CONCAT(@whereClause, ' AND CorporateOwned = 0 ');


	--Agregar filtro por características de Android for Work si es necesario
	IF (@i_Classic <> @i_PO) OR (@i_Classic <> @i_DO)
	 BEGIN

		SET @whereClause = CONCAT(@whereClause, ' AND (Platform <> 1 ');
		
		IF @i_PO = 'True'
			SET @whereClause = CONCAT(@whereClause, ' OR (afwmodeid =1 AND androidfwtokenset = 1) ');

		IF @i_Classic = 'True'
			SET @whereClause = CONCAT(@whereClause, ' OR ( Platform = 1 AND androidfwtokenset = 0) ');

		IF @i_DO = 'True'
			SET @whereClause = CONCAT(@whereClause, ' OR  (afwmodeid =2 AND androidfwtokenset = 1) ');

		SET @whereClause = CONCAT(@whereClause, ' ) ');
	 END

	-- Agregar filtro por cumplimiento de política si es necesario
	IF (@i_fulfilledPolicy <> @i_noFulfilledPolicy) OR (@i_fulfilledPolicy <> @i_noPolicyToFulfill)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND Fulfillment IN (');
	
		IF(@i_fulfilledPolicy = 'True')
			SET @whereClause = CONCAT(@whereClause, '1,');

		IF(@i_noFulfilledPolicy = 'True')
			SET @whereClause = CONCAT(@whereClause, '0,');

		IF(@i_noPolicyToFulfill = 'True' )
			SET @whereClause = CONCAT(@whereClause, '-1,');

		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END

	--Agregar filtros para modo perdido
	IF(@i_lostModeOn = 'True' AND @i_lostModeOff = 'False')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND lostmode = 1 ');
	END

	IF(@i_lostModeOn = 'False' AND @i_lostModeOff = 'True')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND lostmode = 0 ');
	END

	--Agregar filtros para métricas
	IF(@i_metricsEnabled = 'True' AND @i_metricsDisabled = 'False')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND metricsEnabled = 1 ');
	END

	IF(@i_metricsEnabled = 'False' AND @i_metricsDisabled = 'True')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND metricsEnabled = 0 ');
	END

	--Agregar filtros para dispositivos de la lista seleccionados
	IF(@i_selectAll = 'False')
		BEGIN
			IF ISNULL(@i_selectedDevices, '') <> ''
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND (', @whereClause, ') AND (DeviceId IN (', @i_selectedDevices, '))');
				END
			ELSE
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND ', @whereClause);
				END
		END
	ELSE
		BEGIN
			IF ISNULL(@i_selectedDevices, '') <> ''
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND (', @whereClause, ') AND (DeviceId NOT IN (', @i_selectedDevices, '))');
				END
			ELSE
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND ', @whereClause);
				END
		END

	SET @whereClause = '';
----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = CONCAT(' ORDER BY ', @i_orderfield, ' ', @i_ordertype);

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'INDX';
	
----------------------------------------------------------------
-- Inicio y tamaño de página
----------------------------------------------------------------
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1
	

----------------------------------------------------------------
-- Llamar procedimiento de búsqueda con paginación
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@searchQuery,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVICELIST]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVICELIST]
	@i_pageindex            INT,
	@i_pagesize             INT,
	@i_querycondition       NVARCHAR(MAX)		= NULL,
	@i_isApple              BIT,
	@i_isAndroid            BIT,
	@i_isWindows            BIT,
	@i_isUnknown            BIT,
	@i_isRegistered         BIT,
	@i_isUnrolled			BIT,
	@i_isPending			BIT,
	@i_isSmartPhone			BIT,
	@i_isTablet				BIT,
	@i_isDesktop			BIT,
	@i_isWithoutType		BIT,
	@i_isCorporated			BIT,
	@i_isOwn				BIT,
	@i_fulfilledPolicy		BIT,
	@i_noFulfilledPolicy	BIT,
	@i_noPolicyToFulfill	BIT,
	@i_groupsIds			NVARCHAR(MAX)		= NULL,
	@i_PO					BIT,
	@i_DO					BIT,
	@i_Classic				BIT,
	@i_lostModeOn			BIT,
	@i_lostModeOff			BIT,
	@i_metricsEnabled		BIT,
	@i_metricsDisabled		BIT,
	@i_healthDeviceEnabled	BIT,
	@i_healthDeviceDisabled	BIT,
	@i_selectAll            BIT,
	@i_selectedDevices      NVARCHAR(MAX),
	@i_orderfield           NVARCHAR(MAX)		= NULL,
	@i_ordertype            NVARCHAR(MAX)		= NULL,
	@i_actualuser			INT					= NULL,
	@o_row_count            INT					OUTPUT
AS
BEGIN

	DECLARE @selectClause	VARCHAR(MAX)
	DECLARE @fromClause		VARCHAR(MAX)
	DECLARE @whereClause	VARCHAR(MAX)
	DECLARE @searchQuery     VARCHAR(MAX)
	DECLARE @orderClause	VARCHAR(MAX)
	DECLARE @primaryKey		VARCHAR(MAX)
	DECLARE @lowerBound		INT
	DECLARE @upperBound		INT

----------------------------------------------------------------
-- SELECT
----------------------------------------------------------------
	SET @selectClause = 'SELECT 
		[INDX], [CorporateOwned], [Email], [EnrollRequestDate], [DeviceStatus], [EnrollmentCode], 
		[ExpiryDate], [Platform], [UserName], [DeviceId], [DeviceName], [EnrollmentDate], 
		LastUpdate_HW, LastUpdate_Location, LastUpdate_NW, LastUpdate_SW, [Manufacturer], [Model], 
		[Mode], [OsVersion], [PhoneNumber], [Type], [UserFullName], [LastReport], [PolicyName], 
		[iosauthenticated], [iostokenupdated], [iosappauthenticated], [iosapptermsaccepted], 
		[iosappapnstokenupdated], [androidappauthenticated], [androidapptermsaccepted], 
		[androidappadminaccepted], [androidappgcmidupdated], [iosprofiledownloaded], 
		[iosappdownloaded], [androidappdownloaded], [dispatchertermsaccepted], [Fulfillment], 
		[appIsEnrolled], [androidfwtokenset], [afwmodeid], [healthDeviceEnabled], [Latitude], 
		[Longitude],[DeviceSerialNumber],[metricsEnabled]';	

----------------------------------------------------------------
-- FROM
----------------------------------------------------------------
	SET @fromClause = ' FROM [VIEW_AMDM_DEVICELIST] ';
	
	DECLARE @group_out VARCHAR(MAX)

	-- Agregar filtro por pertenencia a grupos si es necesario
	IF ISNULL(@i_groupsIds, '') <> ''
	BEGIN	

		EXEC [dbo].[PRC_AMDM_GROUP_USER_HIERACHY]
			@group_ids = @i_groupsIds,
			@group_out = @group_out OUTPUT

		SET @fromClause = CONCAT(@fromClause, ' INNER JOIN (SELECT DISTINCT dev_id FROM AMDM_GROUPDEVICE WHERE group_id IN (', @group_out, @i_groupsIds, ')) gd ON [DeviceId] = gd.dev_id');
	END
	ELSE
	BEGIN
		
		DECLARE @v_view_other_devices INT
		
		SELECT TOP 1 
			@v_view_other_devices = role_id 
		FROM AFW_ROLES 
		WHERE role_name = 'View Other Devices' AND role_application_id = 33
		
		DECLARE @v_tb_role_user TABLE(	
			idGroup		INT,
			roleActive  INT NULL	
		)

		DECLARE @v_lsgroups VARCHAR(MAX) = '',
		@v_role_active BIT

		INSERT INTO @v_tb_role_user
		SELECT 	
			DISTINCT G.grou_id,	
			CASE WHEN ACC.roac_id IS NOT NULL THEN 1 ELSE 0 END AS roleActive
		FROM AFW_GROUPS G
			INNER JOIN AFW_GROUP_USER GUS ON  G.grou_id = GUS.grou_id
			LEFT OUTER JOIN AMDM_GROUPDEVICE GDE ON G.grou_id = GDE.group_id
			LEFT OUTER JOIN AFW_ROLE_ACCESS ACC ON G.grou_id = ACC.roac_grou_id
				AND roac_role_id = @v_view_other_devices
		WHERE GUS.user_id = @i_actualuser

		SET @v_lsgroups = 
			SUBSTRING(
				(
					SELECT ',' + CAST(G.idGroup AS VARCHAR) AS [text()]
					FROM @v_tb_role_user G
					FOR XML PATH (''), TYPE
				).value('text()[1]','VARCHAR(MAX)'), 2, 1000)

		SET @v_role_active = (SELECT COUNT(*) FROM @v_tb_role_user WHERE roleActive > 0)

		EXEC [dbo].[PRC_AMDM_GROUP_USER_HIERACHY]
			@group_ids = @v_lsgroups,
			@group_out = @group_out OUTPUT

		IF(@v_lsgroups <> '' AND @v_role_active = 0)
		BEGIN
			SET @fromClause = CONCAT(@fromClause, ' INNER JOIN (SELECT DISTINCT dev_id FROM AMDM_GROUPDEVICE WHERE group_id IN (', @group_out, @v_lsgroups, ')) gd ON [DeviceId] = gd.dev_id');
		END		
		
	END
	
----------------------------------------------------------------
-- WHERE
----------------------------------------------------------------
	SET @searchQuery = ' WHERE 1 = 1 ';

	--No se muestran dispositivos marcados como duplicados
	SET @whereClause = ' UDI NOT LIKE (''$$%'') '

	-- Agregar cadena de b�squeda si es necesario
	IF ISNULL(@i_querycondition, '') <> ''
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND ('
			, '		DeviceName LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	Type LIKE ''%'					, @i_querycondition + '%'' ' 
			, '	OR	OsVersion LIKE ''%'				, @i_querycondition + '%'' ' 
			, '	OR	UserFullName LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	Email LIKE ''%'					, @i_querycondition + '%'' ' 
			, '	OR	Manufacturer LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	Model LIKE ''%'					, @i_querycondition + '%'' '
			, '	OR	IMEI LIKE ''%'					, @i_querycondition + '%'' ' 
			, '	OR	UDI LIKE ''%'					, @i_querycondition + '%'' ' 
			, ' OR  DeviceSerialNumber LIKE ''%'	, @i_querycondition + '%'' '
			, ' ) ');
			
	END
	
	-- Agregar filtro por plataforma si es necesario
	IF (@i_isAndroid <> @i_isApple) OR (@i_isAndroid <> @i_isUnknown) OR (@i_isAndroid <> @i_isWindows)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND Platform IN (');
		
		IF(@i_isAndroid = 'True')
			SET @whereClause = CONCAT(@whereClause, '1,');

		IF(@i_isWindows = 'True')
			SET @whereClause = CONCAT(@whereClause, '3,');
		
		IF(@i_isApple = 'True')
			SET @whereClause = CONCAT(@whereClause, '4,');

		IF(@i_isUnknown = 'True')
			SET @whereClause = CONCAT(@whereClause, '0,');
		
		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END

	-- Agregar filtro por estado si es necesario
	IF (@i_isRegistered <> @i_isUnrolled) OR (@i_isRegistered <> @i_isPending)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND DeviceStatus IN (');

		IF(@i_isRegistered = 'True')
			SET @whereClause = CONCAT(@whereClause, '0,');

		IF(@i_isPending = 'True')
			SET @whereClause = CONCAT(@whereClause, '1,');

		IF(@i_isUnrolled = 'True')
			SET @whereClause = CONCAT(@whereClause, '2,');

		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END

	-- Agregar filtro por tipo dispositivo si es necesario
	IF (@i_isSmartPhone <> @i_isTablet)  OR (@i_isSmartPhone <> @i_isWithoutType) OR (@i_isSmartPhone <> @i_isDesktop)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND Type IN (');
	
		IF(@i_isSmartPhone = 'True')
			SET @whereClause = CONCAT(@whereClause, '''SmartPhone'',');

		IF(@i_isTablet = 'True')
			SET @whereClause = CONCAT(@whereClause, '''Tablet'',');

		IF(@i_isDesktop = 'True')
			SET @whereClause = CONCAT(@whereClause, '''Desktop'',');

		IF(@i_isWithoutType = 'True')
			SET @whereClause = CONCAT(@whereClause, '''NotDefined'',');

		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END

	-- Agregar filtro por tipo de propietario si es necesario
	IF @i_isCorporated = 'True' AND @i_isOwn = 'False'
		SET @whereClause = CONCAT(@whereClause, ' AND CorporateOwned = 1 ');
	
	IF @i_isCorporated = 'False' AND @i_isOwn = 'True'
		SET @whereClause = CONCAT(@whereClause, ' AND CorporateOwned = 0 ');

	--Agregar filtro por caracter�sticas de Android for Work si es necesario
	IF (@i_Classic <> @i_PO) OR (@i_Classic <> @i_DO)
	 BEGIN

		SET @whereClause = CONCAT(@whereClause, ' AND (Platform <> 1 ');
		
		IF @i_PO = 'True'
			SET @whereClause = CONCAT(@whereClause, ' OR (afwmodeid =1 AND androidfwtokenset = 1) ');

		IF @i_Classic = 'True'
			SET @whereClause = CONCAT(@whereClause, ' OR ( Platform = 1 AND androidfwtokenset = 0) ');

		IF @i_DO = 'True'
			SET @whereClause = CONCAT(@whereClause, ' OR  (afwmodeid =2 AND androidfwtokenset = 1) ');

		SET @whereClause = CONCAT(@whereClause, ' ) ');
	 END

	-- Agregar filtro por cumplimiento de pol�tica si es necesario
	IF (@i_fulfilledPolicy <> @i_noFulfilledPolicy) OR (@i_fulfilledPolicy <> @i_noPolicyToFulfill)
	BEGIN
		SET @whereClause = CONCAT(@whereClause, ' AND Fulfillment IN (');
	
		IF(@i_fulfilledPolicy = 'True')
			SET @whereClause = CONCAT(@whereClause, '1,');

		IF(@i_noFulfilledPolicy = 'True')
			SET @whereClause = CONCAT(@whereClause, '0,');

		IF(@i_noPolicyToFulfill = 'True' )
			SET @whereClause = CONCAT(@whereClause, '-1,');

		SET @whereClause = SUBSTRING(@whereClause, 1, LEN(@whereClause)-1);
		
		SET @whereClause = CONCAT(@whereClause, ')');
	END

	--Agregar filtros para modo perdido
	IF(@i_lostModeOn = 'True' AND @i_lostModeOff = 'False')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND lostmode = 1 ');
	END

	IF(@i_lostModeOn = 'False' AND @i_lostModeOff = 'True')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND lostmode = 0 ');
	END

	--Agregar filtros para m�tricas
	IF(@i_metricsEnabled = 'True' AND @i_metricsDisabled = 'False')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND metricsEnabled = 1 ');
	END

	IF(@i_metricsEnabled = 'False' AND @i_metricsDisabled = 'True')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND metricsEnabled = 0 ');
	END

	--Agregar filtros para estado (salud) de dispositivo
	IF(@i_healthDeviceEnabled = 'True' AND @i_healthDeviceDisabled = 'False')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND healthDeviceEnabled = 1 ');
	END

	IF(@i_healthDeviceEnabled = 'False' AND @i_healthDeviceDisabled = 'True')
	BEGIN
         SET @whereClause = CONCAT(@whereClause, ' AND healthDeviceEnabled = 0 ');
	END

	--Agregar filtros para dispositivos de la lista seleccionados
	IF(@i_selectAll = 'False')
		BEGIN
			IF ISNULL(@i_selectedDevices, '') <> ''
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND (', @whereClause, ') AND (DeviceId IN (', @i_selectedDevices, '))');
				END
			ELSE
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND ', @whereClause);
				END
		END
	ELSE
		BEGIN
			IF ISNULL(@i_selectedDevices, '') <> ''
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND (', @whereClause, ') AND (DeviceId NOT IN (', @i_selectedDevices, '))');
				END
			ELSE
				BEGIN
					SET @searchQuery = CONCAT(@searchQuery, ' AND ', @whereClause);
				END
		END

	SET @whereClause = '';
----------------------------------------------------------------
-- ORDER BY
----------------------------------------------------------------

	SET @orderClause = CONCAT(' ORDER BY ', @i_orderfield, ' ', @i_ordertype);

----------------------------------------------------------------
-- Llave primaria
----------------------------------------------------------------
	
	SET @primaryKey = 'INDX';
	
----------------------------------------------------------------
-- Inicio y tama�o de p�gina
----------------------------------------------------------------
	SET @lowerBound = @i_pageindex + 1;
	SET @upperBound = @lowerBound + @i_pagesize - 1

----------------------------------------------------------------
-- Llamar procedimiento de b�squeda con paginaci�n
----------------------------------------------------------------

EXECUTE [PRC_AFW_PAGINATE_QUERY]
	@selectClause,
	@fromClause,
	@searchQuery,
	@orderClause,
	@primaryKey,
	@lowerBound,
	@upperBound,
	@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_AMDM_DEVICESBYIDPOLICY]...';


GO
CREATE PROCEDURE [dbo].[PRC_AMDM_DEVICESBYIDPOLICY] (
	@i_policyId			INT,
	@i_pageindex		INT,
	@i_pagesize			INT,
	@i_querycondition	NVARCHAR(MAX)		= NULL,
	@i_orderfield		NVARCHAR(MAX)		= NULL,
	@i_ordertype		NVARCHAR(MAX)		= NULL,
	@o_row_count		INT					OUTPUT,
	@i_filterState		NVARCHAR(MAX),
	@i_actualuser		INT					= NULL,
	@o_old_count		INT					OUTPUT,
	@o_actual_count		INT					OUTPUT,
	@o_pending_count	INT					OUTPUT
) AS
  
BEGIN

	SET NOCOUNT ON;

	DECLARE @v_select_clause	VARCHAR(MAX)
	DECLARE @v_from_clause		VARCHAR(MAX)
	DECLARE @v_where_clause	VARCHAR(MAX)
	DECLARE @v_order_clause	VARCHAR(MAX)
	DECLARE @v_primary_key		VARCHAR(MAX)
	DECLARE @v_lower_bound		INT
	DECLARE @v_upper_bound		INT

	DECLARE @v_actual_policy_clause	VARCHAR(MAX)
	DECLARE @v_new_policy_clause	VARCHAR(MAX)

	DECLARE @v_select_count	NVARCHAR(MAX)

	SET @v_select_clause = 'SELECT ROW_NUMBER() OVER(ORDER BY DeviceId) AS INDX,
		[DeviceId],[DeviceName],[Type],[OsVersion],[UserName],[EnrollmentDate],[LastReported],[CorporateOwned],
		[LastAppliedPolicy],[PolicyName],[PolicyVersion],[FilterState],[Fulfillment],[PolicyId],[ActualPolicy],[PolicyToChangePolicy]';	

	SET @v_from_clause = ' FROM [VIEW_AMDM_DEVICESBYIDPOLICY] ';

	SET @v_select_count = 'SELECT
			@o_old_count = COUNT(CASE WHEN FilterState = ''old'' THEN 1 END),
			@o_actual_count = COUNT(CASE WHEN FilterState = ''actual'' THEN 1 END),
			@o_pending_count = COUNT(CASE WHEN FilterState = ''pending'' THEN 1 END)
		FROM VIEW_AMDM_DEVICESBYIDPOLICY '

	IF(@i_actualuser IS NOT NULL)
	BEGIN
		
		DECLARE @v_group_out VARCHAR(MAX)
		DECLARE @v_return INT	
		DECLARE @v_view_Other_Devices INT = (SELECT TOP 1 role_id 
												FROM AFW_ROLES 
											WHERE role_name = 'View Other Devices' AND role_application_id = 33)
			
		DECLARE @tbRoleUser TABLE(	
			idGroup		INT,
			roleActive  INT NULL	
		)

		DECLARE @v_lsgroups VARCHAR(MAX) = '',
		@roleActive BIT

		INSERT INTO @tbRoleUser
		SELECT 	
			DISTINCT G.grou_id,	
			CASE WHEN ACC.roac_id IS NOT NULL THEN 1 ELSE 0 END AS roleActive
		FROM AFW_GROUPS G
			INNER JOIN AFW_GROUP_USER GUS ON  G.grou_id = GUS.grou_id
			INNER JOIN AMDM_GROUPDEVICE GDE ON G.grou_id = GDE.group_id
			LEFT OUTER JOIN AFW_ROLE_ACCESS ACC ON G.grou_id = ACC.roac_grou_id
				AND roac_role_id = @v_view_Other_Devices
		WHERE GUS.user_id = @i_actualuser

		SET @v_lsgroups = 
			SUBSTRING(
				(
					SELECT ',' + CAST(G.idGroup AS VARCHAR) AS [text()]
					FROM @tbRoleUser G
					FOR XML PATH (''), TYPE
				).value('text()[1]','nvarchar(max)'), 2, 1000)

		SET @roleActive = (SELECT COUNT(*) FROM @tbRoleUser WHERE roleActive > 0)


		EXEC	@v_return = [dbo].[PRC_AMDM_GROUP_USER_HIERACHY]
			@group_ids = @v_lsgroups,
			@group_out = @v_group_out OUTPUT

		IF(@v_lsgroups <> '' AND @roleActive = 0)
		BEGIN
			SET @v_from_clause = CONCAT(@v_from_clause, ' INNER JOIN (SELECT DISTINCT dev_id FROM AMDM_GROUPDEVICE WHERE group_id IN (', @v_group_out, @v_lsgroups, ')) gd ON [DeviceId] = gd.dev_id ');
			SET @v_select_count = CONCAT(@v_select_count, ' INNER JOIN (SELECT DISTINCT dev_id FROM AMDM_GROUPDEVICE WHERE group_id IN (', @v_group_out, @v_lsgroups, ')) gd ON [DeviceId] = gd.dev_id ');
		END

	END

	SET @v_actual_policy_clause = CONCAT('WHERE ((ActualPolicy = ', @i_policyId)
	SET @v_new_policy_clause = CONCAT(' OR (PolicyToChangePolicy = ', @i_policyId)

	IF @i_filterState <> 'total'
	BEGIN
		SET @i_filterState = LOWER(@i_filterState);
		SET @v_actual_policy_clause = CONCAT(@v_actual_policy_clause,' AND FilterState LIKE LTRIM(RTRIM(''%' + @i_filterState + '%''))',')')
		SET @v_new_policy_clause = CONCAT(@v_new_policy_clause,' AND FilterState LIKE LTRIM(RTRIM(''%' + @i_filterState + '%''))','))')		
	END
	ELSE
	BEGIN
		SET @v_actual_policy_clause = CONCAT(@v_actual_policy_clause, ')')
		SET @v_new_policy_clause = CONCAT(@v_new_policy_clause, '))')
	END

	SET @v_where_clause = CONCAT(@v_actual_policy_clause, @v_new_policy_clause);
	SET @v_select_count= CONCAT(@v_select_count,@v_actual_policy_clause, @v_new_policy_clause);
	
	IF ISNULL(@i_querycondition, '') <> ''
	BEGIN
		SET @i_querycondition = LOWER(@i_querycondition)
		SET @v_where_clause = CONCAT(@v_where_clause, ' AND ('
			, '		DeviceName LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	OsVersion LIKE ''%'				, @i_querycondition + '%'' ' 
			, '	OR	UserName LIKE ''%'				, @i_querycondition + '%'' ' 
			, '	OR	Type LIKE ''%'					, @i_querycondition + '%'' '
			, ' ) ');		

		SET @v_select_count = CONCAT(@v_select_count,' AND ('
			, '		DeviceName LIKE ''%'			, @i_querycondition + '%'' ' 
			, '	OR	OsVersion LIKE ''%'				, @i_querycondition + '%'' ' 
			, '	OR	UserName LIKE ''%'				, @i_querycondition + '%'' ' 
			, '	OR	Type LIKE ''%'					, @i_querycondition + '%'' '
			, ' ) ' )
	END


	SET @v_order_clause = CONCAT(' ORDER BY ', @i_orderfield, ' ', @i_ordertype);
	SET @v_primary_key = 'Indx';

	SET @v_lower_bound = @i_pageindex + 1;
	SET @v_upper_bound = @v_lower_bound + @i_pagesize - 1	

	EXEC SP_EXECUTESQL
	@v_select_count,
	N'@i_policyId INT, @o_old_count INT OUTPUT, @o_actual_count INT OUTPUT,@o_pending_count INT OUTPUT',
	@i_policyId,
	@o_old_count OUT,
	@o_actual_count OUT,
	@o_pending_count OUT;

	IF(@o_old_count IS NULL)
	BEGIN
		SET @o_old_count = 0
	END

	IF(@o_actual_count IS NULL)
	BEGIN
		SET @o_actual_count = 0
	END

	IF(@o_pending_count IS NULL)
	BEGIN
		SET @o_pending_count = 0
	END	

	EXECUTE [PRC_AFW_PAGINATE_QUERY]
		@v_select_clause,
		@v_from_clause,
		@v_where_clause,
		@v_order_clause,
		@v_primary_key,
		@v_lower_bound,
		@v_upper_bound,
		@o_row_count OUTPUT

END
GO
PRINT N'Creating Procedure [dbo].[PRC_ASM_CONSOLIDATE_DAY]...';


GO
CREATE PROCEDURE PRC_ASM_CONSOLIDATE_DAY AS
BEGIN
	DECLARE
		@v_max_usage_id INT,
		@v_start INT,
		@v_end INT,
		@v_row_count INT;

	SET NOCOUNT ON;
	SET @v_end = 0;
	SET @v_start = 0;
	
	SELECT @v_row_count = sett_value FROM AFW_SETTINGS WHERE [sett_key] = 'ASM_LotSizeToConsolidate'

	SELECT
		@v_max_usage_id = MAX(id)
	FROM ASM_SOFTWARE_USAGE;

	IF NOT EXISTS ( SELECT value FROM ADW_DIM_DATE WHERE value = CONVERT(DATE, GETDATE()))
	BEGIN
		RAISERROR ('DATE RECORD DOES NOT EXIST',11,1)
	END

	IF EXISTS(SELECT 1 FROM ASM_CONSOLIDATE_CONTROL)
	BEGIN 
		WHILE @v_end < @v_max_usage_id
		BEGIN TRY
			SELECT
				@v_start = last_id + 1,
				@v_end = last_id + @v_row_count
			FROM ASM_CONSOLIDATE_CONTROL;


			SET @v_end = IIF(@v_end > @v_max_usage_id, @v_max_usage_id, @v_end);

			BEGIN TRANSACTION;
		
			EXEC PRC_ASM_CONSOLIDATE_RANGE
				@v_start,
				@v_end;

			UPDATE ASM_CONSOLIDATE_CONTROL SET
				last_id = @v_end,
				last_date = GETUTCDATE();

			COMMIT;

		END TRY
		BEGIN CATCH
			ROLLBACK;
			THROW;

		END CATCH;
	END
	ELSE
	BEGIN 
		RAISERROR ('ASM_CONSOLIDATE_CONTROL HAS NO DATA',11,1)
	END 
END;
GO
-- Refactoring step to update target server with deployed transaction logs

IF OBJECT_ID(N'dbo.__RefactorLog') IS NULL
BEGIN
    CREATE TABLE [dbo].[__RefactorLog] (OperationKey UNIQUEIDENTIFIER NOT NULL PRIMARY KEY)
    EXEC sp_addextendedproperty N'microsoft_database_tools_support', N'refactoring log', N'schema', N'dbo', N'table', N'__RefactorLog'
END
GO
IF NOT EXISTS (SELECT OperationKey FROM [dbo].[__RefactorLog] WHERE OperationKey = '3696ee40-a287-463a-9349-821c4927f6f8')
INSERT INTO [dbo].[__RefactorLog] (OperationKey) values ('3696ee40-a287-463a-9349-821c4927f6f8')
IF NOT EXISTS (SELECT OperationKey FROM [dbo].[__RefactorLog] WHERE OperationKey = 'd27ac274-e80d-41e4-b888-9aaf09be4066')
INSERT INTO [dbo].[__RefactorLog] (OperationKey) values ('d27ac274-e80d-41e4-b888-9aaf09be4066')
IF NOT EXISTS (SELECT OperationKey FROM [dbo].[__RefactorLog] WHERE OperationKey = '8e578236-f43b-4125-b3c0-18b5045dc921')
INSERT INTO [dbo].[__RefactorLog] (OperationKey) values ('8e578236-f43b-4125-b3c0-18b5045dc921')

GO

GO
--/*
----------------------------------------------------------------------------------------
--Metadata Para el proyecto Common			
----------------------------------------------------------------------------------------

--*/

--INITIALIZE DEPLOY
CREATE PROCEDURE [METADATA_AFW_APPLICATIONS]
	@id				INT, 
	@name			NVARCHAR(30),
	@register		NVARCHAR(10),
	@product_name	NVARCHAR(100),
	@suite			INT,
	@parent_id		INT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFW_APPLICATIONS] WHERE [appl_id] = @id)
		UPDATE [dbo].[AFW_APPLICATIONS]
		SET [appl_id] = @id,
			[appl_acronym] = @name,
			[appl_register_code]= @register,
			[appl_name]= @product_name,
			[appl_suite]=@suite,
			[appl_parent_id]=@parent_id
		WHERE [appl_id] = @id
	ELSE
		INSERT INTO [dbo].[AFW_APPLICATIONS](
			[appl_id], 
			[appl_acronym],
			[appl_register_code],
			[appl_name],
			[appl_suite],
			[appl_parent_id]
		)VALUES(
			@id,
			@name, 
			@register,
			@product_name,
			@suite,
			@parent_id
		)
END
GO
CREATE PROCEDURE METADATA_AFW_SETTINGS
	@sett_key				NVARCHAR(55),
	@sett_application_id	INT,
	@sett_value				NVARCHAR(MAX),
	@sett_description		NVARCHAR(255),
	@sett_project_id		INT
AS
BEGIN
	IF EXISTS (
		SELECT 1 
		FROM [dbo].[AFW_SETTINGS] 
		WHERE [sett_key] = @sett_key
			AND [sett_application_id] = @sett_application_id
			AND ([sett_project_id] = @sett_project_id OR ISNULL([sett_project_id], @sett_project_id) IS NULL)
	)
		UPDATE [dbo].[AFW_SETTINGS]
		SET [sett_key] = @sett_key,
			[sett_application_id] = @sett_application_id,
			[sett_value]= @sett_value,
			[sett_description]= @sett_description,
			[sett_project_id]=@sett_project_id
		WHERE [sett_key] = @sett_key
			AND [sett_application_id] = @sett_application_id
			AND ([sett_project_id] = @sett_project_id OR ISNULL([sett_project_id], @sett_project_id) IS NULL)
	ELSE
		INSERT INTO [dbo].[AFW_SETTINGS]
		(
			[sett_key],
			[sett_application_id],
			[sett_value],
			[sett_description],
			[sett_project_id]
		)VALUES(
			@sett_key, 
			@sett_application_id,
			@sett_value,
			@sett_description,
			@sett_project_id
		)
END
GO
CREATE PROCEDURE [METADATA_ALERT_CATEGORY]
    @id             INT, 	
	@ApplicationId	INT,
	@ParentId   	INT,
	@SeverityId		INT,
	@name			NVARCHAR(50),
	@Template	    NVARCHAR(250),
	@IsActive   	BIT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFW_ALERT_CATEGORY] WHERE [id] = @id AND [concept_id] = @ApplicationId AND [name] = @name)
		UPDATE [dbo].[AFW_ALERT_CATEGORY]
		SET  [id] = @id
			,[concept_id] = @ApplicationId
			,[parent_id] = @ParentId
			,[severity_id] = @SeverityId
			,[name] = @name
			,[template] = @Template
			,[is_active] = @IsActive
		WHERE [id] = @id AND [concept_id] = @ApplicationId AND [name] = @name
	ELSE
		INSERT INTO [dbo].[AFW_ALERT_CATEGORY](
			 [id] 
			,[concept_id]
			,[parent_id]
			,[severity_id]
			,[name]
			,[template]
			,[is_active]
		)VALUES(
		 	 @id
			,@ApplicationId 
			,@ParentId
			,@SeverityId
			,@name
			,@Template
			,@IsActive
		)
END
GO
CREATE PROCEDURE METADATA_APPLICATION_CATEGORY
   @typeId			INT,
   @name			NVARCHAR(50)
AS
BEGIN
	IF NOT EXISTS (SELECT 1  FROM [AFW_APPLICATION_CATEGORY] WHERE [apca_type] = @typeId AND [apca_name] = @name)
		INSERT INTO [AFW_APPLICATION_CATEGORY](
			[apca_type], 
			[apca_name]
		)VALUES(
			@typeId,
			@name
		)
END
GO
CREATE PROCEDURE [METADATA_CONCEPT]
	@id				INT,
	@name			NVARCHAR(255)
AS
BEGIN
		IF EXISTS (SELECT 1  FROM [dbo].[AFW_CONCEPT] WHERE [id] = @id)
		UPDATE [dbo].[AFW_CONCEPT]
			SET [id] = @id,
				[name] = @name
			WHERE [id] = @id
		ELSE
			INSERT INTO [dbo].[AFW_CONCEPT](
				[id], 
				[name]
			)VALUES(
				@id,
				@name
			)
		
END
GO
CREATE PROCEDURE METADATA_CATALOG(
	@i_cata_name NVARCHAR(200),
	@i_cata_type NVARCHAR(1),
	@i_cata_status INT,
	@i_cata_description NVARCHAR(250),
	@i_cata_num_rows INT,
	@i_cata_datatype NVARCHAR(50),
	@i_cata_mask NVARCHAR(50),
	@i_cata_max_length INT,
	@i_cata_parent_id INT,
	@i_cata_builtin BIT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT @v_count = COUNT (1)
	FROM AFW_CATALOG
	WHERE cata_name = @i_cata_name;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO AFW_CATALOG (
			cata_name,
			cata_type,
			cata_status,
			cata_description,
			cata_num_rows,
			cata_datatype,
			cata_mask,
			cata_max_length,
			cata_parent_id,
			cata_builtin
		) VALUES (
			@i_cata_name,
			@i_cata_type,
			@i_cata_status,
			@i_cata_description,
			@i_cata_num_rows,
			@i_cata_datatype,
			@i_cata_mask,
			@i_cata_max_length,
			@i_cata_parent_id,
			@i_cata_builtin		
		);	
	END;
END;
GO
CREATE PROCEDURE METADATA_CATALOG_CODE(
	@i_code_cata_id INT,
	@i_code_order INT,
	@i_code_key NVARCHAR(500),
	@i_code_value NVARCHAR(500),
	@i_code_description NVARCHAR(500),
	@i_code_status INT,
	@i_code_additional  NVARCHAR(255),
	@i_code_parent_id INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT @v_count = COUNT(1)
	FROM AFW_CATALOG_CODE
	where code_cata_id = @i_code_cata_id
	AND code_key = @i_code_key;
	
	IF @v_count = 0
	BEGIN

		INSERT INTO AFW_CATALOG_CODE (
			code_cata_id,
			code_order,
			code_key,
			code_value,
			code_description,
			code_status,
			code_additional,
			code_parent_id
		) VALUES (
			@i_code_cata_id,
			@i_code_order,
			@i_code_key,
			@i_code_value,
			@i_code_description,
			@i_code_status,
			@i_code_additional,
			@i_code_parent_id
		);

	END;
END;
GO
CREATE PROCEDURE METADATA_DASHBOARD
(
     @name          NVARCHAR(255),
     @folder        INT,
     @order         INT,
     @definition    NVARCHAR(MAX),
     @frecuency     INT,
     @description   NVARCHAR(510),
	 @id            INT OUTPUT
)
AS
BEGIN
    SET @id = NULL
	
	SELECT @id           = boar_id
	FROM   [DASH_BOARD] 
	WHERE  [boar_name]   = @name 
    AND    [boar_folder] = @folder

	IF @id IS NULL
    BEGIN	
        INSERT INTO [DASH_BOARD]([boar_name], [boar_folder], [boar_state],  [boar_order], [boar_description], [boar_frecuency], [boar_definition]) 
		VALUES                  (@name,        @folder,       1,            @order,       @description,        @frecuency,      @definition)

		SELECT @id = SCOPE_IDENTITY()
    END
    ELSE
    BEGIN
        UPDATE [DASH_BOARD] SET		                                     
			   [boar_definition]    = @definition,
			   [boar_name]          = @name,
			   [boar_description]   = @description,
			   [boar_frecuency]     = @frecuency,
			   [boar_order]         = @order
        WHERE  [boar_id]            = @id
    END
END
GO
CREATE PROCEDURE METADATA_FOLDER
(	
	@folderId			INT OUTPUT,
	@name				NVARCHAR(50),
	@parentId			INT = NULL,
	@creationDate		DATETIME,
	@modifiedDate		DATETIME,
	@userIdCreate		INT,
	@userIdModified		INT,
	@description		NVARCHAR(500),
	@applicationId		INT,
	@order				INT,
	@isPublic			BIT
)
AS
BEGIN
	 IF EXISTS(
				SELECT  * FROM [AFW_FOLDER] 
				WHERE	fold_name							= @name 
				AND		ISNULL(fold_parent,0)				= ISNULL(@parentId,0) 
				AND		fold_application_id					= @applicationId
				)
	 BEGIN
		SELECT  @folderId				= fold_id	
		FROM	[AFW_FOLDER] 
		WHERE	fold_name				= @name 
		AND		ISNULL(fold_parent,0)	= ISNULL(@parentId,0)  
		AND		fold_application_id		= fold_application_id

		UPDATE [AFW_FOLDER]
		SET 
				[fold_name]				= @name,
				[fold_parent]			= @parentId,
				[fold_creation_date]	= @creationDate,
				[fold_modified_date]	= @modifiedDate,
				[fold_user_id_create]	= @userIdCreate,
				[fold_user_id_modified] = @userIdModified,
				[fold_description]		= @description,
				[fold_application_id]	= @applicationId,
				[fold_order]			= @order,
				[fold_public]			= @isPublic

		WHERE	[fold_id]				= @folderId
	END
	ELSE
	BEGIN
		INSERT INTO [AFW_FOLDER]
		(
			[fold_name],
			[fold_parent],
			[fold_creation_date],
			[fold_modified_date],
			[fold_user_id_create],
			[fold_user_id_modified],
			[fold_description],
			[fold_application_id],
			[fold_order],
			[fold_guid],
			[fold_public]
		)
		VALUES
		(
			@name,
			@parentId,
			@creationDate,
			@modifiedDate,
			@userIdCreate,
			@userIdModified,
			@description,
			@applicationId,
			@order,
			NEWID(),
			@isPublic
		)
		SET @folderId  = SCOPE_IDENTITY();
	END
END
GO
CREATE PROCEDURE [METADATA_GROUP_USER]
	@id					INT, 
	@codusuario			INT
AS
BEGIN
	
	IF EXISTS (SELECT 1 FROM [dbo].[AFW_GROUP_USER] WHERE [grou_id] = @id AND [user_id]=@codusuario )
		UPDATE [dbo].[AFW_GROUP_USER]
		SET [grou_id]=@id,
			[user_id]=@codusuario
		WHERE [grou_id] = @id AND [user_id]=@codusuario
	ELSE
		INSERT INTO [dbo].[AFW_GROUP_USER](
			[grou_id],
			[user_id]
		)VALUES(
			@id,
			@codusuario
		)
		
END
GO
CREATE PROCEDURE [METADATA_GROUPS]	
	@name				NVARCHAR(256),
	@user_id			INT,
	@is_active			INT,
	@description		NVARCHAR(256),
	@definition_ldap	NVARCHAR(1000),
	@parent				INT,
	@guid_ldap			NVARCHAR(50),
	@class_type_ldap	NVARCHAR(50),
	@authentication_id	INT,
	@id					INT OUTPUT 
AS
BEGIN
	
	SELECT @id = [grou_id]
	FROM [dbo].[AFW_GROUPS]
	WHERE
		[grou_name] = @name AND 
		[grou_authentication_id] = @authentication_id AND 
		((@parent IS NULL AND [grou_parent] IS NULL) OR [grou_parent] = @parent)

		
	
	IF @id IS NOT NULL
		UPDATE [dbo].[AFW_GROUPS]
		SET 
			[grou_name]=@name,
			[grou_user_id]=@user_id,
			[grou_is_active]=@is_active,
			[grou_definition_ldap]=@definition_ldap,
			[grou_description]=@description,
			[grou_parent]=@parent,
			[grou_guid_ldap]=@guid_ldap,
			[grou_class_type_ldap]=@class_type_ldap,
			[grou_authentication_id]=@authentication_id
		WHERE [grou_id] = @id
	ELSE
	BEGIN
		INSERT INTO [dbo].[AFW_GROUPS](		
			[grou_name],
			[grou_user_id],
			[grou_is_active],
			[grou_definition_ldap],
			[grou_description],
			[grou_parent],
			[grou_guid_ldap],
			[grou_class_type_ldap],
			[grou_authentication_id]
		)VALUES(			
			@name, 
			@user_id,
			@is_active,
			@definition_ldap,
			@description,
			@parent,
			@guid_ldap,
			@class_type_ldap,
			@authentication_id
		)

		SET @id = SCOPE_IDENTITY();
	END
	
END
GO
CREATE PROCEDURE [METADATA_LDAP]
	@id				INT,
	@name			NVARCHAR(255), 
	@path			NVARCHAR(255),
	@user_string	NVARCHAR(255),
	@type			INT,
	@security		INT,
	@maxinvalidpasswordattempt INT
AS
BEGIN
	IF EXISTS (SELECT 1  FROM [dbo].[AFW_LDAP] WHERE [name] = @name)
		UPDATE [dbo].[AFW_LDAP]
		SET 
			[name] = @name,
			[server_name]= @path,
			[settings]=@user_string,
			[type]=@type,
			[security]=@security,
			[maxinvalidpasswordattempt]=@maxinvalidpasswordattempt
		WHERE [name] = @name
	ELSE
	BEGIN
		SET IDENTITY_INSERT [dbo].[AFW_LDAP] ON
		INSERT INTO [dbo].[AFW_LDAP](
			[id], 
			[name],
			[server_name],
			[settings],
			[type],
			[security],
			[maxinvalidpasswordattempt],
			[enable]
		)VALUES(
			@id,
			@name, 
			@path,
			@user_string,
			@type,
			@security,
			@maxinvalidpasswordattempt,
			1
		)
		SET IDENTITY_INSERT [dbo].[AFW_LDAP] OFF
	END
END
GO
CREATE PROCEDURE METADATA_MAIL_TEMPLATE
(	
	@name		VARCHAR(50), 
	@projectId	INT,
	@categoryId	INT,
	@subject	VARCHAR(100),	
	@format		INT,	
	@default	INT,	
	@sender		VARCHAR(1000),
	@senderName	VARCHAR(1000),
	@body		TEXT
)
AS
BEGIN

	IF EXISTS (SELECT * FROM [AFW_MAIL_TEMPLATE] 
		WHERE	[mate_name]				       = @name
		AND		[mate_project_id]		       = @projectId
		AND		ISNULL([mate_category_id],0)   = ISNULL(@categoryId,0)
	)	
	BEGIN
			UPDATE [AFW_MAIL_TEMPLATE]
			SET 
					[mate_subject]		= @subject, 
					[mate_body]			= @body, 
					[mate_format]		= @format,
					[mate_is_default]	= @default,
					[mate_sender]		= @sender,
					[mate_sender_name]	= @senderName
			WHERE	[mate_name]			= @name
			AND		[mate_project_id]	= @projectId
			AND		ISNULL([mate_category_id],0)	= ISNULL(@categoryId,0)
		

	END
	ELSE
	BEGIN
			INSERT INTO [AFW_MAIL_TEMPLATE]
			(			
				[mate_name],				[mate_subject],			[mate_body],		
				[mate_format],				[mate_project_id],		[mate_category_id],
				[mate_is_default],			[mate_sender],			[mate_sender_name]
			)VALUES
			(			
				@name			,			@subject		,		@body			,
				@format			,			@projectId		,		@categoryId		,
				@default		,			@sender			,		@senderName
			)		

	END
END
GO
CREATE PROCEDURE [METADATA_PERMISSIONS]
	@id				INT,
	@name			NVARCHAR(255), 
	@parent			INT,
	@is_active		BIT,
	@application_id	INT,
	@concept_id		INT
AS
BEGIN
	IF EXISTS (SELECT 1  FROM [dbo].[AFW_PERMISSIONS] WHERE [perm_id] = @id)
		UPDATE [dbo].[AFW_PERMISSIONS]
		SET [perm_id] = @id,
			[perm_name] = @name,
			[perm_parent] = @parent,
			[perm_is_active] = @is_active,
			[perm_application_id] = @application_id,
			[perm_concept_id] = @concept_id
		WHERE [perm_id] = @id
	ELSE
		INSERT INTO [dbo].[AFW_PERMISSIONS](
			[perm_id], 
			[perm_name],
			[perm_parent],
			[perm_is_active],
			[perm_application_id],
			[perm_concept_id]
		)VALUES(
			@id,
			@name, 
			@parent,
			@is_active,
			@application_id,
			@concept_id
		)
END
GO
CREATE PROCEDURE [dbo].[METADATA_REPORT]
    @folderId		INT,
    @name			NVARCHAR(255),     
    @order			INT,
	@data			NTEXT
AS
BEGIN	
    IF NOT EXISTS (SELECT 1 FROM AQM_REPORT WHERE repo_name = @name AND  repo_folder_id = @folderId )
	BEGIN
		INSERT INTO AQM_REPORT (
			repo_folder_id,
			repo_name,
			repo_report, 
			repo_create_date,
			repo_user_id_create,
			repo_user_id_modified
		) VALUES (
			@folderId,
			@name,			
			@data,					
			GETDATE(),
			1,
			1
		)                
	END	
	ELSE
	BEGIN
		UPDATE AQM_REPORT SET 
			   repo_order            = @order,
			   repo_report           = @data,
			   repo_create_date      = GETDATE(),
			   repo_user_id_create	 = 1,
			   repo_user_id_modified = 1
		WHERE  repo_name             = @name 
		AND    repo_folder_id        = @folderId 
	END
END
GO
CREATE PROCEDURE METADATA_ROLE_ACCESS
	@grou_id	INT,
	@role_id	INT,
	@proj_id	INT,
	@user_id	INT,
	@roac_proj_deny	INT,
	@roac_id        INT OUTPUT
AS
BEGIN
	
	IF NOT EXISTS (
		SELECT	1 
		FROM	[dbo].[AFW_ROLE_ACCESS] 
		WHERE	([roac_proj_id] = @proj_id or [roac_proj_id] is null)
				AND ([roac_grou_id] = @grou_id  or [roac_grou_id] is  null)
				AND ([roac_role_id] = @role_id  or [roac_role_id] is null)
				AND ([roac_user_id] = @user_id or [roac_user_id] is null)
				AND [roac_proj_deny] = @roac_proj_deny)
		
		INSERT INTO [dbo].[AFW_ROLE_ACCESS](
			[roac_proj_id],
			[roac_grou_id],
			[roac_role_id],
			[roac_user_id],
			[roac_proj_deny]
		)VALUES(
			@proj_id,
			@grou_id,
			@role_id,
			@user_id,
			0
		)
		
		SET @roac_id = SCOPE_IDENTITY();
END
GO

CREATE PROCEDURE METADATA_ROLE_ACCESS_OBJECT
(
		@roleAccessId	INT, 
		@objectTypeId	INT,
		@objectId		INT
)
AS
BEGIN
IF  NOT EXISTS (	SELECT 1  
					FROM	[AFW_ROLE_ACCESS_OBJECT] 
					WHERE	[roao_role_access_id]	= @roleAccessId 
					AND		[roao_object_type_id]	= @objectTypeId 
					AND		[roao_object_id]		= @objectId
				)
BEGIN
  INSERT INTO [AFW_ROLE_ACCESS_OBJECT] ([roao_role_access_id],	[roao_object_type_id],	[roao_object_id])
  VALUES							   (@roleAccessId,			@objectTypeId,			@objectId)
END

END
GO
CREATE PROCEDURE [METADATA_ROLE_PERMISSION]
	@perm_id		INT, 
	@role_id		INT,
	@is_audit		INT	
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFW_ROLE_PERMISSION] WHERE [perm_id] = @perm_id AND [role_id] = @role_id)
		UPDATE [dbo].[AFW_ROLE_PERMISSION]
		SET [perm_id] = @perm_id,
			[role_id] = @role_id,
			[is_audit] = @is_audit			
		WHERE [perm_id] = @perm_id AND [role_id] = @role_id
	ELSE
		INSERT INTO [dbo].[AFW_ROLE_PERMISSION](
			[perm_id], 
			[role_id],
			[is_audit]
		)VALUES(
			@perm_id,
			@role_id, 
			@is_audit
		)
END
GO
CREATE PROCEDURE [METADATA_ROLES]
	@name			NVARCHAR(40), 
	@description	NVARCHAR(255),
	@is_active		BIT,
	@is_builtin     BIT,
	@application_id INT,
	@concept_id		INT,
	@id				INT OUTPUT
AS
BEGIN

	SELECT @id = [role_id] 
		FROM [dbo].[AFW_ROLES] 
		WHERE [role_name] = @name AND
			[role_application_id] = @application_id

	IF @id IS NOT NULL
		BEGIN
			UPDATE [dbo].[AFW_ROLES]
			SET 
				[role_name] = @name,
				[role_description] = @description,
				[role_is_active]= @is_active,
				[role_is_builtin] = @is_builtin,
				[role_application_id] = @application_id,
				[role_concept_id] = @concept_id
			WHERE [role_id] = @id
		END
	ELSE
		BEGIN
			INSERT INTO [dbo].[AFW_ROLES](
				[role_name], 
				[role_description],
				[role_is_active],
				[role_is_builtin],
				[role_application_id],
				[role_concept_id]			
			)VALUES(
				@name,
				@description, 
				@is_active,
				@is_builtin,
				@application_id,
				@concept_id
			)
			SET @id = SCOPE_IDENTITY();
		END
END
GO
CREATE PROCEDURE METADATA_RULE_ACTION
(
	@id				INT,
	@context_id		INT,
	@name			VARCHAR(255),
	@class_name		VARCHAR(255),
	@assembly_path	VARCHAR(255),
	@ignore_condition BIT
)
AS
BEGIN

	IF NOT EXISTS(
		SELECT 1 
		FROM AFW_RULE_ACTION_TYPE 
		WHERE acty_id = @id
	)
	BEGIN
		INSERT INTO AFW_RULE_ACTION_TYPE (	acty_id,	acty_context_id,	acty_name,	acty_class_name,	acty_assembly_path, ignore_condition) 
		VALUES					  		 (	@id,		@context_id,		@name,		@class_name,		@assembly_path,     @ignore_condition) 
	END
	ELSE
	BEGIN

		UPDATE AFW_RULE_ACTION_TYPE
		SET 
				acty_context_id 		= @context_id,
				acty_name				= @name,
				acty_class_name			= @class_name,		
				acty_assembly_path		= @assembly_path,
				ignore_condition        = @ignore_condition
		WHERE	acty_id					= @id		
	END
END
GO

CREATE PROCEDURE [METADATA_RULE_CONTEXT]
(
	@id				INT,	
	@assembly		VARCHAR(255),		
	@class_name		VARCHAR(255),					
	@property_id 	VARCHAR(255)	
)
AS
BEGIN

	IF NOT EXISTS(
		SELECT 1 
		FROM AFW_RULE_CONTEXT 
		WHERE ruco_id = @id)
	BEGIN
		INSERT INTO AFW_RULE_CONTEXT (	ruco_id,	ruco_assembly,		ruco_class_name,	ruco_property_id) 
		VALUES					  	 (	@id,		@assembly,			@class_name,		@property_id) 
	END
	ELSE
	BEGIN

		UPDATE AFW_RULE_CONTEXT
		SET 
			ruco_assembly			= @assembly,	
			ruco_class_name			= @class_name,	
			ruco_property_id		= @property_id
		WHERE ruco_id				= @id		
	END

END
GO
CREATE PROCEDURE [METADATA_SCHEDULER]
(
    @name               NVARCHAR(50)  ,  
    @description        NVARCHAR(255) ,
    @frecuency_type     NVARCHAR(50)  ,
    @recurs_every       INT          ,
    @weekdays           INT          ,
    @months             INT          ,
    @cardinal_days      INT          ,
    @ordinal_days       INT          ,
    @start_date         DATETIME     ,
    @task_id            INT          ,
    @application_id     INT          ,
    @next_execution     DATETIME     ,
    @sche_max_delay     INT          ,
    @sche_parameters    NVARCHAR(MAX) = NULL
)
AS
BEGIN


IF EXISTS (SELECT * FROM [dbo].[AFW_SCHEDULER] WHERE UPPER([sche_name]) = UPPER(@name ))
BEGIN
            UPDATE [dbo].[AFW_SCHEDULER] 
            SET     
                   [sche_name]             = @name             ,
                   [sche_description]      = @description      ,
                   [sche_frecuency_type]   = @frecuency_type   ,
                   [sche_recurse_every]     = @recurs_every     ,
                   [sche_weekdays]         = @weekdays         ,
                   [sche_months]           = @months           ,
                   [sche_cardinal_days]    = @cardinal_days    ,
                   [sche_ordinal_days]     = @ordinal_days     ,
                   [sche_start_date]       = @start_date       ,
                   [sche_task_id]          = @task_id          ,
                   [sche_application_id]   = @application_id   ,
                   [sche_next_execution]   = @next_execution   ,
                   [sche_max_delay]        = @sche_max_delay   ,
                   [sche_creation_date]    = GETDATE(),
                   [sche_parameters]       = @sche_parameters 
            WHERE  UPPER([sche_name])      = UPPER(@name)
    END
    ELSE
    BEGIN
            INSERT INTO [dbo].[AFW_SCHEDULER]
                   (
                      [sche_name]             ,
                      [sche_description]      ,
                      [sche_frecuency_type]   ,
                      [sche_recurse_every]     ,
                      [sche_weekdays]         ,
                      [sche_months]           ,
                      [sche_cardinal_days]    ,
                      [sche_ordinal_days]     ,
                      [sche_start_date]       ,
                      [sche_task_id]          ,
                      [sche_application_id]   ,
                      [sche_next_execution]   ,
                      [sche_max_delay]        ,
                      [sche_creation_date],
                      [sche_parameters]       
                    )
            
             VALUES(
                     @name                    ,
                     @description             ,
                     @frecuency_type          ,
                     @recurs_every            ,
                     @weekdays                ,
                     @months                  ,
                     @cardinal_days           ,
                     @ordinal_days            ,
                     @start_date              ,
                     @task_id                 ,
                     @application_id          ,
                     @next_execution          ,
                     @sche_max_delay          ,                     
                     GETDATE()                ,
                     @sche_parameters         
                   )
    END
END
GO
CREATE PROCEDURE [METADATA_TASK]
	@id			INT, 
	@name		NVARCHAR(50), 
	@class		NVARCHAR(255),
	@assembly	NVARCHAR(255),
	@asynchronous INT	
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFW_TASKS] WHERE [task_id] = @id )
		UPDATE [dbo].[AFW_TASKS]
		SET [task_id] = @id,
			[task_name] = @name, 
			[task_class_name] = @class, 
			[task_asembly_path] = @assembly, 
			[task_asynchronous] = @asynchronous
		WHERE [task_id] = @id		
	ELSE
		INSERT INTO [dbo].[AFW_TASKS](
			[task_id], 
			[task_name], 
			[task_class_name], 
			[task_asembly_path],
			[task_asynchronous]
		)VALUES(
			@id, 
			@name, 
			@class, 
			@assembly,
			@asynchronous
		)
END
GO
CREATE PROCEDURE METADATA_TEMPLATES
   @categoryId	INT,
   @createdBy   INT,
   @name		VARCHAR(50),
   @creation	DATETIME,
   @template	VARCHAR(MAX)
AS
BEGIN
	IF NOT EXISTS (SELECT 1  FROM [AFW_TEMPLATES] WHERE [Name] = @name)
		INSERT INTO [AFW_TEMPLATES](
			[CategoryId], 
			[CreatedBy],
			[Name],
			[CreationDate],
			[Template]
		)VALUES(
			@categoryId,
			@createdBy,
			@name,
			@creation,
			@template
		)
END
GO
CREATE PROCEDURE [METADATA_USERS]
	 @uname						NVARCHAR(255) ,
	 @username					NVARCHAR(255) ,
	 @codperfil					INT ,
	 @codjefeinm				INT ,
	 @user_active				INT ,
	 @usua_builtin				INT ,
	 @usua_authentication_id	INT 
	 AS
BEGIN	
	IF EXISTS (SELECT 1 FROM [dbo].[AFW_USERS] 
		WHERE	[user_nick_name] = @username AND 
				[user_authentication_id] = @usua_authentication_id AND 
				[user_guid_ldap] IS NULL
	)
		UPDATE	[dbo].[AFW_USERS]
		SET		[user_name] = @uname,
				[user_nick_name]= @username,
				[user_codperfil]= @codperfil,
				[user_chief]=@codjefeinm,
				[user_active]=@user_active,
				[user_builtin]=@usua_builtin,
				[user_authentication_id]=@usua_authentication_id
		WHERE	[user_nick_name] = @username AND 
				[user_authentication_id] = @usua_authentication_id AND 
				[user_guid_ldap] IS NULL
	ELSE
		INSERT INTO [dbo].[AFW_USERS](			
			[user_name], 
			[user_nick_name],
			[user_codperfil],
			[user_chief],
			[user_active],
			[user_builtin],
			[user_authentication_id]
		)VALUES(
			@uname, 
			@username,
			@codperfil,
			@codjefeinm,
			@user_active,
			@usua_builtin,
			@usua_authentication_id
		)		
END
GO
CREATE PROCEDURE [METADATA_USERS_AUTHENTICATION]
	@id								INT , 
    @access_token					NVARCHAR(255) , 	
	@password						NVARCHAR(2000) ,
	@password_salt					NVARCHAR(128),
	@password_change_date			DATETIME ,
	@num_fail_password_attempt		INT ,
	@password_expiration		    DATETIME ,	
	@is_locked_out					INT,
	@last_locked_out_date			DATETIME ,
    @last_change_request_date		DATETIME 
	 AS
BEGIN
	--SET IDENTITY_INSERT [dbo].[AFW_USERS_AUTHENTICATION] ON
	--LOS VALORES DE AUTENTICACION NO DEBERIAN ACTUALIZARSE A VALORES DE FABRICA
	IF NOT EXISTS (SELECT 1 FROM [dbo].[AFW_USERS_AUTHENTICATION] WHERE [usau_id] = @id) 
		INSERT INTO [dbo].[AFW_USERS_AUTHENTICATION](
			[usau_id],						
			[usau_access_token],			
			[usau_password]	,				
			[usau_password_salt],			
			[usau_password_change_date],		
			[usau_num_fail_password_attempt],
			[usau_password_expiration],		
			[usau_is_locked_out],	
			[usau_last_locked_out_date],	
			[usau_last_change_request_date]
		)VALUES(
			@id,
			@access_token, 
			@password,
			@password_salt,
			@password_change_date,
			@num_fail_password_attempt,
			@password_expiration,					
			@is_locked_out,
			@last_locked_out_date,
			@last_change_request_date
		)
		--SET IDENTITY_INSERT [USUARIOS] OFF
END
GO
CREATE PROCEDURE [METADATA_ADW_DIM_TIME]
 AS
BEGIN	
	DECLARE
		@v_id INT,
		@v_value TIME,
		@v_min_value SMALLINT,
		@v_max_value SMALLINT,		
		@v_current_minute_value SMALLINT,
		@v_current_hour_value SMALLINT,
		@v_min_hour_value SMALLINT,
		@v_max_hour_value SMALLINT,
		@v_hour SMALLINT,
		@v_minute SMALLINT

	SET @v_min_value = 0;
	SET @v_max_value = 59;
	SET @v_min_hour_value = 0;
	SET @v_max_hour_value = 23;
	
	SET @v_current_hour_value = @v_min_hour_value;
	SET @v_current_minute_value = @v_min_value;
	
	WHILE @v_current_hour_value <= @v_max_hour_value
	BEGIN		
		SET @v_current_minute_value = @v_min_value

		WHILE @v_current_minute_value <= @v_max_value
		BEGIN
			SET @v_id = (@v_current_hour_value * 10000) + (@v_current_minute_value * 100);
			SET @v_value = CONCAT(@v_current_hour_value, ':', @v_current_minute_value, ':', 0);

				IF NOT EXISTS(SELECT (1) FROM ADW_DIM_TIME WHERE id = @v_id)
				BEGIN
					INSERT INTO ADW_DIM_TIME (
						[id],
						[value],
						[hour],
						[minute],
						[second]
					) VALUES (
						@v_id,
						@v_value,
						@v_current_hour_value,
						@v_current_minute_value,
						0
					);				
			END
			SET @v_current_minute_value = @v_current_minute_value + 1;
		END
		SET @v_current_hour_value = @v_current_hour_value + 1;
	END
END
GO
CREATE PROCEDURE [METADATA_ADW_TIME_ZONE]
	@name		NVARCHAR(256),
	@display	NVARCHAR(256)
AS
BEGIN
    DECLARE 
		@current NVARCHAR(256);

	SELECT @current = [name] FROM [ADW_TIME_ZONE] WHERE [name] = @name	

	IF (@current IS NULL)
		INSERT INTO [ADW_TIME_ZONE](
			[name],
			[display]
		) VALUES (
			@name,
			@display
		)
		 
	ELSE IF @current <> @display 
		UPDATE [dbo].[ADW_TIME_ZONE]
		SET [display] = @display
		WHERE [name] = @name
	
END
GO
CREATE PROCEDURE MD_AFW_LANGUAGE (
	@i_id CHAR(2),
	@i_description NVARCHAR(100)
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM AFW_LANGUAGE
	WHERE id = @i_id 
	AND description = @i_description
	
	IF @v_count = 0
	BEGIN
		INSERT INTO AFW_LANGUAGE (
			id,
			description
		) VALUES (
			LOWER(@i_id),
			@i_description
		);

	END;

END;
GO


----METADATA
--SUITES
EXEC METADATA_AFW_APPLICATIONS 12, N'ASMS', N'0', N'Aranda Service Management Suite',  1, NULL
EXEC METADATA_AFW_APPLICATIONS 32, N'ADM', N'0', N'Aranda DEVICE MANAGEMENT', 1, NULL

--PRODUCTS
EXEC METADATA_AFW_APPLICATIONS 0, N'ARANDA COMMON FRAMEWORK', N'0', 'ARANDA COMMON FRAMEWORK',  0, NULL
EXEC METADATA_AFW_APPLICATIONS 1, N'AAM', N'0', N'Aranda ASSET MANAGEMENT',  0, 32
EXEC METADATA_AFW_APPLICATIONS 6, N'ASM', N'0', N'Aranda SOFTWARE METRIX', 0, 32
EXEC METADATA_AFW_APPLICATIONS 8, N'ASD', N'0', N'Aranda SOFTWARE DELIVERY',  0, 32
EXEC METADATA_AFW_APPLICATIONS 13, N'ASDK', N'0', N'Aranda SERVICE DESK',  0, 12
EXEC METADATA_AFW_APPLICATIONS 18, N'AR', N'0', N'Aranda RULES', 0, NULL
EXEC METADATA_AFW_APPLICATIONS 19, N'APRTM', N'0', N'Aranda PRINT MANAGER', 0, NULL
EXEC METADATA_AFW_APPLICATIONS 21, N'CMDB', N'0', N'Aranda CMDB', 0, 12
EXEC METADATA_AFW_APPLICATIONS 24, N'DASH', N'0', N'Aranda DASHBOARD', 0, NULL
EXEC METADATA_AFW_APPLICATIONS 25, N'ASS', N'0', N'Aranda SELF SERVICE', 0, 12
EXEC METADATA_AFW_APPLICATIONS 26, N'ALOM', N'0', N'Aranda LIGTHS OUT MANAGEMENT', 0, NULL
EXEC METADATA_AFW_APPLICATIONS 27, N'ANM ', N'0', N'Aranda NETWORK MONITOR ', 0, NULL
EXEC METADATA_AFW_APPLICATIONS 28, N'APM', N'0', N'Aranda PATCH MANAGEMENT', 0, 32
EXEC METADATA_AFW_APPLICATIONS 29, N'AQM', N'0', N'Aranda QUERY MANAGER', 0, NULL
EXEC METADATA_AFW_APPLICATIONS 30, N'AVS', N'0', N'Aranda REMOTE CONTROL', 0, 32
EXEC METADATA_AFW_APPLICATIONS 31, N'APWM', N'0', N'Aranda POWER MANAGEMENT', 0, 32
EXEC METADATA_AFW_APPLICATIONS 33, N'AMDM', N'0', N'Aranda MOBILE DEVICE MANAGEMENT', 0, NULL
EXEC METADATA_AFW_APPLICATIONS 34, N'AFLS', N'0', N'ARANDA FIELD SERVICE', 0, NULL
EXEC METADATA_AFW_APPLICATIONS 13001, N'IM', N'0', N'INCIDENT', 0, 12;
EXEC METADATA_AFW_APPLICATIONS 13002, N'PM', N'0', N'PROBLEM', 0, 12;
EXEC METADATA_AFW_APPLICATIONS 13003, N'CHM', N'0', N'CHANGE', 0, 12;
EXEC METADATA_AFW_APPLICATIONS 13004, N'RF', N'0', N'REQUIREMENTS', 0, 12;
EXEC METADATA_AFW_APPLICATIONS 13005, N'SCM', N'0', N'SERVICE CATALOG', 0, 12;
EXEC METADATA_AFW_APPLICATIONS 13013, N'REL', N'0', N'RELEASES', 0, 12;
EXEC METADATA_AFW_APPLICATIONS 13050, N'EV', N'0', N'EVENT', 0, 12;
EXEC METADATA_AFW_APPLICATIONS 13900, N'SPM', N'0', N'SERVICE PORTFOLIO', 0, 12;
EXEC METADATA_AFW_APPLICATIONS 13901, N'SLM', N'0', N'SERVICE LEVEL', 0, 12;
EXEC METADATA_AFW_APPLICATIONS 13902, N'FM', N'0', N'FINANCE', 0, 12;
EXEC METADATA_AFW_APPLICATIONS 35, N'ASEC', N'0', N'Aranda SECURITY COMPLIANCE', 0, NULL;
EXEC METADATA_AFW_APPLICATIONS 36, N'AVS9', N'0', N'Aranda VIRTUAL SUPPORT', 0, NULL;

PRINT 'APLICACIONES DONE!!'
GO
EXEC METADATA_AFW_SETTINGS 'MachinePublicCertificate', 0, 'MIICQTCCAe+gAwIBAgIQh/8Gg7viO5tC3tjrtd1YNzAJBgUrDgMCHQUAMBYxFDASBgNVBAMTC1Jvb3QgQWdlbmN5MB4XDTE0MDQzMDIyMjQ0OVoXDTM5MTIzMTIzNTk1OVowIDEeMBwGA1UEAxMVQXJhbmRhIExpY2Vuc2UgU2VydmVyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsN4W/oT0DiB0H2qn7XhV8rUdUfYrSqsjnrGSsM3ajH1shnwxZdETZeyBaf8RpDsK+OWNT3DdVYK39RcOqBhmSZZtq2Dff5HuO82o6iLa1VaA9Dbehklyl8UY4FzvbehTxY3LQrYXRC+fCtyBJsm2CbcpHXp8tH9uEk0wX6G8pUpLtfkoAJbPx50pvcin96eL1hiKQyinrDU27Ugrmv7yszrx/4dSHN6xs8rYxQ3So18rdzfD8+M7n38HfdHrqbD8ho502kRQG/LcpjoE2boOEZ4YsTHR7ShnOY2/iGyg/6R7KZn6rn/BiDvhupKDTPS/QYSwphF0PeVGqzOBOhiGwQIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBACJ2Cmj5/CDNIG6+oguMoB1w6qW7oAADoVNXL6aL3x5O+dLDV5hx7hcX5InY4bnXoVWXn+wv50BOcBpPh5I6CiI=', 'Certificado publico de la maquina',  NULL
EXEC METADATA_AFW_SETTINGS 'QueueType', 0, '1', 'Tipo de cola que implementa la aplicación',  NULL
EXEC METADATA_AFW_SETTINGS 'QueueMachineName', 0, '', 'Nombre del servidor donde esta instalada la cola de .NET',  NULL
EXEC METADATA_AFW_SETTINGS 'LicenseRequestUrl', 0, 'https://serials.arandasoft.com/licensev9/dist', '',  NULL

PRINT 'SETTINGS DONE!!'
GO

EXEC [METADATA_CONCEPT] 1,'FOLDER'
EXEC [METADATA_CONCEPT] 2,'DOCUMENT'
EXEC [METADATA_CONCEPT] 3,'REPORT'
EXEC [METADATA_CONCEPT] 4,'DASHBOARD'
EXEC [METADATA_CONCEPT] 5,'ALERT'
EXEC [METADATA_CONCEPT] 6,'SURVEY'
EXEC [METADATA_CONCEPT] 7,'COMPANY'
EXEC [METADATA_CONCEPT] 8,'CATEGORY'
EXEC [METADATA_CONCEPT] 9,'PROJECT'
EXEC [METADATA_CONCEPT] 10,'USER'
EXEC [METADATA_CONCEPT] 12,'GROUP'

PRINT 'METADATA_CONCEPT DONE!!'
GO

EXEC [METADATA_LDAP] 0,'ARANDA',NULL,NULL,1,0,10
PRINT 'METADATA_LDAP DONE!!'
GO

DECLARE @idAuthAranda INT
SELECT @idAuthAranda = id FROM [dbo].[AFW_LDAP] WHERE [name] = 'Aranda'

EXEC [METADATA_USERS] 'APPLICATION ADMINISTRATOR', 'ADMINISTRATOR',1, 1, 1, 0, @idAuthAranda
EXEC [METADATA_USERS] 'ARANDA SERVICES USER', 'ARANDASERVICESUSER',1, 1, 1, 1, @idAuthAranda

PRINT 'METADATA_USERS DONE!!'
GO
DECLARE @idUserAdministrator INT
SELECT @idUserAdministrator = user_id FROM [dbo].[AFW_USERS] WHERE user_nick_name = 'ADMINISTRATOR'

EXEC [METADATA_USERS_AUTHENTICATION] @idUserAdministrator, '', 'joKYXMAI0HAXlM4SDp+IzeMx7jVhHqCzH0C7InL+ZcI=','RrMgKupMcjBTFlPoSQN8BQ==', NULL,NULL, NULL, NULL,NULL,NULL

PRINT 'METADATA_USERS_AUTHENTICATION DONE!!'
GO
DECLARE @id INT;
EXEC [METADATA_ROLES] 'Administrator', 'Administrator', 1, 1, 0, NULL, @id

--Content Manager
EXEC [METADATA_ROLES] 'CMManager', 'CMManager', 1, 1, 0, 2, @id
EXEC [METADATA_ROLES] 'CMPublisher', 'CMPublisher', 1, 1, 0, 2, @id
EXEC [METADATA_ROLES] 'CMReader', 'CMReader', 1, 1, 0, 2, @id

PRINT 'METADATA_ROLES DONE!!'
GO
EXEC [METADATA_PERMISSIONS] 1, N'ManageUser', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 2, N'CreateUser', 1, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 3, N'UpdateUser', 1, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 4, N'DeleteUser', 1, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 5, N'GetUser', 1, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 6, N'ManageGroup', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 7, N'CreateGroup', 6, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 8, N'UpdateGroup', 6, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 9, N'GetGroup', 6, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 10, N'DeleteGroup', 6, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 11, N'ManageProject', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 12, N'CreateProject', 11, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 13, N'UpdateProject', 11, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 14, N'DeleteProject', 11, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 15, N'GetProject', 11, 1, 0, NULL


EXEC [METADATA_PERMISSIONS] 16, N'ManageRole', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 17, N'CreateRole', 16, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 18, N'UpdateRole', 16, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 19, N'DeleteRole', 16, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 20, N'GetRole', 16, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 21, N'ManageAuthorization', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 22, N'CreateAuthorization', 21, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 23, N'DeleteAuthorization', 21, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 24, N'GetAuthorization', 21, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 25, N'UpdateAccessObject', 21, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 26, N'ManageAuthProvider', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 27, N'CreateAuthProvider', 26, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 28, N'UpdateAuthProvider', 26, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 29, N'DeleteAuthProvider', 26, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 30, N'GetAuthProvider', 26, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 31, N'ManageConfigurationLDAP', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 32, N'CreateConfigurationLDAP', 31, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 33, N'UpdateConfigurationLDAP', 31, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 34, N'GetConfigurationLDAP', 31, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 35, N'DeleteConfigurationLDAP', 31, 1, 0, NULL


EXEC [METADATA_PERMISSIONS] 36, N'ManageDocument', NULL, 1, 0, 2
EXEC [METADATA_PERMISSIONS] 37, N'CreateDocument', 36, 1, 0, 2
EXEC [METADATA_PERMISSIONS] 38, N'GetDocument', 36, 1, 0, 2
EXEC [METADATA_PERMISSIONS] 39, N'UpdateDocument', 36, 1, 0, 2
EXEC [METADATA_PERMISSIONS] 40, N'DeleteDocument', 36, 1, 0, 2

EXEC [METADATA_PERMISSIONS] 41, N'ManageFolder', NULL, 1, 0, 1
EXEC [METADATA_PERMISSIONS] 42, N'CreateFolder', 41, 1, 0, 1
EXEC [METADATA_PERMISSIONS] 43, N'UpdateFolder', 41, 1, 0, 1
EXEC [METADATA_PERMISSIONS] 44, N'GetFolder', 41, 1, 0, 1
EXEC [METADATA_PERMISSIONS] 45, N'DeleteFolder', 41, 1, 0, 1
EXEC [METADATA_PERMISSIONS] 46, N'AddInFolder', 41, 1, 0, 1

EXEC [METADATA_PERMISSIONS] 47, N'ManageMail', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 48, N'SendMail', 47, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 49, N'ManageMailAccount', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 50, N'CreateMailAccount', 49, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 51, N'UpdateMailAccount', 49, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 52, N'GetMailAccount'	, 49, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 53, N'DeleteMailAccount', 49, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 54, N'ManageMailTemplate', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 55, N'CreateMailTemplate', 54, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 56, N'UpdateMailTemplate', 54, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 57, N'GetMailTemplate'	, 54, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 58, N'DeleteMailTemplate', 54, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 59, N'ManageReport', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 60, N'CreateReport', 59, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 61, N'UpdateReport', 59, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 62, N'GetReport', 59, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 63, N'DeleteReport', 59, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 64, N'ScheduleReport', 59, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 65, N'ManageRule', Null, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 66, N'CreateRule', 65, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 67, N'UpdateRule', 65, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 68, N'GetRule', 	65, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 69, N'DeleteRule', 65, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 70, N'ManageDashboard', Null, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 71, N'CreateDashboard', 70, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 72, N'UpdateDashboard', 70, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 73, N'GetDashboard', 	70, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 74, N'DeleteDashboard', 70, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 75, N'ManageCategory', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 76, N'CreateCategory', 75, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 77, N'UpdateCategory', 75, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 78, N'GetCategory',    75, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 79, N'DeleteCategory', 75, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 80, N'ManageAlert', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 81, N'CreateAlert', 80, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 82, N'DeleteAlert', 80, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 83, N'UpdateAlert', 80, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 84, N'GetAlert', 80, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 85, N'ManageComment', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 86, N'CreateComment', 85, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 87, N'DeleteComment', 85, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 88, N'ManageTemplate', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 89, N'CreateTemplate', 88, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 90, N'DeleteTemplate', 88, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 91, N'UpdateTemplate', 88, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 92, N'GetTemplate', 88, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 93, N'ManageCompany', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 94, N'CreateCompany', 93, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 95, N'DeleteCompany', 93, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 96, N'UpdateCompany', 93, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 97, N'GetCompany', 93, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 98, N'ManageLocation', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 99, N'CreateLocation', 98, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 100, N'DeleteLocation', 98, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 101, N'UpdateLocation', 98, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 102, N'GetLocation', 98, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 108, N'ManageFields', NULL, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 109, N'CreateFields', 108, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 110, N'DeleteFields', 108, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 111, N'UpdateFields', 108, 1, 0, NULL
EXEC [METADATA_PERMISSIONS] 112, N'GetFields', 108, 1, 0, NULL

EXEC [METADATA_PERMISSIONS] 113, N'AssignLicense', NULL, 1, 0, NULL

PRINT 'METADATA_PERMISSIONS DONE!!'
GO

DECLARE @idRoleAdministrator INT
SELECT @idRoleAdministrator = role_id 
FROM [dbo].[AFW_ROLES] 
WHERE 
	[role_name] = 'Administrator' AND
	[role_application_id] = 0

--folder
DECLARE @idRoleCMManager INT
SELECT @idRoleCMManager = role_id 
FROM [dbo].[AFW_ROLES] 
WHERE 
	[role_name] = 'CMManager' AND
	[role_application_id] = 0

DECLARE @idRoleCMPublisher INT
SELECT @idRoleCMPublisher = role_id 
FROM [dbo].[AFW_ROLES] 
WHERE 
	[role_name] = 'CMPublisher' AND
	[role_application_id] = 0

DECLARE @idRoleCMReader INT
SELECT @idRoleCMReader = role_id 
FROM [dbo].[AFW_ROLES] 
WHERE 
	[role_name] = 'CMReader' AND
	[role_application_id] = 0


--METADATA

--ManageUser
EXEC [METADATA_ROLE_PERMISSION] 2, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 3, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 4, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 5, @idRoleAdministrator, 1

--ManageGroup
EXEC [METADATA_ROLE_PERMISSION] 7, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 8, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 9, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 10, @idRoleAdministrator, 1

--ManageProject
EXEC [METADATA_ROLE_PERMISSION] 12, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 13, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 14, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 15, @idRoleAdministrator, 1

--ManageRol
EXEC [METADATA_ROLE_PERMISSION] 17, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 18, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 19, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 20, @idRoleAdministrator, 1

--ManageAuthorization
EXEC [METADATA_ROLE_PERMISSION] 22, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 23, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 24, @idRoleAdministrator, 1

--ManageAuthorization Content Manager
EXEC [METADATA_ROLE_PERMISSION] 25, @idRoleCMManager, 1

--ManageAuthProvider
EXEC [METADATA_ROLE_PERMISSION] 27, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 28, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 29, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 30, @idRoleAdministrator, 1

--ManageConfigLDAP
EXEC [METADATA_ROLE_PERMISSION] 32, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 33, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 34, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 35, @idRoleAdministrator, 1

--ManageDocument
EXEC [METADATA_ROLE_PERMISSION] 37, @idRoleCMManager, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @idRoleCMManager, 1
EXEC [METADATA_ROLE_PERMISSION] 39, @idRoleCMManager, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @idRoleCMManager, 1

---ManageFolder
EXEC [METADATA_ROLE_PERMISSION] 42, @idRoleCMManager, 1
EXEC [METADATA_ROLE_PERMISSION] 43, @idRoleCMManager, 1
EXEC [METADATA_ROLE_PERMISSION] 44, @idRoleCMManager, 1
EXEC [METADATA_ROLE_PERMISSION] 45, @idRoleCMManager, 1
EXEC [METADATA_ROLE_PERMISSION] 46, @idRoleCMManager, 1

--ManageMail
EXEC [METADATA_ROLE_PERMISSION] 48, @idRoleAdministrator, 1

---ManageMailAccount
EXEC [METADATA_ROLE_PERMISSION] 50, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 51, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 52, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 53, @idRoleAdministrator, 1

--ManageMailTemplate
EXEC [METADATA_ROLE_PERMISSION] 55, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 56, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 57, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 58, @idRoleAdministrator, 1

--ManageReport
EXEC [METADATA_ROLE_PERMISSION] 60, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 61, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 62, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 63, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 64, @idRoleAdministrator, 1

--ManageRules
EXEC [METADATA_ROLE_PERMISSION] 66, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 67, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 68, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 69, @idRoleAdministrator, 1

--ManageDashBoard
EXEC [METADATA_ROLE_PERMISSION] 71, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 72, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 73, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 74, @idRoleAdministrator, 1

---ManageCategory
EXEC [METADATA_ROLE_PERMISSION] 76, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 77, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 78, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 79, @idRoleAdministrator, 1

---Document publisher
EXEC [METADATA_ROLE_PERMISSION] 37, @idRoleCMPublisher, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @idRoleCMPublisher, 1
EXEC [METADATA_ROLE_PERMISSION] 39, @idRoleCMPublisher, 1

---Document Reader
EXEC [METADATA_ROLE_PERMISSION] 38, @idRoleCMReader, 1

---Folder Publisher
EXEC [METADATA_ROLE_PERMISSION] 42, @idRoleCMPublisher, 1
EXEC [METADATA_ROLE_PERMISSION] 43, @idRoleCMPublisher, 1
EXEC [METADATA_ROLE_PERMISSION] 44, @idRoleCMPublisher, 1
EXEC [METADATA_ROLE_PERMISSION] 46, @idRoleCMPublisher, 1

---Folder Reader
EXEC [METADATA_ROLE_PERMISSION] 44, @idRoleCMReader, 1

---Manage Alert
EXEC [METADATA_ROLE_PERMISSION] 81, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 82, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 83, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 84, @idRoleAdministrator, 1

---Manage Comment
EXEC [METADATA_ROLE_PERMISSION] 86, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 87, @idRoleAdministrator, 1

---Manage Template
EXEC [METADATA_ROLE_PERMISSION] 89, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 90, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 91, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 92, @idRoleAdministrator, 1

---Manage Company
EXEC [METADATA_ROLE_PERMISSION] 94, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 95, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 96, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 97, @idRoleAdministrator, 1

---Manage Location
EXEC [METADATA_ROLE_PERMISSION] 99, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 100, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 101, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 102, @idRoleAdministrator, 1



---Manage Additionals Fields
EXEC [METADATA_ROLE_PERMISSION] 109, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 110, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 111, @idRoleAdministrator, 1
EXEC [METADATA_ROLE_PERMISSION] 112, @idRoleAdministrator, 1

-- Manage licenses
EXEC [METADATA_ROLE_PERMISSION] 113, @idRoleAdministrator, 1

PRINT 'METADATA_ROLE_PERMISSION DONE!!'
GO

--METADATA
DECLARE @v_id_group INT
EXEC [METADATA_GROUPS] 'Administrators',1,1,NULL,NULL,NULL,NULL,NULL,0, @v_id_group

PRINT 'METADATA_GROUPS DONE!!'

GO



DECLARE @idUserAdministrator INT
SELECT @idUserAdministrator = user_id FROM [dbo].[AFW_USERS] WHERE user_nick_name = 'ADMINISTRATOR'

DECLARE @idGroupAdministrator INT
SELECT @idGroupAdministrator = grou_id FROM [dbo].[AFW_GROUPS] WHERE [grou_name] = 'Administrators'
--METADATA
EXEC [METADATA_GROUP_USER] @idGroupAdministrator,@idUserAdministrator

PRINT 'METADATA_GROUP_USER DONE!!'

GO


DECLARE @idGroupAdministrator INT
SELECT @idGroupAdministrator = grou_id 
FROM [dbo].[AFW_GROUPS] 
WHERE [grou_name] = 'Administrators'

DECLARE @idRoleAdministrator INT
SELECT @idRoleAdministrator = role_id 
FROM [dbo].[AFW_ROLES] 
WHERE 
	[role_name] = 'Administrator' AND
	[role_application_id] = 0

DECLARE @idRoleCMManager INT
SELECT @idRoleCMManager = role_id 
FROM [dbo].[AFW_ROLES] 
WHERE 
	[role_name] = 'CMManager' AND
	[role_application_id] = 0	


DECLARE @idServiceUser INT
SELECT @idServiceUser = user_id 
FROM [dbo].[AFW_USERS] 
WHERE [user_name] = 'ARANDA SERVICES USER'



EXEC [METADATA_ROLE_ACCESS] @idGroupAdministrator, @idRoleAdministrator, NULL, NULL,0, NULL
EXEC [METADATA_ROLE_ACCESS] @idGroupAdministrator, @idRoleCMManager, NULL, NULL,0, NULL
EXEC [METADATA_ROLE_ACCESS] NULL, @idRoleAdministrator, NULL, @idServiceUser,0, NULL
EXEC [METADATA_ROLE_ACCESS] NULL, @idRoleCMManager, NULL, @idServiceUser,0, NULL


PRINT 'METADATA_ROLE_ACCESS DONE!!'
GO
EXEC [METADATA_ALERT_CATEGORY] 1, 1, NULL, 1,'Folder', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 2, 2, NULL, 1,'Documents', NULL, 1

PRINT 'METADATA_ALERT_CATEGORY DONE!!'
GO


EXEC [METADATA_TASK] 1, N'AFW_USERS_SINCHRONIZATION',	'Aranda.Common.Tasks.UserImporterTask', 'Aranda.Common.dll', 1
EXEC [METADATA_TASK] 2, N'AFW_DELETE_MAIL_HISTORY',	'Aranda.Common.Tasks.DeleteMailHistoryTask', 'Aranda.Common.dll', 1
EXEC [METADATA_TASK] 3, N'AFW_DELETE_WORKER_LOG',	'Aranda.Common.Tasks.DeleteWorkerLogTask', 'Aranda.Common.dll', 1
EXEC [METADATA_TASK] 4, N'AFW_DELETE_ALERT',	'Aranda.Common.Tasks.DeleteAlertTask', 'Aranda.Common.dll', 1
EXEC [METADATA_TASK] 5, N'AFW_MAILER',	'Aranda.Common.Tasks.MailerTask', 'Aranda.Common.dll', 1
EXEC [METADATA_TASK] 6, N'AFW_SCHEDULE',	'Aranda.Common.Tasks.SchedulerTask', 'Aranda.Common.dll', 1
EXEC [METADATA_TASK] 7, N'POPULATE_DIM_DATE',	'Aranda.Common.Tasks.PopulateDateDimensionTask', 'Aranda.Common.dll', 1
EXEC [METADATA_TASK] 8, N'AFW_WEBHOOK',	'Aranda.Common.WebHooks.Task.InvokeWebHookTask', 'Aranda.Common.dll', 1
EXEC [METADATA_TASK] 9, N'AFW_OAUTHMAILACCOUNT',	'Aranda.Common.Tasks.OauthMailAccountTask', 'Aranda.Common.dll', 1
EXEC [METADATA_TASK] 10, N'AFW_DELETE_AUDIT',	'Aranda.Common.Tasks.DeleteAuditTask', 'Aranda.Common.dll', 1
EXEC [METADATA_TASK] 11, N'AFW_DELETE_USER_SESSION_LOG',	'Aranda.Common.Tasks.DeleteUserSessionLogTask', 'Aranda.Common.dll', 1

GO
Print 'METADATA_TASK DONE!!'
GO

DECLARE @start AS DATETIME
-- Día exacto
SET	@start	= DATEADD(DAY, DATEDIFF(DAY, 0, GETUTCDATE()), 0)

--                         @name                           @description                                               @frecuency_type  @recurs_every @weekdays @months  @cardinal_days  @ordinal_days @start_date  @task_id @application_id  @next_execution  @sche_max_delay
EXEC [METADATA_SCHEDULER]  N'AFW_DELETE_MAIL_HISTORY',     N'Eliminación programada del histórico de correo',         'Daily',         1,            0,        0,       0,              0,            @start ,     2,       0,               NULL,            0
SET	@start = DATEADD(MINUTE, 10, @start)																																										       
EXEC [METADATA_SCHEDULER]  N'AFW_DELETE_WORKER_LOG',       N'Eliminación programada del histórico de worker',         'Daily',         1,            0,        0,       0,              0,            @start ,     3,       0,               NULL,            0
SET	@start = DATEADD(MINUTE, 10, @start)																																										       
EXEC [METADATA_SCHEDULER]  N'AFW_DELETE_ALERT',            N'Eliminación programada del histórico de alertas',        'Daily',         1,            0,        0,       0,              0,            @start ,     4,       0,               NULL,            0
SET	@start = DATEADD(MINUTE, 10, @start)																																										       
EXEC [METADATA_SCHEDULER]  N'POPULATE_DIM_DATE',           NULL,                                                      'Daily',         1,            0,        0,       0,              0,            @start ,     7,       0,               NULL,            0
SET	@start = DATEADD(MINUTE, 10, @start)																																										       
EXEC [METADATA_SCHEDULER]  N'AFW_OAUTHMAILACCOUNT',        N'Actualización tokens de las cuentas tipo Oauth',         'Daily',         1,            0,        0,       0,              0,            @start ,     9,       0,               NULL,            0
SET	@start = DATEADD(MINUTE, 10, @start)																																										       
EXEC [METADATA_SCHEDULER]  N'AFW_DELETE_AUDIT',            N'Eliminación del histórico de auditoría',                 'Daily',         1,            0,        0,       0,              0,            @start ,     10,      0,               NULL,            0
SET	@start = DATEADD(MINUTE, 10, @start)																																										       
EXEC [METADATA_SCHEDULER]  N'AFW_DELETE_USER_SESSION_LOG', N'Eliminación del histórico de autenticación de usuarios', 'Daily',         1,            0,        0,       0,              0,            @start ,     11,      0,               NULL,            0

-- Minuto exacto
SET @start = DATEADD(MINUTE, DATEDIFF(MINUTE, 0, GETUTCDATE()), 0)
EXEC [METADATA_SCHEDULER]  N'AFW_MAILER',                  N'Envío de correos',                                       'Interval',      1,            0,        0,       0,              0,            @start,      5,       0,               NULL,            90
EXEC [METADATA_SCHEDULER]  N'AFW_WEBHOOK',                 NULL,                                                      'Interval',      1,            0,        0,       0,              0,            @start,      8,       0,               NULL,            90


GO

BEGIN
	DECLARE @v_start_date DATETIME = DATEADD(M, -1, MIN(GETDATE()));
	SELECT @v_start_date = DATEFROMPARTS(DATEPART(YY, @v_start_date), DATEPART(M, @v_start_date), 1)
	EXEC PRC_POPULATE_DIM_DATE @v_start_date;
END
GO
BEGIN	
	EXEC [METADATA_ADW_DIM_TIME]
END
GO
/*
DECLARE
	@key NVARCHAR(255),
	@name NVARCHAR(255),
	@display_name VARCHAR(255);

DECLARE @time_zones TABLE (
	zone_key NVARCHAR(255),
	zone_name NVARCHAR(255)
);

DECLARE cur_time_zones CURSOR LOCAL STATIC FOR
SELECT
	[name]
FROM sys.time_zone_info;

OPEN cur_time_zones;

FETCH NEXT FROM cur_time_zones INTO
@name;

WHILE @@FETCH_STATUS = 0
BEGIN
	SET @key = CONCAT('Software\Microsoft\Windows NT\CurrentVersion\Time Zones\', @name);
	
	EXEC master..xp_regread
		'HKEY_LOCAL_MACHINE',
		@key,
		'Display',
		@display_name OUTPUT

	INSERT INTO @time_zones (
		zone_key,
		zone_name
	) VALUES (
		@name,
		@display_name
	);
	
	FETCH NEXT FROM cur_time_zones INTO
	@name;
END;

SELECT 'EXEC [METADATA_ADW_TIME_ZONE] ''' + zone_key + ''', ''' + zone_name + ''''
FROM @time_zones;
*/
EXEC [METADATA_ADW_TIME_ZONE] 'Dateline Standard Time', '(UTC-12:00) International Date Line West'
EXEC [METADATA_ADW_TIME_ZONE] 'UTC-11', '(UTC-11:00) Coordinated Universal Time-11'
EXEC [METADATA_ADW_TIME_ZONE] 'Aleutian Standard Time', '(UTC-10:00) Aleutian Islands'
EXEC [METADATA_ADW_TIME_ZONE] 'Hawaiian Standard Time', '(UTC-10:00) Hawaii'
EXEC [METADATA_ADW_TIME_ZONE] 'Marquesas Standard Time', '(UTC-09:30) Marquesas Islands'
EXEC [METADATA_ADW_TIME_ZONE] 'Alaskan Standard Time', '(UTC-09:00) Alaska'
EXEC [METADATA_ADW_TIME_ZONE] 'UTC-09', '(UTC-09:00) Coordinated Universal Time-09'
EXEC [METADATA_ADW_TIME_ZONE] 'Pacific Standard Time (Mexico)', '(UTC-08:00) Baja California'
EXEC [METADATA_ADW_TIME_ZONE] 'UTC-08', '(UTC-08:00) Coordinated Universal Time-08'
EXEC [METADATA_ADW_TIME_ZONE] 'Pacific Standard Time', '(UTC-08:00) Pacific Time (US & Canada)'
EXEC [METADATA_ADW_TIME_ZONE] 'US Mountain Standard Time', '(UTC-07:00) Arizona'
EXEC [METADATA_ADW_TIME_ZONE] 'Mountain Standard Time (Mexico)', '(UTC-07:00) Chihuahua, La Paz, Mazatlan'
EXEC [METADATA_ADW_TIME_ZONE] 'Mountain Standard Time', '(UTC-07:00) Mountain Time (US & Canada)'
EXEC [METADATA_ADW_TIME_ZONE] 'Yukon Standard Time', '(UTC-07:00) Yukon'
EXEC [METADATA_ADW_TIME_ZONE] 'Central America Standard Time', '(UTC-06:00) Central America'
EXEC [METADATA_ADW_TIME_ZONE] 'Central Standard Time', '(UTC-06:00) Central Time (US & Canada)'
EXEC [METADATA_ADW_TIME_ZONE] 'Easter Island Standard Time', '(UTC-06:00) Easter Island'
EXEC [METADATA_ADW_TIME_ZONE] 'Central Standard Time (Mexico)', '(UTC-06:00) Guadalajara, Mexico City, Monterrey'
EXEC [METADATA_ADW_TIME_ZONE] 'Canada Central Standard Time', '(UTC-06:00) Saskatchewan'
EXEC [METADATA_ADW_TIME_ZONE] 'SA Pacific Standard Time', '(UTC-05:00) Bogota, Lima, Quito, Rio Branco'
EXEC [METADATA_ADW_TIME_ZONE] 'Eastern Standard Time (Mexico)', '(UTC-05:00) Chetumal'
EXEC [METADATA_ADW_TIME_ZONE] 'Eastern Standard Time', '(UTC-05:00) Eastern Time (US & Canada)'
EXEC [METADATA_ADW_TIME_ZONE] 'Haiti Standard Time', '(UTC-05:00) Haiti'
EXEC [METADATA_ADW_TIME_ZONE] 'Cuba Standard Time', '(UTC-05:00) Havana'
EXEC [METADATA_ADW_TIME_ZONE] 'US Eastern Standard Time', '(UTC-05:00) Indiana (East)'
EXEC [METADATA_ADW_TIME_ZONE] 'Turks And Caicos Standard Time', '(UTC-05:00) Turks and Caicos'
EXEC [METADATA_ADW_TIME_ZONE] 'Paraguay Standard Time', '(UTC-04:00) Asuncion'
EXEC [METADATA_ADW_TIME_ZONE] 'Atlantic Standard Time', '(UTC-04:00) Atlantic Time (Canada)'
EXEC [METADATA_ADW_TIME_ZONE] 'Venezuela Standard Time', '(UTC-04:00) Caracas'
EXEC [METADATA_ADW_TIME_ZONE] 'Central Brazilian Standard Time', '(UTC-04:00) Cuiaba'
EXEC [METADATA_ADW_TIME_ZONE] 'SA Western Standard Time', '(UTC-04:00) Georgetown, La Paz, Manaus, San Juan'
EXEC [METADATA_ADW_TIME_ZONE] 'Pacific SA Standard Time', '(UTC-04:00) Santiago'
EXEC [METADATA_ADW_TIME_ZONE] 'Newfoundland Standard Time', '(UTC-03:30) Newfoundland'
EXEC [METADATA_ADW_TIME_ZONE] 'Tocantins Standard Time', '(UTC-03:00) Araguaina'
EXEC [METADATA_ADW_TIME_ZONE] 'E. South America Standard Time', '(UTC-03:00) Brasilia'
EXEC [METADATA_ADW_TIME_ZONE] 'SA Eastern Standard Time', '(UTC-03:00) Cayenne, Fortaleza'
EXEC [METADATA_ADW_TIME_ZONE] 'Argentina Standard Time', '(UTC-03:00) City of Buenos Aires'
EXEC [METADATA_ADW_TIME_ZONE] 'Greenland Standard Time', '(UTC-03:00) Greenland'
EXEC [METADATA_ADW_TIME_ZONE] 'Montevideo Standard Time', '(UTC-03:00) Montevideo'
EXEC [METADATA_ADW_TIME_ZONE] 'Magallanes Standard Time', '(UTC-03:00) Punta Arenas'
EXEC [METADATA_ADW_TIME_ZONE] 'Saint Pierre Standard Time', '(UTC-03:00) Saint Pierre and Miquelon'
EXEC [METADATA_ADW_TIME_ZONE] 'Bahia Standard Time', '(UTC-03:00) Salvador'
EXEC [METADATA_ADW_TIME_ZONE] 'UTC-02', '(UTC-02:00) Coordinated Universal Time-02'
EXEC [METADATA_ADW_TIME_ZONE] 'Mid-Atlantic Standard Time', '(UTC-02:00) Mid-Atlantic - Old'
EXEC [METADATA_ADW_TIME_ZONE] 'Azores Standard Time', '(UTC-01:00) Azores'
EXEC [METADATA_ADW_TIME_ZONE] 'Cape Verde Standard Time', '(UTC-01:00) Cabo Verde Is.'
EXEC [METADATA_ADW_TIME_ZONE] 'UTC', '(UTC) Coordinated Universal Time'
EXEC [METADATA_ADW_TIME_ZONE] 'GMT Standard Time', '(UTC+00:00) Dublin, Edinburgh, Lisbon, London'
EXEC [METADATA_ADW_TIME_ZONE] 'Greenwich Standard Time', '(UTC+00:00) Monrovia, Reykjavik'
EXEC [METADATA_ADW_TIME_ZONE] 'Sao Tome Standard Time', '(UTC+00:00) Sao Tome'
EXEC [METADATA_ADW_TIME_ZONE] 'Morocco Standard Time', '(UTC+01:00) Casablanca'
EXEC [METADATA_ADW_TIME_ZONE] 'W. Europe Standard Time', '(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna'
EXEC [METADATA_ADW_TIME_ZONE] 'Central Europe Standard Time', '(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague'
EXEC [METADATA_ADW_TIME_ZONE] 'Romance Standard Time', '(UTC+01:00) Brussels, Copenhagen, Madrid, Paris'
EXEC [METADATA_ADW_TIME_ZONE] 'Central European Standard Time', '(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb'
EXEC [METADATA_ADW_TIME_ZONE] 'W. Central Africa Standard Time', '(UTC+01:00) West Central Africa'
EXEC [METADATA_ADW_TIME_ZONE] 'Jordan Standard Time', '(UTC+02:00) Amman'
EXEC [METADATA_ADW_TIME_ZONE] 'GTB Standard Time', '(UTC+02:00) Athens, Bucharest'
EXEC [METADATA_ADW_TIME_ZONE] 'Middle East Standard Time', '(UTC+02:00) Beirut'
EXEC [METADATA_ADW_TIME_ZONE] 'Egypt Standard Time', '(UTC+02:00) Cairo'
EXEC [METADATA_ADW_TIME_ZONE] 'E. Europe Standard Time', '(UTC+02:00) Chisinau'
EXEC [METADATA_ADW_TIME_ZONE] 'Syria Standard Time', '(UTC+02:00) Damascus'
EXEC [METADATA_ADW_TIME_ZONE] 'West Bank Standard Time', '(UTC+02:00) Gaza, Hebron'
EXEC [METADATA_ADW_TIME_ZONE] 'South Africa Standard Time', '(UTC+02:00) Harare, Pretoria'
EXEC [METADATA_ADW_TIME_ZONE] 'FLE Standard Time', '(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius'
EXEC [METADATA_ADW_TIME_ZONE] 'Israel Standard Time', '(UTC+02:00) Jerusalem'
EXEC [METADATA_ADW_TIME_ZONE] 'South Sudan Standard Time', '(UTC+02:00) Juba'
EXEC [METADATA_ADW_TIME_ZONE] 'Kaliningrad Standard Time', '(UTC+02:00) Kaliningrad'
EXEC [METADATA_ADW_TIME_ZONE] 'Sudan Standard Time', '(UTC+02:00) Khartoum'
EXEC [METADATA_ADW_TIME_ZONE] 'Libya Standard Time', '(UTC+02:00) Tripoli'
EXEC [METADATA_ADW_TIME_ZONE] 'Namibia Standard Time', '(UTC+02:00) Windhoek'
EXEC [METADATA_ADW_TIME_ZONE] 'Arabic Standard Time', '(UTC+03:00) Baghdad'
EXEC [METADATA_ADW_TIME_ZONE] 'Turkey Standard Time', '(UTC+03:00) Istanbul'
EXEC [METADATA_ADW_TIME_ZONE] 'Arab Standard Time', '(UTC+03:00) Kuwait, Riyadh'
EXEC [METADATA_ADW_TIME_ZONE] 'Belarus Standard Time', '(UTC+03:00) Minsk'
EXEC [METADATA_ADW_TIME_ZONE] 'Russian Standard Time', '(UTC+03:00) Moscow, St. Petersburg'
EXEC [METADATA_ADW_TIME_ZONE] 'E. Africa Standard Time', '(UTC+03:00) Nairobi'
EXEC [METADATA_ADW_TIME_ZONE] 'Volgograd Standard Time', '(UTC+03:00) Volgograd'
EXEC [METADATA_ADW_TIME_ZONE] 'Iran Standard Time', '(UTC+03:30) Tehran'
EXEC [METADATA_ADW_TIME_ZONE] 'Arabian Standard Time', '(UTC+04:00) Abu Dhabi, Muscat'
EXEC [METADATA_ADW_TIME_ZONE] 'Astrakhan Standard Time', '(UTC+04:00) Astrakhan, Ulyanovsk'
EXEC [METADATA_ADW_TIME_ZONE] 'Azerbaijan Standard Time', '(UTC+04:00) Baku'
EXEC [METADATA_ADW_TIME_ZONE] 'Russia Time Zone 3', '(UTC+04:00) Izhevsk, Samara'
EXEC [METADATA_ADW_TIME_ZONE] 'Mauritius Standard Time', '(UTC+04:00) Port Louis'
EXEC [METADATA_ADW_TIME_ZONE] 'Saratov Standard Time', '(UTC+04:00) Saratov'
EXEC [METADATA_ADW_TIME_ZONE] 'Georgian Standard Time', '(UTC+04:00) Tbilisi'
EXEC [METADATA_ADW_TIME_ZONE] 'Caucasus Standard Time', '(UTC+04:00) Yerevan'
EXEC [METADATA_ADW_TIME_ZONE] 'Afghanistan Standard Time', '(UTC+04:30) Kabul'
EXEC [METADATA_ADW_TIME_ZONE] 'West Asia Standard Time', '(UTC+05:00) Ashgabat, Tashkent'
EXEC [METADATA_ADW_TIME_ZONE] 'Ekaterinburg Standard Time', '(UTC+05:00) Ekaterinburg'
EXEC [METADATA_ADW_TIME_ZONE] 'Pakistan Standard Time', '(UTC+05:00) Islamabad, Karachi'
EXEC [METADATA_ADW_TIME_ZONE] 'Qyzylorda Standard Time', '(UTC+05:00) Qyzylorda'
EXEC [METADATA_ADW_TIME_ZONE] 'India Standard Time', '(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi'
EXEC [METADATA_ADW_TIME_ZONE] 'Sri Lanka Standard Time', '(UTC+05:30) Sri Jayawardenepura'
EXEC [METADATA_ADW_TIME_ZONE] 'Nepal Standard Time', '(UTC+05:45) Kathmandu'
EXEC [METADATA_ADW_TIME_ZONE] 'Central Asia Standard Time', '(UTC+06:00) Astana'
EXEC [METADATA_ADW_TIME_ZONE] 'Bangladesh Standard Time', '(UTC+06:00) Dhaka'
EXEC [METADATA_ADW_TIME_ZONE] 'Omsk Standard Time', '(UTC+06:00) Omsk'
EXEC [METADATA_ADW_TIME_ZONE] 'Myanmar Standard Time', '(UTC+06:30) Yangon (Rangoon)'
EXEC [METADATA_ADW_TIME_ZONE] 'SE Asia Standard Time', '(UTC+07:00) Bangkok, Hanoi, Jakarta'
EXEC [METADATA_ADW_TIME_ZONE] 'Altai Standard Time', '(UTC+07:00) Barnaul, Gorno-Altaysk'
EXEC [METADATA_ADW_TIME_ZONE] 'W. Mongolia Standard Time', '(UTC+07:00) Hovd'
EXEC [METADATA_ADW_TIME_ZONE] 'North Asia Standard Time', '(UTC+07:00) Krasnoyarsk'
EXEC [METADATA_ADW_TIME_ZONE] 'N. Central Asia Standard Time', '(UTC+07:00) Novosibirsk'
EXEC [METADATA_ADW_TIME_ZONE] 'Tomsk Standard Time', '(UTC+07:00) Tomsk'
EXEC [METADATA_ADW_TIME_ZONE] 'China Standard Time', '(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi'
EXEC [METADATA_ADW_TIME_ZONE] 'North Asia East Standard Time', '(UTC+08:00) Irkutsk'
EXEC [METADATA_ADW_TIME_ZONE] 'Singapore Standard Time', '(UTC+08:00) Kuala Lumpur, Singapore'
EXEC [METADATA_ADW_TIME_ZONE] 'W. Australia Standard Time', '(UTC+08:00) Perth'
EXEC [METADATA_ADW_TIME_ZONE] 'Taipei Standard Time', '(UTC+08:00) Taipei'
EXEC [METADATA_ADW_TIME_ZONE] 'Ulaanbaatar Standard Time', '(UTC+08:00) Ulaanbaatar'
EXEC [METADATA_ADW_TIME_ZONE] 'Aus Central W. Standard Time', '(UTC+08:45) Eucla'
EXEC [METADATA_ADW_TIME_ZONE] 'Transbaikal Standard Time', '(UTC+09:00) Chita'
EXEC [METADATA_ADW_TIME_ZONE] 'Tokyo Standard Time', '(UTC+09:00) Osaka, Sapporo, Tokyo'
EXEC [METADATA_ADW_TIME_ZONE] 'North Korea Standard Time', '(UTC+09:00) Pyongyang'
EXEC [METADATA_ADW_TIME_ZONE] 'Korea Standard Time', '(UTC+09:00) Seoul'
EXEC [METADATA_ADW_TIME_ZONE] 'Yakutsk Standard Time', '(UTC+09:00) Yakutsk'
EXEC [METADATA_ADW_TIME_ZONE] 'Cen. Australia Standard Time', '(UTC+09:30) Adelaide'
EXEC [METADATA_ADW_TIME_ZONE] 'AUS Central Standard Time', '(UTC+09:30) Darwin'
EXEC [METADATA_ADW_TIME_ZONE] 'E. Australia Standard Time', '(UTC+10:00) Brisbane'
EXEC [METADATA_ADW_TIME_ZONE] 'AUS Eastern Standard Time', '(UTC+10:00) Canberra, Melbourne, Sydney'
EXEC [METADATA_ADW_TIME_ZONE] 'West Pacific Standard Time', '(UTC+10:00) Guam, Port Moresby'
EXEC [METADATA_ADW_TIME_ZONE] 'Tasmania Standard Time', '(UTC+10:00) Hobart'
EXEC [METADATA_ADW_TIME_ZONE] 'Vladivostok Standard Time', '(UTC+10:00) Vladivostok'
EXEC [METADATA_ADW_TIME_ZONE] 'Lord Howe Standard Time', '(UTC+10:30) Lord Howe Island'
EXEC [METADATA_ADW_TIME_ZONE] 'Bougainville Standard Time', '(UTC+11:00) Bougainville Island'
EXEC [METADATA_ADW_TIME_ZONE] 'Russia Time Zone 10', '(UTC+11:00) Chokurdakh'
EXEC [METADATA_ADW_TIME_ZONE] 'Magadan Standard Time', '(UTC+11:00) Magadan'
EXEC [METADATA_ADW_TIME_ZONE] 'Norfolk Standard Time', '(UTC+11:00) Norfolk Island'
EXEC [METADATA_ADW_TIME_ZONE] 'Sakhalin Standard Time', '(UTC+11:00) Sakhalin'
EXEC [METADATA_ADW_TIME_ZONE] 'Central Pacific Standard Time', '(UTC+11:00) Solomon Is., New Caledonia'
EXEC [METADATA_ADW_TIME_ZONE] 'Russia Time Zone 11', '(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky'
EXEC [METADATA_ADW_TIME_ZONE] 'New Zealand Standard Time', '(UTC+12:00) Auckland, Wellington'
EXEC [METADATA_ADW_TIME_ZONE] 'UTC+12', '(UTC+12:00) Coordinated Universal Time+12'
EXEC [METADATA_ADW_TIME_ZONE] 'Fiji Standard Time', '(UTC+12:00) Fiji'
EXEC [METADATA_ADW_TIME_ZONE] 'Kamchatka Standard Time', '(UTC+12:00) Petropavlovsk-Kamchatsky - Old'
EXEC [METADATA_ADW_TIME_ZONE] 'Chatham Islands Standard Time', '(UTC+12:45) Chatham Islands'
EXEC [METADATA_ADW_TIME_ZONE] 'UTC+13', '(UTC+13:00) Coordinated Universal Time+13'
EXEC [METADATA_ADW_TIME_ZONE] 'Tonga Standard Time', '(UTC+13:00) Nuku''alofa'
EXEC [METADATA_ADW_TIME_ZONE] 'Samoa Standard Time', '(UTC+13:00) Samoa'
EXEC [METADATA_ADW_TIME_ZONE] 'Line Islands Standard Time', '(UTC+14:00) Kiritimati Island'
GO
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD '$' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD '_' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'a' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'about' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'after' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'all' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'also' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'an' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'and' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'another' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'any' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'are' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'as' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'at' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'b' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'be' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'because' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'been' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'before' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'being' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'between' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'both' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'but' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'by' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'c' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'came' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'can' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'come' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'could' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'd' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'did' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'do' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'does' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'e' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'each' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'else' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'f' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'for' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'from' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'g' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'get' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'got' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'h' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'had' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'has' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'have' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'he' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'her' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'here' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'him' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'himself' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'his' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'how' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'i' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'if' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'in' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'into' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'is' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'it' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'its' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'j' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'just' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'k' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'l' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'like' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'm' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'make' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'many' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'me' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'might' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'more' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'most' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'much' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'must' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'my' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'n' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'never' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'no' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'now' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'o' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'of' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'on' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'only' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'or' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'other' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'our' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'out' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'over' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'p' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'q' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'r' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 're' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 's' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'said' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'same' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'see' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'should' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'since' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'so' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'some' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'still' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'such' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 't' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'take' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'than' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'that' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'the' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'their' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'them' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'then' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'there' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'these' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'they' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'this' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'those' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'through' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'to' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'too' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'u' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'under' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'up' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'use' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'v' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'very' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'w' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'want' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'was' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'way' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'we' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'well' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'were' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'what' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'when' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'where' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'which' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'while' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'who' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'will' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'with' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'would' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'x' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'y' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'you' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'your' LANGUAGE 0;
ALTER FULLTEXT STOPLIST FSL_ARANDA ADD 'z' LANGUAGE 0;
GO
EXEC [MD_AFW_LANGUAGE] N'es', N'Spanish'
EXEC [MD_AFW_LANGUAGE] N'en', N'English'
EXEC [MD_AFW_LANGUAGE] N'pt', N'Portuguese'
GO

PRINT 'MD_AFW_LANGUAGE DONE!!'
GO
----END DEPLOY
/*
Post-Deployment Script Template							
--------------------------------------------------------------------------------------
 This file contains SQL statements that will be appended to the build script.		
 Use SQLCMD syntax to include a file in the post-deployment script.			
 Example:      :r .\myfile.sql								
 Use SQLCMD syntax to reference a variable in the post-deployment script.		
 Example:      :setvar TableName MyTable							
               SELECT * FROM [$(TableName)]					
--------------------------------------------------------------------------------------
*/

-- Funciones comunes para desplegar folders y permisos (por ejemplo Dashboard y reportes)
--:r ..\..\..\packages\Aranda.Common.9.5.0.17\tools\net462\DB\postdeploy.sql

----INITIALIZE DEPLOY

CREATE PROCEDURE METADATA_KPI
(
     @kpi_code                  INT,
     @kpi_name                  NVARCHAR(max),
     @kpi_description           NVARCHAR(max),
     @kpi_frecuency             INT
)
AS
BEGIN
    IF EXISTS (SELECT 1 FROM [DASH_KPI] WHERE [kpi_code] = @kpi_code)
        UPDATE [DASH_KPI]
        SET 
               [kpi_frecuency]   = @kpi_frecuency,
               [kpi_description] = @kpi_description,
               [kpi_name]        = @kpi_name,
               [kpi_product]     = 32
        WHERE  [kpi_code]        = @kpi_code
    ELSE
        INSERT INTO [DASH_KPI]
        (
            [kpi_code],
            [kpi_name],
            [kpi_description],
            [kpi_frecuency],
            [kpi_product],
            [kpi_state]
        )VALUES(
             @kpi_code,
             @kpi_name,
             @kpi_description,
             @kpi_frecuency,
             32,
             1
        )
END
GO
CREATE PROCEDURE METADATA_KPI_SERIE
(
     @kpi_code                  INT,
     @kpis_name                 NVARCHAR(256),
     @kpis_id					INT OUTPUT
)
AS
BEGIN

    SET @kpis_id = NULL

    IF NOT EXISTS (SELECT 1 FROM [DASH_KPI_SERIE] WHERE [kpis_name] = @kpis_name AND [kpis_kpi] IN (SELECT kpi_id FROM DASH_KPI WHERE [kpi_code] = @kpi_code))
    BEGIN
        INSERT INTO [DASH_KPI_SERIE]
        (
            [kpis_kpi],
            [kpis_name]
        )VALUES
        (
             (SELECT kpi_id FROM DASH_KPI WHERE [kpi_code] = @kpi_code), @kpis_name
        )
        SELECT @kpis_id = @@IDENTITY 
     END
     ELSE
     BEGIN
        SELECT @kpis_id = kpis_id   
        FROM [DASH_KPI_SERIE]
        WHERE [kpis_kpi] = (SELECT kpi_id FROM DASH_KPI WHERE [kpi_code] = @kpi_code) 
        AND [kpis_name] = @kpis_name
    END
END
GO

CREATE PROCEDURE METADATA_POPULATE_ROLE_PERMISSION
AS
BEGIN
    SET NOCOUNT ON;

    INSERT INTO dbo.AFW_ROLE_PERMISSION (
        perm_id, 
        role_id, 
        is_audit
    )
    SELECT
        child.perm_id,
        parentRole.role_id,
        1 AS is_audit
    FROM dbo.AFW_PERMISSIONS AS parent
    INNER JOIN dbo.AFW_ROLE_PERMISSION AS parentRole ON parent.perm_id = parentRole.perm_id
    INNER JOIN dbo.AFW_PERMISSIONS AS child ON child.perm_parent = parent.perm_id
    WHERE parent.perm_parent IS NULL
        AND child.perm_id NOT IN (30002, 30004)
        AND NOT EXISTS (
            SELECT 1
            FROM dbo.AFW_ROLE_PERMISSION AS rp
            WHERE rp.perm_id = child.perm_id
              AND rp.role_id = parentRole.role_id
        );
END;
GO



--ADM METADATA
--METADATA
EXEC METADATA_CONCEPT 32000,'DEVICE'
EXEC METADATA_CONCEPT 32100,'HARDWARE'
EXEC METADATA_CONCEPT 32101,'MEMORY'
EXEC METADATA_CONCEPT 32102,'NETWORK_ADAPTER'
EXEC METADATA_CONCEPT 32103,'DISK'
EXEC METADATA_CONCEPT 32104,'SHARED_RESOURCE'
EXEC METADATA_CONCEPT 32105,'PROCESSOR'
EXEC METADATA_CONCEPT 32106,'BOARD_SLOT'
EXEC METADATA_CONCEPT 32107,'DRIVER'
EXEC METADATA_CONCEPT 32108,'PRINTER'
EXEC METADATA_CONCEPT 32109,'SERVICE'
EXEC METADATA_CONCEPT 32110,'VIDEO'
EXEC METADATA_CONCEPT 32111,'DISPLAY'
EXEC METADATA_CONCEPT 32112,'UNIT_MAPPING'
EXEC METADATA_CONCEPT 32113,'KEYBOARD'
EXEC METADATA_CONCEPT 32114,'STARTUP_COMMAND'
EXEC METADATA_CONCEPT 32115,'SYSTEM_SETUP'
EXEC METADATA_CONCEPT 32116,'BIOS'
EXEC METADATA_CONCEPT 32117,'MEMBERSHIP'
EXEC METADATA_CONCEPT 32118,'SOFTWARE'
EXEC METADATA_CONCEPT 32119,'OPERATING_SYSTEM'
EXEC METADATA_CONCEPT 32120,'FILES'
EXEC METADATA_CONCEPT 32121,'SOFTWARE_UPDATE'
EXEC METADATA_CONCEPT 32122,'DEVICES_GROUP'
GO
Print 'AFW_CONCEPT DONE!!'
--METADATA

EXEC METADATA_AFW_SETTINGS  N'AgentPort', 32, N'9025', NULL,NULL
EXEC METADATA_AFW_SETTINGS  N'AgentRegisterInterval', 32, N'5', 'Minutes',NULL
EXEC METADATA_AFW_SETTINGS  N'UpdatedInventoryDays', 32, N'7', 'Days',NULL
EXEC METADATA_AFW_SETTINGS  N'SubjectRecoveryPassword', 32, N'Recuperar contraseña', NULL,NULL
  
EXEC METADATA_AFW_SETTINGS  N'WATTS_TO_C02', 31, N'0.37', N'Factor de conversión porcentaje entre Watts/h y Kg de CO2 actualizado año colombia - 2014',NULL

EXEC METADATA_AFW_SETTINGS  N'LIFETIME_INVENTORY_AAM', 32, N'0', 'Seconds',NULL
EXEC METADATA_AFW_SETTINGS  N'LIFETIME_INVENTORY_APM', 32, N'0', 'Seconds',NULL
EXEC METADATA_AFW_SETTINGS  N'LIFETIME_INVENTORY_AFL', 32, N'0', 'Seconds',NULL
EXEC METADATA_AFW_SETTINGS  N'LIFETIME_INVENTORY_ASM', 32, N'0', 'Seconds',NULL
EXEC METADATA_AFW_SETTINGS  N'LIFETIME_INVENTORY_APWM', 32, N'0', 'Seconds',NULL
EXEC METADATA_AFW_SETTINGS  N'CRUNCHER_AAM', 32, N'1', 'Cantidad de inventarios a procesar Cruncher AAM',NULL
EXEC METADATA_AFW_SETTINGS  N'CRUNCHER_AFL', 32, N'1', 'Cantidad de inventarios a procesar Cruncher AFL',NULL
EXEC METADATA_AFW_SETTINGS  N'CRUNCHER_ASM', 32, N'1', 'Cantidad de inventarios a procesar Cruncher ASM',NULL
EXEC METADATA_AFW_SETTINGS  N'DefaultPageSizeToInsert', 28, N'5000', 'Tamaño de página predeterminado para insertar ',NULL
EXEC METADATA_AFW_SETTINGS  N'DefaultPageSizeToSelect', 28, N'2000', 'Tamaño de página predeterminado para seleccionar',NULL
EXEC METADATA_AFW_SETTINGS  N'MailMaxFailedAttemps', 0, N'2', 'Número de reintentos',NULL
EXEC METADATA_AFW_SETTINGS  N'AutoSetUser', 1, N'true', 'Asignación automática de usuario responsable',NULL
EXEC METADATA_AFW_SETTINGS  N'MEMORY_THRESHOLD', 1, N'10', 'memory change detection threshold',NULL
EXEC METADATA_AFW_SETTINGS  N'ConsolidateASM', 32, N'-5', 'Zona horaria con la que se va a consolidar',NULL
EXEC METADATA_AFW_SETTINGS  N'HideLoginForm', 32, N'false', 'Ocultar formulario',NULL
EXEC METADATA_AFW_SETTINGS  N'IntegrationEma', 32, N'1', 'Activar integración EMA',NULL
EXEC METADATA_AFW_SETTINGS	N'ASM_LotSizeToConsolidate', 32, N'500000', ' Tamaño de los lotes a consolidar en ASM ', NULL
EXEC METADATA_AFW_SETTINGS	N'ShowSelfServiceMenu', 8, N'true', 'Mostrar menú del portal de autogestión en la consola', NULL 
EXEC METADATA_AFW_SETTINGS	N'EnableAbsolutePersistence', 1, N'false', 'Mostrar o ocultar la funcionalidad de persistencia con Absolute', NULL 
EXEC METADATA_AFW_SETTINGS	N'EnableARC', 30, N'true', 'Habilitar o deshabilitar el nuevo control remoto con ARC', NULL
EXEC METADATA_AFW_SETTINGS	N'DownloadARC', 30, N'true', 'Habilitar o deshabilitar descargar de agente del nuevo control remoto con ARC', NULL
EXEC METADATA_AFW_SETTINGS	N'EnableServerNotification', 1, N'false', 'Habilitar o deshabilitar el servidor de notificaciones', NULL
EXEC METADATA_AFW_SETTINGS	N'Disable_CMDB_Sync', 1, N'false', 'Habilitar o deshabilitar la sincronización con CMDB', NULL
EXEC METADATA_AFW_SETTINGS	N'CMDB_Configuration', 1, N'{"ApplyNewModel":true,"CmdbVersion":1,"Password":null,"Token":"","TrustCertificate":false,"Url":"","UserName":""}', 'Configuración para integración con CMDB', NULL
EXEC METADATA_AFW_SETTINGS  N'EnableRecordingAuthorizationOnRemoteControl',  30, 'true', 'Habilitar o deshabilitar la grabación automatica de control remoto', NULL
EXEC METADATA_AFW_SETTINGS  N'DiscoveryMetadataVersion',  32, '1.2.0.1', 'Version de metadata inicial para descubrimiento SNMP', NULL
GO

EXEC METADATA_PERMISSIONS 32000, N'ADM_Devices', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32001, N'ADM_DevicesViewRead', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32002, N'ADM_DevicesExportList', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32003, N'ADM_DevicesImportList', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32004, N'ADM_DevicesDetailsViewRead', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32005, N'ADM_DevicesDetailsReadViewGeneral', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32006, N'ADM_DevicesDetailsReadViewHardware', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32007, N'ADM_DevicesDetailsReadViewSoftware', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32008, N'ADM_DevicesDetailsReadViewRemoteAdmin', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32009, N'ADM_DevicesDetailsReadViewVirtualization', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32010, N'ADM_DevicesDetailsReadViewCI', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32011, N'ADM_DevicesDetailsReadViewAdditionalInfo', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32012, N'ADM_DevicesDetailsReadViewMonitoring', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32013, N'ADM_DevicesDetailsReadViewLocation', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32014, N'ADM_DevicesDetailsReadViewFailureRecords', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32015, N'ADM_DevicesCmdRemoveDevice', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32016, N'ADM_DevicesCmdUpdateCI', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32017, N'ADM_DevicesCmdRemoveLicense', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32018, N'ADM_DevicesCmdGetInventory', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32020, N'ADM_DevicesCmdDistributeAgent', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32021, N'ADM_DevicesCmdDistributeProject', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32022, N'ADM_DevicesCmdRunCommand', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32023, N'ADM_DevicesCmdRestart', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32024, N'ADM_DevicesCmdShutdown', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32025, N'ADM_DevicesCmdTurnOn', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32026, N'ADM_DevicesCmdSynchronizeClock', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32027, N'ADM_DevicesCmdDeleteFiles', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32028, N'ADM_DevicesCmdChangeAgentProfile', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32029, N'ADM_DevicesCmdSendMessage', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32030, N'ADM_DevicesCmdAssignResponsibleUser', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32031, N'ADM_DevicesCmdUninstallSoftware', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32032, N'ADM_DevicesCmdUpdateAgent', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32033, N'ADM_DevicesCmdResolveConflicts', 32000, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32034, N'ADM_Hardware', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32035, N'ADM_HardwareViewRead', 32034, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32036, N'ADM_HardwareExportList', 32034, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32037, N'ADM_AppCatalog', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32038, N'ADM_AppCatalogViewRead', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32039, N'ADM_AppCatalogExportList', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32040, N'ADM_AppCatalogCreate', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32041, N'ADM_AppCatalogSetProhibited', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32042, N'ADM_AppCatalogRemove', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32043, N'ADM_AppCatalogUpdateCI', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32044, N'ADM_AppCatalogDetailsViewRead', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32045, N'ADM_AppCatalogDetailsGeneral', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32046, N'ADM_AppCatalogDetailsViewGroups', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32047, N'ADM_AppCatalogDetailsViewDevices', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32048, N'ADM_AppCatalogDetailsViewUsage', 32037, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32049, N'ADM_AppCatalogDetailsViewCI', 32037, 1, 32, NULL

 
EXEC METADATA_PERMISSIONS 32082, N'ADM_RulesExportList', 65, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32083, N'ADM_RulesDetailsViewRead', 65, 1, 32, NULL


EXEC METADATA_PERMISSIONS 32084, N'ADM_AlertsViewRead', 80, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32085, N'ADM_AlertsExportList', 80, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32086, N'ADM_ApplicationSettingsViewAlerts', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32087, N'ADM_ApplicationSettingsViewAlertsRead', 32086, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32088, N'ADM_ApplicationSettingsViewLicenses', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32089, N'ADM_ApplicationSettingsViewLicensesRead', 32088, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32090, N'ADM_ApplicationSettingsViewEnterpriseIntegration', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32091, N'ADM_ApplicationSettingsViewEnterpriseIntegrationRead', 32090, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32092, N'ADM_ApplicationSettingsViewProxy', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32093, N'ADM_ApplicationSettingsViewProxyRead', 32092, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32094, N'ADM_ApplicationSettingsViewCMDB', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32095, N'ADM_ApplicationSettingsViewCMDBRead', 32094, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32096, N'ADM_ApplicationSettingsViewCredentials', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32097, N'ADM_ApplicationSettingsViewCredentialsRead', 32096, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32098, N'ADM_ApplicationSettingsViewCommunications', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32099, N'ADM_ApplicationSettingsViewCommunicationsRead', 32098, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32100, N'ADM_ApplicationSettingsViewAgentprofiles', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32101, N'ADM_ApplicationSettingsViewAgentprofilesRead', 32100, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32102, N'ADM_ApplicationSettingsViewApplicationCatalog', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32103, N'ADM_ApplicationSettingsViewApplicationCatalogRead', 32102, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32104, N'ADM_ApplicationSettingsViewPackages', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32105, N'ADM_ApplicationSettingsViewPackagesRead', 32104, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32106, N'ADM_ApplicationSettingsViewMetering', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32107, N'ADM_ApplicationSettingsViewMeteringRead', 32106, 1, 32, NULL
 
EXEC METADATA_PERMISSIONS 32108, N'ADM_ApplicationSettingsViewContentManager', NULL, 1, 32, NULL 
EXEC METADATA_PERMISSIONS 32109, N'ADM_ApplicationSettingsViewContentManagerViewRead', 32108, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32110, N'ADM_UnlockUser', 1, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32111, N'ADM_ApplicationSettingsViewRelationship', Null, 0, 32, NULL
EXEC METADATA_PERMISSIONS 32112, N'ADM_ApplicationSettingsViewRelationshipRead', 32111, 0, 32, NULL
EXEC METADATA_PERMISSIONS 32113, N'ADM_ApplicationSettingsViewRelationshipCreate', 32111, 0, 32, NULL
EXEC METADATA_PERMISSIONS 32114, N'ADM_ApplicationSettingsViewRelationshipDelete', 32111, 0, 32, NULL

EXEC METADATA_PERMISSIONS 32115, N'ADM_ApplicationSettingsViewApiConfigure', Null, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32116, N'ADM_ApplicationSettingsViewApiConfigureRead', 32115, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32117, N'ADM_ApplicationSettingsViewApiConfigureCreate', 32115, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32118, N'ADM_ApplicationSettingsViewApiConfigureDelete', 32115, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32119, N'ADM_ApplicationSettingsViewDevicesGroupRead', 6, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32121, N'ADM_ApplicationSettingsViewEmaConfigure', Null, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32122, N'ADM_ApplicationSettingsViewEmaConfigureRead', 32121, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32123, N'ADM_ApplicationSettingsViewEmaConfigureCreate', 32121, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32124, N'ADM_ApplicationSettingsViewSaml', Null, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32125, N'ADM_ApplicationSettingsViewSamlRead', 32124, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32126, N'ADM_ApplicationSettingsViewSamlCreate', 32124, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32127, N'ADM_ApplicationSettingsViewSamleDelete', 32124, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32128, N'ADM_UninstallCommandConfigure', Null, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32129, N'ADM_UninstallCommandConfigureEdit', 32128, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32130, N'ADM_GatewayConfigure', Null, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32131, N'ADM_GatewayConfigureRead', 32130, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32132, N'ADM_GatewayConfigureCreate', 32130, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32133, N'ADM_AuditManage', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32134, N'ADM_AuditCreate', 32133, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32135, N'ADM_AuditGet', 32133, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32136, N'ADM_DiscoveryManage', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32137, N'ADM_DiscoveryDefinitionGet', 32136, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32138, N'ADM_DiscoveryDefinitionUpdate', 32136, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32139, N'ADM_DiscoveryDefinitionCreate', 32136, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32141, N'ADM_DiscoveryModelsGet', 32136, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32142, N'ADM_DiscoveryModelsUpdate', 32136, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32143, N'ADM_DiscoveryModelsCreate', 32136, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32144, N'ADM_DiscoveryModelsDelete', 32136, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32145, N'ADM_DiscoverySNMPRulesGet', 32136, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32146, N'ADM_DiscoverySNMPRulesUpdate', 32136, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32147, N'ADM_DiscoverySNMPRulesCreate', 32136, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32148, N'ADM_DiscoverySNMPRulesDelete', 32136, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32149, N'ADM_DevicesTypeGet', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32150, N'ADM_DevicesTypeUpdate', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32151, N'ADM_DevicesTypeCreate', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32152, N'ADM_DevicesTypeDelete', 32000, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32153, N'ADM_ManufacturerManage', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32154, N'ADM_ManufacturerGet', 32153, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32155, N'ADM_ManufacturerUpdate', 32153, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32156, N'ADM_ManufacturerCreate', 32153, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32157, N'ADM_ManufacturerDelete', 32153, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32158, N'ADM_CloudInfrastructure', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32159, N'ADM_CloudInfrastructureManager', 32158, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32160, N'ADM_CloudInfrastructureGet', 32158, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32161, N'ADM_Turn_Server_External', 32000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32162, N'ADM_Turn_Server_Local', 32000, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32163, N'ADM_ManageAdditionalFields', 108, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32164, N'ADM_EventLog', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32165, N'ADM_EventLogGet', 32164, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32166, N'ADM_GlobalSettings', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32167, N'ADM_GlobalSettingsGet', 32166, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32168, N'ADM_GlobalSettingsManage', 32166, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32169, N'ADM_ArtificialIntelligence', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32170, N'ADM_ArtificialIntelligenceConnectionPoint', 32169, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32171, N'ADM_ArtificialIntelligenceActions', 32169, 1, 32, NULL

--Permisos del concepto Grupos de dispositivos 
DECLARE @conceptId INT
SELECT @conceptId = id FROM AFW_CONCEPT WHERE name = 'DEVICES_GROUP'

EXEC METADATA_PERMISSIONS 32172, N'ADM_DG_DevicesGet', NULL, 1, 32, @conceptId;
EXEC METADATA_PERMISSIONS 32173, N'ADM_DG_RemoteControl', NULL, 1, 32, @conceptId;
EXEC METADATA_PERMISSIONS 32174, N'ADM_DG_DeviceAdminActions', NULL, 1, 32, @conceptId;
EXEC METADATA_PERMISSIONS 32175, N'ADM_DG_RemoteAdminActions', NULL, 1, 32, @conceptId;

EXEC METADATA_PERMISSIONS 32176, N'ADM_DevicesGroupPermissionsManager', 6, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32177, N'ADM_DevicesGlobalManagement', 32000, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32178, N'ADM_AgentDeployment', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32179, N'ADM_AgentDeploymentGet', 32178, 1, 32, NULL

EXEC METADATA_PERMISSIONS 32180, N'ADM_RequestComponents', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 32181, N'ADM_RequestComponentsRead', 32180, 1, 32, NULL

--ASM - Software License
EXEC METADATA_PERMISSIONS 6000, N'ManageSoftwareLicense', NULL, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6001, N'GetSoftwareLicense', 6000, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6002, N'CreateSoftwareLicense', 6000, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6003, N'UpdateSoftwareLicense', 6000, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6004, N'DeleteSoftwareLicense', 6000, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6005, N'SoftwareLicensingExportList', 6000, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6006, N'SoftwareLicensingDetailsViewRead', 6000, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6007, N'SoftwareLicensingDetailsViewDevices', 6000, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6008, N'SoftwareLicensingDetailsViewPurchases', 6000, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6009, N'SoftwareLicensingDetailsViewAlerts', 6000, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6010, N'SoftwareUsage', 6000, 1, 6, NULL
EXEC METADATA_PERMISSIONS 6011, N'SoftwareUsageViewRead', 6000, 1, 6, NULL

--ASD - Distribution
EXEC METADATA_PERMISSIONS 8000, N'ManageDistribution', NULL, 1, 32, NULL
EXEC METADATA_PERMISSIONS 8001, N'GetProjectDistribution', 8000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 8002, N'DistributionExportList', 8000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 8003, N'CreateExecution', 8000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 8004, N'DistributionDetailsViewRead', 8000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 8005, N'DistributionDetailsReadViewGeneral', 8000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 8006, N'DistributionDetailsReadViewTargets', 8000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 8007, N'DistributionDetailsReadViewExecutions', 8000, 1, 32, NULL
EXEC METADATA_PERMISSIONS 8008, N'DistributionUseSoftwareProjects', 8000, 1, 8, NULL
EXEC METADATA_PERMISSIONS 8009, N'DistributionUseAgentProjects', 8000, 1, 32, NULL

--APM - Patch
EXEC METADATA_PERMISSIONS 28000, N'ManagePatch', NULL, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28001, N'PatchesViewRead', 28000, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28002, N'PatchesExportList', 28000, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28003, N'PatchesDetailsViewRead', 28000, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28004, N'PatchesDetailsViewGeneral', 28000, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28005, N'PatchesDetailsViewDevices', 28000, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28006, N'PatchesProgramDownload', 28000, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28007, N'PatchesCancelDownload', 28000, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28008, N'PatchesConfigureInstallation', 28000, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28009, N'PatchesDeleteFiles', 28000, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28010, N'PatchesViewDistributionProject', 28000, 1, 28, NULL
EXEC METADATA_PERMISSIONS 28011, N'PatchesAutomaticInstallation', 28000, 1, 28, NULL

--AVS - Remote Support
EXEC METADATA_PERMISSIONS 30000, N'ManageRemoteSupport', NULL, 1, 30, NULL
EXEC METADATA_PERMISSIONS 30001, N'ViewRemoteSupport', 30000, 1, 30, NULL
EXEC METADATA_PERMISSIONS 30003, N'ControlRemoteSupport', 30000, 1, 30, NULL
EXEC METADATA_PERMISSIONS 30004, N'SkipAuthorizationRemoteSupport', 30000, 1, 30, NULL

--APWM - Politicas
EXEC METADATA_PERMISSIONS 31000, N'ManageEnergyPolicy', NULL, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31001, N'GetPolicy', 31000, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31002, N'CreatePolicy', 31000, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31003, N'UpdatePolicy', 31000, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31004, N'DeletePolicy', 31000, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31005, N'GetPrice', 31000, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31006, N'UpdatePrice', 31000, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31007, N'ADM_PoliciesExportList', 31000, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31008, N'ADM_PoliciesDetailsViewRead', 31000, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31009, N'ADM_PoliciesDetailsReadViewGeneral', 31000, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31010, N'ADM_PoliciesDetailsReadViewApply', 31000, 1, 31, NULL
EXEC METADATA_PERMISSIONS 31011, N'ADM_PoliciesDetailsReadViewDevices', 31000, 1, 31, NULL

GO

PRINT 'AFW_PERMISSIONS DONE'
DECLARE @idRol INT
EXEC METADATA_ROLES N'PolicyManager', 'This role gives full access to the policies, reports, alerts and dashboard', 1, 1, 31, NULL, @idRol OUTPUT
EXEC METADATA_ROLE_ACCESS 1, @idRol,NULL,NULL,0,NULL
EXEC METADATA_ROLE_PERMISSION 80, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 70, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 31000, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 59, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32177, @idRol, 1
GO

DECLARE @idRol INT
EXEC METADATA_ROLES N'AppCatalogManager', 'This role gives full access to the application catalog, reports, alerts and dashboard', 1, 1, 31, NULL, @idRol OUTPUT
EXEC METADATA_ROLE_ACCESS 1, @idRol,NULL,NULL,0,NULL
EXEC METADATA_ROLE_PERMISSION 80, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32037, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 70, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 59, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32177, @idRol, 1
GO

DECLARE @idRol INT
EXEC METADATA_ROLES N'SoftwareLicenseManager', 'This role gives full access to software licensing, reports, alerts and dashboard', 1, 1, 6, NULL, @idRol OUTPUT
EXEC METADATA_ROLE_ACCESS 1, @idRol,NULL,NULL,0,NULL
EXEC METADATA_ROLE_PERMISSION 80, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 70, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 59, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 6000, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32177, @idRol, 1
GO

DECLARE @idRol INT
EXEC METADATA_ROLES N'DeviceManager', 'This role gives full access over devices, reports, alerts and dashboard', 1, 1, 32, NULL, @idRol OUTPUT
EXEC METADATA_ROLE_ACCESS 1, @idRol,NULL,NULL,0,NULL
EXEC METADATA_ROLE_PERMISSION 80, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 70, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32000, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32034, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 59, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32149, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32150, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32151, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32152, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32153, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32154, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32155, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32156, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32157, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32158, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32159, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32160, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32177,@idRol, 1
GO

DECLARE @idRol INT
EXEC METADATA_ROLES N'DistributionManager', 'This role gives full access to distribution, reports, alerts and dashboard', 1, 1, 32, NULL, @idRol OUTPUT
EXEC METADATA_ROLE_ACCESS 1, @idRol,NULL,NULL,0,NULL
EXEC METADATA_ROLE_PERMISSION 80, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 70, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 8000, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 59, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32136, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32137, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32138, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32139, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32141, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32142, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32143, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32144, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32145, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32146, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32147, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32148, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32177, @idRol, 1
GO

DECLARE @idRol INT
EXEC METADATA_ROLES N'RuleManager', 'This role gives full access to rules, reports, alerts and dashboard', 1, 1, 32, NULL, @idRol OUTPUT
EXEC METADATA_ROLE_ACCESS 1, @idRol,NULL,NULL,0,NULL
EXEC METADATA_ROLE_PERMISSION 80, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 70, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 59, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 65, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32177, @idRol, 1
GO

DECLARE @idRol INT
EXEC METADATA_ROLES N'PatchManager', 'This role gives full access to patch, distribution, reports, alerts and dashboard', 1, 1, 32, NULL, @idRol OUTPUT
EXEC METADATA_ROLE_ACCESS 1, @idRol,NULL,NULL,0,NULL
EXEC METADATA_ROLE_PERMISSION 80, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 70, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 28000, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 59, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 8000, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 28011, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32177, @idRol, 1
GO

DECLARE @idRol INT
EXEC METADATA_ROLES N'SettingsManager', 'This role gives full access to settings, reports, alerts and dashboard', 1, 1, 32, NULL, @idRol OUTPUT
EXEC METADATA_ROLE_ACCESS 1, @idRol,NULL,NULL,0,NULL
EXEC METADATA_ROLE_PERMISSION 80, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 70, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 59, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32087, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32095, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32103, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32099, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32097, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32105, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32089, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32107, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32101, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32093, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32091, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32133, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32134, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32135, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32161, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32162, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32164, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32165, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32166, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32167, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32168, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32176, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32177, @idRol, 1
GO

DECLARE @idRol INT
EXEC METADATA_ROLES N'AIManager', 'This role gives full access to AI settings', 1, 1, 32, NULL, @idRol OUTPUT
EXEC METADATA_ROLE_ACCESS 1, @idRol,NULL,NULL,0,NULL
EXEC METADATA_ROLE_PERMISSION 32169, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32170, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32171, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 32177, @idRol, 1

--PERSMISSION ADM
EXEC METADATA_ROLE_PERMISSION 8000, 1, 1
EXEC METADATA_ROLE_PERMISSION 59, 1, 1
EXEC METADATA_ROLE_PERMISSION 21, 1, 1
EXEC METADATA_ROLE_PERMISSION 65, 1, 1
EXEC METADATA_ROLE_PERMISSION 70, 1, 1
EXEC METADATA_ROLE_PERMISSION 80, 1, 1
EXEC METADATA_ROLE_PERMISSION 32000, 1, 1
EXEC METADATA_ROLE_PERMISSION 32034, 1, 1
EXEC METADATA_ROLE_PERMISSION 32037, 1, 1
EXEC METADATA_ROLE_PERMISSION 28000, 1, 1
EXEC METADATA_ROLE_PERMISSION 31000, 1, 1
EXEC METADATA_ROLE_PERMISSION 32086, 1, 1
EXEC METADATA_ROLE_PERMISSION 30000, 1, 1
EXEC METADATA_ROLE_PERMISSION 30004, 1, 1
EXEC METADATA_ROLE_PERMISSION 6000, 1, 1 
EXEC METADATA_ROLE_PERMISSION 32088, 1, 1
EXEC METADATA_ROLE_PERMISSION 32090, 1, 1
EXEC METADATA_ROLE_PERMISSION 32092, 1, 1
EXEC METADATA_ROLE_PERMISSION 32094, 1, 1
EXEC METADATA_ROLE_PERMISSION 32096, 1, 1
EXEC METADATA_ROLE_PERMISSION 32098, 1, 1
EXEC METADATA_ROLE_PERMISSION 32100, 1, 1
EXEC METADATA_ROLE_PERMISSION 32102, 1, 1
EXEC METADATA_ROLE_PERMISSION 32104, 1, 1
EXEC METADATA_ROLE_PERMISSION 32106, 1, 1
EXEC METADATA_ROLE_PERMISSION 32110, 1, 1
EXEC METADATA_ROLE_PERMISSION 32108, 1, 1
EXEC METADATA_ROLE_PERMISSION 32111, 1, 1
EXEC METADATA_ROLE_PERMISSION 32112, 1, 1
EXEC METADATA_ROLE_PERMISSION 32113, 1, 1
EXEC METADATA_ROLE_PERMISSION 32114, 1, 1
EXEC METADATA_ROLE_PERMISSION 32115, 1, 1
EXEC METADATA_ROLE_PERMISSION 32116, 1, 1
EXEC METADATA_ROLE_PERMISSION 32117, 1, 1
EXEC METADATA_ROLE_PERMISSION 32118, 1, 1
EXEC METADATA_ROLE_PERMISSION 32119, 1, 1
EXEC METADATA_ROLE_PERMISSION 32121, 1, 1
EXEC METADATA_ROLE_PERMISSION 32122, 1, 1
EXEC METADATA_ROLE_PERMISSION 32123, 1, 1
EXEC METADATA_ROLE_PERMISSION 32124, 1, 1
EXEC METADATA_ROLE_PERMISSION 32125, 1, 1
EXEC METADATA_ROLE_PERMISSION 32126, 1, 1
EXEC METADATA_ROLE_PERMISSION 32127, 1, 1
EXEC METADATA_ROLE_PERMISSION 32128, 1, 1
EXEC METADATA_ROLE_PERMISSION 32129, 1, 1
EXEC METADATA_ROLE_PERMISSION 32130, 1, 1
EXEC METADATA_ROLE_PERMISSION 32131, 1, 1
EXEC METADATA_ROLE_PERMISSION 32132, 1, 1
EXEC METADATA_ROLE_PERMISSION 28011, 1, 1
EXEC METADATA_ROLE_PERMISSION 32133, 1, 1
EXEC METADATA_ROLE_PERMISSION 32134, 1, 1
EXEC METADATA_ROLE_PERMISSION 32135, 1, 1
EXEC METADATA_ROLE_PERMISSION 32136, 1, 1
EXEC METADATA_ROLE_PERMISSION 32137, 1, 1
EXEC METADATA_ROLE_PERMISSION 32138, 1, 1
EXEC METADATA_ROLE_PERMISSION 32139, 1, 1
EXEC METADATA_ROLE_PERMISSION 32141, 1, 1
EXEC METADATA_ROLE_PERMISSION 32142, 1, 1
EXEC METADATA_ROLE_PERMISSION 32143, 1, 1
EXEC METADATA_ROLE_PERMISSION 32144, 1, 1
EXEC METADATA_ROLE_PERMISSION 32145, 1, 1
EXEC METADATA_ROLE_PERMISSION 32146, 1, 1
EXEC METADATA_ROLE_PERMISSION 32147, 1, 1
EXEC METADATA_ROLE_PERMISSION 32148, 1, 1
EXEC METADATA_ROLE_PERMISSION 32149, 1, 1
EXEC METADATA_ROLE_PERMISSION 32150, 1, 1
EXEC METADATA_ROLE_PERMISSION 32151, 1, 1
EXEC METADATA_ROLE_PERMISSION 32152, 1, 1
EXEC METADATA_ROLE_PERMISSION 32153, 1, 1
EXEC METADATA_ROLE_PERMISSION 32154, 1, 1
EXEC METADATA_ROLE_PERMISSION 32155, 1, 1
EXEC METADATA_ROLE_PERMISSION 32156, 1, 1
EXEC METADATA_ROLE_PERMISSION 32157, 1, 1
EXEC METADATA_ROLE_PERMISSION 32158, 1, 1
EXEC METADATA_ROLE_PERMISSION 32159, 1, 1
EXEC METADATA_ROLE_PERMISSION 32160, 1, 1
EXEC METADATA_ROLE_PERMISSION 32161, 1, 1
EXEC METADATA_ROLE_PERMISSION 32162, 1, 1
EXEC METADATA_ROLE_PERMISSION 32163, 1, 1
EXEC METADATA_ROLE_PERMISSION 32164, 1, 1
EXEC METADATA_ROLE_PERMISSION 32165, 1, 1
EXEC METADATA_ROLE_PERMISSION 32166, 1, 1
EXEC METADATA_ROLE_PERMISSION 32167, 1, 1
EXEC METADATA_ROLE_PERMISSION 32168, 1, 1
EXEC METADATA_ROLE_PERMISSION 32169, 1, 1
EXEC METADATA_ROLE_PERMISSION 32170, 1, 1
EXEC METADATA_ROLE_PERMISSION 32171, 1, 1

--Permisos del concepto Grupos de dispositivos
DECLARE @v_concept_id INT
SELECT @v_concept_id = id 
FROM AFW_CONCEPT 
WHERE name = 'DEVICES_GROUP'

DECLARE @v_device_get_role_id INT
EXEC METADATA_ROLES N'DG_DevicesGet', 'Get a list of devices by device group permissions in Hw/sw, reports and dashboard', 1, 1, 32, @v_concept_id, @v_device_get_role_id OUTPUT
EXEC METADATA_ROLE_PERMISSION 32172, @v_device_get_role_id, 0

DECLARE @v_remote_control_role_id INT
EXEC METADATA_ROLES N'DG_RemoteControl', 'Remote control access by device group permissions', 1, 1, 32, @v_concept_id, @v_remote_control_role_id OUTPUT
EXEC METADATA_ROLE_PERMISSION 32173, @v_remote_control_role_id, 0

DECLARE @v_device_admin_actions_role_id INT
EXEC METADATA_ROLES N'DG_DeviceAdminActions', 'Administrative actions by device group permissions', 1, 1, 32, @v_concept_id, @v_device_admin_actions_role_id OUTPUT
EXEC METADATA_ROLE_PERMISSION 32174, @v_device_admin_actions_role_id, 0

DECLARE @v_remote_admin_actions_role_id INT
EXEC METADATA_ROLES N'DG_RemoteAdminActions', 'Remote operations by device group permissions', 1, 1, 32, @v_concept_id, @v_remote_admin_actions_role_id OUTPUT
EXEC METADATA_ROLE_PERMISSION 32175, @v_remote_admin_actions_role_id, 0

EXEC METADATA_ROLE_PERMISSION 32176, 1, 1
EXEC METADATA_ROLE_PERMISSION 32177, 1, 1
EXEC METADATA_ROLE_PERMISSION 32178, 1, 1
EXEC METADATA_ROLE_PERMISSION 32179, 1, 1

EXEC METADATA_ROLE_PERMISSION 32180, 1, 1
EXEC METADATA_ROLE_PERMISSION 32181, 1, 1
GO

EXEC METADATA_POPULATE_ROLE_PERMISSION
GO

PRINT 'AFW_ROLES'
EXEC METADATA_TASK  1000	,  N'AAM_NOTIFY_TASKS'				        , N'Aranda.AAM.Tasks.RemoteAdministration'								 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1001	,  N'AAM_DELETE_ALERTS'				        , N'Aranda.AAM.Tasks.DeleteAlertTask'									 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1002	,  N'AAM_INVENTORY_UPDATE'			        , N'Aranda.AAM.Events.OnInventoryUpdateEvent'							 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1003	,  N'AAM_SEND_CMDB_EVENT_TASK'		        , N'Aranda.AAM.Tasks.SendCmdbEventTask'									 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1004	,  N'AAM_DISCOVERY'					        , N'Aranda.AND.Discovery.Events.OnInventoryDiscoveryEvent'				 ,	N'Aranda.AND.dll',  1
EXEC METADATA_TASK  1005	,  N'AAM_DELETE_CMDB_DEV_TASK'		        , N'Aranda.AAM.Tasks.DeleteCmdbDeviceTask'								 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1006	,  N'AAM_DELETE_DEVICES_TASK'		        , N'Aranda.AAM.Tasks.DeleteDevicesTask'									 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1007	,  N'AAM_DELETE_DEVICE_DISCOVERY'	        , N'Aranda.AAM.Tasks.DeleteDeviceDiscoveredTask'						 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1008	,  N'AAM_UPDATE_CONFLICT'			        , N'Aranda.AAM.Tasks.UpdateConflicts'									 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1009	,  N'AAM_DELETE_CONFLICT'			        , N'Aranda.AAM.Tasks.DeleteConflict'									 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1010	,  N'AAM_INSERT_RELATION'			        , N'Aranda.AAM.Tasks.RelationInsertTask'								 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1011	,  N'AAM_INVENTORY_UPDATE_JSON'			    , N'Aranda.AAM.Events.OnInventoryUpdateJsonEvent'						 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1012	,  N'AAM_INVETORY_LIST_DEVICE'			    , N'Aranda.AAM.Events.OnInventoryListDeviceEvent'						 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1013	,  N'AAM_EMA_DEVICE_SYNC'			        , N'Aranda.AAM.Tasks.SyncDeviceEmaTask'									 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1014	,  N'AAM_SYNC_SOFTWARE_CMDB'		        , N'Aranda.AAM.Cmdb.Events.SyncCmdbSoftwareEvent'						 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1015	,  N'AAM_DELETE_RELATION_SOFTWARE_CMDB'	    , N'Aranda.AAM.Cmdb.Events.DeleteRelationSoftwareCmdbEvent'				 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1016	,  N'AAM_SYNC_CMDB'	                        , N'Aranda.AAM.Cmdb.Events.SyncCmdbEvent'								 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1017	,  N'AAM_SYNC_CMDB_DEVICE_DISCOVERED'       , N'Aranda.AAM.Tasks.SyncCmdbDeviceDiscoveredTask'						 ,	N'Aranda.AAM.dll',  1
EXEC METADATA_TASK	1018	,  N'ADM_SYNCHRONIZED_LICENSED_MODIFICATION', N'Aranda.AAM.License.Task.SynchronizedLicenseModificationTask'		 ,  N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1019	,  N'ADM_DOWNLOAD_WINDOWS_AGENT'			, N'Aranda.AAM.AgentUpdate.Tasks.DownloadWindowsAgentTask'				 ,	N'Aranda.AAM.dll',  1 
EXEC METADATA_TASK  1020    ,  N'ADM_DOWNLOAD_DISCOVERY_METADATA'       , N'Aranda.AND.MetadataUpdate.Tasks.DownloadDiscoveryMetadataTask'		 ,	N'Aranda.AND.dll',  1
EXEC METADATA_TASK  1021    ,  N'ADM_UPDATE_DISCOVERY_METADATA'         , N'Aranda.AND.MetadataUpdate.Tasks.UpdateDiscoveryMetadataTask'		 ,	N'Aranda.AND.dll',  1
EXEC METADATA_TASK  1022    ,  N'AAM_LENOVO_WARRANTY'                   , N'Aranda.AAM.Tasks.LenovoWarrantyTask'								 ,  N'Aranda.AAM.dll',  1
EXEC METADATA_TASK  1023	,  N'ADM_DOWNLOAD_LINUX_AGENT'				, N'Aranda.AAM.AgentUpdate.Tasks.DownloadLinuxAgentTask'				 ,  N'Aranda.AAM.dll',  1 
EXEC METADATA_TASK  1024	,  N'ADM_DOWNLOAD_MAC_AGENT'				, N'Aranda.AAM.AgentUpdate.Tasks.DownloadMacAgentTask'					 ,	N'Aranda.AAM.dll',  1 
EXEC METADATA_TASK  1025	,  N'AAM_CLOUD_SYNCHRONIZATION_MATCH'		, N'Aranda.AAM.Cloud.Synchronization.Tasks.MatchSynchronizationCloudTask',	N'Aranda.AAM.dll',  1 
EXEC METADATA_TASK  1026	,  N'AAM_CLOUD_SYNC_SUBSCRIPTION'			, N'Aranda.AAM.Cloud.Synchronization.Tasks.SynchronizationCloudTask'	 ,	N'Aranda.AAM.dll',  1 
EXEC METADATA_TASK  1027	,  N'ADM_DOWNLOAD_WINDOWS_CONSERVER'		, N'Aranda.AAM.AgentUpdate.Tasks.DownloadWindowsConserverTask'	         ,	N'Aranda.AAM.dll',  1 
EXEC METADATA_TASK  1028	,  N'ADM_DELETE_EXPIRED_REQUEST_DOCUMENT'	, N'Aranda.AAM.ComponentRequest.Tasks.DeleteDocumentTask'				 ,	N'Aranda.AAM.dll',  1 


EXEC METADATA_TASK  6001	,  N'ASM_DELETE_USAGE_HISTORY'		        , N'Aranda.ASM.Tasks.CleanHistoryTask'									 ,	N'Aranda.ASM.dll',  1
EXEC METADATA_TASK  6002	,  N'ASM_GENERATE_ALERT_LICENSING'	        , N'Aranda.ASM.Tasks.GenerateAlertLicensingTask'						 ,	N'Aranda.ASM.dll',  1
EXEC METADATA_TASK  6003	,  N'ASM_GENERATE_NOTIFICATION_LICENSING'   , N'Aranda.ASM.Tasks.GenerateNotificationLicensingTask'					 ,	N'Aranda.ASM.dll',  1
EXEC METADATA_TASK  6004	,  N'ASM_CONSOLIDATE'					    , N'Aranda.ASM.Tasks.ConsolidateTask'									 ,  N'Aranda.ASM.dll',  1
EXEC METADATA_TASK  6005	,  N'ASM_UPDATE_SOFTWARE_GROUPS'		    , N'Aranda.ASM.Tasks.UpdateSoftwareGroupsTask'							 ,  N'Aranda.ASM.dll',  1

EXEC METADATA_TASK  8000	,  N'ASD_NOTIFY_EXECUTIONS'			        , N'Aranda.ASD.Tasks.NotifyExecution'									 ,	N'Aranda.ASD.dll',  1
EXEC METADATA_TASK  8001	,  N'ASD_PROJECT_SCHEDULE'		 	        , N'Aranda.ASD.Tasks.ProjectSchedule'									 ,	N'Aranda.ASD.dll',  1
EXEC METADATA_TASK  8002	,  N'ASD_EXECUTION_NOTIFICATIONS'	        , N'Aranda.ASD.Tasks.ProjectExecutionNotifications'						 ,	N'Aranda.ASD.dll',  1
EXEC METADATA_TASK  8003	,  N'ASD_CANCEL_DEVICE_EXECUTION'           , N'Aranda.ASD.Tasks.CancelDeviceExecutionTask'							 ,  N'Aranda.ASD.dll',  1
EXEC METADATA_TASK  8004    ,  N'ASD_CHECK_EXECUTION_STATUS'            , N'Aranda.ASD.Tasks.CheckExecutionStatusEvent'							 ,  N'Aranda.ASD.dll',  1
EXEC METADATA_TASK  8005	,  N'ASD_PUBLISH_WINDOWS_AGENT_PACKAGE'	    , N'Aranda.ASD.DistributionPackages.Tasks.PublishWindowsAgentTask'		 ,	N'Aranda.ASD.dll',  1 

EXEC METADATA_TASK  27001	,  N'ANM_DELETE_DEVICE_METRICS'		        , N'Aranda.ANM.Task.CleanMonitorTask'									 ,	N'Aranda.ANM.dll',  1
EXEC METADATA_TASK  27002	,  N'ADM_DOWNLOAD_AGENT_DISCOVERY'		    , N'Aranda.AND.AgentUpdate.Tasks.DownloadDiscoveryAgentTask'			 ,	N'Aranda.AND.dll',  1 

EXEC METADATA_TASK  28000	,  N'APM_UPDATE_CATALOG'			        , N'Aranda.APM.Tasks.UpdateCatalogTask'									 ,	N'Aranda.APM.dll',  1
EXEC METADATA_TASK  28001	,  N'APM_DOWNLOAD PATCHES'			        , N'Aranda.APM.Tasks.DownloadUpdateTask'								 ,	N'Aranda.APM.dll',  1
EXEC METADATA_TASK  28002	,  N'APM_UPDATE_MISSING'			        , N'Aranda.APM.Events.OnUpdateMissingEvent'								 ,	N'Aranda.APM.dll',  1
EXEC METADATA_TASK  28003	,  N'APM_DELETE_CATALOG'			        , N'Aranda.APM.Tasks.DeleteCatalogTask'									 ,	N'Aranda.APM.dll',  1
EXEC METADATA_TASK  28004	,  N'APM_UPDATE_MISSING_EVENT'              , N'Aranda.APM.Events.OnUpdateMissingJsonEvent'							 ,  N'Aranda.APM.dll',  1
EXEC METADATA_TASK  28005	,  N'APM_PATCHES_DOWNLOAD'			        , N'Aranda.APM.Delivery.Tasks.PatchesDownloadTask'						 ,	N'Aranda.APM.dll',  1

EXEC METADATA_TASK  30000	,  N'ADM_ARC_DOWNLOAD_WORKSTATION_WINDOWS'  , N'Aranda.AVS.AgentUpdate.Tasks.DownloadWorkstationWindowsTask'		 ,	N'Aranda.AVS.dll',  1
EXEC METADATA_TASK  30001	,  N'ADM_ARC_DOWNLOAD_WORKSTATION_OSX'	    , N'Aranda.AVS.AgentUpdate.Tasks.DownloadWorkstationOsxTask'			 ,	N'Aranda.AVS.dll',  1
EXEC METADATA_TASK  30002	,  N'ADM_ARC_DOWNLOAD_WORKSTATION_OSX_ARM64', N'Aranda.AVS.AgentUpdate.Tasks.DownloadWorkstationOsxArmTask'			 ,	N'Aranda.AVS.dll',  1

EXEC METADATA_TASK  31000	,  N'APWM_UPDATE_DAILY_CUBE'		        , N'Aranda.APWM.Tasks.BuildDailyCube'									 ,	N'Aranda.APWM.dll', 1
EXEC METADATA_TASK  31001	,  N'APWM_UPDATE_HOUR_CUBE'			        , N'Aranda.APWM.Tasks.BuildHourCube'									 ,	N'Aranda.APWM.dll', 1
EXEC METADATA_TASK  31002	,  N'APWM_WAKE_ON_LAN'				        , N'Aranda.APWM.Tasks.WakeOnLan'										 ,	N'Aranda.APWM.dll', 1


--PROGRAMACIONES
DECLARE @start	AS DATETIME

-- Establece las fechas de inicio y ejecucion proxima
SET	@start	= DATEADD(DD, 0, DATEDIFF(DD, 0, GETUTCDATE()))

DECLARE @yesterday DATE = GETUTCDATE()-1
DECLARE @time TIME = '23:30:00'
DECLARE @start_delete_disco DATETIME = CAST(@yesterday AS DATETIME) + CAST(@time AS DATETIME)
DECLARE @start_delete_UTC DATETIME = DATEADD(SECOND, DATEDIFF(SECOND, GETDATE(), GETUTCDATE()), @start_delete_disco);
DECLARE @start_UTC DATETIME = DATEADD(SECOND, DATEDIFF(SECOND, GETDATE(), GETUTCDATE()), @start);
DECLARE @start_metadata_UTC DATETIME = DATEADD(HOUR, 1, @start_UTC);

--						@name								      @description														 @frecuency_type	@recurs_every	@weekdays	@months		@cardinal_days  @ordinal_days	@start_date		@task_id	@application_id		@next_execution		@sche_max_delay
EXEC METADATA_SCHEDULER  N'AAM_DELETE_ALERT'			            ,	N'Eliminación programada de alertas'                                                                  , 'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			1001,		1,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'AAM_DELETE_DEVICE'                       ,   N'Eliminacion programada de dispositivos'                                                             , 'Interval',			1440,				0,		    0,			0,				0,				@start_UTC,	        1006,	    1,					@start_UTC,             0
EXEC METADATA_SCHEDULER  N'AAM_DELETE_DEVICE_DISCOVERY'             ,   N'Eliminacion programada de dispositivos descubiertos'                                                , 'Interval',			1440,				0,		    0,			0,				0,				@start_delete_UTC,	1007,	    1,					@start_delete_UTC,      0
EXEC METADATA_SCHEDULER  N'ASM_DELETE_USAGE_HISTORY'	            ,	N'Eliminación programada del histórico de uso de software'                                            , 'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			6001,		6,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'ANM_DELETE_DEVICE_METRICS'	            ,	N'Eliminación programada de las metricas de los dispositivos'	                                      , 'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			27001,		27,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'APM_DOWNLOAD_PATCH'			            ,	N'Descarga los parches programados del proveedor Ivanti'							            	  ,	'Interval',			1,				0,			0,			0,				0,				@start_UTC,			28001,		31,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'APWM_UPDATE_DAILY_CUBE'		            ,	N'Calcula el cubo de datos para costos de apwm'                         				              , 'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			31000,		31,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'APWM_UPDATE_HOUR_CUBE'		            ,	N'Calcula el cubo de datos para costos de apwm'                         				              , 'Interval',			60,				0,			0,			0,				0,				@start_UTC,			31001,		31,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'APWM_WAKEONLAN'				            ,	N'Enciende las maquinas usando wake on lan'                         				                  ,	'Interval',			60,				0,			0,			0,		    	0,				@start_UTC,			31002,		31,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'APM_DELETE_CATALOG'			            ,	N'Eliminación catalogo de patch'	                           				    		              , 'Interval',			4320,				0,			0,			0,			    0,				@start_UTC,			28003,		28,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'ASM_GENERATE_LICENSING_ALERT'            ,   N'Generación de alertas de vencimiento de paquetes de licencia' 	                                  , 'Interval',			1440,				0,			0,			0,			    0,				@start_UTC,			6002,		6,					@start_UTC,				0  
EXEC METADATA_SCHEDULER  N'ASM_GENERATE_NOTIFICATION_LICENSING'     ,   N'Generación de notificación de vencimiento de paquetes'                                              , 'Interval',			1440,				0,			0,			0,			    0,				@start_UTC,			6003,		6,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'ASM_CONSOLIDATE'                         ,   N'Consolidado de informacion de uso'					    		                                  , 'Interval',			360,			0,			0,			0,				0,				@start_UTC,			6004,		6,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ASM_UPDATE_SOFTWARE_GROUPS'		        ,   N'Actualizar agrupaciones de software'                                                                ,	'Interval',			1440,			    0,			0,			0,			    0,				@start_UTC,			6005,		6,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'AAM_DELETE_DEVICE_CMDB'                  ,   N'Borrar los dispositivos que se eliminaron en la consola de ADM pero que siguen registrados en CMDB.', 'Interval',			720,			0,			0,			0,			    0,				@start_UTC,			1005,		1,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'AAM_SYNC_CMDB'                           ,   N'Sincronización programada de dispositivos CMDB.'                                                    , 'Interval',			5,			    0,			0,			0,			    0,				@start_UTC,			1016,		1,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'AAM_SYNC_DISCOVERED_DEVICES_CMDB'        ,   N'Sincroniza con CMDB los dispositivos descubiertos.'                                                 , 'Interval',			10, 			0,			0,			0,			    0,				@start_UTC,			1017,		1,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ADM_DOWNLOAD_DISCOVERY_AGENT'            ,   N'Descargar instalador de agente de descubrimiento'                                                   , 'Interval',			1440, 				0,			0,			0,			    0,				@start_UTC,			27002,		1,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'ASD_CANCEL_DEVICE_EXECUTION'             ,   N'Cancela dispositivos de ejecuciones con estado Sin notificar por mas de 24 horas'                   , 'Interval',         60,             0,          0,          0,              0,              @start_UTC,         8003,       8,                  @start_UTC,             120
EXEC METADATA_SCHEDULER  N'ADM_ARC_DOWNLOAD_WORKSTATION_WINDOWS'    ,   N'Descargar instaladores de estación de trabajo windows ARC'                                          , 'Interval',			1440,		    0,			0,			0,				0,				@start_UTC,			30000,		30,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'ADM_ARC_DOWNLOAD_WORKSTATION_OSX'        ,   N'Descargar instaladores de estación de trabajo Mac intel ARC'                                        , 'Interval',			1440,		    0,			0,			0,				0,				@start_UTC,			30001,		30,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'ADM_ARC_DOWNLOAD_WORKSTATION_OSX_ARM64'  ,   N'Descargar instaladores de estación de trabajo Mac Silicon ARC'                                      , 'Interval',			1440,		    0,			0,			0,				0,				@start_UTC,			30002,		30,					@start_UTC,				0
EXEC METADATA_SCHEDULER	 N'ADM_SYNCHRONIZED_LICENSED_MODIFICATION'	,   N'Revisa si se detecto cambio en las licencias para la descarga del perfil del agente'				  , 'Interval',			240,		    0,			0,			0,			    0,				@start_UTC,			1018,		1,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ADM_DOWNLOAD_WINDOWS_AGENT'              ,   N'Descargar instalador de agente de ADM de Windows'                                                   , 'Interval',			1440, 				0,			0,			0,			    0,				@start_UTC,			1019,		1,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'ASD_PUBLISH_WINDOWS_AGENT_PACKAGE'       ,   N'Carga el instalador de agente de ADM de Windows como paquete tipo agente'                           , 'Interval',			1440, 				0,			0,			0,			    0,				@start_UTC,			8005,		1,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'ADM_DOWNLOAD_DISCOVERY_METADATA'         ,   N'Descargar archivo de metadata con modelos de dispositivos para descubrimiento'                      ,	'Interval',			1440,			0,			0,			0,				0,				@start_UTC,		    1020,		1,					@start_UTC,			    120
EXEC METADATA_SCHEDULER  N'ADM_UPDATE_DISCOVERY_METADATA'           ,   N'Actualizar modelos de dispositivos  para descubrimiento'                                            ,	'Interval',			1440,			0,			0,			0,				0,				@start_metadata_UTC,1021,		1,					@start_metadata_UTC,    120
EXEC METADATA_SCHEDULER  N'APM_PATCHES_DOWNLOAD'			        ,	N'Descarga los parches programados'							            	                          ,	'Interval',			1,				0,			0,			0,				0,				@start_UTC,			28005,		31,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ADM_DOWNLOAD_LINUX_AGENT'				,   N'Descargar instalador de agente de ADM de Linux'													  , 'Interval',			1440, 				0,			0,			0,			    0,				@start_UTC,			1023,		1,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'ADM_DOWNLOAD_MAC_AGENT'					,   N'Descargar instalador de agente de ADM de Mac'														  , 'Interval',			1440, 				0,			0,			0,			    0,				@start_UTC,			1024,		1,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'AAM_LENOVO_WARRANTY'                     ,   N'Registrar garantía de dispositivos Lenovo'                                                          ,	'Interval',			60,  			0,			0,			0,				0,				@start_UTC,         1022,		1,					@start_UTC,             120
EXEC METADATA_SCHEDULER  N'ADM_DOWNLOAD_WINDOWS_CONSERVER'          ,   N'Descargar instalador del conserver de ADM de Windows'                                               , 'Interval',			1440,			0,			0,			0,			    0,				@start_UTC,			1027,		1,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'ADM_DELETE_EXPIRED_REQUEST_DOCUMENT'		,   N'Eliminar documentos del content manager de solicitudes vencidas'									  , 'Interval',			1440,			0,			0,			0,			    0,				@start_UTC,			1028,		1,					@start_UTC,				0

GO


--HARDWARE - 32100
EXEC METADATA_ALERT_CATEGORY 32100,32100,NULL,1,'Hardware',NULL,0
EXEC METADATA_ALERT_CATEGORY 32101,32100,32100,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32102,32100,32100,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32103,32100,32100,1,'DeleteInventoryItem',NULL,0


--NETWORK_ADAPTER - 32102
EXEC METADATA_ALERT_CATEGORY 32108,32102,NULL,1,'NetworkAdapter',NULL,0
EXEC METADATA_ALERT_CATEGORY 32109,32102,32108,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32110,32102,32108,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32111,32102,32108,1,'DeleteInventoryItem',NULL,0

EXEC METADATA_ALERT_CATEGORY 32112,32102,NULL,1,'NetworkAdapterConfiguration',NULL,0
EXEC METADATA_ALERT_CATEGORY 32113,32102,32112,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32114,32102,32112,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32115,32102,32112,1,'DeleteInventoryItem',NULL,0

--DISK - 32103

EXEC METADATA_ALERT_CATEGORY 32120,32103,NULL,1,'LogicalDisk',NULL,0
EXEC METADATA_ALERT_CATEGORY 32121,32103,32120,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32122,32103,32120,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32123,32103,32120,1,'DeleteInventoryItem',NULL,0

--SHARED_RESOURCE - 32104
EXEC METADATA_ALERT_CATEGORY 32124,32104,NULL,1,'SharedResource',NULL,0
EXEC METADATA_ALERT_CATEGORY 32125,32104,32124,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32126,32104,32124,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32127,32104,32124,1,'DeleteInventoryItem',NULL,0

--BOARD_SLOT - 32106
EXEC METADATA_ALERT_CATEGORY 32136,32106,NULL,1,'BoardSlot',NULL,0
EXEC METADATA_ALERT_CATEGORY 32137,32106,32136,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32139,32106,32136,1,'DeleteInventoryItem',NULL,0

--DRIVER - 32107
EXEC METADATA_ALERT_CATEGORY 32140,32107,NULL,1,'Driver',NULL,0
EXEC METADATA_ALERT_CATEGORY 32141,32107,32140,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32142,32107,32140,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32143,32107,32140,1,'DeleteInventoryItem',NULL,0

--PRINTER - 32108
EXEC METADATA_ALERT_CATEGORY 32144,32108,NULL,1,'Printer',NULL,0
EXEC METADATA_ALERT_CATEGORY 32145,32108,32144,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32146,32108,32144,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32147,32108,32144,1,'DeleteInventoryItem',NULL,0

--SERVICE - 32109
EXEC METADATA_ALERT_CATEGORY 32148,32109,NULL,1,'Service',NULL,0
EXEC METADATA_ALERT_CATEGORY 32149,32109,32148,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32150,32109,32148,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32151,32109,32148,1,'DeleteInventoryItem',NULL,0

--VIDEO - 32110
EXEC METADATA_ALERT_CATEGORY 32152,32110,NULL,1,'Video',NULL,0
EXEC METADATA_ALERT_CATEGORY 32153,32110,32152,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32154,32110,32152,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32155,32110,32152,1,'DeleteInventoryItem',NULL,0


--UNIT_MAPPING - 32112
EXEC METADATA_ALERT_CATEGORY 32160,32112,NULL,1,'UnitMapping',NULL,0


--STARTUP_COMMAND - 32114
EXEC METADATA_ALERT_CATEGORY 32168,32114,NULL,1,'StartupCommand',NULL,0
EXEC METADATA_ALERT_CATEGORY 32169,32114,32168,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32170,32114,32168,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32171,32114,32168,1,'DeleteInventoryItem',NULL,0

--SYSTEM_SETUP - 32115
EXEC METADATA_ALERT_CATEGORY 32172,32115,NULL,1,'SystemSetup',NULL,0

EXEC METADATA_ALERT_CATEGORY 32176,32115,NULL,1,'PortConnector',NULL,0

--BIOS - 32116
EXEC METADATA_ALERT_CATEGORY 32180,32116,NULL,1,'Bios',NULL,0
EXEC METADATA_ALERT_CATEGORY 32182,32116,32180,1,'UpdateInventoryItem',NULL,0

--MEMBERSHIP - 32117
EXEC METADATA_ALERT_CATEGORY 32184,32117,NULL,1,'Membership',NULL,0
EXEC METADATA_ALERT_CATEGORY 32185,32117,32184,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32187,32117,32184,1,'DeleteInventoryItem',NULL,0

--SOFTWARE - 32118
EXEC METADATA_ALERT_CATEGORY 32188,32118,NULL,1,'Software',NULL,0
EXEC METADATA_ALERT_CATEGORY 32204,32118,32188,1,'ExpireLicensePackage',NULL,0

--OPERATING_SYSTEM - 32119
EXEC METADATA_ALERT_CATEGORY 32192,32119,NULL,1,'OperatingSystem',NULL,0

--FILES - 32120
EXEC METADATA_ALERT_CATEGORY 32196,32120,NULL,1,'Files',NULL,0
EXEC METADATA_ALERT_CATEGORY 32197,32120,32196,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32198,32120,32196,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32199,32120,32196,1,'DeleteInventoryItem',NULL,0

--SOFTWARE UPDATE - 32121
EXEC METADATA_ALERT_CATEGORY 32200,32121,NULL,1,'SoftwareUpdate',NULL,0
EXEC METADATA_ALERT_CATEGORY 32201,32121,32200,1,'CreateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32202,32121,32200,1,'UpdateInventoryItem',NULL,0
EXEC METADATA_ALERT_CATEGORY 32203,32121,32200,1,'DeleteInventoryItem',NULL,0

--IP ADDRESS - 32102
EXEC METADATA_ALERT_CATEGORY 32205,32102,NULL,1,'IPAddress',NULL,0
EXEC METADATA_ALERT_CATEGORY 32206,32102,32205,1,'UpdateInventoryItem',NULL,0


--DISK SPACE - 32103
EXEC METADATA_ALERT_CATEGORY 32207,32103,NULL,1,'LowDiskSpace',NULL,0
EXEC METADATA_ALERT_CATEGORY 32208,32103,32207,1,'UpdateInventoryItem',NULL,0


GO
Print 'AFW_ALERT_CATEGORY DONE!!'
EXEC METADATA_APPLICATION_CATEGORY 10, N'ResetPassword'
EXEC METADATA_APPLICATION_CATEGORY 32000, N'DESKTOP'
EXEC METADATA_APPLICATION_CATEGORY 32000, N'LAPTOP'
EXEC METADATA_APPLICATION_CATEGORY 32000, N'PRINTER'
EXEC METADATA_APPLICATION_CATEGORY 32000, N'ROUTER'
EXEC METADATA_APPLICATION_CATEGORY 32000, N'SERVER'
EXEC METADATA_APPLICATION_CATEGORY 32000, N'SWITCH'
EXEC METADATA_APPLICATION_CATEGORY 32000, N'LICENSE'
GO

PRINT 'AFW_APPLICATION_CATEGORY'

DECLARE @catId	 INT,		
		@date    DATETIME = GETDATE()

SELECT @catId = [apca_id] FROM [AFW_APPLICATION_CATEGORY] WHERE [apca_name] = 'ResetPassword'


EXEC METADATA_TEMPLATES @catId, 1, N'ResetPassword', @date, N'<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>ADM Recuperación de constraseña</title>
</head>

<body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;">
    <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1"
        style="vertical-align:middle;">
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width:auto">&nbsp;</td>
        </tr>
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>
                <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                    <tr>
                        <td height="62" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;">
                            <table width="700" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td><img src="https://arandasoft.com/wp-content/uploads/2022/10/logo-adm.png  "
                                            width="200" height="40" alt="ADM Aranda DEVICE MANAGEMENT" /></td>
                                    <td
                                        style="font-family: Tahoma; font-size: 13px; color: #03a1c5; text-align: right;">
                                        Sus dispositivos controlados</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3"
                            style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;">
                            <span style="font-family:Tahoma; font-size:24px; color: #495864;">Cambio de contraseña</span></td>
                    </tr>
                    <tr>
                        <td width="230" colspan="3" valign="top"
                            style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;">
                            <strong></strong>
                            <div>
                                <div class="container">Estimado/a {{USER_FULLNAME}}:<br /> <br />Gracias por comunicarte
                                    con nosotros.&nbsp;<br /> <br />A continuaci&oacute;n encontrar&aacute;s un enlace
                                    de cambio de clave . Este enlace es v&aacute;lido POR UNA SOLA VEZ y CADUCAR&Aacute;
                                    AL CABO DE 24 HORAS de haberse generado.<br /> <br />Si el enlace vence o queda
                                    invalidado y necesitas otro, regresa a la p&aacute;gina de inicio de sesi&oacute;n y
                                    haz clic en el v&iacute;nculo "recuperar mi contrase&ntilde;a"para solicitar uno
                                    nuevo.<br /> <strong> <br />Para establecer tu contrase&ntilde;a:<br />1.<span
                                            class="Apple-tab-span" style="white-space:pre;"> </span><a
                                            href="{{RECOVERY_URL}}" title="{{RECOVERY_URL}}">Haz clic aqu&iacute;</a>
                                        <br />2.<span class="Apple-tab-span" style="white-space:pre;"> </span>Escribe y
                                        confirma una contrase&ntilde;a nueva.<br />3.<span class="Apple-tab-span"
                                            style="white-space:pre;"> </span>Haz clic en "Cambiar" para establecer la
                                        contrase&ntilde;a.<br /> <br />&iquest;A&uacute;n tienes problemas? Contacta al
                                        administrador del sistema.&nbsp;<br />
                                        <p> <br /> </p>
                                    </strong> </div>
                            </div>
                            <span style="font-size:12px; color: #5c9e94;"><br /> <br /> </span>
                            <p>&nbsp;</p>
                            <p>&nbsp;</p>
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width:auto">&nbsp;</td>
        </tr>
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width:auto">&nbsp;</td>
        </tr>
    </table>
</body>

</html>'

EXEC METADATA_TEMPLATES @catId,  1, 'TestMailServerADM', @date,
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ADM Recuperación de contraseña</title>
</head>
<body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;" >
<table width="100%" height="100%"border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1" style="vertical-align:middle;">
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td>&nbsp;</td>
    <td style="width:auto">&nbsp;</td>
  </tr>
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td><table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td height="62" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;"><table width="700" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="https://arandasoft.com/wp-content/uploads/2022/10/logo-adm.png
" width="200" height="40" alt="ADM Aranda DEVICE MANAGEMENT" /></td>
            <td style="font-family: Tahoma; font-size: 13px; color: #03a1c5; text-align: right;">Sus dispositivos controlados</td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td colspan="3" style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;"><span style="font-family:Tahoma; font-size:24px; color: #495864;">Configuración de correo !</span></td>
        </tr>
      <tr>
        <td width="230" colspan="3" valign="top" style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;"><strong></strong>[[ContentBody]]<span style="font-size:12px; color: #5c9e94;"><br />
          <br />
          </span>
          <p>&nbsp;</p>          <p>&nbsp;</p></td>
      </tr>
    </table></td>
    <td style="width:auto">&nbsp;</td>
  </tr>
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td>&nbsp;</td>
    <td style="width:auto">&nbsp;</td>
  </tr>
</table>
</body>
</html>'

EXEC METADATA_TEMPLATES @catId,  1, 'AlertADM', @date,
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ADM Correo Alerta</title>
</head>
<body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;" >
<table width="100%" height="100%"border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1" style="vertical-align:middle;">
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td>&nbsp;</td>
    <td style="width:auto">&nbsp;</td>
  </tr>
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td><table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td height="62" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;"><table width="700" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="https://arandasoft.com/wp-content/uploads/2022/10/logo-adm.png
" width="200" height="40" alt="ADM Aranda DEVICE MANAGEMENT" /></td>
            <td style="font-family: Tahoma; font-size: 13px; color: #03a1c5; text-align: right;">Sus dispositivos controlados</td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td colspan="3" style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;"><span style="font-family:Tahoma; font-size:24px; color: #495864;">Correo de Alerta !</span></td>
        </tr>
      <tr>
        <td width="230" colspan="3" valign="top" style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;"><strong></strong>[[ContentBody]]<span style="font-size:12px; color: #5c9e94;"><br />
          <br />
          </span>
          <p>&nbsp;</p>          <p>&nbsp;</p></td>
      </tr>
    </table></td>
    <td style="width:auto">&nbsp;</td>
  </tr>
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td>&nbsp;</td>
    <td style="width:auto">&nbsp;</td>
  </tr>
</table>
</body>
</html>
'

EXEC METADATA_TEMPLATES @catId,  1, 'LicensingADM', @date,
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ADM Licenciamiento</title>
</head>
<body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;" >
<table width="100%" height="100%"border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1" style="vertical-align:middle;">
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td>&nbsp;</td>
    <td style="width:auto">&nbsp;</td>
  </tr>
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td><table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td height="62" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;"><table width="700" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="https://arandasoft.com/wp-content/uploads/2022/10/logo-adm.png
" width="200" height="40" alt="ADM Aranda DEVICE MANAGEMENT" /></td>
            <td style="font-family: Tahoma; font-size: 13px; color: #03a1c5; text-align: right;">Sus dispositivos controlados</td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td colspan="3" style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;"><span style="font-family:Tahoma; font-size:24px; color: #495864;">Vencimiento de Licencia !</span></td>
        </tr>
      <tr>
        <td width="230" colspan="3" valign="top" style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;"><strong></strong>
          [[ContentBody]]
          <br />
          </span>          </p>
          <p>&nbsp;</p>          <p>&nbsp;</p></td>
      </tr>
    </table></td>
    <td style="width:auto">&nbsp;</td>
  </tr>
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td>&nbsp;</td>
    <td style="width:auto">&nbsp;</td>
  </tr>
</table>
</body>
</html>'

EXEC METADATA_TEMPLATES 1,  1, 'LicensingRemoveADM', @date,
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ADM Licenciamiento</title>
</head>
<body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;" >
<table width="100%" height="100%"border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1" style="vertical-align:middle;">
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td>&nbsp;</td>
    <td style="width:auto">&nbsp;</td>
  </tr>
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td><table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td height="62" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;"><table width="700" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="https://arandasoft.com/wp-content/uploads/2022/10/logo-adm.png
" width="200" height="40" alt="ADM Aranda DEVICE MANAGEMENT" /></td>
            <td style="font-family: Tahoma; font-size: 13px; color: #03a1c5; text-align: right;">Sus dispositivos controlados</td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td colspan="3" style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;"><span style="font-family:Tahoma; font-size:24px; color: #495864;">Licencia removida!</span></td>
        </tr>
      <tr>
        <td width="230" colspan="3" valign="top" style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;"><strong></strong>
          [[ContentBody]]
          <br />
          </span>          </p>
          <p>&nbsp;</p>          <p>&nbsp;</p></td>
      </tr>
    </table></td>
    <td style="width:auto">&nbsp;</td>
  </tr>
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td>&nbsp;</td>
    <td style="width:auto">&nbsp;</td>
  </tr>
</table>
</body>
</html>'

EXEC METADATA_TEMPLATES 1,  1, 'LicensingAssingADM', @date,
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ADM Licenciamiento</title>
</head>
<body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;" >
<table width="100%" height="100%"border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1" style="vertical-align:middle;">
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td>&nbsp;</td>
    <td style="width:auto">&nbsp;</td>
  </tr>
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td><table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td height="62" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;"><table width="700" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="https://arandasoft.com/wp-content/uploads/2022/10/logo-adm.png
" width="200" height="40" alt="ADM Aranda DEVICE MANAGEMENT" /></td>
            <td style="font-family: Tahoma; font-size: 13px; color: #03a1c5; text-align: right;">Sus dispositivos controlados</td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td colspan="3" style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;"><span style="font-family:Tahoma; font-size:24px; color: #495864;">Licencia asignada!</span></td>
        </tr>
      <tr>
        <td width="230" colspan="3" valign="top" style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;"><strong></strong>
          [[ContentBody]]
          <br />
          </span>          </p>
          <p>&nbsp;</p>          <p>&nbsp;</p></td>
      </tr>
    </table></td>
    <td style="width:auto">&nbsp;</td>
  </tr>
  <tr>
    <td style="width:auto">&nbsp;</td>
    <td>&nbsp;</td>
    <td style="width:auto">&nbsp;</td>
  </tr>
</table>
</body>
</html>'

GO

PRINT 'ADM TEMPLATES'

EXEC METADATA_RULE_CONTEXT 1000,		'Aranda.AAM.dll',	'Aranda.AAM.Entities.InventoryContext'             ,			'DeviceId'
EXEC METADATA_RULE_CONTEXT 1001,		'Aranda.AND.dll',	'Aranda.AND.Discovery.RuleContext.DiscoveryContext',			'DeviceId'
EXEC METADATA_RULE_CONTEXT 28000,	    'Aranda.APM.dll',	'Aranda.APM.Entities.DeviceScanRuleContext'        ,	        'DeviceScanId'

									 
EXEC METADATA_RULE_ACTION 1000,		1000,		'CreateAlert',					'Aranda.AAM.Actions.CreateAlert',		'Aranda.AAM.dll',		0
EXEC METADATA_RULE_ACTION 1001,		1000,		'SendEmail', 					'Aranda.AAM.Actions.SendEmail',			'Aranda.AAM.dll',		0
EXEC METADATA_RULE_ACTION 1002,		1000,		'SetGroup', 					'Aranda.AAM.Actions.SetGroup',			'Aranda.AAM.dll',		1
EXEC METADATA_RULE_ACTION 1007,		1000,		'InvokeWebHook',				'Aranda.AAM.Actions.InvokeWebHookAction', 'Aranda.AAM.dll',		0


EXEC METADATA_RULE_ACTION 1003,		1001,		'AgentDeploymentDiscovery',		'Aranda.ASD.Actions.AgentDistribution',	'Aranda.ASD.dll',		0
EXEC METADATA_RULE_ACTION 1004,		1001,		'CreateAlertDiscovery',			'Aranda.AAM.Actions.CreateAlert',		'Aranda.AAM.dll',		0
EXEC METADATA_RULE_ACTION 1005,		1001,		'SetGroupDiscovery',			'Aranda.AAM.Actions.SetGroup',			'Aranda.AAM.dll',		0
EXEC METADATA_RULE_ACTION 1006,		1001,		'SendEmailDiscovery',			'Aranda.AAM.Actions.SendEmail',			'Aranda.AAM.dll',		0
EXEC METADATA_RULE_ACTION 1008,		1001,		'InvokeWebHookDiscovery',       'Aranda.AAM.Actions.InvokeWebHookAction', 'Aranda.AAM.dll',		0

EXEC METADATA_RULE_ACTION 28000,		28000,		'CreateAlertUpdate',			'Aranda.AAM.Actions.CreateAlert',		'Aranda.AAM.dll',		0
EXEC METADATA_RULE_ACTION 28001,		28000,		'SendEmailUpdate',				'Aranda.AAM.Actions.SendEmail',			'Aranda.AAM.dll',		0
EXEC METADATA_RULE_ACTION 28002,		28000,		'DownloadPatch',				'Aranda.APM.Actions.DownloadPatch',		'Aranda.APM.dll',		0
EXEC METADATA_RULE_ACTION 28003,		28000,		'InstallPatch',					'Aranda.APM.Actions.InstallPatch',		'Aranda.APM.dll',		0

GO

-- AAM METADATA
DECLARE @category_id INT,
        @name        NVARCHAR(20)

SELECT @category_id = 1

EXEC METADATA_EXTENSION  @category_id,'DOC', 0 
EXEC METADATA_EXTENSION  @category_id,'DOCX',0
EXEC METADATA_EXTENSION  @category_id,'XLS', 0
EXEC METADATA_EXTENSION  @category_id,'XLSX',0
EXEC METADATA_EXTENSION  @category_id,'PPT', 0
EXEC METADATA_EXTENSION  @category_id,'PPTX',0
EXEC METADATA_EXTENSION  @category_id,'TXT', 0
EXEC METADATA_EXTENSION  @category_id,'RTF', 0
EXEC METADATA_EXTENSION  @category_id,'PDF', 0

SELECT @category_id = 2

EXEC METADATA_EXTENSION  @category_id,'GIF', 0
EXEC METADATA_EXTENSION  @category_id,'JPG', 0
EXEC METADATA_EXTENSION  @category_id,'JPEG',0
EXEC METADATA_EXTENSION  @category_id,'PNG', 0
EXEC METADATA_EXTENSION  @category_id,'BMP', 0

SELECT @category_id = 3

EXEC METADATA_EXTENSION  @category_id,'AVI',0
EXEC METADATA_EXTENSION  @category_id,'MPG',0
EXEC METADATA_EXTENSION  @category_id,'WMV',0

SELECT @category_id = 4

EXEC METADATA_EXTENSION  @category_id,'MP3', 0
EXEC METADATA_EXTENSION  @category_id,'WAV', 0
EXEC METADATA_EXTENSION  @category_id,'AIF', 0
EXEC METADATA_EXTENSION  @category_id,'MID', 0
EXEC METADATA_EXTENSION  @category_id,'MIDI',0

SELECT @category_id = 5

EXEC METADATA_EXTENSION  @category_id,'COM',0
EXEC METADATA_EXTENSION  @category_id,'EXE',1
EXEC METADATA_EXTENSION  @category_id,'CPL',1
EXEC METADATA_EXTENSION  @category_id,'RUN',1 
EXEC METADATA_EXTENSION  @category_id,'BIN',1 
EXEC METADATA_EXTENSION  @category_id,'PY',1 
EXEC METADATA_EXTENSION  @category_id,'SH',1 
EXEC METADATA_EXTENSION  @category_id,'BASH',1 
GO

EXEC [dbo].[METADATA_SOFTWARE]  -1,	N'None'
EXEC [dbo].[METADATA_SOFTWARE]	0,	N'OperatingSystem'
EXEC [dbo].[METADATA_SOFTWARE]	1,	N'Application'
EXEC [dbo].[METADATA_SOFTWARE]	2,	N'Updates'
GO
EXEC [dbo].[METADATA_ACTIVITY_TYPE] 0, N'Command'
EXEC [dbo].[METADATA_ACTIVITY_TYPE] 1, N'Inventory'
EXEC [dbo].[METADATA_ACTIVITY_TYPE] 2, N'DeviceChange'
EXEC [dbo].[METADATA_ACTIVITY_TYPE] 3, N'ServerOperation'
EXEC [dbo].[METADATA_ACTIVITY_TYPE] 4, N'Management'
EXEC [dbo].[METADATA_ACTIVITY_TYPE] 5, N'Distribution'
GO

EXEC [dbo].[METADATA_ACTIVITY_STATUS] 0, N'CommandSend', 0
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 1, N'CommandReceived', 0
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 2, N'CommandFailed', 0
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 3, N'CommandExecuted', 0
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 4, N'InventoryAssetProcessed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 5, N'InventoryAssetFailed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 6, N'InventoryPatchProcessed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 7, N'InventoryPatchFailed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 8, N'InventoryPowerProcessed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 9, N'InventoryPowerFailed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 10, N'MonitorDataReceived', 4
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 11, N'SoftwareInstalled', 2
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 12, N'SoftwareRemoved', 2
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 13, N'HardwareInstalled', 2
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 14, N'HardwareRemoved', 2
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 15, N'ConfigurationChanged', 2
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 16, N'InventoryMetrixProcessed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 17, N'InventoryMetrixFailed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 18, N'InventoryFileProcessed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 19, N'InventoryFileFailed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 20, N'InventorySoftwareSuggestionsProcessed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 21, N'InventorySoftwareSuggestionsFailed', 1
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 22, N'MemoryModified', 2
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 23, N'ScheduledDistribution', 5
EXEC [dbo].[METADATA_ACTIVITY_STATUS] 24, N'CommandExecutedWithErrors', 0
GO


EXEC METADATA_DEVICE_CONFLICT_ACTION 1, N'Pending'
EXEC METADATA_DEVICE_CONFLICT_ACTION 2, N'CreateDevice'
EXEC METADATA_DEVICE_CONFLICT_ACTION 3, N'AssociateDevice'
GO
EXEC METADATA_DEVICE_CONFLICT_CAUSE 1, N'DuplicateHardware'
EXEC METADATA_DEVICE_CONFLICT_CAUSE 2, N'InconsistentHardware'
EXEC METADATA_DEVICE_CONFLICT_CAUSE 3, N'DuplicatedIdentifier'
GO

EXEC METADATA_DEVICE_CONFLICT_STATUS 1, N'WithoutResolving'
EXEC METADATA_DEVICE_CONFLICT_STATUS 2, N'Resolved'
GO
EXEC METADATA_DEVICE_CONFLICT_TYPE 1, N'Identification'
GO
EXEC [dbo].[METADATA_DEVICE_TYPE]  -1,	N'Unknown'
EXEC [dbo].[METADATA_DEVICE_TYPE]	0,	N'Desktop'
EXEC [dbo].[METADATA_DEVICE_TYPE]	1,	N'Laptop'
EXEC [dbo].[METADATA_DEVICE_TYPE]	2,	N'Server'
EXEC [dbo].[METADATA_DEVICE_TYPE]	3,	N'Printer'
EXEC [dbo].[METADATA_DEVICE_TYPE]	4,	N'Switch'
EXEC [dbo].[METADATA_DEVICE_TYPE]	5,	N'Router'
GO
EXEC METADATA_AGENT_EXECUTION
GO

EXEC METADATA_AGENT_EXTENSION
GO

EXEC METADATA_AGENT_EXCEPTION
GO
DECLARE @name_action NVARCHAR(64)
SELECT @name_action = 'RELATION_ACTION_RECORD'
EXEC METADATA_ACTION_RELATION @name_action 
GO
EXEC [dbo].[METADATA_CLOUD_PLATFORM]	1,	N'Azure'
GO
DECLARE @v_manufacturer_id INT;
DECLARE @v_model_id INT;

EXEC dbo.METADATA_MANUFACTURER N'3Com', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6012', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6012System', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 System 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 System 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 System 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 System 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 System 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6012Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 Chassis 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 Chassis 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 Chassis 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 Chassis 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 Chassis 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6012ESM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 ESM 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 ESM 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 ESM 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 ESM 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 ESM 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.3.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6012EFSM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 EFSM 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 EFSM 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 EFSM 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 EFSM 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.4.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 EFSM 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.4.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6012TRSM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 TRSM 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.5.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 TRSM 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.5.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6012TMM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 TMM 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.6.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6012FSM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6012 FSM 7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.1.7.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6004System', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 System 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 System 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 System 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 System 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 System 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6004Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 Chassis 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 Chassis 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 Chassis 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 Chassis 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 Chassis 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6004ESM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 ESM 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 ESM 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 ESM 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 ESM 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 ESM 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.3.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6004EFSM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 EFSM 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 EFSM 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 EFSM 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 EFSM 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.4.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 EFSM 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.4.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6004TRSM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 TRSM 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.5.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 TRSM 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.5.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6004TMM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 TMM 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.6.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps6004FSM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 6004 FSM 7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.2.2.7.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps2500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 2500 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 2500 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 2500 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 2500 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 2500 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lss2200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch 2200 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch 2200 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch 2200 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch 2200 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch 2200 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lps2016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 2016 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 2016 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 2016 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 2016 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lanplex 2016 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.3.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lss2200SS2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch 2200 SS2 7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.114.1.3.3.4.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com terminalServer', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2500to', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2500tlo', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com termServerPlatform', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com series1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.10.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com series200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.10.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com callistoPlatfor', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.10.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com series2500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.10.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com series3000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.10.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2600', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2600to', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2600tlo', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2000to', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2000tlo', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs210', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2100to', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs2100tlo', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.6.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs3000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs3000to', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs3000tlo', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.7.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs3100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs3100to', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cs3100tlo', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.8.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com callisto', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com corebuilderProductsIII', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com corebuilderModularProducts', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cbModular3500Family', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cb3500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com corebuilderSystemProducts', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cbSystem9400Family', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cb9400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.1.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com coreChassisSwitch7700', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouters', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter5009', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3018', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter6040', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter6080', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3030', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3031', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3032', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3033', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3034', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter3035', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouterxxxx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter5231', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouteryyyy', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5012', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5232', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5642', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5682', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter6040rpu2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter6080rpu2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter3040', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter3041', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter3042', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter5640', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter3043', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter3040e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter3041e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter3036', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter3720', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter3740', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5701', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5720', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5740', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5760', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter5680', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter6740', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter6760', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5720pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5740pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvRouter5760pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3012', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3013', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3014', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3015', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvWanRouter3016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitches', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7700 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500 si 28t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500 si 28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500 si 52', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500 ei 28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500 ei 52', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500 eipwr 28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500 eipwr 52', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500 ei 28fx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500GEiSfp24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7750 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7700 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7750 7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4500 26', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4500 50', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4500 pwr 26', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4500 pwr 50', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7750 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch8800 poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4200G 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4200G 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4200G 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500 MC6 EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4500G 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4500G 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4500G 24 PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4500G 48 PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4800G24Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4800G48Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4800GPWR24Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4800GPWR48Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4800G24PortSFP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch8807vrp5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch8807', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch8810vrp5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch8814vrp5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210 9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210 18', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210 26', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210 50', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210 9 pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210 18 pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210 26 pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4200G 24 pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch8810', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7902E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7903E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7906E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7906EV', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7910E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800GT48PortFlex', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800XG14PortFlex', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800GTPWR24Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800GTPWR48Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800GT24PortSFP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch8814', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvbaseline2226SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvbaseline2426PWRPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvbaseline2250SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch9505E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch9508E V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch9512E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800G24Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800G48Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800GPWR24Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800GPWR48Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500G ei 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800GT48Flex', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800G24PortSFP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800XG14PortSFPPlusFlex', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5800XG24PortSFPPlusFlex', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch7903E S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210A 9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210A 18', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210A 26', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210A 9 PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210A 18 PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500G ei 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210A 26 PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4200G 24 NTG', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4200G 48 NTG', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4510G 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4510G 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210G 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210G 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210G 24 PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210G 48 PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210G 24 NT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch5500 si 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvSwitch4210G 48 NT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.3.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ipsec8800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nam8800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com firewall8800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com vpls8800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvOsn64 5800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvOsn128 5800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvOsn64M 5800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvOsnRouterOsnMIM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.5.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvOsnRouterOsnFIC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.5.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jvOsn5500G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.16.4.5.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wLanAP8000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP8700', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP8250', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP8750', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP7250', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWXR104', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWX1206', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWX4400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlan80211agWBridge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlan11gOutdoorBtoBBridge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlan11gIndoorBtoBBridge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wLanAP6000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP11gPoE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP8850', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWX2200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP8760', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanUnifiedGigWirelessPoE24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP7760', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlan11agOutdoorBtoBBridge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanUnifiedGigWirelessPoE8', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanIPS6100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWX5500 OSM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wLanAP2000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWLC5002', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWLC6100 Master', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWLC6100 Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP9550', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP9150', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com WX3024', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com WX3024 LSW', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlan7900Blade', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com WX3010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com WX3010 LSW', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wLanWrkgrpBridge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWLC5004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWLC3024 Wireless', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWLC3024 Wired', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWLC3010 Wireless', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanWLC3010 Wired', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com WX3008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com WX3008 LSW', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP9552', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlanAP9152', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com WX5002', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wLantoLanBridge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com WX5004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wLanAP8500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wLanAPOfficeConnect11Mbps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wLanAP8200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wLanAPOfficeConnect54Mbps11g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.20.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com networkJacks', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj2000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj205', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj220', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj225', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj225FXSC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj225FXST', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj240FXSC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj240FXST', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nj240FXLC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.21.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com securitySwitches', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com securitySwitch6200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.22.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilder1', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCbp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCcf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCbx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCappn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRClm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRClt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCwm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCwt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCae', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCap', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCan', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCcp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCla', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCwa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCaa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCab', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCbf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCxw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCcx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCba', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCar', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCsn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCrb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRCff', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.10.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Bp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Cf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Bx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Appn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Lm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Lt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Wm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Wt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Ae', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Ap', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4An', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Cp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4La', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Wa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Aa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Ab', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Bf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Xw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Cx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Ba', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Ar', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Sn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Rb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 4Ff', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.11.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Bp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Cf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Bx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Appn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Lm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Lt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Wm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Wt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Ae', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Ap', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8An', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Cp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8La', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Wa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Aa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Ab', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Bf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Xw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Cx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Ba', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Ar', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Sn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Rb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8Ff', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.12.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroCf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroBx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro224', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro223', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro201', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroAr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro200', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.13.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com brouterBoards', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ethernet', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cec', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com fddiPhySm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com fddiPhyMmSm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com fddiPhySmMm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com hdwan', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com hdwan449', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com hdwan232', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mp6Eth', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com trPlus', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com macPlus', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com fddiPhy', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cecStar', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com isdnBri', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com isdnPri', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mpAtm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com hssI431', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mpFddi', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mp6EthFl', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ethV3', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ethV3Fl', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroBrd', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com fddiMac', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mpAtmFiber', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com dpe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com flatFddiMm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com flatFddiSs', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com flatFddiSm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com flatFddiMs', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mpAtmFiberMm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbocBrd', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbocST', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbocU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com hss', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nboc56kCSU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbocT1CSU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nboc1x1', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nboc2FlexWAN', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepidBrd', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepidST', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepidU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepid56kCSU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepidT1CSU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mbriSt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com tokenRingBrd', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mbriU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com qWan', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com dpePlus', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nboc1x2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreCpu', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreT1', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreT3', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scorePRI', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridgeBrd', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridgeST', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com hssG703', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridgeU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridge56kCSU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridgeT1CSU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreE3', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreLAN', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copperCPU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com voiceFXS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com voiceFXO', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com voiceEaM', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copperST', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com hssRS449', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copperU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copper56kCSU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copperT1CSU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreATMMm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreATMSm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreT1x2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scorePRIx2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copperPRI', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copperBRIx4', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copperModem', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com t3HSSI', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copperT1x1', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com dualEth', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.14.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocal', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalCf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalBx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalAa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalBf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalAr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderLocalFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.15.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocal', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalCf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalBx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalAa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalBf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalAr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrLocalFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.16.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2bp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2cf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2bx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2appn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2lm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2lt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2wm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2wt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2ae', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2ap', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2an', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2cp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2la', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2wa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2aa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2ab', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2bf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2xw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2cx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2ba', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2ar', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2sn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2rb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC1x2ff', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.17.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2bp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2cf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2bx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2appn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2lm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2lt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2wm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2wt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2ae', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2ap', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2an', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2cp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2la', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2wa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2aa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2ab', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2bf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2xw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2cx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2ba', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2ar', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2sn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2rb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRC1x2ff', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.18.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com casper', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro227', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro221', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrol224', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrol223', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrol228', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrol201', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro222', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrol200', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrolFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.19.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilder2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com spectreHuge', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroh227', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroh221', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroh224', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroh223', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro228', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroh201', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroh222', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroh200', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbrohFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.20.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com spectreIsdn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroil427', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro421', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroi424', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroi423', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiCX', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiBA', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro422', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroi200', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroiFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.21.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddi', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiCf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiBx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiAa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiBf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiAr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 4fddiFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.22.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwide', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideCf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideBx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideAa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideBf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideAr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2 8 dualwideFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.23.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com brouterBrdFwVers', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com noFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mp6EthFlFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbocFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com dpeFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepidFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mbriFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com qwanFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridgeFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cecFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com hdwanFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com hdwan232Fw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com hdwan449Fw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mp6ethFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cecStarFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mpAtmFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mpFddiFw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.24.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com brouterBrdSwVers', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com noSw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.25.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mp6eth', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.25.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com spectreIsdnHuge', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroih427', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroih421', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroih424', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroih423', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroih422', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroihFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.26.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrHuge', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrl327', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro321', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlAa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrl323', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro322', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrlFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.27.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro527', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnBx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnAa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro523', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnAr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrIsdnFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.28.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrNext', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrh327', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrh321', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhAa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrh323', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrh322', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroTrhFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.29.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com lBridgeECS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro2Eth', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbro2EthIsdn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com officeConnRtr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrCf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrBx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrAa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrBf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrAr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocRtrFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.32.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepidRtr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com superStackSwitch1100Router', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreRtr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copperRtr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com easterRtr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com rtr400Hw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.37.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com rtr400Hs', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.37.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRA', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAbp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuidlerTrRAcf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAbx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAappn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAlm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAlt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAwm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAwt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAae', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAap', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAan', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAcp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAla', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAwa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAaa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAab', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAbf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAxw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAcx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAba', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAar', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAsn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRArb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRAff', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.4.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com brouterPlatform', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb1', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocGen', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocIsdnSt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocIsdnU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocCsuDsu', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocWanOnly', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ocT1CsuDsu', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepidGen', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepidIsdnSt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepidIsdnU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepid56kCsuDsu', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nb2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com intrepidT1CsuDsu', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com oc1x2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scorePform', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridgeGen', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridgeIsdnSt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridgeIsdnU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridge56kCsuDsu', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com blueridgeT1CsuCsu', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreLanToLan', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreFlex', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroPlatform', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreFlexPri', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreDualT3', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreDualE3', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreDualPri', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com copperHead', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreMMATM', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreSMATM', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scoreFlexPri2port', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com oc10St', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com oc10U', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com casperPlatform', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com scorePri4port', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com easterST', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com easterU', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com spectreIsdnPform', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com spectreIITr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroIITrIsdnPform', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroIIEthPform', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nbroIIEthIsdnPform', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.5.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRem', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemCf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemBx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemAa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemBf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemAr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRemFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.6.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRA', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAbp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAcf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAbx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAappn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAlm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAlt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAwm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAwt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAae', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAap', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAan', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAcp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAla', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAwa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAaa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAab', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAbf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAxw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAcx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAba', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAar', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAsn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRArb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRAff', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.7.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCbp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCcf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCbx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCappn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRClm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRClt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCwm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCwt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCae', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCap', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCan', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCcp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCla', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCwa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCaa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCab', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCbf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCxw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCcx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCba', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCar', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCsn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCrb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderRCff', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.8.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRem', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemBp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemCf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemBx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemAppn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemLm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemLt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemWm', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemWt', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemAe', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemAp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemAn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemCp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemLa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemWa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemAa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemAb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemBf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemXw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemCx', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemBa', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemAr', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemSn', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemRb', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com netbuilderTrRemFf', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.4.9.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilder3GH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderFMSLBridge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderTP8i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderMSHFddi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch2700AU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch2700Bridge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderFMS100LBridge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch2700TliAU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch2700TliBridge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilder10BTi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderFMS100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com officeConnect Hub8M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com mshSwitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitch2000TR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com oncoreFastModuleFPA100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com oncoreFastModuleFPA10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com oncoreFastModuleFPA10FX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com oncoreFastModuleBPA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com superStackDesktopSwitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderECS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com oncoreFastModuleFPA100TX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com officeConnect Switch140M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com superStackSwitch9000SX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com coreBuilder9000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com coreBuilder9000 chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.33.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com coreBuilder9000 16slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.33.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com coreBuilder9000 7slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.33.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com coreBuilder9000 8slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.33.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com coreBuilder9000 4slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.33.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com superStackSwitch3800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cb5000TRFastModule', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com superStackSwitch9100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com superStackSwitchSoyuz', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com superStackSwitch4300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com superStackSwitch3824', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderMSH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com superStackSwitch3812', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch3226', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch3250', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch3870 24 port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch3870 48 port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch3848', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch3228', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch3252', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2226PwrPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2226Plus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderFMS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2250Plus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch3870x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch9FX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2816SfpPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2824', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2848SfpPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2226Plus2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2250Plus2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2426PwrPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderFddiWorkGroupHub', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2916SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2924SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2948SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2924PWRPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com officeConnectMngGigPWR10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com baselinePoESwitch3124', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com baseline2226SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com baseline2426PWRPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com baseline2250SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com officeconnect Gig8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderFMSII', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com officeconnect PWR8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2920SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2928SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2952SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2928PWRPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2928PWRHPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2226SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2250SFPPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com switch2426PWRPlus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2909G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitchFMS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com smartswitch2909GPWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkSwitchMSH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.1.8.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com watchModule', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.26.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com amp mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com cableModem mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com edgemonitor mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com nic mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com palm mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com grand prix mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlan mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com icdSipProxy mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com webCache mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com xDSLCommon mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com superStack4300 mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com genericTrap', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ldap3Com', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ldapGeneric', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.40.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ldapCommWorks', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.40.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'a3ComLdapVcx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.40.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'a3ComLdapSecurityProfile', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.40.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com sslAcceleration mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com networkManagement mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com componentMgmtModule mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com firewall mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com jv mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'a3ComPoe mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'a3Com496MIB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com voiceCoreExchange mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'a3ComEntityIdentifier mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com viewBuilderApps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'a3ComTrpz mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'a3ComNetworkJack mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'a3Com549 mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'a3comNbxMIB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com wlan mib2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com ap8760', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.54.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com b2bBridgeAP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.54.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com apConfigMib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.54.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com a3airprotect', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com specificTrap', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilder3GH mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilder10BTi mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3Com linkBuilderECS mib', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.43.9', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Alcatel', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 7000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 7700', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 7800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6400 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.10.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6400 P24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.10.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6400 U24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.10.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6400 DU24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.10.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6400 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.10.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6400 P48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.10.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6250 8M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.11.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6250 24M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.11.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6250 24MD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.11.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6250 U24M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.11.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6250 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.11.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6250 P24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.11.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 24L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6450 P24L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 48L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 P48L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6450 P10S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6450 U24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6450 C10M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6450 C24XM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6450 C24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 P24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 P10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 C48X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 P48X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6450 U24SXM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6450 U24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6450 10L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 P10L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 P24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 U24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6450 P48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.12.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6350C24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.13.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6350 P24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.13.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6350 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.13.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6350 P48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.13.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6350 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.13.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6350 P10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.13.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 8000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 8800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6600 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6600 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6600 U24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.3.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6602 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.3.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6602 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.3.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6600 P24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.3.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ALCATEL OMNI 6848POE SWITCH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.3.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6600 EXP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.3.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNIACCESS 200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNIACCESS 210', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNIACCESS 250', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.4.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6800 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6824LPOE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6848LPOE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6824LUPOE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6848LUPOE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6800 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6800 U24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6824POE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6848POE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6800 24L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6800 L48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6824LU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6848LU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.6.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6850 U24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 24L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6850 48L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 685024XL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 685048XL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850P24L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 P48L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850P24XL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850P48XL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 685024LU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 685048LU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 685024XLU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 685048XLU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850P24LU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850P48LU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850P24XLU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850P48XLU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 48X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6850E P48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6850E P48X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6850E P24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6850E P24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850E 48X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850E 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850E 24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850E U24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 P24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 P48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 P24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 P48X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6850 U24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.7.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 9700', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.8.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 9800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.8.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 9600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.8.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 9700E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.8.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 9800E CFM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.8.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 9600E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.8.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6855', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 685514', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.9.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6855U10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.9.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 685524', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.9.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6855U24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.9.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6855U24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.9.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6855 P14', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.1.9.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 4012', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.2.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 4024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.2.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 4102', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.2.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISTACK LS 6224', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.2.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6224P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.2.4.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6248', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.2.4.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6248P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.2.4.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6224U', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.2.4.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISTACK LS 6200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.2.4.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6212P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.800.1.1.2.2.4.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6900 X20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6900 X48C6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6900 X48C4E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6900 X40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6900 T20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6900', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N' LUCENT OS6900 Q32', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N' LUCENT OS6900 X72', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6900 C32', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6900 V72', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6900 T48C6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.10.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860E P24 Z8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860N U28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860N P48Z', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860N P48M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860 P24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860 P48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860E 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860E P24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860E 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6860E P48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 6860E U28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.11.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS9900', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.12.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6865 P16X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.13.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6865 U12X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.13.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6865 U28X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.13.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 P24Z8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 P24X4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 24X4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 P48Z16E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 48Z16E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 48X4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 P48X4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 P24Z24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 P48Z16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 24Z8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 24Z24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 48Z16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 X10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 P24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6560 P24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.14.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6465 P6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.15.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6465 P12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.15.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6465 P28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.15.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6465T P12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.15.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OS6465T 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.15.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'OMNISWITCH 10K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6486.801.1.1.2.1.9.1.1', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Allied Telesis', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Ar330', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Ar350', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp8fsc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp8fsci', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp8fmt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp8fmti', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp16fmti', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rpg6', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rpg6sx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rpg6lx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rpg6mt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp16fsci', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp16fsc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp24i', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.20', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp48i', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9816gf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9812tf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9816gb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9812t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp16fvf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8724xl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.30', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8748xl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8724xldc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8748xldc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9816gb Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9812t Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8824', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8848', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8824 Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8848 Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp16fmt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8624xl 80', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8724xl 80', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8748xl 80', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8948ex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8948i', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8624t2m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9924t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9924sp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9924t 4sp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9924temc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8724mlb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8624poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9924ts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.57', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9924ti', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp8t8fsc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9924spi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9924tsi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9924spsi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8948i N', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9924tsi N', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rapier48w', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8724sl V2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp8t8fsci', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  X900 12xt S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp48w B 85', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  X900 24xs', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp8t8fmt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  X600 24ts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp24i B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.84', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Rp8t8fmti', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  3624tr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9000 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9424t Sp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8324xl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9424t Gb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8524poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9408lc Sp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8316xl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8000s 16', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8000s 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis 8000s 24poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8000s 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8000s 48poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9448t Sp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8324xlr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8316xlr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8000gs', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis 8000gs 24poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8000gs 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9424t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Gs95 8poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9000 28', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9048xl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Fs750 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Gs950 16', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Gs950 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Gs950 10ps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  Gs924m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8324', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8224al', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8324sx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8288xl Sc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8124xl V2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8024', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8024 Gb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8326 Gb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9410 Gb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8350 Gb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8316f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8024m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis 8016fsc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8026fc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8012m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8026t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8424xl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8424tx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8524m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8550 Gb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Bridgerouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar720router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar300lrouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar310router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar300lurouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar300urouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar310urouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar370router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar395router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar390router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar370urouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar740router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar140srouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar140urouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar320router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar130srouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar130urouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar160router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar740routerdc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar120router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar410router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar725router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar745router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar410v2router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar410v3router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar725routerdc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar745routerdc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar450router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar450dualrouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar440router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar441router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar442router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar443router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar444router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar420router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar415srouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar415srouterdc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar550router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar551router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar552router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar550srouterdp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar570router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar770router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Centrecomar300router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar750srouterdp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar560srouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar3050srouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar4050srouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar2050vrouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar2010vrouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar1050vrouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ar4050s5grouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.1.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis X61024ts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis X61024spx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis rp48xdc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x51028gtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x51028gpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x51028gsx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x51052gtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x51052gpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sbx8106', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x510dp52gtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ix528gpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x93028gtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x93028gpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x93028gsx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x93052gtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x93052gpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis dc2552xs', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x51028gsxdc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x510dp28gtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x510l28gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x510l52gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x510l28gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x510l52gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x51028gtxr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x51052gtxr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh51028gtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh51052gtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh51028gpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh51052gpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sbx908g2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sbx908g3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x55018xtq', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x55018xsq', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x55018xspqm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sbx81xlem', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x53028gtxm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x53028gpxm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x530dp28ghxm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x53052gtxm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x53052gpxm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x530dp52ghxm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x95028xtqm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x95028xsq', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x32010gh', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x32011gpt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs980mx28', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs980mx28psm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs980mx52', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs980mx52psm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x530l28gtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x530l28gpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x530l52gtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x530l52gpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs980em10h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs980em11pt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x95052xtqm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x95052xsq', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x530l10ghxm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x53010ghxm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x53018ghxm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs980mx10hsm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sbx81cfc960v2a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis switchblade4ac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis switchblade4dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis switchblade8ac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis switchblade8dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis X90048fs', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis switchbladex908', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis rapier48wac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis rapier48wbac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x90024xt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x90024xtn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x60024tsxp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x60048ts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x60048tsxp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sbx8112', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sbx81cfc400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sbx81cfc960', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sbx81cfc960v2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x60024tspoe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x60024tspoeplus', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis X61048tsxpoeplus', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis X61048tspoeplus', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis X61024tsxpoeplus', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis X61024tspoeplus', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis X61048tsx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis X61048ts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis X61024tsx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.14.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis Industrialswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie2006gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie30012gs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie30020gst', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie51028gsx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie34012gp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie340l18gp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie34012gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie34020gp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie21010gp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie21018gp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie2006gp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie2006gpw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie2006ft', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie2006fp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie30012gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis ie30012gp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.24.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis vaa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.26.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis vfw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.26.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x200ge52t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x200ge28t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x2109gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x21016gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x21024gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x31026ft', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x31050ft', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x31026fp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x31050fp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x31026gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x31050gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x31026gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x31050gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x23010gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x23018gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x23028gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x23052gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x23010gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x23018gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x23028gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x23052gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x35010gpt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs924mx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs924mpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs948mx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs948mpx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis xs916mxt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis xs916mxs', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis xs916mxp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh23010gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh23018gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh23028gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh2109gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh21016gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.264', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh21024gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh31026ft', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh31050ft', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh31026fp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh31050fp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh23010gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh23018gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis sh23028gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis fs980m9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.274', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis fs980m9ps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis fs980m18', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis fs980m18ps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis fs980m28', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis fs980m28ps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis fs980m52', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis fs980m52ps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs910m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.282', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs910mp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs918m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs918mp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs928m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs928mp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs952m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs952mp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.289', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x22052gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.290', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x22052gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.291', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x22028gs', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.294', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs980m52', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs980m52ps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.301', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs970m28ps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.312', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs970m18ps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.313', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs970m10ps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs970m28', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs970m18', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis gs970m10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x230l17gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis x230l26gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis fs980m28dp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8516f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8550sp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9424ti Sp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9448ts Xp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9448ts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9424ts Xp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9424ts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9000 28sp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9000 52', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  9424tpoe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8100s 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8100s 24poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8100s 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8100s 48poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8100s 16f8 Sc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8100s 24f Lc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8100s 24f Bidi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8100 8poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Allied Telesis  8100s 24c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.207.1.4.189', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Aruba', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 2424', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 6000 Sc3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 3200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 3200 8', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 3400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 3400 32', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 3600', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 3600 64', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 650 Us', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 2400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 651', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 620', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S3500 24p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S3500 24t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S3500 48p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S3500 48t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S2500 24p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S2500 24t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 800', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S2500 48p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S2500 48t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 7210', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 7220', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 7240', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S3500 24f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S1500 48p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S1500 24p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba S1500 12p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 7005', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 6000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.9999', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 7010 Us', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 7030', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 7205', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A7024', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A7105', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A9900', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A9980', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 7240xm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 7008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 2450', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Mobility Master Virtual Appliance', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.50', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.54', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Mobility Controller Virtual Appliance', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 850', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 2400e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 800e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 804', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba 2400 F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A50', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 80m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 535', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 515', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap Wg102', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 505', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 575', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 577', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 40', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 41', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 65', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap Mw1700', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap Duowj', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap Duo', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 80mb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 80sb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A52', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 85', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 124', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 125', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 120', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 121', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 1250', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 120abg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 121abg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 124abg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 125abg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 60', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Rap 5wn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Rap 5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Rap 2wg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Reserved4 Access Point', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 105', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 65wb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 651', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Reserved6 Access Point', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 60p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Reserved7 Access Point', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 61', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 92', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 93', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 68', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 68p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 175p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 175ac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 175dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 134', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 135', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Reserved8 Access Point', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 70', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 93h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Rap 3wn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Rap 3wnp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 104', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Rap 155', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Rap 155p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Rap 108', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Rap 109', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 224', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 225', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 61 Wj', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 114', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 115', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Rap 109l', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 274', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 275', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 214a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 215a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 204', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 205', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 103', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A2e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 103h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap Virtual Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 277', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 214', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 215', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 228', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 205h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 324', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 325', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 334', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 1200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 335', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 314', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 315', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 207', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 304', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 305', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 303h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Iap 365', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap 80s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap Undefined', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.9999', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Zmaster', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba C2000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Switchproducts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Reserved1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Vmc Tact8', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A7280', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Mm Hw 1k', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A9004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A9012', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A9004 Lte', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A9240 Base', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A9240 Silver', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A9240 Gold', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba A9114', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.1.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Approducts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap555', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap534', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap387', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap303p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap514', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap544', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap545', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap504', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap505h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap574', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap518', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap503h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap565', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap567', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap575ex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap577ex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap565ex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap567ex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap375atex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap635', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap655', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap584', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap585', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap587', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap585ex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap587ex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap615', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap503', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap605h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap674', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap675', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap677', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap679', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap675ex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap677ex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap679ex', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Apm210', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap367', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap203h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap203r', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap203rp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap344', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap345', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap374', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap375', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap377', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap318', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Ap303', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.2.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Aruba Clearpassproducts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.14823.1.6', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Brocade', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 28c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 28c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 31e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7003', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7006', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf100csi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3510e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3540e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsu3fwcea0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsu1nscea0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelst1fw3c1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelst1nsm2c1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsx1fwcea1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1009', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsx1nscea1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2620 Agn C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2610 Gn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2610 Gne', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1014', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr800 Wlan ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1015', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr800 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1016', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr800 10 Wlan ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1017', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr830 Winet ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1018', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr830 10 Winet ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1019', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 32e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930 10 Winet ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1020', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9810', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1021', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork B6300 Xlg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1022', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork B6300 Gxg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1023', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr900 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1024', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr900 E Wlan ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28s Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1026', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 52s Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1027', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28f Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1028', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28s Hpwr Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1029', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 33', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 52s Pwr Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1030', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28s Hpwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1031', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade E528 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1032', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade E552 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1033', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Lsu1wcme0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1034', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ewpx1wcme0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1035', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8810 X S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1036', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8806 X S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1037', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8803 X S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1038', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8802 X S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1039', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 33e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf5020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1040', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf5040', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1041', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ra100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1042', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930 Lm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1043', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930 W Lm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1044', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr2600 5 L Mc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1045', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 32c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1046', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 56c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1047', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 32c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1048', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 56c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1049', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 34', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 56c Ei M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1050', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wb521x E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1051', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wb521x H', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1052', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx2540e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1053', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx360', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1054', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx361', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1055', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2610e Gne', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1056', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6603 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1057', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6605 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1058', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6609 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1059', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 34e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 30s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1060', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 54s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1061', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 30c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1062', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 54c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1063', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 30c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1064', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 54c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1065', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 54qs Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1066', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ra200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1067', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade F1000csi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1068', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade F100msi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1069', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade F100asi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1070', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820v2 48s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1071', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6300 42qt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1072', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6300 42qf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1073', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6300 48s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1074', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6300 52qf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1075', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork U8300 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1076', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork U8300 48xlg U', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1077', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5008pv2 Ei Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1078', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5024pv2 Ei Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1079', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 35e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 52p Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1080', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 52p Pwr D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1081', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Nsc1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1082', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4308', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1083', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4308 Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1084', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1085', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 52tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1086', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1087', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 52tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1088', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1089', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 63 1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1030', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1090', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1091', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1060', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1092', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1070', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1093', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1080', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1094', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathvmsgvlb1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1095', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5864 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1096', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5864u F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1097', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5864t F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1098', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6348 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1099', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 52c Pwr Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F100 C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6348t F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cr16006 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cr16010 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cr16014 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathm9000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Icg3000s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1105', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.598', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6800 4c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6800 2c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8803 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8805 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F100 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8808 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8812 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12516x Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vac1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx8700', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 30f Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5530c Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5554c Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5530c Pwr Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5554c Pwr Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F100 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5530f Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28s Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 52s Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28f Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 28s Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 52s Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 28f Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La4608e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4320 Acn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4320i Acn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F100 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4320i X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4320 Ts', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4320 Tq', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4320h Acn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S10506', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S10510', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7606 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7610 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1138', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1139', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.838', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.109', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F1000 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathacg1000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathacg1000a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathacg1000m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathacg1000s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathacg1000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vbras1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1145', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vsr1000p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vbras1000p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12508x Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La3616s Gm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F1000 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La3616s Gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La3616e Gm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wap722e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wap722', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er2100n', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er2100v2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5560h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5580h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wap621', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr810 W', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F1800 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er3260g2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er5100g2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er5200g2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er6300g2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er8300g2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er8300g2x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9904', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9910', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsu1adecea01', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsxm1adecea1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath V100 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6900 2f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6900 4f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6348s F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6364 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5848 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S1808g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S1824g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S1848g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathacg1010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathacg1020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath V1000 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathacg1030', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathacg1040', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3510h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3520h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3540h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5540h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La3608e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La3608e Db', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 30s Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 54s Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F100 Aw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 30c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 54c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 30c Pwr Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 54c Pwr Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 54qs Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 30f Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12516f Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12508f Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12504x Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12504f Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5510 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F1800 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4100 10tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4100 10tp Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4100 26tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4100 26tp Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4300 52p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4300 28p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ie4100 12tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ie4100 20tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ie4100 28f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ie4300 28p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F1800 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6800 54qf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1210', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1733', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4320 28s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4320 52s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4320 28f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4320 28s Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4520 28tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4520 30f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La4310', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La4310v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La4320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpoint', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La4320v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4320x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La4320x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade4nsqm1fwdfg0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5510ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5540ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathl1000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathl1000m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathl1000s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf5000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg10 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathl5000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathl1000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4320 Tq V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr810 W Db', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr810 Lm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr810 W Lm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6820 32h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6820 54hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr5620', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg10 11', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3620dp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr810 W Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr810 Lm Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ra100ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3600 28 Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3620 Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6800 54qt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12504 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12506 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12510 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg10 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12508 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12512 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S515024spwrei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5150x 16s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5150x 16s Tei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf100ag2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1000cg2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Uis M8310 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Uis M8320 48xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Uis M6300 Xlg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg10 41', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr810', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathw2001', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathw2005', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathw2010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathw2020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1264', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathw2040', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathw2080', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathw2200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathw1020d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathw1040d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg21 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathw1200d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpatha2020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpatha2100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathd2020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1273', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathd2050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1274', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 34c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 34c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4120 26tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4330acn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4320s 28f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg20 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4320s 28p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms4520 28s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade3context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1282', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr26 30 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr36 10 Ac R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr36 20 Ac R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr36 40 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr36 60 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr56 60 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr56 80 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1289', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg20 32', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1290', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930 W R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1291', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr2600 10 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1292', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3010ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1293', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3024ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1294', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wcmx20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1295', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 32c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1296', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 56c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1297', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560 56c Pwr Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1298', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12502x Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1299', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5510 24f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg80 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ns228', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ns252', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1301', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladefw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1302', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladeade', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1303', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladeiiilsum1fwceab0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1304', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28ps Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7506e X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7510e X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1307', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7504exs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1308', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7502exs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1309', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Xe200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4320 Acn Pi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1310', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4320 Acn Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1311', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ner324', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1312', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ner214w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1313', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx2540ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx2540h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx4320 Acn C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx4320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wap712', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1318', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Uis M8380 C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Xe2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Uis M8380', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Lsu1wcme0v7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ewpx1wcme0v7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Xe7200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ie4100 12tp Li', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1338', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ie4100 12tp Pwr Li', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1339', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Xe7300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Xe7500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Xe7600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cr16004 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1365', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cr16008 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1366', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cr16016 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1367', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Xe7205', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Xe7305', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Xe7505', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3610 28p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Xe7605', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neoceanix1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6820 56hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1417', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neoceanex1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neoceanex800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neoceanix5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neoceaniv5100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neoceaniv5200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560x 54c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1461', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5560x 54c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1463', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9502', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9505', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3610 52p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9508v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6520 48s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1508', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9512', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Sr8812', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Sr8808', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Sr8805', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Sr8802', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c E126 Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130s 28s Pwr Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1569', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg31 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dr834', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130s 28s Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1589', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7510e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130s 52s Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1590', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3610 28tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 24p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 48p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 8p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 16p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 8p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 16p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 8p Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 16p Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 26c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 50c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3610 28f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3108tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3116tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3126tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3108tp Ei Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3116tp Ei Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6520x 54qc Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1740', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3126tp Ei Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7502m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.176', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500m 20c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500m 20f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Aolynk Br304 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c E126', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9505 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9512 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9508 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9820 64h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1826', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9508v V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9502 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Sr8802 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Sr8805 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Sr8812 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Sr8808 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 52p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c E328', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c E152', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6850 56hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1913', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2026', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6602', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6608', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 8tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.195', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 8tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 16tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.197', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 15tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 26tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.199', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 52c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c E352', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 26tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7502 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg80 21', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vg80 80', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wx5002', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wcma', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr30 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7503e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.207', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7506e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.209', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.469', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 8c Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7506e V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Fw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Ipsec', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 8tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 16tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c E126a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 26tp Si B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr30 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secchannel1000 Ga', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secchannel1000 Gs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secchannel1000 Me', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secchannel1000 Ma', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secchannel1000 Ms', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secchannel1000 Mc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secchannel1000 Ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2126 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 16c Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c E150 Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr30 11', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix3040', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix3080', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpathf100 M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Vx1500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix1520', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix1540', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wcm Wx5002 128ap', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 26c Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 11', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 13', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 15', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Dl1008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Dl1008s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Dl1012', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3610 52m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Iv5680', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Iv5240', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F1000 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 8t Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5024p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5016p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Firewall Module Lsq1fwbsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Lsb1fw2a0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Et704', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ec1001', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ec1001 Hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 16t Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ec1004 Hc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ec2004 Hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dc1001', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dm8000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vm8000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ms8000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 52tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S1550e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S1550', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 26t Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S1526 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 12 T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 15 I', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 15 N', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx6103', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.264', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.611', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx6100lsq', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx6100sb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx6100sw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Dl1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Dl1000s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 26tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa1208e G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa1208e Dg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa1208e Ag', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa1208e Agp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.273', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7501m 24t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.274', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7501m 24tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7503m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7506m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7506m V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 24p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7510m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpatht200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpatht200e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.282', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Soho Aolynk Cc600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa1208e Gp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wb2321e Agp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wh2520e Agp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg 2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg 3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg 5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.289', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 26c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5520tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.290', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2210 Ag', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.291', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2220 Ag', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.292', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2220e Ag', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.293', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2210x G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.294', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2220x Ag', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.295', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2220x Agp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.296', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 52tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.297', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath Ase5000 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.298', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath Ase5000 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.299', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 50c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath U200 C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath U200 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.301', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath U200 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.302', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath U200 M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.303', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ec3016 Hv', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.304', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dc1001 Ff', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ecr 3304 Hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ecr 3308 Hd', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.307', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ecr 3316 Hc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.308', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Isc 3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.309', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5100 48p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Isc 3100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.310', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vm9000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.311', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Vm5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.312', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ms9000 Vtdu', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.313', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ms9000 Nru', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ums9005', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Cs2104b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Cs2106b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5024e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.318', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5048e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 28p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F5000 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix3240', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix3620', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msa 7302', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.323', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msa 7306', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.324', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7501e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 8c Epon Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 16c Epon Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.327', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 26c Epon Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.328', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsq1afcbsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.329', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 52p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsb1afc1a0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.330', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F1000 C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.331', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F100 A Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.332', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath V100 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.333', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 32c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.334', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 56c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.335', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 32c Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.336', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 56c Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 60c Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.338', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 32f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.339', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 28tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800x 28c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.340', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800x 28s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.341', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Soho Aolynk Cc602', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.342', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cr400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.343', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Soho Aolynk Cc600e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.344', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath T1000 M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.345', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Vx1540', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.346', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr50 06', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.347', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath Acg2000 M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.348', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsq1acgasc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.349', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 28p Pwr Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsb1acg1a0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.350', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wx3024 Wcm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.351', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wx3024 Lsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.352', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wx5004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.353', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6604', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.354', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Iag5000 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.355', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Spe Fwm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.356', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg2200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.357', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7602', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.358', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7603', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.359', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 52p Pwr Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7606', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.360', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7606 V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.361', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.362', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2610e Agn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.363', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2620e Agn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.364', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa1208e G V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.365', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa1208e Dg V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.366', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa1208e Ag V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.367', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa1208e Agp V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.368', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa1208e Gp V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.369', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 28p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7503e S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.370', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath Iag2000 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.371', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath T1000 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.372', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath T1000 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.373', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Ewpx1fwa0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.374', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsq1nsmsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.375', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsq1afdbsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.376', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsq1lbsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.377', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsb1lb1a0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix1560', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.379', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 52p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ex1500s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.380', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ex1520s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.381', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ex1540s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.382', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ex1560s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.383', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Et716', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.384', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 2p Olt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.385', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Er3200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.386', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Er3100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.387', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9505e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.388', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9508e V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.389', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 28p Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9512e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.390', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.391', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.876', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12518', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.392', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.877', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Et708', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.393', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Et724', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.394', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2008tp Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.395', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2016tp Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.396', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2403tp Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.397', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg2000 Ct', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.398', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 52c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 52p Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3528p Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.400', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3552p Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.401', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3552f Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.402', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3528f Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.403', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3528tp Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.404', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath Afd1000 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.405', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F100 C Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.406', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Er3260', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.407', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg 800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.408', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg 800g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.409', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 28f Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg 1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.410', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg 1800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.411', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix3240e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.412', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix3620e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.413', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix3640e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.414', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath Acg8800 S3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.415', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath T5000 S3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.416', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath Iag2000 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.417', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath Acg8800 S3 Ns21s2mspb0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.418', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath T5000 S3 Ns11s2mspb0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.419', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5600 26c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr3010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.420', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr3011e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.421', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr3011f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.422', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath T200 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.423', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath T200 M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.424', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath F100 C2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.425', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Fw1000 Ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.426', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Fw1000 Ga', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.427', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Fw1000 Gs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.428', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Fw1000 Me', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.429', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5600 50c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Fw1000 Ma', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.430', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Fw1000 Mm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.431', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Fw1000 Mc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.432', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Utm2000 Ma', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.433', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Utm2000 Mm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.434', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Utm2000 Ms', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.435', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Ips2000 Gm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.436', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Ips2000 Mm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.437', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6616', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.438', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3620 28tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.439', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5600 26c Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3620 28p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.440', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3620 52p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.441', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3620 28p Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.442', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3820 52p Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.443', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3620 28f Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.444', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3620 52m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.445', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3620 52m Dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.446', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3620 28c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.447', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2210e Ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.448', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2220x Age', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.449', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5600 50c Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2210x Ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.450', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wb2320x Age', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.451', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ex1540', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.452', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5810 50s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.453', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsq1ipssc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.454', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsb1ips1a0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.455', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Er5100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.456', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Er5200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.457', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wx3010 Wcm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.458', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wx3010 Lsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.459', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5600 26f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Soho Aolynk Cc652e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.460', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 20p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.461', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.462', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 52p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.463', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.464', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 52p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.465', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28p Lpwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.466', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 29p Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.467', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx6100lsr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.468', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 52g Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg 2000b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.470', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Icg 2000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.471', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S1626', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.472', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S1650', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.473', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S1626p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.474', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix3620s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.475', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Neocean Ix3080s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.476', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Er3280g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.477', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2610 Agn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.478', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2612 Agn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.479', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 52p Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath T200 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.480', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath U200 Cs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.481', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath U200 Cm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.482', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpath U200 Ca', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.483', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsr1afc2a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.484', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsr1fw2a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.485', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsr1lb1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.486', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsr1nsm1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.487', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Soho Aolynk Cc650e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.488', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Lswm1wcm10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.489', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 28g Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Lswm1wcm20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.490', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ewpxm1wcmc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.491', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Lswm1ips10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.492', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Lswm1fw10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.493', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secpathf1000 S Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.494', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1000 A Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.495', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr50 06 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.496', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsr1acg1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.497', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsr1ips1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.498', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7602s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.499', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 28f Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 28p Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7603 Es', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.500', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7606 Es', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ssm S5500g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.502', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ssm Fic', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.503', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ssm Mim', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.504', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Er8300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.505', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2610x Gnp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.506', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wb2360x Anp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.507', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wh2530x Dag', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.508', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wh2530x Dag', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.509', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600 52m Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2620 Agn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.510', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Dptech Fw1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.511', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2008tp Ea Si ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.512', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2016tp Ea Si ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.513', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2403tp Ea Si ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.514', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 24p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.515', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 48p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.516', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.517', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 52c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.518', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.519', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7502', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 52c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.520', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wx3008 Wcm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.521', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wx3008 Lsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.522', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr900', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.523', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr920', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.524', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Secblade Lsq1iagsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.525', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wx7306', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.526', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wx7310', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.527', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Blade5310', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.528', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Blade55102', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.529', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7503', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Blade5512s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.530', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Blade55110x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.531', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Wa2610e Gnp V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.532', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 26tp Si Um', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.533', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 52tp Si Um', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.534', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 24p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.535', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 48p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.536', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Me8000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.537', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Me8600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.538', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Me5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.539', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7506', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Mg6060', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.540', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Mg6050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.541', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Mg6050s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.542', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Mg9010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.543', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Mg9030', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.544', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Mg9060', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.545', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Neoceanvx1500 Dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.546', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Soho Aolynk Cc620e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.547', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sivx S3628', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.548', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sivx S5528', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.549', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7506r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sivx Vs1500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.550', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Neoceanix2540', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.551', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Neoceanvx2500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.552', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28p Pwr Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.555', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28p Hpwr Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.556', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade F1000 E Dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.557', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5028', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.558', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Et824', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.559', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Osm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.560', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5002 V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.561', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5004 V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.562', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpatht1000 C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.563', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Lst1ips1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.564', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Lst1fw2a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.565', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Lst1lb1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.566', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Lst1nsm1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.567', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Ewpx2iagsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.568', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade F1000 A Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.569', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar28 09', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx6108e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx6112e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.571', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 34c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.572', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 58c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.573', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa1208e Gp H20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.574', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 9p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.575', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 9p Pwr Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.576', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 9p Hpwr Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.577', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade E528', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.578', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade E552', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.579', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar28 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600v2 28tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.580', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600v2 52tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.581', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600v2 28tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.582', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600v2 52tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.583', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600v2 28f Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.584', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600v2 28tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.585', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600v2 52tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.586', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600v2 28tp Pwr Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.587', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3600v2 52tp Pwr Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.588', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3500v2 28tp Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.589', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar28 11', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3500v2 52tp Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.590', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3500v2 28f Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.591', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3500v2 28tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.592', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3500v2 52tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.593', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9508e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.594', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12504', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.595', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Icg2000b Gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.596', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Icg3000b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.597', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Icg5000b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.599', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 28c Ei Dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar28 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wh2640x Agnp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.600', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2620x Agnp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.601', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100 16tp Pwr Ei F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.602', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cr16018', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.603', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cr16008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.604', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cr16004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.605', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade F1000 A Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.606', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade F1000 E Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.607', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Lst1acg1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.608', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Spe Ips', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.609', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar28 13', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Spe Acg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.610', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Lsq1wcmd0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.612', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ewpx2wcmd0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.613', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Lsr1wcm3a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.614', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5830 52sc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.615', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5830 106s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.617', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Et814', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.618', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28p Li', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.619', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar28 14', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 52p Li', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.620', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Im Fw Ii', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.621', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Im Lb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.622', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Im Ssl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.623', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er2210c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.625', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vcx Connect 100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.626', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vcx Connect 200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.627', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vcx V7005', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.628', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vcx V7205', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.629', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar28 30', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vcx Mim', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.630', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vcx Connect Mim Primary', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.631', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vcx Connect Mim Secondary', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.632', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vcx V7310', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.633', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Im Ips', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.634', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Im Acg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.635', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7508e X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.636', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S10504', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.637', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S10508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.638', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S10508 V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.639', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar28 31', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secblade Spe Fwm 200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.640', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1000 S Ai', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.641', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3024e Wcm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.642', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3024e Lsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.643', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er2100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.644', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820x 34tc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.645', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820x 34sc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.646', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820x 34c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.647', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820x 64sc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.648', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cc720e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.649', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar28 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2126t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.650', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 54s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.651', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820x 26s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.652', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 8tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.653', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 16tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.654', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 26tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.655', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade E126b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.656', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 8tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.657', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 16tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.658', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 26tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.659', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar28 80', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 8tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.660', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 16tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.661', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 26tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.662', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2008tp Eb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.663', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2016tp Eb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.664', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2043tp Eb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.665', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2008tp Pwr Eb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.666', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2016tp Pwr Eb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.667', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2403tp Pwr Eb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.668', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5800 Lsw1fc4p0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.669', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar46 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2403tp Ea Si D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.670', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3528p Ea D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.671', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Oap Fic V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.672', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Oap Mim V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.673', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Oaps Mim V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.674', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2008tp Pwr Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.675', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2008tp Pwr Ea Dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.676', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2016tp Pwr Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.677', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2403tp Pwr Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.678', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 24p Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.679', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar46 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 24p Pwr Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.680', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 48p Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.681', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5024p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.682', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 28c Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.683', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 52c Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.684', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 28f Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.685', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 28c Ei Dc D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.686', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Mg9050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.687', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 52sc Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.688', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ce3000 32f Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.689', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar46 80', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5830x 24s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.690', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Dc1801fh', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.691', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Dc2004ff', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.692', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec1101hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.693', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec1102hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.694', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec1501hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.695', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec1801hh', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.696', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec2516hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.697', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec2016hc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.698', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec2016hc8ch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.699', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S6100 20q Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec2016hc4ch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.700', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec1504hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.701', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5421', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.702', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5401', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.703', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5221h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.704', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5201h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.705', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vm8500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.706', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ms8500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.707', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Dm8500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.708', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vx500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.709', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 21', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Isc3000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.710', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Isc3000s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.711', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cc700e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.712', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Dc1001ff', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.713', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3316hc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.714', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3308hd', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.715', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3316hc8ch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.716', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3316hc4ch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.717', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3308hd4ch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.718', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic65017l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.719', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec2508hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.720', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3528e A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.721', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3552tp Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.722', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wp3024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.723', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wp3048', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.724', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3528fp Ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.725', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade E328b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.726', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade E352b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.727', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade E152b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.728', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 52tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.729', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr30 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wp2008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.730', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wp2016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.731', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wp2024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.732', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wp5024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.733', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wp5048', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.734', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2052tpea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.735', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7604x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.736', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7608x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.737', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7608xv', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.738', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa3620iagn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.739', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr30 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa3628iagn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.740', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa3610ign', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.741', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cc750e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.742', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5024f Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.743', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820v252qf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.744', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2110gn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.745', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr20 10e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.746', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S10512', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.747', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28sc Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.748', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa1208egnp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.749', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Msr30 60', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2610egnph20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.750', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2620iagn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.751', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2610ign', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.752', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2612', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.753', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2620', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.754', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wb524', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.755', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelst1fw3a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.756', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsu1fwcea0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.757', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3010ewcm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.758', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3010elsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.759', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr50 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6602 X1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.760', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6602 X2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.761', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladecrimnam1a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.762', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr2630', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.763', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3610ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.764', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3610dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.765', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3620ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.766', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3620dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.767', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3620poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.768', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3640', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.769', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr50 60', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3660', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.770', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr5660', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.771', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr5680', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.772', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 58c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.773', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 34c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.774', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Lsu3wcmd0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.775', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ewpx3wcmd0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.776', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S7612x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.777', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx6103e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.778', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladecrimfw1a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.779', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic66216c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.780', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic66216l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.781', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic3401v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.782', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic3401vir', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.783', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic3421v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.784', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic3421vir', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.785', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sic235ir1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.786', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sic235ir3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.787', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sic335evir', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.788', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5511i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.789', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5521i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.790', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5551i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.791', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5421e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.792', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5401e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.793', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5421d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.794', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5401d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.795', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5621', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.796', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic5601', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.797', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic6501e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.798', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic6621e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.799', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 28c Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sic635', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.800', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic6501ir', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.801', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hic6621ir', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.802', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sic635ir', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.803', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec2508hf4ch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.804', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec2516hf8ch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.805', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3308hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.806', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3316hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.807', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Isc3500e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.808', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Isc3500s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.809', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3304hfe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.810', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3308hfe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.811', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3316hfe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.812', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Isc3600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.813', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3204hw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.814', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3208hw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.815', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ecr3216hw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.816', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec2508hw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.817', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ec2516hw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.818', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Isc2600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.819', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Dc2808fh', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.820', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ce300034c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.821', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ce300058c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.822', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6604 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.823', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6608 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.824', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr6616 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.825', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf100ag', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.826', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf100cg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.827', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf100eg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.828', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf100mg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.829', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf100sg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.830', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 26tp Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.831', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 24p Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.832', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28p Poe Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.833', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 28p Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.834', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 34c Pwr Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.835', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 58c Pwr Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.836', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 34f Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.837', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msv50', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.839', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.840', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930gu', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.841', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930sa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.842', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930gg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.843', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820v2 54qs Ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.844', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820v2 52q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.845', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cc754e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.846', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wp5008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.847', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladecrimlb1a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.848', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 34c Hid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.849', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 58c Hid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.850', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9505ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.851', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9508ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.852', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9508evv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.853', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S9512ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.854', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12508v7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.855', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12518v7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.856', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12504v7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.857', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf100cai', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.858', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathl1000a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.859', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2610e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.860', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2620e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.861', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2620x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.862', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2610x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.863', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S58306002', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.864', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S58306004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.865', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsu1ipsbea0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.866', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelst1ips2a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.867', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.868', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930gw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.869', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf5000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.870', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf5000s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.871', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12510fdc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.872', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12510fac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.873', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12510xdc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.874', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12510xac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.875', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12516fdc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.878', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12516fac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.879', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 21', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12516xdc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.880', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S12516xac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.881', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.882', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930gtc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.883', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930guc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.884', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1000ag', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.885', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1000cg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.886', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathf1000sg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.887', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsq2fwbsco', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.888', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2620agn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.889', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 21a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vsr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.890', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vsr1001', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.891', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vsr1004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.892', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vsr1008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.893', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 S28 Pei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.894', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 S52 Pei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.895', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930winetw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.896', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa3628iagnx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.897', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2110', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.898', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2110 Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.899', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 52c Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 21b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2126', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.900', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2126pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.901', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2152', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.902', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5540 Wcm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.903', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5540 Lsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.904', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5520 Wcm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.905', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5520 Lsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.906', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930 Wgt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.907', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Icg 5000t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.908', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Icg 6000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.909', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 22', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr26 30', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.910', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr36 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.911', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr36 60', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.912', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr2600 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.913', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.914', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr2600 17', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.915', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Icg 3000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.916', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Icg 3000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.917', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsu1adecea0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.918', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelst1ade1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.919', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 22 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8804 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.920', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8808 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.921', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr8812 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.922', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cc710e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.923', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cc712e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.924', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820v332q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.925', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5008pv2ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.926', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5024pv2ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.927', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5048pv2ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.928', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.929', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 22s 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2610 Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.930', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2626', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.931', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2626 Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.932', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S2652', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.933', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Simware7boxcen', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.934', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Simware7boxirf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.935', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Simware7chassisdevice', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.936', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vsr1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.937', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathm9000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.938', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathm9006', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.939', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 22 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathm9010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.940', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathm9014', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.941', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladeiiinsqm1fwcea0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.942', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wb521x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.943', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wb511x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.944', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er3108g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.945', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Er3108gw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.946', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.947', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 52s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.948', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28f Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.949', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 23 1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 28s Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.950', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5130 52s Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.951', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3600 28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.952', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3600 51', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.953', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2612e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.954', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2622', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.955', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 10p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.956', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 10p Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.957', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 28p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.958', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 28p Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.959', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 23s 1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 52p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.960', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 10p D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.961', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 10p Pwr D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.962', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 28p D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.963', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 28p Pwr D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.964', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 52p D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.965', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx5510', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.966', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S550028schi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.967', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S550052schi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.968', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S550028schid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.969', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S550052schid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.970', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade La2608', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.971', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S311010tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.972', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S311010tppwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.973', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S311026tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.974', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S311026tppwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.975', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S311052tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.976', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2610h Gn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.977', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4620e Acn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.978', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa4620i Acn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.979', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade H3c Ar18 30e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ewpx1mac0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.980', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Crimmac1a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.981', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladeiiilst1fw3b1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.982', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2620i Agn X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.983', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3110 10tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.984', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3110 26tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.985', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3110 52tp Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.986', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 10p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.987', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 28p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.988', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5110 52p Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.989', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S3100v2 52tp Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.990', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5120 52p Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.991', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 48p Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.992', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5500 28f Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.993', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wa2620e X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.994', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathl5000s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.995', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathl5000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.996', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Cc721e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.997', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade S5820v2 52qf U', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.998', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secpathvfw1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.999', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7502', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1905 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5900af 48xg 4qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 24g 4sfp Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 48g 4sfp Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 6125g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 8g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 8g Poeplus Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 8g Ppoeplus Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 Af 48g Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1250 4dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1250 8dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 16g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.11', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1251 8dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 12518 Ac Switch Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1251 8ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5900af 48xgt 4qsfp   Jg336a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 8g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 8g Poeplus 65w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 8g Poeplus 180w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5830af 48g Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5830af 96g Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7508h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5120 24g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5900af 48g 4xg 2qsfp   Jg510a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 48g Poe  4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 24g Poe  4sfp Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 24g Sfp Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1250 4acv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1250 4dcv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1250 8acv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1250 8dcv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1251 8acv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1251 8dcv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5120 48g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5900af 48xg 4qsfp  Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5920af 24xg Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade V1910 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 8 Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 24 Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 6125xlg Blade Switch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 11908 V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 48g Poe  4sfp Hi Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5120 24g Ppoe  Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 24g Poe  4sfp Hi Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 24g Sfp Hi Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Moonshot 45xgc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 12900', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5930 32q Sfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 5930 32qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 7904', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 12916 Ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 12916 Dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 5900cp 48xg 4qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5120 24g Poe  Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5900cp 48xg 4qsfp  8gb Fc B F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 6125 Xlg Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 6125 Gxg Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 6125 G Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 24g 4sfp Xi 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 48g 4sfp Xi 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 24g Poe Plus 4sfp Xi 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 48g Poe Plus 4sfp Xi 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 24g 4sfp Xi Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 48g 4sfp Xi Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 24g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 24g Poe Plus 4sfp Xi Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 48g Poe Plus 4sfp Xi Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Officeconnect 1920 8g Switch  Jg920a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1920 8g Poe  65w ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Officeconnect 1920 8g Poe   Jg922a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Officeconnect 1920 16g Switch  Jg923a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Officeconnect 1920 24g Switch  Jg924a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1920 24g Poe  180w ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Officeconnect 1920 24g Poe   Jg926a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Officeconnect 1920 48g Switch  Jg927a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 24g Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1920 48g Poe  370w ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 5700 40xg 2qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 5700 40xg 2qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 5700 32xgt 8xg 2qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5700 32xgt 8xg 2qsfp   Jg898a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 5700 48g 4xg 2qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5700 48g 4xg 2qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1620 8g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1620 24g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1620 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1950 24g 2sfp  2xgt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1950 48g 2sfp  2xgt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1950 24g 2sfp  2xgt Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Officeconnect 1950 48g 2sfp  2xgt Poe   Jg963 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g 4sfp  Ei  Jg932a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g 4sfp  Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 48g Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g Poe  4sfp  180w  Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 5130 24g Poe  4sfp   370w  Ei  Jg ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 48g Poe  4sfp  Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 48g Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g 2sfp  2xgt Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 48g 2sfp  2xgt Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g Poe  2sfp  2xgt 370w  Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 48g Poe  2sfp  2xgt 370w  Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g 4sfp  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g Sfp 4sfp  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 48g 4sfp  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g Poe  4sfp  180w  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g Poe  4sfp  370w  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 48g Poe  4sfp  370w  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7503 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5800 24g Sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g 2sfp  2xgt Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 48g 2sfp  2xgt Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g Poe  2sfp  2xgt 370w  Ei Taa Complia ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 48g Poe  2sfp  2xgt 370w  Ei Taa Complia ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 7910 Switch Chassis  Jg841a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5900af 48g 4xg 2qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5900af 48xgt 4qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 5900cp 48xg 4qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g 4sfp  Ei Brazil', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 48g 4sfp  Ei Brazil', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 48g Poe 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g Poe  4sfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 48g Poe  4sfp   370w  Ei Brazil', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Thunderbird', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 12916e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Nj5000 5g Poe  Wall Jack', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 5510 24g 4sfp  Hi 1 Slot Switch   ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5510 48g 4sfp  Hi 1 Interface Slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 5510 24g Poe  4sfp  Hi 1 Slot  Jh ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 5510 48g Poe  4sfp  Hi 1 Slot  Jh ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 5510 24g Sfp 4sfp  Hi 1 Slot  Jh1 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5820x 14xg Sfp   Jc106a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5510 24g 4sfp  Hi Taa Compliant 1 Interface S ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5510 48g 4sfp  Hi Taa Compliant 1 Interface S ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5510 24g Poe  4sfp  Hi Taa Compliant 1 Interf ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5510 48g Poe  4sfp  Hi Taa Compliant 1 Interf ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5510 24g Sfp 4sfp  Hi Taa Compliant 1 Interfa ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 12910 Ac Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 7904 Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 7910 Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 6127xlg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hpe Ff 5930 2slot 2qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5820 24xg Sfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 5930 2slot 2qsfp Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5930', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 5930 4slot Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 6127xlg Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1950 12x Gt 4sfp Plus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 12916e Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 12908e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 12908e Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Moonshot 45gc R10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Moonshot 45xgc R16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5500 24g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Moonshot 180xgc R16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Moonshot 180xgc R40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 12904e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 12904e Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 5130 24g 4sfp  1 Slot  Jh323a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 5130 48g 4sfp  Hi 1 Slot  Jh324a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5130 24g Poe  4sfp  1 Slot Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 5130 48g Poe  4sfp  1 Slot Hi  Jh ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5500 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 48g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 24g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 24g Poe  370w  Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 8g Poe  65w  Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 8g Poe  180w  Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7502jd242c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7503jd240c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7506jd239c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7510jd238c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5500 24g Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5950 32qsfp28  Jh321a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Ff 5950 32q28 Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5940 48sfp  6qsfp28  Jh390a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.264', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hpe Ff 5940 48xgt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5940 48sfp  6qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5940 2 Slot  Jh397a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5500 48g Poe  Ei Jg240a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5940 4 Slot  Jh398a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5500 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5500 24g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7503', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 48g Si2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 24g Poe  Si2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 48g Poe  Si2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5120 24g Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.33', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5120 48g Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5120 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 48g Ei Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 48g Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 9505', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7506', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 9508v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 9508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 9512', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 12508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 12518', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hp 12504 Ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5800af 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexfabric 5820af 24xg  Jg219a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7506 V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 6125g Xg Blade Switch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 3100 8 Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 3100 16 Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A3100 24 V2 Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A3100 8 V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A3100 16 V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A3100 24 V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 3100 8 Poe Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 3100 16 Poe Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7510', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 3100 24 Poe Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 24g Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 24g Poe Plus Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 24g Sfp Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 48g Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 48g Poe Plus Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 48g Poe Plus Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5820x 14xg Sfp  Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5820x24xgsfpplustaa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 24g Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A36002polt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 48g Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 24g Poe  Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5120 48g Poe  Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 24g Sfp Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 24g Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 48g Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 24g Poe  Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5500 48g Poe  Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5920af 24xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5830af 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1905 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A5830af 96g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 16g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 24g  Je006a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 24g Poe 365w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade V1910 24g Poe  170w   Je008a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 1910 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 10504', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 10508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 10508v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 10512', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hp 1905 24 Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hp 3600 24 V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A3600 48 V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 3600 24 Poe  V2 Ei  Jg301c ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 3600 48 Poe  V2 Ei  Jg302a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hp A3600 24 Sfp V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 3600 24 V2 Si  Jg304a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork A3600 48 V2 Si Jg305a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A3600 24 Poe  V2si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork 3600 48 Poe  V2 Si  Jg307c ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A3100 48 V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hp A Msr900', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2040', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr 10038', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr 100414', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr2004 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr2004 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hsr6602g Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hsr6602xg Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr1002 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr3010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr935', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.110', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.114', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr2003 Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3024 Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3044 Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr933', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.115', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr931', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.116', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.72', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr1003 8s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr932', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr932w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr3011e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr932wna', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr9328', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr9328w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr9328wna', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hsr6802 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hsr6804 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hsr6808 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930 4g Lteg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930 4g Ltea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr3011f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr954', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.130', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr954 W', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr954 W Lte Am', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr954 W Lte', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr958', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr958poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930gb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr931b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr931dgb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr935b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930wnab', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A Msr30 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 60', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr5040', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr5060', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr920', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A6602', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A6604', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A6608', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A6616', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr900w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr900wna', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr920w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr920wna', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2012w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2012tw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2012twna', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2013w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2013wna', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2020s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2021s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2040s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr3010dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 16 Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 20 As', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 20 Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2011', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 20 Dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 40 As', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 40 Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 40 Dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 60 As', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 60 Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr30 60 Dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr5040dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr5060dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A8805', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2012', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A8808', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A8812', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Aoapficv2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Aoapmimv2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Aoapsmimv2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hp Msr2003', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Flexnetwork Msr3012 Ac  Jg409a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3012dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3024ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3024dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2012t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3024poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3044', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr3064', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr4060', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr4080', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hsr6602 G  Jg353a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hsr6602 Xg  Jg354a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hsr6802', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hsr6804', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Hsr6808', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2013', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr931g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr9304gltev', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr933g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr935w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr935g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr936w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr9304glteg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930le', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930gle', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr931le', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr931gle', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr931ggle', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr930wle', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Amsr2021', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr933le', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr933gle', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr935le', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr935wle', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr935gle', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Msr9304gltegle', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Awa2610eagnfat', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A3000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A3000elsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Awa3620agn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Awa3622agn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Awa3610gn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Awa2620xagn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3024ewcm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3024elsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Awa2620eagnfat', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Lsu3wcmd0taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3024etaawcm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3024etaalsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3010etaawcm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Wx3010etaalsw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Awa2620agnfat', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 7500 Lsqm 3wc Mb0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade A9500lsrm2wcm2a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 Lswm 2wc M10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade 5800 Lswm 2wc M20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Awx5004ewpxz65004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Awx5002ewpxz75002', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladeimfwii', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelst1fw2a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelst1lb1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelst1nsm1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelswm1fw10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladespefwm200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Af5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Af1000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Au200s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Au200a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Af1000sei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladeimssl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Af1000aei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade F5000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade F5000s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vfw1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Vmsgvlb1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladeimlb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsq1fwbsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsqm1lbc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsq1nsmsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsr1fw2a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsr1lb1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Secbladelsr1nsm1a1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr07srpud3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.3.1.9.4.1065', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Brocade Sr07mpua3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.3.1.9.4.1066', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Cisco', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco GS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2000', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 763', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Switch Module 3012', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1000', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.999', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3125G', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3125X', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco TSPRIG2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4928 10GE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 48TT S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 8TC S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3400EG 2CS A', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3400EG 12CS M', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3400E 24TS M', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1009', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 764', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IPS SSC 5 Virtual', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SR 520FE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SR 520ADSL', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SR 520ADSLI', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MWR 2941 DC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1014', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560 12PC S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1015', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 48PST L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1016', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR9010', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1017', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR9K', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1018', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560V2 24DC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1019', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 765 Isdn Access Router', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560V2 24TS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1020', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560V2 24PS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1021', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750V2 24TS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1022', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750V2 24PS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1023', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560V2 48TS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1024', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560V2 48PS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750V2 48TS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1026', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750V2 48PS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1027', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Hwic CABLED2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1028', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Hwic Cable EJ2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1029', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 766 Isdn Access Router', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1430', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1030', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR 1430', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1031', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NAM 2204', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1032', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NAM 2220', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1033', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1142N T K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1034', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1142', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1035', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 14000 4S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1036', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 14000 8S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1037', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1800 Series', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1038', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IPS SSC 5', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1039', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2520', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887V', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1040', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3945', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1041', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3925', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1042', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2951', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1043', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2921', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1044', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2911', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1045', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2901', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1046', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1941', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1047', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SM ES2 16 P', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1048', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module SM ES3 16 P', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1049', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2522', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module SM ES3G 16 P', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1050', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module SM ES2 24', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1051', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module SM ES2 24 P', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1052', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module SM ES3 24 P', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1053', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module SM ES3G 24 P', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1054', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SMXD2K48ES2SFP', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1055', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module SMXD3K48ES2SFPPOE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1056', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module SM D ES3G 48 P', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1057', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW 520 24PK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1058', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW 540 24PK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1059', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2524', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW 520 48PK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1060', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW 520 24K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1061', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW 540 24K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1062', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW 520 48K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1063', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW 540 48K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1064', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1065', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.902', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.903', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.904', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.905', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UC 520', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1066', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2975GS48PSL', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1067', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst C2975STACK', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1068', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5508 Wireless Controller', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1069', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco LS1010', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SR 520 T1', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1070', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C3900 POE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1071', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C3900 AC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1072', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C2921 POE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1073', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C2921 AC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1074', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C2911 POE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1075', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C2911 AC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1076', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C2901 POE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1077', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C2901 AC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1078', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C1941 POE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1079', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7206', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C3900 DC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1080', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C2921C2951 DC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1081', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C2911 DC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1082', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco RPS Adptr C2921', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1083', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco RPS Adptr C2911', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1084', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IPS SSC2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1085', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IPS SSC2VIRTUAL', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1086', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst BS3140XS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1087', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst BS3140GS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1088', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst BS3042FSC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1089', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AS5200', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst BS3150XS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1090', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst BS3150GS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1091', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst BS3052NEC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1092', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst BS3140 Stack', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1093', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst BS3150 Stack', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1094', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1941W', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1095', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C888E', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1096', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888EG', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1097', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888EB', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1098', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888EF', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1099', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Agsplus Lightstream ATM Switch', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.11', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3640', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888SRST', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5505W', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3845NV', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3825NV', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2350 48TD S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1105', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.847', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG250', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG226E', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco DSIBM8GFCK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco DSHP8GFCK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3500', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco DSDELL8GFCK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco DSC9148K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Cevirtualblade', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Cdscde 420', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Cdscde 220', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Cdscde 110', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 1002', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1116', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.923', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Secure Access Control System', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 861NPE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881NPE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WSX3011', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881GPE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887NPE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888GNPE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 891NPE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP3501', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 3502', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CDS CDE400', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SA520K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SA520WK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1601', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SPS 2004B', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SPS 204B', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UC560T1E1K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UC560BRIK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UC560FXOK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AP 541N AK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AP 541N EK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AP 541N NK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887GV', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887SRST', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1139', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.851', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1602', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UC540WFXOK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UC540WBRIK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Caserver', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Camanager', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3925E ISR', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3945E ISR', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 24LC S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 24PC S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 48PST S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRE 300 ISM', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1603', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SM', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmeaxp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aimaxp', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIM2AXP', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRP 521', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRP 526', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRP 527', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRP 541', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRP 546', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRP 549', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1604', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VS510 FXO', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmwae 900', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmwae 700', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5940RA', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5940RC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 1001', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 1013', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Cdscde 205', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR1941 AC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NAM Virtual Blade', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 1601', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco RAIE1783 RMS06T', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco RAIE1783 RMS10T', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1941W E K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1941WPK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1941WNK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MXE 5600', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW540 8PK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW520 8PK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4948E', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 24TS S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 1602', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 48TS S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 48FPD L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1181', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1690', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 48LPD L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1182', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1691', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 48LTD L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 24PD L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1184', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1693', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 24TD L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1185', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1694', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 48FPS L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1186', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1695', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 XS 48 Lpsl', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 24PS L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1188', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1697', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 48TS L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1189', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1698', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 1603', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 24TS L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1190', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1699', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1921', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1905 ISR', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C1921C1905 AC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP 10', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP 20', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X 40', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X 60', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X 10', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA5585 S20X K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7010', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.12', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 1604', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP 40 SC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP 60 SC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP 10 SY', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP 20 SY', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP 40 SY', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP 60 SY', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3945E SPE250', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3945SPE200', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 48LPS L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1208', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1264', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco OE NM302', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WSX5301', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NME WAE 502 K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco OE NM522', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRE 700 SM', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRE 900 SM', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Virtual Switch NAM', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MWR 2941 DCA', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus C7018', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus C7010', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 4000', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1218', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1219', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.903', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3620', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1941WCK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CDS CDE2202S3', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 24 Port', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1222', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 48 Port', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1223', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560X 24T', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560X 48T', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560X 24P', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560X 48PF', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 3620 Multiservice Branch Office Router', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmeair', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ACE 30 K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 IPS', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP IPS20', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP IPS40', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP IPS60', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1841CK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2801CK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2811CK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2821CK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 3640 Multiservice Branch Office Router', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2851CK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3825CK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3845CK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3825CNVK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3845CNVK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CGS 2520 24TC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CGS 2520 16S 8PC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1262', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1261', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 892F', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7204', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3600 24FS M', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3600X 24TS M', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3800 24FS M', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CGR 2010', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR CGR2000CGS2500POE AC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR CGR2000CGS2500POE DC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 48TS S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 24TS S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 48FPD L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 48LPD L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 771 Isdn Access Router', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 48TD L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 24PD L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 24TD L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 48FPS L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 S 24 Port PSL', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 48TS L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S 24TS L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1906CK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1042', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 772 Isdn Access Router', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1041', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VA', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1271', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1274', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1855', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 867VA', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 886VA', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1273', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WS SVC ASA SM1 K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5500 Series', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1276', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960C PD 8TT', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2504 Wireless Controller', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 775 Isdn Access Router', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISM AXP', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SM AXP', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AXP SM SRE900', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1282', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AXP SM SRE700', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AXP ISM SRE300', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Cdsa VSM', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4507R E', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1286', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.876', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4510R E', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1287', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.877', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AXP NME302', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AXP NME502', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1289', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 776 Isdn Access Router', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AXP NME522', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1290', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ACE 20 K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1291', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2360 48TD S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1292', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WISM2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1293', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CDS CDE250', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1294', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Flex 7510', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1295', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ANM Virtual Appliance', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1296', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ECDS3100', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1297', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ECDS1100', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1298', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881G2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1299', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.13', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2502', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 V 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Vwaas', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1301', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1681', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X 10007', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1302', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1306', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1310', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X 20007', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1303', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1307', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1311', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X 40007', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1304', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1308', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1312', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X 80007', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X 60007', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1309', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1313', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2504', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRE Smnam', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960C 8TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960C 8PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560C 8PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560C 8TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1318', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 3010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1319', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2506', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco RAIE1783 RMSB10T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco RAIE1783 RMSB06T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X IPS Security Services Processor 10 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1323', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X IPS Security Services Processor 20 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1324', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X IPS Security Services Processor 40 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 X IPS Security Services Processor 60 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4948E F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1327', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2928 24TC C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1328', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2928 48TC C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1329', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2928 24LT C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1330', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CRS 16SB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1331', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Quad', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1332', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA SM1 K7 SC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1334', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA SM1 K7 SY', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1335', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA SM1K7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1336', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR CGR2010AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR CGR2010DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1338', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861E UC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1339', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1340', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2510', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861E Srst F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1341', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861E Srst B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1342', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861E Srst CF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1343', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861E Srst CB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1344', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Connected Grid 6 Port Ethernet Switch Module  ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1346', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Grwic D ES 2S 8PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1347', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UC Virtual Machine', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1348', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Wave 8541', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1349', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2512', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Wave 7571', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1350', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Wave 7541', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1351', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Wave 694', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1352', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Wave 594', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1353', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Wave 294', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1354', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5915RC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1355', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5915RA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1356', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 867VAEK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1358', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 866VAEK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1359', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2513', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 867VAE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1360', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 866VAE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1361', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AP802 Integrated Access Point', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1363', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960C 8TC S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1364', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960C 8TC L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1365', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960C 8PC L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1366', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960C 12PC L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1367', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560CPD 8PT S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1368', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1841VE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1369', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2515', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2811VE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1370', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881W A K9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1371', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881WEK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1372', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881WPK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1373', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 886VAWEK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1374', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VAMWEK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1375', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VAWAK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1376', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VAWEK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1377', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819GU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819GS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1379', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2517', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819GV', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1380', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819GB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1381', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819G7A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1382', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819G7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1383', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819HGU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1384', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819HGS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1385', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819HGV', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1386', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819HGB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1387', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819HG7A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1388', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819HG 7 K9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1389', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2518', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 886VAG7K9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1390', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VAGSK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1391', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C887VAG 7 K9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1392', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VAMG7K9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1393', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888EG7K9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1394', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881GUK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1395', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881GSK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1396', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881GVK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1397', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881GBK9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1398', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881G7K9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1399', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 4500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.14', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2014', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2523', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881G7AK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1400', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1404', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1405', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1406', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5512 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1407', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5525 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1408', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1412', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5545', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1409', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1445', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1450', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2525', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5555 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1410', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1414', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5512SC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1411', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5545 Security Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1413', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5512SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1415', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5515SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1416', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5525SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1417', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5545SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1418', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5555SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1419', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 4700', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5515 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1420', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5515', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1421', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Prime Collaboration Manager', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1422', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Identity Services Engine  ISE 3315 K9 ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1423', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISE3395', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1424', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISE3355', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1425', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Identity Services Engine  ISE VM K9 ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1426', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PROCPA771', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Ecdsvb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1432', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP IPS10 Virtual', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1437', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP IPS20 Virtual', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1438', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP IPS40 Virtual', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1439', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PROCPA772', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 SSP IPS60 Virtual', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1440', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR903', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1441', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5512 K7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1442', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5515 K7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1443', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5525 K7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1444', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5555 K7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1446', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5512 K7 SC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1447', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5515 K7 SC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1448', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5525 K7 SC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1449', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PROCPA775', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5555 K7 SC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1451', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5512 K7 SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1452', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5515 K7 SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1453', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5525 K7 SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1454', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5545 K7 SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1455', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5555 K7 SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1456', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 5500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1457', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco XFP10GER', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1462', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco XFP10GLR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1463', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco XFP10GZR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1464', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560C 12PC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1465', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560C 8PC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1466', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Crsfabbp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1467', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 4TS L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1468', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE2000 4T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1469', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO316T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 4TS G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1470', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE2000 4TG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1471', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 8TC L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1472', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 8TC G L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1473', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 16TC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1474', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 16TC G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1475', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix MS06S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1476', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS06T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1477', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS06SG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1479', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO316C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell IA Base Industrial Ethernet 2000 SWI ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1480', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS06TG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1481', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS10C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1483', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS10CG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1485', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS10CGP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1487', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS10CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1488', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS20C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1489', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO3116', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS20CGL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1491', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS20CGP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1492', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS20CGPK', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1493', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819HG 4G G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1494', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819G 4G A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1495', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819G 4G V K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1496', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR9000LC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1497', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1498', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1499', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1500', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2102', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.15', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2015', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst116T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR9000PA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1502', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1503', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1504', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1505', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1506', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst116C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Cimc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1512', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1513', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1682', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1683', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1864', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1932', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2178', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2179', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2415', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2424', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2492', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2493', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C250 UCS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1514', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C260 UCS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1515', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C460 UCS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1516', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix MS06SA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1519', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst1116', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 16TC GX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1520', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 901', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1521', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1522', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRE 910 SM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1523', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SRE 710 SM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1524', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 1002 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1525', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Connected Grid Router 2010 K9 China SKU With  ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1526', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NAM 2304', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1527', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Prime NAM 2320 Appliance', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1528', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NAM 3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1529', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AS2509', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819HG 4G A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1530', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819 Hardened ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1531', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CSR 1000V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1537', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1538', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco FLOWAGENT3000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1539', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AS2511', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Telepresence MCU 5310', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1540', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Telepresence MCU 5320', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1541', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888EA ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1542', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG350', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1557', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1120 Connected Grid Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1558', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1240 Connected Grid Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1559', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881GW 7 A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1560', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881GW 7 E K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1561', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881GW S A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1562', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881GW V A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1563', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VAGW 7 A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1564', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VAGW 7 E K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1565', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881WD A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1566', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881WD E K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1567', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VA WD A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1568', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VA WD E K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1569', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MC3810 V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819 Hardened 3G With Dual Radio 802.11N Wifi  ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819HK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1575', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819 Hardened Dual Radio 802.11N Wifi Integrat ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1576', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 812G7K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1578', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 812GCIFI7EK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1579', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 812GCIFI7NK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1580', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 812GCIFIVAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1581', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 812GCIFISAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1582', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CDE 205 2S6', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1595', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2202', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.16', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2016', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1503', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1600', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VA V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1601', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VA VW', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1602', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5921 Embedded Services Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1604', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4500X 16', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1605', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4500X 32 SFP ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1606', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5930 Embedded Services Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1609', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1502', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 NM20X1GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1610', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CDS CDE Generic', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1611', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 8500 Wireless Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1615', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3600X 24CX M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1616', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 NM8X10GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1617', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5585 NM4X10GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1618', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 4400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1619', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AS5300', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C892FSP ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1620', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C898EA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1621', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 897VA M K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1622', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C897VAM W E K9 Router With 1 Giga Ethernet WA ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1623', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C897VAW E K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1624', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 897VAW A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1625', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 897VA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1626', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C896VA Integrated Services Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1627', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Virtual Wireless Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1631', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS E140S M1E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1638', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9001', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1639', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco LS1015', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9922', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1640', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 48P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1641', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 24P E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1642', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 48T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1643', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 24T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1644', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5760 WLC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1645', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP 2601', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1647', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S F48FPS L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1649', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2501 Fradfx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S F48LPS L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1650', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S F48TS L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1651', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S F24PS L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1652', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S F24TS L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1653', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S F48TS S Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1654', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960S F24TS S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1655', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1601', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1656', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP2600', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1657', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CRS 8SB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1658', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR SAP2602E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1659', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2501 Lanfradfx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR SAP1602E C K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1660', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR CAP3602I C K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1661', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP3601', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1662', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 1550 Series Outdoor Mesh Access Point ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1664', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1665', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C3560E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1666', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2502 Lanfradfx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 867VAE W A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1676', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 867VAE W E K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1677', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 867VAE POE W A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1678', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SM X ES3 24 P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1679', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WSX5302', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SM X ES3D 48 P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1680', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS C22', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1684', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS C24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1685', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 1002 XC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1688', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco FASTHUB216T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 48TD L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1692', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 48LPS L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1696', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2501', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.17', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2017', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2908 XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2960X 24PSK L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1700', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 48LPS S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1701', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 24PS S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1702', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 48TS LL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1703', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960X 24TS LL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1704', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 4441', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1705', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 4442', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1706', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 4451 X ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1707', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 4452', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1708', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9912', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1709', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2916 XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560X 48U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1710', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560X 24U S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1711', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750X 24U E Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1713', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 8TC G N', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1714', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 16TC GN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1715', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1605', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 901TENGIGDCE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1724', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 901TENGIGACE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1725', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 901TENGIGDC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1726', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 901TENGIGAC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1727', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 16PTC G L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1729', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12012', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 16TC GEP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1730', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 16TC GN XP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1731', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 45XX VSS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1732', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS20CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1733', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix BMS12T4E2CG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1734', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Stratix BMS12T4E2CG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1735', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9710', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1738', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1739', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1740', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1327', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9250I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1741', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1742', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1743', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 38XX Switch Stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1745', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG202XM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1746', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG204XM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1747', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 Plus 48PST L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1748', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 Plus 24PC L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1749', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 1912C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 Plus 24LC L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1750', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 Plus 48TC L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1751', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 Plus 24TC L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1752', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 Plus 48PST S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1753', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 Plus 24PC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1754', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 Plus 24LC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1755', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 Plus 48TC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1756', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 Plus 24TC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1757', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 4S TS G L Industrial Ethernet Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1758', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 4S TS G Industrial Ethernet Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1759', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MICROWEBSERVER2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9904', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1762', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 2600X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1763', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6807 XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1765', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3600X 24CXE M Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1766', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 24U E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1767', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 48U E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1768', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG310', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1769', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Fasthubbmmtx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG320', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1770', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Fasthubbmmfx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6880 XLE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1784', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 7246', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48FPD I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1797', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48LPD I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1798', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48TD I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1799', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2502', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.18', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2018', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 6400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 24PD I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1800', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 24TD I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1801', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48FPS I Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1802', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48LPS I Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1803', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48TS I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1804', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 24PS I Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1805', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 24TS I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1806', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48FPD L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1807', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48LPD L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1808', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48TD L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1809', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 24PD L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1810', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 24TD L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1811', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48FPS L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1812', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48LPS L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1813', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 48TS L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1814', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 24PS L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1815', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960XR 24TS L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1816', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS C460M4 Rackserver', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1817', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 901S 4SG F D Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1818', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 901S 3SG F D Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1819', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 901S 2SG F D Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1820', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 901S 3SG F AH Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1821', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 901S 2SG F AH Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1822', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 24TS E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1823', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 48TS E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1824', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 24PS E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1825', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 48PS E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1826', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 24TD E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1827', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 48TD E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1828', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 24PD E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1829', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2924 XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 48PD E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1830', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 Stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1831', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE2000 U4STSG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1839', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2924 CXL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE2000 U16TCGP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1840', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 8T 67B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1841', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 16T 67B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1842', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 24T 67B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1843', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 8T 67P GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1844', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 16T 67P GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1845', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2610', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 6008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1851', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C881', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1852', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C886VA Integrated Services Routers', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1853', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C887VA M K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1856', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1857', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 891F ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1858', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C891FW A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1859', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2611', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C891FW E K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1860', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR1001 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1861', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NAM Nexus 7K Service Blade', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1865', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6800IA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1866', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1867', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE2000 U4TG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1868', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE2000 U4TSG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1869', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2612', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000U 8TC G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1870', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000U 16TC G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1871', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE2000 U16TCGX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1872', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP3702', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1873', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP 702', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1874', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1530', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1875', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Prime Virtual Network Analysis Module  Esxi ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1876', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Prime Virtual Network Analysis Module  KVM ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1877', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 24S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1879', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AS5800', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 12S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1880', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 48PQ E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1881', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 48TQ E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1882', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SC3640', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 902', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1897', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 1200 4S A Ethernet Access Device', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1899', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2503', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.19', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2019', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 8510', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Asav', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1902', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 904', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9508', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1915', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1467', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93128TX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1923', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1510', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9396TX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1924', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1509', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9396PX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1925', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1508', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2514', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1930', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS EN120S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1931', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS EN120E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1933', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 68XX VSS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1934', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 4431 ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1935', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6880 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1936', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3204', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1937', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 2702', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1938', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 4016', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1939', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7202', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1940', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1003', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1941', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2516', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1942', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1020', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1943', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1944', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7507', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1945', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7513', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1946', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7506', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1947', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7505', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1948', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1005', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1949', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2613', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 4700', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1950', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 1003', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1951', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 1004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1952', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 1005', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1953', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 1020 Serial Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1954', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2500PCE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1955', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2501', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1956', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2503', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1957', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2505', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1958', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2507', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1959', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 8515CSR  Campus Switching Router ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2509', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1960', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2511', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1961', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2514', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1962', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2516', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1963', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2519', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1964', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 2521', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1965', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 4500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1966', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2517', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1967', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2518', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1968', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2519', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1969', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst9006', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2520', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1970', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2521', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1971', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2522', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1972', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2523', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1973', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2524', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1974', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2525', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1975', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 751 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1976', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 752 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1977', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 753 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1978', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst9009', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 751 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1981', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 752 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1982', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 753 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1983', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 741 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1984', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 742 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1985', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 743 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1986', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 744 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1987', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 761 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1988', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 762 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1989', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco RPM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 765 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1992', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 766 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1993', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 741 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1994', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 742 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1995', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 743 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1996', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 744 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1997', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 761 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1998', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 4351 ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1999', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2504', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.20', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2020', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1710', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Router XGS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2003', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IGS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2005', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2006', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 4000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2007', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 897VAB K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1720', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 8540MSR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2505', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2021', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2506', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2022', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2507', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2023', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2508', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2024', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5700 WLC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Airct 57006 WLC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2026', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2511', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2027', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2512', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2028', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2513', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2029', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 8540CSR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7576', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 897VAMG LTE GA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2045', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 899G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2046', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 899GLTENA 4G LTE  ATT   Canada  Router With 2 ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2048', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C899 Secure Gigabit Ethernet With Multi Mode  ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2049', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2308', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3660', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819G 4G NA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2050', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C898EAG LTE GA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2052', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 897VAG LTE GA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2053', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 896VAGLTEGA 4G LTE Global Europe   Australia  ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2055', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 899G LTE GA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2056', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881G 4G GA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2057', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887VA G4GGA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2058', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819G 4G GA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2059', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1401', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819G 4G VZ K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2060', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2062', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 24PS L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2066', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5760 Wireless Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2067', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 4331 K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2068', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4000 4TC4G E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2069', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4000 8T4G E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2070', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE25008S4GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2071', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4000 4T4P4G E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2072', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4000 16T4G E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2073', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4000 4S8P4G E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2074', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4000 8GT4G E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2075', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE25008GS4GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2076', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE25004GC4GP4GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2077', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4000 16GT4G E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2078', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4000 8GT8GP4G E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2079', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2620', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4000 4GS8GP4G E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2080', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS4C4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2081', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS8T4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2082', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS8S4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2083', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS4T4E4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2084', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS16T4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2085', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS4S8E4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2086', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS8TG4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2087', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS8SG4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2088', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS4EG8CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2089', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2621', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS16TG4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2090', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS8TG8EG4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2091', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS4SG8EG4CGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2092', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 4321 ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2093', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Edge 340 Series', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2095', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR901 AC 10GS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2098', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR901 DC 10GS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2099', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 7223', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 24SZ IM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 24TZ M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR809G LTE ST K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR809G LTE VZ K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR809G LTE GA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR809G LTE NA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR829GW LTE VZ AK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 6400NRP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR829GW LTE GA EK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR829GW LTE NA AK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506SC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506W', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506WSC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506WSY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 801', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5508 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5508', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5508SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506K7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506K7SC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506K7SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5508K7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5508K7SC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5508K7SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 1702', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 802', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560CX 8PT S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560CX 8XPD S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560CX 12PD S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2132', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560CX 12TC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560CX 12PC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560CX 8TC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560CX 8PC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960CX 8TC L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2911 T Integrated Services Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Secure Network Server 3495', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 803', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Secure Network Server 3415', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CBR 8', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 1006 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 1009 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP 702W', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 891 24X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS EN120E54', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 804', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS EN120E108', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS EN120E208', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 4SZ D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 8SZ 0A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 12CZ A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 12CZ D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 4SZ A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1750', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 10SZ 0D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco TSCODECG3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 12 XS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 24XS E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 48XS E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 12 X 48U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3850 24 XU', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2924 XLV', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5520 Wireless Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 8540 Wireless Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS8TG4CGR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS8SG4CGR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS4EG8CGR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS16TG4CGR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS8TG8EG4CGR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 HMS4SG8EG4CGR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2924 Cxlv', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS C3160', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1941W T K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS C3260', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS E160DM2K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS E180DM2K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2912 XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960CX 8PC L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1941W I K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2924 MXL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2912 Mfxl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7206 VXR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C841M 4X ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7204 VXR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C841M 8X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 5000 12S12P 10G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 IMS28NAC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 IMS28NDC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 IMS28RAC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 IMS28RDC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Apic Server L2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 907 Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1538M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506H X With Firepower Services', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5516 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5516SC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5506HSY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5516SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 12SZ IM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1548M Micro Switch 10 100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 1850', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR1002 HX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 4009', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco FASTHUB100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IOS XRV 9000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2264', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Secure Network Server 3515', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Secure Network Server 3595', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6816 X LE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2273', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6832 X LE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2274', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6824 X LE 40G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6840 X LE 40G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 12X48UR L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 8X24UQ L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGX 8850', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 12X48UZ L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 12X48UQ L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Prime NAM 2420 Appliance', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2282', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Prime NAM 2440 Appliance', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 9300 Security Appliance', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 9000 Security Module 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 9000 Security Module 36', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGX 8830', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 48FQM S Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2290', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3650 24PDM L Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2291', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower Ngfw 4150', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2292', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower Ngfw 4140', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2293', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4120', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2294', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower Ngfw 4110', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2295', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 5000 16S12P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2296', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 8510MSR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5508TD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5516TD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Prime Infrastructure', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2307', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819G LTE MNA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2309', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 8515MSR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4110 Security Module 12', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2313', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4120 Security Module 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4140 Security Module 36', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4150 Security Module 44', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5001', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5002', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2318', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower Virtual Appliance', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IGX8410', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR901 CC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR901 E CC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR901 DC 10G CC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR901 E DC 10G CC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2323', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR901 DC 10GS CC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2324', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 12SZ IM CC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 4201', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 4202', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2327', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 4206', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2328', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 4216', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2329', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IGX8420', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 1000 4T1T LM Industrial Ethernet Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2330', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 1000 6T2T LM Industrial Ethernet Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2331', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 1000 4P2S LM Industrial Ethernet Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2332', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 1000 8P2S LM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2333', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IGX8430', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 897VAGW LTE GAE K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2345', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 886VAG LTE GA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2346', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 1002', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2347', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 1001 HX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2348', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5508', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2349', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IGX8450', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5501 SE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2350', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5502 SE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2351', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Unified SIP Proxy', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2352', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 897VAG LTE LA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2356', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 819 NON Hardened 4G LTE M2M With Dual Radio 8 ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2358', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 8TS LL Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2360', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 8PS LL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2361', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 16TS LL Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2362', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 16PS LL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2363', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 24TS LL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2364', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 24PS LL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2365', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst C2960L 48TS LL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2366', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 48PS LL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2367', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4010 4S24P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2368', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 4010 16S12P Industrial Ethernet Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2369', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco BPX8620', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 2800', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2370', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 1830', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2371', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 1810W', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2372', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 3800', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2373', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 1560', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2374', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Encs 5406', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2375', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Encs 5408', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2376', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Encs 5412', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2377', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 867VAE K9 V2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco BPX8650', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 867VAE V2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2380', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 899G LTE LA K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2381', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco BPX8680', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9910', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2390', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2392', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 9800 Wireless Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2391', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2530', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 4221 ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2395', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2396', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst CDB 8U Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2398', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst CDB 8P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2399', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Cacheengine', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5501', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2400', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5502', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2401', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 4216 F2B SA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2402', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 829 4G LTE Industrial Integrated Service Rout ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2403', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower Ngfw 2110', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2404', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 2120', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2405', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 2130', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2406', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 2140', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2407', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Isrv', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2408', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 9000 Security Module 44', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2409', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR829', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2410', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5011', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2411', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5504', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2413', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS E180DM3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2416', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS E1120DM3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2417', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9500 12Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2418', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9500 24Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2419', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Bpxses', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9500 40X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2420', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 1001', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2423', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 809 4G LTE Industrial Integrated Service Rout ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2426', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3504 Wireless Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2427', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 55A1 36H SE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2428', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 55A1 36H S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2429', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Igxses', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5501 HD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2430', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5501 HD S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2431', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 55A1 24H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2432', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 4216 F2B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2434', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Localdirector', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1111 8P ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2443', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1111 8PLTEEA ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2444', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PLTELA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2445', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PWE Router With Wlan E Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2446', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2464', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1111 8PWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2447', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PWA Router With Wlan A Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2448', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PWZ Router With Wlan Z Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2449', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 805', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PWN Router With Wlan N Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2450', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PWQ Router With Wlan Q Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2451', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PWH Router With Wlan C Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2452', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PWR Router With Wlan R Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2453', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PWF Router With Wlan K Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2454', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PLTEEAWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2455', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PLTEEAWB Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2456', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PLTEEAWA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2457', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PLTEEAWR Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2458', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PLTELAWZ Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2459', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3508 XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PLTELAWN Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2460', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PLTELAWQ Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2461', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PLTELAWH Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2462', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 8PLTELAWF Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2463', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3512 XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3524 XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 914', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2480', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS FFC2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2481', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 4KF', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2482', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 1010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2483', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS S3260', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2487', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 1815', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2489', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1407', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 1540', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2490', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300 24P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2494', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 24TQ LL Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2495', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 48TQ LL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2496', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 24PQ LL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2497', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960L 48PQ LL Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2498', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst C9404R', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2499', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2509', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1417', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9407R', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2500', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9410R', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 903U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2502', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 902U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2503', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920U 16SZ IM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2504', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2505', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1111 4PLTEEA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2506', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PLTELA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2507', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PWE Router With Wlan E Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2508', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PWB Router With Wlan B Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2509', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PWA Router With Wlan A Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2510', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PWZ Router With Wlan Z Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2511', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PWN Router With Wlan N Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2512', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PWQ Router With Wlan Q Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2513', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PWH Router With Wlan C Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2514', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PWR Router With Wlan R Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2515', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PWF Router With Wlan K Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2516', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111 4PWD Router With Wlan D Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2517', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1116 4P Router With Vdsl Adsl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2518', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1116 4PLTEEA Router With Multimode Europe AN ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2519', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6130', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4P Router With Vdsl Adsl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2520', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1116 4PWE Router With Wlan E Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2521', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1117 4PLTEEA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2522', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PLTELA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2523', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PWE Router With Wlan E Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2524', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PWA Router With Wlan A Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2525', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PWZ Router With Wlan Z Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2526', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PM Router With Vdsl Adsl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2527', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PMLTEEA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2528', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PMWE Router With Wlan E Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2529', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 6260', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1112 8P Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2532', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1112 8PLTEEA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2533', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8P Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2534', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PM Router With Vdsl Adsl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2535', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PLTEEA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2536', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PLTELA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2537', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PMLTEEA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2538', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PWE Router With Wlan E Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2539', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Opticalregenerator', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PWA Router With Wlan A Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2540', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PWZ Router With Wlan Z Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2541', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PMWE Router With Wlan E Domain', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2542', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PLTEEAWE Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2543', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PLTELAWE Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2544', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PLTELAWZ Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2545', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1114 8P Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2546', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1114 8PLTEEA Router With Multimode Europe AN ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2547', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1115 8P Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2548', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1115 8PLTEEA Router With Multimode Europe AN ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2549', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 924', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1115 8PM Router With Vdsl Adsl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2550', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1115 8PMLTEEA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2551', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1118 8P Router C11188P ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2552', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1116 4PLTEEAWE Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2554', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PLTEEAWE Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2555', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PLTEEAWA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2556', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PLTELAWZ Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2557', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1117 4PMLTEEAWE Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2558', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 807 Industrial Integrated Services Routers', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2559', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst WSX6302MSM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 807 4G LTE Industrial Integrated Service Rout ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2560', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2561', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS E180DM3K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2562', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS E1120DM3K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2563', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300 48UN SVL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2564', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9500 32C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2566', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2567', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9500 48Y4C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2568', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2688', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 5000 Series Router Switch Feature CA ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 55A2 MOD SE S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 55A2 MOD S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2571', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9906', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2572', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9500 24Y4C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2573', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 24P 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2574', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 48P 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2575', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 24PXG 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2576', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 24PXG 2Y', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2577', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 48PXG 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2578', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 48PXG 2Y', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2579', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6000 Series Module Switch Feature CA ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.258', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.301', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.557', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200 24T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2580', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 24T 4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2581', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 48T 4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2582', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 24T 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2583', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 48T 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2584', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200 48T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2587', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200 24P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2588', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200 48P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2589', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7120 QUADT1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9500 16X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2592', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 95XX Switch Stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2593', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2510', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7120 T3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR829M LTE LA ZK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2609', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7120 E3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR829M 2LTE EA BK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2610', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 8812', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2616', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 8808', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2617', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 8804', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2618', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 2PLTEGB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2619', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7120 AT3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 2PLTEUS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2620', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 2PLTEVZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2621', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2622', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 2PLTEAU', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2623', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 2PLTEIN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2624', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2625', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2626', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEPWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2627', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEPWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2628', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEPWD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2629', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7120 AE3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEPWZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2630', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEPWA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2631', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEPWH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2632', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEPWQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2633', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEPWR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2634', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEPWN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2635', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1101 4PLTEPWF', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2636', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2637', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2PWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2638', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2PWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2639', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7120 SMI3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.264', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2PWD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2640', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2PWZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2641', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2PWA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2642', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2PWH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2643', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2PWQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2644', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2PWN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2645', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2PWR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2646', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1109 4PLTE2PWF', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2647', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9606R', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2648', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7140 Dual T3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1112 8PWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2652', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1112 8PLTEEAWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2653', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2654', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PLTEEAWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2655', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1113 8PLTELAWA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2656', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1116 4PLTELA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2657', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9901', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2658', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7140 Dual E3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IR1101', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2661', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 1020', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2663', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 94XX Switch Stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2664', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1111X 8P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2668', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 9800 80 Wireless Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2669', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7140 Dual ATM T3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 4800', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2670', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 12SZ D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2678', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 12SZ A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2679', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7140 Dual AE3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR 4461', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2680', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 3300 8T2S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2685', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 3300 8P2S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2686', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7140 Dual MM3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG450', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2693', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9200L 24P 4G E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2694', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 92XX Switch Stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2695', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 827', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.270', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 920 20SZ M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2705', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C921 4PK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2708', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C931 4PK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2709', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 7246 VXR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C921J 4PK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2715', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ISR C926 4P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2718', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 10400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C931J 4PK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2727', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12016', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.273', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 1840', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2730', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 55A2 MOD HD S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2735', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS C125', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2737', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WSC6506E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2738', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WSC6509E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2739', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AS5400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.274', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 1004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2740', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 560', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2744', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2948G L3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1121X 8P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2752', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1161X 8P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2754', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 9000 SM56', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2757', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7140 Octo T1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1127 8PLTEP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2762', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C1121 4P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2764', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7140 Dual FE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco C891FJ K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2771', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 9000 SM40', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2772', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 9000 Security Module 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2773', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4115 Security Module 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2774', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4125', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2775', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2778', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4145', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2776', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4145 K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2777', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4115', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2779', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3548 XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300 24S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2780', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300 48S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2781', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Secure Network Server 3615', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2784', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Secure Network Server 3655', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2785', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Secure Network Server 3695', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2786', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 55A2 MOD HX S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2787', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 24T 4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2792', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 48T 4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2793', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 24T 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2794', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 48T 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2795', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 24P 4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2796', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 48P 4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2797', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 24P 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2798', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 48P 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2799', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6006', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.280', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1938', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 24UXG 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2800', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 48UXG 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2801', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 24UXG 2Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2802', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 48UXG 2Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2803', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L Switch Stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2804', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6009', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.281', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1939', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6506', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.282', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1945', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6509', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.283', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.510', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1944', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 5064', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2843', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGMTENGINE1100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9120AX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2850', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MC3810 V3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 9800 L Wireless Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2860', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2861', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 55A1 48Q6H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2866', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 55A1 48T6H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2867', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3524 Txlen', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9606R Switch Stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2871', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7507Z', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7513Z', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.289', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4112 K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2899', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7507MX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.290', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CSP 5228', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2902', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7513MX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.291', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 912C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.292', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 912S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.293', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 914', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.294', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 802J', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.295', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 1000 24T 4G L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2959', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 804J', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.296', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 8200 1N 4T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2961', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 6160', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.297', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4908G L3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.298', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 L28Z4 Sysa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2981', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 L28Z4 Sysd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2982', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 L16Z4G8Q2 CA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2983', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 L16Z4G8Q2 CD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2984', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 L12Z20G Sysa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2985', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 L12Z20G Sysd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2986', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 L12Z16G Sysa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2987', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 L12Z16G Sysd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2988', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 8300 1N1S 6T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2989', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 6015', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.299', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 8300 1N1S 4T2X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2990', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Firepower 4112 SM12', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2991', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 48PF 4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2992', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 9300L 48PF 4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2993', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst WSX4232 L3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 Lfhcsr SYS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 Lfhagg SYS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 LFHIP65 SYS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 3300 8T2X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 3300 8U2X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3009', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NCS 540 X16G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7750MRP200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.302', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 1000FE 24T 4G L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3021', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7750SSP80', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.303', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGX 8230', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.304', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGX 8250', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CVA122', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 8500L 8S4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3069', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CVA124', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.307', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9903', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3075', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AS5850', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.308', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 700', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.309', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2515', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6509SP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.310', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGX 8240', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.311', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4840G L3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.312', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AS5350', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.313', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7750', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGX 8950', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 925', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR10012', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst4KGATEWAY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.318', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2650', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3101', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2651', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 826 Quadv', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 826', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950 12', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.323', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.324', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950C 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1751', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IAD 1730 8FXS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.327', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IAD 1730 16FXS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.328', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 626', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.329', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3102', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 627', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.330', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 633', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.331', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 673', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.332', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 675', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.333', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 675E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.334', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 676', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.335', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 677', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.336', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 678', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3661AC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.338', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3661DC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.339', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3103', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3662AC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.340', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3662DC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.341', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3662ACCO', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.342', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3662DCCO', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.343', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 7111', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.344', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 7111E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.345', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 7114', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.346', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 7114E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.347', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.348', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 8110', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.349', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3104', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 8120', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.350', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 905', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.351', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.352', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SOHO77', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.353', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SOHO76', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.354', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7150 Dual FE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.355', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7150 Octo T1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.356', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7150 Dual T3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.357', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Olympus', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.358', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950T 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.359', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3202', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VPS1110', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.360', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Contentengine', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.361', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IAD2420', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.362', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 677I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.363', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 674', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.364', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco DPA7630', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.365', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3550 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.366', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3550 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.367', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3550 12T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.368', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2924XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.369', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2912XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.370', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CVA122E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.371', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CVA124E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.372', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco URM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.373', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco URM2FE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.374', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco URM2FE2V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.375', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7401VXR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.376', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 951', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.377', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 952', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 340 AP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.379', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Access PRO RC Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 350 AP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.380', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.552', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco DPA7610', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.381', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 828', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.382', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SOHO78', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.383', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 806', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.384', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12416', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.385', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2948G L3DC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.386', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4908G L3DC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.387', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12406', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.388', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 506', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.389', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Access PRO EC Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 515', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.390', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 520', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.391', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 525', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.392', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.676', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.678', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 535', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.393', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.675', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12410', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.394', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 811', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.395', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 813', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.396', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 10720', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.397', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MWR1900', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.398', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4224', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.399', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Protocoltranslator', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6513', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.400', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1950', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7603', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.401', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7606', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.402', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7401ASR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.403', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG248', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.404', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco HSE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.405', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15540', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.406', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.481', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SN5420', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.407', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ICS7750 CE300', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.408', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 507', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.409', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 560', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.410', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 590', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.411', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 7320', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.412', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2691', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.413', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3725', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.414', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3640A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.415', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1760', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.416', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 501', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.417', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2610M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.418', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2611M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.419', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco GP10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.420', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MC21', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.421', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SN51', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.422', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12404', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.423', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 9004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.424', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3631CO', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.425', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950G 12', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.427', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950G 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.428', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950G 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.429', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950S 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.430', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3550 12G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.431', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 507AV', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.432', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 560AV', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.433', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE2105', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.434', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGX 8850PXM1E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.435', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3745', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.436', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 10005', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.437', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 10008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.438', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7304', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.439', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rpmxf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.440', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco OSM 4OC3 POS Smir', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.441', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco OSM 4OC3 POS Mmsr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.442', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco OSM 4OC3 POS Smlr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.443', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1721', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.444', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4000SUP3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.445', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 827H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.446', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SOHO77H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.447', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4006 L3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.448', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6503', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.449', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1956', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 506E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.450', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 515E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.451', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.677', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3550 24 DC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.452', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3550 24FX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.453', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE2636', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.454', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Dwce', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.455', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7750MRP300', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.456', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rpmpr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.457', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGX 8830PXM1E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.458', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Wlse', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.459', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15530', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.460', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15530 Nebs', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.461', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15530 Etsi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.462', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SOHO71', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.463', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 6400UAC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.464', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2610XM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.466', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2611XM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.467', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2620XM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.468', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2621XM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.469', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2650XM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.470', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2651XM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.471', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950G 24 DC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.472', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1200 1220 AP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.474', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SN5428', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.475', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7301', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.476', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12816', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.477', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12810', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.478', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3250', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.479', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950 I6Q4L2 M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.480', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950 ST 24 LRE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.482', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950 8 LRE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.483', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950 24 LRE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.484', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3550 24PWR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.485', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CDM4630', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.486', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CDM4650', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.487', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2955T 12', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.488', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2955C 12', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.489', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 508', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.490', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 565', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.491', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 7325', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.492', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15454', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.493', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15327', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.494', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 837', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.495', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SOHO97', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.496', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 830', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.497', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SOHO91', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.498', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 836', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.499', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SOHO96', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.500', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4507 L3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4506 L3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.502', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4503 L3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.503', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CD7305', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.504', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 510', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.505', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet 1240 AG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.507', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2955S 12', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.508', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7609', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.509', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.511', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.512', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 24TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.513', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 24T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.514', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3524PWRXLEN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.515', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 48PS S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.516', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ACE GSS 4492R', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.517', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Primarygssm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.518', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Standbygssm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.519', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MWR1941DC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.520', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco DSC9216K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.521', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Fwsm Firewall', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.522', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SCA11000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.523', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CSM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.524', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet AP 1231G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.525', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SCA211000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.526', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2970', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.527', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.561', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7613', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.528', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SN54282', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.529', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750G 12S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.530', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CR4430', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.531', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CR4450', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.532', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR BR1410A A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.533', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6509 NEB A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.534', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 48PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.535', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 24PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.536', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4510 L3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.537', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1711', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.538', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1712', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.539', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2940 8TT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.540', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2940 8TF', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.542', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3825', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.543', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3845', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.544', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2430IAD24FXS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.545', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2431IAD8FXS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.546', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2431IAD16FXS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.547', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2431IAD1T1E1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.548', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IAD 2432 24FXS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.549', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1700', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.550', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950ST24LRE997', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.551', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3220', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.553', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6500SSLSM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.554', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Simse', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.555', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Esse', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.556', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG224', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.558', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950 48T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.559', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2950 48SX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.560', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmnam', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.562', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560 24PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.563', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560 48PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.564', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aironet AP 1310', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.565', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 851', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.566', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 857 ISR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.567', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 876', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.568', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 877', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.569', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.782', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 878', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 871', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.571', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UMG9820', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.572', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WS SVC CMM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.573', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750ME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.574', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4000NAM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.575', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2811', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.576', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2821', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.577', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2851', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.578', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3201', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.581', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS7815I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.582', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS7825H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.583', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS7835H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.584', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS 7835I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.585', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS 7845H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.586', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS7845I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.587', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS7855I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.588', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS7865I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.589', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 12006', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.590', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750G 16TD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.591', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Gigabit Ethernet Module', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.592', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.660', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.718', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.728', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CCM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.593', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1718', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.594', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 511', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.595', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 566', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.596', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGX8830 PXM45', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.597', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MGX 8880', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.598', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WSSVCWLAN1K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.599', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 7306', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.600', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 7326 K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.601', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750G 24PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.602', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.747', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750G 48PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.603', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750G 48TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.604', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco BMGX8830PXM45', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.606', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco BMGX8830PXM1E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.607', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco BMGX8850PXM45', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.608', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco BMGX8850PXM1E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.609', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Sslcsm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.610', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Networkregistrar', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.611', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 501', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.612', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CRS 16S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.613', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560G 24PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.614', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560G 24TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.615', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560G 48PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.616', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560G 48TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.617', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1131AG A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.618', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2801', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.619', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1841', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.620', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WSSVCMWAM1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.621', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Unity Express  NM CUE ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.622', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Aimcue', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.623', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750G 24TS 1U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.624', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3710 98HP001', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.625', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4948', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.626', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4948 10GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.627', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.659', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SB106', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.628', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SB107', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.629', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WLSE1130', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.630', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WLSE1030', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.631', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco HSE1140', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.632', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560 24TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.633', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560 48TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.634', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Wssvc ADSM1K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.635', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Wssvc AGSM1K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.636', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15310', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.637', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.486', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1801', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.638', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1802', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.639', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1803', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.640', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1811', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.641', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1812 1812J', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.642', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CRS8S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.643', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4210', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.645', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4215', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.646', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4235', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.647', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Intrusion Prevention System 4240', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.648', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4250', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.649', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4250SX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.650', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4250XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.651', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Intrusion Prevention System 4255', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.652', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Intrusion Prevention System 6.0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.653', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.743', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Idsnmcids', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.654', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA AIP SSM 20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.655', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 24FS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.656', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6504', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.657', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1964', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7604', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.658', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Intrusion Prevention System SSM 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.662', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NME 16ES 1G P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.663', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module NME X 23ES 1GP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.664', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module NME X 24ES 1GP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.665', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module NME XD 48ES 2S P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.666', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3202WMIC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.667', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AS5400XM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.668', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5510', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.669', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.774', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5520', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.670', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.671', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.764', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5540', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.672', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.765', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5540SC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.673', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WS SVC FWM 1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.674', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AS5350XM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.679', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco FE73325K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.680', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco FE511K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.681', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Scedispatcher', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.682', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SCE1000', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.683', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SCE2000', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.684', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1242AG A K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.685', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco DSC9210CLK9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.686', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco FE611K9', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.687', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750G 12SFP', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.688', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3271', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.689', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3272', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.690', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3241', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.691', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3242', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.692', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Unified Customer Voice Portal', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.693', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 24TC L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.694', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 48TC L', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.695', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960G 24TC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.696', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960G 48TC', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.697', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4550 3', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.698', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4550 6', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.699', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4550 7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.700', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4550 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.701', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch Module NME 16ES 1G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.702', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NME X 23ES 1G P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.703', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NME XD 24 ES2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.704', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NME XD 48 ES2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.705', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6000 MSFC2A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.706', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco EDI', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.707', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 611', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.708', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WLSES20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.709', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MPX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.710', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmcueec', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.711', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WLSE1132', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.712', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME6340ACA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.713', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME6340DCA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.714', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME6340DCB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.715', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 24TT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.716', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 48TT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.717', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME6524 GS 8S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.719', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 6524ME Ethernet Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.720', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 6724', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.721', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.722', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Paldron', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.723', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Express 500 24TT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.724', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Express 500 24LC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.725', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Express 500 24PC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.726', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Express 500G 12TC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.727', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ACE 04G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.729', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ACE 10 K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.730', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5750', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.731', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MWR 1941DCA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.732', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 815', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.733', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 240024TSA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.734', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 240024TSD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.735', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3400 24TS A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.736', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3400 24TS D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.737', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CRS 18LINECARD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.738', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CRS 1FABRIC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.739', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco FE2636', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.740', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4220', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.741', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4230', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.742', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WS SVC Samibb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.744', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5505', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.745', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS 7825I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.746', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Blade Switch WS 3020', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.748', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Blade Switch WS 3030', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.749', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SPAOC48POSSFP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.750', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6000 Enhanced Gateway', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.751', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WLSE1133', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.752', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5550', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.753', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.763', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.766', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco NMAONK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.754', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmaonws', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.755', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmaonaps', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.756', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE612K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.757', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIR AP1252AG A K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.758', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 512', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.759', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco FE512K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.760', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 612', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.761', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco FE612K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.762', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX Firewall System Module', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.767', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 515SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.768', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 515ESY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.769', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 525SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.770', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PIX 535SY', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.771', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.772', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5510 Multiple Security Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.773', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Jumpgate', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.775', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 512', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.776', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 612', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.777', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 G24WS25', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.778', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 G24WS50', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.779', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3400G 12CS A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.780', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3400G12CSD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.781', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1801M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.783', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Blade Switch WS 3040', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.784', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 511', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.785', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 611', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.786', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 726', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.787', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 4924 10GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.788', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 E24TD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.789', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO901', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 E48TD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.790', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 E48PD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.791', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750 E24PD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.792', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560E 24TD S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.793', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560E 48TD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.794', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560E 24PD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.795', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560E 48PD E S EF SF', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.796', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560 8PC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.797', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 8TC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.798', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960G 8TC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.799', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO902', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Tspri', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.800', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Tssec', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.801', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UW IP Phone 72921G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.802', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UWIPPHONE7920', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.803', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3200WIRELESSMIC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.804', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Isrwireless', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.805', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Ipsvirtual', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.806', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4215VIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.807', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4235VIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.808', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4250VIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.809', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4250SXVIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.810', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4250XLVIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.811', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4240VIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.812', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4255VIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.813', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDS4260VIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.814', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IDSIDSM2VIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.815', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IPSSSM20VIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.816', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IPSSSM10VIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.817', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmwlce', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.818', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3205 Wirelessmic', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.819', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5720', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.820', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.821', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CRS 1 4 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.822', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmwae', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.823', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ACE 4710', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.824', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3400G 2CS A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.825', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmenam', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.826', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UBR 7225VXR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.827', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2106 Wireless Controller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.828', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MWR 1951 DC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.829', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IPS4270', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.830', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IPS4270VIRTUAL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.831', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6509 V E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.832', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 5740', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.833', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 861', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.834', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 866', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.835', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 867', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.836', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.837', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.838', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.839', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881SRST', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.840', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 881BRST', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.841', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 886', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.842', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 886G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.843', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 886F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.844', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 886B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.845', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 886SRST', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.846', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.848', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.849', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 887B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.850', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.852', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.853', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.854', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.855', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 888 Srst', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.856', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 891', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.857', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 892', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.858', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 885D3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.859', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 885FD3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.860', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 885EJ3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.861', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7603S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.862', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7606 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.863', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7609 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.864', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7600SEB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.865', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Unity Express  NME CUE ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.866', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AIM2CUE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.867', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6509VE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.868', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 860AP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.869', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 880AP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.870', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 890AP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.871', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1900AP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.872', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ME 3400 24FS A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.873', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4503 E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.874', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4506 E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.875', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Express 520', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.878', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.879', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.880', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.881', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.882', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.883', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.884', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.885', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.886', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.887', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.888', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.889', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.890', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.891', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.892', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.893', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.894', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.895', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.897', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.935', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.970', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.971', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.972', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.973', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 65XX VSS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.896', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS7816I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.898', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS7828I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.899', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CS500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 763', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS7816H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.900', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MCS7828H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.901', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nmeapa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.906', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 7341', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.907', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.982', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 7371', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.908', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3110G S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.909', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PRO 764', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3110X ST', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.910', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.912', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3110X S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.911', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SCE 8000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.913', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5580', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.914', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.916', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5580 Security Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.915', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4900M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.917', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3120G S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.918', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3120X S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.919', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Blade Switch 3032', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.920', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3130G S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.921', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3130X S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.922', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 1004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.924', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 1006', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.925', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 520 Wirelesscontroller', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.926', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 48TC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.927', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 24TC S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.928', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 24 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.929', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560E 12D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.930', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst RF Gateway', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.931', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Nexus 7000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.932', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Express 520 24LC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.933', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Express 520 24PC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.934', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CDE100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.936', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CDE200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.937', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CDE300', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.938', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861 SRSTCUE2BK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.939', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861 SRSTCUE4FK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.940', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Vframedatacenter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.941', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VQE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.942', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IPS SSM 40 Virtual', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.943', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA SSM 40', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.944', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VGD 1T3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.945', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst BS3100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.946', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Switch Module 3110 Series', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.947', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Blade Switch 3120X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.948', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Blade Switch 3130X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.949', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 24PC L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.950', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960 24LT L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.951', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2960PD 8TT L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.952', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SPA 2X1GE Synce', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.953', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5020  AC PSU ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.954', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5020  DC PSU ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.955', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3560E 12SD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.956', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 674', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.957', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 3000 4TC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.958', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 3000 8TC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.959', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Rockwell Stratix 1783 MS06T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.960', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1783 MS10T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.961', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 2435 IAD 8FXS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.962', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG204', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.963', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VG202', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.964', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 291824TT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.965', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 291824TC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.966', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 291848TT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.967', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 291848TC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.968', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Vqetools', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.969', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Vsintsp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.974', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Vssp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.975', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Vshydecoder', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.976', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Vsdecoder', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.977', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VSENCODER4P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.978', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco VSENCODER1P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.979', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SCS1000K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.980', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1805', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.981', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 7371', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.983', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 7613S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.984', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Wave 574', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.985', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 474', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.986', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAE 274', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.987', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AP801 AGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.988', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco AP801 GN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.989', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 762 Isdn Access Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861WSRSTCUE4FK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.990', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861WSRSTCUE2BK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.991', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861WSRST4FK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.992', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861WSRST2BK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.993', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861WUC4FK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.994', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1861WUC2BK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.995', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CE 674', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.996', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Vqeist', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.997', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1160 AP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.998', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 8510 MSR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.999230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C2935POE AC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.9998', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco PWR C2935POE DC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.9999', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Prime NCS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.10.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 2232', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1003', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1004', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.913', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 2248', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1005', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.914', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 2224', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5548P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5596UP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1038', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 7000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1054', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.777', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3064', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1060', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1105', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1136', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS 6248UP 48 Port Fabric Interconnect', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1062', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS 6296UP 96 Port Fabric Interconnect', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1063', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5548UP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1084', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3048', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3016', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 7004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 1000V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5596T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 2248PQ 10GE Fabric Extender', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 2000 B22', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1210', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9000V DC Power Ansi Chassis', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9000V DC Power Etsi Chassis', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9000V AC Chassis', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 6004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1237', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1489', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3548', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3064 T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 1010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1291', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.907', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 6001', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1308', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1340', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9250', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 7718', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1352', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 7710', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1353', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 7706', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1354', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3172', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1388', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3172T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1389', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3172PQ 10GE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1390', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3132Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1391', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 56128P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1409', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5672UP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1410', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1621', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3132Q 40GX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1417', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9706', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1420', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS 6324 Mini Fabric Interconnect', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1454', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS 6332 32 Port Fabric Interconnect', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1488', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASR 9000V 24VDCA Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1490', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9148S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1491', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9516 B2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1506', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9504', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1507', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 1000VSG2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1519', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5696Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1539', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9336PQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Qvpc DI', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1585', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3164Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1609', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5624Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1619', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5648Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1620', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9332PQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1625', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9372PX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1626', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9372TX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1627', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 1000VSG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1646', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 7702', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1648', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9396S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1660', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS 6332 16UP Fabric Interconnect', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1662', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3548 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1666', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93120TX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1675', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9718', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1683', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9264PQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1690', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 31128PQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1691', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3232C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1697', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3132Q V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1706', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9372PX E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1712', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9372TX E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1713', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3132 QXL40GX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1726', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3172PQ XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1727', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3172 TQXL10GT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1728', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IE 2000 16PTC G NX Industrial Ethernet Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1731', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco N3K C3264Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1743', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 92160YC X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1744', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9272Q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1745', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9236C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1746', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 31108PCV', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1758', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 31108TC V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1759', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93180YC EX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1812', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93108TC EX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1824', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS 6454 Fabric Interconnect', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1828', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CSP 2100 X2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1831', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco N9K C9232C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1839', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93180LC EX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1843', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93180YC FX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1850', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 92300YC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1856', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93108TC FX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1893', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9132T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1894', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9232U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1895', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9348GC FXP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1921', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9364C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1954', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9336C FX2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1955', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus C36180YC R', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.1965', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93240YC FX2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3548P XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2039', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9148T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2054', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9396T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2055', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 9332C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2076', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 3132C Z', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2077', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93180YC FX3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2193', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93600CD GX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93360YC FX2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93216TC FX2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 92348GC X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 93180YC FX 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.2353', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15540 ESP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15540 Espx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9506', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.375', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9509', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.376', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9513', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.377', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15201', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ONS 15252', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.379', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus MDS 9216', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.380', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9140', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.411', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9120', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.414', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus MDS 9216A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.442', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5510 Adaptive Security Appliance ASA5510 ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.447', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5520 Adaptive Security Appliance Cevchass ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.448', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5540 Adaptive Security Appliance Cevchass ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.449', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5560 Adaptive Security Appliance', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.454', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9132 Multilayer Fabric Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.462', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9116 Multilayer Fabric Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.463', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus MDS 9216I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.472', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9020', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.514', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ASA 5505 Adaptive Security Appliance Cevchass ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.560', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9124', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.587', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS Fibre Channel Blade Switch FOR IBM Bladec ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.601', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9124E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.606', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 7010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.612', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9134', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.616', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9222I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.651', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5020', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.719', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus C5020P BD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.720', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 7018', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.7771', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.798', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 2000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.820', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 1000V MZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.840', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9148', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.841', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MDS 9100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.843', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS 6120XP 20 Port Fabric Interconnect', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.847', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco UCS 6140XP 40 Port Fabric Interconnect', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.899', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 4005I Switch Module FOR IBM Bladecenter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.930', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 7009', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.932', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 5020T Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.3.936', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Mwam', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.9.17.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco IPS4240 K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.9.2.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Videomanagement', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.9.2.250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Processor  ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.9.29.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6500 Series Network Analysis Module  ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.9.29.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Nexus 56128P Switch CEVN5KC56128PFIXEDMODULE ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.9.72.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WS X45 SUP9 E   Catalyst 4503 E  Switch Modul ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.12.3.1.9.8.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst1100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WS X6608 T1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1.3.1.1.1.2.229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Network Analysis Module', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1.3.1.1.2.223', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1.3.1.1.2.291', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1.3.1.1.2.914', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2900', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.12', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.2012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CPW2200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Esstack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CPW1900', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 5500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.17', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.2017', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 1900 Lite FX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 1900', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.18', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.2018', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch 1220', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 1900I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1931', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 5505', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1934', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2926', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1935', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 5509', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1936', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4003', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1940', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4912', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1941', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2948', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1942', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4006', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1946', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6509NEB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1947', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2980G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1949', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2980G A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1951', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WS C4503', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1958', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4506', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1959', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 6509 NEB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1961', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.47', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2948G GE TX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.1962', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Adapter Card', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 2820', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.20', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.2020', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.2007', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 1900C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.2028', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 5502', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.2029', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1420 Etherswitch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.21', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco DCD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3500 XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CPW1601', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3001', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Etherswitch 1220C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WSC1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CPW1220I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Tsstack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 3900', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WSC 3920', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WSC1100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst6KNAM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SWCatalyst1200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 4503', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco HUBCatalyst1400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 1600 Router', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CPW1600', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco 762', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.5.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAP 121', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.32.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAP 131', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.32.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAP 321', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.32.321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAP 351', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.32.351', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAP4410N', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.32.4410.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAP 551', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.32.551', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAP 561', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.32.561', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAP 371', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.34.371', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco WAP571', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.34.571.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SGE 2000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.72.2000.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SGE 2010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.72.2010.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SGE 2000P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.73.2000.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF500 24 24 Port 10 100 Stackable Managed SWI ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.80.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF500 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.80.24.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF500 24MP 24 Port 10 100 MAX POE  Stackable  ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.80.24.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF500 48 48 Port 10 100 Stackable Managed SWI ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.80.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF500 48P 48P Port 10 100 POE Stackable Manag ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.80.48.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF500 48MP 48 Port 10 100 MAX POE  Stackable  ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.80.48.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500 28 28 Port Gigabit Stackable Managed SW ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.81.28.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500 28P 28 Port Gigabit POE Stackable Manag ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.81.28.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500 28MPP 28 Port Gigabit MAX POE  Stackabl ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.81.28.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500 52', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.81.52.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500 52P 52 Port Gigabit POE Stackable Manag ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.81.52.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500 52MP 52 Port Gigabit MAX POE  Stackable ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.81.52.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF302 08PP 8 Port 10 100 POE  Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.08.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.8.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF302 08MPP 8 Port 10 100 MAX POE  Managed SW ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.08.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF300 24PP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF300 24P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.24.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF300 24MP 24 Port 10 100 MAX POE Managed SWI ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.24.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF300 48 48 Port 10 100 Managed Switch With G ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF300 48P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.48.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF302 08', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF302 08MP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.8.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF300 08 8 Port 10 100 Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.82.8.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.10.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 10PP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.10.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 10MPP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.10.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 10SFP 10 Port Gigabit Managed SFP Switc ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.10.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 28', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.28.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 24P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.28.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 28MP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.28.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 28SFP 28 Port Gigabit SFP Managed Switc ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.28.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 52', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.52.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 52P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.52.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG300 52MP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.83.52.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF220 24 24 Port 10 100 Smart Plus Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.84.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF220 24P 24 Port 10 100 POE Smart Plus Switc ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.84.24.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF220 48 48 Port 10 100 Smart Plus Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.84.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF220 48P 48 Port 10 100 POE Smart Plus Switc ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.84.48.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500XG 8F8T 16 Port 10 Gigabit Stackable MAN ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.85.16.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500X 24 24 Port Gigabit With 4 Port 10 Giga ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.85.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500X 24P 24 Port Gigabit POE With 4 Port 10 ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.85.24.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500X 24MPP 24 Port GIG Plus 4 10 GIG MAX PO ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.85.24.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500X 48 48 Port Gigabit With 4 Port 10 Giga ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.85.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500X 48P 48 Port Gigabit POE With 4 Port 10 ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.85.48.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG500X 48MPP 48 Port GIG Plus 4 10 GIG MAX PO ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.85.48.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW2 550X 48 Advanced Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.86.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW2 550X 48DC Advanced Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.86.48.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW2 350G 52 52 Port Gigabit Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.86.52.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco ESW2 350G 52DC Advanced Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.86.52.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG200 18', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.88.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG220 26 26 Port Gigabit Smart Plus Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.89.26.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG220 26P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.89.26.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG220 28MP 28 Port Gigabit POE Smart Plus SWI ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.89.28.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG220 28 28 Port Gigabit Smart Plus Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.89.28.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG220 50 50 Port Gigabit Smart Plus Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.89.50.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG220 50P 50 Port Gigabit POE Smart Plus Swit ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.89.50.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG220 52 52 Port Gigabit Smart Plus Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.89.52.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550XG 8F8T 16 Port 10G Stackable Managed SW ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.90.16.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550XG 24F 24 Port 10G SFP  Stackable Manage ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.90.24.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550XG 24T 24 Port 10GBASE T Stackable Manag ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.90.24.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550XG 48T 48 Port 10GBASE T Stackable Manag ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.90.48.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350XG 2F10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.91.12.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350XG 24F 24 Port 10G SFP  Stackable Manage ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.91.24.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350XG 24T 24 Port 10GBASE T Stackable Manag ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.91.24.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350XG 48T 48 Port 10GBASE T Stackable Manag ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.91.48.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF550X 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.92.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF550X 24P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.92.24.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF550X 24MP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.92.24.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF550X 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.92.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF550X 48P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.92.48.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF550X 48MP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.92.48.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550X 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.93.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550X 24P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.93.24.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550X 24MP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.93.24.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550X 24MPP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.93.24.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550X 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.93.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550X 48P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.93.48.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG550X 48MP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.93.48.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350X 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.94.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350X 24PD 24 Port 2.5G POE Stackable Manage ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.94.24.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350X 24P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.94.24.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350X 24MP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.94.24.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350X 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.94.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350X 48P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.94.48.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350X 48MP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.94.48.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350X 8PMD 8 Port 2.5G POE Stackable Managed ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.94.8.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG355 10P 10 Port Gigabit POE Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.95.10.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.95.10.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350 10P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.95.10.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350 10MP 10 Port Gigabit POE Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.95.10.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350 28', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.95.28.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350 28P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.95.28.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350 28MP 28 Port Gigabit POE Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.95.28.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350 52', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.95.52.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG350 8PD 8 Port 2.5G POE Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.95.8.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF350 24P 24 Port 10 100 POE Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.96.24.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF350 48 48 Port 10 100 Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.96.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF350 48P 48 Port 10 100 POE Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.96.48.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF350 48MP 48 Port 10 100 POE Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.96.48.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SF352 08P 8 Port 10 100 POE Managed Switch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.96.8.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG250 26P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.97.26.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco SG250 08', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.1.97.8.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MS200X 24 24 Port 10 100 Ethernet Access Swit ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.2.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MS200X 24P 24 Port 10 100 POE Ethernet Access ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.2.1.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco MS200X 24S 24 Port 10 100 Ethernet Access SWI ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.6.2.1.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CSS 11800', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.9.368.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CSS 11500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.9.368.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CSS 11050', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.9.368.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CSS 11503', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.9.368.4.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CSS 11506', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.9.368.4.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco CSS 11501', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.9.368.4.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Webex Meetings Server', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.9.809.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 400', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Ap 802gn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1362', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IPS4345', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1428', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IPS4360', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1429', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Ts Codec G2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1433', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Ts Codec G2C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1434', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco TSCodec G2RC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1435', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco TSCodec G2R', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1436', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783BMS06TA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1478', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783BMS06TGA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1482', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783BMS10CA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1484', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783BMS10CGA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1486', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783BMS20CA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1490', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ECDS50IVB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1536', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HGW7NK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1571', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HGW7AAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1572', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HGWVAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1573', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HGWSAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1574', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HWDAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1577', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819GUMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1583', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819GSMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1584', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819GVMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1585', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819GBMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1586', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819G7AMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1587', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819G7MK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1588', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HGUMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1589', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HGSMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1590', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HGVMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1591', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HGBMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1592', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HG7AMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1593', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819HG7MK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1594', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2502m 0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1596', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2502s 8', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1597', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco MDE10XVB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1603', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2502s 9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1607', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2502s 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1608', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA1000Vsy', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1612', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA1000Vsc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1613', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA1000V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1614', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco AIRAP802agn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1632', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Ap 802Hagn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1633', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco E160DP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1634', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco E160D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1635', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco E140DP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1636', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco E140D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1637', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco VSGateway', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1646', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Skyros', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1648', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Nexus 1010X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1667', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Nexus 1110S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1668', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Nexus 1110X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1669', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Nexus 1110XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1670', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Hs E300K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1674', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 866VAEWEK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1675', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2202s 4', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1686', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 4604r 1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1687', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 3750x 48U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1712', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Iem 30004SM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1720', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Iem 30008SM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1721', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 1783MX04S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1722', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 1783MX08S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1723', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783BMS12T4E2CGNK', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1736', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Mds 9848512K9SM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1737', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Nexus 1000VH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1744', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Panini', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1764', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst 45Sup 8e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1796', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783ZMS8TA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1846', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783ZMS16TA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1847', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783ZMS24TA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1848', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783ZMS4T4E2TGP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1849', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783ZMS8T8E2TGP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1850', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C886Va JK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1854', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 1783WAP5100x K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1862', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2502s 5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1863', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Hyper NAM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1878', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco VASASy', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1903', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco VASASc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1904', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Wap AP702', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1916', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Wap AP2602', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1917', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Wap AP1602', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1918', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Wlc Ct 5508K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1926', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Wlc Ct 2504K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.1927', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco WRP500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819G4GSTK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2051', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IOG910WK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2063', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IOG910GK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2064', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IOG910K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2065', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CSE340G32K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2094', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco SCE10000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2096', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Virtual SCE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2097', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829GWLTESTAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829GWLTEGAZK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Wallander 1x 1GESKU', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Wallander 2x 1GESKU', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Pwr C2911DCPOE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco AIRAP1572', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783ZMS4T4E2TGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783ZMS8T8E2TGN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2802s 5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2802s 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2802s 21', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2802h 0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2802h 13', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CDScde 2802h 26', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 7030K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 7050K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 7110K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 7110Fi K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 7115K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 7120K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 7120Fi K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 7125K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8120K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8130K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8140K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8250K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8260K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8270K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8290K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8350K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8360K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8370K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 8390K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fs 750K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fs 1500K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fs 3500K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fs 4000K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Amp 7150K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Amp 8050K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Amp 8150K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Amp 8350K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Amp 8360K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Amp 8370K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Amp 8390K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp Ssl 1500K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp Ssl 1500Fi K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp Ssl 2000K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp Ssl 8200K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 7010K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fp 7020K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C819GWLTEMNAAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C819GWLTEGAEK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco AIRAPIW3702', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA5506Hsc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829GWLTEMAAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Pws X474812X48u E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAISA1783SAD2T2Ssy', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAISA1783SAD4T0Ssy', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA30002C2Fsy', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA30004Csy', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA4000sy', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA4000sc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAISA1783SAD2T2Ssc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAISA1783SAD4T0Ssc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA30002C2Fsc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA30004Csc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA30002C2F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA30004C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAISA1783SAD4T0S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAISA1783SAD2T2S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA4000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C888EAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ciscoflow Agent 3300', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA5512td', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2297', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA5515td', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2298', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA5525td', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2299', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA5545td', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA5555td', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2301', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA5506td', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2302', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA5506Wtd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2303', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASA5506Htd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2304', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Vftd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2334', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR4451B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2335', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR4431B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2336', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR4351B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR4331B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2338', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR4321B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2339', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783IMS28GNAC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2340', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783IMS28GNDC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2341', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783IMS28GRAC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2342', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783IMS28GRDC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2343', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco QSFP100GCWDM4S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2344', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 898EAGLTELAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2355', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819GWLTELACK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2357', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819GWLTELANK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2359', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 866VAEK9V2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2379', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 819GLTELAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2382', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783LMS5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2383', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783LMS8', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2384', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Stealth Watch 2404', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2385', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Stealth Watch 2420', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2386', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Nam App 2404', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2387', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Ws C36508X24PD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2388', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Cisco Catalyst Ws C365012X48FD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2389', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829GWLTEGASK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2393', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829GWLTEGACK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2394', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CSP2100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2397', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS5516', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2412', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR809G3GGAK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2425', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CXP2270GSR12', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2433', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930024T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2435', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930024P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2436', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930024U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2437', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930024UX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2438', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930048T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2439', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930048P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2440', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930048U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2441', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930048UXM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2442', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 2911A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2486', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco WSC365048TSE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2491', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco AIRCT9880K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2531', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Nfvis', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2565', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829GWLTEGAx K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2569', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 9200L24P4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2585', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 9200L48P4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2586', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 920024PXG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2590', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 920048PXG', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2591', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N5204GAZA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2602', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N52020G4ZA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2603', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N52020G4ZD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2604', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N520X4G4ZA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2605', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N520X4G4ZD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2606', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N520X20G4ZA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2607', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N520X20G4ZD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2608', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA30004Ctd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2611', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISA30002C2Ftd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2612', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RA1783SAD4T0Std', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2613', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RA1783SAD2T2Std', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2614', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 8818', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2615', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 8201', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2649', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 8202', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2650', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Esx Secpa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2659', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Kvm Secpa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2660', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fpr 1140td', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2662', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISRAP1100ACME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2665', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR4221X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2666', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829M2LTELAx K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2672', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829MLTEEAx K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2673', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829BLTEEAx K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2674', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829BLTELAx K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2675', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829B2LTEEAx K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2676', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR829B2LTELAx K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2677', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ESS3300NCP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2681', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ESS3300CON', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2682', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE32008T2S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2683', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE32008P2S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2684', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE34008P2S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2687', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Nam 2520', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2689', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Nam 2540', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2690', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CSPA2520', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2691', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR1101XK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2692', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783MMS10B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2697', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783MMS10BE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2698', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783MMS10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2699', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783MMS10R', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2700', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783MMS10E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2701', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783MMS10ER', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2702', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783MMS10EA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2703', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783MMS10EAR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2704', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 9214PLTEGBK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2711', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 9214PLTEASK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2712', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 9214PLTEAUK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2713', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 9274PK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2716', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 9274PMK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2717', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 9274PLTEAUK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2719', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 9274PLTEGBK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2721', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 9274PMLTEGBK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2722', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 9264PLTEGBK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2723', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11118PWS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2731', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11118PLte Laws', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2732', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11118PLte Lawa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2733', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11118PLte Lawe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2734', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N54024Z8Q2CM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2741', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N540X24Z8Q2CM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2742', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N560RSP4', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2743', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11218PLte P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2745', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1121X8PLTEP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2746', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11218PLte PWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2747', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11218PLte PWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2748', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11218PLte PWZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2749', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11218PLte PWQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2750', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11218P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2751', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11618P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2753', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11618PLte P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2755', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1161X8PLte P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2756', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11268PLte P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2758', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11278PLte P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2759', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11278PMLte P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2760', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1126X8PLte P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2761', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1127X8PMLte P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2763', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11214PLte P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2765', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11288PLte P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2766', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco VG4002FXS2FXO', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2767', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco VG4004FXS4FXO', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2768', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco VG4006FXS6FXO', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2769', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco VG4008FXS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2770', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IOSXREdgecore 591654XKSOACF', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2782', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IOSXREdgecore AS781664X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2783', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1121X8PLte PWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2788', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1121X8PLte PWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2789', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1121X8PLte PWZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2790', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1121X8PLte PWA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2791', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM8TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2806', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM8PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2807', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM16TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2808', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM16PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2809', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM24TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2810', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM24PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2811', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM48TS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2812', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM48PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2813', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM24TQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2814', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM48TQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2815', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM24PQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2816', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst WSC2960LSM48PQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2817', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C850012X4QC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2818', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C850012X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2819', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9592PLte GB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2820', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9592PLte US', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2821', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9592PLte VZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2822', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9592PLte IN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2823', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9514P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2824', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CMe Wlc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2825', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE34008FTMC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2826', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE340016FTMC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2827', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE340024FTMC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2828', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE34008TMC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2829', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE340016TMC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2830', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE340024TMC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2831', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930024UBX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2833', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930048UB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2834', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930024UB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2835', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9115AXI', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2839', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9115AXME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2840', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9117AXME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2841', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9117AXI', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2842', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ESR1115CONK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2844', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ESR1115NCPK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2845', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9115AXE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2846', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9120AXI', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2849', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9120AXE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2851', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9120AXEME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2852', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N5604', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2853', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N5604CC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2854', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N5604RSP4', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2855', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N5604RSP4E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2856', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N5604RSP4CC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2857', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco N5604RSP4ECC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2858', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ESR6300CONK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2864', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ESR6300NCPK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2865', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CMICR4PS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2868', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CMICR4PC', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2869', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fpr 1150td', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2870', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE34008T2S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2872', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930024H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2873', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 930048H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2874', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9130AXI', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2877', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9130AXIME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2878', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9130AXE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2879', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9130AXEME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2880', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE3400H8FT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2881', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE3400H16FT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2882', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE3400H24FT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2883', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE3400H8T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2884', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE3400H16T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2885', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE3400H24T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2886', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ENCS5104', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2889', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783MMS10A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2891', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783MMS10AR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2892', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ENCS510464', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2893', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ENCS5104200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2894', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ENCS5104400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2895', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C10008T2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2896', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 100010Gbps Stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2897', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco AIRIW6300ME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2898', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CSP5200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2900', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CSP5216', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2901', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CSP5400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2903', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CSP5436', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2904', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CSP5444', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2905', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CSP5456', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2906', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 920024PB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2907', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 920048PB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2908', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C10008TE2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2909', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C10008P2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2910', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C10008PE2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2911', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C10008FP2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2912', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C10008FPE2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2913', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100016T2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2914', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100016TE2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2915', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100016P2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2916', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100016PE2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2917', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100016FP2GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2918', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100024T4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2919', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100024PP4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2920', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100024P4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2921', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100024FP4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2922', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100048T4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2923', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100048PP4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2924', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100048P4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2925', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100048FP4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2926', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100024T4XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2927', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100024P4XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2928', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100024FP4XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2929', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100048T4XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2930', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100048P4XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2931', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C100048FP4XL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2932', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Mobility Express', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2958', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C8200L4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2962', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C83002N2S4T2X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2963', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C83002N2S6T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2964', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 9200BFixed Switch Stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2965', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ESW6300ME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2966', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C8500L8G4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2968', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1100TG1N32A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2971', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1100TG1N24P32A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2972', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1100TGX1N24P32A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2973', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CMICR4PT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.2978', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C8000V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 820132FH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 920048PL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9200L48PL4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9200L48PL4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR11004G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3016', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR11006G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3017', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR11004GLTEGB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3018', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR11004GLTENA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3019', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1000FE24P4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3022', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1000FE48T4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3023', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1000FE48P4GL', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3024', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco DNAPLTTA1X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR1821K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3026', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR1831K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3027', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR1833K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3028', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR1835K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3029', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS540L6Z18GSys A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3030', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS540L6Z18GSys D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3031', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS540L8Z16GSys D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3032', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS540L8Z16GSys A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3033', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS540L4Z14G2QA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3034', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS540L4Z14G2QD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3035', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9300X12Y', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3037', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9300X24Y', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3038', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9300X48HX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3039', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9300X48TX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3040', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR1100X4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3045', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISR1100X6G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3046', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ESS930010XE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3047', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR8140HK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3048', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR8140HPK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3049', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9115AXEME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3050', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9120AXPME', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3051', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IR8340K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3052', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fpr 3110K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3053', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fpr 3120K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3054', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fpr 3130K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3055', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fpr 3140K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3056', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9KF1SSD960G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3062', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9KF1SSD480G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3063', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9KF1SSD240G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3064', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11138PLte Eawa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3070', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco VG420144FXS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3071', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco VG420132FXS6FXO', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3072', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco VG42084FXS6FXO', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3073', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C8200L1N4T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3074', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS57B15DSESys', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3076', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS57B16D24Sys', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3077', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 9200CX12T2X2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3078', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 9200CX12P2X2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3079', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 9500X28C8D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3084', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C850020X6C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3085', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9300X48HXN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3086', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9300X24HX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3087', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco XRd Control Plane C1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3089', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ASR9902', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3090', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 9200CX8P2X2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3097', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 9200CX8PT2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3098', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Catalyst 9200CX8UXG2X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3099', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSC220M6', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSC240M6', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSB200M5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSB480M5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWA', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWE', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWZ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWQ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE931026S2C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE9320stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IC30002C2FK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSIOM2208', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSIOM2304', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSIOM2408', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSBXI910825G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSBXI9108100G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS540L24Q8L2DDSys', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 810132FH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ISRAP1101AX', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS55A124Q6HSS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS57C3MODSSYS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS57C3MODSYS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 811132EH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 820232FHM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 820232FHMO', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS1010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS57C148Q6Sys', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 820124H8FH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS55A124Q6HS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS540L6Z14GSys D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9200CX12P2XGH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE932026S2C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fpr 3105K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSC225M6', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE31004T2S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE31008T2C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE310018T2C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE31058T2C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE310518T2C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783CMS6B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783CMS6P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783CMS10B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783CMS10P', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783CMS10DP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783CMS10DN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783CMS20DB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783CMS20DP', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco RAIE1783CMS20DN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco XRdv Router C1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 810132H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 810264H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9200CX8P2XGH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9200CX8UXG2XH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ESR6300LICK9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco DP01QSDDZF1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE932022S2C4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE932024T4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE932024P4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE932016P8U4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE932024P4S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE31008T4S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C8500L8S2X2Y', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C8500L8S8X4Y', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C8300UCPE1N20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSC220M7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSC240M7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C12008TD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C12008TE2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C12008PE2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C12008FP2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120016T2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120016P2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120024T4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120024P4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120024FP4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120048T4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120048P4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120024T4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120024P4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120024FP4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120048T4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C120048P4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C13008TE2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C13008PE2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C13008FP2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130016T2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130016P2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130016FP2G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130024T4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130024P4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130024FP4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130048T4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130048P4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130048FP4G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130016P4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130024T4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130024P4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130024FP4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130048T4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130048P4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130048FP4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C13008MGP2X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130024MGP4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130048MGP4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130012XT2X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130012XS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130024XT', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130024XS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130016XTS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C130024XTS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS57D218DDSYS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco UCSX410CM7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Fpr 1010Etd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 821248FHM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco SNS3715K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco SNS3755K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco SNS3795K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IW9165DHURWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IW9165EURWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IW9167EHURWB', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3282', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CG522E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CG418E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CG1134GW6', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CG113W6', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE31008P2C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE31004P2S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Csf 1210ce', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3303', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Csf 1210cp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3304', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Csf 1220cx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Csf 1230', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Csf 1240', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3307', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Csf 1250', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3308', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco Csf 1260', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3309', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CW9800M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3323', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CW9800H1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3324', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco CW9800H2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C8231G2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3327', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3328', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3329', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWK', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3330', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWF', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3331', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3332', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3333', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3334', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3335', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWK', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3336', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWF', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3338', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3339', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3340', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3341', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWK', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3342', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWF', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3343', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3344', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3345', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWN', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3346', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWH', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3347', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWK', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3348', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWF', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3349', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWD', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3350', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWR', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3351', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE35008P3S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3352', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE35008T3S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3353', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE35058P3S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3354', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE35058T3S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3355', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE35008U3X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3356', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco IE35008T3X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3357', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS1014', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3366', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS1012', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3367', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS1020', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3368', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco ESS93008X16T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9610R', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3383', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3396', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3397', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3398', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWS', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3399', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PWI', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3400', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PWI', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3401', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C11318PLTEPWI', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3402', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1131X8PLTEPWI', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3403', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1300X10NU2X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3410', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1300X24MU4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3411', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1300X24NGU4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3412', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1300X24P4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3413', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1300X24T4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3414', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1300X48NGU4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3415', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1300X48P4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3416', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C1300X48T4X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3417', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9KVA100L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3427', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 871148ZM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3452', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco 8712MODM', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3453', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco C9610RVirtual Stack', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3455', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco NCS540L6Z6GSys', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.3463', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cisco FE6326K9', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.9.1.661', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Dell', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net C Series Products c300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net C Series Products c150', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net C Series Products c9010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s50', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s25v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s25n', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s60', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s55', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s4810', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products z9000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s4820', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s6000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s50e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s4810on', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s6000on', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s4048on', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s3048on', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s3148p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s3124p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s3124f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s3124', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s6100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s6010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s50v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s4048t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s3148', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s5048f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s25pac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s2410cp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s2410p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s50nac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s50ndc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net S Series Products s25pdc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.3.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net M Series Products m MXL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net M Series Products m IOA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net M Series Products s IOA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net Z Series Products z9500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'dell Net Z Series Products z9100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.6027.1.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powervault ME4024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Laser Printer 5210N', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.100.1.1094471968', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Laser 5310N', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.100.1.1094471969', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Laser 1720DN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.100.1.1094472232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Idrac 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10892.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Idrac 7 Modular', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10892.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Poweredge MX7000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10892.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powervault TL2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10893.2.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 5212', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.1000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3248', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 6024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3324', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3348', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 5324', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 5316M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3006', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3424', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3448P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3009', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 6224', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 6248', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 6248P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 6220M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3015', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3548', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3017', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3524P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3018', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3548P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3019', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 5424', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3020', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 5448', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3021', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect M8024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3022', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 8024F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3024', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect M6348', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 2824', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3028', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 2848', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3029', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 5524', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3030', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Nexus 5548', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3031', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect M8024 K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3041', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect N4032', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3042', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'R1 2401', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3052', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'N2024P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3055', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'N2048P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3056', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Networking N3024P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3059', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect N3048P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3060', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Networking N1524', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3063', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Networking N1548', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3065', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Networking X1026', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3071', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Networking X1052', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.3073', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 5224', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerconnect 3048', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10895.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'2330DN Laser Printer', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.1.1.1094472241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'2350DN Laser', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.1.1.1094472485', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3335DN Laser MFP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.1.2.1094472473', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3100CN Laser', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.10.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Color Laser 3110CN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.10.51.1094473221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MFP Laser 3115CN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.10.52.1094473223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'2330DN Laser', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.100.1.1094472241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'3130CN Color Laser', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.2.100.10.51.1094473219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'2135CN Multifunction Color Laser Printer', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.2.100.10.52.1094473225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'C3765DNF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.2.100.10.52.1094473280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'B2360DN Laser Printer', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.2.100.100.51.1094473267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'B3460DN Laser Printer', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.2.100.100.51.1094473269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'B3465DNF Laser MFP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10898.2.100.100.52.1094473286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'6608 Rack PDU  J523N', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.10903.200.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch MX9116N', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4148FE ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4148U ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4200 ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S5148F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4248FB ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4248FBL ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S41212F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S41212T ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S5212F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S5224F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4048 ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S5232F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S5248F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S5296F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4048T ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S3048 ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S6010 ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4148F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4128F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4148T ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch S4128T ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX5108N ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX9116N ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch Z9100 ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch Z9264F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Powerswitch Z9232F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Z9332F ON', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.11000.5000.100.2.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'7130CDN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.674.8.62.1.19.5.5.2', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Dlink', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 1100 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DP 303', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.10.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3700', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.102.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3700P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.102.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3528', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.105.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3528P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.105.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3552', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.105.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3552P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.105.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3528DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.105.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3200 SERIES', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3810 28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.114.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3120 24PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3120 48TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3620 28TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.118.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3620 28SC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.118.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3620 28PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.118.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3620 52T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.118.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3620 52P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.118.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3620 28TC DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.118.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3620 28SC DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.118.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3420 52T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.119.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 1100 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.134.20.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 1100 08P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.134.21.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 1210 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.153.12.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 1210 28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.153.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link WS6 DGS 1210 52', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.153.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DSR500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.20.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DSR500N', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.20.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DSR1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.20.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DSR1000N', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.20.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3225G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.24.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3624', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.25.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 6000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.28.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DSL500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.30.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3326', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.32.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3308', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.35.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3226', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.36.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWL AP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWL 2100AP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.37.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWL 3200AP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.37.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWL 3500AP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.37.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWL 8500AP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.37.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWL 8600AP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.37.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DAP 2360', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.37.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DAP 2610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.37.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3224TG', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.43.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3224TGR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.43.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3226S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3250TG', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.52.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3324SRI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.59.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.59.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 2212', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1526', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.60.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 2108V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.60.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 2108 SERIES', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 2108', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.61.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 2108 B1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.61.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3010F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3010G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3028G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3018', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3026', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3010FL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3028', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3028P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3052', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3052P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.63.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3526', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.64.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3550', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.64.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3828', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.69.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3828DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.69.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3828P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.69.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3852', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.69.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3852P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.69.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 2218', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3612', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.70.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3650', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.70.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3627', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.70.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3627G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.70.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3612G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.70.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWS SERIES', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWS 3024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.73.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWS 3024L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.73.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWS 3026', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.73.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWS 4000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.73.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWS 4024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.73.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DWS 4026', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.73.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1210 XX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1226G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.75.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1210 08P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.75.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1210 28 ME', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.75.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1228', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.75.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1228P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.75.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1252', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.75.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1210 28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.75.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1210 28P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.75.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 1210 52', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.75.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 1210 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.76.11', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.76.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 1210 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.76.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 1210 10P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.76.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 1210 28P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.76.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DFE 2624IX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link HUB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 5016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 5016SWHUB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.9.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3216', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.9.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 3224', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.9.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 5200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.9.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3100 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.94.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3124P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.94.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3148', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.94.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3148P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.94.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DGS 3124TG', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.94.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DES 7210', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.97.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DP 301P ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.10.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link DNS 343', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.50.1.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs6604', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.120.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs6600 system', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.120.100.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs6600 l2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.120.100.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs6600 l3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.120.100.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs6600 mpls', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.120.100.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs6600 qosacl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.120.100.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs6600 security', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.120.100.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs6600 mgmt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.120.100.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs6600 others', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.120.100.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs6608', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.120.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120ProdModel', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod Dgs3120 24TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod Dgs3120 24PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod Dgs3120 24SC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod Dgs3120 48TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod Dgs3120 48PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod Dgs3120 24SC DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 24TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 24TC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 24PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 24PC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 24SC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 24SC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 48TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 48TC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 48PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 48PC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 24SC DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Prod DGS 3120 24SC DC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.117.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120ProjModel', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj Dgs3120 24TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj Dgs3120 24PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj Dgs3120 24SC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj Dgs3120 48TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj Dgs3120 48PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj Dgs3120 24SC DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 24TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 24TC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 24PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 24PC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 24SC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 24SC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 48TC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 48TC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 48PC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 48PC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 24SC DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3120Proj DGS 3120 24SC DC bx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.117.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3224SRi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.59.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3224SR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.59.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Des3252SR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.59.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3324SRi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.59.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dgs3324SR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.59.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Des3352SR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.59.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dxs3326GSR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.59.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Dxs3350SR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.59.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link Des6500SeriesProd', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.10.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs3224SRi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.59.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs3224SR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.59.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link des3252SR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.59.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs3324SRi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.59.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dgs3324SR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.59.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link des3352SR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.59.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dxs3326GSR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.59.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link dxs3350SR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.59.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'd-link des6500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.171.11.61.1', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Enterasys Networks', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Irbm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ssr 32000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.10.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmac 3fnb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmac 5fnb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmac 8fnb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmac M8fnb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.14', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trxi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmacp14', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmacp6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmac 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmac 5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmac 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Minimmac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mrxi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.6', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.196674', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.65569', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmac M3fnb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmac M5fnb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Thnmim', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmm 1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmm 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmm 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Emme', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Esxmim', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.186', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmmim', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mrxi 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.196675', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdmmim 24e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdmmim 14', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fddi Enet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Bdgcsifdm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdmmim 30', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdcmim 28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdcmim 18', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdcmim 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdcmim 04', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdcmim 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdcmim 14', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdcmim 38', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Fdcmim 34', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 10r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 22', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 20r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 62a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 24a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 22a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trfmim 28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trfmim 22', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trrmim A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trfmim 26', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 34a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 32a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 44a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Trmim 42a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Tpmim T1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mrxi E93', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.65568', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mrxi 22', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.65570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mrxi 34', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.65571', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mrxi 38', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.65572', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mrxi 2e93', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.65584', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Tpmim T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Tpmim T3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Thnmim 2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Tpmim 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Tpmim 22', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Tpmim 34', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Tpmim 32', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.2.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Els100 24tx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.1.10.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Els 100 24txm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.1.10.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Els100 24txm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.1.10.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Els100 24txg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.1.10.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Els100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.1.10.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Smartstack Els100 S24tx2m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.1.10.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sts16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.1.13.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  7c03', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.12.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  7c04', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.12.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  7c04r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.12.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h532 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.13.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Smart Chassis 6000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  X Pedition 8000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  X Pedition 8600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h123 50 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6m146 04', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6e128 26 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6e138 25 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6e129 26', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6e139 25', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6h128 08 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6h129 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6h122 16 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6h133 37 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6e122 26 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h202 24 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h252 17 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6e233 49 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h258 17 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6h203 24 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6h253 13 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6h259 17', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h262 18 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6e132 25 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h302 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6e122 08 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6e123 50 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6e133 49', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6e123 26 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  6e133 25 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.20.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.11', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.34', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi 26fb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi 22fb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi 32', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi 34', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 26c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 22c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 26fl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 22fl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 32e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 26fl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 22fl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Nbr 220', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Nbr 420', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 22s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 32s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 24s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 34s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 26fbs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 22fbs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 26cs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 22cs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 26fls', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 22fls', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi 32s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi 34s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 22es', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 32es', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 34e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 24es', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 34es', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Na', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.42', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.5.9.136', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.5.9.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 22eucs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 22ucsssnac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 22eucssnac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 22ebrics', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 22esbrics', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Esx 1320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Esx 1380', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 22', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi 22fls', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi 26fls', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi 22fl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi 26fl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh100tx 22', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sehi100tx 22', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  8h02 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  2e42p 27', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Smart Switch 2200 2e42 27r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 32', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  2e42 27rdc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  2e48 27r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.68', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  2h28 08r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  2h22 08r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  2h23 50r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  2h33 37r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Seh 34', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Smart Switch 2200 2h252', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  2h258 17r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  2h253 25r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Nbr 620', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.4.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Emm E6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.3.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9a656 04', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.11.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9a686 04', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.11.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h532 18 Smartswitch 9000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h539 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h533 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e531 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.14', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h531 18', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h539 18', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h532 17', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h531 17', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h539 17', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9g536 04 Smartswitch 9000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h532 24 Smartswitch 9000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h531 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.13.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e133 36', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e128 01 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e106 6 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e138 12 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9t125 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9t125 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e138 36', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9f116 01 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9t122 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e132 15 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9t122 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.5.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9f122 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9f120 08 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.6.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9f125 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.6.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9f241 12 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.6.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e312 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e428 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e428 36 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e429 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e429 36', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9f426 03 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Smart Switch 9000 9h421 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Smart Switch 9000 9e423 36', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h429 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9t425 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9a426 01', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9g426 02', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h423 28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h423 26 Smartswitch 9000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9g421 02', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9m426 02', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9g429 02', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9t428 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9t427 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9f310 02', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9a426 02', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9f426 02 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9e423 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9h422 12 Smartswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.32.9.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  X Pedition 2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.33.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Smartswitch Router 2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.33.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  X Pedition 2001', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.33.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ssr600 E Mp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.33.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ia 1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.33.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ia 2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.33.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6c107 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.33.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Micrommac 24t 44t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.5.10.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Mmac 44t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.5.10.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Hubcsisthi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.5.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sthi 42a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.5.9.244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sthi 22a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.5.9.248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Csx200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.9.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Csx400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.9.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Csx7000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.9.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Csx5500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.9.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  9w006 7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.9.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Hsim W6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.9.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Hsim W84', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.3.9.9.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Roamabout Sw 8100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.4.15.1.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Roamabout Sw 8200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.4.15.1.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Roamabout Sw 8400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.4.15.1.3.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Roamabout Sw 8110', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.52.4.15.1.3.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 1800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vertical Horizon Vh 4802', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B3g124 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack B3g124 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B3g124 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B3g124 48p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  I3h252 02', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sns Tag Lpa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sns Tag Hpa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sns Tag Base', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  7s Nstag 01', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sns Pcc Wba', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vertical Horizon Vh 2402s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  A2h123 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B3h123 24fx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C3h123 24fx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C3k122 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C3k172 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C3k 2xfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Sns Nss A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  G124 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  G3 Sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  D2g124 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  D2g124 12p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Rbt 8500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix N1 Nac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  7s Nsnacg 01nps', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  G3g124 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C3k122 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Nac A 2k', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Nac A 3k', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Es 1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ssa T1068 0652', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h308 48 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ssa G1018 0652', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  S3 Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  S4 Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  S8 Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B5g124 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B5g124 24p2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B5g124 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B5g124 48p2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B5k125 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B5k125 24p2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6e308 48 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B5k125 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B5k125 48p2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C5g124 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C5g124 24p2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys C52', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C5g124 48p2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C5k125 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C5k125 24p2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys C510', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C5k125 48p2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h202 48 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C5k175 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Nac A 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Nac A 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Nac A V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  A4h124 24tx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  A4h124 24fx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  A4h124 8f8t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  A4h124 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  A4h124 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  A4h124 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  A4h124 48p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  A4h254 8f8t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  K6 Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  K10 Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  S6 Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Es Ssa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  S Series Virtual Switch Bonded S3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Es Bs4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Es Bs6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Es Bs8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vg4xdes', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Es Bs1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Es S1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  71k11l4 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  71k11l4 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  71k91l4 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.174', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  S150 Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ssa T5028 0652', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  08g20g2 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  08g20g2 08p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h002 48 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  08g20g4 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  08g20g4 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  08g20g4 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  08g20g4 08p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  08h20g4 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  08h20g4 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  08h20g4 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  08h20g4 48p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ssa T5068 0652', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ssa G5018 0652', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h003 48 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  71g21k2l2 24p24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  71g21k2l2 48p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Es 180', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ssa G8018 0652', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  7100 Series Virtual Switch Bonded', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ns A 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ia A 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ia V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ia A 300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  App A 300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6g306 06 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix E5 5g106 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  App V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  S Series S1 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  S Series S3 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  K Series Virtual Switch Bonded K6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  K Series Virtual Switch Bonded K10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Pv A 300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Pv V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  71g11k2l2 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Pv Fc 180', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix E5 5g102 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vg6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  X Pedition Er16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vertical Horizon 4802', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vertical Horizon Vh 8tx1um', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vertical Horizon Vh 2402 L3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vertical Horizon Vh 8g L3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix E5 5h152 50', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix E5 5h153 50', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h302 48 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Roamaboutr2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vertical Horizon Vh 8tx1umf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  X Pedition 1805', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ang 2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix E1h582 51', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 1g582 09', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 1g694 13', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vhxsmgmtxl3 L2 L3 Management Card', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ang 1102', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ang 1105', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h303 48 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ang 3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Ang 7000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  X Pedition 2400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vertical Horizon Vh 8go2s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6g302 06 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 1850', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vertical Horizon Vh 2202gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix C5 System Management Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix C1 48 Port Switch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h352 25 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix C2 System Management Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix E7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.51', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix N7 Platinum', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix N3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.53', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 1100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 3020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 3150', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 3250', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 4100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix E1h582 25', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6h308 24 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  1h587x09', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix C1g124', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix V2h124 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Rbtr3 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Roamabout Ap 3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix N7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  V2h124xpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Dfe Gold', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix 6e308 24 Module', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix N Router', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Dragon Ids', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 1205', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 1220', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 1225', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 1230', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Xsr 1235', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix N Standalone', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix N5 Poe Gold', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix N5 Platinum', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix E7 Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys Matrix X4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix X8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys Matrix X16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix N1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix N1 Gold', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Rbtsa Us', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Rbtsa Non Us', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack A2h124 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack A2h124 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack A2h124 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Vertical Horizon Vh 8g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack A2h124 48p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack A2h124 24fx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Roamabout Ap 4102', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Nstag Ge250 Tx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack A2h254 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix C3g124 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack C3g124 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix C3g124 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack C3g124 48p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.1.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix C2h124 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  C2g124 36', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack Switch C2g124 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack Switch C2g124 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix C2 24 Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix C2 48 Port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.286', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  V2h124 24fx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix A2h123 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack B2g124 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack B2g124 48p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Matrix B2h124 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack B2h124 48p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.318', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B2g124 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B2h124 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B2h124 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  B2h124 24fx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack C2g134 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.350', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Enterasys  Securestack C2g170 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.5624.2.2.360', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Fortinet', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.100', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 1000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.10004', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.10004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 100a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.1001', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.3001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate One', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1000a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1000afa2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1000alenc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10005', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.10004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1101e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 100f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 110c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 111c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 100d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Rugged 100c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 140e Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 101f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 100e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1041', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 100ef', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1042', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 101e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1043', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1200d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.12000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1240b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.12400', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 140d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1401', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 140p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1402', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 140t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1403', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1500d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.15000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1500dt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.15001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1801f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.15002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 2201e 2200e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.18000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 2201e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.18001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 1800f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.18003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2000', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.15.200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.20000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 200a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2001', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.2001', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 224b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 200b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 200bpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 200d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 240d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 201e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2007', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 240dp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 200e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2009', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 201f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 280d Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 20c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 20c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 20ca', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 20ca', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 2500e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.25000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 2601f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.26001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.30', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90081', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.3000', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.15.300', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.30000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3301e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.30001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.30002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 310b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.3002', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.3002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 300d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.3003', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.3006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 311b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.3004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 300c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.3005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 300e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.3007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 301e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.3008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3016b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.30160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 30b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.302', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 30d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.304', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3040b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.30400', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3140b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.30401', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 30dpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 30e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64 Vmx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 30b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.310', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3100d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.31000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 30d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 30dpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 30e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64 Svm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3200d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.32000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3240c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.32401', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3401e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.34011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.36000', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.3600', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3600e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.36001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3600a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.36003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3600c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.36004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3601e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.36011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3700d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.37000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3700dx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.37001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3800d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.38001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3810a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.38100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3810d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.38101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3815d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.38150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3950b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.39500', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3951b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.39501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3960e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.39601', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3980e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.39801', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64 Xen', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.4000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 4000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.40000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 400a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.4001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 400d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.4004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 401e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.4008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 40c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.410', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 40c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.411', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 40f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.443', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64 Aws', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64 Aws Ondemand', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate FortiGate  t50a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.500', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.5000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5002fb2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 500a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.5001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5001', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5001a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5001fa2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5001b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5001c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50014', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5001d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50015', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5002a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50021', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiswitch 5023b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50023', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 500d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.5004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50040', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 500e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.5005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5005', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50050', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5005fa2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50051', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 501e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.5006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate FortiGate  t50am', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 50b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.502', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 50b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.503', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.510', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 51b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.504', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 50e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.505', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 50e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.506', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 5101c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.51010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 51e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.515', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 51e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.516', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64 Kvm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 60', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.600', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.15.60', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.603', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 600c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.6003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 600d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.6004', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.6201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 600e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.6005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 601e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.6006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 60m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.601', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 60adsl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.602', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 60b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.603', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 60c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.605', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.615', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64npu', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 60', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.610', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.610', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 60a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.611', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.611', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 60am', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.612', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.612', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 60b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.613', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 60cm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.616', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 60ca', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.617', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 60cb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.618', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 6xmb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.619', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 620b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.6200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 60cp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.621', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 621b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.6210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 60csfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.622', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 60d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.624', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.625', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 60d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.626', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 60dp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.627', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Soc3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.628', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 90d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.630', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 90dpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.631', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 90d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.632', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 90dpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.633', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 94dpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.634', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 98dpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.635', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 92d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.636', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 92d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.637', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Rugged 90d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.638', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 60e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.639', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 61e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.640', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 60e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.641', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Rugged 60d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.643', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Rugged 60f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.644', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 61f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.645', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 61e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.649', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64gcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64 Hw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 70d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.700', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 70dpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.701', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 80c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.800', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.8000', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.800', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 800f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.8001', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.8001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 800c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.8003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 800d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.8004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 80cm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.801', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 82c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.802', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 80d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.803', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 80cm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.810', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiwifi 81cm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.811', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 80e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.842', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 81e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.843', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 81poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.844', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 80f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.846', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 900d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.900', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Fosvm64', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Azure Vm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64gcpondemand', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90018', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64ali', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90019', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Vm64aliondemand', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90020', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate Fosvm64kvm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90060', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 90e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.940', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 91e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.941', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.1000', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.1000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Faz1000b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.10001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 1000b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.10002', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.10002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 100a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.1001', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.1001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 100b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.1002', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.1002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 100c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.1003', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.1003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.20000', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.20000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 2000a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.20001', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.20001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 2000b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.20002', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.20002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 3000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.30005', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.30005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.4000', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.4000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 4000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.40000', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.40000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 4000a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.40001', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.40001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 4000b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.40002', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.40002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 400b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.4002', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.4002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.8000', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.8000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 800b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.102.1.8002', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.8002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.1000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 1000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.10003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 1000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.10006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager Vm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.1001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 100c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.1003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 2000xl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.20000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 2000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.20005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 200d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.2004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 200e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.2005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 200f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.2006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.30000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 3000b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.30002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 3000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.30003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 3000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.30006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 300d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.3004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 300e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.3005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 300f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.3006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 3900e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.30905', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.39005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.4000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 4000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.40004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 4000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.40005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 400a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.4001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 400b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.4002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 400c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.4003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 400e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.4005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager 5001a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.50011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimanager', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 1000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.10003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 1000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.10004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 1000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.10005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 1000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.10006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer Vm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.20', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 2000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.20005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 200d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.2004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 200e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.2005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 200f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.2006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 3000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.30004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 3000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.30006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 300d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.3004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 300f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.3006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 3500e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.35005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 3500f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.35006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 3700f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.37006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 3900e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.39005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 400c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.4003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 400e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.4005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortianalyzer 800f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.103.3.8006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimail Vm Kvm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiswitch1024d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.106.1.10241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiswitch1048d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.106.1.10481', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiswitch 108e Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.106.1.1083', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiswitch 224d Fpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.106.1.2242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiswitch 5003a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.106.1.50030', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiswitch 5003b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.106.1.50031', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiswitch5003a Controller', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.106.1.51030', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 1000b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.10002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 1000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.10003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 2000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.10005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 1000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.10006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 100d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.1004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 3000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.30003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 3000c Fsx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.30004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 3000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.30005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 3000d Fsx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.30006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 3000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.30007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 3010e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.30008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 4000c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.40003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 4000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.40004', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.40004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 4000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.40005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 400b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.4002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 400c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.4003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 400d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.4004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb Vm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.50001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb Xenopensource', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.50002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb Xenserver', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.50003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb Xenaws', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.50004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb Hyperv', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.50005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb Kvm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.50006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb Azure', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.50007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb Vm Payg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.50008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb Kvm Payg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.50009', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiweb 600d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.107.1.6004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiddos 900b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc Dev', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 1000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.1001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 1000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.1003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 100d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 100f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 1200f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.1203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 1500d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.1501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc Kvm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 2000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.2001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 2000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.2003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 200d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 200f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 2200f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.2203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc Vm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 300d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.301', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 300e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.302', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 300f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.303', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 4000d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.4001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 4000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.4003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 400d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.401', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 400f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.403', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 4200f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.4203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 5000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.5003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 60f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiadc 700d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.112.100.701', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortiauthenticator', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.113.100.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortisandbox3000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.118.1.30006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortisandbox', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.118.1.30007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortimail 2000a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.1688', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fwdb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.3001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 300a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.301', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t Ssf Ssl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.36000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Netsol', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.50051', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  60 620b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.600', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fortigate 800a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.801', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t1000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t1001f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.10009', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t120g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t121g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.1202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t1800f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.15003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffw1801f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.15004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t1800g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.18002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t200f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t201g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2014', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t200gpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2015', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t201gpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.2016', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t2600f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.26000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffw2600f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.26002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t3000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.30003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t3001f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.30004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  r30d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.307', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  r35d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.308', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fr30da', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.309', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t30eg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  30en', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t3200f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.32010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t3201f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.32011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  30ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fw30en', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fw30ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.323', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fw30eg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.324', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t3400e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.34001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t3500f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.35001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t3501f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.35011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t3701f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.37011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t4200f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.38002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffw4200f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.38006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t4400f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.39001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffw4400f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.39007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffw3980e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.39804', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t400e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.4007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t400ebp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.4009', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t400f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.4010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t401f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.4011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fosvm64xen', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t4201f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.42002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t4401f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.44001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffw4401f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.44002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t40f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.441', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t41f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.442', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  41fi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.444', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fwf40f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.445', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fwf41f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.446', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fw40fi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.447', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fw41fi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.448', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  tvm64opc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffw4801f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.48003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t5001e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50016', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t5001e1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.50017', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fw502r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.517', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t52e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.518', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t6000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.60001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t600f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.6007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t601f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.6008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t60epoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.642', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  60ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.646', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  60ec', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.647', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  r60fi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.648', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  tarm64kvm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t60ej', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.661', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fwf60ej', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.662', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t60ev', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.663', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fwf60ev', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.664', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t7000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.70001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t71f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.702', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fr70fb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.704', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fr70fm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.705', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t7000f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.71201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffvmev', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vmev', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vmxx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  tvmx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm00', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm01', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm02', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm04', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80009', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm32', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm1v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm2v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm4v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vm8v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80014', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  v16v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80015', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  v32v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80016', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vulv', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80019', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vmul', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80020', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vmsl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80021', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vmsb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80022', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vmel', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80023', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vmml', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80024', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffvmbb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  vmpg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.80030', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t80epoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.841', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t80f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.845', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t80fbp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.847', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fwf80f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.848', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fwf81f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.849', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t80fpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.850', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  t81fpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.851', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fw81fd', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.852', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fw81fp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.853', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  tarm64aws', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  tarm64xen', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  tvm64raxondemand', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90021', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  tvm64ibm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90022', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  tarm64oci', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  tarm64gcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90026', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  tarm64azure', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90027', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Fosvm64hv', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90061', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffwvm64', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90070', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ffwvm64kvm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.1.90071', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  config', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  configstatus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.22.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  configserial', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.22.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  configchecksum', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.22.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  configlastchangetime', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.22.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcpinfo', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcpservernumber', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcptables', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcptable', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcpentry', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcpleaseusage', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23.2.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcptrapobjects', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcptraptype', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcptrapmessage', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  dhcpserverid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.23.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdeviceinfo', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdevicetable', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdeviceentry', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdeviceplatform', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdeviceflag', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swcpu', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swmemory', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdeviceipv6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdeviceid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdeviceserialnum', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdevicename', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdeviceversion', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdeviceauthorized', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdevicestatus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdevicejointime', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swdeviceip', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.1.1.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportinfo', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swporttable', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportentry', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportswitchplatform', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportuntaggedvlan', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportpoe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportpoestatus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportpoestate', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportpoepower', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportswitchid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportnum', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportswitchserialnum', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportname', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportstatus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportspeedduplex', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportnativevlan', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  swportallowedvlan', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.24.2.1.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  chassisinfo', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.25.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  chassisversion', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.25.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  chassistrapobjects', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.25.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  chassisslotid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.25.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  chassistrapmessage', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.25.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  servicegroupworkerblades', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbtables', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgworkerbladetable', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgworkerbladeentry', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbentindex', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbsysuptime', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbsyscpuusage', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbsysmemusage', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbbaselink', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbfabriclink', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbdatahb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbmgmthb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbservicegroupid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbchassisid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbslotid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbstate', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbstatusmsg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbmaster', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbsysversion', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'FortiGate  sgwbsysserial', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.12356.101.26.1.1.1.9', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'H3C', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 28c Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 28c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 31e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7003', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7006', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100csi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3510e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3540e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsu3fwcea0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsu1nscea0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelst1fw3c1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelst1nsm2c1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsx1fwcea1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1009', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsx1nscea1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2620 Agn C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2610 Gn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2610 Gne', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1014', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr800 Wlan ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1015', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr800 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1016', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr800 10 Wlan ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1017', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 Winet ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1018', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 10 Winet ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1019', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 32e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930 10 Winet ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1020', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9810', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1021', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork B6300 Xlg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1022', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork B6300 Gxg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1023', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr900 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1024', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr900 E Wlan ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28s Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1026', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 52s Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1027', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28f Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1028', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28s Hpwr Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1029', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 33', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 52s Pwr Ei D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1030', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28s Hpwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1031', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E528 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1032', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E552 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1033', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsu1wcme0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1034', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ewpx1wcme0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1035', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8810 X S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1036', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8806 X S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1037', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8803 X S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1038', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8802 X S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1039', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 33e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf5020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1040', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf5040', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1041', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ra100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1042', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930 Lm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1043', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930 W Lm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1044', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2600 5 L Mc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1045', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 32c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1046', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 56c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1047', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 32c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1048', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 56c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1049', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 34', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 56c Ei M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1050', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wb521x E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1051', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wb521x H', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1052', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx2540e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1053', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx360', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1054', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx361', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1055', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2610e Gne', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1056', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6603 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1057', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6605 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1058', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6609 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1059', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 34e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 30s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1060', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 54s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1061', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 30c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1062', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 54c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1063', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 30c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1064', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 54c Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1065', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 54qs Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1066', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ra200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1067', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000csi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1068', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F100msi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1069', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F100asi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1070', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820v2 48s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1071', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6300 42qt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1072', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6300 42qf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1073', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6300 48s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1074', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6300 52qf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1075', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork U8300 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1076', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork U8300 48xlg U', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1077', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5008pv2 Ei Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1078', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024pv2 Ei Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1079', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 35e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 52p Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1080', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 52p Pwr D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1081', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Nsc1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1082', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4308', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1083', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4308 Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1084', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1085', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 52tp Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1086', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1087', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 52tp Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1088', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1089', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 63 1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1030', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1090', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1091', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1060', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1092', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1070', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1093', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1080', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1094', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathvmsgvlb1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1095', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5864 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1096', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5864u F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1097', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5864t F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1098', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6348 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1099', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 52c Pwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F100 C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6348t F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16006 F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16010 F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16014 F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathm9000context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg3000s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1105', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.598', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6800 4c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6800 2c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8803 F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8805 F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F100 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8808 F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8812 F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12516x Af', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vac1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx8700', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 30f Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5530c Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5554c Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5530c Pwr Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5554c Pwr Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F100 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5530f Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28s Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 52s Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28f Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 28s Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 52s Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 28f Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La4608e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320 Acn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320i Acn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F100 E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320i X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320 Ts', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320 Tq', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320h Acn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S10506', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S10510', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7606 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7610 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1138', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1139', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.838', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.109', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F1000 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vbras1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1145', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vsr1000p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vbras1000p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12508x Af', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La3616s Gm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F1000 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La3616s Gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La3616e Gm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wap722e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wap722', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er2100n', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er2100v2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5560h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5580h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wap621', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 W', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F1800 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er3260g2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er5100g2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er5200g2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er6300g2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er8300g2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er8300g2x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9904', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9910', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsu1adecea01', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsxm1adecea1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath V100 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6900 2f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6900 4f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6348s F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6364 F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5848 F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1808g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1824g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1848g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1020', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath V1000 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1030', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1040', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3510h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3520h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3540h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5540h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La3608e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La3608e Db', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 30s Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 54s Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F100 Aw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 30c Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 54c Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 30c Pwr Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 54c Pwr Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 54qs Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 30f Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12516f Af', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12508f Af', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12504x Af', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12504f Af', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5510 24p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F1800 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4100 10tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4100 10tp Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4100 26tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4100 26tp Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4300 52p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4300 28p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4100 12tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4100 20tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4100 28f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4300 28p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F1800 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6800 54qf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1210', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1733', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320 28s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320 52s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320 28f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320 28s Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4520 28tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4520 30f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La4310', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La4310v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La4320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpoint', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La4320v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La4320x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade4nsqm1fwdfg0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5510ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5540ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathl1000e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathl1000m', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathl1000s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf5000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg10 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathl5000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathl1000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320 Tq V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 W Db', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 Lm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 W Lm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6820 32h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6820 54hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr5620', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg10 11', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3620dp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 W Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 Lm Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ra100ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3600 28 Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3620 Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6800 54qt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12504 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12506 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12510 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg10 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12508 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12512 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S515024spwrei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5150x 16s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5150x 16s Tei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100ag2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1000cg2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Uis M8310 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Uis M8320 48xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Uis M6300 Xlg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg10 41', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathw2001', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathw2005', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathw2010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathw2020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1264', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathw2040', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathw2080', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathw2200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathw1020d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathw1040d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg21 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathw1200d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatha2020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatha2100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathd2020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1273', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathd2050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1274', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 34c Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 34c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4120 26tp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4330acn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320s 28f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg20 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320s 28p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4520 28s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade3context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1282', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr26 30 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr36 10 Ac R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr36 20 Ac R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr36 40 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr36 60 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr56 60 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr56 80 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1289', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg20 32', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1290', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930 W R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1291', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2600 10 R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1292', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3010ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1293', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3024ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1294', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wcmx20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1295', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 32c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1296', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 56c Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1297', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 56c Pwr Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1298', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12502x Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1299', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5510 24f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg80 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ns228', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ns252', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1301', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladefw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1302', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladeade', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1303', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladeiiilsum1fwceab0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1304', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28ps Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7506e X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7510e X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1307', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7504exs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1308', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7502exs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1309', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Xe200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320 Acn Pi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1310', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320 Acn Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1311', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ner324', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1312', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ner214w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1313', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx2540ev7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx2540h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx4320 Acn C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx4320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wap712', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1318', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Uis M8380 C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Xe2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Uis M8380', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsu1wcme0v7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ewpx1wcme0v7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Xe7200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4100 12tp Li', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1338', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4100 12tp Pwr Li', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1339', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Xe7300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Xe7500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Xe7600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16004 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1365', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16008 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1366', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16016 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1367', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Xe7205', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Xe7305', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Xe7505', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3610 28p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Xe7605', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neoceanix1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6820 56hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1417', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neoceanex1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neoceanex800', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neoceanix5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neoceaniv5100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neoceaniv5200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560x 54c Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1461', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560x 54c Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1463', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9502', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9505', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9508', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3610 52p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9508v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520 48s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1508', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9512', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Sr8812', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Sr8808', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Sr8805', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Sr8802', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c E126 Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28s Pwr Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1569', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg31 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dr834', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28s Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1589', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7510e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52s Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1590', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3610 28tp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 24p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 48p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 8p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 16p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 8p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 16p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 8p Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 16p Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 26c Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 50c Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3610 28f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3108tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3116tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3126tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3108tp Ei Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3116tp Ei Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 54qc Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1740', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3126tp Ei Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7502m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.176', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500m 20c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500m 20f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Aolynk Br304 ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c E126', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9505 V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9512 V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9508 V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9820 64h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1826', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9508v V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9502 V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Sr8802 V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Sr8805 V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Sr8812 V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Sr8808 V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 52p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c E328', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c E152', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6850 56hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1913', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2026', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6602', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6608', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 8tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.195', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 8tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 16tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.197', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 15tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 26tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.199', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 52c Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c E352', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 26tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7502 V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg80 21', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vg80 80', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wx5002', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wcma', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr30 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7503e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.207', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7506e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.209', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.469', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 8c Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7506e V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Fw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Ipsec', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 8tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 16tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c E126a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 26tp Si B', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr30 16', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secchannel1000 Ga', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secchannel1000 Gs', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secchannel1000 Me', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secchannel1000 Ma', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secchannel1000 Ms', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secchannel1000 Mc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secchannel1000 Ge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2126 Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 16c Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c E150 Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr30 11', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix3040', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix3080', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpathf100 M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Vx1500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix1520', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix1540', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wcm Wx5002 128ap', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 26c Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 11', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 13', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 15', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Dl1008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Dl1008s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Dl1012', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3610 52m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Iv5680', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Iv5240', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F1000 E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 8t Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5016p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Firewall Module Lsq1fwbsc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsb1fw2a0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Et704', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ec1001', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ec1001 Hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 16t Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ec1004 Hc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ec2004 Hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dc1001', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dm8000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vm8000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ms8000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 52tp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 12', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1550e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1550', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 26t Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1526 Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 12 T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 15 I', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 15 N', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx6103', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.264', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.611', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx6100lsq', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx6100sb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx6100sw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Dl1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Dl1000s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 26tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa1208e G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa1208e Dg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa1208e Ag', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa1208e Agp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.273', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7501m 24t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.274', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7501m 24tp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7503m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7506m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7506m V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 24p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7510m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpatht200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpatht200e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.282', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Soho Aolynk Cc600', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa1208e Gp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wb2321e Agp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wh2520e Agp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg 2000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg 3000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg 5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.289', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 26c Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5520tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.290', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2210 Ag', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.291', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2220 Ag', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.292', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2220e Ag', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.293', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2210x G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.294', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2220x Ag', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.295', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2220x Agp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.296', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 52tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.297', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath Ase5000 E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.298', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath Ase5000 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.299', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 50c Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath U200 C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath U200 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.301', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath U200 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.302', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath U200 M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.303', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ec3016 Hv', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.304', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dc1001 Ff', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ecr 3304 Hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ecr 3308 Hd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.307', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ecr 3316 Hc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.308', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Isc 3000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.309', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5100 48p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Isc 3100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.310', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vm9000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.311', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Vm5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.312', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ms9000 Vtdu', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.313', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ms9000 Nru', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ums9005', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Cs2104b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Cs2106b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.318', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5048e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 28p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F5000 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix3240', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix3620', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msa 7302', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.323', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msa 7306', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.324', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7501e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 8c Epon Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 16c Epon Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.327', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 26c Epon Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.328', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsq1afcbsc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.329', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 52p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsb1afc1a0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.330', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F1000 C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.331', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F100 A Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.332', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath V100 E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.333', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 32c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.334', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 56c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.335', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 32c Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.336', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 56c Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 60c Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.338', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 32f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.339', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 28tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800x 28c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.340', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800x 28s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.341', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Soho Aolynk Cc602', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.342', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr400', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.343', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Soho Aolynk Cc600e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.344', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath T1000 M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.345', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Vx1540', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.346', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr50 06', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.347', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath Acg2000 M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.348', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsq1acgasc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.349', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 28p Pwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsb1acg1a0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.350', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wx3024 Wcm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.351', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wx3024 Lsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.352', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wx5004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.353', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6604', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.354', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Iag5000 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.355', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Spe Fwm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.356', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg2200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.357', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7602', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.358', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7603', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.359', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 52p Pwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7606', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.360', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7606 V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.361', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7610', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.362', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2610e Agn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.363', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2620e Agn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.364', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa1208e G V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.365', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa1208e Dg V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.366', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa1208e Ag V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.367', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa1208e Agp V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.368', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa1208e Gp V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.369', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 28p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7503e S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.370', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath Iag2000 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.371', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath T1000 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.372', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath T1000 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.373', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Ewpx1fwa0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.374', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsq1nsmsc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.375', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsq1afdbsc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.376', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsq1lbsc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.377', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsb1lb1a0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix1560', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.379', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 52p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ex1500s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.380', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ex1520s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.381', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ex1540s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.382', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ex1560s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.383', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Et716', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.384', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 2p Olt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.385', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Er3200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.386', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Er3100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.387', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9505e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.388', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9508e V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.389', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 28p Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9512e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.390', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12508', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.391', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.876', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12518', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.392', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.877', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Et708', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.393', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Et724', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.394', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2008tp Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.395', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2016tp Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.396', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2403tp Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.397', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg2000 Ct', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.398', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 52c Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 52p Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3528p Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.400', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3552p Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.401', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3552f Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.402', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3528f Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.403', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3528tp Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.404', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath Afd1000 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.405', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F100 C Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.406', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Er3260', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.407', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg 800', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.408', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg 800g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.409', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 28f Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg 1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.410', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg 1800', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.411', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix3240e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.412', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix3620e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.413', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix3640e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.414', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath Acg8800 S3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.415', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath T5000 S3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.416', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath Iag2000 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.417', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath Acg8800 S3 Ns21s2mspb0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.418', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath T5000 S3 Ns11s2mspb0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.419', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5600 26c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr3010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.420', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr3011e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.421', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr3011f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.422', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath T200 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.423', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath T200 M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.424', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath F100 C2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.425', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Fw1000 Ge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.426', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Fw1000 Ga', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.427', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Fw1000 Gs', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.428', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Fw1000 Me', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.429', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5600 50c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Fw1000 Ma', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.430', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Fw1000 Mm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.431', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Fw1000 Mc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.432', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Utm2000 Ma', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.433', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Utm2000 Mm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.434', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Utm2000 Ms', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.435', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Ips2000 Gm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.436', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Ips2000 Mm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.437', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6616', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.438', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3620 28tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.439', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5600 26c Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3620 28p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.440', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3620 52p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.441', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3620 28p Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.442', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3820 52p Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.443', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3620 28f Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.444', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3620 52m', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.445', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3620 52m Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.446', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3620 28c Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.447', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2210e Ge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.448', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2220x Age', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.449', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5600 50c Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2210x Ge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.450', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wb2320x Age', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.451', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ex1540', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.452', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5810 50s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.453', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsq1ipssc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.454', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsb1ips1a0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.455', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Er5100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.456', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Er5200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.457', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wx3010 Wcm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.458', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wx3010 Lsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.459', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5600 26f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Soho Aolynk Cc652e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.460', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 20p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.461', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.462', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 52p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.463', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.464', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 52p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.465', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28p Lpwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.466', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 29p Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.467', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx6100lsr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.468', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 52g Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg 2000b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.470', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Icg 2000c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.471', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1626', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.472', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1650', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.473', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1626p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.474', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix3620s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.475', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Neocean Ix3080s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.476', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Er3280g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.477', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2610 Agn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.478', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2612 Agn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.479', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 52p Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath T200 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.480', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath U200 Cs', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.481', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath U200 Cm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.482', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpath U200 Ca', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.483', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsr1afc2a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.484', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsr1fw2a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.485', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsr1lb1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.486', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsr1nsm1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.487', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Soho Aolynk Cc650e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.488', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Lswm1wcm10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.489', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 28g Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Lswm1wcm20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.490', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ewpxm1wcmc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.491', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lswm1ips10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.492', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lswm1fw10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.493', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secpathf1000 S Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.494', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1000 A Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.495', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr50 06 V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.496', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsr1acg1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.497', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsr1ips1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.498', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7602s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.499', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 28f Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 28p Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7603 Es', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.500', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7606 Es', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ssm S5500g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.502', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ssm Fic', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.503', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ssm Mim', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.504', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Er8300', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.505', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2610x Gnp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.506', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wb2360x Anp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.507', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wh2530x Dag', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.508', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wh2530x Dag', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.509', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600 52m Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2620 Agn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.510', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Dptech Fw1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.511', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2008tp Ea Si ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.512', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2016tp Ea Si ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.513', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2403tp Ea Si ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.514', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 24p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.515', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 48p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.516', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28c Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.517', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 52c Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.518', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28c Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.519', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7502', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 52c Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.520', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wx3008 Wcm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.521', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wx3008 Lsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.522', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr900', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.523', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr920', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.524', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Secblade Lsq1iagsc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.525', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wx7306', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.526', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wx7310', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.527', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Blade5310', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.528', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Blade55102', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.529', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7503', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Blade5512s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.530', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Blade55110x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.531', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Wa2610e Gnp V5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.532', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 26tp Si Um', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.533', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 52tp Si Um', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.534', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 24p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.535', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 48p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.536', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Me8000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.537', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Me8600', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.538', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Me5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.539', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7506', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Mg6060', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.540', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Mg6050', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.541', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Mg6050s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.542', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Mg9010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.543', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Mg9030', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.544', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Mg9060', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.545', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Neoceanvx1500 Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.546', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Soho Aolynk Cc620e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.547', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sivx S3628', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.548', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sivx S5528', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.549', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7506r', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sivx Vs1500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.550', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Neoceanix2540', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.551', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Neoceanvx2500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.552', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28p Pwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.555', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28p Hpwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.556', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 E Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.557', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5028', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.558', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Et824', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.559', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Osm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.560', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5002 V2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.561', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5004 V2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.562', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht1000 C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.563', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Lst1ips1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.564', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Lst1fw2a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.565', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Lst1lb1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.566', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Lst1nsm1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.567', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Ewpx2iagsc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.568', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 A Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.569', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar28 09', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx6108e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx6112e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.571', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 34c Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.572', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 58c Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.573', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa1208e Gp H20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.574', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 9p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.575', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 9p Pwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.576', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 9p Hpwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.577', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E528', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.578', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E552', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.579', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar28 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600v2 28tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.580', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600v2 52tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.581', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600v2 28tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.582', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600v2 52tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.583', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600v2 28f Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.584', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600v2 28tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.585', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600v2 52tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.586', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600v2 28tp Pwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.587', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3600v2 52tp Pwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.588', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3500v2 28tp Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.589', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar28 11', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3500v2 52tp Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.590', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3500v2 28f Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.591', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3500v2 28tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.592', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3500v2 52tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.593', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9508e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.594', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12504', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.595', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg2000b Gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.596', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg3000b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.597', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg5000b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.599', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 28c Ei Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar28 12', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wh2640x Agnp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.600', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2620x Agnp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.601', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100 16tp Pwr Ei F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.602', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16018', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.603', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.604', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.605', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 A Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.606', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 E Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.607', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Lst1acg1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.608', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Spe Ips', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.609', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar28 13', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Spe Acg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.610', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsq1wcmd0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.612', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ewpx2wcmd0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.613', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsr1wcm3a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.614', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5830 52sc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.615', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5830 106s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.617', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Et814', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.618', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28p Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.619', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar28 14', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 52p Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.620', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Im Fw Ii', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.621', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Im Lb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.622', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Im Ssl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.623', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er2210c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.625', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vcx Connect 100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.626', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vcx Connect 200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.627', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vcx V7005', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.628', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vcx V7205', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.629', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar28 30', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vcx Mim', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.630', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vcx Connect Mim Primary', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.631', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vcx Connect Mim Secondary', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.632', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vcx V7310', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.633', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Im Ips', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.634', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Im Acg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.635', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7508e X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.636', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S10504', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.637', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S10508', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.638', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S10508 V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.639', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar28 31', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Spe Fwm 200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.640', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1000 S Ai', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.641', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3024e Wcm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.642', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3024e Lsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.643', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er2100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.644', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820x 34tc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.645', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820x 34sc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.646', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820x 34c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.647', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820x 64sc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.648', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cc720e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.649', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar28 40', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2126t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.650', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 54s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.651', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820x 26s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.652', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 8tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.653', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 16tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.654', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 26tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.655', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E126b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.656', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 8tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.657', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 16tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.658', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 26tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.659', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar28 80', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 8tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.660', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 16tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.661', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 26tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.662', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2008tp Eb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.663', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2016tp Eb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.664', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2043tp Eb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.665', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2008tp Pwr Eb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.666', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2016tp Pwr Eb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.667', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2403tp Pwr Eb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.668', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5800 Lsw1fc4p0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.669', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar46 20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2403tp Ea Si D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.670', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3528p Ea D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.671', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Oap Fic V2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.672', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Oap Mim V2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.673', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Oaps Mim V2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.674', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2008tp Pwr Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.675', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2008tp Pwr Ea Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.676', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2016tp Pwr Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.677', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2403tp Pwr Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.678', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 24p Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.679', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar46 40', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 24p Pwr Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.680', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 48p Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.681', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.682', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 28c Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.683', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 52c Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.684', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 28f Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.685', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 28c Ei Dc D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.686', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Mg9050', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.687', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 52sc Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.688', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ce3000 32f Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.689', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar46 80', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5830x 24s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.690', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Dc1801fh', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.691', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Dc2004ff', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.692', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec1101hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.693', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec1102hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.694', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec1501hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.695', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec1801hh', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.696', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec2516hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.697', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec2016hc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.698', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec2016hc8ch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.699', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6100 20q Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec2016hc4ch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.700', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec1504hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.701', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5421', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.702', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5401', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.703', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5221h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.704', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5201h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.705', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vm8500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.706', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms8500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.707', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Dm8500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.708', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vx500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.709', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 21', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Isc3000e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.710', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Isc3000s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.711', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cc700e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.712', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Dc1001ff', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.713', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3316hc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.714', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3308hd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.715', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3316hc8ch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.716', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3316hc4ch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.717', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3308hd4ch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.718', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic65017l', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.719', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 40', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec2508hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.720', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3528e A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.721', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3552tp Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.722', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp3024', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.723', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp3048', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.724', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3528fp Ea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.725', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E328b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.726', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E352b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.727', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E152b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.728', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 52tp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.729', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr30 20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp2008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.730', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp2016', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.731', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp2024', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.732', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp5024', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.733', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp5048', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.734', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2052tpea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.735', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7604x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.736', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7608x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.737', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7608xv', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.738', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa3620iagn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.739', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr30 40', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa3628iagn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.740', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa3610ign', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.741', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cc750e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.742', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024f Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.743', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820v252qf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.744', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2110gn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.745', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr20 10e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.746', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S10512', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.747', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28sc Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.748', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa1208egnp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.749', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Msr30 60', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2610egnph20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.750', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2620iagn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.751', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2610ign', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.752', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2612', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.753', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2620', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.754', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wb524', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.755', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelst1fw3a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.756', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsu1fwcea0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.757', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3010ewcm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.758', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3010elsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.759', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr50 40', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6602 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.760', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6602 X2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.761', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladecrimnam1a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.762', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2630', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.763', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3610ac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.764', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3610dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.765', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3620ac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.766', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3620dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.767', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3620poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.768', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3640', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.769', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr50 60', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3660', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.770', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr5660', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.771', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr5680', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.772', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 58c Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.773', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 34c Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.774', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsu3wcmd0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.775', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ewpx3wcmd0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.776', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7612x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.777', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx6103e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.778', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladecrimfw1a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.779', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic66216c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.780', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic66216l', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.781', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic3401v', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.782', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic3401vir', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.783', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic3421v', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.784', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic3421vir', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.785', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sic235ir1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.786', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sic235ir3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.787', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sic335evir', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.788', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5511i', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.789', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5521i', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.790', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5551i', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.791', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5421e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.792', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5401e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.793', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5421d', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.794', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5401d', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.795', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5621', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.796', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic5601', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.797', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic6501e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.798', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic6621e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.799', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 28c Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sic635', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.800', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic6501ir', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.801', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hic6621ir', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.802', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sic635ir', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.803', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec2508hf4ch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.804', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec2516hf8ch', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.805', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3308hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.806', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3316hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.807', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Isc3500e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.808', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Isc3500s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.809', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3304hfe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.810', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3308hfe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.811', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3316hfe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.812', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Isc3600', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.813', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3204hw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.814', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3208hw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.815', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ecr3216hw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.816', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec2508hw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.817', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ec2516hw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.818', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Isc2600', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.819', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Dc2808fh', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.820', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ce300034c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.821', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ce300058c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.822', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6604 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.823', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6608 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.824', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr6616 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.825', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100ag', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.826', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100cg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.827', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100eg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.828', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100mg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.829', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100sg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.830', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 26tp Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.831', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 24p Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.832', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28p Poe Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.833', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28p Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.834', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 34c Pwr Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.835', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 58c Pwr Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.836', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 34f Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.837', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msv50', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.839', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.840', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930gu', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.841', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930sa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.842', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930gg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.843', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820v2 54qs Ge', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.844', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820v2 52q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.845', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cc754e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.846', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp5008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.847', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladecrimlb1a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.848', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 34c Hid', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.849', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 58c Hid', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.850', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9505ev7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.851', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9508ev7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.852', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9508evv7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.853', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9512ev7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.854', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12508v7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.855', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12518v7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.856', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12504v7', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.857', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100cai', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.858', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathl1000a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.859', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2610e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.860', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2620e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.861', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2620x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.862', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2610x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.863', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S58306002', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.864', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S58306004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.865', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsu1ipsbea0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.866', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelst1ips2a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.867', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930w', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.868', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930gw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.869', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf5000c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.870', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf5000s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.871', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12510fdc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.872', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12510fac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.873', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12510xdc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.874', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12510xac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.875', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12516fdc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.878', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12516fac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.879', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 21', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12516xdc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.880', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12516xac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.881', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930gt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.882', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930gtc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.883', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930guc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.884', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1000ag', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.885', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1000cg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.886', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1000sg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.887', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsq2fwbsco', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.888', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2620agn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.889', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 21a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vsr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.890', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vsr1001', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.891', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vsr1004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.892', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vsr1008', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.893', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 S28 Pei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.894', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 S52 Pei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.895', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930winetw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.896', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa3628iagnx', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.897', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2110', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.898', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2110 Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.899', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 52c Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 21b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2126', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.900', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2126pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.901', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2152', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.902', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5540 Wcm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.903', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5540 Lsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.904', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5520 Wcm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.905', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5520 Lsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.906', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930 Wgt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.907', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg 5000t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.908', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg 6000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.909', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 22', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr26 30', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.910', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr36 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.911', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr36 60', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.912', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2600 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.913', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.914', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2600 17', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.915', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg 3000d', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.916', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg 3000e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.917', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsu1adecea0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.918', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelst1ade1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.919', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 22 8', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8804 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.920', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8808 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.921', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8812 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.922', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cc710e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.923', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cc712e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.924', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820v332q', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.925', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5008pv2ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.926', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024pv2ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.927', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5048pv2ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.928', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2610', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.929', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 22s 8', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2610 Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.930', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2626', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.931', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2626 Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.932', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2652', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.933', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Simware7boxcen', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.934', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Simware7boxirf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.935', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Simware7chassisdevice', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.936', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vsr1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.937', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathm9000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.938', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathm9006', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.939', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 22 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathm9010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.940', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathm9014', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.941', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladeiiinsqm1fwcea0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.942', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wb521x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.943', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wb511x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.944', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er3108g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.945', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er3108gw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.946', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28s Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.947', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 52s Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.948', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28f Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.949', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 23 1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28s Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.950', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 52s Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.951', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3600 28', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.952', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3600 51', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.953', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2612e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.954', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2622', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.955', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 10p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.956', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 10p Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.957', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 28p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.958', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 28p Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.959', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 23s 1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 52p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.960', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 10p D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.961', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 10p Pwr D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.962', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 28p D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.963', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 28p Pwr D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.964', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 52p D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.965', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx5510', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.966', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S550028schi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.967', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S550052schi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.968', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S550028schid', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.969', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S550052schid', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.970', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La2608', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.971', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S311010tp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.972', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S311010tppwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.973', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S311026tp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.974', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S311026tppwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.975', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S311052tp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.976', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2610h Gn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.977', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4620e Acn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.978', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4620i Acn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.979', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3c Ar18 30e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ewpx1mac0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.980', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Crimmac1a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.981', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladeiiilst1fw3b1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.982', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2620i Agn X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.983', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3110 10tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.984', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3110 26tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.985', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3110 52tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.986', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 10p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.987', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 28p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.988', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 52p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.989', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v2 52tp Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.990', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 52p Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.991', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 48p Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.992', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 28f Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.993', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2620e X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.994', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathl5000s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.995', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathl5000c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.996', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cc721e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.997', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5820v2 52qf U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.998', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathvfw1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.999', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7502', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1905 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5900af 48xg 4qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 24g 4sfp Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 48g 4sfp Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 6125g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 8g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 8g Poeplus Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 8g Ppoeplus Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 Af 48g Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1250 4dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1250 8dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 16g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.11', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1251 8dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 12518 Ac Switch Chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1251 8ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5900af 48xgt 4qsfp   Jg336a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 8g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 8g Poeplus 65w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 8g Poeplus 180w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5830af 48g Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5830af 96g Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7508h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5120 24g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5900af 48g 4xg 2qsfp   Jg510a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 48g Poe  4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 24g Poe  4sfp Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 24g Sfp Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1250 4acv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1250 4dcv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1250 8acv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1250 8dcv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1251 8acv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1251 8dcv7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5120 48g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5900af 48xg 4qsfp  Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5920af 24xg Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C V1910 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 8 Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 24 Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 6125xlg Blade Switch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 11908 V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 48g Poe  4sfp Hi Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5120 24g Ppoe  Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 24g Poe  4sfp Hi Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 24g Sfp Hi Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Moonshot 45xgc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 12900', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5930 32q Sfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 5930 32qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 7904', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 12916 Ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 12916 Dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 5900cp 48xg 4qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5120 24g Poe  Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5900cp 48xg 4qsfp  8gb Fc B F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 6125 Xlg Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 6125 Gxg Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 6125 G Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 24g 4sfp Xi 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 48g 4sfp Xi 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 24g Poe Plus 4sfp Xi 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 48g Poe Plus 4sfp Xi 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 24g 4sfp Xi Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 48g 4sfp Xi Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 24g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 24g Poe Plus 4sfp Xi Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 48g Poe Plus 4sfp Xi Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Officeconnect 1920 8g Switch  Jg920a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1920 8g Poe  65w ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Officeconnect 1920 8g Poe   Jg922a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Officeconnect 1920 16g Switch  Jg923a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Officeconnect 1920 24g Switch  Jg924a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1920 24g Poe  180w ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Officeconnect 1920 24g Poe   Jg926a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Officeconnect 1920 48g Switch  Jg927a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 24g Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1920 48g Poe  370w ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 5700 40xg 2qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 5700 40xg 2qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 5700 32xgt 8xg 2qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5700 32xgt 8xg 2qsfp   Jg898a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 5700 48g 4xg 2qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5700 48g 4xg 2qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1620 8g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1620 24g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1620 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1950 24g 2sfp  2xgt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1950 48g 2sfp  2xgt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1950 24g 2sfp  2xgt Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Officeconnect 1950 48g 2sfp  2xgt Poe   Jg963 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g 4sfp  Ei  Jg932a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g 4sfp  Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 48g Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g Poe  4sfp  180w  Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 5130 24g Poe  4sfp   370w  Ei  Jg ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 48g Poe  4sfp  Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 48g Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g 2sfp  2xgt Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 48g 2sfp  2xgt Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g Poe  2sfp  2xgt 370w  Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 48g Poe  2sfp  2xgt 370w  Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g 4sfp  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g Sfp 4sfp  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 48g 4sfp  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g Poe  4sfp  180w  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g Poe  4sfp  370w  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 48g Poe  4sfp  370w  Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7503 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5800 24g Sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g 2sfp  2xgt Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 48g 2sfp  2xgt Ei Taa Compliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g Poe  2sfp  2xgt 370w  Ei Taa Complia ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 48g Poe  2sfp  2xgt 370w  Ei Taa Complia ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 7910 Switch Chassis  Jg841a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5900af 48g 4xg 2qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5900af 48xgt 4qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 5900cp 48xg 4qsfp  Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g 4sfp  Ei Brazil', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 48g 4sfp  Ei Brazil', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 48g Poe 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g Poe  4sfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 48g Poe  4sfp   370w  Ei Brazil', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Thunderbird', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 12916e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Nj5000 5g Poe  Wall Jack', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 5510 24g 4sfp  Hi 1 Slot Switch   ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5510 48g 4sfp  Hi 1 Interface Slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 5510 24g Poe  4sfp  Hi 1 Slot  Jh ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 5510 48g Poe  4sfp  Hi 1 Slot  Jh ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 5510 24g Sfp 4sfp  Hi 1 Slot  Jh1 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5820x 14xg Sfp   Jc106a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5510 24g 4sfp  Hi Taa Compliant 1 Interface S ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5510 48g 4sfp  Hi Taa Compliant 1 Interface S ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5510 24g Poe  4sfp  Hi Taa Compliant 1 Interf ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5510 48g Poe  4sfp  Hi Taa Compliant 1 Interf ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5510 24g Sfp 4sfp  Hi Taa Compliant 1 Interfa ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 12910 Ac Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 7904 Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 7910 Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 6127xlg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpe Ff 5930 2slot 2qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5820 24xg Sfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 5930 2slot 2qsfp Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5930', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 5930 4slot Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 6127xlg Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1950 12x Gt 4sfp Plus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 12916e Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 12908e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 12908e Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Moonshot 45gc R10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Moonshot 45xgc R16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5500 24g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Moonshot 180xgc R16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Moonshot 180xgc R40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 12904e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 12904e Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 5130 24g 4sfp  1 Slot  Jh323a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 5130 48g 4sfp  Hi 1 Slot  Jh324a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5130 24g Poe  4sfp  1 Slot Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 5130 48g Poe  4sfp  1 Slot Hi  Jh ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5500 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 48g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 24g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 24g Poe  370w  Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 8g Poe  65w  Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 8g Poe  180w  Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7502jd242c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7503jd240c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7506jd239c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7510jd238c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5500 24g Poe ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5950 32qsfp28  Jh321a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ff 5950 32q28 Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5940 48sfp  6qsfp28  Jh390a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.264', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpe Ff 5940 48xgt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5940 48sfp  6qsfp ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5940 2 Slot  Jh397a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5500 48g Poe  Ei Jg240a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5940 4 Slot  Jh398a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5500 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5500 24g Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7503', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 48g Si2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 24g Poe  Si2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 48g Poe  Si2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5120 24g Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.33', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5120 48g Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5120 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 48g Ei Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 48g Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 9505', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7506', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 9508v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 9508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 9512', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 12508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 12518', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hp 12504 Ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5800af 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexfabric 5820af 24xg  Jg219a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7506 V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 6125g Xg Blade Switch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 3100 8 Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 3100 16 Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A3100 24 V2 Si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A3100 8 V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A3100 16 V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A3100 24 V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 3100 8 Poe Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 3100 16 Poe Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7510', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 3100 24 Poe Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 24g Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 24g Poe Plus Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 24g Sfp Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 48g Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 48g Poe Plus Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 48g Poe Plus Taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5820x 14xg Sfp  Taa 2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5820x24xgsfpplustaa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 24g Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A36002polt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 48g Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 24g Poe  Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5120 48g Poe  Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 24g Sfp Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 24g Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 48g Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 24g Poe  Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5500 48g Poe  Ei Taa2slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5920af 24xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5830af 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1905 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A5830af 96g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 16g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 24g  Je006a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 24g Poe 365w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C V1910 24g Poe  170w   Je008a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 1910 48g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 10504', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 10508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 10508v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 10512', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hp 1905 24 Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hp 3600 24 V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A3600 48 V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 3600 24 Poe  V2 Ei  Jg301c ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 3600 48 Poe  V2 Ei  Jg302a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hp A3600 24 Sfp V2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 3600 24 V2 Si  Jg304a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork A3600 48 V2 Si Jg305a ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A3600 24 Poe  V2si', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork 3600 48 Poe  V2 Si  Jg307c ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A3100 48 V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hp A Msr900', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2040', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr 10038', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr 100414', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2004 24', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2004 48', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hsr6602g Taa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hsr6602xg Taa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr1002 4', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr3010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr935', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.110', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.114', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2003 Taa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3024 Taa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3044 Taa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr933', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.115', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr931', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.116', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.72', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr1003 8s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr932', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr932w', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr3011e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr932wna', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr9328', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr9328w', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr9328wna', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hsr6802 E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hsr6804 E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hsr6808 E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930 4g Lteg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930 4g Ltea', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr3011f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr954', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.130', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr954 W', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr954 W Lte Am', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr954 W Lte', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr958', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr958poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930gb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr931b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 16', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr931dgb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr935b', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930wnab', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A Msr30 20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 40', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 60', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr5040', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr5060', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr920', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A6602', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A6604', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A6608', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A6616', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr900w', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr900wna', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr920w', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr920wna', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2012w', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2012tw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2012twna', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2013w', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2013wna', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2020s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2021s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2040s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr3010dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 16 Poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 20 As', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 20 Poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2011', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 20 Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 40 As', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 40 Poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 40 Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 60 As', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 60 Poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr30 60 Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr5040dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr5060dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A8805', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2012', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A8808', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A8812', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Aoapficv2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Aoapmimv2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Aoapsmimv2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hp Msr2003', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Flexnetwork Msr3012 Ac  Jg409a ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3012dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3024ac', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3024dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2012t', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3024poe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3044', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3064', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr4060', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr4080', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hsr6602 G  Jg353a ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hsr6602 Xg  Jg354a ', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hsr6802', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hsr6804', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hsr6808', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2013', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr931g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr9304gltev', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr933g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2020', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr935w', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr935g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr936w', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr9304glteg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930le', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930gle', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr931le', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr931gle', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr931ggle', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr930wle', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Amsr2021', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr933le', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr933gle', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr935le', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr935wle', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr935gle', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr9304gltegle', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Awa2610eagnfat', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A3000e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A3000elsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Awa3620agn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Awa3622agn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Awa3610gn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Awa2620xagn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3024ewcm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3024elsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Awa2620eagnfat', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsu3wcmd0taa', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3024etaawcm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3024etaalsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3010etaawcm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3010etaalsw', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Awa2620agnfat', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 7500 Lsqm 3wc Mb0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C A9500lsrm2wcm2a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 Lswm 2wc M10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5800 Lswm 2wc M20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Awx5004ewpxz65004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Awx5002ewpxz75002', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladeimfwii', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelst1fw2a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelst1lb1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelst1nsm1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelswm1fw10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladespefwm200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Af5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Af1000e', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Au200s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Au200a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Af1000sei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladeimssl', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Af1000aei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F5000c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F5000s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vfw1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vmsgvlb1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladeimlb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsq1fwbsc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsqm1lbc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsq1nsmsc0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsr1fw2a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsr1lb1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secbladelsr1nsm1a1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr07srpud3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.3.1.9.4.1065', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr07mpua3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.3.1.9.4.1066', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ra100e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ra100eac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ra10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1323', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ra10e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1324', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S556056fhi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1327', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Was120', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1328', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade4lsxm1fwdf1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1329', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathvfw2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1330', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathvlb2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1331', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade4s68', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1332', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht1020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1333', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht1030', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1334', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht1050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1335', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht1060', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1336', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht1080', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1005', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1340', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1341', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1060', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1342', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1070', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1343', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000b', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1344', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1345', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1346', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1347', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht5010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1348', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht5020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1349', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht9006', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1350', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht9010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1351', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht9014', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1352', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht9000nsqm1ipsdfg0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1353', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht9000nsqm1supc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1354', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht5000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1355', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht1000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1356', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht9000context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1357', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S690054qff', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1363', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S690054qtf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1364', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16016x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1368', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5530seid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1369', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5554seid', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1370', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5530seidh3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1371', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5554seidh3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1372', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5530ceidh3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1373', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5554ceidh3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1374', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5530cpwreidh3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1375', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5554cpwreidh3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1376', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5530feidh3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1377', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Hh3cwap722s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ewpx3wcmd0v7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1379', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28s Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1380', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 52s Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1381', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 Poe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1382', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 28x Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1383', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500 52x Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1384', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3208 8p Olt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1385', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3208 4p Olt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1386', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La6608', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1387', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La6616', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1388', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade4lsum1fwdec0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1389', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade4lsum1nsdec0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1390', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade4lsqm1fwdsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1391', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade4lsqm1nsdsc0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1392', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade4lsxm1nsdf1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1393', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12512x Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1394', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6800 54hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1395', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6800 54ht', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1396', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpatht9000 Nsqm1ipsdfg0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1397', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1398', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf1005', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1399', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100 S G2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1400', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100 M G2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1401', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf100 C G2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1402', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wac350', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1403', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320 Acn E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1404', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wap712c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1405', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpaths10500context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1406', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpaths7500econtext', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1407', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx2560h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1408', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx2560h C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1409', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msg360 10', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1410', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msg360 20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1411', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msg360 20n', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1412', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx2510h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1413', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx2510h F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1414', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx2540h F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1415', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade4lspm6fwd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1416', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6820 4c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1418', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6890', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1419', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000 Ak110', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1420', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000 Ak120', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1421', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000 Ak130', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1422', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000 Ak140', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1423', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000 Ak150', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1424', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000 Ak160', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1425', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000 Ak170', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1426', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000 Ak180', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1427', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000 Be Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1428', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1000 Se Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1429', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathacg1005 Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1430', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade3fwcontext', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1431', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Mini S26g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1432', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Mini S26', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1433', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Mini S9g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1434', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F100 C Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1435', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak110', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1436', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak120', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1437', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak130', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1438', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak140', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1439', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak150', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1440', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak160', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1441', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak170', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1442', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak180', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1443', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F100 A Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1444', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F100 E G2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1445', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F100 E Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1446', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 S G2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1447', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 A G2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1448', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 E G2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1449', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 9p Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1450', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 9p Hpoe Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1451', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120 28p Hpoe Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1452', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 28f Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1453', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500v2 24p Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1454', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500v2 48p Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1455', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500v2 28f Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1456', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500v2 24p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1457', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500v2 28f Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1458', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500v2 48p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1459', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560x 30c Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1460', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560x 30c Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1462', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130 54c Pwr Hi H3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1464', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 38c Hi Xg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1465', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 28p Pwr E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1466', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110 52p Pwr E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1467', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3010h L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1468', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3024h L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1469', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathf5010 Nsqz1f5010', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1470', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2600 10 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1471', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3610 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1472', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3610 X1 Dp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1473', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3610 X1 Dp Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1474', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade4 Lspm6fwd', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1475', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3600 28 Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1476', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3600 51 Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1477', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3600 51f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1478', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsqm1wcmx40', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1479', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsum1wcmx40rt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1480', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsqm1wcmx20', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1481', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsum1wcmx20rt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1482', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg3000f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1483', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg3000f Dp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1484', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg5000g', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1485', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 6ei Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1486', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 5bei Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1487', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 10bei Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1488', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 6bhi Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1489', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 10bhi Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1490', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520 52qf Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1491', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3610 X1 Dc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1492', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3010h X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1493', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ewpxm2wcmd0f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1494', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Uis M8381', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1495', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Uis M8381 C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1496', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 Lm Hk', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1497', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 W Lm Hk', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1498', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320 Acn D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1499', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2620e D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1500', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa4320h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa2610h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1502', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S10508 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1503', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7503e M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1504', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Iv Fw Context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1505', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpaths6800 Lswm1fwd0 Context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1506', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520 42qf Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1507', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wt1020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1509', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wt1010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1510', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wt1004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1511', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5016pv2 Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1512', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3510h F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1513', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3520h F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1514', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ewpxm1mac0f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1515', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S68 Ade Lswm1aded0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1516', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S68 Ade Context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1517', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S68 Ips Lswm1ipsd0', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1518', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S68 Ips Context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1519', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12508xs Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1520', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12508m Af', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1521', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5830x 54s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1522', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560x 30f Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1523', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560x 54f Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1524', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathgap2000 B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1525', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathgap2000 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1526', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathgap2000 A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1527', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Spm X1 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1528', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Spm X1 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1529', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wac380 60', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1530', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wac380 90', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1531', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wac380 120', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1532', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msg360 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1533', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7003e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1534', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vlns1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1536', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Vlns2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1537', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6900 54hf F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1538', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr88 Sr0m1fwdfg0 Secblade Iv Fw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1539', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathsr88contextmodule', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1540', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wt1024 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1541', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3024h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1542', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3010h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1543', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Acg1000 Blade E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1544', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Acg1000 Blade X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1545', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 10pbei Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1549', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4300 12p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1550', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4300 6p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1551', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4300 8p 2s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1552', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 Lus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1553', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Be', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1554', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Se', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1555', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5080', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1556', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5060', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1557', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5030', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1558', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F50x0 Context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1559', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7503x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1560', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7506x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1561', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7510x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1562', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F100 C80 Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1563', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F100 C60 Winet', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1564', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000 Ak109', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1565', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000 Ak108', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1566', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28p Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1567', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28p Hpwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1568', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28s Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28s Hpwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1571', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52p Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1572', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52s Pwr Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1573', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52s Pwr Hi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1574', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52f Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1576', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8816 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1577', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16018 F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1578', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr810 Lms', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1579', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C M9008 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1580', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathm9000 Nsqm2fwdsc0 Context', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1581', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ns316x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1582', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msg360 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1583', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msg360 4 Pwr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1584', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1585', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52s Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1586', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1587', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52p Ei', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1588', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6920 32h F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1591', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6920 4f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1592', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7006e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1593', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L1000 Gl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1594', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3024h F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1595', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hs526x S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1596', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hs552x S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1597', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hs552x E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1598', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hs616x E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1599', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12508xc Af', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1600', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpathm9000 S Nsqm2fwdsca0 Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1601', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath M9000 Nsqm1tgs32qssg0', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1602', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath S75e S10500 Lsqm1ipsdsc0 Secblade Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1603', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath S75e S10500 Lsqm2acgdsc0 Secblade Iv Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1604', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath S75e S10500 Lsqm1adedsc0 Secblade Iv Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1605', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Sr8800 X Im Ipsx Iv Secblade Iv Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1606', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Sr8800 X Im Acgx Iv Secblade Iv Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1607', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S75e S10500 Secblade Iv Ips', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1608', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S75e S10500 Secblade Iv Ade', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1609', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S75e S10500 Secblade Iv Acg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1610', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8800 X Secblade Iv Ips', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1611', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8800 X Secblade Iv Acg', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1612', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Acg1000 Blade X Sr88', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1613', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1850 10p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1614', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1850 28p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1615', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1850 52p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1616', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1850 28p Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1617', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2626 Hpwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1618', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Iv Ade Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1619', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6800 2c Fc', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1620', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath W2000 V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1621', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath A2000 V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1622', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Nsqm1tg8a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1623', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Nsqm1qg2a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1624', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Nsqm1gt8a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1625', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Nsqm1gp8a', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1626', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Nsqm1gt4pfca', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1627', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560x 34s Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1628', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560x 54s Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1629', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500v2 34s Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1630', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500v2 54s Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1631', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5500v2 30f Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1632', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp2024s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1633', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp5024s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1634', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp2008s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1635', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wp5008s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1636', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 10tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1637', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 10tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1638', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 10p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1639', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 10p Hpwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1640', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr19020 X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1641', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr190mx X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1642', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8808h X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1643', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16010h F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1644', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 18tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1645', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 28tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1646', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 52tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1647', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 20tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1648', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 28tp Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1649', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 12tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1650', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 20p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1651', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 12tp Hpwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1652', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 20p Pwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1653', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5528s Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1654', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5552s Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1655', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5528p Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1656', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5552p Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1657', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5528p Pwr Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1658', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5552p Pwr Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1659', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx1804h Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1660', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S10508x V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1661', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1662', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1663', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath T1000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1664', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1665', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1666', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath T5000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1667', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath M9000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1668', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath T9000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1669', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secblade Security Module', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1670', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msg360 10 Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1671', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx1810h Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1672', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5530', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1673', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3508h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1674', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx1820h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1675', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wt2024 U', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1676', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wt1010 Qu', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1677', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 28p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1678', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 52p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1679', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 28p Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1680', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 28p Pwr Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1681', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 28p Hpwr Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1682', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 52p Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1683', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 52p Pwr Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1684', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320s 28p Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1685', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 10p Pwr Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1686', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 20p Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1687', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 10p Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1688', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320s 20p Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1689', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5120v2 10p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1690', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28s Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1691', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52s Li', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1692', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5128s Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1693', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5152s Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1694', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5128p Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1695', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5152p Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1696', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5128p Hpwr Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1697', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5152p Pwr Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1698', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110p Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1699', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110p Hpwr Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1700', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3610 X1 Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1701', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3620 Dp Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1702', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2600 10 X1 Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1703', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wt1024 X Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1704', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wt1010 Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1705', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er3100g2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1706', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Er3200g2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1707', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520xe 54qc Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1708', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520xe 54hc Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1709', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S10516x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1710', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4300 28p Dp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1711', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024fv2 Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1712', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024pv2 Ei Hpwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1713', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5048pv2 Ei Hpwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1714', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E128c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1715', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E152c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1716', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4200 28tp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1717', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320s 52p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1718', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 10tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1719', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 18tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1720', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 28tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1721', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4200 18tp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1722', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4200 20tp Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1723', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4200 28tp Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1724', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 52tp Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1725', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 28tp Pwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1726', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 10tp Pwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1727', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3100v3 20tp Pwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1728', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath S75e Lite Lsqm2fwdsc0 Secblade Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1729', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S75e Lite Lsqm2fwdsc0 Secblade Iv', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1730', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Nsqm2ac1400 Secpath M9000 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1731', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Nsqm2dc1400 Secpath M9000 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1732', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6800 54qt H3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1734', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5620', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1735', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5620i Acn', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1736', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5620e T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1737', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S12501x Af', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1738', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 30qc Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1739', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 30qc Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1741', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 54qc Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1742', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 30hc Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1743', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 54hc Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1744', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 30hc Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1745', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 54hc Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1746', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6900 54qf F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1747', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3610 I Dp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1748', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4500 28p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1749', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak115', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1750', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak125', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1751', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak135', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1752', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak145', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1753', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak155', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1754', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak165', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1755', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak175', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1756', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak185', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1757', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3210 16p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1758', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S3210 8p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1759', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5080 D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1760', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5060 D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1761', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5030 D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1762', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F50x0 D Nsq1mpbha', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1763', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F50x0 D Nsqm1mpula', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1764', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024pv3 Hi 4x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1765', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E528d X Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1766', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E552d X Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1767', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E528c X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1768', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E552c X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1769', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E528c X Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1770', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E552c X Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1771', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E528c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1772', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E552c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1773', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E528c Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1774', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E552c Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1775', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Ak210', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1776', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Ak220', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1777', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Ak230', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1778', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Ak240', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1779', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Ak250', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1780', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Ak260', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1781', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Ak270', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1782', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Ak280', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1783', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1010 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1784', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1030 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1785', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1050 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1786', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5850 28x Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1787', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5850 52x Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1788', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5810 28p Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1789', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5820 28p Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1790', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5820 52x Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1791', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5820 28x Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1792', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5820 28x Poe Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1793', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5820 28tp Poe Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1794', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Afc2020', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1795', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Afc2040', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1796', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Afc2100', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1797', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Afc2100 D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1798', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Afc2200', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1799', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Afc2600', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1800', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F100 A Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1801', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L1000 Ak310', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1802', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L1000 C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1803', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L1000 Ak320', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1804', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L100 C', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1805', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L1000 Ak330', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1806', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000 C Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1807', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr2600 6 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1808', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Icg2000d', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1809', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La4616', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1810', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560s 28s Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1811', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560s 52s Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1812', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560s 28p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1813', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560s 52p Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1814', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28p Ei M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1815', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52p Ei M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1816', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28s Ei M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1817', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52s Ei M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1818', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28s Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1819', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52s Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1820', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560s 28p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1821', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560s 52p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1822', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560s 28s Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1823', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560s 52s Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1824', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L100 Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1825', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath T9008 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1827', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath T9000 S Nsqm2ipsdsca0 Secblade Iv Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1828', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wbc560', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1829', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6860 54hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1830', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6860 54ht', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1831', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6891', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1832', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 54c Ei G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1833', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 54f Ei G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1834', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 54xg Ei G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1835', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7503x G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1836', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S7506x G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1837', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520 16s Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1838', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520 24s Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1839', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 18c Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1840', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 26c Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1841', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 16st Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1842', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 24st Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1843', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1844', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52tp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1845', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28f Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1846', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28mp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1847', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 10ms Upwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1848', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 28mp Hpwr Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1849', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5130s 52mp Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1850', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3620 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1851', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110v2 28p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1852', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110v2 52p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1853', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110v2 52p Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1854', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110v2 28p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1855', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110v2 52p Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1856', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5016pv3 Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1857', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024pv3 Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1858', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5048pv3 Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1859', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024pv3 Ei Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1860', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5048pv3 Ei Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1861', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5110v2 28p Hpwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1862', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024pv3 Ei Hpwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1863', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024fv3 Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1864', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5552f Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1865', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 30c Ei G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1866', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5560 30f Ei G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1867', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F50x0 D Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1868', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4300v2 28p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1869', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4300v2 52p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1870', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wac380 30', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1871', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5510e T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1872', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr19000 8', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1873', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr19000 16', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1874', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6380 54qf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1875', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6380 54qt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1876', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6880 54hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1877', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5000 M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1878', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Tap2000 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1879', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Tap2000 A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1880', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath W2000 Ak410', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1881', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath W2000 Ak420', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1882', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath W2000 Ak430', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1883', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath W2000 Ak440', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1884', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath T5030', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1885', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath T5000 S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1886', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L5000 E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1887', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L5030', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1888', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L5060', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1889', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L5080', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1890', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath M9010 Gm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1891', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wt1024 X Hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1892', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5530 Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1893', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Sysscan S', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1894', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Sysscan M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1895', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Sysscan A', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1896', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Sysscan V', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1897', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Te', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1898', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Me', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1899', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Ae', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1900', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Ee', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1901', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Pe', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1902', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1000 Xe1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1903', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1070 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1904', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath Acg1060 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1905', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3600 51 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1906', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3600 51 X1 Dp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1907', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3600 28 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1908', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3600 28 X1 Dp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1909', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath L50x0 Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1910', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath T50x0 Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1911', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6890 30hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1912', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S9850 4c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1914', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3610 Ie Dp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1915', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr3610 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1916', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C R3900 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1917', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4500 12p Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1918', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4550 12p Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1919', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 26mc Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1920', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6520x 26mc Upwr Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1921', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5552s Ei D H3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1922', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5552p Ei D H3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1923', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5152p Ei D H3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1924', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5552p Pwr Ei D H3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1925', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5530f Ei D H5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1926', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath W2010 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1929', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath W2020 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1930', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath W2040 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1931', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath W2080 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1932', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath W2200 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1933', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5528f Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1934', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5528s Pwr Ei D', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1935', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath D2010 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1936', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath D2020 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1937', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath D2030 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1938', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath D2050 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1939', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath T5060', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1940', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath T5080', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1941', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wac381', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1942', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath A2020 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1943', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath A2100 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1944', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath A2200 G', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1945', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath A2000 Ak610', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1946', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath A2000 Ak620', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1947', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5000 Ak515', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1948', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5000 Ak515 Context', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1949', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx1840h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1950', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3840h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1951', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3820h', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1952', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 6hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1953', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 10ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1954', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Msr830 10hi', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1955', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F100 C A5', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1956', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4620 16s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1957', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5000 16x Ei', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1958', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ise3000 H', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1959', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ise3000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1960', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ig4500 L', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1961', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La4616 X1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1962', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C La4616 X3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1963', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsqm1wbcz720', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1964', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Lsum1wbcz720rt', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1965', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000 C8160', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1966', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000 C8170', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1967', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000 C8180', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1968', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C  Ig550', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1969', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000 C8120', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1970', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000 C8130', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1971', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000 C8150', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1972', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6860 30hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1973', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ie4300 12p Pwr M', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1974', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4520v2 28s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1975', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4520v2 30f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1976', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4520v2 24tp', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1977', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320v2 28s Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1978', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320v2 52s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1979', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320v2 28s', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1980', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320v2 28f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1981', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320s 28f H3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1982', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4320s 28p H3', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1983', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4048p', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1984', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ms4048', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1985', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ns128', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1986', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ns152', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1987', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024e X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1988', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5048e X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1989', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1850 28x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1990', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1850 52x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1991', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5024e Pwr X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1992', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5048e Pwr X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1993', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1850 28x Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1994', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S1850 52x Pwr', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1995', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5820 28p Poe Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1996', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5850 28f Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1997', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5850 28tp Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1998', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5850 52tp Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.1999', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Ws5820 52tp Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Uap300', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5630x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5320x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5320i', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5320x Si', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5320x E', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Uap380', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wap723 W2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wap722x W2', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2009', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5520 T', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5320 Ti', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa538 Ww', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa536 Ww', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa530x Ww', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2014', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa5620x', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2015', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa560 Ww', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2016', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F100 C50 Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2017', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1000 C8110', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2018', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Sr8808m X', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2019', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16010m F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2020', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16018f', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2021', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Cr16010hf', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2022', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S6900 54hqf F', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wa530 Ww', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2026', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak710', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2027', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C F1000 Ak711', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2028', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F1070 Gm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2029', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Secpath F5020 Gm', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2030', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx2560h Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2031', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx3508h Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2032', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Wx2510h Pwr Winet', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.2033', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Oemproductid', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.1.218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hp513024gpoeplus4sfpplus1slottaahi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hp513048gpoeplus4sfpplus1slottaahi', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpff590048xg4qsff', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpff590048xg4qsfftaa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeff594048xgt6qsfpplus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeff594032qsfpplus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeff594048sfpplus6qsfp28taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeff594048xgt6qsfp28taa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeff12912e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.273', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpevlns1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.274', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpevlns2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeff595048sfp288qsfp28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeff59504slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeff12902e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hps58v3r652xg4qsfp2sfpplus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hps58v3r652xg4qsfp2sfpplustaa', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeff12901e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpe5980 48sfp 6qsfp28 Exttable', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.282', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpe5980 48sfp 6qsfp28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeflexfabric 5955 64qsfp28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeflexfabric 5945 48sfp28 8qsfp28', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpeflexfabric 5945 4 Slot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpe5710 30hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpe5710 54hf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpe5710 54ht', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.1.289', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hprouter', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpmsr931gb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpmsr935gb', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpmsr3012ace', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpmsr951r W Am', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpmsr951r W Ww', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpmsr3004', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.2.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpwireless', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpsecurity', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpvfw2000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C Hpvlb2000', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.25506.11.4.30', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'HP', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK SWITCH 200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK LAN SWITCH 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK SWITCH 100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'UNKNOWN SWITCHES', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK SWITCH 2000 J3100B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE ET4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE VG2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE 10FL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE FDDI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE TX2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH 6600 48G 4XG  J9452A ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'5400R ZL2 SWITCH MANAGEMENT MODULE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4820A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4878B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4821A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4878A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4852A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J8161A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4907A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4820B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4821B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ARUBA 2530 8 POE  INTERNAL PS SWITCH  JL070A ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ARUBA 3810M 24G 1 SLOT SWITCH  JL071A ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.174.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ARUBA 3810M 16SFP  2 SLOT SWITCH  JL075A ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.174.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ARUBA 3810M 40G 8SR POE  1 SLOT SWITCH  JL076 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.174.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ARUBA 3810 SWITCH FAN TRAY', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.174.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ARUBA 2930F 48G 740W POE  4SFP  SWITCH  JL558 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SWITCH 2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4862A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4863A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4864A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4862B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4893A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4892A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4908A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK SWITCH 800T J3245A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4903A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.31.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J8434A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.31.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J8435A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.31.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE J4904A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.32.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'HP PROLIANT SWITCH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'GIGABIT ETHERNET SWITCH MODULE I6L2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.33.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH 3400CL 24G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH 3400CL 48G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'5400 ZL SWITCH MANAGEMENT MODULE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH 3500YL 24G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH 3500YL 48G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE 100TX8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE 100FX4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE 10FL4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE GIGSX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE GIGLX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE TWOGIG', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE GIGSTK', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PROCURVE SWITCH MODULE GIGT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'8200ZL SWITCH MANAGEMENT MODULE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.72.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'8200ZL SWITCH FABRIC MODULE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.72.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'8212ZL SWITCH SYSTEM SUPPORT MODULE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.72.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER ER 440', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 250', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 255', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 210', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER TR 445', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER SR 430', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 240  ROUTER FR A VERSION ', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 470  ROUTER LR ', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER BR 480', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER PR', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 650', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 650 ENGINE', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 650 PORT 4E', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 650 PORT 4S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 650 PORT 4T', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 650 PORT 4FDDI', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 650 PORT 4100VG', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK ROUTER 230', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK 10BT SWITCHING HUB 12R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.5.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK 10BT SWITCHING HUB 24R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.5.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK 10BT SWITCHING HUB 24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.5.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ADVANCESTACK 10BT SWITCHING', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ARUBA 2920 48G SWITCH  J9728A ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchVirtualStackMib', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchTrapMIB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5.1.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchAuthenticationMIB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchAccountingMIB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchAuthorizationMIB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchImage', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchErrorMsgMIB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5.1.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchStatistics', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchExperimental', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpWANRouters', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.11.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfEsSwitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpNetSwitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.6.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.14.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'netSwitch200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'eswitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'eswitch2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'netSwitch100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpEtherSwitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpAdvSwitch2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleET4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleVG2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModule10FL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleFDDI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleTX2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleATM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9263A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9264A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9445A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9449A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9450A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9452A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9451A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch516733 B21', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch498358 B21', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9471A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2424', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9473A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ94yxA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.110.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ94yyA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.110.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9470A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9472A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ94xxA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.112.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ94xyA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.112.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9477A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9310A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9311A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ93aaA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.115.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ93bbA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.115.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9565A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9565A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.117.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9562A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9562A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.118.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9573', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9573', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.119.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9574', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9574x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.120.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9574y', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.120.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9575', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9575', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.121.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9576', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9576x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.122.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9576y', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.122.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9584', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9584', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.123.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9585', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9585', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.124.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9586', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9586x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.125.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9586y', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.125.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9587', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9587', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.126.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9588', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9588x', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.127.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9588y', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.127.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9577', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9577A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.128.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9623A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9623A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.129.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch9308', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9624A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9624A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.130.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9625A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9625A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.131.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9626A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9626A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.132.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9627A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9627A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.133.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9660A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9772A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9772A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.136.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9773A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9773A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.137.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9774A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9774A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.138.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9775A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9775A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.139.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch9304', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9776A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9776A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.140.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9777A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9777A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.141.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9778A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9778A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.142.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9779A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9779A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.143.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9780A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9780A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.144.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9781A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9781A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.145.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9782A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9782A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.146.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9783A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9783A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.147.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9800A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9801A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch6308', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9802A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9803A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9726A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9726A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.152.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9727A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9727A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.153.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9728A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9728A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.154.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9729A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9729A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.155.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9730A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.155.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9731A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.155.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9732A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.155.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9733A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.155.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9833A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9834A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch6208', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9850A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9827A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9995A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9996A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9986A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9987A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9988A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9989A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9990A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9991A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9992A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9993A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.160.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9851A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9853A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9853A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.163.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9854A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9854A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.164.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9855A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9855A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.165.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9856A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9856A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.166.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9979A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9980A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9981A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4819A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleJ4820A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleJ4878B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9001A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9003A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8988A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleJ4821A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleJ4878A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4852A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8161A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4907A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8162A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleJ4820B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleJ4821B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.17.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9982A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9983A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9984A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJL070A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJL070A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.173.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4812A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4812A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitch2930', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL258A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL253A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL254A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL319A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL255A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL256A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL259A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL260A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL261A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL262A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL558A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL557A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL692A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL263A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL264A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchR0M67A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL559A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.282', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchR0M68A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL321A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL693A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL320A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL322A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL324A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL323A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.181.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitch2540', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL354A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.182.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL355A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.182.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL356A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.182.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'arubaSwitchJL357A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.182.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4813A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4813A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpAdvSwitch2000B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4850A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4815A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4851A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4865A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4862A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4863A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4864A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4862B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4893A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4892A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4908A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.23.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchA6713A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleA6713A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.24.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchA6716A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleA6716A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.25.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchA6717A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleA6717A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.26.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4887A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4874A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4899A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4899A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.29.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpAdvSwitch800T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4902A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4902A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.30.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4903A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4903A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.31.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8434A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.31.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8435A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.31.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4904A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4904A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.32.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchProliant', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4900A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4900A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.34.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8165A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8165A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.35.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8164A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8164A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.36.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8130A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8133A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8153A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpAdvSwitch200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpAdvSwitch208T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpAdvSwitch208VG', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpAdvSwitch224T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpAdvSwitch224VG', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8154A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8155A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4905A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4905A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.42.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4906A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4906A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.43.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4899B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4899B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.44.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4900B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4900B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.45.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8433A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8433A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.48.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8474A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8474A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.49.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch212M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8697A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8701A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8726A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9051A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9052A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9154A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9155A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9446A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9307A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8702A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9308A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9478A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9309A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9312A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9534A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9535A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9536A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9537A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9538A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9546A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8705A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9547A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9548A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9549A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9550A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchAdvServicesModule', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchExtServicesModule', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9485A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9637A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8706A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchV2ServicesModule', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8707A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8708A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ87xxA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ87yyA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8694A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.50.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8698A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8770A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8765A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.52.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8766A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.52.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8764A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.52.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8776A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.52.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8763A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.52.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8768A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.52.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9033A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.52.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8773A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8680A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8762A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ8762A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.55.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8771A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8772A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8692A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8693A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch224M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ8992A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9019A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9019A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.61.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9020A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9020A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.62.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9021A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9021A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.63.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9022A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9022A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.64.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9028A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9029A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9038A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9050A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ90xxA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.68.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ90yyA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.68.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ90zzA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.68.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9049A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch8000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModule100TX8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModule100FX4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModule10FL4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleGigSX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleGigLX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleTwoGig', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleGigStk', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchPortModuleGigT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.7.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9091A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9065A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9079A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9080A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9085A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9085A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.76.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9088A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9088A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.77.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9087A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9087A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.78.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9089A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9089A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.79.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch1600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9086A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9086A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.80.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9028B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4900C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4900C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.82.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ4899C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ4899C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.83.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9146A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9146A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.84.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9149A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.84.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9008A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.84.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9165A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.84.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9148A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9148A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.85.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9145A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9145A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.86.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9147A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9147A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.87.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9279A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9279A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.88.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9280A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9280A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.89.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch4000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9019B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9137A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9137A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.94.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9138A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9138A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.95.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9298A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9298A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.96.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9299A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ9299A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.97.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9265A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ92yyA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.98.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ92xxA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.98.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ92wwA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.98.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ92vvA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.98.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ92uuA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.98.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchModuleJ92ttA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.98.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpEtherSwitchPortType', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpEtherSwitchPort10T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.99.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpEtherSwitchPort100T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.99.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpEtherSwitchPort100VG', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.99.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpEtherSwitchPort100F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.11.99.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'router', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouterER', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter250', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter255', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter210', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouterTR', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouterSR', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouterFR', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouterLR', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouterBR', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouterPR', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter650', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter650Engine', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter650Port4E', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter650Port4S', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter650Port4T', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter650PortFDDI', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter650Port100VG', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.8.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'icfRouter230', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPorts', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10T100TX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigBaseCX4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000ESP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigBaseSR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigBaseER', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigBaseLR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort100GEN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000GEN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigBaseGEN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort100BXD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort100BXU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort100FX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000BXD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000BXU', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigBaseLRM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusSR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusLR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusLRM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusDAC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusDA1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusDA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusDA3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10FL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusDA5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusDA7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusDA10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusDA15', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPortSFPplusDA20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigBaseT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigBaseTSH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigBaseTLH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigBaseSTK', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000CWDM1470', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000SX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000CWDM1490', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000CWDM1510', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000CWDM1530', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000CWDM1550', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000CWDM1570', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000CWDM1590', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000CWDM1610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigCWDM1470', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigCWDM1490', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigCWDM1510', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigCWDM1530', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigCWDM1550', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigCWDM1570', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigCWDM1590', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort10GigCWDM1611', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort5GigBaseT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000LX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000Stk', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpicfSwitchPort1000LH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.10.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch8000CpuCard', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpAdvStkEnetSHSwitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchBackplane', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.6.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch5308PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch4865PowerSupplyBay', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch4865PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2650PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch6108PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2824PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2626PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2650PPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2626PPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch3324PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2650CRPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2626CRPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2600n8PPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch869xPowerSupplyBay', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch869xPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2510PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2810PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch5400CpuCardBay', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch8212FabricBay', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2610PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2610PPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2510BPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2626CPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2650CPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2910PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2510GPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2520PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2520GPortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2615PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2915PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9580PowerSupply', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9581PowerSupply', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9582FanTray', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2620PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2530PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2920StackingSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9737APowerSupply', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9738APowerSupply', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9739APowerSupply', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch8000PowerSupplyBay', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2920PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch3800StackingSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9828APowerSupply', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9829APowerSupply', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9830APowerSupply', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9831AFanTray', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9832AFanTray', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9805APowerSupply', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitchJ9806APowerCable', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch8000CpuSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch8000PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch2524PortSlot', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'hpSwitch5308PowerSupplyBay', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.11.2.3.7.8.7.9', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Huawei', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.11812', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 13', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.11813', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 15', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.11815', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.11816', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 09', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.12809', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.12810', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 11 59', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.12811', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 30', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.12830', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 31', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.12831', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.12840', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 80', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.12880', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R1600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.1600', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R1602', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.1602', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R1612', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.1612', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R1613', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.1613', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R1614', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.1614', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R1615', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.1615', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R1760', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.1760', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R1760B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.1761', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2611', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2611', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2501', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2509', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2509', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2511', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2511', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2501E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2601', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R4001E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2606', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2509E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2608', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2511E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2609', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2610', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2620', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2620', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2621', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2621', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2630E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2630', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R2631E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.2631', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R3640E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.3640', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R3680E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.3680', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE R4001', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.1.1.1.4001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2008 EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3928P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5624F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3224P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3226T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3226P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3250T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3250P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3108T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3116T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3126T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3108C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3952P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3116C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3126C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 12B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C SECBLADE IDS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C SECBLADE IPS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECENGINE D500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3928TP V6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3928P V6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3952P V6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3928F V6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3928TP SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5524P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5524F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C XE 7000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C VG10 40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C VG10 41', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C VG20 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C VG20 32', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C VG20 08L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C VG80 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C VG80 20T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3928P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2008CT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S2008CP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C SECBLADEFW', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C SECBLADEVPN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C SECENGINED200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C IX5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.135.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C SJW59', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C VG21 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR19 61', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR19 62', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3952P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR29 01', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR29 21', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR29 41', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR29 61', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR49 45', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR49 65', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5112P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5113C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5228C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5252C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3928P PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C S5228C PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C 5252C PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2008 HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2016 HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2403H HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY VG3108', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S8508V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY E126', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3126TP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY E328', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3952P PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY E352', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3928P PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S8502', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SR8802', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3352P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.166', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3328TP SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.167', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3328P PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3328P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3928F EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3352P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.170', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3328P PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3352P PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.172', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3328F EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6502ME', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5528C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5552C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5528C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5552C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5528F EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5600M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5528C EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'E126 SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY DR814', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY DR814Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY WDR854G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY VDR824G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY VDR824', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY VDR744', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY DR744', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 50', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S8505 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S8512 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S8508 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S8508V V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S8502 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2008 EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2016TP EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 33E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2403TP EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2403TP PWR EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2008TP MI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2016T MI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2403 TP MI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S7802', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S7803', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S7806', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S7806 V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S7810', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 34E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2016TP PWR EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3552P EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3528P EA1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3528TP EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3528F EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3552F EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6902', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6903', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6906', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6906R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S8508', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3928P SI ACDC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY AR19 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY AR19 13', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY AR19 15', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3552P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3528P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5628C HI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECPATH100N', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5628C HI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5652C HI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5628F HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5628C PWR HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5652C PWR HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY LSQ1FWBSC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY LSQ1NSMSC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S7803L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6503 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6506 V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECPATH100V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6506R V5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY AR19 03', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY AR19 05', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S7806 L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY AR29 11', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECPATH100F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECPATH1000F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECPATH500F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECPATH10F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECPATH100FS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2403H EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECPATH100FE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026 PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C SR8805', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C SR8808', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C SR8812', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5624P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5624P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5648P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5648P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2008C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2016C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2024C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECPATH 1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 13V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 18V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C ISPATH1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 20S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C XE 200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C XE 2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C E026T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY E008 FE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY E017 FE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 35', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY E026 FE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 12', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 13', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR28 14', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 21', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 21A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 21B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 21C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 22', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3552F HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 22 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 22 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 23 1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 30E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 31E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 32E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 35E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 36E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 37E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 52', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SECPATH 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5124P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5126C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5148P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5150C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5116P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5124P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5148P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR46 20E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR46 40E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3924 SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR46 80E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 22S 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR18 23S 1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'H3C SECENGINEP500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2108 SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2116 SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2126 SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2108 EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2116 EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2126 EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.10.1.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E X16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.1.1.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR1220', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR206', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR2220E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR3670', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR207', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR121', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR208E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR1220E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR161F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR169FGW L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR1220C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR6120', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.294', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR6300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.299', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR6280', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR611W', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR617 VM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR151G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR6121E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.347', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR2220', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR2240', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR3260', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'AR201', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5324TP PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5348TP PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5328C SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5352C SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5328C PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5352C PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5328C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5352C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2309TP PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2326TP PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S8016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.11', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.11.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S8016B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.11.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3328TP PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3328TP EI MC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3318TP EI MC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 9TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 9TP EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 18TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 26TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 26TP EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 52TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3526', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 9TP SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 18TP SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 26TP SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 9TP PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 26TP PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 28TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 28TP EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 28TP EI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 52TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 52TP EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 52TP EI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 52TP EI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 52TP EI 48S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 52TP EI 48S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 28TP SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 28TP SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 52TP SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 28TP PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 52TP PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 28TP EI MC AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.14', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28C SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28C EI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52C SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 24TP SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 24TP SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 48TP SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 48TP SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 24TP PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 48TP PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6324 EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6348C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5328C HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5328C HI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5306TP SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3326C HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5328C HI 24SA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6700 24 EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6700 48 EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1728 GWR 4P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28P LI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52P LI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28X EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52X EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28C HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3526F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28C HI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 6TP LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 26C HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 52C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5310 28P LI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5310 52P LI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28P LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52P LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5310 28P LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5516', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5310 52P LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700S 28P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700S 52P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1700 28GFR 4P AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1700 52GFR 4P AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1700 28FR 2T2P AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1700 52FR 2T2P AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28C PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52C PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5710 28C PWR LI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6506', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5710 52C PWR LI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5710 28C LI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5710 52C LI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5710 28C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5710 52C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2710 26TP PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2710 52P SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2710 52P PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2700 52P PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026 FM FS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 52P PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 28TP PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5710 108C PWR HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 10P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 10P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 26X SI 12S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28X LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52X LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3526E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5710 108C HI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 10P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5310 28C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5310 52C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28X LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28X LI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28X LI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2206', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28X LI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28X LI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2751 28TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2350 28TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2750 28TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2750 28TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2750 20TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2350 28TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2350 20TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2328P EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2403H', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3300 52P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1700 10GF 2P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1700 28GFR 4P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1700 52GFR 4P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1700 28FR 2T2P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1700 10GF 2P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1700 24GR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3700 28TP EI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5701 28X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5701 28X LI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28P LI BAT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28P LI 4AH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28P LI 24S BAT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28P LI 24S 4AH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28P LI BAT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28P LI 4AH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28P LI 24S BAT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28P LI 24S 4AH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52X LI 48CS AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 52X LI 48CS DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026EFM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 52X LI 48CS AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 52X LI 48CS DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5310 108C PWR HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 10P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 52P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 52X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 52X LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 28X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5300 52X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026EFS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2350 28TP EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28TP LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700 28TP PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5701 28TP PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 56C HI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.264', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 56C PWR HI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 32C HI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1720 28GFR 4TP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1720 20GFR 4TP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2720 28TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3526EFM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 36C EI 28S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 36C EI 28S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 36C EI 28S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 56C EI 48S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.273', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 56C EI 48S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.274', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 56C EI 48S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 36C EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 36C EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 36C EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 36PC EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3526EFS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 36PC EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.280', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 36PC EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 56C EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.282', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 56C EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 56C EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 56PC EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 56PC EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 56PC EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 36C PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 36C PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.289', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3050C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 36C PWR EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.290', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 56C PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.291', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 56C PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.292', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 56C PWR EI AC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.293', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 32X EI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.294', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 32X EI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.295', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 32X EI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.296', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 50X EI 46S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.297', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 50X EI 46S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.298', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 50X EI 46S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.299', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6503', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 32X EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.300', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 32X EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.301', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 32X EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.302', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 32P EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.303', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 32P EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.304', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 32P EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 52X EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 52X EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.307', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 52X EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.308', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 52P EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.309', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S8512', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 52P EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.310', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 52P EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.311', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 50X EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.312', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 50X EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.313', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 50X EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S8505', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 28P SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 28X SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.327', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S6506R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 52X SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.331', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 52X SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.332', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 28X PWR SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.333', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 28X PWR SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.334', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 52X PWR SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.335', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 52X PWR SI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.336', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6720 30C EI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.340', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6720 54C EI 48S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.343', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 32X EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.369', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3552G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 50X EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.370', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 32X EI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.371', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 50X EI 46S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.372', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 36C EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.373', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 56C EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.374', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 36C PWR EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.375', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 56C PWR EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.376', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 36C EI 28S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.377', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 56C EI 48S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3552P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3528G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 12TP PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.398', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3528P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 28X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.406', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3526C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720S 28P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.414', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1720 28GWR PWR 4P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.417', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 28X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.418', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026C 24 12FS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026C 24 12FM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 52X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.431', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1720 52GWR 4P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.435', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3526C 24 12FS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 52X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.444', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3526C 24 12FM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5012G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 28TP PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.462', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5012G DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5012T 12 10GBC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5012T 12 10GBC DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5024G 24 20TP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5024G 24 20TP DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2026Z', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2720 52TP EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.524', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2720 28TP EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.529', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S2026C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2720 28TP PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.532', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026G SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6720 26Q SI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.540', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6720 32X LI 32S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.545', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6720 32X SI 32S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.547', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026C SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6720 32C SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.551', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3026S SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S8505E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 28P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.576', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5730 68C HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.604', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5730 68C PWH HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.606', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S6730 H48X6C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.665', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S6730 H24X6C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.667', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3552F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3552F EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE 5882 48T4S B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.681', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5731 H24P4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.682', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5731 H48P4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.683', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SE026', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5731 S24P4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.690', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5731 S48T4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.693', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SE026 SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY SE050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5735 L12T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.712', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.715', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5735 L12P4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.718', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2326P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2326P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 S32ST4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.731', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.734', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2318P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5735 S24P4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.743', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5735 S48T4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.745', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2318P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5735S L48P4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.752', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2309P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2309P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5732 H24UM2CC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.777', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5736 S24UM4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.809', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S3328', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3328TP EI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3328TP SI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3352P EI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3352P EI 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3352P SI 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2309TP SI EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CLOUDENGINE S5735 L24P4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.876', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2309TP EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2318TP SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2318TP EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2326TP SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2326TP EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2352P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2352P EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5328C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5328C EI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5352C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY S5324TP SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5348TP SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE5000OEM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE5000E X16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E X1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E X2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E X16A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E X8A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE5000E X8A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE80E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E X3A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E X16B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE5000E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE5000E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE5000EMULTI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE5000E MULTI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE5000E BTB', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E X3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NETENGINE NE40E X8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX200A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX200D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX200D EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX200D MC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX600 4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX380 PBT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX380 ME', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CXD EA MC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX600 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY CX600 X8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CX600 X16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX200B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CX600 X1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'CX600 X2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX300A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX300B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX500A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX380', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX600 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX600 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY MSP CX200C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QUIDWAY NE 20E 3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE20E S16A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE20E 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE20E X6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NETENGINE20E S4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE20E S8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE20E S16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE20E S2E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE20E S2F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NETENGINE20E S8A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar3650', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2630', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2220e l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar511gw l b3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar511gw lm7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar513w v3m8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220e s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar3260 s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531g u d h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531gpe u h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531gr u h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar550 8fe d h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar550 24fe d h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531gp h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531gb u d h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar207v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161g le', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161g hspa7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161gw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169g le', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169g hspa7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar129', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar503gw lm6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169 p m9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220ev', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar151 s2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161fw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220f s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar509g l d h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169fv 8s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169fvw 8s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220vw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar121w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar121w s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar129w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204 27ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204 27ge p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204 51ge p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220 s2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2240c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.149', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2504 h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161fv 1p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169w p m9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169rw p m9', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531gz u d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161fgw la', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar515gw lm9 d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161g u', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar121gw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar129gw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220ws', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502g l d h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502gr l d h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531g f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar511cgw lav2m3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar111 s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar503gw lcm7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar511gw lcav2m3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1000v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar511dcgw lcav2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204 51ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204e d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2504e h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar509g lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar129cgvw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar101 s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar101w s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar550c 4ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar550c 2c6ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar509cg lt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar509cg lt n', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar503eqgw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar503ew', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar503edgw lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar509cg l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar168fvw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar532', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502erc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502egr l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502eg l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502egw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar550e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar509cg lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204 51ge r', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.192', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161 s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161w s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.194', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161gw lc s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.195', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar509gw l d h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.196', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1200ew t1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.197', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar509eg u a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.198', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169g lo', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.199', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161fg lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.200', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161fgw lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.201', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161g lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.202', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar101gw lc s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.203', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar201v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.204', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar503edgw lc3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.205', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar109', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.206', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar109w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.207', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar109gw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.208', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502cg l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.209', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2220e s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.210', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2240c s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.211', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar3260e s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar129cvw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220 8ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.214', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204 24ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.215', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204 48ge p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.216', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar505kc l rm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.217', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar505ke l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.218', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2504 d h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.219', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502egrb l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.220', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169cvw 4b4s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.221', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169cvw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.222', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169egw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.223', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169ew', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.224', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161ew', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.225', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161ew m1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.226', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar509cgw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.227', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar509cg lt 7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.228', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar sc lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.229', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar sc le', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.230', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar sc la', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.231', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502er', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.232', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169fgvw l 8s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.233', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502erb', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.234', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502egrc lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.235', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar111p s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.236', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar513gw lcv1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.237', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar513w v1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.238', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.239', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar207vp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161egw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.240', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204xe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.241', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169jfvw 4b4s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.242', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar511egw lcav2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.243', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar503hgw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.244', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar503hgw lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.245', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502egrz lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.246', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar515cgw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.247', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1504 24s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.248', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1504 24t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.249', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar201s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1504 16s8t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.250', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1504 8S16T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.251', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar168f 4p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.252', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar550c 2c6ge 2d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.253', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar503edgw lo', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.254', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar129cv', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.255', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar sc u bc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.256', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar se u bc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.257', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar sa u bc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.258', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar sc lc bc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.259', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar207s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar se l bc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.260', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar sa la bc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.261', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar sc lc mc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.262', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar se l mc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.263', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar sa la mc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.264', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar sc mc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.265', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar se mc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.266', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161f dgp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.267', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar so lo bc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.268', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar so lo mc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.269', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar151', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar so u bc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.270', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502eg l pd', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.271', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161fw dgp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.272', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar505ka l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.273', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502egw lc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.274', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502egrz l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.275', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar503gw lo', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.276', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502eg la', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.277', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651w x4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.278', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651 x8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.279', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar157', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651u a4 lte4ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.281', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651u a4 lte6ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.282', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar111ec', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.283', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar111ec s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.284', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161ec', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.285', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220ec', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.286', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220c s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.287', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204 27ge s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.288', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502eg lj', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.289', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2220s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651f lite', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.290', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar631 lite', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.291', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651w a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.292', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169jfvw 2s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.293', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6120v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.295', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6120vw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.296', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1660', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.297', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1660c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.298', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1240', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar336vw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.301', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1600u x14', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.302', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204xe dc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.303', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651 a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.304', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651 lte4ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.305', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651 lte6ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.306', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6120 s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.307', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1660 s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.308', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar207g hspa7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar657w a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.310', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6140 16g4xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.311', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204e d 27ge', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.312', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6300 s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.313', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6140L 9G 2AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.314', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6140 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar611W LTE4CN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.318', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar156', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar617VW LTE4EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6121', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.323', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651u a4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.324', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar657w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.325', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6121C S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6121 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.327', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6140H S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.328', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6280 S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.329', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar158e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar617VW LTE4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.330', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6140 9G R 2AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.331', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6280K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.332', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6300K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.333', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.334', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6121K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.335', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6140K 9G 2AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.336', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar301', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar301W', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.338', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar301H', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.339', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar8140 12g10xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.340', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar8140 t 12g10xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.341', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502H', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.342', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502H CN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.343', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502H 5G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.344', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar651w 8p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.345', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6140e 9g 2ac', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.346', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.348', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar720', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.349', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar157g hspa7', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar730', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.350', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6280c s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.351', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6300c s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.352', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar611 s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.353', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar611w s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.354', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar303', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.355', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar303w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.356', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6121ec s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.357', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6121e s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.358', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6140e s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.359', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar151w p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'srg1311', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.360', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'srg1340e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.361', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar611', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.362', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6710 l50t2x4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.363', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6710 l50t2x4 t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.364', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6710 l26t2x4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.365', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6710 l26t2x4 t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.366', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar502h 5g cn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.367', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar5710 h8t2ts1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.368', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar5710 h8t2ts1 t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.369', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar157w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6710 l8t3ts1x2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.370', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6710 l8t3ts1x2 t', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.371', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ru 5g 101', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.372', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar611e s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.373', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar611 lte4ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.374', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar611w lte6ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.375', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar631i lte4cn', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.376', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar631i lte4ea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.377', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar8700 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.378', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6510 L11T1X2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.379', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6510 L5T4S4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.380', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar5510 H8P2TW1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.381', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar5510 H10T1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.382', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar5510 L5T LTE4EA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.383', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar5510 L5T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.384', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar6500 10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.385', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar157vw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1240w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar158evw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2201 48fe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2202 48fe', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2220l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar201vw p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar207vw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2230', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2220d', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'usr20 6', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'usr20 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531gph', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531gbpdh', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar5312ch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531f2ch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar151gevdo', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar156i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar156iw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar157i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar157iw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar168f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar168fw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169fw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169bf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169bfw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220fw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar151s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar151wps', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar151gus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220ls', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2201 48fes', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2204s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2240s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar159', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar2540h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar3560h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar121s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220v', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161fs', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar156w', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar159fw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161fgw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161fg l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar162f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169fvw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161fw p m5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar511gw uav2m5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169gfvw l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar531gbp u h', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar511gw lav2m3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169a', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar161ag l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar169agw i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ar1220evw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.224.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'lswCommon', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700W S48P4X1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1000', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700W S32ST4X1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.10004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6700W S24X6Q1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1001', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700W L24T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1002', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700W L48T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1003', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 S24T4X X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1005', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S S24T4X XA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1006', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H24S4X MA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1007', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 H48HB4XZ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S H48HB4XZ A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1009', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 H24HB4XZ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1010', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S H24HB4XZ A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S S48P4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S48T4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1014', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S24T4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1017', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S48T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1018', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S S48T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1019', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S48T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1020', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S24T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1021', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S S24T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1022', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S24T4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1023', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S24T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1024', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S24T4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S48P4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1026', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S48P4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1027', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S24P4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1028', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 48T4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1029', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 48P4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1030', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 32ST4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1031', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 24T4X QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1032', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 24P4X A2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1033', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S600 S24S28X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1034', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H28X6CZ V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1047', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H28X6CZ TV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1048', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H24S4X6QZ V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1049', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H24S4X6QZ TV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1050', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H48UM4Y2CZ V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1051', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H48UM4Y2CZ TV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1052', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S24N4X2Q A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1053', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S24N4X2Q A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1054', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S S24N4X2Q A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1055', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S24UN4X2Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1056', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S S24UN4X2Q A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1057', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S8UM16UN2Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1060', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S S8UM16UN2Q A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1061', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H48UM4Y2CZ KV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1062', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H24UM4Y2CZ V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1063', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H24UM4Y2CZ TV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1064', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H24UM4Y2CZ KV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1065', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H48X6CZ V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1066', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H48X6CZ TV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1067', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H44S4X6QZ V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1068', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H44S4X6QZ TV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1069', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8T4X QA V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1070', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8T4S A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1071', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L10T4X A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1072', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L10T4X TA V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1073', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L10T4X A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1074', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8P4X QA V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1076', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8P4S A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1077', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8P2T4X A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1078', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8P2T4X TA V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1079', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L8P2T4X A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1080', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L10T4X D V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1081', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L16T4X QA V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1082', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L16T4S A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1083', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L16T4X A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1084', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4X QA V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1085', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4S A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1086', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4XE A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1087', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L24T4XE A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1088', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4XE D V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1089', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L24T4XE D V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1090', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4XE TA V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1091', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 S24T4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1092', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 S24T4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1093', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735I S24T4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1094', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735I S24T4XE T V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1095', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24P4S A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1096', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24P4XE A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1097', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24P4XE TA V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1098', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L24P4XE A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1099', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's8016Common', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.11.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 S24P4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 S24P4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48T4S A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48T4XE A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L48T4XE A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48T4XE TA V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48T4XE D V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 S48T4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 S48T4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48LP4S A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48LP4XE A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48P4XE A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 S48P4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 S48P4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 S24U4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 S24U4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 S48U4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 S48U4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735I S24U4XE V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735I S24U4XE T V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735I S8T4XN V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735I S8T4XN T V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735I S8T4SN V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735I S8U4XN V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 S24U4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 S48U4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S S24S4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S S48S4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S S24T4S XA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6720S S36S16X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735I L8P4X A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1171', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735I L10T4X A V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1172', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6330 H24X4Y', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1173', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3710 H24T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1175', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3710 H24P4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1176', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3710 H48T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1177', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S3710 H48LP4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1178', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S24T4X A V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1179', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 H24P4XC V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1180', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 H48T4XC V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1181', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S310 24P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1182', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S310 24T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S310 48T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S24S8T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S24S8T4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1186', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 H48HB4XZ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.1187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'e6000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.193', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 28P SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.315', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5321 28P SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.316', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 28X SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.317', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5321 28X SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.318', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5321 28X SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.319', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 52P SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.320', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5321 52P SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.321', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 52X SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.322', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5321 52X SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.323', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5321 52X SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.324', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28P SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.326', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.328', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52P SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.329', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52P SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.330', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X PWR SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5710 28X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.338', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5710 52X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.339', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 30C EI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.341', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 30C EI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.342', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 54C EI 48S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.344', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 54C EI 48S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.345', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5700S 28X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.346', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5700S 52X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.347', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5700S 28P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.348', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'e628', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.349', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'e628 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.350', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'e652', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.351', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'e652 X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.352', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 14X PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.353', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720S 26Q EI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.354', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720S 26Q EI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.355', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 26Q EI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.356', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 26Q EI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.357', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5300 28TP PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.358', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5300 10P PWR LI AC new', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.359', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.360', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.361', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X PWR SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.362', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52X PWR SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.363', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X PWR SI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.364', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.365', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52X SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.366', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 28X SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.367', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 52X SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.368', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 56C HI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.379', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 56C HI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.380', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 32C HI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.381', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 32C HI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.382', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 30C EI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.383', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 54C EI 48S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.384', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 56C PWR HI AC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.385', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720S 26Q EI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.386', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 26Q EI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.387', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.388', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.389', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 36C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.390', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 56C EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.391', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 36C EI 28S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.392', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 10T PWR LI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.393', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 12TP LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.394', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 12TP LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.395', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 12TP LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.396', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 10GW 2P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.397', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 12TP PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.399', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 12TP PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.400', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 10GW PWR 2P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.401', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.402', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 28P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.403', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.404', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GWR 4P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.405', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.407', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.408', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.409', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 28X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.410', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's628X E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.411', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GWR 4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.412', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.413', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.415', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28P PWR LI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.416', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.419', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X PWR LI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.420', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X PWR LI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.421', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 28X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.422', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's628X PWR E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.423', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GWR PWR 4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.424', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.425', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 52P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.426', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.427', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's652 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.428', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 52X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.429', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's652X E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.430', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52X LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.432', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.433', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.434', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 52GWR 4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.436', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.437', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 52P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.438', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52P PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.439', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's652 PWR E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.440', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52P PWR LI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.441', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 52X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.442', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's652X PWR E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.443', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.445', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52X PWR LI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.446', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X PWR LI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.447', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 52GWR PWR 4P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.448', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 52GWR PWR 4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.449', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X SI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.450', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X SI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.451', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5321 28X SI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.452', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5321 28X SI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.453', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X LI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.454', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 28X LI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.455', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X LI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.456', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X LI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.457', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X LI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.458', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28TP PWR LI ACL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.459', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 28TP PWR LI ACL', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.460', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GWR PWR 4TP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.461', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's628 PWR E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.463', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28TP LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.464', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's628 E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.465', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1700 28GR 4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.466', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1700 52GR 4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.467', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X SI 12S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.468', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720S 28X SI 12S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.469', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 30C LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.470', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 30C LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.471', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 54C LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.472', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 54C LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.473', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 30C PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.474', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 30C PWR LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.475', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 54C PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.476', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 54C PWR LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.477', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X SI C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.478', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52X SI C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.479', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X PWR SI C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.480', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52X PWR SI C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.481', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X PWR SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.482', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X PWR SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.483', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28P SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.484', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52P SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.485', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 56C PWR EI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.486', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 12TP LI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.487', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5321 52X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.488', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.489', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.490', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28P SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.491', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5322 52X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.492', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 54C EI 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.493', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 16X PWH LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.494', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2x00 COMM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.495', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5x00 MPLS COMM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.496', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5x00 L3 COMM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.497', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X PWH LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.498', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X PWH LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.499', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GWR 4P E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.500', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GWR 4X E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.501', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GWR PWR 4P E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.502', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GWR PWR 4X E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.503', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 52GWR 4P E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.504', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 52GWR 4X E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.505', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 52GWR PWR 4P E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.506', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 52GWR PWR 4X E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.507', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GWR PWR 4TP E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.508', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 10GW 2P E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.509', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 10GW PWR 2P E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.510', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 12X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.511', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 12X LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.512', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 12X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.513', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 12X PWR LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.514', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28TP LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.515', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5721 28X SI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.516', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X SI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.517', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28X SI 24S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.518', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720 12TP EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.519', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2320 12TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.520', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2320 12TP EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.521', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720 12TP PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.522', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2320 12TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.523', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2320 52TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.525', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720 52TP PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.526', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2320 52TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.527', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720 28TP PWR EI L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.528', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2320 28TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.530', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2320 28TP EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.531', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2320 28TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.533', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2320 28P PWR EI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.534', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 26Q LI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.535', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720S 26Q LI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.536', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6321 26Q SI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.537', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 26Q SI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.538', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720S 26Q SI 24S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.539', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 16X LI 16S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.541', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720S 16X LI 16S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.542', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720X 16XWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.543', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720X 16XWR E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.544', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720S 32X LI 32S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.546', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 32X SI 32S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.548', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720X 32XWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.549', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720X 32XWR E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.550', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 32C SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.552', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 32C SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.553', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 32C SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.554', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 32C PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.555', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 32C PWH SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.556', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 32C PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.557', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 32C PWH SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.558', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 56C PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.559', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 56C PWH SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.560', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 56C PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.561', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 56C PWH SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.562', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 48Q SI 48S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.563', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720S 48Q SI 48S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.564', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 48Q SI 48S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.565', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 48C SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.566', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5330 48C SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.567', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 48C PWR SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.568', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 68C SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.569', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5330 68C SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 68C PWR SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.571', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 52X PWH SI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.572', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 52X PWH SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.573', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 52X PWH SI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.574', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 52X PWH SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.575', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28P PWR LI AC SEA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.577', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28P LI AC SEA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.578', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 28P PWR LI AC SEA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.579', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52P LI AC SEA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.580', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52P LI AC SEA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.581', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52P PWR LI AC SEA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.582', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52P PWR LI AC SEA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.583', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 12P LI BAT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.584', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5330 68C SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.585', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 68C PWR SI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.586', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 52X PWH SI ACF', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.587', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 56C PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.588', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 32C PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.589', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2320 52TP EI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.590', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5330 68C SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.591', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730S 48C EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.592', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730S 48C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.593', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730S 68C EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.594', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730S 68C PWR EI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.595', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5330 36C HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.596', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 36C HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.597', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 44C HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.598', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5330 36C PWH HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.599', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 36C PWH HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.600', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 44C PWH HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.601', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5330 60C HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.602', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 60C HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.603', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 60C PWH HI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.605', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 50L HI 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.607', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 50L HI 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.608', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6720 30L HI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.609', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 30L HI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.610', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X SI AC V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.611', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X SI DC V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.612', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52P SI AC V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.613', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52P SI DC V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.614', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5300 52P LI DC V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.615', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 36C EI 28S AC V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.616', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 36C EI 28S DC V1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.617', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I 12X SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.618', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I 12X PWH SI DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.619', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I 28X SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.620', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I 28X PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.621', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 44C HI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.622', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 60C HI 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.623', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 68C HI 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.624', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5730 36C HI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.625', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I 12X PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.626', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I 10X PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.627', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1600 8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.628', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1600 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.629', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1600 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.630', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2600 10P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.631', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2600 10P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.632', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2600 28P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.633', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2600 28P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.634', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's3600 28P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.635', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's3600 28P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.636', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's3600 52P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.637', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's3600 52P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.638', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1700 16 AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.639', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1700 24R', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.640', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5330 60C HI 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.641', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5330 36C HI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.642', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52X LI 48S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.643', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X LI 48S AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.644', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X LI 48S DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.645', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5320 52X SI 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.646', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 52X SI 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.647', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6320 26Q LI 24S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.648', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I 10X PWH SI AC sea', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.649', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I 6X PWH SI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.650', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1820EC 8G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.651', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1820EC 24G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.652', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5820EC 10P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.653', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5820EC 10P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.654', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5820EC 28P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.655', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5820EC 28P PWR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.656', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 10GF 2P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.657', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 10GF PWR 2P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.658', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GFR 4P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.659', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 28GFR PWR 4P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.660', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 52GFR 4P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.661', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1720 52GFR PWR 4P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.662', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720SV2 28P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.663', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720SV2 52P LI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.664', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6330 H48X6C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.666', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6330 H24X6C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.668', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720 28X PWR LI ACF 740', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.669', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720S 12TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.672', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720S 12TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.673', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720S 52TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.674', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720S 52TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.675', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720S 28TP PWR EI L AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.676', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720S 28TP PWR EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.677', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's2720S 28TP EI AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.678', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731 H24T4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.680', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I S4T2S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.684', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I S8U2X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.685', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5720I S8U2X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.686', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731 S24T4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.687', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731S S24T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.688', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5331 H24T4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.689', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731S S24P4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.691', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5331 H24P4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.692', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731S S48T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.694', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5331 H48T4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.695', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731 S48P4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.696', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731S S48P4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.697', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5331 H48P4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.698', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5732 H24S6Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.699', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5332 H24S6Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.700', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5732 H48S6Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.701', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5332 H48S6Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.702', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6730 S24X6Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.703', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6730S S24X6Q A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.704', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731S H24T4XC A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.705', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731S H48T4XC A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.706', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 L24T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.707', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L24T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.708', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1730S S24T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.709', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L24T4S MA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.710', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L24FT4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.711', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L12T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.713', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 L12T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.714', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L24T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.716', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 L24T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.717', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L12P4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.719', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 L12P4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.720', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 L24P4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.721', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L24P4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.722', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1730S S24P4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.723', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L24P4S MA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.724', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 L24P4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.725', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L24P4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.726', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 L24P4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.727', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 L32ST4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.728', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 L32ST4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.729', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L32ST4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.730', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S S32ST4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.732', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 S32ST4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.733', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L48T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.735', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1730S S48T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.736', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L48FT4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.737', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 L48T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.738', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L48T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.739', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 S24T4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.740', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 S24T4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.741', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S S24T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.742', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 S24P4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.744', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 S48T4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.746', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S S48T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.747', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 S48P4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.748', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 S48P4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.749', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 L48P4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.750', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735S L48P4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.751', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 S48S4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.753', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 S48S4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.754', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 S4T2X IA150G1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.755', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 S8P2X IA200G1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.756', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 S8P2X IA200H1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.757', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731S H24T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.758', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731S H48T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.759', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1700 8 AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.760', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731S H24T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.761', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731S H48T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.762', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6730S H24X6C A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.763', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1730S H24T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.764', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1730S S24T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.765', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1730S H48T4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.766', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5335 L48T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.767', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's1730S S48P4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.768', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6730 H48X6C K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.769', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's6730 H24X6C K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.770', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731 H48P4XC K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.771', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731 H24T4XC K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.772', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5731 H24P4XC K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.773', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5732 H24S6Q K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.774', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5732 H48S6Q K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.775', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5732 H48UM2CC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.776', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5332 H24UM2CC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.778', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5732 H48XUM2CC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.779', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N's5735 S24T4X I', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.780', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H28Y4C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.781', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6330 H28Y4C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.782', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H24X4Y4C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.783', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6330 H24X4Y4C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.784', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730S H24X4Y4C A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.785', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730S S24X4Y4Q A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.786', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H24S4Y4Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.787', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5332 H24S4Y4Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.788', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.789', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L24T4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.790', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L12T4S D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.791', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L12T4S D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.792', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L32ST4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.793', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L32ST4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.794', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S S24T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.795', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S S48T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.796', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S S24P4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.797', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S S48P4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.798', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L48T4S MA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.799', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S24T4S MA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.800', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S24P4S MA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.801', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H28Y4C K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.806', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H24UM2C K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.807', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5732 H48UM2C K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.808', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S24UM4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.810', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5736 S24T4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.811', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S24T4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.812', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H24T4XC A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.813', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5736 S48T4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.814', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S48T4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.815', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H48T4XC A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.816', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5736 S24U4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.817', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S24U4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.818', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H24U4XC A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.819', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5736 S48U4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.820', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S48U4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.821', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H48U4XC A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.822', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5736 S24S4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.823', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S24S4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.824', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H24S4XC A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.825', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5736 S48S4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.826', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S48S4XC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.827', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S48S4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.828', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S48S4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.829', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6720S S52X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.830', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6720S S24S28X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.831', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 52X LI 48S AC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.832', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 52X LI 48S DC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.833', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720 52X LI 24S AC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.834', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5720S 52X LI 24S AC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.835', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 52X LI 48S AC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.836', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 52X LI 48S DC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.837', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5320 52X LI 24S AC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.838', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 H48T4XC B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.839', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.840', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L8T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.841', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8T4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.842', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L8T4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.843', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S8T4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.844', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2730S S8FT4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.845', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S500 8T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.846', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 8T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.847', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 8T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.848', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8P4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.849', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8T4X D1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.850', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L8P4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.851', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L8T4X D1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.852', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8P4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.853', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L8P4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.854', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S8P4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.855', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2730S S8FP4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.856', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S500 8P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.857', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 8P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.858', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 8P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.859', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.860', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L24T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.861', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4X D1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.862', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L24T4X D1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.863', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.864', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L24T4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.865', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S24T4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.866', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2730S S24FT4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.867', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L24T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.868', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S24T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.869', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S500 24T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.870', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 24T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.871', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 24T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.872', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2730S S16FT4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.873', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S500 16T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.874', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 16T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.875', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L24P4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.877', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24P4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.878', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L24P4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.879', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S24P4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.880', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2730S S24FP4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.881', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S500 24P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.882', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 24P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.883', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 24P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.884', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L24P4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.885', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2730S S16FP4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.886', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S500 16P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.887', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 16P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.888', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.889', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L48T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.890', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48T4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.891', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L48T4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.892', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S48T4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.893', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2730S S48FT4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.894', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L48T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.895', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S48T4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.896', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S500 48T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.897', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 48T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.898', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 48T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.899', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48P4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.900', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L48P4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.901', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L48P4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.902', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L48P4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.903', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L48P4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.904', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S48P4S A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.905', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S2730S S48FP4S A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.906', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S24S4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.907', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5336 S24S4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.908', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700W H24T4XC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.909', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700W H48T4XC1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.910', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L32ST4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.911', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L32ST4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.912', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L32ST4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.913', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S500 32ST4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.914', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L32ST4X D1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.915', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5335 L32ST4X D1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.916', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H48X6C V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.920', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H24X6C V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.921', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H24T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.922', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H48T4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.923', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H24U4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.924', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H48U4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.925', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H24S4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.926', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H48S4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.927', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S H48S4XC A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.928', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735R 8P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.929', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735R 24T4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.930', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735R 24T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.931', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735R 24P4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.932', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735R 24P4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.933', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735R 48T4S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.934', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5736 S48S4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.935', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5736 S48S4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.936', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8T4X IA1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.937', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8P4X IA1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.938', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4X IA1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.939', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8T4S QA1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.940', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4X QA1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.941', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4S QA1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.942', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H48X6C TV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.943', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H24X6C TV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.944', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H48Y6C V2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.945', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6730 H48Y6C TV2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.946', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8P4S QA1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.947', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S48S4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.948', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S S48S4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.949', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S48S4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.950', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S48S4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.951', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S48S4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.952', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S S48S4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.953', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S48S4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.954', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S32ST4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.955', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S S32ST4X A1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.956', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S32ST4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.957', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S32ST4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.958', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S32ST4X D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.959', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731 S32ST4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.960', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5731S S32ST4X A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.961', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5331 S32ST4X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.962', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6735 S48X6C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.963', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6735S S48X6C A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.964', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6735 S24X6C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.965', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S6735S S24X6C A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.966', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8T4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.967', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L8T4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.968', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 8T4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.969', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L8T4S MA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.970', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S8T4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.971', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 8T4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.972', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L8P4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.973', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L8P4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.974', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 8P4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.975', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L8P4S MA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.976', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S8P4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.977', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 8P4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.978', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4X QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.979', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L24T4X QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.980', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S24T4X QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.981', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24T4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.982', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L24T4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.983', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L24T4S MA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.984', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S24T4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.985', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 24T4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.986', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 24T4S QA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.987', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24P4X A2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.990', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L24P4X A2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.991', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S24P4X A2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.992', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735 L24P4S A2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.993', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L24P4S A2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.994', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5735S L24P4S MA2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.995', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S1730S S24P4S A2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.996', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S300 24P4S A2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.997', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S200 24P4S A2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.998', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'S5700W S24P4X1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.23.999', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'virtual cluster chassis', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'vne1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne5000EMulti S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne5000E BTB S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne5000E S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X8A ADMIN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X8A LS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X16A ADMIN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X16A LS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X16C IOT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X8C IOT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X16C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X8C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X8AK', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X8AK IOT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X4A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne40E X4A PTN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SIG9800 X8A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SIG9800 X16A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE20 X3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'NE20 X3 PTN', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.62.2.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X1DO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X2DO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X3DO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X8DO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X16DO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X1 M4', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X2 M8', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X2 M16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M4 DO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M8 DO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M16 DO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X8A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X16A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M2E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M2F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X3A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X3ADO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X8ADO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X16ADO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X2 M8A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X2 M16A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M8A DO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M16A DO', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M2H', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M2K', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M2K B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 F1A 14H24Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X2 M16B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 F1A 8H20Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 X2 M14B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'cX600 M14B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.87.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ne20E S16B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2011.2.88.11', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Juniper', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.1411.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'M40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'M20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'M160', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'M10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'M5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'M7I', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX3100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'LN2800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX9214', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX9208', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX9204', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX5400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'VMX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4600 40F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.109', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'M10I', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'VIRTUAL ROUTE REFLECTOR  VRR ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX104', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.111', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.97', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.113', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.87', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.87.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.113.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.114', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.87.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.114.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX1100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.115', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.87.6', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.115.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX2100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.116', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.87.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.116.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX2200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.117', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX4000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.118', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.87.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.118.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.119', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.120', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.119.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.120.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.11', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX500 O', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.121', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.122', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.121.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.122.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX500 O POE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.123', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.124', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.123.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.124.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.7', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX5048', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.126', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.126.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX5096', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.127', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.127.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'LN1000CC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'VSRX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.129', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'J2300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PTX1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.130', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.130.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX340', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX345', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX 1500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX10003', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'J4300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX4600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX4800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX4100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX4200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX204', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX2008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MXTSR80', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.146', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PTX10008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX5448', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.148', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'J6300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PTX10016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX9251', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX150', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX10001', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX10008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX10016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX9253', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'JRR200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX5448M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX5448D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'IRM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX6360OR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX6360OX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX710', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX5800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.163', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX380', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'R6675', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.166', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'TX MATRIX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'TX ROUTING NODE  LCC0 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'TX ROUTING NODE  LCC1 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.17.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'TX ROUTING NODE  LCC2 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.17.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'TX ROUTING NODE  LCC3 ', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.17.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'M120', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'J4350', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'J6350', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX960', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'J4320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'JSR2320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'J2350', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX480', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX5800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'T1600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX5600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX240', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3200 24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.30', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.30.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4200 48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.31', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.31.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX8208', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.32', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX8216', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.33', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX3600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX3400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX210 LM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'TX MATRIX PLUS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'JCS1200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX240H', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX650', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX100B', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'LN1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2200 48T 4G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4500 40F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX 1400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4650', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.508', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PTX10002', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.513', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PTX1000380C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.523', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PTX10003160C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.524', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX1000380C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.525', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX10003160C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.526', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PTX1000136MR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.555', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX80', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.57', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.57.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.57.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.57.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.57.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PTX10004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ACX753', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.576', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX 220', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX XRE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'T640', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX110H2 VA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX120', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MAG8600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MAG6611', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MAG6610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PTX5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'T320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'IBMCONVERGEDSWITCH J52F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX6210', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3300 48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.76', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.76.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.76.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'M40E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX SWITCH', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'T4000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SRX550', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'M320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.90', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4550', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX2020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'LN2600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'PTX3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'MX2010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3400 24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.131.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3400 48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.131.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3400 24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.131.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3400 48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.131.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2300 24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.132.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2300 48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.132.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2300 24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.132.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2300 48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.132.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2300C 12T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.132.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2300C 12P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.132.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3200 24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.30.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3200 48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.30.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3200 48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.30.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4200 24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.31.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4200 24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.31.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4200 48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.31.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4200 24F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.31.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4200 24PX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.31.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4200 48PX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.31.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2200 24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.43.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.43.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2200 24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.43.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2200 48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.43.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2200 48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.43.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2200C 12T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.43.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX2200C 12P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.43.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4650 48Y 8C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.508.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX3500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.61.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.61.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX3600 16Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.61.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX3500 48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.61.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5100 24Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.61.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5100 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.61.6', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5100 96S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.61.7', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5100 48C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.61.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4300 24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.63.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4300 48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.63.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.63.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.63.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.63.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4300 24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.63.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4300 48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.63.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3300 24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.76.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.76.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3300 24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.76.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX3300 48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.76.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX10002 36Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX10002 72Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX10004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX10008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX10016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5200 32C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5200 32C 64Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5110 48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5110 32Q', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX10002 60C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX3600S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5210 64C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5200 48Y', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5120 48Y', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5120 32C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5220 32CD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5220 128C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5120 48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5130 32CD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5130 48C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5100 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX5100 48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX3000 G', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.84.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'QFX3000 M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.84.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4550 32F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.92.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'EX4550 32T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.92.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'JUNIPER BX7000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'WXC 250', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.3.41.1.1.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'WXC 500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.3.41.1.1.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'WXC 590', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.3.41.1.1.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'WXC 1800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.3.41.1.1.5.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'WXC 2600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.3.41.1.1.5.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'WXC 3400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.3.41.1.1.5.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'WXC 7800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.3.41.1.1.5.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'IDP8200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.3.9.1.252.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ERX 1410', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ERX1400 VIRTUAL ROUTER', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ERX 710', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ERX700 VIRTUAL ROUTER', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.1.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.1.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ERX 1440', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ERX 705', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ERX 310', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'ERX310 VIRTUAL ROUTER', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.1.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'JUNIPER UMC SYS MGMT', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'E320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'E320 VIRTUAL ROUTER', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'E120', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.1.6.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SSX 1400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.2.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SSX 700', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.2.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'SSX 1440', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4874.1.1.2.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper M7i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX3100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.100', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.100', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.100', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper LN2800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.101', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX9214', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.102', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.102', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.102', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX9208', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.103', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.103', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.103', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX9204', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.104', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.104', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.104', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX5400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.105', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.105', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.105', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM4274S54J54S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.106', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.106', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.106', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper DELLJSRX5400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.107', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.107', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.107', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper VMX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.108', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.108', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.109', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.109', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.109', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.109.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper M10i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.11', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.11', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper VRR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.110', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper OCPAcc', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.112', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.112', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.112', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.113', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.113', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX2000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.114', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.114', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX1100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.115', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.115', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX2100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.116', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.116', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX2200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.117', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.117', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.117', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.117.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX4000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.118', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.118', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX500AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.119', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.119', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX500DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.120', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.120', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX500OAC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.121', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.121', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX500ODC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.122', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.122', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX500OPOEAC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.123', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.123', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX500OPOEDC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.124', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.124', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SatelliteDevice', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.125', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.125', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX5048', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.126', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.126', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX5096', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.127', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.127', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.127', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper LN1000CC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.128', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.128', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.128', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper Vsrx', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.129', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper J2300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX1000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.130', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.130', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.130', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX3400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.131', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.131', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.131', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX2300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.132', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.132', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.132', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.133', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.134', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX340', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.135', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX345', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.136', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX1500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.137', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.138', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.138', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.138', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper JNP10003', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.139', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.139', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.139', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper J4300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX4600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.140', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.140', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX4800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.141', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.141', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.141', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX4100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX4200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper JNP204', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.144', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.144', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.144', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX2008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.145', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.145', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.145', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MXTSR80', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.146', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.146', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.146', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.146.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX10008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.147', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.147', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.147', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX5448', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.148', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.148', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.148', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.148.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper J6300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX10016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.150', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.150', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.150', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX9251', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.151', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.151', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.151', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX150', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.152', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper JNP10001', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.153', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.153', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.153', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX10008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.154', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.154', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.154', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX10016', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.155', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.155', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.155', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX9253', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.156', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.156', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.156', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper JRR200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX5448M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.158', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.158', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.158', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.158.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX5448D', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.159', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.159', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.159', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.159.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IRM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.16', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.16', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX6360OR', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.160', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.160', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX6360OX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.161', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.161', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.161', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX710', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.162', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.162', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.162', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.162.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX5800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.163', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.163', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.163', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.163.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX380', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.164', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.165', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.165', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper R6675', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.166', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.166', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.166', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.166.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX304', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.167', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.167', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.167', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.167', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX10004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.168', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.168', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.168', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.169', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.169', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.169', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper TX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.17', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.17', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.170', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.170', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.170', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper M120', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.18', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.18', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper J4350', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper J6350', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX960', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.21', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.21', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper J4320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper J2320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper J2350', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX480', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.25', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.25', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX5800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.26', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.26', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper T1600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.27', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.27', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX5600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.28', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.28', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX240', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.29', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.29', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX3200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.30', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.31', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX8208', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.32', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX8216', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.33', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX3600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.34', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.34', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX3400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.35', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.35', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX210', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper TXP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.37', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.37', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper JCS', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.38', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.38', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX240', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX650', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper LN1000V', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.42', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.42', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX2200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.43', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.43', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.44', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.44', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper FXSeries', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.45', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.45', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.45', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM4274M02J02M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.46', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.46', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.46', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM4274M06J06M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.47', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.47', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.47', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM4274M11J11M', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.48', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.48', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.48', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX1400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.49', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.49', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM4274S58J58S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.50', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.50', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.50', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4650', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.508', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.508', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.508', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM4274S56J56S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.51', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.51', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.51', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX1000260C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.513', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.513', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.513', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM4274S36J36S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.52', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.52', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.52', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX1000380c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.523', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.523', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.523', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX10003160c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.524', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.524', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.524', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX1000380c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.525', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.525', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.525', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX10003160c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.526', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.526', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.526', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM4274S34J34S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.53', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.53', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.53', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM427348EJ48E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.54', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.54', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.54', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM4274E08J08E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.55', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.55', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.55', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX1000136mr', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.555', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.555', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.555', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM4274E16J16E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.56', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.56', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.56', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX80', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.57', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.57', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX10004', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.570', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.570', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.570', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX753', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.576', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.576', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.576', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX1800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.577', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.577', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.577', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX7KSwitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.578', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.578', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.578', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.578', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX710032c', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.579', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.579', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.579', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.579', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX220', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX710048l', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.580', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.580', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.580', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.580', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX7908', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.581', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.581', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.581', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.581', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX7024', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.582', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.582', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.582', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.582', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX1600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.583', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.583', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX2300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.584', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.584', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX4300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.585', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.585', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX7332', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.586', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.586', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.586', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.586', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX7348', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.587', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.587', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.587', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.587', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX7024X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.588', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.588', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.588', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.588', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX1000236qdd', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.589', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.589', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.589', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.589', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper Exxre', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.59', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.59', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.59', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.59.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX4700', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.590', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.590', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX12008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.591', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.591', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.591', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.591', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX301', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.592', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.592', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.592', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.592', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX7020AC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.593', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.593', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.593', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.593', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX7020DC', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.594', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.594', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.594', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.594', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper T640', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.6', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.6', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFXInterconnect', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.60', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.60', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.60', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFXNode', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.61', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.61', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.61', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper Qfxjvre', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.62', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.62', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.63', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.63', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX110', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX120', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.65', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MAG8600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.66', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.66', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MAG6611', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.67', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.67', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MAG6610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.68', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.68', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.69', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.69', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper T320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.7', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.7', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM0719J45E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.71', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.71', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.71', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBMJ08F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.72', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.72', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.72', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBMJ52F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.73', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.73', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX6210', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.74', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.74', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper DellJFX3500', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.75', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.75', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.75', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX3300', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.76', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.76', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper DELLJSRX3600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.77', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.77', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.77', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.77', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper DELLJSRX3400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.78', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.78', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.78', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper DELLJSRX1400', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.79', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.79', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.79', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper M40e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.8', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.8', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper DELLJSRX5800', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.80', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.80', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.80', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper DELLJSRX5600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.81', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.81', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.81', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFXSwitch', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.82', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.82', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper T4000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.83', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.83', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.84', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.84', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX5000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.85', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.85', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper SRX550', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.87', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.87', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.88', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.88', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.88', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.88.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.89', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.89', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.89', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.89.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper M320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.9', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.9', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.90', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.90', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.90', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.90.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFXMInterconnect', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.91', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.91', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.91', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.91', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4550', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.92', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.92', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX2020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.93', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.93', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper Vseries', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.94', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.2.94', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper LN2600', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.95', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.95', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper FireflyPerimeter', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX104', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.97', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.97', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.97', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.97.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper PTX3000', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.98', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.98', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper MX2010', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.1.99', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.99', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.99', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper M40', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper M20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper M160', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper M10', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper M5', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.3.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper OCP48S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.112.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper OCP48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.112.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX2300port24MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.132.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX2300port48MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.132.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTS1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTS1SCHost', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTS1SCJdm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTS1SCJcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX150CS1AE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX150CS1AA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX150S1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX350S1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFXWhiteBox1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX150CS1EAE', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX150CS1EAA', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX150S1E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX350S2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX350S3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTS2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTS2SCHost', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTS2SCJdm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTS2SCJcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper Nfxopal', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX350X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTLS1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTLS1SCHost', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTLS1SCJdm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250ATTLS1SCJcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S1SCHost', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S1SCJdm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S1SCJcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S2SCHost', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S2SCJdm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S2SCJcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250LS1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250LS1SCHost', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250LS1SCJdm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.6.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250LS1SCJcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.6.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFXVirtual', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFXVirtualSCHost', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFXVirtualSCJdm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.7.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFXVirtualSCJcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.7.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S1E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S1ESCHost', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S1ESCJdm', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.8.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX250S1ESCJcp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.8.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper NFX150CS1', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.138.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400port48MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400port48MXP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400port24MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400port48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400port24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400port48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400port24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400port48F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400port24X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4400port48XP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.165.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100port48MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100portF24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100portF12P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100portF12T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100portH12MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100portH24MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100portH24F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100port24MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100port48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100port24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100port48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100port24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100portF48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100portF24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4100portF48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.169.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000port48MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000port8P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000port24MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000port12MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000port48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000port24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000port12P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000port48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000port24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4000port12T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.170.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4500port40F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.44.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4500port20F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.44.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper FX1600port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.45.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper FX2160port', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.45.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM427348EJ48Eport24T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.54.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM427348EJ48Eport24P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.54.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM427348EJ48Eport48T', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.54.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM427348EJ48Eport48P', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.54.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM427348EJ48Eport24F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.54.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX710032C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.578.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX710048L', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.578.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper ACX7509', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.578.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX3008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.60.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFXC083008', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.60.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX3008I', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.60.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4300port32F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.63.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper EX4300port48MP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.63.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM0719J45Eport40F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.71.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM0719J45Eport20F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.71.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM2413F08J08F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.72.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM2409F52J52F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.73.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper IBM8729HC1J52F', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.73.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper AS781664X', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX512048YM8C', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX5700', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX523064CD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX5130E32CD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX524064OSFP', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX524064QSFPDD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX524032OD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX524032QD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX513048CM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX514040CD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX514024CD8QM', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX514024CD8O', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX5240128CD', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.82.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX3600I', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.91.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Juniper QFX510024QI', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.2636.1.1.1.4.91.2', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Konica Minolta', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 4000i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.10007.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C20p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.15.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Pagepro 5650', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.16.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 40p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.17.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Magicolor 1650', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.22.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Magicolor 1690mf', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.23.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C35p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.26.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 3300p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.28.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 3301p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.28.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 4000p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.29.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 4700p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.30.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C3100p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.31.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 4702p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.32.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 3602p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.1.1.34.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta 240f Pcl', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.10001.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.10002.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 25e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.10008.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 4020', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.10009.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 3320', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.10010.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 4422', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.10013.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 3622', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.10014.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 4052', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.10018.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 4020i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.10025.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 754', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.101.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 754e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.101.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 654e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.102.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.102.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C554', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.103.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C554e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.103.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.103.3.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.103.3.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.103.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 554e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.103.2.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.108.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C454e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.104.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.104.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.104.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.104.2.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.104.3.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.104.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C364e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.105.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.105.2.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.105.3.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.105.3.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.105.3.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.105.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C284e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.106.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.106.3.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.106.3.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.82.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C224', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.107.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.107.3.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.85.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C224e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.107.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.107.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 454e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.109.2.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.109.3.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.109.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 364e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.110.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.110.3.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.110.3.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.110.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 284e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.111.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C3850', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.113.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.113.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.113.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.113.2.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.113.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C3350', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.114.2.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.114.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 4750', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.115.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.115.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 4050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.116.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C3110', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.117.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C3351', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.122.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.151.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.151.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.151.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.151.2.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.151.2.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.151.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 367', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.122.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 287', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.123.3.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 227', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.124.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.124.2.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub Pro 1100', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.126.2.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.126.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C368', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.2.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.2.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.2.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.2.6', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.2.8', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.2.9', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.3.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.3.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.3.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.3.6', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.3.7', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.3.8', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.129.3.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C308', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.130.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.130.2.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.130.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.130.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.130.2.7', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.130.2.8', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.130.3.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C258', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.131.2.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.131.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.131.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.131.2.8', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.131.2.9', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.131.3.10', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.131.3.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.131.3.8', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.131.3.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C287', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.132.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.132.2.7', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.132.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C658', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.142.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C558', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.143.2.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.143.2.6', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.143.3.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.143.3.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C458', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.144.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.144.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.144.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.144.2.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.144.2.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.144.2.6', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.144.2.7', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.144.3.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.144.3.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 458', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.159.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.159.3.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.159.3.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.159.3.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.159.3.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub Pro 1050', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.16.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Accuriopress 6120', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.161.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 558e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.166.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 458e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.167.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.167.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 368e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.168.3.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.168.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 308e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.169.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.169.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C308e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.169.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Accuriopress C3070', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.172.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C550i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.177.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.177.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C450i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.178.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.178.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C360i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.179.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.179.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.179.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C300i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.180.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.180.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.180.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C250i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.181.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.181.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.181.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C3350i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.183.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.183.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.183.2.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.183.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C3300i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.186.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.186.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C750i', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.212.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C550', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.25.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.25.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.25.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C252', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.26.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C650', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.27.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C451', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.28.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.28.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C353', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.29.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.29.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C353p', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.29.6.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C253', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.30.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.30.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.33.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub Pro 1051', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.35.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 601', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.38.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.38.4.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.38.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 501', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.39.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.39.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 421', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.40.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.40.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 361', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.41.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.41.3.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.41.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C20', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.43.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C652', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.44.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C552', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.45.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.45.3.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.45.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C452', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.48.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.48.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.48.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C360', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.49.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.49.3.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.49.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C280', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.50.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.50.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.50.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C652ds', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.51.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C552ds', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.52.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub Pro 950', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.53.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.53.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta B362', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.54.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta 362', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.54.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta 282', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.55.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta 222', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.56.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.56.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C220', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.57.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.57.3.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.57.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C35', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.58.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta 350', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.6.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.6.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 423', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.63.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.63.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 363', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.64.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.64.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 283', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.65.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 283 Laser Mfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.65.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 223', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.66.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta 250', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.7.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.7.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 652', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.70.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 552', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.72.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C25', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.78.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C754', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.79.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C754e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.79.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.79.2.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.79.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta 200', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.8.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C654e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.80.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.80.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C454', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.82.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C364', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.83.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.83.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub C284', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.84.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.84.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 42', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.86.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 36', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.87.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub Pro 951', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.90.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub Press C1070', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.1.1.2.1.94.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta C Mf385 1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.2.1.2.1.113.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta C Mf335 1', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.2.1.2.1.114.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Sindoh N501', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.2.1.2.1.123.3.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.2.1.2.1.123.3.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub Pro C6501', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.2.1.2.1.13.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Aurora Adc 367', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.2.1.2.1.130.2.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Fiery Pro80 65 55c Km', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.2.1.2.1.46.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Variolink 3622c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.2.1.2.1.49.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Bizhub 36c', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.2.1.2.1.49.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Konica Minolta Ineo 350', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.18334.1.2.1.2.1.6.1.2', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Lexmark', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark Optra T612', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX910DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C524', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106736', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark W840', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106740', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C522', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106741', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C920', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106743', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark T640', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106749', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark T642', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106750', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark T644', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106751', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106751', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C770', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106791', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark E450DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106798', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark E352DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106800', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark E250DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106802', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C530', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106810', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C532', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106811', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C534', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106812', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C782', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106823', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106823', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C935', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106837', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C544', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106846', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C543', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106847', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark E260DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106851', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark E360DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106853', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark E460DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106854', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark T650', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106859', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark T652', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106860', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark T654', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106861', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C734', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106868', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C736', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106869', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C540', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106873', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark W850', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71106975', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C546', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107008', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C792', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107012', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C950', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107014', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C925', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107025', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark PRO5500 Series', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107031', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C748', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MS310DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107110', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MS811', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107113', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MS410DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107116', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MS510DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107117', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CS310N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107118', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CS410DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107122', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CS510DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107123', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MS610DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107126', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CS720', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.1.71107157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X560N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.11152', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X852E', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106755', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X854E', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106756', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X644E', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106757', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X646E', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106758', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X642E', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106792', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X945E', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106836', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X544', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106848', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X264DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106856', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X363DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106857', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X734DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106890', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X738DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106891', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X654DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106893', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X658DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106894', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X463DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106920', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X464DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106921', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X364DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106923', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X652DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106971', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X656DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106972', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X860DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106977', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X862DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106978', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X864DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106979', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X466DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71106998', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark T656', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107004', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X546', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107011', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X792', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107013', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X950', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107023', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X925', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107024', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X548', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107061', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X746', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107107', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX310DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107111', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX611DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107112', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX710', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107114', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX811', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107115', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CX310DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107119', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX410DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107120', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX511DHE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107121', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CX410DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107124', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CX510DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107125', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark XM5163', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107140', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark XM1145', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107142', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark XM3150', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107143', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CX825', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.2.71107162', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107162', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark X342N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.3.672622', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark Forms Printer 2580', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.3.952056622', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CS725', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.51.71107157', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CS820', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.51.71107160', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MS823DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.51.71107168', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark C4150', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.51.71107174', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MS421DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.51.71107187', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MS521DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.51.71107188', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MS621DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.51.71107189', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MS622DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.51.71107190', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CX725', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107158', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark XC4150', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107159', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX722ADHE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107169', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CX860', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107170', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX421ADE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107183', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX521ADE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107184', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX622ADE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107185', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CX923DE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107191', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CX522ADE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107212', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CX622ADE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107213', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark CX625ADHE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107337', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Lexmark MX826ADXE', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.641.52.71107342', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Ruijie Networks', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2126g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2628g E', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.106', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S21 Stacking', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3550 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3550 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3550 12sfp Gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S6806', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S6810', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2126s', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2126s Stacking', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2126gl3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S1908plus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S1916plus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S6506', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2126s 08', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2126s 16', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S6806e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S6810e', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2026g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3750 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3750 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2150g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2126', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2126 Stacking', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2026f', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3760 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3760 12sfp Gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S4009', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3526', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3512g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Hcl 12gcs L3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Hcl 24gs L3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2150gl3', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Hcl 48tms 2s S', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750 24gt 12sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750p 24gt 12sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S8606', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S8610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S9610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S9620', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2924', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.47', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3760 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.48', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3760 48v2', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.49', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S4909', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3750e 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.50', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3750e 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.51', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3750e 12sfp Gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.52', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750s 24gt 12sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.53', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2128g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.54', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2927xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.55', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3512gplus', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.56', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S6604', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.57', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S6606', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.58', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S6610', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.59', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3550 12g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750 24sfp 12gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.60', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750 48gt 4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.61', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750s 48gt 4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.62', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2328g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.63', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3250 48', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.64', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2951xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.66', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3750 24 Ub', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.67', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3750 48 Ub', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.68', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Scg5510', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.69', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2052g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.70', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2352g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.71', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S8614', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.72', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5650 24gt 4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.73', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5650 27xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.74', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5650 51xg', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.75', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5450 28gt', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.76', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3760e 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.77', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.98', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3250p 24', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.78', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2928g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.79', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S3550 24g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2952g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.80', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2028g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.81', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2528g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.82', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S2552g', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.83', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750r 48gt 4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.84', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750p 48gt 4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.85', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750r 24gt 4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.86', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750p 24gt 4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.87', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750 24gt 4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.88', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750s 24gt 4sfp', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.89', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750 48gt 4sfp A', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.92', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie S5750 48gt 4sfp Ap', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.93', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nm2x 24esw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.95', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nm2x 16esw', 4, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.1.10.1.96', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R2620', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R2632', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.10', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R1762', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.11', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Rcms', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.12', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Hcl R1762', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.13', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Hcl R2632', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.14', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Hcl R2692', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.15', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Hcl R3642', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.16', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Hcl R3662', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R3740', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nbr2000', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R2624', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nbr300', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nbr1200', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nbr1500', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R2716', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R2724', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R3802', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R3804', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Rsr50 20', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Rsr50 40', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Rsr50 80', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R2690', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Npe50 20', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Rsr10 02', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Rsr20 04', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Vpn120', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Npe80', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Rsr20 24', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nm2 16esw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nm2 24esw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nmx 24esw', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nmx 24esw L2', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R2692', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nmx 24esw 3gel3', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Rsr20 14', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Rsr30 44', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.42', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R2700v2v3', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.43', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R2700v5', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.44', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Npe50 40', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.45', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Rsr20 18', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.46', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R3642', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie R3662', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nbr1000', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Nbr200', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Secvpn100', 5, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.2.1.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Ruijie Wgp500', -1, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.4881.1.3.1.1.1', @v_model_id;

EXEC dbo.METADATA_MANUFACTURER N'Xerox', @v_manufacturer_id OUTPUT;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxProductIdentifiers', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC S20', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC S20 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC S20 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 4 XX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 460', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 460 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 470', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 470 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 420', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 420 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 420 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 420 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 426', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 426 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC S35', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC S35 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC S35 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 432', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 432 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 432 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 432 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 432 STV3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 432 STV4', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 432 STV5', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 430', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 430 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 440', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 440 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 440 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.21.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 440 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.21.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 440 STV3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.21.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230i', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230iST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.22.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230iSTV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.22.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230iSTV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.22.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 4 YY', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 480', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 480 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.23.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 425', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 425 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 425 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.24.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 555', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 555 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.27.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 555 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.27.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 555 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.27.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 STV3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 STV4', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 STV5', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 LP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 LPV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 LPV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 LPV3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 LPV4', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 230 LPV5', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 535', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 535 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.30.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 535 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.30.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 535 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.30.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 545', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 545 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.31.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 545 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.31.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 545 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.31.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 265', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 265 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 265 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 265 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 265 STV3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 265 LP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 265 LPV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 265 LPV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 265 LPV3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 240', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 240 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 240 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 240 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.5.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 240 STV3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.5.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 340', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 340 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 340 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 340 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.6.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 255', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 255 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 255 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 255 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 255 STV3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 255 LP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 255 LPV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 255 LPV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 255 LPV3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 220', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 220 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 220 STV3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.8.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 220 STV4', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.8.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 332', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 332 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 332 STV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.9.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 332 STV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.9.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 2000 Series', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 3000series', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 242 EFI', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 242 EFIv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 242', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 242v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 252 EFI', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 252 EFIv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 252', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 252v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 260 EFI', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 260 EFIv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 260', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 260v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.22.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 242 C', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 242 Cv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 242 S', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 242 Sv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 252 C', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 252 Cv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.25.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 252 S', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 252 Sv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.26.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 260 C', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 260 Cv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.27.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 260 S', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 260 Sv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.28.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 240 Splash', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 240 SPLASHv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 250 Splash', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 250 SPLASHv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint EPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 180 EPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 180 EPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 180 EPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 180 EPSMicr', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 180 EPSMicrV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 EPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S100 EPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S100 EPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S135 Epsmx', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S135 EPSMXV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S155 Epsmx', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S155 EPSMXV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S180 Epsmx', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S180 EPSMXV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S115 EPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S115 EPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S135 EPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S135 EPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S155 EPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S155 EPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S180 EPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S180 EPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S6075', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S6075 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S6090', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S6090 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S100 Epsmx', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S100 EPSMXV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S115 Epsmx', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 2000 S115 EPSMXV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.18.2.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxXerox Phaser Printers', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3yyyFamily', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3450', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3450 D', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3450 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3450 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3100 MFP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3100 MFPv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3100', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3100v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3435', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3435v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3500', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3500b', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3500n', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3300 MFP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3300 MFPc1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3300 MFPc1v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.20.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3010', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3010 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.26.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3010 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.26.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3040', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3040 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.28.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3040 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.28.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3150', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3150b', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3150n', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3428', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3428v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3124', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3124v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3125', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3125v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3250', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3250v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3600', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 3600v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4yyyFamily', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4400', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4400 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4400 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4400 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4400 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4500', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4500 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4500 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4500 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4500 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4510', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4510 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4510 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4510 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 4510 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5yyyFamily', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5500', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5500 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5500 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5500 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5500 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5500 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5550', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5550 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5550 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5550 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5550 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5335', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5335v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6yyyFamily', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6200', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6200 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6200 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6200 DP ', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6200 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6110 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6110 Nv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6115', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6115 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6115 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.18.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6110 MFP3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6110 MFP3v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6100', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6100n', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6110 MFP4', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6110 MFP4v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6180 MFP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6180 Mfpn', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6180 Mfpdn', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.21.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6130', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6130 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6125', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6125 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6280', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6280 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.25.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6280 Nv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.25.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6280 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.25.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6280 DNv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.25.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6280 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.25.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6280 DTv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.25.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6250', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6250 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6250 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6250 DP ', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6250 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6250 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.3.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6700', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6700 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.30.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6700 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.30.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6700 C2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.30.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6700 C2 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.30.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6700 C3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.30.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6700 C3 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.30.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6700 C4', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.30.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6700 C4 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.30.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6015 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6015 BC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.32.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6015 BC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.32.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6500', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6500 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.33.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6500 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.33.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6500 C2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.33.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6500 C2 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.33.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6505', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6505 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.34.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6505 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.34.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6505 C2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.34.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6505 C2 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.34.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6000', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6000 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.35.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6000 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.35.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6015', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6015 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.36.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6015 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.36.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6015 C2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.36.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6015 C2 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.36.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6600', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6600 NC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.37.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6600 NC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.37.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6600 DNC2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.37.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6600 DNC2 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.37.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6300', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6300 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6300 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6300 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6350', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6350 DP ', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6350 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.6.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6350 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.6.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6120', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6120b', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6120n', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.7.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6360', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6360 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6360 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.8.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6360 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.8.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6360 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.8.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6180', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6180 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 6180 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.9.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7yyyFamily', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7300', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7300 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7300 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7300 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7300 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7300 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7400', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7400 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7400 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7400 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7400 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7400 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7400 DXF', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7750', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7750 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7750 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7750 GX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7750 DXF', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.3.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7760', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7760 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7760 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7760 GX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7760 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.4.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7800', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7800 NC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7800 NC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7800 DNC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.6.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7800 DNC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.6.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7800 GXC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.6.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7800 GXC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.6.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7800 DXC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.6.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7800 DXC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.6.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7100', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7100 NC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7100 NC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.7.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7100 DNC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.7.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 7100 DNC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.7.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8400', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8400 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8400 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8400 DP ', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8400 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8400 BD', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8860', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8860v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8860 MFP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8860 MFPv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxP3200 MFP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxP3200 MFPv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8560', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8560v1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8560p', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8560 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8560 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.9.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8560 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.9.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8560 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.9.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 8560 PP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.9.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 9yyyFamily', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxDesktop DocuPrint Printers', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox4517', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox4517 PlusM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox4517 PlusM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N17', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N17 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint C55', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint C55 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint C55 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint C55 M1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint NC60', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint NC60 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.3.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxP1210', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxP1210 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxP1210 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxP3400', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxP3400 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxP3400 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre MFSystems', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC Pro', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P32 C', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P32 CV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P32 CV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P175', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P175 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PC2128', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PC2128 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P35', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P35 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P35 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PC2636', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PC2636 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PC3545', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PC3545 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 265', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 265 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.22.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 275', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 275 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P265', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.24', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P265 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P275', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.25', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P275 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.25.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS265', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS265 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.26.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS275', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS275 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.27.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 7655', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 7655 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.28.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 7665', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 7665 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.29.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P40 C', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P40 CV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P40 CV2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 7675', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 7675 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.36.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P45', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P45 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P45 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P55', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P55 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P55 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P165', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P165 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MF', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MPS45', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MPS45 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MPS55', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MPS55 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MPS165', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MPS165 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M35', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M35 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M35 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MPS175', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MPS175 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MF28', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.23', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MFM28', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS232', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.26', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS232 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.26.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS238', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.27', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS238 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.27.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS245', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.28', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS245 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.28.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS255', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC PS255 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.29.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M45', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M45 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M45 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P232', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P232 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.30.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P238', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P238 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.31.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P245', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P245 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.32.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P255', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC P255 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.33.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 232', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 232 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.34.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 238', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 238 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.35.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 245', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 245 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.36.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 255', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 255 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.37.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M55', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M55 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M55 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5135', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5135 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.40.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5135 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.40.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5135 C1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.40.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5150', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5150 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.41.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5150 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.41.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5150 C1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.41.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M165', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M165 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M175', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC M175 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MPS35', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MPS35 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MF3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5632', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5632 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.35.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5638', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5638 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.37.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5645', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.38', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5645 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.38.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5655', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.39', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5655 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.39.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5665', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.40', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5665 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.40.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5675', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.41', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5675 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.41.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MF4', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5030', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5030 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5030 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.17.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5050', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5050 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5050 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.18.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5687', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 5687 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MF5', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5735', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.29', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5735 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.29.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5735 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.29.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5740', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5740 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.30.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5740 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.30.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5745', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5745 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.31.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5745 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.31.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5755', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5755 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.32.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5755 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.32.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5765', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5765 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.33.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5765 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.33.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5775', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5775 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.34.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5775 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.34.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5790', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5790 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.35.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 5790 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.35.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 6400', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 6400 S', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 6400 Sv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 6400 Sv2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 6400 X', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 6400 Xv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 6400 Xv2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 6400 XF', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 6400 XFv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC 6400 XFv2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MF6', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6605', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.34', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6605 NC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.34.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6605 NC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.34.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6605 DNC2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.34.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 6605 DNC2 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.34.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 3045 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 3045 BC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 3045 BC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.7.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 3045 NI', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 3045 NIC1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WorkCentre 3045 NIC1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.9.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox WC MF7', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxXeroxWideFormat', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera EAProductionSystemFamily', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera 100x120x144x157 EAPSEmbeddedFFPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.17.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera 100x120x144x157 EAPSEmbeddedFFPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.17.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera 200x288x314 Eapps', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera 200x288x314 EAPPSEmbeddedFFPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.18.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera 200x288x314 EAPPSEmbeddedFFPSv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.18.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera MXProductionSystemFamily', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera 100x120x144 MXPSEmbeddedFFPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.19.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera 100x120x144 MXPSEmbeddedFFPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.19.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera 200x288 Mxpps', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera 200x288 MXPPSEmbeddedFFPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.20.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Nuvera 200x288 MXPPSEmbeddedFFPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.20.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9200', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9201', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9201 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9201 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9201 C1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9201 C1 V3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9201 C2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9201 C2 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9201 C2 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.1.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9202', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9202 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9202 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9202 C1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9202 C1 V3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.2.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9202 C2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9202 C2 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9202 C2 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.2.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9203', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9203 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9203 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9203 C1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9203 C1 V3', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.3.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9203 C2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9203 C2 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.3.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9203 C2 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.3.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8x00', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8700', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8700 S', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8700 Sv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8700 X', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8700 Xv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8700 XF', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8700 XFv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8900', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8900 X', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8900 Xv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8900 S', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 8900 Sv1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.2.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9300', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9301', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9301 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9301 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9301 C1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9302', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9302 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9302 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9302 C1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9303', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9303 C1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9303 C1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox ColorQube 9303 C1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxWorkGroup DocuPrint Printers', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint Nnn', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N32', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N32 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N32 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N2025', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N2025 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N2025 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.17.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N2125', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N2125 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N2425', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N2425 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N24', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N24 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N24 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N2825', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N2825 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N3225', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N3225 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N4025', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N4025 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.22.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N4025 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.22.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N40', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N40 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint Ayame35', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.35', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint Ayame35 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.35.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N4525', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.36', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint N4525 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.36.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5400', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.37', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser 5400 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.37.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint NCnn', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint NC70', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint NC70 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint NC80', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint NC80 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.3.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxFXSystems', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.30', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxEPCProductLine', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.31', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxLPMProductLine', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.32', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxDigitalPrintingPressProductLine', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.33', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC ColorSeries50', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC ColorSeries50 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.4.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC ColorSeries50 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.4.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu TechHiColorEPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6135', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6135 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6135 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6135 M1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu SPDFEColor', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.21', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Spteak', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.22', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6180', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6180 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6180 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6180 M1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6100', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6100 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6100 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6100 M1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.4.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6115', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6115 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6115 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6115 M1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.5.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6155', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6155 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6155 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6155 M1 V2', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.6.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6075', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6075 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6075 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.7.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6090', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6090 M1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Docu Tech6090 M1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.8.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'XeroxDedPrintServers', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser PrintServer', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.8.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser EX7750', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.8.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser EX7750 GX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.8.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Phaser EX7750 DXF', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.8.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuPrint NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4050 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4050 NPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4050 NPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 115 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.17', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 115 NPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 115 NPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.17.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 115 NPSMicr', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.17.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 115 NPSMicrV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.17.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 100 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.18', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 100 NPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 100 NPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.18.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 100 NPSMicr', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.18.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 100 NPSMicrV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.18.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 2000 FamilyNPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.19', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 2045 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 2045 NPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.19.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 2060 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.19.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 2060 NPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.19.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 5252 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.19.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 5252 NPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.19.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4090 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4090 NPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4090 NPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DC 6000 FamilyNPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.20', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 6060 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DocuColor 6060 NPSV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.20.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4850 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4850 NPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4850 NPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4890 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4890 NPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4890 NPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4635 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4635 NPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4635 NPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4635 NPSMicr', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 4635 NPSMicrV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.5.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 180 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 180 NPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 180 NPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 180 NPSMicr', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.6.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 180 NPSMicrV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.6.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 96 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 96 NPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 96 NPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.7.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 96 NPSMicr', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.7.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 96 NPSMicrV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.7.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 92cNPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.8', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 92cNPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 92cNPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.8.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 155 NPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.9', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 155 NPSM1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 155 NPSM1 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.9.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 155 NPSMicr', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.9.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox DP 155 NPSMicrV1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.9.9.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 450', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 460', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.4.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1.5', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.27.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.8.1.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.4.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 465', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.3.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 470', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.4.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 475', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.5.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.17.5.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 495', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.18.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre Centre 4110', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.18.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 420 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.19.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 432 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.20.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 440 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.21.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.21.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.21.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 230 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.22.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.22.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.22.1.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 480', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.23.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.23.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.23.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 485', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.23.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.23.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 425 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.24.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre Multi Function System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.27.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 220 230 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.8.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Center 230 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Center 230 LP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.3.2.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Center 265 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Center 265 LP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.4.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Center 240 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.5.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.5.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.5.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 332 340 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 340 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.6.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.6.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 340 LP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.6.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.6.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.6.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 255 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 255 LP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.7.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 332 ST', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.9.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.9.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre 332 LP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.9.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.9.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.1.9.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Color 800 Press', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.17.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docucolor 242', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.17.7.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 4600', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.24.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.24.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 4620', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.25.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 3610', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.30.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 3428', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 3600', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.1.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 4400 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 4400 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 4400 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 4500 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 4510 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 4510 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.2.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 5550 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.2.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 5550 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.3.2.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6200 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6200 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6200  DP ', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6200 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6100 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6100 BD', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6110 MFP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6180 MFP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.21.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6130 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6280 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.25.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6250', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6250 DP ', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6700 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.30.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6500 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.33.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 6505 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.34.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6600 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.37.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6300 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.4.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6360 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6360 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.8.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6360 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.8.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 6180 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.4.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 7300 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 7300 N', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 7300 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 7300 DX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1.4', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 7300 B', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.1.5', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 7750 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 7760 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.4.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 7500 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.5.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 7800 GX', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.5.6.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 8400', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 8860', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 8860 MFP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 3320', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.29.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.29.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 8560 DP ', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 8850 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 8560 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.9.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 8560 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.6.9.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 3330', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.19.7.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint 4512', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.2.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.4.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.19.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.3.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint N17', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint NC60', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.3.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.3.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.3.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 3400', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.2.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre PRO Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.19.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.3.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.4.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.8.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.33.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre PRO', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.20.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.25.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre PRO C3545', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre PRO 265', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.24.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 265', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.26.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7665 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.29.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 4118', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.31.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre PRO 65', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.1.6.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.25', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.3', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.4', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.7', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre M118', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre PRO 123', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.22.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre PRO 238', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.31.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5150', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.32.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.41.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7335', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.40.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.20.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre M20 I', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.2.7.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7235', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.17.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5632 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.35.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.35.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5638 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.37.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5638 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.37.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5645 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.38.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.38.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5655', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.39.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5655 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.39.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5665 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.40.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5675 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.41.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7132', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.8.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7228', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.3.9.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5050', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.18.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7328', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.19.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7345', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.21.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7232', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.22.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5020', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.25.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 3635 MFP', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.27.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 4250', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.34.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 4260', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.35.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Color 550', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.39.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.21.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5222', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5225', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.6.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5687 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.4.9.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7346', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7755', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.19.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7425', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7765 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.20.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7775', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.21.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 3220', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.23.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 3350', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.24.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5735', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.29.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7428', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5745', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.31.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5755 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.32.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5765', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.33.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5775', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.34.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7120', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.36.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7525 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.37.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7535 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.39.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7435', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7545 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.40.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7556 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.41.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 6400 X', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.5.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Color 560', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.5.7.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5845 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.19.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5855 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.20.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5875 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.22.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7830 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.24.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7835', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.25.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Workcentre 7845 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.26.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7855', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.27.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5325', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7220 V1', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.30.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 3325', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.33.2.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.33.2.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 6605 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.34.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 3615', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.35.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5330', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5945', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.41.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5955 V1 Multifunction System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.42.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 5335', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7125', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.6.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 3655 S', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 3655 X', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Color C60', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.24.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Color C70', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.25.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 6515', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.28.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 3345', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.30.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre EC7836', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.31.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre EC7856', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.32.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 6655', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 7970', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Workcentre 4265', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.20.7.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox 6204 Wide Format', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.22.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Wide Format 6279', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.22.1.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Wide Format 6604', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.22.1.8.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Wide Format 6605', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.22.1.9.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Nuvera 120', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.2.5.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Nuvera 288', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.23.7.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Colorqube 9201', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.1.1.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Colorqube 9201', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Colorqube 9202', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Colorqube 9203', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.1.3.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Colorqube 8570 DN', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.2.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Colorqube 8570 DT', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.2.1.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Colorqube 8870', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.2.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Colorqube 8700 X', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Colorqube 8900 X', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.3.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Colorqube 9301', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.1.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.1.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Colorqube 9302', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.2.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox Colorqube 9303', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.24.4.3.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint N24 N32', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint N2025', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.17.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.17.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint N2125', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.18.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.18.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint N24', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint N2825', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.20.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.20.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint N3225', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.21.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.21.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint N4025', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.22.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.22.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint N40', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint N4525', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.2.36.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docuprint NC1235', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Phaser 2135', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.3.3.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Xerox 4112', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.30.2.3.3', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'D110', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.30.2.8.1.2', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.22.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Color C75', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.31.1.2.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versant 80 Press', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.31.1.4.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Primelink C9070', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.31.3.2.1.1', @v_model_id;

EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.31.3.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versalink B405', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.34.1.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versalink C7020', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.34.2.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versalink C7025', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.34.2.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versalink C7030', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.34.2.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versalink C405', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.34.4.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versalink C505', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.34.5.2.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versalink C600', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.34.6.1.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versalink B600', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.34.7.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versalink B605', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.34.7.2.4.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Versalink B610', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.34.7.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink B8045', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.1.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink B8055', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.1.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink B8145', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.1.6.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink B8155', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.1.7.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink B8170', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.1.8.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink C8030', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.2.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink C8035', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.2.2.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink C8045', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.2.3.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink C8055', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.2.4.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink C8070', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.2.5.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink C8135', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.2.7.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink C8145', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.2.8.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Altalink C8155', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.35.2.9.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Document Centre Colorseries 50', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.4.2.1.2', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'Docutech 6180', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.1.1.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'4110 EPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.20.3.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'4112 EPS', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.22.2.1', @v_model_id;

EXEC dbo.METADATA_DISCOVERY_MODEL N'4127 Enterprise Printing System', 3, @v_manufacturer_id, 1, @v_model_id OUTPUT;
EXEC dbo.METADATA_SNMP_IDENTIFIER '1.3.6.1.4.1.253.8.62.1.5.22.4.1', @v_model_id;


EXEC [dbo].[METADATA_COMPONENT_REQUEST_STATUS]	1,	N'InProgress'
EXEC [dbo].[METADATA_COMPONENT_REQUEST_STATUS]	2,	N'Completed'
EXEC [dbo].[METADATA_COMPONENT_REQUEST_STATUS]	3,	N'Downloaded'
EXEC [dbo].[METADATA_COMPONENT_REQUEST_STATUS]	4,	N'Failed'
EXEC [dbo].[METADATA_COMPONENT_REQUEST_STATUS]	5,	N'Deleted'
GO

-- ASM METADATA
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'Device'
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'User'
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'Core/Processor'
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'Networked/Floating'
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'Subscription'
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'Cloud Credits'
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'Usage CPU'
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'Usage user'
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'GPL'
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'CAL'
EXEC [dbo].[METADATA_ASM_LICENSE_TYPE]  N'Freeware'

GO
EXEC [dbo].[METADATA_CURRENCY] 1, 'Colombian Peso', 'COP'
EXEC [dbo].[METADATA_CURRENCY] 2, 'US Dollar', 'USD'
EXEC [dbo].[METADATA_CURRENCY] 3, 'Venezuela Bolivar', 'VEF'
EXEC [dbo].[METADATA_CURRENCY] 4, 'Brazilian Real', 'BRL'
EXEC [dbo].[METADATA_CURRENCY] 5, 'Peru Sol', 'PEN'
EXEC [dbo].[METADATA_CURRENCY] 6, 'Bolivia Bolíviano', 'BOB'
EXEC [dbo].[METADATA_CURRENCY] 7, 'Uruguay Peso', 'UYU'
EXEC [dbo].[METADATA_CURRENCY] 8, 'Paraguay Guarani', 'PYG'
EXEC [dbo].[METADATA_CURRENCY] 9, 'Argentine Peso', 'ARS'
EXEC [dbo].[METADATA_CURRENCY] 10, 'Chilean Peso', 'CLP'
EXEC [dbo].[METADATA_CURRENCY] 11, 'Euro', 'EUR'
EXEC [dbo].[METADATA_CURRENCY] 12, 'Panama Balboa', 'PAB'
EXEC [dbo].[METADATA_CURRENCY] 13, 'Mexico Peso', 'MXN'
EXEC [dbo].[METADATA_CURRENCY] 14, 'Costa Rica Colon', 'CRC'
EXEC [dbo].[METADATA_CURRENCY] 15, 'East Caribbean Dollar', 'XCD'
EXEC [dbo].[METADATA_CURRENCY] 16, 'Barbados Dollar', 'BBD'
EXEC [dbo].[METADATA_CURRENCY] 17, 'Jamaican Dollar', 'JMD'
EXEC [dbo].[METADATA_CURRENCY] 18, 'Cayman Islands Dollar', 'KYD'

GO

EXEC PRC_ASM_CONSOLIDATE_CONTROL 1, 0;
GO

-- APWM METADATA
EXEC [dbo].[METADATA_APWM_PROFILE] 0, 'DESKTOP',	'200', '66', '57', '28'
EXEC [dbo].[METADATA_APWM_PROFILE] 1, 'LAPTOP',	'200', '66', '57', '28'
EXEC [dbo].[METADATA_APWM_PROFILE] 2, 'SERVER',	'80.', '30', '12', '5'
GO

-- APM METADATA
EXEC [dbo].[METADATA_APM_PATCH_TYPE]	1,	N'SecurityPatch'
EXEC [dbo].[METADATA_APM_PATCH_TYPE]	2,	N'SoftwareDistributionAlias'
EXEC [dbo].[METADATA_APM_PATCH_TYPE]	4,	N'SecurityTool'
EXEC [dbo].[METADATA_APM_PATCH_TYPE]	8,	N'NonSecurityPatch'
EXEC [dbo].[METADATA_APM_PATCH_TYPE]	32,	N'CustomAction'
GO
EXEC [dbo].[METADATA_APM_SEVERITY]	0,	N'None'		,	N'None.'
EXEC [dbo].[METADATA_APM_SEVERITY]	1,	N'Critical'	,	N'A vulnerability whose exploitation could allow the propagation of an Internet worm without user action.'
EXEC [dbo].[METADATA_APM_SEVERITY]	2,	N'Important',	N'A vulnerability whose exploitation could result in compromise of the confidentiality, integrity, or availability of users data, or of the integrity or availability of processing resources.'
EXEC [dbo].[METADATA_APM_SEVERITY]	3,	N'Moderate'	,	N'Exploitability is mitigated to a significant degree by factors such as default configuration, auditing, or difficulty of exploitation.'
EXEC [dbo].[METADATA_APM_SEVERITY]	4,	N'Low'		,	N'A vulnerability whose exploitation is extremely difficult, or whose impact is minimal.'
GO
EXEC [dbo].[METADATA_APM_DOWNLOAD_STATUS]	0,	N'WithoutDownload'
EXEC [dbo].[METADATA_APM_DOWNLOAD_STATUS]	1,	N'Programed'
EXEC [dbo].[METADATA_APM_DOWNLOAD_STATUS]	2,	N'Downloading'
EXEC [dbo].[METADATA_APM_DOWNLOAD_STATUS]	3,	N'Downloaded'
EXEC [dbo].[METADATA_APM_DOWNLOAD_STATUS]	4,	N'Error'
EXEC [dbo].[METADATA_APM_DOWNLOAD_STATUS]	5,	N'Reprogrammed'

GO
EXEC [dbo].[METADATA_APM_CATEGORY]	0,	N'Unknown'
EXEC [dbo].[METADATA_APM_CATEGORY]	1,	N'Critical Updates'
EXEC [dbo].[METADATA_APM_CATEGORY]	2,	N'Security Updates'
EXEC [dbo].[METADATA_APM_CATEGORY]	3,	N'Definition Updates'
EXEC [dbo].[METADATA_APM_CATEGORY]	4,	N'Update Rollups'
EXEC [dbo].[METADATA_APM_CATEGORY]	5,	N'Feature Packs'
EXEC [dbo].[METADATA_APM_CATEGORY]	6,	N'Tools'
EXEC [dbo].[METADATA_APM_CATEGORY]	7,	N'Updates'
GO


-- ANM METADATA
									--@id	--@name			--@metrics
EXEC [dbo].[METADATA_ANM_MONITOR_METRIC] 1,	'ProcessorWmi',	'[{"AxisX":"Date","AxiY":"Percentage","Id":1,"Tittle":"ProcessorPercentProcessorTime","Unit":"%","Window":60}]'
EXEC [dbo].[METADATA_ANM_MONITOR_METRIC] 2,	'DiskWmi',		'[{"AxisX":"Date","AxiY":"Percentage","Id":7,"Tittle":"LogicalDiskUsagePercentDisk","Unit":"%","Window":60}]'
EXEC [dbo].[METADATA_ANM_MONITOR_METRIC] 3,	'MemoryWmi',	'[{"AxisX":"Date","AxiY":"Percentage","Id":21,"Tittle":"MemoryPercentUsage","Unit":"%","Window":60}]'
GO


-- REPORTES
DECLARE 
	@root_folder INT,
	@report_folder INT,
	@product_folder INT,
	@appId	INT,
	@date DATETIME


-- Codigo de aplicacion
SET @appId = 32
SET @date = GETDATE()

-- Carpeta raiz
EXEC [METADATA_FOLDER]
	 @folderId = @root_folder OUTPUT,
	 @name = 'ADM',
	 @parentId = NULL,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'ADM',
	 @applicationId = @appId,
	 @order = 0,
	 @isPublic = 1

-- Carpeta de Reportes
EXEC [METADATA_FOLDER] 
	 @folderId = @report_folder OUTPUT,
	 @name = 'Reports',
	 @parentId = @root_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Reports_Description',
	 @applicationId = @appId,
	 @order = 0,
	 @isPublic = 1

-- AAM Folder
EXEC [METADATA_FOLDER] 
	 @folderId = @product_folder OUTPUT,
	 @name = 'Reports_AAM',
	 @parentId = @report_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Reports_AAM_Description',
	 @applicationId = @appId,
	 @order = 0,
	 @isPublic = 1

-- ASM
EXEC [METADATA_FOLDER] 
	 @folderId = @product_folder OUTPUT,
	 @name = 'Reports_ASM',
	 @parentId = @report_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Reports_ASM_Description',
	 @applicationId = @appId,
	 @order = 0,
	 @isPublic = 1

-- ASD
EXEC [METADATA_FOLDER] 
	 @folderId = @product_folder OUTPUT,
	 @name = 'Reports_ASD',
	 @parentId = @report_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Reports_ASD_Description',
	 @applicationId = @appId,
	 @order = 0,
	 @isPublic = 1

-- APM
EXEC [METADATA_FOLDER] 
	 @folderId = @product_folder OUTPUT,
	 @name = 'Reports_APM',
	 @parentId = @report_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Reports_APM_Description',
	 @applicationId = @appId,
	 @order = 0,
	 @isPublic = 1

GO
BEGIN
	DECLARE @folderDiscoveryId INT

	SELECT TOP 1
			@folderDiscoveryId	= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_AAM'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderDiscoveryId,  N'AAM_DEVICE_DISCOVERY', 1,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="23.2.3.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v23.2, Version=23.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report1" DisplayName="Lista de descubrimientos" Bookmark="Report-ADM" Landscape="true" Margins="40, 30, 30, 40.0416679" PaperKind="Legal" PageWidth="1400" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="23.2" DataMember="ListDevice" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Parameters>
    <Item1 Ref="3" Description="Fecha de Inicio" ValueInfo="2017-10-12" Name="Inicio" Type="#Ref-2" Tag="StartDate" />
    <Item2 Ref="4" Description="Fecha Fin" ValueInfo="2018-10-09" Name="fin" Type="#Ref-2" Tag="EndDate" />
  </Parameters>
  <Bands>
    <Item1 Ref="5" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="6" ControlType="DetailBand" Name="Detail" HeightF="25">
      <Controls>
        <Item1 Ref="7" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" SizeF="659.021362,25" LocationFloat="20.6666546,0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="8" ControlType="XRTableRow" Name="tableRow2" Weight="1">
              <Cells>
                <Item1 Ref="9" ControlType="XRTableCell" Name="tableCell4" Weight="1.7160986937923728" Text="Column1">
                  <ExpressionBindings>
                    <Item1 Ref="10" EventName="BeforePrint" PropertyName="Text" Expression="[name]" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="11" ControlType="XRTableCell" Name="tableCell23" Weight="1.6486662893997974" Text="tableCell23" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="12" EventName="BeforePrint" PropertyName="Text" Expression="[ip_list]" />
                  </ExpressionBindings>
                  <StylePriority Ref="13" UseTextAlignment="false" />
                </Item2>
                <Item3 Ref="14" ControlType="XRTableCell" Name="tableCell24" Weight="1.485927748158681" Text="tableCell24" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="15" EventName="BeforePrint" PropertyName="Text" Expression="[discovery_date]" />
                  </ExpressionBindings>
                  <StylePriority Ref="16" UseTextAlignment="false" />
                </Item3>
                <Item4 Ref="17" ControlType="XRTableCell" Name="tableCell3" Weight="1.1899399585742274" Multiline="true" Text="tableCell3" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="18" EventName="BeforePrint" PropertyName="Text" Expression="[discovered_by]" />
                  </ExpressionBindings>
                  <StylePriority Ref="19" UseTextAlignment="false" />
                </Item4>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="20" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="21" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="40.0416679" />
    <Item4 Ref="22" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="110.375">
      <Controls>
        <Item1 Ref="23" ControlType="XRLabel" Name="typeReport" Text="Aranda Device Management" SizeF="974.124451,23.0000038" LocationFloat="20.6666622,41.3333244" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100" Tag_type="System.String" Tag="subtitle">
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="25" ControlType="XRLabel" Name="titleReport" Text="List of discoveries" SizeF="974.124451,31.3333244" LocationFloat="20.6666622,9.999974" Font="Tahoma, 14pt" ForeColor="255,66,89,102" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titleReport">
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item2>
        <Item3 Ref="27" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " SizeF="308.16,80" LocationFloat="1011.84033,0" />
        <Item4 Ref="28" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="57.2916641,22.9999847" LocationFloat="20.6666622,80" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="date">
          <StylePriority Ref="29" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="30" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="229.166687,22.9999847" LocationFloat="77.95833,80" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="31" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="32" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="1011.84033,80" LocationFloat="6.35782853E-05,0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="33" ShapeName="Rectangle" />
          <StylePriority Ref="34" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="35" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.0000153">
      <Controls>
        <Item1 Ref="36" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="1296.87524,24.041687" LocationFloat="13.1250067,0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="recycleMessage">
          <StylePriority Ref="37" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="38" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="1250.41638,35.29167" />
        <Item3 Ref="39" ControlType="XRLine" Name="lineFooter" SizeF="1316.87524,14.6666851" LocationFloat="3.12496829,20.6249866" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="40" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="41" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="1316.87524,21.6666412" LocationFloat="3.12496829,0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="42" ShapeName="Rectangle" />
          <StylePriority Ref="43" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="44" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163,44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="45" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="46" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616,44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="pageFooter">
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="48" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="1100.375,23.0000038" LocationFloat="132.333115,44.14584" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="msjfooter">
          <StylePriority Ref="49" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
    </Item5>
    <Item6 Ref="50" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="35.00002">
      <Controls>
        <Item1 Ref="51" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="659.021362,25" LocationFloat="20.6666546,10.0000181" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="52" ControlType="XRTableRow" Name="tableRow1" Weight="1">
              <Cells>
                <Item1 Ref="53" ControlType="XRTableCell" Name="tableCell1" Weight="1.7160988180040551" Text="Name" Tag_type="System.String" Tag="name" />
                <Item2 Ref="54" ControlType="XRTableCell" Name="tableCell14" Weight="1.6486663216513775" Text="Ip list" Tag_type="System.String" Tag="ipList" />
                <Item3 Ref="55" ControlType="XRTableCell" Name="tableCell15" Weight="1.4859278401528573" Text="Discovery date" Tag_type="System.String" Tag="discoveryDate" />
                <Item4 Ref="56" ControlType="XRTableCell" Name="tableCell2" Weight="1.1899401679956434" Multiline="true" Text="Related conserver" Tag_type="System.String" Tag="RelatedConserver" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="57" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item6>
  </Bands>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v23.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v23.2" Ref="2" Content="System.DateTime" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderSheetId INT

	SELECT TOP 1
			@folderSheetId		= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_AAM'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderSheetId,  N'AAM_DEVICE_SHEET', 3,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="18.2.8.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v18.2, Version=18.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report7" SnapGridSize="10" Bookmark="Report-ADM" ReportUnit="Pixels" Margins="29, 30, 30, 30" PageWidth="816" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="18.2" DataSource="#Ref-0" Dpi="96" Font="Tahoma, 10pt, charSet=0">
  <Parameters>
    <Item1 Ref="4" Description="Dispositivo" LookUpSettings="#Ref-2" ValueInfo="0" Name="device_idx" Type="#Ref-3" Tag="Device" />
  </Parameters>
  <Bands>
    <Item1 Ref="5" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" Dpi="96" />
    <Item2 Ref="6" ControlType="DetailBand" Name="Detail" HeightF="0" Dpi="96" />
    <Item3 Ref="7" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="30" Dpi="96" />
    <Item4 Ref="8" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="84" Dpi="96">
      <Controls>
        <Item1 Ref="9" ControlType="XRPictureBox" Name="pictureBox1" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAKoAAAAyCAYAAADMQ0CsAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAmJSURBVHhe7Zvdcds6EIVvCSkhJaSElJASUkJKcAcuIe7AJfjJzy4hJaQE3/0AHHABLiVakD2MjDNzhsACXELg4eKH1H+vr6+Tk4dnaJycPBpD4+Tk0RgaJyePxtA4OXk0hsbJyaMxNE5OHo2hcYQX4eH5i/F7yU18MkQ66hkaR/gmZIHeGf8aX42/Ssm74O7u7qtxCz9KtXeB+f9pfDJ+K6aJgkhHPUPjCHfj4fmn8U8R6S/jk/GulL4LTCTfja8n+Nf4Lg+L+UWkXON3MU0URDrqGRpHeBYM8VmURNB745diX4SaIy3ivep0wEQiob6UtCdAqJTfl1OuBvM5I+oGIh31DI0j3MTD81fjbyMCRZRfS0mGhJoFSpTN04ErwkQioT4VUwNEZJRY55z5gxDpqGdoHOEK7TyUoT4WwBJlqUd9zvtQoQIrA9SpQ7Slmdv+NkrEROQ0p7XjLyORcjXHNRugjPNXEbXYe791+mPJL0bK/xhV/rMU3wwiHfUMjSNs8PD8w6h5aDz/fHj+ZpRIibhLpJVQF7E/Gi8eOu0m7xEqUZU6f0oesUhIiAYgGPKIT/Ubn5bnPO8HkE8Pqh29XwQM5Jd2Uq68rks98u86l/9oRDrqGRpHmLAWX56HemTx+anAOtLmMr/o4vhYSt8Mu79nhQpKnfRj7IhIyNdFlqUREVFOIpSg6kNmaSJtPc+OgLyEKr+N6Fw5aK4LLM91/5bsTSDSUc/QOMKELKoXYxz92qlAvC2UF10IFeZFVz7vpMhOwW7wJULVsMu5nhIaoiWykq6LMEvrvPSQ2hEkP1F5D7P76Bpd92YWZZGOeobGESZkka5FuG8qsL3o8kJddg/wtY7GAcqN5iZvChUBlDqKlqS3yNCNUDWMp0hnR13Hz3MBNgk1+UiFAVR+glOoI0xYD+sM33umAj7SrsWXy3kI5IsjdXfN2ezm7hGqIlYSWUkn0Z6CO4/oqnT9DZYG1VbSp4SaIm7J3jQiHfUMjSNskCMogoLbkW9fpEXIXqDZV05fRahm1xAOUyS342PJx20vsPK6qCrHRtyWB9WPHVUv9Gv2Xde9BUQ66hkaR5iwjo7sjUqIy+Jg/6JLvqj3UkoyLhMq8z/Soo+CsG4BWfpHsaVzik3bSs1bJstLfI0PYHmAXT70UOBXDwVtwYfaRTlTiv66Fy8oj4hIRz1D4whNNAiL4bkXpQSXxdZODbYWXUwZ8AM5F7bR8DKhbpHhdhXBzHbv6ng2b7AsL/GluWsxJ1geUFb9W9o/HCLnpv6wo4/wnjf1GjbSUc/QOEITDYshBBi/hszl7IdKsMtiScgLJSIwdRBnvunjQmXRo2jV8+TixMqJZmw5AY7rdhvMHvqifinrBcyUQSB69+W7rvsvI9JRz9A4woQlEiK2U9tPy7w0R1z/HUCOuB6DQp04JiId9QyNI6zIwtszvCM+xEo91c3D4xTqp0Cko56hcYQVWahs1CM+DePxggnkaUAruCnUT4FIRz1D4wgT2qE/r37PbUFFgptC/RSIdNQzNI4wIUdPFkzr6JnFJhEvK+wPEKotRFhFs/0D47lzgZWzyFHdm/ti6UiIdNQzNI4wYZmbxkN99Jr0Y4QKtMXDVlQ8DTFYGQJV3RmxrwTrSm251T6NdNQzNI6wYt/bJr/KX9d7X6FuCtDMbCOdrTfxdlhXau+49mmko56hcYQN2leoiHZrq0pz2j1CVRTOuwhjQl1tzAOz+WgKG/+WbfZjiznBleltE1OIVT3B7N5XuDOC3dU5NQqEfjin2Ps21T1ZZ9tqw2Y7XVnvf+XLbOrbAwh1GcoRFUM8r0rbob5HJLhYqAhevtlVWO8WbIDOMUh8iDQSoX8b1NSxAzckekvFa9AkIDtyg7AxtdD7+qgevqI3U9xIX6d/aFQHprkzR6PaKnKtJBQ7qk3U8f7IU0Zd2WAzalke9P59O/1v7tubfrNRdXo+RTrqGRpHmJDFhIDaJ6od6pc/9oEtobYLrmXoz1GY61Dn5MJIsE4B6iCgtI8s6aslo8SQ6pYy39ncAH9T9LVVf0Oo44UgX/6B8NfydSRkRAK8sGknb7L0LQLEB9Bv0KeKUZtUR6SNvp364FsfgEMePCDRpnthx7O/2cAbNv8bJer7SEc9Q+MIE7KAzg31lDPc5+8BtoUK2UEgSq/nqG+AdQpQR/GUq8MlMi8e37G1XZakTn0ALa0I23+LCutDZmnduNp+SzevRC0tIUoAEpO/ftMmO0R+/W+jPb5N6Z7Ykd8nW/3IxdK6ZrL1eWBpf66GeeXP/WbVq78p0lHP0DjChLzZ74f61Vyl1EF42qqCkVCJwkRn0tS5+IMMOseQOqrkfbSgw3vhroQqmImbxQ2qUa7Y601LFQssD7CvHjSz6Wb3QtX1JRoEKOEo4qVrFTv1Rf0WsCUk2aIHgSPtUh1E5/3Lju+t31x9FVN4zUhHPUPjCBvkuamG+lNbVfFHKtiEHIUR9lr0O0HnGJoOtbRuvI5QiwJ1tL+RiNvXrSzlu4WaTaEvCdUP656IRvNDb/NCEvFxqVD9eVv+m4ha3CSU8uSrmMJrRjrqGRpHGCIa6nssgoYIEgFvOLwMdI6h6VBL++Ee+v89qaNTp3I0qB7Rj3Mviqh2rFOGkkZQfUQlalMOJQxQH3hLp2thLKYVrOhSoRLBVWfzpYeV3YhQwXqorx2WoDnqslWVRXtF0DmGqEM1l0IQXgTqaAlVeS/mugtQ8nuFWofmVMFgSflSHUCe9gF8Qz9H1s4Ckdm3nXqaj9Y2kU4VDM4WCrXkFfFrFAeW5iFd+U+FBZb/B4Uq5Ei53qqSUHMaUfOvgIuH+Qh0jiHqUIYv0Cz+LN8LVaJAZKDZfip1tm4awC4B+IcD6Fq+jp9D91QdL0JFXvmGzdBMmvOAs50Sqp9+yH8zTTK+Raj+XNKPkY56hsYR7sZ6q4ooG08LrgTrFLDq0C1YPXW0hMpNVySEpBFTspU6e4WKAHpfwNfR9bUtxNTAizCJzo748gKAyV8pv1iowNJ9WyF5LejeItR+qvUS6ahnaBzhm9HOX5eF1EFhHavNa1iHwkvgfRVTRbFHN9/PG5vzLK/oufJ3DTj/QyOdna8onPxEOuoZGkc4cR1wE40SJJFJUOTkOPSgHAWRjnqGxhFOXA8mRIbJfsiVcA8/+uxFpKOeoXGEE9eHiTIN54U3I1Ah0lHP0Dg5eTSGxsnJozE0Tk4ejaFxcvJoDI2Tk0djaJycPBpD4+Tksfj63/9q9J9udk/loAAAAABJRU5ErkJggg==" SizeF="169.997314,50" LocationFloat="569.055847, 0" Dpi="96" />
        <Item2 Ref="10" ControlType="XRLabel" Name="dateReport" Text="Fecha de creación:" SizeF="108.053162,30" LocationFloat="0, 54" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,102,102,102" Padding="0,0,7,0,96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="date">
          <StylePriority Ref="11" UseFont="false" UseForeColor="false" UsePadding="false" />
        </Item2>
        <Item3 Ref="12" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="315.383484,30" LocationFloat="122.274353, 54" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="0,0,7,0,96">
          <StylePriority Ref="13" UseFont="false" UseForeColor="false" UsePadding="false" />
        </Item3>
        <Item4 Ref="14" ControlType="XRLabel" Name="typeReport" Text="Ficha Tecnica" SizeF="569.053162,24.9999981" LocationFloat="0.00268554688, 25" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,0,161,198" Padding="15,15,0,0,96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="TechnicalSheet">
          <StylePriority Ref="15" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderDashStyle="false" />
        </Item4>
        <Item5 Ref="16" ControlType="XRLabel" Name="titleReport" Text="Hoja de vida dispositivo" SizeF="569.055847,25" LocationFloat="0, 0" Dpi="96" Font="Tahoma, 14pt" ForeColor="255,102,102,102" Padding="15,15,3,0,96" BorderColor="Transparent" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="titleReport">
          <StylePriority Ref="17" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="18" ControlType="PageFooterBand" Name="PageFooter" HeightF="65.08002" Dpi="96">
      <Controls>
        <Item1 Ref="19" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="741.527161,16" LocationFloat="0.4725952, 10" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,102,102,102" BackColor="255,224,224,224" Padding="2,2,0,0,96" Borders="None" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="recycleMessage">
          <StylePriority Ref="20" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="21" ControlType="XRLine" Name="lineFooter" SizeF="741.5274,3.88977432" LocationFloat="0.4725952, 26" Dpi="96" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="22" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item2>
        <Item3 Ref="23" ControlType="XRPageInfo" Name="pageInfoFooter" TextAlignment="BottomLeft" SizeF="52.81479,22.0800018" LocationFloat="61.22516, 43" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,102,102,102" Padding="2,2,0,0,96">
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item3>
        <Item4 Ref="25" ControlType="XRLabel" Name="pagination" Text="Página" TextAlignment="BottomLeft" SizeF="61.2249451,22.079998" LocationFloat="6.10351563E-05, 43" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,102,102,102" Padding="2,2,0,0,96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="page">
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="27" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="541.9999,12.0800056" LocationFloat="114.039917, 53" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,102,102,102" Padding="2,2,0,0,96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="msjfooter">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
        <Item6 Ref="29" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="83.01611,35.1902466" LocationFloat="656.0398, 29.88977" Dpi="96" />
      </Controls>
    </Item5>
    <Item6 Ref="30" ControlType="DetailReportBand" Name="DetailReport" Level="4" FilterString="[size] &lt;&gt; 0" DataMember="memorySlot" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="31" ControlType="DetailBand" Name="Detail1" HeightF="22" Dpi="96">
          <SortFields>
            <Item1 Ref="32" FieldName="bank" />
            <Item2 Ref="33" FieldName="name" />
          </SortFields>
          <Controls>
            <Item1 Ref="34" ControlType="XRTable" Name="table4" TextAlignment="MiddleCenter" SizeF="739.05304,22" LocationFloat="0, 0" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
              <Rows>
                <Item1 Ref="35" ControlType="XRTableRow" Name="tableRow14" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="36" ControlType="XRTableCell" Name="tableCell22" Weight="0.6946781801740447" TextAlignment="MiddleCenter" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="37" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                      <StylePriority Ref="38" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="39" ControlType="XRTableCell" Name="tableCell7" Weight="0.36901184263138864" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="40" Expression="[type]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="41" ControlType="XRTableCell" Name="tableCell4" Weight="0.987000135044173" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="42" Expression="[model]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="43" ControlType="XRTableCell" Name="tableCell32" Weight="0.74024933166278339" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="44" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item4>
                    <Item5 Ref="45" ControlType="XRTableCell" Name="tableCell33" Weight="0.45237256936274578" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="46" Expression="[speed]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item5>
                    <Item6 Ref="47" ControlType="XRTableCell" Name="tableCell9" Weight="0.40257961385694258" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="48" Expression="[size]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item6>
                    <Item7 Ref="49" ControlType="XRTableCell" Name="tableCell34" Weight="0.55289589808176687" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="50" Expression="[serial]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item7>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="51" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="52" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="56" Dpi="96">
          <Controls>
            <Item1 Ref="53" ControlType="XRTable" Name="table3" TextAlignment="MiddleCenter" SizeF="739.05304,24.0000019" LocationFloat="0, 31.5288086" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="54" ControlType="XRTableRow" Name="tableRow12" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="55" ControlType="XRTableCell" Name="tableCell6" Weight="0.66844914698019076" Text="Nombre" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Name" />
                    <Item2 Ref="56" ControlType="XRTableCell" Name="tableCell8" Weight="0.35507938347812057" Text="Tipo" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Type" />
                    <Item3 Ref="57" ControlType="XRTableCell" Name="tableCell11" Weight="0.949734032712134" Text="Modelo" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Model" />
                    <Item4 Ref="58" ControlType="XRTableCell" Name="tableCell10" Weight="0.7122998243755605" Text="Fabricante" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                    <Item5 Ref="59" ControlType="XRTableCell" Name="tableCell18" Weight="0.43529215553132561" Text="Velocidad" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Speed" />
                    <Item6 Ref="60" ControlType="XRTableCell" Name="tableCell19" Weight="0.38737920580190655" Text="Tamaño" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Size" />
                    <Item7 Ref="61" ControlType="XRTableCell" Name="tableCell26" Weight="0.53202069427421028" Text="Serial" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Serial" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="62" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="63" ControlType="XRLabel" Name="label4" Text="Slots de memoria usados" SizeF="196.099991,22.6771641" LocationFloat="0, 8.851654" Dpi="96" ForeColor="255,0,161,198" Padding="2,2,0,0,96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="UsedMemorySlots">
              <StylePriority Ref="64" UseForeColor="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item6>
    <Item7 Ref="65" ControlType="GroupHeaderBand" Name="GroupHeader2" HeightF="160" Dpi="96">
      <Controls>
        <Item1 Ref="66" ControlType="XRTable" Name="table24" TextAlignment="MiddleLeft" SizeF="739.0532,150" LocationFloat="0, 10" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="67" ControlType="XRTableRow" Name="tableRow2" Weight="1" Dpi="96">
              <Cells>
                <Item1 Ref="68" ControlType="XRTableCell" Name="tableCell3" Weight="2" Text="Dispositivo" TextAlignment="MiddleCenter" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Device">
                  <StylePriority Ref="69" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
                </Item1>
              </Cells>
            </Item1>
            <Item2 Ref="70" ControlType="XRTableRow" Name="tableRow38" Weight="1" Dpi="96">
              <Cells>
                <Item1 Ref="71" ControlType="XRTableCell" Name="tableCell107" Weight="0.40186256030138945" Text="Nombre:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="name" />
                <Item2 Ref="72" ControlType="XRTableCell" Name="tableCell108" Weight="1.5981374396986106" Dpi="96">
                  <ExpressionBindings>
                    <Item1 Ref="73" Expression="[device.name]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
              </Cells>
            </Item2>
            <Item3 Ref="74" ControlType="XRTableRow" Name="tableRow39" Weight="1" Dpi="96">
              <Cells>
                <Item1 Ref="75" ControlType="XRTableCell" Name="tableCell109" Weight="0.40186262239335591" Text="Fabricante:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="manufacturer" />
                <Item2 Ref="76" ControlType="XRTableCell" Name="tableCell110" Weight="1.5981373776066441" Dpi="96">
                  <ExpressionBindings>
                    <Item1 Ref="77" Expression="[device.manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
              </Cells>
            </Item3>
            <Item4 Ref="78" ControlType="XRTableRow" Name="tableRow40" Weight="1" Dpi="96">
              <Cells>
                <Item1 Ref="79" ControlType="XRTableCell" Name="tableCell111" Weight="0.40186262239335591" Text="Modelo:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="model" />
                <Item2 Ref="80" ControlType="XRTableCell" Name="tableCell112" Weight="1.5981373776066441" Dpi="96">
                  <ExpressionBindings>
                    <Item1 Ref="81" Expression="[device.model]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
              </Cells>
            </Item4>
            <Item5 Ref="82" ControlType="XRTableRow" Name="tableRow1" Weight="1" Dpi="96">
              <Cells>
                <Item1 Ref="83" ControlType="XRTableCell" Name="tableCell1" Weight="0.40186262239335591" Text="Serial:" Dpi="96" Tag="Serial"/>
                <Item2 Ref="84" ControlType="XRTableCell" Name="tableCell2" Weight="1.5981373776066441" Dpi="96">
                  <ExpressionBindings>
                    <Item1 Ref="85" Expression="[device.serial]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
              </Cells>
            </Item5>
            <Item6 Ref="86" ControlType="XRTableRow" Name="tableRow41" Weight="1" Dpi="96">
              <Cells>
                <Item1 Ref="87" ControlType="XRTableCell" Name="tableCell113" Weight="0.40186262239335591" Text="Tipo de dispositivo:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="DevicesType"/>
                <Item2 Ref="88" ControlType="XRTableCell" Name="tableCell114" Weight="1.5981373776066441" Dpi="96">
                  <ExpressionBindings>
                    <Item1 Ref="89" Expression="[device.type]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
              </Cells>
            </Item6>
          </Rows>
          <StylePriority Ref="90" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item7>
    <Item8 Ref="91" ControlType="DetailReportBand" Name="DetailReport1" Level="2" DataMember="processor" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="92" ControlType="DetailBand" Name="Detail2" HeightF="25" Dpi="96">
          <Controls>
            <Item1 Ref="93" ControlType="XRTable" Name="table7" TextAlignment="TopCenter" SizeF="739.05304,25" LocationFloat="0, 0" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="94" ControlType="XRTableRow" Name="tableRow15" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="95" ControlType="XRTableCell" Name="tableCell37" Weight="0.50053284078163518" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="96" Expression="[socket]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="97" ControlType="XRTableCell" Name="tableCell21" Weight="0.45022774482366612" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="98" Expression="[upgrade]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="99" ControlType="XRTableCell" Name="tableCell38" Weight="1.1729911629124115" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="100" Expression="[model]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="101" ControlType="XRTableCell" Name="tableCell39" Weight="0.74561252559948066" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="102" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item4>
                    <Item5 Ref="103" ControlType="XRTableCell" Name="tableCell40" Weight="0.42880059130032944" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="104" Expression="[speed]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item5>
                    <Item6 Ref="105" ControlType="XRTableCell" Name="tableCell136" Weight="0.29844356682975837" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="106" Expression="[core_count]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item6>
                    <Item7 Ref="107" ControlType="XRTableCell" Name="tableCell41" Weight="0.583654414825926" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="108" Expression="[serial]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item7>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="109" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="110" ControlType="GroupHeaderBand" Name="GroupHeader3" RepeatEveryPage="true" HeightF="57.1259766" Dpi="96">
          <Controls>
            <Item1 Ref="111" ControlType="XRLabel" Name="label5" Text="Procesadores" SizeF="179.625565,22.677166" LocationFloat="0, 9.448853" Dpi="96" ForeColor="255,0,161,198" Padding="2,2,0,0,96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="processors">
              <StylePriority Ref="112" UseForeColor="false" />
            </Item1>
            <Item2 Ref="113" ControlType="XRTable" Name="table5" TextAlignment="MiddleCenter" SizeF="739.053162,25" LocationFloat="0, 32.1259766" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="114" ControlType="XRTableRow" Name="tableRow13" Weight="0.70588227311971319" Dpi="96">
                  <Cells>
                    <Item1 Ref="115" ControlType="XRTableCell" Name="tableCell27" Weight="0.61290439212312375" Text="Socket" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Socket" />
                    <Item2 Ref="116" ControlType="XRTableCell" Name="tableCell28" Weight="0.55130607745028548" Text="Mejora" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Upgrade" />
                    <Item3 Ref="117" ControlType="XRTableCell" Name="tableCell29" Weight="1.4363325532576563" Text="Modelo" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Model" />
                    <Item4 Ref="118" ControlType="XRTableCell" Name="tableCell30" Weight="0.91300572846287176" Text="Fabricante" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                    <Item5 Ref="119" ControlType="XRTableCell" Name="tableCell100" Weight="0.5250681594729365" Text="Velocidad" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Speed" />
                    <Item6 Ref="120" ControlType="XRTableCell" Name="tableCell137" Weight="0.36544574671578778" Text="Núcleos" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Cores" />
                    <Item7 Ref="121" ControlType="XRTableCell" Name="tableCell31" Weight="0.7146880844359601" Text="Serial" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Serial" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="122" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item8>
    <Item9 Ref="123" ControlType="DetailReportBand" Name="DetailReport2" Level="3" DataMember="memory" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="124" ControlType="DetailBand" Name="Detail3" HeightF="115" Dpi="96">
          <Controls>
            <Item1 Ref="125" ControlType="XRTable" Name="table6" TextAlignment="MiddleLeft" SizeF="739.053162,96.0000153" LocationFloat="0, 17" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
              <Rows>
                <Item1 Ref="126" ControlType="XRTableRow" Name="tableRow3" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="127" ControlType="XRTableCell" Name="tableCell5" Weight="7.6875" Text="Memoria" TextAlignment="MiddleCenter" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Memory">
                      <StylePriority Ref="128" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
                    </Item1>
                  </Cells>
                </Item1>
                <Item2 Ref="129" ControlType="XRTableRow" Name="tableRow16" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="130" ControlType="XRTableCell" Name="tableCell23" Weight="1.5446592480844497" Text="Total:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Total" />
                    <Item2 Ref="131" ControlType="XRTableCell" Name="tableCell24" Weight="6.14284075191555" TextAlignment="MiddleLeft" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="132" Expression="[physical]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                      <StylePriority Ref="133" UseTextAlignment="false" />
                    </Item2>
                  </Cells>
                </Item2>
                <Item3 Ref="134" ControlType="XRTableRow" Name="tableRow17" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="135" ControlType="XRTableCell" Name="tableCell25" Weight="1.5446592480844497" Text="Máxima:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Maximum_Female" />
                    <Item2 Ref="136" ControlType="XRTableCell" Name="tableCell35" Weight="6.14284075191555" TextAlignment="MiddleLeft" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="137" Expression="[max_ram]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                      <StylePriority Ref="138" UseTextAlignment="false" />
                    </Item2>
                  </Cells>
                </Item3>
                <Item4 Ref="139" ControlType="XRTableRow" Name="tableRow18" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="140" ControlType="XRTableCell" Name="tableCell36" Weight="1.5446592480844497" Text="Número de slots:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="NumberOfSlots" />
                    <Item2 Ref="141" ControlType="XRTableCell" Name="tableCell42" Weight="6.14284075191555" TextAlignment="MiddleLeft" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="142" Expression="[slot_count]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                      <StylePriority Ref="143" UseTextAlignment="false" />
                    </Item2>
                  </Cells>
                </Item4>
              </Rows>
              <StylePriority Ref="144" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
      </Bands>
    </Item9>
    <Item10 Ref="145" ControlType="DetailReportBand" Name="DetailReport3" Level="0" DataMember="bios" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="146" ControlType="DetailBand" Name="Detail4" HeightF="135" Dpi="96">
          <Controls>
            <Item1 Ref="147" ControlType="XRTable" Name="table8" TextAlignment="MiddleLeft" SizeF="739.055847,125" LocationFloat="0, 10" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="148" ControlType="XRTableRow" Name="tableRow4" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="149" ControlType="XRTableCell" Name="tableCell119" Weight="7.7401574836068958" Text="Bios" TextAlignment="MiddleCenter" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198">
                      <StylePriority Ref="150" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
                    </Item1>
                  </Cells>
                </Item1>
                <Item2 Ref="151" ControlType="XRTableRow" Name="tableRow26" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="152" ControlType="XRTableCell" Name="tableCell57" Weight="1.5552081048077175" Text="Fabricante:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                    <Item2 Ref="153" ControlType="XRTableCell" Name="tableCell58" Weight="6.1849493787991774" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="154" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                  </Cells>
                </Item2>
                <Item3 Ref="155" ControlType="XRTableRow" Name="tableRow27" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="156" ControlType="XRTableCell" Name="tableCell59" Weight="1.5552081048077175" Text="Versión:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Version" />
                    <Item2 Ref="157" ControlType="XRTableCell" Name="tableCell60" Weight="6.1849493787991774" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="158" Expression="[version]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                  </Cells>
                </Item3>
                <Item4 Ref="159" ControlType="XRTableRow" Name="tableRow8" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="160" ControlType="XRTableCell" Name="tableCell118" Weight="1.5552081048077175" Text="Fecha:" Dpi="96" Tag="Date" />
                    <Item2 Ref="161" ControlType="XRTableCell" Name="tableCell120" Weight="6.1849493787991774" TextFormatString="{0:d/MM/yyyy}" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="162" Expression="[date]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                  </Cells>
                </Item4>
                <Item5 Ref="163" ControlType="XRTableRow" Name="tableRow11" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="164" ControlType="XRTableCell" Name="tableCell121" Weight="1.5552081048077175" Text="Tamaño:" Dpi="96" Tag="Size" />
                    <Item2 Ref="165" ControlType="XRTableCell" Name="tableCell122" Weight="6.1849493787991774" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="166" Expression="[rom_size]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                  </Cells>
                </Item5>
              </Rows>
              <StylePriority Ref="167" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
      </Bands>
    </Item10>
    <Item11 Ref="168" ControlType="DetailReportBand" Name="DetailReport4" Level="1" DataMember="boardSlot" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="169" ControlType="DetailBand" Name="Detail5" HeightF="24" Dpi="96">
          <SortFields>
            <Item1 Ref="170" FieldName="type" />
            <Item2 Ref="171" FieldName="name" />
          </SortFields>
          <Controls>
            <Item1 Ref="172" ControlType="XRTable" Name="table10" TextAlignment="MiddleCenter" SizeF="739.053162,24" LocationFloat="3.05175781E-05, 0" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
              <Rows>
                <Item1 Ref="173" ControlType="XRTableRow" Name="tableRow20" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="174" ControlType="XRTableCell" Name="tableCell46" Weight="1.0048346447970422" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="175" Expression="[type]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="176" ControlType="XRTableCell" Name="tableCell47" Weight="1.3826198065205746" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="177" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="178" ControlType="XRTableCell" Name="tableCell48" Weight="0.6064024993923357" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="179" Expression="[usage]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="180" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="181" ControlType="GroupHeaderBand" Name="GroupHeader4" RepeatEveryPage="true" HeightF="56" Dpi="96">
          <Controls>
            <Item1 Ref="182" ControlType="XRLabel" Name="label1" Text="Ranuras de expansión" SizeF="189.848755,20" LocationFloat="0, 10" Dpi="96" ForeColor="255,0,161,198" Padding="2,2,0,0,96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="slots">
              <StylePriority Ref="183" UseForeColor="false" />
            </Item1>
            <Item2 Ref="184" ControlType="XRTable" Name="table9" TextAlignment="MiddleCenter" SizeF="739.053162,25" LocationFloat="0, 30" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="185" ControlType="XRTableRow" Name="tableRow19" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="186" ControlType="XRTableCell" Name="tableCell43" Weight="1.0138406140558329" Text="Tipo" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="name" />
                    <Item2 Ref="187" ControlType="XRTableCell" Name="tableCell44" Weight="1.4066572581317756" Text="Nombre" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="type" />
                    <Item3 Ref="188" ControlType="XRTableCell" Name="tableCell45" Weight="0.61479546752636782" Text="Estado" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="state" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="189" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item11>
    <Item12 Ref="190" ControlType="DetailReportBand" Name="DetailReport5" Level="5" DataMember="physicalDisk" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="191" ControlType="DetailBand" Name="Detail6" HeightF="24" Dpi="96">
          <SortFields>
            <Item1 Ref="192" FieldName="media_type" />
            <Item2 Ref="193" FieldName="model" />
          </SortFields>
          <Controls>
            <Item1 Ref="194" ControlType="XRTable" Name="table12" TextAlignment="TopCenter" SizeF="739.0529,24" LocationFloat="0, 0" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="195" ControlType="XRTableRow" Name="tableRow22" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="196" ControlType="XRTableCell" Name="tableCell116" Weight="0.5" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="197" Expression="[media_type]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="198" ControlType="XRTableCell" Name="tableCell117" Weight="0.42162776553075593" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="199" Expression="[bus_type]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="200" ControlType="XRTableCell" Name="tableCell53" Weight="1.1786664489588357" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="201" Expression="[model]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="202" ControlType="XRTableCell" Name="tableCell54" Weight="0.86730830804089232" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="203" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item4>
                    <Item5 Ref="204" ControlType="XRTableCell" Name="tableCell55" Weight="0.38637981830463969" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="205" Expression="[size]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item5>
                    <Item6 Ref="206" ControlType="XRTableCell" Name="tableCell56" Weight="0.69819010244586" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="207" Expression="[serial]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item6>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="208" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="209" ControlType="GroupHeaderBand" Name="GroupHeader5" GroupUnion="WithFirstDetail" RepeatEveryPage="true" HeightF="56" KeepTogether="true" Dpi="96">
          <Controls>
            <Item1 Ref="210" ControlType="XRTable" Name="table11" TextAlignment="MiddleCenter" SizeF="739.05304,24.0000019" LocationFloat="0, 31.5288086" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="211" ControlType="XRTableRow" Name="tableRow21" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="212" ControlType="XRTableCell" Name="tableCell105" Weight="0.5" Text="Tipo" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Type" />
                    <Item2 Ref="213" ControlType="XRTableCell" Name="tableCell115" Weight="0.42162776234395827" Text="Bus" Dpi="96" />
                    <Item3 Ref="214" ControlType="XRTableCell" Name="tableCell49" Weight="1.1786664935774667" Text="Modelo" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Model" />
                    <Item4 Ref="215" ControlType="XRTableCell" Name="tableCell50" Weight="0.86730846516017723" Text="Fabricante" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                    <Item5 Ref="216" ControlType="XRTableCell" Name="tableCell51" Weight="0.38637979876729578" Text="Tamaño" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Size" />
                    <Item6 Ref="217" ControlType="XRTableCell" Name="tableCell52" Weight="0.69819059053721633" Text="Serial" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Serial" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="218" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="219" ControlType="XRLabel" Name="label2" Text="Almacenamiento" SizeF="137.000015,22.0800018" LocationFloat="0, 9.448822" Dpi="96" ForeColor="255,0,161,198" Padding="2,2,0,0,96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="HardwarephysicalDisks">
              <StylePriority Ref="220" UseForeColor="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item12>
    <Item13 Ref="221" ControlType="DetailReportBand" Name="DetailReport6" Level="6" DataMember="network" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="222" ControlType="DetailBand" Name="Detail7" HeightF="24" Dpi="96">
          <SortFields>
            <Item1 Ref="223" FieldName="type" />
            <Item2 Ref="224" FieldName="name" />
          </SortFields>
          <Controls>
            <Item1 Ref="225" ControlType="XRTable" Name="table2" TextAlignment="MiddleCenter" SizeF="739.0529,24" LocationFloat="0, 0" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
              <Rows>
                <Item1 Ref="226" ControlType="XRTableRow" Name="tableRow42" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="227" ControlType="XRTableCell" Name="tableCell123" Weight="0.59161691795222149" ProcessDuplicatesMode="Merge" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="228" Expression="[type]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="229" ControlType="XRTableCell" Name="tableCell124" Weight="0.857656997581379" ProcessDuplicatesMode="Merge" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="230" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="231" ControlType="XRTableCell" Name="tableCell126" Weight="0.40293288982206493" ProcessDuplicatesMode="Merge" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="232" Expression="[mac]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="233" ControlType="XRTableCell" Name="tableCell130" Weight="0.70247617621357017" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="234" Expression="[ipaddress]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item4>
                    <Item5 Ref="235" ControlType="XRTableCell" Name="tableCell125" Weight="0.43917390129707856" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="236" Expression="[mask]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item5>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="237" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="238" ControlType="GroupHeaderBand" Name="GroupHeader6" GroupUnion="WithFirstDetail" HeightF="56" Dpi="96">
          <Controls>
            <Item1 Ref="239" ControlType="XRTable" Name="table25" TextAlignment="MiddleCenter" SizeF="739.05304,23.9999943" LocationFloat="0, 31.5288086" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
              <Rows>
                <Item1 Ref="240" ControlType="XRTableRow" Name="tableRow43" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="241" ControlType="XRTableCell" Name="tableCell131" Weight="0.59061752502874132" ProcessDuplicatesMode="Merge" Text="Tipo" Dpi="96" ForeColor="White" BackColor="255,0,161,198" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Type">
                      <StylePriority Ref="242" UseForeColor="false" UseBackColor="false" />
                    </Item1>
                    <Item2 Ref="243" ControlType="XRTableCell" Name="tableCell132" Weight="0.8586563905048592" ProcessDuplicatesMode="Merge" Text="Nombre" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Name" />
                    <Item3 Ref="244" ControlType="XRTableCell" Name="tableCell133" Weight="0.40293288982206493" ProcessDuplicatesMode="Merge" Text="MAC" Dpi="96" />
                    <Item4 Ref="245" ControlType="XRTableCell" Name="tableCell134" Weight="0.70247617621357017" Text="Dirección" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Address" />
                    <Item5 Ref="246" ControlType="XRTableCell" Name="tableCell135" Weight="0.434117117566393" Text="Máscara" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Mask" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="247" UseFont="false" UseForeColor="false" UseBackColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="248" ControlType="XRLabel" Name="label3" Text="Red" SizeF="96,22.0800018" LocationFloat="6.10351526E-05, 9.448822" Dpi="96" ForeColor="255,0,161,198" Padding="2,2,0,0,96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="network">
              <StylePriority Ref="249" UseForeColor="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item13>
    <Item14 Ref="250" ControlType="DetailReportBand" Name="DetailReport7" Level="7" DataMember="video" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="251" ControlType="DetailBand" Name="Detail8" HeightF="24" Dpi="96">
          <Controls>
            <Item1 Ref="252" ControlType="XRTable" Name="table14" TextAlignment="MiddleCenter" SizeF="739.055847,23.9999943" LocationFloat="0, 0" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
              <Rows>
                <Item1 Ref="253" ControlType="XRTableRow" Name="tableRow24" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="254" ControlType="XRTableCell" Name="tableCell65" Weight="1" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="255" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="256" ControlType="XRTableCell" Name="tableCell66" Weight="0.86645308999401516" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="257" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="258" ControlType="XRTableCell" Name="tableCell67" Weight="1.050212847034216" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="259" Expression="[chipset]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="260" ControlType="XRTableCell" Name="tableCell139" Weight="0.55576794652384875" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="261" Expression="[memory_size]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item4>
                    <Item5 Ref="262" ControlType="XRTableCell" Name="tableCell68" Weight="0.56350430377402883" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="263" Expression="[dac]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item5>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="264" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="265" ControlType="GroupHeaderBand" Name="GroupHeader7" GroupUnion="WithFirstDetail" HeightF="56" Dpi="96">
          <Controls>
            <Item1 Ref="266" ControlType="XRTable" Name="table13" TextAlignment="MiddleCenter" SizeF="739.055847,24.0000019" LocationFloat="0, 31.5288086" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="267" ControlType="XRTableRow" Name="tableRow23" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="268" ControlType="XRTableCell" Name="tableCell61" Weight="1" Text="Nombre" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Name" />
                    <Item2 Ref="269" ControlType="XRTableCell" Name="tableCell62" Weight="0.86645314547582042" Text="Fabricante" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                    <Item3 Ref="270" ControlType="XRTableCell" Name="tableCell138" Weight="1.050213368427886" Text="Chipset" Dpi="96" />
                    <Item4 Ref="271" ControlType="XRTableCell" Name="tableCell63" Weight="0.5557675665468107" Text="Tamaño" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Size" />
                    <Item5 Ref="272" ControlType="XRTableCell" Name="tableCell64" Weight="0.56350429220757836" Text="DAC" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Dac" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="273" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="274" ControlType="XRRichText" Name="richText1" SerializableRtfString="ewBcAHIAdABmADEAXABhAG4AcwBpAGMAcABnADEAMgA1ADIADQAKAHsADQAKAFwAZgBvAG4AdAB0AGIAbAANAAoAewBcAGYAMAAgAFQAaQBtAGUAcwAgAE4AZQB3ACAAUgBvAG0AYQBuADsAfQANAAoAewBcAGYAMQAgAE0AaQBjAHIAbwBzAG8AZgB0ACAAUwBhAG4AcwAgAFMAZQByAGkAZgA7AH0ADQAKAH0ADQAKAHsADQAKAFwAYwBvAGwAbwByAHQAYgBsAA0ACgA7AA0ACgBcAHIAZQBkADAAXABnAHIAZQBlAG4AMABcAGIAbAB1AGUAMAA7AA0ACgBcAHIAZQBkADAAXABnAHIAZQBlAG4AMABcAGIAbAB1AGUAMgA1ADUAOwANAAoAXAByAGUAZAAwAFwAZwByAGUAZQBuADEANgAwAFwAYgBsAHUAZQAxADkANwA7AA0ACgB9AA0ACgBcAG4AbwB1AGkAYwBvAG0AcABhAHQAXABzAHAAbAB5AHQAdwBuAGkAbgBlAFwAaAB0AG0AYQB1AHQAcwBwAHsAXABwAGEAcgBkAFwAcABsAGEAaQBuAFwAcQBsAHsAXABmADEAXABmAHMAMgAwAFwAYwBmADMAIABWAGkAZABlAG8AfQBcAGYAcwAyADQAXABjAGYAMQBcAHAAYQByAH0ADQAKAH0ADQAKAA==" SizeF="95.99999,22.0799961" LocationFloat="0, 9.448822" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,0,161,198" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="video">
              <StylePriority Ref="275" UseForeColor="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item14>
    <Item15 Ref="276" ControlType="DetailReportBand" Name="DetailReport8" Level="8" DataMember="display" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="277" ControlType="DetailBand" Name="Detail9" HeightF="24" Dpi="96">
          <Controls>
            <Item1 Ref="278" ControlType="XRTable" Name="table16" TextAlignment="MiddleCenter" SizeF="739.055847,23.9999943" LocationFloat="0, 0" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
              <Rows>
                <Item1 Ref="279" ControlType="XRTableRow" Name="tableRow28" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="280" ControlType="XRTableCell" Name="tableCell73" Weight="0.78227898717506994" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="281" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="282" ControlType="XRTableCell" Name="tableCell74" Weight="0.77154568663023126" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="283" Expression="[model]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="284" ControlType="XRTableCell" Name="tableCell75" Weight="0.88177161544303884" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="285" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="286" ControlType="XRTableCell" Name="tableCell142" Weight="0.58305371264962036" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="287" Expression="[serial]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item4>
                    <Item5 Ref="288" ControlType="XRTableCell" Name="tableCell143" Weight="0.60962151620054894" TextFormatString="{0:d/MM/yyyy}" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="289" Expression="[date]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item5>
                    <Item6 Ref="290" ControlType="XRTableCell" Name="tableCell76" Weight="0.33042511234039834" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="291" Expression="[revision_number]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item6>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="292" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="293" ControlType="GroupHeaderBand" Name="GroupHeader8" HeightF="56" Dpi="96">
          <Controls>
            <Item1 Ref="294" ControlType="XRTable" Name="table15" TextAlignment="MiddleCenter" SizeF="739.055847,23.9999943" LocationFloat="0, 31.5288086" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="295" ControlType="XRTableRow" Name="tableRow25" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="296" ControlType="XRTableCell" Name="tableCell69" Weight="0.78593516114237749" Text="Nombre" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Name" />
                    <Item2 Ref="297" ControlType="XRTableCell" Name="tableCell70" Weight="0.77515155599796048" Text="Modelo" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Model" />
                    <Item3 Ref="298" ControlType="XRTableCell" Name="tableCell71" Weight="0.8858929281997685" Text="Fabricante" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                    <Item4 Ref="299" ControlType="XRTableCell" Name="tableCell140" Weight="0.58577897528577427" Text="Serial" Dpi="96" />
                    <Item5 Ref="300" ControlType="XRTableCell" Name="tableCell141" Weight="0.61247090850787056" Text="Fecha" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Date" />
                    <Item6 Ref="301" ControlType="XRTableCell" Name="tableCell72" Weight="0.33196903240667375" Text="Revisión" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Revision" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="302" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="303" ControlType="XRRichText" Name="richText3" SerializableRtfString="ewBcAHIAdABmADEAXABkAGUAZgBmADAAewBcAGYAbwBuAHQAdABiAGwAewBcAGYAMAAgAEMAYQBsAGkAYgByAGkAOwB9AHsAXABmADEAIABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgA7AH0AewBcAGYAMgAgAFQAYQBoAG8AbQBhADsAfQB9AHsAXABjAG8AbABvAHIAdABiAGwAIAA7AFwAcgBlAGQAMABcAGcAcgBlAGUAbgAxADYAMABcAGIAbAB1AGUAMQA5ADcAIAA7AFwAcgBlAGQAMABcAGcAcgBlAGUAbgAwAFwAYgBsAHUAZQAyADUANQAgADsAXAByAGUAZAAwAFwAZwByAGUAZQBuADAAXABiAGwAdQBlADAAIAA7AH0AewBcACoAXABkAGUAZgBjAGgAcAAgAFwAZgAxAFwAZgBzADIANAB9AHsAXABzAHQAeQBsAGUAcwBoAGUAZQB0ACAAewBcAHEAbABcAGYAMQBcAGYAcwAyADQAIABOAG8AcgBtAGEAbAA7AH0AewBcACoAXABjAHMAMQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMQAgAEQAZQBmAGEAdQBsAHQAIABQAGEAcgBhAGcAcgBhAHAAaAAgAEYAbwBuAHQAOwB9AHsAXAAqAFwAYwBzADIAXABzAGIAYQBzAGUAZABvAG4AMQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMQAgAEwAaQBuAGUAIABOAHUAbQBiAGUAcgA7AH0AewBcACoAXABjAHMAMwBcAHUAbABcAGYAMQBcAGYAcwAyADQAXABjAGYAMgAgAEgAeQBwAGUAcgBsAGkAbgBrADsAfQB7AFwAKgBcAHQAcwA0AFwAdABzAHIAbwB3AGQAXABmADEAXABmAHMAMgA0AFwAcQBsAFwAdABzAGMAZQBsAGwAcABhAGQAZABmAGwAMwBcAHQAcwBjAGUAbABsAHAAYQBkAGQAbAAxADAAOABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgBiADMAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAcgAzAFwAdABzAGMAZQBsAGwAcABhAGQAZAByADEAMAA4AFwAdABzAGMAZQBsAGwAcABhAGQAZABmAHQAMwBcAHQAcwB2AGUAcgB0AGEAbAB0AFwAYwBsAHQAeABsAHIAdABiACAATgBvAHIAbQBhAGwAIABUAGEAYgBsAGUAOwB9AHsAXAAqAFwAdABzADUAXAB0AHMAcgBvAHcAZABcAHMAYgBhAHMAZQBkAG8AbgA0AFwAZgAxAFwAZgBzADIANABcAHEAbABcAHQAcgBiAHIAZAByAHQAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAbABcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHIAYgByAGQAcgBiAFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcgBiAHIAZAByAHIAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAaABcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHIAYgByAGQAcgB2AFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgBsADMAXAB0AHMAYwBlAGwAbABwAGEAZABkAGwAMQAwADgAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAcgAzAFwAdABzAGMAZQBsAGwAcABhAGQAZAByADEAMAA4AFwAdABzAHYAZQByAHQAYQBsAHQAXABjAGwAdAB4AGwAcgB0AGIAIABUAGEAYgBsAGUAIABTAGkAbQBwAGwAZQAgADEAOwB9AH0AewBcACoAXABsAGkAcwB0AG8AdgBlAHIAcgBpAGQAZQB0AGEAYgBsAGUAfQBcAG4AbwB1AGkAYwBvAG0AcABhAHQAXABzAHAAbAB5AHQAdwBuAGkAbgBlAFwAaAB0AG0AYQB1AHQAcwBwAFwAcABhAHIAZABcAHAAbABhAGkAbgBcAHEAbAB7AFwAbABhAG4AZwA5ADIAMgA2AFwAbABhAG4AZwBmAGUAOQAyADIANgBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgAFAAYQBuAHQAYQBsAGwAYQB9AFwAZgAxAFwAZgBzADIANABcAGMAZgAzAFwAcABhAHIAfQA=" SizeF="96,22.08" LocationFloat="0, 9.448822" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,0,161,198" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="displays">
              <StylePriority Ref="304" UseForeColor="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item15>
    <Item16 Ref="305" ControlType="DetailReportBand" Name="DetailReport9" Level="9" DataMember="keyboard" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="306" ControlType="DetailBand" Name="Detail10" HeightF="24" Dpi="96">
          <Controls>
            <Item1 Ref="307" ControlType="XRTable" Name="table17" TextAlignment="MiddleLeft" SizeF="739.0557,24" LocationFloat="0, 0" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
              <Rows>
                <Item1 Ref="308" ControlType="XRTableRow" Name="tableRow29" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="309" ControlType="XRTableCell" Name="tableCell77" Weight="0.4480093184645656" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="manufacturer">
                      <ExpressionBindings>
                        <Item1 Ref="310" Expression="[type]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="311" ControlType="XRTableCell" Name="tableCell83" Weight="0.52175591755232476" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="312" Expression="[description]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="313" ControlType="XRTableCell" Name="tableCell81" Weight="0.55032683652688341" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="314" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="315" ControlType="XRTableCell" Name="tableCell84" Weight="0.32622916964450588" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="316" Expression="[language]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item4>
                    <Item5 Ref="317" ControlType="XRTableCell" Name="tableCell150" Weight="0.27940015673597657" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="318" Expression="[country]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item5>
                    <Item6 Ref="319" ControlType="XRTableCell" Name="tableCell78" Weight="0.34496002596959985" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="320" Expression="[layout]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item6>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="321" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="322" ControlType="GroupHeaderBand" Name="GroupHeader9" GroupUnion="WithFirstDetail" HeightF="57" Dpi="96">
          <Controls>
            <Item1 Ref="323" ControlType="XRTable" Name="table26" TextAlignment="MiddleCenter" SizeF="739.055847,23.9999943" LocationFloat="0, 31.5288086" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="324" ControlType="XRTableRow" Name="tableRow44" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="325" ControlType="XRTableCell" Name="tableCell144" Weight="0.72118634925716352" Text="Tipo" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Type" />
                    <Item2 Ref="326" ControlType="XRTableCell" Name="tableCell145" Weight="0.83990036788317446" Text="Nombre" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Name" />
                    <Item3 Ref="327" ControlType="XRTableCell" Name="tableCell146" Weight="0.8858929281997685" Text="Fabricante" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                    <Item4 Ref="328" ControlType="XRTableCell" Name="tableCell147" Weight="0.5251499732493079" Text="Lenguaje" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Language" />
                    <Item5 Ref="329" ControlType="XRTableCell" Name="tableCell148" Weight="0.4497665317260453" Text="País" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Country" />
                    <Item6 Ref="330" ControlType="XRTableCell" Name="tableCell149" Weight="0.55530241122496538" Text="Distribución" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Distribution" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="331" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="332" ControlType="XRRichText" Name="richText4" SerializableRtfString="ewBcAHIAdABmADEAXABkAGUAZgBmADAAewBcAGYAbwBuAHQAdABiAGwAewBcAGYAMAAgAEMAYQBsAGkAYgByAGkAOwB9AHsAXABmADEAIABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgA7AH0AewBcAGYAMgAgAFQAYQBoAG8AbQBhADsAfQB9AHsAXABjAG8AbABvAHIAdABiAGwAIAA7AFwAcgBlAGQAMABcAGcAcgBlAGUAbgAxADYAMABcAGIAbAB1AGUAMQA5ADcAIAA7AFwAcgBlAGQAMABcAGcAcgBlAGUAbgAwAFwAYgBsAHUAZQAyADUANQAgADsAXAByAGUAZAAwAFwAZwByAGUAZQBuADAAXABiAGwAdQBlADAAIAA7AH0AewBcACoAXABkAGUAZgBjAGgAcAAgAFwAZgAxAFwAZgBzADIANAB9AHsAXABzAHQAeQBsAGUAcwBoAGUAZQB0ACAAewBcAHEAbABcAGYAMQBcAGYAcwAyADQAIABOAG8AcgBtAGEAbAA7AH0AewBcACoAXABjAHMAMQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMQAgAEQAZQBmAGEAdQBsAHQAIABQAGEAcgBhAGcAcgBhAHAAaAAgAEYAbwBuAHQAOwB9AHsAXAAqAFwAYwBzADIAXABzAGIAYQBzAGUAZABvAG4AMQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMQAgAEwAaQBuAGUAIABOAHUAbQBiAGUAcgA7AH0AewBcACoAXABjAHMAMwBcAHUAbABcAGYAMQBcAGYAcwAyADQAXABjAGYAMgAgAEgAeQBwAGUAcgBsAGkAbgBrADsAfQB7AFwAKgBcAHQAcwA0AFwAdABzAHIAbwB3AGQAXABmADEAXABmAHMAMgA0AFwAcQBsAFwAdABzAGMAZQBsAGwAcABhAGQAZABmAGwAMwBcAHQAcwBjAGUAbABsAHAAYQBkAGQAbAAxADAAOABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgBiADMAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAcgAzAFwAdABzAGMAZQBsAGwAcABhAGQAZAByADEAMAA4AFwAdABzAGMAZQBsAGwAcABhAGQAZABmAHQAMwBcAHQAcwB2AGUAcgB0AGEAbAB0AFwAYwBsAHQAeABsAHIAdABiACAATgBvAHIAbQBhAGwAIABUAGEAYgBsAGUAOwB9AHsAXAAqAFwAdABzADUAXAB0AHMAcgBvAHcAZABcAHMAYgBhAHMAZQBkAG8AbgA0AFwAZgAxAFwAZgBzADIANABcAHEAbABcAHQAcgBiAHIAZAByAHQAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAbABcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHIAYgByAGQAcgBiAFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcgBiAHIAZAByAHIAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAaABcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHIAYgByAGQAcgB2AFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgBsADMAXAB0AHMAYwBlAGwAbABwAGEAZABkAGwAMQAwADgAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAcgAzAFwAdABzAGMAZQBsAGwAcABhAGQAZAByADEAMAA4AFwAdABzAHYAZQByAHQAYQBsAHQAXABjAGwAdAB4AGwAcgB0AGIAIABUAGEAYgBsAGUAIABTAGkAbQBwAGwAZQAgADEAOwB9AH0AewBcACoAXABsAGkAcwB0AG8AdgBlAHIAcgBpAGQAZQB0AGEAYgBsAGUAfQBcAG4AbwB1AGkAYwBvAG0AcABhAHQAXABzAHAAbAB5AHQAdwBuAGkAbgBlAFwAaAB0AG0AYQB1AHQAcwBwAFwAcABhAHIAZABcAHAAbABhAGkAbgBcAHEAbAB7AFwAbABhAG4AZwA5ADIAMgA2AFwAbABhAG4AZwBmAGUAOQAyADIANgBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgACAAfQB7AFwAbABhAG4AZwA5ADIAMgA2AFwAbABhAG4AZwBmAGUAOQAyADIANgBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgAFQAZQBjAGwAYQBkAG8AfQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMwBcAHAAYQByAH0A" SizeF="95.99999,22.08" LocationFloat="0, 9.448822" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,0,161,198" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="keyBoard">
              <StylePriority Ref="333" UseForeColor="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item16>
    <Item17 Ref="334" ControlType="DetailReportBand" Name="DetailReport10" Level="10" DataMember="printer" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="335" ControlType="DetailBand" Name="Detail11" HeightF="24" Dpi="96">
          <Controls>
            <Item1 Ref="336" ControlType="XRTable" Name="table19" TextAlignment="MiddleCenter" SizeF="739.0559,24" LocationFloat="0, 0" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="337" ControlType="XRTableRow" Name="tableRow33" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="338" ControlType="XRTableCell" Name="tableCell86" Weight="0.6340391399215638" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="339" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="340" ControlType="XRTableCell" Name="tableCell151" Weight="0.5597696807340834" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="341" Expression="[description]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="342" ControlType="XRTableCell" Name="tableCell87" Weight="0.55942210146556859" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="343" Expression="[driver]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="344" ControlType="XRTableCell" Name="tableCell88" Weight="0.55416803562330308" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="345" Expression="[port]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item4>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="346" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="347" ControlType="GroupHeaderBand" Name="GroupHeader10" GroupUnion="WithFirstDetail" RepeatEveryPage="true" HeightF="56" Dpi="96">
          <Controls>
            <Item1 Ref="348" ControlType="XRRichText" Name="richText5" SerializableRtfString="ewBcAHIAdABmADEAXABkAGUAZgBmADAAewBcAGYAbwBuAHQAdABiAGwAewBcAGYAMAAgAEMAYQBsAGkAYgByAGkAOwB9AHsAXABmADEAIABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgA7AH0AewBcAGYAMgAgAFQAYQBoAG8AbQBhADsAfQB9AHsAXABjAG8AbABvAHIAdABiAGwAIAA7AFwAcgBlAGQAMABcAGcAcgBlAGUAbgAxADYAMABcAGIAbAB1AGUAMQA5ADcAIAA7AFwAcgBlAGQAMABcAGcAcgBlAGUAbgAwAFwAYgBsAHUAZQAyADUANQAgADsAXAByAGUAZAAwAFwAZwByAGUAZQBuADAAXABiAGwAdQBlADAAIAA7AH0AewBcACoAXABkAGUAZgBjAGgAcAAgAFwAZgAxAFwAZgBzADIANAB9AHsAXABzAHQAeQBsAGUAcwBoAGUAZQB0ACAAewBcAHEAbABcAGYAMQBcAGYAcwAyADQAIABOAG8AcgBtAGEAbAA7AH0AewBcACoAXABjAHMAMQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMQAgAEQAZQBmAGEAdQBsAHQAIABQAGEAcgBhAGcAcgBhAHAAaAAgAEYAbwBuAHQAOwB9AHsAXAAqAFwAYwBzADIAXABzAGIAYQBzAGUAZABvAG4AMQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMQAgAEwAaQBuAGUAIABOAHUAbQBiAGUAcgA7AH0AewBcACoAXABjAHMAMwBcAHUAbABcAGYAMQBcAGYAcwAyADQAXABjAGYAMgAgAEgAeQBwAGUAcgBsAGkAbgBrADsAfQB7AFwAKgBcAHQAcwA0AFwAdABzAHIAbwB3AGQAXABmADEAXABmAHMAMgA0AFwAcQBsAFwAdABzAGMAZQBsAGwAcABhAGQAZABmAGwAMwBcAHQAcwBjAGUAbABsAHAAYQBkAGQAbAAxADAAOABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgBiADMAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAcgAzAFwAdABzAGMAZQBsAGwAcABhAGQAZAByADEAMAA4AFwAdABzAGMAZQBsAGwAcABhAGQAZABmAHQAMwBcAHQAcwB2AGUAcgB0AGEAbAB0AFwAYwBsAHQAeABsAHIAdABiACAATgBvAHIAbQBhAGwAIABUAGEAYgBsAGUAOwB9AHsAXAAqAFwAdABzADUAXAB0AHMAcgBvAHcAZABcAHMAYgBhAHMAZQBkAG8AbgA0AFwAZgAxAFwAZgBzADIANABcAHEAbABcAHQAcgBiAHIAZAByAHQAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAbABcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHIAYgByAGQAcgBiAFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcgBiAHIAZAByAHIAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAaABcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHIAYgByAGQAcgB2AFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgBsADMAXAB0AHMAYwBlAGwAbABwAGEAZABkAGwAMQAwADgAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAcgAzAFwAdABzAGMAZQBsAGwAcABhAGQAZAByADEAMAA4AFwAdABzAHYAZQByAHQAYQBsAHQAXABjAGwAdAB4AGwAcgB0AGIAIABUAGEAYgBsAGUAIABTAGkAbQBwAGwAZQAgADEAOwB9AH0AewBcACoAXABsAGkAcwB0AG8AdgBlAHIAcgBpAGQAZQB0AGEAYgBsAGUAfQBcAG4AbwB1AGkAYwBvAG0AcABhAHQAXABzAHAAbAB5AHQAdwBuAGkAbgBlAFwAaAB0AG0AYQB1AHQAcwBwAFwAcABhAHIAZABcAHAAbABhAGkAbgBcAHEAbAB7AFwAbABhAG4AZwA5ADIAMgA2AFwAbABhAG4AZwBmAGUAOQAyADIANgBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgACAAfQB7AFwAbABhAG4AZwA5ADIAMgA2AFwAbABhAG4AZwBmAGUAOQAyADIANgBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgAEkAbQBwAHIAZQBzAG8AcgBhAHMAfQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMwBcAHAAYQByAH0A" SizeF="96,22.0800018" LocationFloat="0, 9.448822" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,0,161,198" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="printers">
              <StylePriority Ref="349" UseForeColor="false" />
            </Item1>
            <Item2 Ref="350" ControlType="XRTable" Name="table18" TextAlignment="MiddleCenter" SizeF="739.055664,23.9999943" LocationFloat="6.10351563E-05, 31.5288086" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="351" ControlType="XRTableRow" Name="tableRow32" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="352" ControlType="XRTableCell" Name="tableCell79" Weight="0.78997853209539737" Text="Nombre" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Name" />
                    <Item2 Ref="353" ControlType="XRTableCell" Name="tableCell82" Weight="0.73033105891184924" Text="Descripcion" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Description" />
                    <Item3 Ref="354" ControlType="XRTableCell" Name="tableCell80" Weight="0.70907585394413752" Text="Controlador" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Driver" />
                    <Item4 Ref="355" ControlType="XRTableCell" Name="tableCell85" Weight="0.70907585394413752" Text="Puerto" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Port" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="356" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item17>
    <Item18 Ref="357" ControlType="DetailReportBand" Name="DetailReport11" Level="11" DataMember="driver" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="358" ControlType="DetailBand" Name="Detail12" HeightF="24" Dpi="96">
          <SortFields>
            <Item1 Ref="359" FieldName="type" />
            <Item2 Ref="360" FieldName="name" />
          </SortFields>
          <Controls>
            <Item1 Ref="361" ControlType="XRTable" Name="table21" TextAlignment="MiddleLeft" SizeF="739.052734,24" LocationFloat="0, 0" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="362" ControlType="XRTableRow" Name="tableRow35" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="363" ControlType="XRTableCell" Name="tableCell93" Weight="0.79904217048554782" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="364" Expression="[type]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="365" ControlType="XRTableCell" Name="tableCell94" Weight="2.1022350428059262" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="366" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="367" ControlType="XRTableCell" Name="tableCell95" Weight="1.1422482275618269" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="368" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="369" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="370" ControlType="GroupHeaderBand" Name="GroupHeader11" GroupUnion="WithFirstDetail" RepeatEveryPage="true" HeightF="56" Dpi="96">
          <Controls>
            <Item1 Ref="371" ControlType="XRTable" Name="table20" TextAlignment="MiddleCenter" SizeF="739.052856,23.9999962" LocationFloat="6.10351563E-05, 31.5288086" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="372" ControlType="XRTableRow" Name="tableRow34" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="373" ControlType="XRTableCell" Name="tableCell89" Weight="0.79754238470561289" Text="Tipo" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Type" />
                    <Item2 Ref="374" ControlType="XRTableCell" Name="tableCell90" Weight="2.1191232647751961" Text="Nombre" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Name" />
                    <Item3 Ref="375" ControlType="XRTableCell" Name="tableCell91" Weight="1.1192725999178921" Text="Fabricante" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="376" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="377" ControlType="XRRichText" Name="richText6" SerializableRtfString="ewBcAHIAdABmADEAXABhAG4AcwBpAGMAcABnADEAMgA1ADIADQAKAHsADQAKAFwAZgBvAG4AdAB0AGIAbAANAAoAewBcAGYAMAAgAFQAaQBtAGUAcwAgAE4AZQB3ACAAUgBvAG0AYQBuADsAfQANAAoAewBcAGYAMQAgAFQAYQBoAG8AbQBhADsAfQANAAoAfQANAAoAewANAAoAXABjAG8AbABvAHIAdABiAGwADQAKADsADQAKAFwAcgBlAGQAMABcAGcAcgBlAGUAbgAwAFwAYgBsAHUAZQAwADsADQAKAFwAcgBlAGQAMABcAGcAcgBlAGUAbgAwAFwAYgBsAHUAZQAyADUANQA7AA0ACgBcAHIAZQBkADAAXABnAHIAZQBlAG4AMQA2ADAAXABiAGwAdQBlADEAOQA3ADsADQAKAH0ADQAKAFwAbgBvAHUAaQBjAG8AbQBwAGEAdABcAHMAcABsAHkAdAB3AG4AaQBuAGUAXABoAHQAbQBhAHUAdABzAHAAewBcAHAAYQByAGQAXABwAGwAYQBpAG4AXABxAGwAewBcAGwAYQBuAGcAOQAyADIANgBcAGwAYQBuAGcAZgBlADkAMgAyADYAXABmADEAXABmAHMAMgAwAFwAYwBmADMAIABDAG8AbgB0AHIAbwBsAGEAZABvAHIAZQBzAH0AXABmAHMAMgA0AFwAYwBmADEAXABwAGEAcgB9AA0ACgB9AA0ACgA=" SizeF="96,22.0800056" LocationFloat="0, 9.448822" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,0,161,198" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="drivers">
              <StylePriority Ref="378" UseForeColor="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item18>
    <Item19 Ref="379" ControlType="DetailReportBand" Name="DetailReport12" Level="13" DataMember="software" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="380" ControlType="DetailBand" Name="Detail13" HeightF="32" Dpi="96">
          <SortFields>
            <Item1 Ref="381" FieldName="type" />
            <Item2 Ref="382" FieldName="name" />
          </SortFields>
          <Controls>
            <Item1 Ref="383" ControlType="XRTable" Name="table23" TextAlignment="MiddleLeft" SizeF="738.580139,24" LocationFloat="0.4725952, 0" Dpi="96" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
              <Rows>
                <Item1 Ref="384" ControlType="XRTableRow" Name="tableRow31" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="385" ControlType="XRTableCell" Name="tableCell102" Weight="0.62355268134747965" Text="Column1" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="386" Expression="[type]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="387" ControlType="XRTableCell" Name="tableCell103" Weight="2.2433722994366709" Text="Column2" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="388" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="389" ControlType="XRTableCell" Name="tableCell104" Weight="0.73178263138955524" Text="Column3" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="390" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="391" ControlType="XRTableCell" Name="tableCell106" Weight="0.51259546666749034" Text="tableCell106" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="392" Expression="[date]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item4>
                    <Item5 Ref="393" ControlType="XRTableCell" Name="tableCell152" Weight="0.66767463315424658" Text="tableCell152" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="394" Expression="[version]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item5>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="395" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="396" ControlType="GroupHeaderBand" Name="GroupHeader12" GroupUnion="WithFirstDetail" RepeatEveryPage="true" HeightF="56" Dpi="96">
          <Controls>
            <Item1 Ref="397" ControlType="XRTable" Name="table22" TextAlignment="MiddleCenter" SizeF="739.052734,24.0000057" LocationFloat="0, 31.6799316" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="398" ControlType="XRTableRow" Name="tableRow36" Weight="0.53333333333333333" Dpi="96">
                  <Cells>
                    <Item1 Ref="399" ControlType="XRTableCell" Name="tableCell97" Weight="0.6503921053810483" Text="Tipo" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Type" />
                    <Item2 Ref="400" ControlType="XRTableCell" Name="tableCell98" Weight="2.3285151237466115" Text="Nombre" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Name" />
                    <Item3 Ref="401" ControlType="XRTableCell" Name="tableCell92" Weight="0.75955608642045458" Text="Fabricante" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                    <Item4 Ref="402" ControlType="XRTableCell" Name="tableCell99" Weight="0.53205006778401676" Text="Fecha" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Date" />
                    <Item5 Ref="403" ControlType="XRTableCell" Name="tableCell101" Weight="0.69301473576113271" Text="Versión" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Version" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="404" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="405" ControlType="XRRichText" Name="richText7" SerializableRtfString="ewBcAHIAdABmADEAXABkAGUAZgBmADAAewBcAGYAbwBuAHQAdABiAGwAewBcAGYAMAAgAEMAYQBsAGkAYgByAGkAOwB9AHsAXABmADEAIABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgA7AH0AewBcAGYAMgAgAFQAYQBoAG8AbQBhADsAfQB9AHsAXABjAG8AbABvAHIAdABiAGwAIAA7AFwAcgBlAGQAMABcAGcAcgBlAGUAbgAxADYAMABcAGIAbAB1AGUAMQA5ADcAIAA7AFwAcgBlAGQAMABcAGcAcgBlAGUAbgAwAFwAYgBsAHUAZQAyADUANQAgADsAXAByAGUAZAAwAFwAZwByAGUAZQBuADAAXABiAGwAdQBlADAAIAA7AH0AewBcACoAXABkAGUAZgBjAGgAcAAgAFwAZgAxAFwAZgBzADIANAB9AHsAXABzAHQAeQBsAGUAcwBoAGUAZQB0ACAAewBcAHEAbABcAGYAMQBcAGYAcwAyADQAIABOAG8AcgBtAGEAbAA7AH0AewBcACoAXABjAHMAMQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMQAgAEQAZQBmAGEAdQBsAHQAIABQAGEAcgBhAGcAcgBhAHAAaAAgAEYAbwBuAHQAOwB9AHsAXAAqAFwAYwBzADIAXABzAGIAYQBzAGUAZABvAG4AMQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMQAgAEwAaQBuAGUAIABOAHUAbQBiAGUAcgA7AH0AewBcACoAXABjAHMAMwBcAHUAbABcAGYAMQBcAGYAcwAyADQAXABjAGYAMgAgAEgAeQBwAGUAcgBsAGkAbgBrADsAfQB7AFwAKgBcAHQAcwA0AFwAdABzAHIAbwB3AGQAXABmADEAXABmAHMAMgA0AFwAcQBsAFwAdABzAGMAZQBsAGwAcABhAGQAZABmAGwAMwBcAHQAcwBjAGUAbABsAHAAYQBkAGQAbAAxADAAOABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgBiADMAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAcgAzAFwAdABzAGMAZQBsAGwAcABhAGQAZAByADEAMAA4AFwAdABzAGMAZQBsAGwAcABhAGQAZABmAHQAMwBcAHQAcwB2AGUAcgB0AGEAbAB0AFwAYwBsAHQAeABsAHIAdABiACAATgBvAHIAbQBhAGwAIABUAGEAYgBsAGUAOwB9AHsAXAAqAFwAdABzADUAXAB0AHMAcgBvAHcAZABcAHMAYgBhAHMAZQBkAG8AbgA0AFwAZgAxAFwAZgBzADIANABcAHEAbABcAHQAcgBiAHIAZAByAHQAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAbABcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHIAYgByAGQAcgBiAFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcgBiAHIAZAByAHIAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAaABcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHIAYgByAGQAcgB2AFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgBsADMAXAB0AHMAYwBlAGwAbABwAGEAZABkAGwAMQAwADgAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAcgAzAFwAdABzAGMAZQBsAGwAcABhAGQAZAByADEAMAA4AFwAdABzAHYAZQByAHQAYQBsAHQAXABjAGwAdAB4AGwAcgB0AGIAIABUAGEAYgBsAGUAIABTAGkAbQBwAGwAZQAgADEAOwB9AH0AewBcACoAXABsAGkAcwB0AG8AdgBlAHIAcgBpAGQAZQB0AGEAYgBsAGUAfQBcAG4AbwB1AGkAYwBvAG0AcABhAHQAXABzAHAAbAB5AHQAdwBuAGkAbgBlAFwAaAB0AG0AYQB1AHQAcwBwAFwAcABhAHIAZABcAHAAbABhAGkAbgBcAHEAbAB7AFwAbABhAG4AZwA5ADIAMgA2AFwAbABhAG4AZwBmAGUAOQAyADIANgBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgACAAfQB7AFwAbABhAG4AZwA5ADIAMgA2AFwAbABhAG4AZwBmAGUAOQAyADIANgBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgAFMAbwBmAHQAdwBhAHIAZQB9AFwAZgAxAFwAZgBzADIANABcAGMAZgAzAFwAcABhAHIAfQA=" SizeF="96,22.0800018" LocationFloat="0, 9.600006" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,0,161,198" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="software">
              <StylePriority Ref="406" UseForeColor="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item19>
    <Item20 Ref="407" ControlType="DetailReportBand" Name="DetailReport13" Level="14" Dpi="96">
      <Bands>
        <Item1 Ref="408" ControlType="DetailBand" Name="Detail14" HeightF="413.496063" Dpi="96">
          <Controls>
            <Item1 Ref="409" ControlType="XRRichText" Name="richText8" SerializableRtfString=" " SizeF="739.0559,404.047333" LocationFloat="0, 9.44873" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102">
              <StylePriority Ref="410" UseForeColor="false" />
            </Item1>
          </Controls>
        </Item1>
      </Bands>
    </Item20>
    <Item21 Ref="411" ControlType="DetailReportBand" Name="DetailReport15" Level="12" DataMember="os" Dpi="96">
      <Bands>
        <Item1 Ref="412" ControlType="DetailBand" Name="Detail16" HeightF="153.000046" Dpi="96">
          <Controls>
            <Item1 Ref="413" ControlType="XRTable" Name="table1" TextAlignment="MiddleLeft" SizeF="739.052734,144.000046" LocationFloat="0, 9" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="255,102,102,102" Padding="5,0,0,0,96" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
              <Rows>
                <Item1 Ref="414" ControlType="XRTableRow" Name="tableRow30" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="415" ControlType="XRTableCell" Name="tableCell96" Weight="2" Text="Sistema operativo" TextAlignment="MiddleCenter" Dpi="96" Font="Tahoma, 10pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Operating system">
                      <StylePriority Ref="416" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
                    </Item1>
                  </Cells>
                </Item1>
                <Item2 Ref="417" ControlType="XRTableRow" Name="tableRow5" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="418" ControlType="XRTableCell" Name="tableCell12" Weight="0.40186266408088689" Multiline="true" Text="Nombre:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Name:" />
                    <Item2 Ref="419" ControlType="XRTableCell" Name="tableCell13" Weight="1.5981373359191131" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="420" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                  </Cells>
                </Item2>
                <Item3 Ref="421" ControlType="XRTableRow" Name="tableRow6" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="422" ControlType="XRTableCell" Name="tableCell14" Weight="0.40186269092851251" Text="Version:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Version" />
                    <Item2 Ref="423" ControlType="XRTableCell" Name="tableCell15" Weight="1.5981373090714874" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="424" Expression="[version]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                  </Cells>
                </Item3>
                <Item4 Ref="425" ControlType="XRTableRow" Name="tableRow7" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="426" ControlType="XRTableCell" Name="tableCell16" Weight="0.40186268503803041" Text="Fabricante:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                    <Item2 Ref="427" ControlType="XRTableCell" Name="tableCell17" Weight="1.5981373149619695" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="428" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                  </Cells>
                </Item4>
                <Item5 Ref="429" ControlType="XRTableRow" Name="tableRow9" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="430" ControlType="XRTableCell" Name="tableCell20" Weight="0.401862671777103" Text="Service pack:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Service Pack:" />
                    <Item2 Ref="431" ControlType="XRTableCell" Name="tableCell127" Weight="1.598137328222897" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="432" Expression="[extra]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                  </Cells>
                </Item5>
                <Item6 Ref="433" ControlType="XRTableRow" Name="tableRow10" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="434" ControlType="XRTableCell" Name="tableCell128" Weight="0.40186266408088689" Text="Idioma:" Dpi="96" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Language:" />
                    <Item2 Ref="435" ControlType="XRTableCell" Name="tableCell129" Weight="1.5981373359191133" Dpi="96">
                      <ExpressionBindings>
                        <Item1 Ref="436" Expression="[language]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                  </Cells>
                </Item6>
              </Rows>
              <StylePriority Ref="437" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
      </Bands>
    </Item21>
  </Bands>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v18.2" Name="reportDataSource" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v18.2.Core" DataSource="#Ref-0" DataMember="device_id" ValueMember="id" DisplayMember="name" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v18.2" Ref="3" Content="System.Int32" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderDeviceId INT

	SELECT TOP 1
			@folderDeviceId		= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_AAM'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderDeviceId,  N'AAM_DEVICE_LIST', 2,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report2" DisplayName="Lista de dispositivos" Bookmark="Report-ADM" Landscape="true" Margins="40, 30, 30, 41" PaperKind="Custom" PageWidth="3600" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="Devices" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Parameters>
    <Item1 Ref="4" Description="Tipo" ValueSourceSettings="#Ref-2" ValueInfo="0" Name="Type" Type="#Ref-3" Tag="Type" />
    <Item2 Ref="7" Description="Estado" ValueSourceSettings="#Ref-5" Name="Status" Tag="Status" />
    <Item3 Ref="10" Description="Fabricante" ValueSourceSettings="#Ref-8" ValueInfo="0" Name="Manu" Type="#Ref-9" Tag="Manufacturer" />
    <Item4 Ref="12" Description="Sistema operativo" ValueSourceSettings="#Ref-11" ValueInfo="0" Name="Os" Type="#Ref-9" Tag="OperatingSystem" />
    <Item5 Ref="14" Description="Agente" ValueSourceSettings="#Ref-13" Name="Agent" Tag="Agent" />
  </Parameters>
  <Bands>
    <Item1 Ref="15" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="16" ControlType="DetailBand" Name="Detail" HeightF="25">
      <Controls>
        <Item1 Ref="17" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" SizeF="3496.04224,25" LocationFloat="20.6666546,0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="18" ControlType="XRTableRow" Name="tableRow2" Weight="1">
              <Cells>
                <Item1 Ref="19" ControlType="XRTableCell" Name="tableCell18" Weight="1.6763874816894533" Text="Column1">
                  <ExpressionBindings>
                    <Item1 Ref="20" EventName="BeforePrint" PropertyName="Text" Expression="[NAME]" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="21" ControlType="XRTableCell" Name="tableCell20" Weight="1.5301181030273434" Text="Column3">
                  <ExpressionBindings>
                    <Item1 Ref="22" EventName="BeforePrint" PropertyName="Text" Expression="[Type]" />
                  </ExpressionBindings>
                </Item2>
                <Item3 Ref="23" ControlType="XRTableCell" Name="tableCell21" Weight="1.9798171997070309" Text="tableCell21">
                  <ExpressionBindings>
                    <Item1 Ref="24" EventName="BeforePrint" PropertyName="Text" Expression="[domain]" />
                  </ExpressionBindings>
                </Item3>
                <Item4 Ref="25" ControlType="XRTableCell" Name="tableCell22" Weight="1.5188107433552331" Text="tableCell22">
                  <ExpressionBindings>
                    <Item1 Ref="26" EventName="BeforePrint" PropertyName="Text" Expression="[creation_date]" />
                  </ExpressionBindings>
                </Item4>
                <Item5 Ref="27" ControlType="XRTableCell" Name="tableCell23" Weight="2.5036885714683192" Text="tableCell23">
                  <ExpressionBindings>
                    <Item1 Ref="28" EventName="BeforePrint" PropertyName="Text" Expression="[user_name]" />
                  </ExpressionBindings>
                </Item5>
                <Item6 Ref="29" ControlType="XRTableCell" Name="tableCell24" Weight="1.5083345984957712" Text="tableCell24">
                  <ExpressionBindings>
                    <Item1 Ref="30" EventName="BeforePrint" PropertyName="Text" Expression="[operating_system]" />
                  </ExpressionBindings>
                </Item6>
                <Item7 Ref="31" ControlType="XRTableCell" Name="tableCell25" Weight="1.5083345984957712" Text="tableCell25">
                  <ExpressionBindings>
                    <Item1 Ref="32" EventName="BeforePrint" PropertyName="Text" Expression="[operating_system_version]" />
                  </ExpressionBindings>
                </Item7>
                <Item8 Ref="33" ControlType="XRTableCell" Name="tableCell26" Weight="1.5083345984957712" Text="tableCell26">
                  <ExpressionBindings>
                    <Item1 Ref="34" EventName="BeforePrint" PropertyName="Text" Expression="[responsible_user_name]" />
                  </ExpressionBindings>
                </Item8>
                <Item9 Ref="35" ControlType="XRTableCell" Name="tableCell27" Weight="3.0275595269160611" Text="tableCell27">
                  <ExpressionBindings>
                    <Item1 Ref="36" EventName="BeforePrint" PropertyName="Text" Expression="[responsible_user_email]" />
                  </ExpressionBindings>
                </Item9>
                <Item10 Ref="37" ControlType="XRTableCell" Name="tableCell28" Weight="1.518811763242506" Text="tableCell28">
                  <ExpressionBindings>
                    <Item1 Ref="38" EventName="BeforePrint" PropertyName="Text" Expression="[manufacturer]" />
                  </ExpressionBindings>
                </Item10>
                <Item11 Ref="39" ControlType="XRTableCell" Name="tableCell29" Weight="1.518811763242506" Text="tableCell29">
                  <ExpressionBindings>
                    <Item1 Ref="40" EventName="BeforePrint" PropertyName="Text" Expression="[agent_version]" />
                  </ExpressionBindings>
                </Item11>
                <Item12 Ref="41" ControlType="XRTableCell" Name="tableCell30" Weight="4.3405771220710321" Text="tableCell30">
                  <ExpressionBindings>
                    <Item1 Ref="42" EventName="BeforePrint" PropertyName="Text" Expression="[serial]" />
                  </ExpressionBindings>
                </Item12>
                <Item13 Ref="43" ControlType="XRTableCell" Name="tableCell31" Weight="1.9517744182379158" Text="tableCell31">
                  <ExpressionBindings>
                    <Item1 Ref="44" EventName="BeforePrint" PropertyName="Text" Expression="[model]" />
                  </ExpressionBindings>
                </Item13>
                <Item14 Ref="45" ControlType="XRTableCell" Name="tableCell32" Weight="3.660779062122133" Text="tableCell32">
                  <ExpressionBindings>
                    <Item1 Ref="46" EventName="BeforePrint" PropertyName="Text" Expression="[PROSESADOR]" />
                  </ExpressionBindings>
                </Item14>
                <Item15 Ref="47" ControlType="XRTableCell" Name="tableCell33" Weight="2.0950862152186014" Text="tableCell33">
                  <ExpressionBindings>
                    <Item1 Ref="48" EventName="BeforePrint" PropertyName="Text" Expression="[communication_address]" />
                  </ExpressionBindings>
                </Item15>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="49" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="50" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="40.7083473" />
    <Item4 Ref="51" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="110.375">
      <Controls>
        <Item1 Ref="52" ControlType="XRLabel" Name="typeReport" Text="Aranda Device Management" SizeF="395.526642,23.0000038" LocationFloat="20.6665668,41.3333244" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100" Tag_type="System.String" Tag="subtitle">
          <StylePriority Ref="53" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="54" ControlType="XRLabel" Name="titleReport" Text="Listado general de dispositivos" SizeF="395.526642,31.3333244" LocationFloat="20.6665668,10.0000067" Font="Tahoma, 14pt" ForeColor="255,66,89,102" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titleReport">
          <StylePriority Ref="55" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item2>
        <Item3 Ref="56" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " SizeF="317.0151,79.99999" LocationFloat="3199.69385,0" />
        <Item4 Ref="57" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="57.2916641,22.9999847" LocationFloat="20.6665668,79.9999847" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="date">
          <StylePriority Ref="58" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="59" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="229.166687,22.9999847" LocationFloat="77.95817,79.9999847" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="60" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="61" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="3199.69263,80" LocationFloat="0,0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="62" ShapeName="Rectangle" />
          <StylePriority Ref="63" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="64" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.0000153">
      <Controls>
        <Item1 Ref="65" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="3450.4165,35.29167" />
        <Item2 Ref="66" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="3493.58325,24.041687" LocationFloat="13.125102,0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="recycleMessage">
          <StylePriority Ref="67" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="68" ControlType="XRLine" Name="lineFooter" SizeF="3513.583,14.6666851" LocationFloat="3.125,20.6249866" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="69" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="70" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="3513.583,21.6666412" LocationFloat="3.125,0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="71" ShapeName="Rectangle" />
          <StylePriority Ref="72" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="73" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163,44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="74" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="75" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616,44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="pageFooter">
          <StylePriority Ref="76" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="77" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="3310.4165,23.0000038" LocationFloat="118.791451,44.14584" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="msjfooter">
          <StylePriority Ref="78" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
    </Item5>
    <Item6 Ref="79" ControlType="GroupHeaderBand" Name="GroupHeader2" RepeatEveryPage="true" SnapLinePadding="0,0,0,0,100" HeightF="94.7916641" KeepTogether="true">
      <Controls>
        <Item1 Ref="80" ControlType="XRLabel" Name="label2" Text="label2" SizeF="100,23" LocationFloat="153.999969,22.87499" Padding="2,2,0,0,100">
          <Summary Ref="81" Running="Report" />
          <ExpressionBindings>
            <Item1 Ref="82" EventName="BeforePrint" PropertyName="Text" Expression="sumCount([Id])" />
          </ExpressionBindings>
        </Item1>
        <Item2 Ref="83" ControlType="XRLabel" Name="label1" Text="Total Dispositivos:" SizeF="133.333344,23.0000019" LocationFloat="20.6666317,22.87499" Padding="2,2,0,0,100" Tag="TotalDevices" />
        <Item3 Ref="84" ControlType="XRTable" Name="table3" TextAlignment="MiddleCenter" SizeF="3496.04175,25" LocationFloat="20.6666546,69.7916641" Font="Tahoma, 9pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="85" ControlType="XRTableRow" Name="tableRow3" Weight="1">
              <Cells>
                <Item1 Ref="86" ControlType="XRTableCell" Name="tableCell34" Weight="1.6763874816894533" Text="Nombre" Tag_type="System.String" Tag="name" />
                <Item2 Ref="87" ControlType="XRTableCell" Name="tableCell36" Weight="1.5301181030273434" Text="Tipo" Tag_type="System.String" Tag="type" />
                <Item3 Ref="88" ControlType="XRTableCell" Name="tableCell37" Weight="1.9798171997070309" Text="Dominio" Tag_type="System.String" Tag="domain" />
                <Item4 Ref="89" ControlType="XRTableCell" Name="tableCell38" Weight="1.5188107433552331" Text="Fecha de creación" Tag_type="System.String" Tag="CreationDate" />
                <Item5 Ref="90" ControlType="XRTableCell" Name="tableCell39" Weight="2.5036885714683192" Text="Usuario" Tag_type="System.String" Tag="user" />
                <Item6 Ref="91" ControlType="XRTableCell" Name="tableCell40" Weight="1.5083345984957712" Text="Sistema operativo" Tag_type="System.String" Tag="OS" />
                <Item7 Ref="92" ControlType="XRTableCell" Name="tableCell41" Weight="1.5083345984957712" Text="Versión" Tag_type="System.String" Tag="version" />
                <Item8 Ref="93" ControlType="XRTableCell" Name="tableCell42" Weight="1.5083345984957712" Text="Usuario responsable" Tag_type="System.String" Tag="ResponsibleUser" />
                <Item9 Ref="94" ControlType="XRTableCell" Name="tableCell43" Weight="3.0275595269160611" Text="Email usuario responsable" Tag_type="System.String" Tag="ResponsibleUserEmail" />
                <Item10 Ref="95" ControlType="XRTableCell" Name="tableCell44" Weight="1.518811763242506" Text="Fabricante" Tag_type="System.String" Tag="manufacturer" />
                <Item11 Ref="96" ControlType="XRTableCell" Name="tableCell45" Weight="1.518811763242506" Text="Versión agente" Tag_type="System.String" Tag="agentVersion" />
                <Item12 Ref="97" ControlType="XRTableCell" Name="tableCell46" Weight="4.4259829111722118" Text="Serial" Tag_type="System.String" Tag="serial" />
                <Item13 Ref="98" ControlType="XRTableCell" Name="tableCell47" Weight="1.8663686622695639" Text="Modelo" Tag_type="System.String" Tag="model" />
                <Item14 Ref="99" ControlType="XRTableCell" Name="tableCell48" Weight="3.6607799888939478" Text="Procesador" Tag_type="System.String" Tag="processor" />
                <Item15 Ref="100" ControlType="XRTableCell" Name="tableCell49" Weight="2.0950852553139585" Text="IP" Tag_type="System.String" Tag="ipList" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="101" UseFont="false" UseForeColor="false" UseBackColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item3>
      </Controls>
    </Item6>
  </Bands>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="Type" ValueMember="type_id" DisplayMember="type_Name" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="3" Content="System.Int32" Type="System.Type" />
    <Item3 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="Status" ValueMember="status" DisplayMember="status" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="Manufacturer" ValueMember="manufacturer_ID" DisplayMember="manufacturer" />
    <Item5 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="9" Content="System.Int16" Type="System.Type" />
    <Item6 Ref="11" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="Os" ValueMember="OS_ID" DisplayMember="OS" />
    <Item7 Ref="13" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="Agent" ValueMember="agent_version" DisplayMember="agent_version" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderOperatingId INT

	SELECT TOP 1
			@folderOperatingId	= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_AAM'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderOperatingId,  N'AAM_OPERATING_SYSTEM_SUMMARY', 4,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="17.2.7.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v17.2, Version=17.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report14" SnapGridSize="25" Bookmark="Report-ADM" ReportUnit="TenthsOfAMillimeter" Margins="80, 80, 75, 100" PageWidth="2159" PageHeight="2794" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="17.2" DataMember="os" DataSource="#Ref-0" Dpi="254" Font="Tahoma, 9.75pt, charSet=0">
  <Bands>
    <Item1 Ref="2" ControlType="TopMarginBand" Name="TopMargin" HeightF="75" Dpi="254" />
    <Item2 Ref="3" ControlType="DetailBand" Name="Detail" HeightF="63.5" Dpi="254">
      <SortFields>
        <Item1 Ref="4" FieldName="os.name" />
      </SortFields>
      <Controls>
        <Item1 Ref="5" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" SizeF="1998.99976,63.5" LocationFloat="0, 0" Dpi="254" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="13,0,0,0,254" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="6" ControlType="XRTableRow" Name="tableRow2" Weight="1" Dpi="254">
              <Cells>
                <Item1 Ref="7" ControlType="XRTableCell" Name="tableCell4" Weight="1.5161856145471191" ProcessDuplicatesMode="Merge" Text="Column1" Dpi="254">
                  <ExpressionBindings>
                    <Item1 Ref="8" Expression="[os_name]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="9" ControlType="XRTableCell" Name="tableCell5" Weight="1.4838142022558079" Text="Column2" Dpi="254">
                  <ExpressionBindings>
                    <Item1 Ref="10" Expression="[device_name]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="11" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="12" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="100" Dpi="254" />
    <Item4 Ref="13" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="267.5469" Dpi="254">
      <Controls>
        <Item1 Ref="14" ControlType="XRLabel" Name="typeReport" Text="Sistema operativo" SizeF="1177.39587,58.4200058" LocationFloat="52.49332, 104.986641" Dpi="254" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="5,5,0,0,254" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="OperatingSystem">
          <StylePriority Ref="15" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="16" ControlType="XRLabel" Name="titleReport" Text="Dispositivos por sistema operativo" SizeF="1177.39587,79.58665" LocationFloat="52.49332, 25.4000168" Dpi="254" Font="Tahoma, 14pt" ForeColor="255,5,85,85" Padding="5,5,0,0,254" BorderColor="Transparent" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="titleReport">
          <StylePriority Ref="17" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item2>
        <Item3 Ref="18" ControlType="XRPictureBox" Name="imageLogo" Image=" " SizeF="632.4597,203.199982" LocationFloat="1270.00012, 0" Dpi="254" />
        <Item4 Ref="19" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="145.520844,58.4199677" LocationFloat="52.49332, 203.2" Dpi="254" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="5,5,0,0,254" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="date">
          <StylePriority Ref="20" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="21" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="582.0833,58.4199677" LocationFloat="198.01416, 203.2" Dpi="254" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="5,5,0,0,254">
          <StylePriority Ref="22" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="23" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="1270,203.2" LocationFloat="8.074442E-05, 0" Dpi="254" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="24" ShapeName="Rectangle" />
          <StylePriority Ref="25" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="26" ControlType="PageFooterBand" Name="PageFooter" Expanded="false" HeightF="193" Dpi="254">
      <Controls>
        <Item1 Ref="27" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="1851.65991,61.0658836" LocationFloat="33.3374557, 0" Dpi="254" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="5,5,0,0,254" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="recycleMessage">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="29" ControlType="XRPictureBox" Name="logoFooter" Image="iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="202.14209,103.399193" LocationFloat="1708.25525, 89.64085" Dpi="254" />
        <Item3 Ref="30" ControlType="XRLine" Name="lineFooter" LineWidth="3" SizeF="1902.45972,37.25338" LocationFloat="7.93743944, 52.3874664" Dpi="254" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="31" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="32" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="1902.45972,55.033268" LocationFloat="7.93743944, 0" Dpi="254" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="33" ShapeName="Rectangle" />
          <StylePriority Ref="34" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="35" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="84.66666,58.42" LocationFloat="177.270752, 112.130432" Dpi="254" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="5,5,0,0,254">
          <StylePriority Ref="36" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="37" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="169.333328,58.42" LocationFloat="7.93743944, 112.130432" Dpi="254" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="5,5,0,0,254" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="pageFooter">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="39" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="1354.66675,58.4200134" LocationFloat="301.7303, 112.130432" Dpi="254" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="5,5,0,0,254" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="msjfooter">
          <StylePriority Ref="40" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
    </Item5>
    <Item6 Ref="41" ControlType="GroupHeaderBand" Name="GroupHeader1" Expanded="false" HeightF="1247.07" Dpi="254">
      <Controls>
        <Item1 Ref="42" ControlType="XRTable" Name="table1" TextAlignment="MiddleLeft" SizeF="1999,63.5000229" LocationFloat="0, 1183.57" Dpi="254" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="13,0,0,0,254" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="43" ControlType="XRTableRow" Name="tableRow30" Weight="1" Dpi="254">
              <Cells>
                <Item1 Ref="44" ControlType="XRTableCell" Name="tableCell96" Weight="1.0107904619040107" Text="Sistema operativo" TextAlignment="MiddleCenter" Dpi="254" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" Tag="OperatingSystem">
                  <StylePriority Ref="45" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
                </Item1>
                <Item2 Ref="46" ControlType="XRTableCell" Name="tableCell1" Weight="0.98920990449019108" Text="Dispositivo" TextAlignment="MiddleCenter" Dpi="254" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" Tag="Device">
                  <StylePriority Ref="47" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
                </Item2>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="49" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" SizeF="1998.99988,1002.77118" LocationFloat="0, 110.243073" Dpi="254" BorderColor="Black" Borders="None">
          <Chart Ref="50" AutoLayout="true" PaletteName="Office">
            <DataContainer Ref="51" DataMember="graph">
              <SeriesSerializable>
                <Item1 Ref="52" Name="Series 4" ArgumentDataMember="name" ValueDataMembersSerializable="total" LegendTextPattern="{A}">
                  <View Ref="53" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="54" TypeNameSerializable="DoughnutSeriesLabel" TextColor="Black" BackColor="Transparent" Font="Tahoma, 9pt" TextPattern="{A}&#xA;{VP:0%}&#xA;">
                    <Border Ref="55" Visibility="False" />
                  </Label>
                  <TopNOptions Ref="56" Enabled="true" />
                </Item1>
              </SeriesSerializable>
              <SeriesTemplate Ref="57" LegendName="Default Legend">
                <View Ref="58" TypeNameSerializable="DoughnutSeriesView" />
              </SeriesTemplate>
            </DataContainer>
            <Legend Ref="59" Visibility="False" TextVisible="false" AlignmentHorizontal="Center" AlignmentVertical="BottomOutside" Direction="LeftToRight" Name="Default Legend" />
            <OptionsPrint Ref="60" ImageFormat="Metafile" />
            <XtraPaletteRepository>
              <Item1 Ref="61" Name="Paleta 1" ScaleMode="Repeat">
                <Palette>
                  <Item1 Ref="62" Color="255,0,161,198" Color2="255,0,161,198" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item2>
        <Item3 Ref="63" ControlType="XRLabel" Name="label1" Text="Top 5 por sistema operativo" SizeF="534.035156,58.4200058" LocationFloat="735.9649, 13.229167" Dpi="254" ForeColor="255,0,161,198" Padding="5,5,0,0,254" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Top5ByOperatingSystem">
          <StylePriority Ref="64" UseForeColor="false" />
        </Item3>
        <Item4 Ref="65" ControlType="XRLabel" Name="label2" Text="Top 10 de dispositivos" SizeF="1999,40" LocationFloat="825, 1113.57" Dpi="254" ForeColor="255,0,161,198" Padding="5,5,0,0,254" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Top10Devices">
          <StylePriority Ref="66" UseForeColor="false" />
        </Item4>
      </Controls>
    </Item6>
  </Bands>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v17.2" Name="reportDataSource" Base64="PFNxbERhdGFTb3VyY2U+PE5hbWU+cmVwb3J0RGF0YVNvdXJjZTwvTmFtZT48Q29ubmVjdGlvbiBOYW1lPSJsb2NhbGhvc3RfQURNX1BSVUVCQVNfOS42LjE5MDUuMzEwMl9Db25uZWN0aW9uIiBQcm92aWRlcktleT0iTVNTcWxTZXJ2ZXIiPjxQYXJhbWV0ZXJzPjxQYXJhbWV0ZXIgTmFtZT0ic2VydmVyIiBWYWx1ZT0iQkctRC1TRVJWRVIxNVxURVNUIiAvPjxQYXJhbWV0ZXIgTmFtZT0iZGF0YWJhc2UiIFZhbHVlPSJBRE1fUFJVRUJBU185LjYuMTkwNS4zMTAyIiAvPjxQYXJhbWV0ZXIgTmFtZT0idXNlSW50ZWdyYXRlZFNlY3VyaXR5IiBWYWx1ZT0iRmFsc2UiIC8+PFBhcmFtZXRlciBOYW1lPSJyZWFkIG9ubHkiIFZhbHVlPSIxIiAvPjxQYXJhbWV0ZXIgTmFtZT0iZ2VuZXJhdGVDb25uZWN0aW9uSGVscGVyIiBWYWx1ZT0iZmFsc2UiIC8+PC9QYXJhbWV0ZXJzPjwvQ29ubmVjdGlvbj48UXVlcnkgVHlwZT0iQ3VzdG9tU3FsUXVlcnkiIE5hbWU9Im9zIj48U3FsPlNFTEVDVCB0b3AgMTAJCglPUy5uYW1lIEFTIG9zX25hbWUsIAoJQUFNX0RFVklDRS5uYW1lIEFTIGRldmljZV9uYW1lCkZST00gQUFNX0RFVklDRV9TT0ZUV0FSRQpKT0lOICgKCVNFTEVDVCAKCQlBQU1fU09GVFdBUkVfVkVSU0lPTi5pZCwKCQlBQU1fU09GVFdBUkVfUFJPRFVDVC5uYW1lLAoJCUFBTV9TT0ZUV0FSRV9WRVJTSU9OLnZlcnNpb24KCUZST00gQUFNX1NPRlRXQVJFX1BST0RVQ1QKCUpPSU4gQUFNX1NPRlRXQVJFX1ZFUlNJT04gT04gQUFNX1NPRlRXQVJFX1ZFUlNJT04ucHJvZHVjdF9pZCA9IEFBTV9TT0ZUV0FSRV9QUk9EVUNULmlkIAoJV0hFUkUgQUFNX1NPRlRXQVJFX1BST0RVQ1QudHlwZSA9IDAKKSBBUyBPUyBPTiBPUy5pZCA9IEFBTV9ERVZJQ0VfU09GVFdBUkUuc29mdHdhcmVfaWQKSk9JTiBBQU1fREVWSUNFIE9OIEFBTV9ERVZJQ0UuaWQgPSBBQU1fREVWSUNFX1NPRlRXQVJFLmRldmljZV9pZApXSEVSRSBBQU1fREVWSUNFLltpc19hY3RpdmVdID0gMQpPUkRFUiBCWSAxIERFU0M8L1NxbD48L1F1ZXJ5PjxRdWVyeSBUeXBlPSJDdXN0b21TcWxRdWVyeSIgTmFtZT0iZ3JhcGgiPjxTcWw+U0VMRUNUIHRvcCAxMAkKCU9TLm5hbWUgLAoJY291bnQgKCopIEFTIHRvdGFsCkZST00gQUFNX0RFVklDRV9TT0ZUV0FSRQpKT0lOICgKCVNFTEVDVCAKCQlBQU1fU09GVFdBUkVfVkVSU0lPTi5pZCwKCQlBQU1fU09GVFdBUkVfUFJPRFVDVC5uYW1lLAoJCUFBTV9TT0ZUV0FSRV9WRVJTSU9OLnZlcnNpb24KCUZST00gQUFNX1NPRlRXQVJFX1BST0RVQ1QKCUpPSU4gQUFNX1NPRlRXQVJFX1ZFUlNJT04gT04gQUFNX1NPRlRXQVJFX1ZFUlNJT04ucHJvZHVjdF9pZCA9IEFBTV9TT0ZUV0FSRV9QUk9EVUNULmlkIAoJV0hFUkUgQUFNX1NPRlRXQVJFX1BST0RVQ1QudHlwZSA9IDAKKSBBUyBPUyBPTiBPUy5pZCA9IEFBTV9ERVZJQ0VfU09GVFdBUkUuc29mdHdhcmVfaWQKSk9JTiBBQU1fREVWSUNFIE9OIEFBTV9ERVZJQ0UuaWQgPSBBQU1fREVWSUNFX1NPRlRXQVJFLmRldmljZV9pZApXSEVSRSBBQU1fREVWSUNFLltpc19hY3RpdmVdID0gMQpHUk9VUCBCWSBPUy5uYW1lIApPUkRFUiBCWSAyIGRlc2M8L1NxbD48L1F1ZXJ5PjxSZXN1bHRTY2hlbWE+PERhdGFTZXQgTmFtZT0icmVwb3J0RGF0YVNvdXJjZSI+PFZpZXcgTmFtZT0ib3MiPjxGaWVsZCBOYW1lPSJvc19uYW1lIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9ImRldmljZV9uYW1lIiBUeXBlPSJTdHJpbmciIC8+PC9WaWV3PjxWaWV3IE5hbWU9ImdyYXBoIj48RmllbGQgTmFtZT0ibmFtZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJ0b3RhbCIgVHlwZT0iSW50MzIiIC8+PC9WaWV3PjwvRGF0YVNldD48L1Jlc3VsdFNjaGVtYT48Q29ubmVjdGlvbk9wdGlvbnMgQ2xvc2VDb25uZWN0aW9uPSJ0cnVlIiAvPjwvU3FsRGF0YVNvdXJjZT4=" />
  </ComponentStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderExecutionId INT

	SELECT TOP 1
			@folderExecutionId			= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_ASD'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderExecutionId,  N'ASD_EXECUTION_DETAIL', 2,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="17.2.7.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v17.2, Version=17.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report4" DisplayName="Detalles de ejecucion" Bookmark="Report-ADM" Landscape="true" Margins="40, 30, 30, 41" PageWidth="1100" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="17.2" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Parameters>
    <Item1 Ref="3" Description="Name" Name="proyectName" Tag="Name" />
    <Item2 Ref="6" Description="proyect" LookUpSettings="#Ref-4" ValueInfo="0" Name="proyect" Type="#Ref-5" Tag="Project" />
    <Item3 Ref="8" Description="Fecha Inicio" ValueInfo="2017-01-01" Name="FechaIn" Type="#Ref-7" Tag="StartDate" />
    <Item4 Ref="9" Description="Fecha Fin" ValueInfo="2018-01-01" Name="FechFin" Type="#Ref-7" Tag="EndDate" />
  </Parameters>
  <Bands>
    <Item1 Ref="10" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="11" ControlType="DetailBand" Name="Detail" HeightF="0" />
    <Item3 Ref="12" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="41" />
    <Item4 Ref="13" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="110.375">
      <Controls>
        <Item1 Ref="14" ControlType="XRLabel" Name="typeReport" Text="Aranda Device Management" SizeF="676.152466,22.9999962" LocationFloat="20.6666622, 41.3333244" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="subtitle">
          <StylePriority Ref="15" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="16" ControlType="XRLabel" Name="titleReport" Text="Detail execution" SizeF="676.152466,31.3333282" LocationFloat="20.6666622, 9.999974" Font="Tahoma, 14pt" ForeColor="255,66,89,102" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="titleReport">
          <StylePriority Ref="17" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item2>
        <Item3 Ref="18" ControlType="XRPictureBox" Name="imageLogo" Image=" " SizeF="308.16,80" LocationFloat="712.61084, 0" />
        <Item4 Ref="19" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="57.2916641,22.9999847" LocationFloat="20.6666622, 80" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="date">
          <StylePriority Ref="20" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="21" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="229.166687,22.9999847" LocationFloat="77.95833, 80" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="22" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="23" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="712.6109,80" LocationFloat="1.98682155E-05, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="24" ShapeName="Rectangle" />
          <StylePriority Ref="25" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="26" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.00002">
      <Controls>
        <Item1 Ref="27" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="996.8751,24.041687" LocationFloat="13.1249828, 0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="recycleMessage">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="29" ControlType="XRPictureBox" Name="logoFooter" Image="iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="950.416443, 35.2916756" />
        <Item3 Ref="30" ControlType="XRLine" Name="lineFooter" SizeF="1016.87494,14.6666851" LocationFloat="3.12497234, 20.6249561" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="31" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="32" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="1016.87494,21.6666431" LocationFloat="3.12497234, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="33" ShapeName="Rectangle" />
          <StylePriority Ref="34" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="35" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="36" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="37" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="pageFooter">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="39" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="811.9792,23.0000038" LocationFloat="121.916451, 43.00003" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="msjfooter">
          <StylePriority Ref="40" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
    </Item5>
    <Item6 Ref="41" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="ExecutionDetail" DataSource="#Ref-0" PageBreak="BeforeBandExceptFirstEntry">
      <Bands>
        <Item1 Ref="42" ControlType="DetailBand" Name="Detail1" KeepTogetherWithDetailReports="true" HeightF="25" KeepTogether="true">
          <Controls>
            <Item1 Ref="43" ControlType="XRLabel" Name="label3" TextAlignment="MiddleCenter" SizeF="16.666666,15.0000038" LocationFloat="3.124972, 9.99999" Padding="2,2,0,0,100">
              <ExpressionBindings>
                <Item1 Ref="44" Expression="IIF([ReportItems].[DetailReport1].[DrillDownExpanded], ''-'', ''+'')" PropertyName="Text" EventName="BeforePrint" />
              </ExpressionBindings>
              <StylePriority Ref="45" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="46" ControlType="XRTable" Name="table2" TextAlignment="MiddleCenter" SizeF="775.0367,25" LocationFloat="20.66698, 0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="All" BorderWidth="1">
              <Rows>
                <Item1 Ref="47" ControlType="XRTableRow" Name="tableRow2" Weight="1">
                  <Cells>
                    <Item1 Ref="48" ControlType="XRTableCell" Name="tableCell10" Weight="1.1214815521240233" Text="Column1">
                      <ExpressionBindings>
                        <Item1 Ref="49" Expression="[creator_user]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="50" ControlType="XRTableCell" Name="tableCell12" Weight="1.12148193359375" Text="Column3">
                      <ExpressionBindings>
                        <Item1 Ref="51" Expression="[platform]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="52" ControlType="XRTableCell" Name="tableCell14" Weight="1.1214810180664063" Text="tableCell14">
                      <ExpressionBindings>
                        <Item1 Ref="53" Expression="[status]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="54" ControlType="XRTableCell" Name="tableCell15" Weight="1.1214801025390626" Text="tableCell15">
                      <ExpressionBindings>
                        <Item1 Ref="55" Expression="[execution_name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item4>
                    <Item5 Ref="56" ControlType="XRTableCell" Name="tableCell16" Weight="1.12148193359375" Text="tableCell16">
                      <ExpressionBindings>
                        <Item1 Ref="57" Expression="[creation_date]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item5>
                    <Item6 Ref="58" ControlType="XRTableCell" Name="tableCell17" Weight="1.0855743408203127" Text="tableCell17">
                      <ExpressionBindings>
                        <Item1 Ref="59" Expression="[download_date]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item6>
                    <Item7 Ref="60" ControlType="XRTableCell" Name="tableCell18" Weight="1.0573862457275391" Text="tableCell18">
                      <ExpressionBindings>
                        <Item1 Ref="61" Expression="[execution_date]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item7>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="62" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
            </Item2>
          </Controls>
        </Item1>
        <Item2 Ref="63" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="25.0000019">
          <Controls>
            <Item1 Ref="64" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="775.037048,25.0000019" LocationFloat="20.66666, 0" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="Left, Top, Right">
              <Rows>
                <Item1 Ref="65" ControlType="XRTableRow" Name="tableRow1" Weight="1">
                  <Cells>
                    <Item1 Ref="66" ControlType="XRTableCell" Name="tableCell1" Weight="1" Text="Creator user" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="creatorUser" />
                    <Item2 Ref="67" ControlType="XRTableCell" Name="tableCell3" Weight="1" Text="Platform" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="platform" />
                    <Item3 Ref="68" ControlType="XRTableCell" Name="tableCell5" Weight="1" Text="Status" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="status" />
                    <Item4 Ref="69" ControlType="XRTableCell" Name="tableCell6" Weight="1" Text="Execution name" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="executionName" />
                    <Item5 Ref="70" ControlType="XRTableCell" Name="tableCell7" Weight="1" Text="Creation date" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="creationDate" />
                    <Item6 Ref="71" ControlType="XRTableCell" Name="tableCell8" Weight="0.96798343107222284" Text="Download date" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="downloadDate" />
                    <Item7 Ref="72" ControlType="XRTableCell" Name="tableCell9" Weight="0.94284826078232964" Text="Execution date" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="ASD_DateExecution" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="73" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item2>
        <Item3 Ref="74" ControlType="DetailReportBand" Name="DetailReport1" DrillDownExpanded="false" DrillDownControl="#Ref-43" Level="0" DataMember="ExecutionDetail.ExecutionDetailDeviceReached" DataSource="#Ref-0">
          <Bands>
            <Item1 Ref="75" ControlType="DetailBand" Name="Detail2" HeightF="25" KeepTogether="true">
              <Controls>
                <Item1 Ref="76" ControlType="XRTable" Name="table4" TextAlignment="MiddleLeft" SizeF="942.8125,25" LocationFloat="77.95832, 0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
                  <Rows>
                    <Item1 Ref="77" ControlType="XRTableRow" Name="tableRow4" Weight="1">
                      <Cells>
                        <Item1 Ref="78" ControlType="XRTableCell" Name="tableCell25" Weight="1" Text="Column1">
                          <ExpressionBindings>
                            <Item1 Ref="79" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                          </ExpressionBindings>
                        </Item1>
                        <Item2 Ref="80" ControlType="XRTableCell" Name="tableCell26" Weight="1" Text="Column2">
                          <ExpressionBindings>
                            <Item1 Ref="81" Expression="[hardware_hash]" PropertyName="Text" EventName="BeforePrint" />
                          </ExpressionBindings>
                        </Item2>
                        <Item3 Ref="82" ControlType="XRTableCell" Name="tableCell27" Weight="1" Text="Column3">
                          <ExpressionBindings>
                            <Item1 Ref="83" Expression="[type_Name]" PropertyName="Text" EventName="BeforePrint" />
                          </ExpressionBindings>
                        </Item3>
                        <Item4 Ref="84" ControlType="XRTableCell" Name="tableCell28" Weight="1" Text="tableCell28">
                          <ExpressionBindings>
                            <Item1 Ref="85" Expression="[description]" PropertyName="Text" EventName="BeforePrint" />
                          </ExpressionBindings>
                        </Item4>
                        <Item5 Ref="86" ControlType="XRTableCell" Name="tableCell29" Weight="1.00000105781104" Text="tableCell29">
                          <ExpressionBindings>
                            <Item1 Ref="87" Expression="[domain]" PropertyName="Text" EventName="BeforePrint" />
                          </ExpressionBindings>
                        </Item5>
                        <Item6 Ref="88" ControlType="XRTableCell" Name="tableCell30" Weight="0.94183510597888265" Text="tableCell30">
                          <ExpressionBindings>
                            <Item1 Ref="89" Expression="[username]" PropertyName="Text" EventName="BeforePrint" />
                          </ExpressionBindings>
                        </Item6>
                      </Cells>
                    </Item1>
                  </Rows>
                  <StylePriority Ref="90" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item1>
              </Controls>
            </Item1>
            <Item2 Ref="91" ControlType="GroupHeaderBand" Name="GroupHeader2" HeightF="65.29166">
              <Controls>
                <Item1 Ref="92" ControlType="XRLabel" Name="label2" Multiline="true" Text="Devices list" SizeF="202.083344,23" LocationFloat="77.95833, 9.999974" StyleName="controlStyle2" Padding="2,2,0,0,100" />
                <Item2 Ref="93" ControlType="XRTable" Name="table3" TextAlignment="MiddleCenter" SizeF="942.0417,24.9999981" LocationFloat="77.95827, 40.29166" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
                  <Rows>
                    <Item1 Ref="94" ControlType="XRTableRow" Name="tableRow3" Weight="1">
                      <Cells>
                        <Item1 Ref="95" ControlType="XRTableCell" Name="tableCell19" Weight="1" Text="Name" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="nameDev" />
                        <Item2 Ref="96" ControlType="XRTableCell" Name="tableCell20" Weight="1" Text="Hardware hash" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="hashDev" />
                        <Item3 Ref="97" ControlType="XRTableCell" Name="tableCell21" Weight="1" Text="Type" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="typeDev" />
                        <Item4 Ref="98" ControlType="XRTableCell" Name="tableCell22" Weight="1" Text="Description" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="descriptionDev" />
                        <Item5 Ref="99" ControlType="XRTableCell" Name="tableCell23" Weight="1" Text="Domain" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="domainDev" />
                        <Item6 Ref="100" ControlType="XRTableCell" Name="tableCell24" Weight="0.93697754959834934" Text="Username" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="userNameDev" />
                      </Cells>
                    </Item1>
                  </Rows>
                  <StylePriority Ref="101" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item2>
              </Controls>
            </Item2>
            <Item3 Ref="102" ControlType="GroupFooterBand" Name="GroupFooter2" GroupUnion="WithLastDetail" Level="1" RepeatEveryPage="true" PageBreak="AfterBandExceptLastEntry" HeightF="25.3974" KeepTogether="true">
              <Controls>
                <Item1 Ref="103" ControlType="XRLabel" Name="label4" SizeF="999.333069,25.397377" LocationFloat="20.6670055, 0" Padding="2,2,0,0,100" BorderColor="255,204,204,204" Borders="None">
                  <StylePriority Ref="104" UseBorderColor="false" UseBorders="false" />
                </Item1>
              </Controls>
            </Item3>
          </Bands>
          <ReportPrintOptions Ref="105" PrintOnEmptyDataSource="false" />
        </Item3>
        <Item4 Ref="106" ControlType="GroupFooterBand" Name="GroupFooter1" GroupUnion="WithLastDetail" RepeatEveryPage="true" PageBreak="BeforeBandExceptFirstEntry" HeightF="25">
          <Controls>
            <Item1 Ref="107" ControlType="XRTable" Name="table5" SizeF="999.3331,25" LocationFloat="20.6669788, 0" ForeColor="Black" BorderColor="255,204,204,204" Borders="None" BorderWidth="1">
              <Rows>
                <Item1 Ref="108" ControlType="XRTableRow" Name="tableRow5" Weight="1">
                  <Cells>
                    <Item1 Ref="109" ControlType="XRTableCell" Name="tableCell31" Weight="1" Padding="2,2,0,0,100" />
                    <Item2 Ref="110" ControlType="XRTableCell" Name="tableCell32" Weight="1" Padding="2,2,0,0,100" />
                    <Item3 Ref="111" ControlType="XRTableCell" Name="tableCell33" Weight="0.97027686599624341" Padding="2,2,0,0,100" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="112" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" />
            </Item1>
          </Controls>
          <ExpressionBindings>
            <Item1 Ref="113" Expression=" " PropertyName="Visible" EventName="BeforePrint" />
          </ExpressionBindings>
        </Item4>
        <Item5 Ref="114" ControlType="GroupHeaderBand" Name="GroupHeader3" Level="1" HeightF="37.32292">
          <Controls>
            <Item1 Ref="115" ControlType="XRLabel" Name="label5" Multiline="true" Text="Executions list" SizeF="202.083344,23" LocationFloat="20.6670132, 4.32291031" StyleName="controlStyle2" Padding="2,2,0,0,100" Tag="ExecutionsList" />
          </Controls>
        </Item5>
      </Bands>
    </Item6>
  </Bands>
  <StyleSheet>
    <Item1 Ref="116" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 14.25pt, charSet=0" ForeColor="255,85,85,85" BackColor="Transparent" BorderColor="Transparent" StringFormat="Near;Near;0;None;Character;Default" />
    <Item2 Ref="117" Name="controlStyle2" BorderStyle="Inset" Font="Tahoma, 12pt, charSet=0" ForeColor="255,85,85,85" BackColor="Transparent" BorderColor="Transparent" StringFormat="Near;Near;0;None;Character;Default" />
    <Item3 Ref="118" Name="color_ADM_AMDM" BorderStyle="Inset" ForeColor="255,0,161,198" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v17.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="4" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v17.2.Core" DataSource="#Ref-0" DataMember="ListProyects" ValueMember="project_id" DisplayMember="name" FilterString="Contains([name], ?proyectName)" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v17.2" Ref="5" Content="System.Int16" Type="System.Type" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v17.2" Ref="7" Content="System.DateTime" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderProjectId INT

	SELECT TOP 1
			@folderProjectId	= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_ASD'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderProjectId,  N'ASD_PROJECT_EXECUTIONS', 1,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="17.2.7.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v17.2, Version=17.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report3" DisplayName="Ejecuciones por proyecto" Bookmark="Report-ADM" Landscape="true" Margins="40, 30, 30, 40" PageWidth="1100" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="17.2" DataMember="ExecutionProject" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Parameters>
    <Item1 Ref="3" Description="Name" Name="projectName" Tag="Name" />
    <Item2 Ref="6" Description="Proyecto" LookUpSettings="#Ref-4" ValueInfo="0" Name="Proyect" Type="#Ref-5" Tag="Project" />
  </Parameters>
  <Bands>
    <Item1 Ref="7" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="8" ControlType="DetailBand" Name="Detail" HeightF="25">
      <Controls>
        <Item1 Ref="9" ControlType="XRTable" Name="table2" TextAlignment="MiddleCenter" SizeF="999.3333,25" LocationFloat="20.6666946, 0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="10" ControlType="XRTableRow" Name="tableRow2" Weight="1">
              <Cells>
                <Item1 Ref="11" ControlType="XRTableCell" Name="tableCell16" Weight="1" Text="tableCell16">
                  <ExpressionBindings>
                    <Item1 Ref="12" Expression="[execution_name]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="13" ControlType="XRTableCell" Name="tableCell10" Weight="1.2931949187756076" Text="Column2">
                  <ExpressionBindings>
                    <Item1 Ref="14" Expression="[creation_date]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
                <Item3 Ref="15" ControlType="XRTableCell" Name="tableCell11" Weight="0.9980679282359215" Text="Column3">
                  <ExpressionBindings>
                    <Item1 Ref="16" Expression="[creator_user]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item3>
                <Item4 Ref="17" ControlType="XRTableCell" Name="tableCell12" Weight="0.708737152988471" Text="tableCell12">
                  <ExpressionBindings>
                    <Item1 Ref="18" Expression="[platform]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item4>
                <Item5 Ref="19" ControlType="XRTableCell" Name="tableCell13" Weight="1" Text="tableCell13">
                  <ExpressionBindings>
                    <Item1 Ref="20" Expression="[type_project]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item5>
                <Item6 Ref="21" ControlType="XRTableCell" Name="tableCell14" Weight="1" Text="tableCell14">
                  <ExpressionBindings>
                    <Item1 Ref="22" Expression="[type_execution]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item6>
                <Item7 Ref="23" ControlType="XRTableCell" Name="tableCell15" Weight="1" Text="tableCell15">
                  <ExpressionBindings>
                    <Item1 Ref="24" Expression="[status]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item7>
                <Item8 Ref="25" ControlType="XRTableCell" Name="tableCell9" Weight="1" Text="[project_name]" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="27" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="40" />
    <Item4 Ref="28" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="110.374992">
      <Controls>
        <Item1 Ref="29" ControlType="XRLabel" Name="typeReport" Text="Aranda Device Management" SizeF="675.3818,23.0000076" LocationFloat="20.6666718, 41.33336" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="subtitle">
          <StylePriority Ref="30" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="31" ControlType="XRLabel" Name="titleReport" Text="Execution by project" SizeF="675.3818,31.3333244" LocationFloat="20.6666718, 10.0000381" Font="Tahoma, 14pt" ForeColor="255,66,89,102" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="titleReport">
          <StylePriority Ref="32" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item2>
        <Item3 Ref="33" ControlType="XRPictureBox" Name="imageLogo" Image=" " SizeF="308.16,80" LocationFloat="711.839966, 0" />
        <Item4 Ref="34" ControlType="XRLabel" Name="dateReport" Text="Date:" SizeF="57.2916641,22.9999847" LocationFloat="20.6666622, 80" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="date">
          <StylePriority Ref="35" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="36" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="300,22.9999847" LocationFloat="77.95833, 80" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="37" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="38" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="711.84,80" LocationFloat="4.371007E-05, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="39" ShapeName="Rectangle" />
          <StylePriority Ref="40" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="41" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.0000153">
      <Controls>
        <Item1 Ref="42" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="996.875061,24.041687" LocationFloat="13.1250181, 0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="recycleMessage">
          <StylePriority Ref="43" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="44" ControlType="XRPictureBox" Name="logoFooter" Image="iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="950.4165, 35.2916336" />
        <Item3 Ref="45" ControlType="XRLine" Name="lineFooter" SizeF="1016.875,14.6666851" LocationFloat="3.12500024, 20.6249676" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="46" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="47" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="1016.875,21.6666412" LocationFloat="3.12500024, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="48" ShapeName="Rectangle" />
          <StylePriority Ref="49" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="50" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="51" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="52" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="pageFooter">
          <StylePriority Ref="53" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="54" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="813.889,22.9999962" LocationFloat="118.791466, 44.1458855" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="msjfooter">
          <StylePriority Ref="55" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
    </Item5>
    <Item6 Ref="56" ControlType="GroupHeaderBand" Name="GroupHeader2" HeightF="69.79167">
      <Controls>
        <Item1 Ref="57" ControlType="XRLabel" Name="label2" Multiline="true" Text="Executions list" SizeF="202.083344,23" LocationFloat="20.6666946, 10.0000067" StyleName="controlStyle1" Padding="2,2,0,0,100" Tag="ExecutionsList" />
        <Item2 Ref="58" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="999.3333,25.0000057" LocationFloat="20.6666946, 44.7916679" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="59" ControlType="XRTableRow" Name="tableRow1" Weight="1">
              <Cells>
                <Item1 Ref="60" ControlType="XRTableCell" Name="tableCell8" Weight="1" Text="Execution name" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="executionName" />
                <Item2 Ref="61" ControlType="XRTableCell" Name="tableCell2" Weight="1.2931951703528726" Text="Creation date" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="creationDate" />
                <Item3 Ref="62" ControlType="XRTableCell" Name="tableCell3" Weight="0.99806743962892364" Text="Creation user" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="CreatorUser" />
                <Item4 Ref="63" ControlType="XRTableCell" Name="tableCell4" Weight="0.70873739001820391" Text="Platform" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="platform" />
                <Item5 Ref="64" ControlType="XRTableCell" Name="tableCell5" Weight="1" Text="Type project" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="ProjectType" />
                <Item6 Ref="65" ControlType="XRTableCell" Name="tableCell6" Weight="1" Text="Type execution" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="typeExecution" />
                <Item7 Ref="66" ControlType="XRTableCell" Name="tableCell7" Weight="1" Text="Status" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="status" />
                <Item8 Ref="67" ControlType="XRTableCell" Name="tableCell1" Weight="1" Text="Project name" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="projectName" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="68" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item2>
      </Controls>
    </Item6>
  </Bands>
  <StyleSheet>
    <Item1 Ref="69" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 14.25pt, charSet=0" ForeColor="255,85,85,85" BackColor="Transparent" BorderColor="Transparent" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v17.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="4" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v17.2.Core" DataSource="#Ref-0" DataMember="ListProject" ValueMember="project_id" DisplayMember="name" FilterString="Contains([name], ?projectName)" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v17.2" Ref="5" Content="System.Int32" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderSoftwareDetailId INT

	SELECT TOP 1
			@folderSoftwareDetailId	= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_ASM'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderSoftwareDetailId,  N'ASM_SOFTWARE_DETAIL', 1,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report2" DisplayName="Detalle de software" Bookmark="Report-ADM" Landscape="true" Margins="40, 30, 30, 40" PageWidth="1100" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Parameters>
    <Item1 Ref="4" Visible="false" Description="Product" ValueSourceSettings="#Ref-2" ValueInfo="0" Name="productId" Type="#Ref-3" />
    <Item2 Ref="6" Description="Manufacturer" ValueSourceSettings="#Ref-5" ValueInfo="0" Name="manufacturerId" Type="#Ref-3" Tag="Manufacturer" />
    <Item3 Ref="8" Description="Nombre" Name="name" Tag="Name" />
  </Parameters>
  <Bands>
    <Item1 Ref="9" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="10" ControlType="DetailBand" Name="Detail" HeightF="0" />
    <Item3 Ref="11" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="40" />
    <Item4 Ref="12" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="110.375">
      <Controls>
        <Item1 Ref="13" ControlType="XRLabel" Name="typeReport" Text="Aranda Device Management" SizeF="675.3817,23.0000038" LocationFloat="20.6666718,41.3333244" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100" Tag_type="System.String" Tag="subtitle">
          <StylePriority Ref="14" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="15" ControlType="XRLabel" Name="titleReport" Text="Software Detail" SizeF="675.3817,31.3333244" LocationFloat="20.6666718,10.0000067" Font="Tahoma, 14pt" ForeColor="255,66,89,102" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titleReport">
          <StylePriority Ref="16" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item2>
        <Item3 Ref="17" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " SizeF="308.16,80" LocationFloat="711.8401,0" />
        <Item4 Ref="18" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="57.2916641,22.9999847" LocationFloat="20.6666622,80" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="date">
          <StylePriority Ref="19" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="20" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="229.166687,22.9999847" LocationFloat="77.95833,80" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="21" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="22" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="711.8401,80" LocationFloat="3.57627869E-05,0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="23" ShapeName="Rectangle" />
          <StylePriority Ref="24" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="25" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.0000153" Borders="None">
      <Controls>
        <Item1 Ref="26" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="996.875,24.041687" LocationFloat="13.1249828,0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="recycleMessage">
          <StylePriority Ref="27" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="28" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="950.4165,35.29167" />
        <Item3 Ref="29" ControlType="XRLine" Name="lineFooter" SizeF="1016.87494,14.6666851" LocationFloat="3.12497234,20.6249561" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="30" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="31" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="1016.87494,21.6666431" LocationFloat="3.12497234,0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="32" ShapeName="Rectangle" />
          <StylePriority Ref="33" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="34" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163,44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="35" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="36" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616,44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="pageFooter">
          <StylePriority Ref="37" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="38" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="811.4584,23.0000038" LocationFloat="118.791443,44.14584" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="msjfooter">
          <StylePriority Ref="39" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
      <StylePriority Ref="40" UseBorders="false" />
    </Item5>
    <Item6 Ref="41" ControlType="DetailReportBand" Name="DetailReport1" Level="0" DataMember="SoftwareDetail" DataSource="#Ref-0">
      <Bands>
        <Item1 Ref="42" ControlType="DetailBand" Name="Detail2" KeepTogetherWithDetailReports="true" HeightF="25.0000134" KeepTogether="true">
          <Controls>
            <Item1 Ref="43" ControlType="XRLabel" Name="label3" TextAlignment="MiddleCenter" SizeF="16.6666565,22.9999828" LocationFloat="3.12496781,2.00001359" Font="Tahoma, 9.75pt, charSet=0" Padding="2,2,0,0,100" BorderColor="Transparent">
              <ExpressionBindings>
                <Item1 Ref="44" EventName="BeforePrint" PropertyName="Text" Expression="IIF([ReportItems].[DetailReport2].[DrillDownExpanded], ''-'', ''+'')" />
              </ExpressionBindings>
              <StylePriority Ref="45" UseFont="false" UseBorderColor="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="46" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" SizeF="999.3334,25" LocationFloat="20.66666,0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="All">
              <Rows>
                <Item1 Ref="47" ControlType="XRTableRow" Name="tableRow2" Weight="1">
                  <Cells>
                    <Item1 Ref="48" ControlType="XRTableCell" Name="tableCell4" Weight="1.1911409326812961" Text="Column1">
                      <ExpressionBindings>
                        <Item1 Ref="49" EventName="BeforePrint" PropertyName="Text" Expression="[SoftwareDetail].[name]" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="50" ControlType="XRTableCell" Name="tableCell5" Weight="0.80885906731870394" Text="Column2" TextAlignment="MiddleCenter">
                      <ExpressionBindings>
                        <Item1 Ref="51" EventName="BeforePrint" PropertyName="Text" Expression="[SoftwareDetail].[version]" />
                      </ExpressionBindings>
                      <StylePriority Ref="52" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="53" ControlType="XRTableCell" Name="tableCell6" Weight="1" Text="Column3" TextAlignment="MiddleCenter">
                      <ExpressionBindings>
                        <Item1 Ref="54" EventName="BeforePrint" PropertyName="Text" Expression="[manufacturer]" />
                      </ExpressionBindings>
                      <StylePriority Ref="55" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="56" ControlType="XRTableCell" Name="tableCell13" Weight="1" Text="tableCell13" TextAlignment="MiddleCenter">
                      <ExpressionBindings>
                        <Item1 Ref="57" EventName="BeforePrint" PropertyName="Text" Expression="[type_name]" />
                      </ExpressionBindings>
                      <StylePriority Ref="58" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="59" ControlType="XRTableCell" Name="tableCell14" Weight="1" Text="tableCell14" TextAlignment="MiddleCenter">
                      <ExpressionBindings>
                        <Item1 Ref="60" EventName="BeforePrint" PropertyName="Text" Expression="[SoftwareDetail].[category]" />
                      </ExpressionBindings>
                      <StylePriority Ref="61" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="62" ControlType="XRTableCell" Name="tableCell15" Weight="1" Text="tableCell15" TextAlignment="MiddleCenter">
                      <ExpressionBindings>
                        <Item1 Ref="63" EventName="BeforePrint" PropertyName="Text" Expression="[SoftwareDetail].[operating_system]" />
                      </ExpressionBindings>
                      <StylePriority Ref="64" UseTextAlignment="false" />
                    </Item6>
                    <Item7 Ref="65" ControlType="XRTableCell" Name="tableCell16" Weight="1" Text="tableCell16" TextAlignment="MiddleCenter">
                      <ExpressionBindings>
                        <Item1 Ref="66" EventName="BeforePrint" PropertyName="Text" Expression="[SoftwareDetail].[installations]" />
                      </ExpressionBindings>
                      <StylePriority Ref="67" UseTextAlignment="false" />
                    </Item7>
                    <Item8 Ref="68" ControlType="XRTableCell" Name="tableCell17" Weight="1" Text="tableCell17" TextAlignment="MiddleCenter">
                      <ExpressionBindings>
                        <Item1 Ref="69" EventName="BeforePrint" PropertyName="Text" Expression="[SoftwareDetail].[license_count]" />
                      </ExpressionBindings>
                      <StylePriority Ref="70" UseTextAlignment="false" />
                    </Item8>
                    <Item9 Ref="71" ControlType="XRTableCell" Name="tableCell18" Weight="1" Text="tableCell18" TextAlignment="MiddleCenter">
                      <ExpressionBindings>
                        <Item1 Ref="72" EventName="BeforePrint" PropertyName="Text" Expression="[assigned_license]" />
                      </ExpressionBindings>
                      <StylePriority Ref="73" UseTextAlignment="false" />
                    </Item9>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="74" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item2>
          </Controls>
        </Item1>
        <Item2 Ref="75" ControlType="GroupHeaderBand" Name="GroupHeader2" HeightF="66.04166" KeepTogether="true">
          <Controls>
            <Item1 Ref="76" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="999.3332,24.9999924" LocationFloat="20.66666,41.0416565" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="Left, Top, Right">
              <Rows>
                <Item1 Ref="77" ControlType="XRTableRow" Name="tableRow1" Weight="1">
                  <Cells>
                    <Item1 Ref="78" ControlType="XRTableCell" Name="tableCell1" Weight="1.1911406660228148" Text="Name" Tag_type="System.String" Tag="Name" />
                    <Item2 Ref="79" ControlType="XRTableCell" Name="tableCell2" Weight="0.80885933397718524" Text="Version" Tag_type="System.String" Tag="Version" />
                    <Item3 Ref="80" ControlType="XRTableCell" Name="tableCell3" Weight="1" Text="Manufacturer" Tag_type="System.String" Tag="Manufacturer" />
                    <Item4 Ref="81" ControlType="XRTableCell" Name="tableCell7" Weight="1" Text="Type" Tag_type="System.String" Tag="Type" />
                    <Item5 Ref="82" ControlType="XRTableCell" Name="tableCell8" Weight="1" Text="Category" Tag_type="System.String" Tag="Category" />
                    <Item6 Ref="83" ControlType="XRTableCell" Name="tableCell9" Weight="1" Text="Operating system" Tag_type="System.String" Tag="OperatingSystem" />
                    <Item7 Ref="84" ControlType="XRTableCell" Name="tableCell10" Weight="1" Text="Installations" Tag_type="System.String" Tag="Installations" />
                    <Item8 Ref="85" ControlType="XRTableCell" Name="tableCell11" Weight="1" Text="Number license" Tag_type="System.String" Tag="NumberLicense" />
                    <Item9 Ref="86" ControlType="XRTableCell" Name="tableCell12" Weight="1" Text="Assigned licence" Tag_type="System.String" Tag="AssignedLicense" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="87" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="88" ControlType="XRLabel" Name="label2" Text="Software" SizeF="100,23" LocationFloat="20.6666622,0.333340973" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="software">
              <StylePriority Ref="89" UseFont="false" UseForeColor="false" UseBorderColor="false" />
            </Item2>
          </Controls>
        </Item2>
        <Item3 Ref="90" ControlType="GroupFooterBand" Name="GroupFooter1" RepeatEveryPage="true" HeightF="25">
          <Controls>
            <Item1 Ref="91" ControlType="XRTable" Name="table4" SizeF="999.3334,25" LocationFloat="20.66664,0" BorderColor="255,204,204,204" Borders="None">
              <Rows>
                <Item1 Ref="92" ControlType="XRTableRow" Name="tableRow4" Weight="1">
                  <Cells>
                    <Item1 Ref="93" ControlType="XRTableCell" Name="tableCell28" Weight="1" Padding="2,2,0,0,100" />
                    <Item2 Ref="94" ControlType="XRTableCell" Name="tableCell29" Weight="1" Padding="2,2,0,0,100" />
                    <Item3 Ref="95" ControlType="XRTableCell" Name="tableCell30" Weight="0.97027813049036837" Padding="2,2,0,0,100" />
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="96" UseBorderColor="false" UseBorders="false" />
            </Item1>
          </Controls>
        </Item3>
        <Item4 Ref="97" ControlType="DetailReportBand" Name="DetailReport2" DrillDownExpanded="false" DrillDownControl="#Ref-43" Level="0" DataMember="SoftwareDetail.SoftwareDetailDeviceBySoftware" DataSource="#Ref-0">
          <Bands>
            <Item1 Ref="98" ControlType="DetailBand" Name="Detail3" HeightF="25">
              <Controls>
                <Item1 Ref="99" ControlType="XRTable" Name="table3" TextAlignment="MiddleLeft" SizeF="960.625,25" LocationFloat="59.375,0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
                  <Rows>
                    <Item1 Ref="100" ControlType="XRTableRow" Name="tableRow3" Weight="1">
                      <Cells>
                        <Item1 Ref="101" ControlType="XRTableCell" Name="tableCell19" Weight="1" Text="Column1">
                          <ExpressionBindings>
                            <Item1 Ref="102" EventName="BeforePrint" PropertyName="Text" Expression="[name]" />
                          </ExpressionBindings>
                        </Item1>
                        <Item2 Ref="103" ControlType="XRTableCell" Name="tableCell20" Weight="1" Text="Column2">
                          <ExpressionBindings>
                            <Item1 Ref="104" EventName="BeforePrint" PropertyName="Text" Expression="[hardware_hash]" />
                          </ExpressionBindings>
                        </Item2>
                        <Item3 Ref="105" ControlType="XRTableCell" Name="tableCell21" Weight="1" Text="Column3">
                          <ExpressionBindings>
                            <Item1 Ref="106" EventName="BeforePrint" PropertyName="Text" Expression="[type_Name]" />
                          </ExpressionBindings>
                        </Item3>
                        <Item4 Ref="107" ControlType="XRTableCell" Name="tableCell22" Weight="1" Text="tableCell22">
                          <ExpressionBindings>
                            <Item1 Ref="108" EventName="BeforePrint" PropertyName="Text" Expression="[description]" />
                          </ExpressionBindings>
                        </Item4>
                        <Item5 Ref="109" ControlType="XRTableCell" Name="tableCell23" Weight="1" Text="tableCell23">
                          <ExpressionBindings>
                            <Item1 Ref="110" EventName="BeforePrint" PropertyName="Text" Expression="[domain]" />
                          </ExpressionBindings>
                        </Item5>
                        <Item6 Ref="111" ControlType="XRTableCell" Name="tableCell24" Weight="0.99999977991180855" Text="tableCell24">
                          <ExpressionBindings>
                            <Item1 Ref="112" EventName="BeforePrint" PropertyName="Text" Expression="[username]" />
                          </ExpressionBindings>
                        </Item6>
                        <Item7 Ref="113" ControlType="XRTableCell" Name="tableCell25" Weight="0.92788348229321316" Text="tableCell25">
                          <ExpressionBindings>
                            <Item1 Ref="114" EventName="BeforePrint" PropertyName="Text" Expression="[license_status]" />
                          </ExpressionBindings>
                        </Item7>
                      </Cells>
                    </Item1>
                  </Rows>
                  <StylePriority Ref="115" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item1>
              </Controls>
            </Item1>
            <Item2 Ref="116" ControlType="GroupFooterBand" Name="GroupFooter2" HeightF="25">
              <Controls>
                <Item1 Ref="117" ControlType="XRTable" Name="table5" SizeF="999.3334,25" LocationFloat="20.6666546,0" BorderColor="255,204,204,204" Borders="None">
                  <Rows>
                    <Item1 Ref="118" ControlType="XRTableRow" Name="tableRow5" Weight="1">
                      <Cells>
                        <Item1 Ref="119" ControlType="XRTableCell" Name="tableCell31" Weight="1" Padding="2,2,0,0,100" />
                        <Item2 Ref="120" ControlType="XRTableCell" Name="tableCell32" Weight="1" Padding="2,2,0,0,100" />
                        <Item3 Ref="121" ControlType="XRTableCell" Name="tableCell33" Weight="0.97027813049036837" Padding="2,2,0,0,100" />
                      </Cells>
                    </Item1>
                  </Rows>
                  <StylePriority Ref="122" UseBorderColor="false" UseBorders="false" />
                </Item1>
              </Controls>
            </Item2>
            <Item3 Ref="123" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="57.9999924" KeepTogether="true">
              <Controls>
                <Item1 Ref="124" ControlType="XRLabel" Name="label1" Text="Devices" SizeF="100,23" LocationFloat="59.375,9.999974" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="devices">
                  <StylePriority Ref="125" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                </Item1>
                <Item2 Ref="126" ControlType="XRTable" Name="table6" TextAlignment="MiddleCenter" SizeF="960.6249,25" LocationFloat="59.3749924,32.9999924" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
                  <Rows>
                    <Item1 Ref="127" ControlType="XRTableRow" Name="tableRow6" Weight="1">
                      <Cells>
                        <Item1 Ref="128" ControlType="XRTableCell" Name="tableCell34" Weight="1" Text="Name" Tag_type="System.String" Tag="nameDev" />
                        <Item2 Ref="129" ControlType="XRTableCell" Name="tableCell35" Weight="1" Text="Hardware hash" Tag_type="System.String" Tag="hashDev" />
                        <Item3 Ref="130" ControlType="XRTableCell" Name="tableCell36" Weight="1" Text="Type" Tag_type="System.String" Tag="typeDev" />
                        <Item4 Ref="131" ControlType="XRTableCell" Name="tableCell26" Weight="1" Text="Description" Tag_type="System.String" Tag="DescriptionDev" />
                        <Item5 Ref="132" ControlType="XRTableCell" Name="tableCell27" Weight="1" Text="Domain" Tag_type="System.String" Tag="domainDev" />
                        <Item6 Ref="133" ControlType="XRTableCell" Name="tableCell37" Weight="0.99999977991180877" Text="Username" Tag_type="System.String" Tag="userNameDev" />
                        <Item7 Ref="134" ControlType="XRTableCell" Name="tableCell38" Weight="0.92788260194044825" Text="License status" Tag_type="System.String" Tag="licenseStatusDev" />
                      </Cells>
                    </Item1>
                  </Rows>
                  <StylePriority Ref="135" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item2>
              </Controls>
            </Item3>
          </Bands>
          <ReportPrintOptions Ref="136" PrintOnEmptyDataSource="false" />
        </Item4>
      </Bands>
    </Item6>
  </Bands>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="SoftwareDetail" ValueMember="product_id" DisplayMember="name" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="3" Content="System.Int32" Type="System.Type" />
    <Item3 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="Manufacturer" ValueMember="manufacturer_id" DisplayMember="manufacturer" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderSoftwareId INT

	SELECT TOP 1
			@folderSoftwareId			= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_ASM'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderSoftwareId,  N'ASM_SOFTWARE_SUMMARY', 2,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="17.2.7.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v17.2, Version=17.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report1" DisplayName="Listado Software" Bookmark="Report-ADM" Landscape="true" Margins="40, 38, 30, 54" PageWidth="1100" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="17.2" DataMember="Software" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Parameters>
    <Item1 Ref="4" Description="Sistema operativo" LookUpSettings="#Ref-2" ValueInfo="-2" Name="os" Type="#Ref-3" Tag="OperatingSystem" />
    <Item2 Ref="6" Description="Fabricante" LookUpSettings="#Ref-5" ValueInfo="-2" Name="Manu" Type="#Ref-3" Tag="Manufacturer" />
    <Item3 Ref="8" Description="Tipo" LookUpSettings="#Ref-7" ValueInfo="-2" Name="Type" Type="#Ref-3" Tag="Type" />
  </Parameters>
  <Bands>
    <Item1 Ref="9" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="10" ControlType="DetailBand" Name="Detail" HeightF="25">
      <Controls>
        <Item1 Ref="11" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" SizeF="991.3331,25" LocationFloat="20.6668129, 0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="12" ControlType="XRTableRow" Name="tableRow2" Weight="1">
              <Cells>
                <Item1 Ref="13" ControlType="XRTableCell" Name="tableCell4" Weight="1.6935404968261718" Text="Column1">
                  <ExpressionBindings>
                    <Item1 Ref="14" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="15" ControlType="XRTableCell" Name="tableCell5" Weight="1.026145782470703" Text="Column2">
                  <ExpressionBindings>
                    <Item1 Ref="16" Expression="[version]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
                <Item3 Ref="17" ControlType="XRTableCell" Name="tableCell6" Weight="1.0876043701171874" Text="Column3">
                  <ExpressionBindings>
                    <Item1 Ref="18" Expression="[manufacturer]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item3>
                <Item4 Ref="19" ControlType="XRTableCell" Name="tableCell13" Weight="0.84114562988281261" Text="tableCell13">
                  <ExpressionBindings>
                    <Item1 Ref="20" Expression="[type_name]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item4>
                <Item5 Ref="21" ControlType="XRTableCell" Name="tableCell14" Weight="0.8072918701171875" Text="tableCell14">
                  <ExpressionBindings>
                    <Item1 Ref="22" Expression="[category]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item5>
                <Item6 Ref="23" ControlType="XRTableCell" Name="tableCell15" Weight="1.15104248046875" Text="tableCell15">
                  <ExpressionBindings>
                    <Item1 Ref="24" Expression="[operating_system]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item6>
                <Item7 Ref="25" ControlType="XRTableCell" Name="tableCell16" Weight="0.934896240234375" Text="tableCell16" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="26" Expression="[installations]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                  <StylePriority Ref="27" UseTextAlignment="false" />
                </Item7>
                <Item8 Ref="28" ControlType="XRTableCell" Name="tableCell17" Weight="0.9192712402343749" Text="tableCell17" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="29" Expression="[license_count]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                  <StylePriority Ref="30" UseTextAlignment="false" />
                </Item8>
                <Item9 Ref="31" ControlType="XRTableCell" Name="tableCell18" Weight="1.3074981689453127" Text="tableCell18" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="32" Expression="[assigned_license]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                  <StylePriority Ref="33" UseTextAlignment="false" />
                </Item9>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="34" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="35" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="54" />
    <Item4 Ref="36" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="110.374992" KeepTogether="true">
      <Controls>
        <Item1 Ref="37" ControlType="XRLabel" Name="typeReport" Text="Aranda Software Metrix" SizeF="674.4793,23" LocationFloat="20.66666, 41.33332" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="subtitle">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="39" ControlType="XRLabel" Name="titleReport" Text="Listado de software" SizeF="674.4793,31.3333244" LocationFloat="20.66666, 9.999991" Font="Tahoma, 14pt" ForeColor="255,66,89,102" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="titleReport">
          <StylePriority Ref="40" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item2>
        <Item3 Ref="41" ControlType="XRPictureBox" Name="imageLogo" Image=" " SizeF="294.8333,79.99999" LocationFloat="717.1667, 0" />
        <Item4 Ref="42" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="57.2916641,22.9999847" LocationFloat="20.6666622, 80" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="date">
          <StylePriority Ref="43" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="44" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="229.166687,22.9999847" LocationFloat="77.95833, 80" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="45" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="46" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="717.166748,80" LocationFloat="1.98682155E-05, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="47" ShapeName="Rectangle" />
          <StylePriority Ref="48" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="49" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.00002">
      <Controls>
        <Item1 Ref="50" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="984.3855,24.041687" LocationFloat="13.1249828, 0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="recycleMessage">
          <StylePriority Ref="51" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="52" ControlType="XRPictureBox" Name="logoFooter" Image="iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="942.416443, 35.29167" />
        <Item3 Ref="53" ControlType="XRLine" Name="lineFooter" SizeF="1008.87488,14.666687" LocationFloat="3.12497234, 20.6249962" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="54" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="55" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="1008.87506,21.6666431" LocationFloat="3.12497234, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="56" ShapeName="Rectangle" />
          <StylePriority Ref="57" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="58" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="59" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="60" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="pageFooter">
          <StylePriority Ref="61" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="62" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="802.6041,23.0000038" LocationFloat="118.791473, 44.14584" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="msjfooter">
          <StylePriority Ref="63" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
    </Item5>
    <Item6 Ref="64" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="35.4166832">
      <Controls>
        <Item1 Ref="65" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="991.3332,25.4166946" LocationFloat="20.6666622, 9.999974" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="66" ControlType="XRTableRow" Name="tableRow1" Weight="1">
              <Cells>
                <Item1 Ref="67" ControlType="XRTableCell" Name="tableCell1" Weight="1.6935417175292968" Text="Nombre" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Name" />
                <Item2 Ref="68" ControlType="XRTableCell" Name="tableCell2" Weight="1.0261457824707032" Text="Versión" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Version" />
                <Item3 Ref="69" ControlType="XRTableCell" Name="tableCell3" Weight="1.0876043701171874" Text="Fabricante" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Manufacturer" />
                <Item4 Ref="70" ControlType="XRTableCell" Name="tableCell7" Weight="0.84114562988281261" Text="Tipo" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Type" />
                <Item5 Ref="71" ControlType="XRTableCell" Name="tableCell8" Weight="0.80729187011718739" Text="Categoría" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Category" />
                <Item6 Ref="72" ControlType="XRTableCell" Name="tableCell9" Weight="1.15104248046875" Text="Sistema operativo" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="OperatingSystem" />
                <Item7 Ref="73" ControlType="XRTableCell" Name="tableCell10" Weight="0.934896240234375" Text="Instalaciones" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Installations" />
                <Item8 Ref="74" ControlType="XRTableCell" Name="tableCell11" Weight="0.91927124023437479" Text="Licencias" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Licenses" />
                <Item9 Ref="75" ControlType="XRTableCell" Name="tableCell12" Weight="1.3074981689453127" Text="Licencias asignadas" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="AssignedQuantity" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="76" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item6>
  </Bands>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v17.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v17.2.Core" DataSource="#Ref-0" DataMember="Os" ValueMember="operating_system_id" DisplayMember="operating_system" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v17.2" Ref="3" Content="System.Int32" Type="System.Type" />
    <Item3 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v17.2.Core" DataSource="#Ref-0" DataMember="Manufacturer" ValueMember="manufacturer_id" DisplayMember="manufacturer" />
    <Item4 Ref="7" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v17.2.Core" DataSource="#Ref-0" DataMember="Type" ValueMember="type_id" DisplayMember="type_name" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderLicenseId INT

	SELECT TOP 1
			@folderLicenseId	= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_ASM'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderLicenseId,  N'ASM_LICENSE_LIST', 3,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="17.2.7.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v17.2, Version=17.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report2" DisplayName="Listado Licenciamiento" Bookmark="Report-ADM" Landscape="true" Margins="40, 36, 30, 42" PageWidth="1100" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="17.2" DataMember="Licenciamiento" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <CalculatedFields>
    <Item1 Ref="2" Name="expirationField" DisplayName="expirationField" Expression="Iif(DateDiffDay(Today(),[expiration_date] ) &lt;= 0  , ''VENCIDO'',&#xA;Iif(DateDiffDay(Today(),[expiration_date] ) &lt;= 30  , ''PROXIMO'',&#xA;Iif(DateDiffDay(Today(),[expiration_date] ) &lt;= 60 , ''CERCA'',''LEJANA''&#xA;)))" DataMember="Licenciamiento" />
    <Item2 Ref="3" Name="without_assing" DisplayName="without_assing" Expression="[quantity]-[cantidad]" DataMember="Licenciamiento" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="4" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="5" ControlType="DetailBand" Name="Detail" HeightF="25.5208035">
      <Controls>
        <Item1 Ref="6" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" SizeF="979.281555,25" LocationFloat="20.6666317, 0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="7" ControlType="XRTableRow" Name="tableRow2" Weight="1">
              <Cells>
                <Item1 Ref="8" ControlType="XRTableCell" Name="tableCell4" Weight="3.1658085809621492" Text="Column1">
                  <ExpressionBindings>
                    <Item1 Ref="9" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="10" ControlType="XRTableCell" Name="tableCell5" Weight="2.1173116310944553" Text="Column2">
                  <ExpressionBindings>
                    <Item1 Ref="11" Expression="[package_name]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
                <Item3 Ref="12" ControlType="XRTableCell" Name="tableCell10" Weight="1.8350026839514939" Text="tableCell10">
                  <ExpressionBindings>
                    <Item1 Ref="13" Expression="[creation_date]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item3>
                <Item4 Ref="14" ControlType="XRTableCell" Name="tableCell11" Weight="1.8350052617704113" Text="tableCell11" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="15" Expression="[expiration_date]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                  <StylePriority Ref="16" UseTextAlignment="false" />
                </Item4>
                <Item5 Ref="17" ControlType="XRTableCell" Name="tableCell12" Weight="1.1292312638265565" Text="tableCell12" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="18" Expression="[quantity]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                  <StylePriority Ref="19" UseTextAlignment="false" />
                </Item5>
                <Item6 Ref="20" ControlType="XRTableCell" Name="tableCell13" Weight="1.1292347344200731" Text="tableCell13">
                  <ExpressionBindings>
                    <Item1 Ref="21" Expression="[assigned]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item6>
                <Item7 Ref="22" ControlType="XRTableCell" Name="tableCell14" Weight="1.1327613015630438" Text="tableCell14">
                  <ExpressionBindings>
                    <Item1 Ref="23" Expression="[quantity]-[assigned]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item7>
                <Item8 Ref="24" ControlType="XRTableCell" Name="tableCell16" Weight="1.5032345558963045" Text="tableCell16" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="25" Expression="[expirationField]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                  <StylePriority Ref="26" UseTextAlignment="false" />
                </Item8>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="27" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="28" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="42" />
    <Item4 Ref="29" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="116.541641">
      <Controls>
        <Item1 Ref="30" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="229.166656,22.9999771" LocationFloat="77.9583, 79.2187653" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="31" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="32" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="57.2916679,22.9999771" LocationFloat="20.6666317, 79.2187653" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="date">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="34" ControlType="XRPictureBox" Name="imageLogo" Image=" " SizeF="302.125,80" LocationFloat="712.8438, 0.781218231" />
        <Item4 Ref="35" ControlType="XRLabel" Name="titleReport" Text="Listado de licencias de software" SizeF="655.989868,31.3333244" LocationFloat="20.6666317, 9.218757" Font="Tahoma, 14pt" ForeColor="255,66,89,102" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="titleReport">
          <StylePriority Ref="36" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item4>
        <Item5 Ref="37" ControlType="XRLabel" Name="typeReport" Text="Aranda Device Management" SizeF="655.989868,23.0000038" LocationFloat="20.6666317, 40.5520439" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="subtitle">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="39" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="712.8438,80.00001" LocationFloat="0, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="40" ShapeName="Rectangle" />
          <StylePriority Ref="41" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="42" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.00002">
      <Controls>
        <Item1 Ref="43" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="980,24" LocationFloat="0, 0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="recycleMessage">
          <StylePriority Ref="44" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="45" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="1000,20" LocationFloat="3.125, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="46" ShapeName="Rectangle" />
          <StylePriority Ref="47" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item2>
        <Item3 Ref="48" ControlType="XRPictureBox" Name="logoFooter" Image="iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="944.416443, 35.29167" />
        <Item4 Ref="49" ControlType="XRLine" Name="lineFooter" SizeF="1010.87506,14.6666889" LocationFloat="3.124972, 20.6249828" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="50" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item4>
        <Item5 Ref="51" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="52" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="53" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="pageFooter">
          <StylePriority Ref="54" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="55" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="804.4271,23.0000038" LocationFloat="118.791473, 44.14584" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="msjfooter">
          <StylePriority Ref="56" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
    </Item5>
    <Item6 Ref="57" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="37.9166946">
      <Controls>
        <Item1 Ref="58" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="980,25" LocationFloat="19.9481964, 10.0000067" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="59" ControlType="XRTableRow" Name="tableRow1" Weight="1">
              <Cells>
                <Item1 Ref="60" ControlType="XRTableCell" Name="tableCell1" Weight="2.8641201293480734" Text="Nombre" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="licenseName" />
                <Item2 Ref="61" ControlType="XRTableCell" Name="tableCell2" Weight="1.9094134433367558" Text="Paquete de licencias" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="packageName" />
                <Item3 Ref="62" ControlType="XRTableCell" Name="tableCell3" Weight="1.6548248974758562" Text="Fecha de creación" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="creationDate" />
                <Item4 Ref="63" ControlType="XRTableCell" Name="tableCell7" Weight="1.6548248287673848" Text="Fecha de expiración" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="expirationDate" />
                <Item5 Ref="64" ControlType="XRTableCell" Name="tableCell8" Weight="1.01835382989618" Text="Cantidad" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="quantity" />
                <Item6 Ref="65" ControlType="XRTableCell" Name="tableCell9" Weight="1.0183538323480104" Text="Asignadas" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Assigned_Female" />
                <Item7 Ref="66" ControlType="XRTableCell" Name="tableCell6" Weight="1.0215361879607794" Text="Sin asignar" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Unassigned" />
                <Item8 Ref="67" ControlType="XRTableCell" Name="tableCell15" Weight="1.3556328409629685" Text="Estado" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="status" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="68" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item6>
  </Bands>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v17.2" Name="sqlDataSource1" Base64="PFNxbERhdGFTb3VyY2U+PE5hbWU+c3FsRGF0YVNvdXJjZTE8L05hbWU+PENvbm5lY3Rpb24gTmFtZT0ibG9jYWxob3N0X0FETV9QUlVFQkFTXzkuNi4xOTA1LjMxMDJfQ29ubmVjdGlvbiIgUHJvdmlkZXJLZXk9Ik1TU3FsU2VydmVyIj48UGFyYW1ldGVycz48UGFyYW1ldGVyIE5hbWU9InNlcnZlciIgVmFsdWU9IkJHLUQtU0VSVkVSMTVcVEVTVCIgLz48UGFyYW1ldGVyIE5hbWU9ImRhdGFiYXNlIiBWYWx1ZT0iQURNX1BSVUVCQVNfOS42LjE5MDUuMzEwMiIgLz48UGFyYW1ldGVyIE5hbWU9InVzZUludGVncmF0ZWRTZWN1cml0eSIgVmFsdWU9IkZhbHNlIiAvPjxQYXJhbWV0ZXIgTmFtZT0icmVhZCBvbmx5IiBWYWx1ZT0iMSIgLz48UGFyYW1ldGVyIE5hbWU9ImdlbmVyYXRlQ29ubmVjdGlvbkhlbHBlciIgVmFsdWU9ImZhbHNlIiAvPjxQYXJhbWV0ZXIgTmFtZT0idXNlcmlkIiBWYWx1ZT0iIiAvPjxQYXJhbWV0ZXIgTmFtZT0icGFzc3dvcmQiIFZhbHVlPSIiIC8+PC9QYXJhbWV0ZXJzPjwvQ29ubmVjdGlvbj48UXVlcnkgVHlwZT0iQ3VzdG9tU3FsUXVlcnkiIE5hbWU9IkxpY2VuY2lhbWllbnRvIj48U3FsPlNFTEVDVCANCgkJYWwubmFtZQkJCQlBUwlbbmFtZV0sDQoJCWFscC5wYWNrYWdlX25hbWUJQVMJW3BhY2thZ2VfbmFtZV0sDQoJCWFscC5jcmVhdGlvbl9kYXRlCUFTCVtjcmVhdGlvbl9kYXRlXSwNCgkJYWxwLmV4cGlyYXRpb25fZGF0ZQlBUwlbZXhwaXJhdGlvbl9kYXRlXSwNCgkJYWxwLnF1YW50aXR5CQlBUwlbcXVhbnRpdHldLA0KCQlDT1VOVChhbGEuaWQpCQlBUwlbYXNzaWduZWRdDQoNCkZST00JCVtBU01fTElDRU5TRV9QQUNLQUdFXQkJQVMJYWxwDQpJTk5FUiBKT0lOCVtBU01fTElDRU5TSU5HXQkJCQlBUwlhbAkJT04gYWwuaWQgPSBhbHAubGljZW5zZV9wYWNrYWdlX2lkDQpMRUZUIEpPSU4JW0FTTV9MSUNFTlNFX0FTU0lHTk1FTlRdCUFTCWFsYQkJT04gYWxhLmxpY2Vuc2VfaWQgPSBhbHAuaWQNCg0KR1JPVVAgQlkgDQoJCWFsLm5hbWUsDQoJCWFscC5wYWNrYWdlX25hbWUsDQoJCWFscC5jcmVhdGlvbl9kYXRlLA0KCQlhbHAuZXhwaXJhdGlvbl9kYXRlLA0KCQlhbHAucXVhbnRpdHkNCg0KT1JERVIgQlkgDQoJCWFsLm5hbWU8L1NxbD48L1F1ZXJ5PjxSZXN1bHRTY2hlbWE+PERhdGFTZXQgTmFtZT0ic3FsRGF0YVNvdXJjZTEiPjxWaWV3IE5hbWU9IkxpY2VuY2lhbWllbnRvIj48RmllbGQgTmFtZT0ibmFtZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJwYWNrYWdlX25hbWUiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0iY3JlYXRpb25fZGF0ZSIgVHlwZT0iRGF0ZVRpbWUiIC8+PEZpZWxkIE5hbWU9ImV4cGlyYXRpb25fZGF0ZSIgVHlwZT0iRGF0ZVRpbWUiIC8+PEZpZWxkIE5hbWU9InF1YW50aXR5IiBUeXBlPSJJbnQzMiIgLz48RmllbGQgTmFtZT0iYXNzaWduZWQiIFR5cGU9IkludDMyIiAvPjwvVmlldz48L0RhdGFTZXQ+PC9SZXN1bHRTY2hlbWE+PENvbm5lY3Rpb25PcHRpb25zIENsb3NlQ29ubmVjdGlvbj0idHJ1ZSIgLz48L1NxbERhdGFTb3VyY2U+" />
  </ComponentStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderDistributionId INT

	SELECT TOP 1
			@folderDistributionId	= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_ASD'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderDistributionId,  N'ASD_DISTRIBUTION_LIST', 3,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report3" DisplayName="Listado Distribucion" Bookmark="Report-ADM" Landscape="true" Margins="40, 30, 30, 40" PageWidth="1100" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="Distribucion" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Bands>
    <Item1 Ref="2" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="3" ControlType="DetailBand" Name="Detail" HeightF="25">
      <Controls>
        <Item1 Ref="4" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" SizeF="999.333252,25" LocationFloat="20.66664,0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="5" ControlType="XRTableRow" Name="tableRow2" Weight="1">
              <Cells>
                <Item1 Ref="6" ControlType="XRTableCell" Name="tableCell4" Weight="1.4399903042839117" Text="Column1">
                  <ExpressionBindings>
                    <Item1 Ref="7" EventName="BeforePrint" PropertyName="Text" Expression="[dist_project_name]" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="8" ControlType="XRTableCell" Name="tableCell5" Weight="1.56875523634335" Text="Column2">
                  <ExpressionBindings>
                    <Item1 Ref="9" EventName="BeforePrint" PropertyName="Text" Expression="[dist_project_creator]" />
                  </ExpressionBindings>
                </Item2>
                <Item3 Ref="10" ControlType="XRTableCell" Name="tableCell6" Weight="1.1200289067139777" Text="Column3">
                  <ExpressionBindings>
                    <Item1 Ref="11" EventName="BeforePrint" PropertyName="Text" Expression="[description]" />
                  </ExpressionBindings>
                </Item3>
                <Item4 Ref="12" ControlType="XRTableCell" Name="tableCell11" Weight="1.1748033121612007" Text="tableCell11" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="13" EventName="BeforePrint" PropertyName="Text" Expression="[status_name]" />
                  </ExpressionBindings>
                  <StylePriority Ref="14" UseTextAlignment="false" />
                </Item4>
                <Item5 Ref="15" ControlType="XRTableCell" Name="tableCell12" Weight="1.5892828837167696" Text="tableCell12">
                  <ExpressionBindings>
                    <Item1 Ref="16" EventName="BeforePrint" PropertyName="Text" Expression="[execution_date]" />
                  </ExpressionBindings>
                </Item5>
                <Item6 Ref="17" ControlType="XRTableCell" Name="tableCell13" Weight="1.6195747922300419" Text="tableCell13" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="18" EventName="BeforePrint" PropertyName="Text" Expression="[target_device_count]" />
                  </ExpressionBindings>
                  <StylePriority Ref="19" UseTextAlignment="false" />
                </Item6>
                <Item7 Ref="20" ControlType="XRTableCell" Name="tableCell14" Weight="1.4443128882755067" Text="tableCell14">
                  <ExpressionBindings>
                    <Item1 Ref="21" EventName="BeforePrint" PropertyName="Text" Expression="[package_name]" />
                  </ExpressionBindings>
                </Item7>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="22" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="23" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="40.083313" />
    <Item4 Ref="24" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="110.374992">
      <Controls>
        <Item1 Ref="25" ControlType="XRLabel" Name="typeReport" Text="Aranda Device Management" SizeF="664.1045,23.0000038" LocationFloat="20.6666317,40.5520439" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100" Tag_type="System.String" Tag="subtitle">
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="27" ControlType="XRLabel" Name="titleReport" Text="Listado de distribucion" SizeF="664.1045,31.3333244" LocationFloat="20.6666317,9.218757" Font="Tahoma, 14pt" ForeColor="255,66,89,102" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titleReport">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item2>
        <Item3 Ref="29" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " SizeF="308.160034,80.00001" LocationFloat="712.84,0" />
        <Item4 Ref="30" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="57.2916679,22.9999771" LocationFloat="20.6666317,79.2187653" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="date">
          <StylePriority Ref="31" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="32" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="229.166656,22.9999771" LocationFloat="77.9583,79.2187653" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="34" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="712.84,80" LocationFloat="0,0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="35" ShapeName="Rectangle" />
          <StylePriority Ref="36" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="37" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.00002">
      <Controls>
        <Item1 Ref="38" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="996.875,24.041687" LocationFloat="13.1249828,0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="recycleMessage">
          <StylePriority Ref="39" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="40" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="950.4165,35.29167" />
        <Item3 Ref="41" ControlType="XRLine" Name="lineFooter" SizeF="1016.87494,14.666687" LocationFloat="3.12497234,20.6249962" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="42" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="43" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="1016.87494,21.6666431" LocationFloat="3.12497234,0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="44" ShapeName="Rectangle" />
          <StylePriority Ref="45" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="46" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163,44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="48" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616,44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="pageFooter">
          <StylePriority Ref="49" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="50" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="810.4167,23.0000038" LocationFloat="118.791443,44.14584" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="msjfooter">
          <StylePriority Ref="51" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
    </Item5>
    <Item6 Ref="52" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="35.4166832">
      <Controls>
        <Item1 Ref="53" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="999.333435,25.4166946" LocationFloat="20.6666069,9.999974" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="54" ControlType="XRTableRow" Name="tableRow1" Weight="1">
              <Cells>
                <Item1 Ref="55" ControlType="XRTableCell" Name="tableCell1" Weight="1.4649889911567671" Text="Nombre del proyecto" Tag_type="System.String" Tag="ProjectName" />
                <Item2 Ref="56" ControlType="XRTableCell" Name="tableCell2" Weight="1.5959920671397436" Text="Creador del proyecto" Tag_type="System.String" Tag="ProjectCreator" />
                <Item3 Ref="57" ControlType="XRTableCell" Name="tableCell3" Weight="1.1394735473815996" Text="Descripción" Tag_type="System.String" Tag="Description" />
                <Item4 Ref="58" ControlType="XRTableCell" Name="tableCell7" Weight="1.1951981890270957" Text="Estado" Tag_type="System.String" Tag="Status" />
                <Item5 Ref="59" ControlType="XRTableCell" Name="tableCell8" Weight="1.6168750360046997" Text="Fecha de ejecución" Tag_type="System.String" Tag="ASD_DateExecution" />
                <Item6 Ref="60" ControlType="XRTableCell" Name="tableCell9" Weight="1.6476921933453756" Text="Número de dispositivos " Tag_type="System.String" Tag="NumberOfDevices" />
                <Item7 Ref="61" ControlType="XRTableCell" Name="tableCell10" Weight="1.4693875156456231" Text="Nombre del paquete" Tag_type="System.String" Tag="PackageName" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="62" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item6>
  </Bands>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64="PFNxbERhdGFTb3VyY2UgTmFtZT0ic3FsRGF0YVNvdXJjZTEiPjxDb25uZWN0aW9uIE5hbWU9ImxvY2FsaG9zdF9BRE1fQ29ubmVjdGlvbiIgUHJvdmlkZXJLZXk9Ik1TU3FsU2VydmVyIj48UGFyYW1ldGVycz48UGFyYW1ldGVyIE5hbWU9InNlcnZlciIgVmFsdWU9ImJnLWQtQ01BUlRJTkVaMSIgLz48UGFyYW1ldGVyIE5hbWU9ImRhdGFiYXNlIiBWYWx1ZT0iQURNIiAvPjxQYXJhbWV0ZXIgTmFtZT0idXNlSW50ZWdyYXRlZFNlY3VyaXR5IiBWYWx1ZT0iRmFsc2UiIC8+PFBhcmFtZXRlciBOYW1lPSJyZWFkIG9ubHkiIFZhbHVlPSIxIiAvPjxQYXJhbWV0ZXIgTmFtZT0iZ2VuZXJhdGVDb25uZWN0aW9uSGVscGVyIiBWYWx1ZT0iZmFsc2UiIC8+PC9QYXJhbWV0ZXJzPjwvQ29ubmVjdGlvbj48UXVlcnkgVHlwZT0iQ3VzdG9tU3FsUXVlcnkiIE5hbWU9IkRpc3RyaWJ1Y2lvbiI+PFNxbD5TRUxFQ1QgDQoJCXNldHVwUHJqLltpZF0sDQoJCXNldHVwUHJqLltuYW1lXQkJCQlBUyBbZGlzdF9wcm9qZWN0X25hbWVdLA0KCQlhZlVzZXIuW3VzZXJfbmFtZV0JCQlBUyBbZGlzdF9wcm9qZWN0X2NyZWF0b3JdLA0KCQlJU05VTEwoc2V0dXBQcmouW2Rlc2NyaXB0aW9uXSwgJy0tLScpQVMgW2Rlc2NyaXB0aW9uXSwNCgkJZXhjdG4uW3N0YXR1c10JCQkJQVMgW3N0YXR1c19pZF0sDQoJCUNBU0UJCQ0KCQlXSEVOIGV4Y3RuLltzdGF0dXNdID0gMAkJVEhFTiAnV2l0aG91dEV4ZWN1dGUnIA0KCQlXSEVOIGV4Y3RuLltzdGF0dXNdID0gMQkJVEhFTiAnUGVuZGluZ1RvRXhlY3V0ZScgDQoJCVdIRU4gZXhjdG4uW3N0YXR1c10gPSAyCQlUSEVOICdJbkV4ZWN1dGlvbicgDQoJCVdIRU4gZXhjdG4uW3N0YXR1c10gPSAzCQlUSEVOICdFeGVjdXRlZCcgDQoJCVdIRU4gZXhjdG4uW3N0YXR1c10gPSA0CQlUSEVOICdFeGVjdXRlZFdpdGhFcnJvcnMnIA0KCQlXSEVOIGV4Y3RuLltzdGF0dXNdID0gNQkJVEhFTiAnSW50ZXJydXB0ZWQnIA0KCQlXSEVOIGV4Y3RuLltzdGF0dXNdID0gNgkJVEhFTiAnQ2FuY2VsZWQnIA0KCQlFTkQJCQkJCQkJQVMgW3N0YXR1c19uYW1lXSwNCgkJZXhjdG4uW2V4ZWN1dGlvbl9kYXRlXSwNCgkJQ09VTlQoZXhjdG5EZXYuREVWSUNFX0lEKQkJQVMgW3RhcmdldF9kZXZpY2VfY291bnRdLA0KCQlwYWNrLltuYW1lXQkJCQkJQVMgW3BhY2thZ2VfbmFtZV0NCg0KRlJPTSBBU0RfU0VUVVBQUk9KRUNUIHNldHVwUHJqDQpJTk5FUiBKT0lOIEFTRF9FWEVDVVRJT04gZXhjdG4JCQkJCQlPTiBzZXR1cFByai5baWRdID0gZXhjdG4uW3NldHVwcHJvamVjdF9pZF0NCklOTkVSIEpPSU4gKFNFTEVDVCBFWEVDVVRJT05fSUQsIERFVklDRV9JRCBGUk9NIEFTRF9FWEVDX1BBQ0tBR0VfREVWSUNFIEdST1VQIEJZIERFVklDRV9JRCwgRVhFQ1VUSU9OX0lEKSBleGN0bkRldglPTiBleGN0bi5baWRdID0gZXhjdG5EZXYuW2V4ZWN1dGlvbl9pZF0gDQpJTk5FUiBKT0lOIEFTRF9FWEVDVVRJT05fUEFDS0FHRSBleGN0blBhY2sJCQlPTiAgZXhjdG4uW2lkXSA9IGV4Y3RuUGFjay5bZXhlY3V0aW9uX2lkXQ0KSU5ORVIgSk9JTiBBU0RfUEFDS0FHRSBwYWNrCQkJCQkJCU9OIGV4Y3RuUGFjay5bcGFja2FnZV9pZF0gPSBwYWNrLltpZF0NCklOTkVSIEpPSU4gQUZXX1VTRVJTIGFmVXNlcgkJCQkJCQlPTiBzZXR1cFByai5bY3JlYXRvcl91c2VyXSA9IGFmVXNlci5bdXNlcl9pZF0NCg0KR1JPVVAgQlkJc2V0dXBQcmouW2lkXSwgc2V0dXBQcmouW25hbWVdLCBleGN0bi5bc3RhdHVzXSwgZXhjdG4uW2V4ZWN1dGlvbl9kYXRlXSwNCgkJCXBhY2suW25hbWVdLCBhZlVzZXIuW3VzZXJfbmFtZV0sIHNldHVwUHJqLltkZXNjcmlwdGlvbl08L1NxbD48L1F1ZXJ5PjxSZXN1bHRTY2hlbWE+PERhdGFTZXQgTmFtZT0ic3FsRGF0YVNvdXJjZTEiPjxWaWV3IE5hbWU9IkRpc3RyaWJ1Y2lvbiI+PEZpZWxkIE5hbWU9ImlkIiBUeXBlPSJJbnQzMiIgLz48RmllbGQgTmFtZT0iZGlzdF9wcm9qZWN0X25hbWUiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0iZGlzdF9wcm9qZWN0X2NyZWF0b3IiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0iZGVzY3JpcHRpb24iIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0ic3RhdHVzX2lkIiBUeXBlPSJJbnQzMiIgLz48RmllbGQgTmFtZT0ic3RhdHVzX25hbWUiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0iZXhlY3V0aW9uX2RhdGUiIFR5cGU9IkRhdGVUaW1lIiAvPjxGaWVsZCBOYW1lPSJ0YXJnZXRfZGV2aWNlX2NvdW50IiBUeXBlPSJJbnQzMiIgLz48RmllbGQgTmFtZT0icGFja2FnZV9uYW1lIiBUeXBlPSJTdHJpbmciIC8+PC9WaWV3PjwvRGF0YVNldD48L1Jlc3VsdFNjaGVtYT48Q29ubmVjdGlvbk9wdGlvbnMgQ2xvc2VDb25uZWN0aW9uPSJ0cnVlIiBEYkNvbW1hbmRUaW1lb3V0PSIwIiAvPjwvU3FsRGF0YVNvdXJjZT4=" />
  </ComponentStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderSheetId INT

	SELECT TOP 1
			@folderSheetId		= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_APM'
	AND		fold_application_id = 32
	
	EXEC METADATA_REPORT @folderSheetId,  N'APM_PATCH_MAIN', 1,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="18.2.8.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v18.2, Version=18.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report1" Bookmark="Report-ADM" Landscape="true" Margins="40, 30, 30, 40" PageWidth="1100" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="18.2" DataMember="Patch list" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Parameters>
    <Item1 Ref="4" Description="Patch state" LookUpSettings="#Ref-2" ValueInfo="0" Name="state" Type="#Ref-3" Tag="PatchState" />
    <Item2 Ref="6" Description="Patch severity" LookUpSettings="#Ref-5" ValueInfo="0" Name="severity" Type="#Ref-3" Tag="PatchSeverity" />
    <Item3 Ref="8" Description="Patch type" LookUpSettings="#Ref-7" ValueInfo="0" Name="type" Type="#Ref-3" Tag="PatchType" />
  </Parameters>
  <Bands>
    <Item1 Ref="9" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="10" ControlType="DetailBand" Name="Detail" HeightF="25">
      <Controls>
        <Item1 Ref="11" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" SizeF="970.4166,25" LocationFloat="20.6666622, 0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="12" ControlType="XRTableRow" Name="tableRow2" Weight="1">
              <Cells>
                <Item1 Ref="13" ControlType="XRTableCell" Name="tableCell6" Weight="2.9816668701171878" Text="Column1">
                  <ExpressionBindings>
                    <Item1 Ref="14" Expression="[PATCH]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="15" ControlType="XRTableCell" Name="tableCell7" Weight="1.2524996948242186" Text="Column2">
                  <ExpressionBindings>
                    <Item1 Ref="16" Expression="[DOWNLOAD DATE]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
                <Item3 Ref="17" ControlType="XRTableCell" Name="tableCell8" Weight="1.2420831298828126" Text="Column3">
                  <ExpressionBindings>
                    <Item1 Ref="18" Expression="[POSTED DATE]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item3>
                <Item4 Ref="19" ControlType="XRTableCell" Name="tableCell9" Weight="1.1275015258789063" Text="tableCell9">
                  <ExpressionBindings>
                    <Item1 Ref="20" Expression="[BULLETIN]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item4>
                <Item5 Ref="21" ControlType="XRTableCell" Name="tableCell10" Weight="3.1004150390625" Text="tableCell10">
                  <ExpressionBindings>
                    <Item1 Ref="22" Expression="[FILE]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item5>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="23" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="24" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="40" />
    <Item4 Ref="25" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="110.375">
      <Controls>
        <Item1 Ref="26" ControlType="XRLabel" Name="typeReport" Text="Aranda Patch Management" SizeF="715.6665,23.0000038" LocationFloat="20.6666622, 41.3333244" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100">
          <StylePriority Ref="27" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="28" ControlType="XRLabel" Name="titleReport" Text="Patch list" SizeF="715.6665,31.3333244" LocationFloat="20.6666622, 10.0000067" Font="Tahoma, 14pt" ForeColor="255,5,85,85" Padding="2,2,0,0,100" BorderColor="Transparent" Tag="APM_PATCH_MAIN">
          <StylePriority Ref="29" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item2>
        <Item3 Ref="30" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " SizeF="248.999908,79.99999" LocationFloat="752.0833, 0" />
        <Item4 Ref="31" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="57.2916641,22.9999847" LocationFloat="20.6666622, 80" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="date">
          <StylePriority Ref="32" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="33" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="229.166687,22.9999847" LocationFloat="77.95833, 80" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="34" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="35" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="752.1249,80" LocationFloat="3.17891427E-05, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="36" ShapeName="Rectangle" />
          <StylePriority Ref="37" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="38" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.0000153">
      <Controls>
        <Item1 Ref="39" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="977.9584,24.041687" LocationFloat="13.12499, 0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="recycleMessage">
          <StylePriority Ref="40" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="41" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="921.499756, 35.29167" />
        <Item3 Ref="42" ControlType="XRLine" Name="lineFooter" SizeF="997.9583,14.6666851" LocationFloat="3.124984, 20.6249866" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="43" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="44" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="997.9583,21.6666412" LocationFloat="3.124984, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="45" ShapeName="Rectangle" />
          <StylePriority Ref="46" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="47" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="49" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="pageFooter">
          <StylePriority Ref="50" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="51" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="779.1667,23.0000038" LocationFloat="118.791451, 44.14584" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="msjfooter">
          <StylePriority Ref="52" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
    </Item5>
    <Item6 Ref="53" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="51.0416641" Font="Tahoma, 9.75pt, style=Bold">
      <Controls>
        <Item1 Ref="54" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="970.4167,24.9999981" LocationFloat="20.6666622, 26.041666" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="55" ControlType="XRTableRow" Name="tableRow1" Weight="1">
              <Cells>
                <Item1 Ref="56" ControlType="XRTableCell" Name="tableCell1" Weight="1.5706760362643324" Text="PATCH" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Patch" />
                <Item2 Ref="57" ControlType="XRTableCell" Name="tableCell2" Weight="0.65978906348264443" Text="DOWNLOAD DATE" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="DownloadDate" />
                <Item3 Ref="58" ControlType="XRTableCell" Name="tableCell3" Weight="0.65430184800504743" Text="POSTED DATE" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="PublicationDate" />
                <Item4 Ref="59" ControlType="XRTableCell" Name="tableCell4" Weight="0.59394263851131768" Text="BULLETIN" Tag="Bulletin" />
                <Item5 Ref="60" ControlType="XRTableCell" Name="tableCell5" Weight="1.6332303811268467" Text="FILE" Tag="File" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="61" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
      <StylePriority Ref="62" UseFont="false" />
    </Item6>
  </Bands>
  <StyleSheet>
    <Item1 Ref="63" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 14.25pt, charSet=0" ForeColor="255,85,85,85" BackColor="Transparent" BorderColor="Transparent" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v18.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v18.2.Core" DataSource="#Ref-0" DataMember="Patch state" ValueMember="id" DisplayMember="status_name" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v18.2" Ref="3" Content="System.Int16" Type="System.Type" />
    <Item3 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v18.2.Core" DataSource="#Ref-0" DataMember="Patch severity" ValueMember="id" DisplayMember="name" />
    <Item4 Ref="7" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v18.2.Core" DataSource="#Ref-0" DataMember="Patch type" ValueMember="NID" DisplayMember="name" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
  DECLARE @folderDiscoveryId INT

  SELECT TOP 1
    @folderDiscoveryId	= fold_id
  FROM AFW_FOLDER
  WHERE	fold_name			= 'Reports_APM'
    AND fold_application_id = 32

  EXEC METADATA_REPORT @folderDiscoveryId,  N'APM_PATCH_DETAIL', 2,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="18.2.8.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v18.2, Version=18.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report1" DisplayName="Patch detail" Bookmark="Report-ADM" Landscape="true" Margins="40, 30, 30, 40" PageWidth="1100" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="18.2" DataMember="Device list" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Parameters>
    <Item1 Ref="3" Description="Patch name" Name="name" Tag="PatchName" />
    <Item2 Ref="6" Description="Patch" LookUpSettings="#Ref-4" ValueInfo="0" Name="patch" Type="#Ref-5" Tag="Patch" />
  </Parameters>
  <Bands>
    <Item1 Ref="7" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="8" ControlType="DetailBand" Name="Detail" HeightF="25">
      <Controls>
        <Item1 Ref="9" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" SizeF="970.4166,25" LocationFloat="20.6666622, 0" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="10" ControlType="XRTableRow" Name="tableRow2" Weight="1">
              <Cells>
                <Item1 Ref="11" ControlType="XRTableCell" Name="tableCell6" Weight="2.1275003051757815" Text="Column1">
                  <ExpressionBindings>
                    <Item1 Ref="12" Expression="[name]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="13" ControlType="XRTableCell" Name="tableCell7" Weight="1.8254162597656249" Text="Column2">
                  <ExpressionBindings>
                    <Item1 Ref="14" Expression="[domain]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item2>
                <Item3 Ref="15" ControlType="XRTableCell" Name="tableCell8" Weight="1.5233331298828126" Text="Column3">
                  <ExpressionBindings>
                    <Item1 Ref="16" Expression="[communication_address]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item3>
                <Item4 Ref="17" ControlType="XRTableCell" Name="tableCell9" Weight="2.3879168701171878" Text="tableCell9">
                  <ExpressionBindings>
                    <Item1 Ref="18" Expression="[responsible_user_name]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item4>
                <Item5 Ref="19" ControlType="XRTableCell" Name="tableCell10" Weight="1.8399996948242186" Text="tableCell10">
                  <ExpressionBindings>
                    <Item1 Ref="20" Expression="[last_inventory]" PropertyName="Text" EventName="BeforePrint" />
                  </ExpressionBindings>
                </Item5>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="21" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="22" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="40" />
    <Item4 Ref="23" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="110.375">
      <Controls>
        <Item1 Ref="24" ControlType="XRLabel" Name="typeReport" Text="Aranda Patch Management" SizeF="715.6665,23.0000038" LocationFloat="20.6666622, 41.3333244" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100">
          <StylePriority Ref="25" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="26" ControlType="XRLabel" Name="titleReport" Text="Patch detail" SizeF="715.6665,31.3333244" LocationFloat="20.6666622, 10.0000067" Font="Tahoma, 14pt" ForeColor="255,5,85,85" Padding="2,2,0,0,100" BorderColor="Transparent" Tag="APM_PATCH_DETAIL">
          <StylePriority Ref="27" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item2>
        <Item3 Ref="28" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " SizeF="248.999908,79.99999" LocationFloat="752.0833, 0" />
        <Item4 Ref="29" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="57.2916641,22.9999847" LocationFloat="20.6666622, 80" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="date">
          <StylePriority Ref="30" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="31" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="229.166687,22.9999847" LocationFloat="77.95833, 80" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="32" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="33" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="752.1249,80" LocationFloat="3.17891427E-05, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="34" ShapeName="Rectangle" />
          <StylePriority Ref="35" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="36" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.00002">
      <Controls>
        <Item1 Ref="37" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="977.9584,24.041687" LocationFloat="13.12499, 0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="recycleMessage">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="39" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="921.499756, 35.29167" />
        <Item3 Ref="40" ControlType="XRLine" Name="lineFooter" SizeF="997.9583,14.6666851" LocationFloat="3.124984, 20.6249866" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="41" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="42" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="997.9583,21.6666412" LocationFloat="3.124984, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="43" ShapeName="Rectangle" />
          <StylePriority Ref="44" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="45" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="46" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="47" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="pageFooter">
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="49" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="779.1667,23.0000038" LocationFloat="118.791451, 44.14584" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="msjfooter">
          <StylePriority Ref="50" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
    </Item5>
    <Item6 Ref="51" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="77.0833359" Font="Tahoma, 9.75pt, style=Bold">
      <Controls>
        <Item1 Ref="52" ControlType="XRLabel" Name="label1" Multiline="true" Text="Device list" SizeF="202.083344,23" LocationFloat="20.6666946, 10.0000067" StyleName="controlStyle1" Padding="2,2,0,0,100" Tag="DeviceList" />
        <Item2 Ref="53" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="970.4167,24.9999981" LocationFloat="20.6666946, 49.3749924" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="54" ControlType="XRTableRow" Name="tableRow1" Weight="1">
              <Cells>
                <Item1 Ref="55" ControlType="XRTableCell" Name="tableCell1" Weight="1.1207200265858186" Text="DEVICE NAME" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="DeviceName" />
                <Item2 Ref="56" ControlType="XRTableCell" Name="tableCell2" Weight="0.96158880842751915" Text="DOMAIN" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Domain" />
                <Item3 Ref="57" ControlType="XRTableCell" Name="tableCell3" Weight="0.80245811273868639" Text="IP" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="column3" />
                <Item4 Ref="58" ControlType="XRTableCell" Name="tableCell4" Weight="1.2579023024538123" Text="RESPONSIBLE" Tag="Responsible" />
                <Item5 Ref="59" ControlType="XRTableCell" Name="tableCell5" Weight="0.969270717184352" Text="LAST INVENTORY" Tag="LastInventory" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="60" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item2>
      </Controls>
      <StylePriority Ref="61" UseFont="false" />
    </Item6>
  </Bands>
  <StyleSheet>
    <Item1 Ref="62" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 14.25pt, charSet=0" ForeColor="255,85,85,85" BackColor="Transparent" BorderColor="Transparent" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v18.2" Name="sqlDataSource1" Base64="PFNxbERhdGFTb3VyY2UgTmFtZT0ic3FsRGF0YVNvdXJjZTEiPjxDb25uZWN0aW9uIE5hbWU9ImxvY2FsaG9zdF9BRE1fVEVTVF9ITV85LjcuMC40X0Nvbm5lY3Rpb24iIFByb3ZpZGVyS2V5PSJNU1NxbFNlcnZlciI+PFBhcmFtZXRlcnM+PFBhcmFtZXRlciBOYW1lPSJzZXJ2ZXIiIFZhbHVlPSJCRy1ELVNFUlZFUjE1XFRFU1QiIC8+PFBhcmFtZXRlciBOYW1lPSJkYXRhYmFzZSIgVmFsdWU9IkFETV9URVNUX0hNXzkuNy4wLjQiIC8+PFBhcmFtZXRlciBOYW1lPSJ1c2VJbnRlZ3JhdGVkU2VjdXJpdHkiIFZhbHVlPSJGYWxzZSIgLz48UGFyYW1ldGVyIE5hbWU9InJlYWQgb25seSIgVmFsdWU9IjEiIC8+PFBhcmFtZXRlciBOYW1lPSJnZW5lcmF0ZUNvbm5lY3Rpb25IZWxwZXIiIFZhbHVlPSJmYWxzZSIgLz48L1BhcmFtZXRlcnM+PC9Db25uZWN0aW9uPjxRdWVyeSBUeXBlPSJDdXN0b21TcWxRdWVyeSIgTmFtZT0iUGF0Y2ggbGlzdCI+PFNxbD5TRUxFQ1QgDQoJYnVsbGV0aW5fdGl0bGUgQVMgW1BBVENIXSwgQS5pZA0KRlJPTSBWX0FQTV9QQVRDSF9NQUlOIEE8L1NxbD48L1F1ZXJ5PjxRdWVyeSBUeXBlPSJDdXN0b21TcWxRdWVyeSIgTmFtZT0iRGV2aWNlIGxpc3QiPjxQYXJhbWV0ZXIgTmFtZT0iUEFUQ0giIFR5cGU9IkRldkV4cHJlc3MuRGF0YUFjY2Vzcy5FeHByZXNzaW9uIj4oU3lzdGVtLkludDMyLCBtc2NvcmxpYiwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkpKFtQYXJhbWV0ZXJzLnBhdGNoXSk8L1BhcmFtZXRlcj48U3FsPlNFTEVDVCBESVNUSU5DVA0KCUUubmFtZSwgRS5kb21haW4sIEUucmVzcG9uc2libGVfdXNlcl9uYW1lLCBFLmNvbW11bmljYXRpb25fYWRkcmVzcywgRS5sYXN0X2ludmVudG9yeSwgRC5pZA0KRlJPTSBBUE1fU0hBVkxJS19TQ0FOX1JFU1VMVCBBIA0KCUlOTkVSIEpPSU4gQVBNX1NDQU5ORURfUFJPRFVDVFMgQiBPTiBCLnNjYW5fcmVzdWx0X2lkID0gQS5pZCANCglJTk5FUiBKT0lOIEFQTV9TQ0FOTkVEX1BBVENIRVMgQyBPTiBDLnNjYW5lZF9wcm9kdWN0X2lkID0gQi5pZA0KCUlOTkVSIEpPSU4gQVBNX1BBVENIX0RFVEFJTCBEIE9OIEMucGF0Y2hfaWQgPSBELmlkDQoJSU5ORVIgSk9JTiBWSUVXX0FBTV9ERVZJQ0VfREVUQUlMIEUgT04gQS5kZXZpY2VfaWQgPSBFLmlkDQpXSEVSRSBFLmlzX2FjdGl2ZSA9IDEgQU5EIEQuaWQgPSBAUEFUQ0ggQU5EIEMuaXNfaW5zdGFsbGVkPTA8L1NxbD48L1F1ZXJ5PjxSZXN1bHRTY2hlbWE+PERhdGFTZXQgTmFtZT0ic3FsRGF0YVNvdXJjZTEiPjxWaWV3IE5hbWU9IlBhdGNoIGxpc3QiPjxGaWVsZCBOYW1lPSJQQVRDSCIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJpZCIgVHlwZT0iSW50MzIiIC8+PC9WaWV3PjxWaWV3IE5hbWU9IkRldmljZSBsaXN0Ij48RmllbGQgTmFtZT0ibmFtZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJkb21haW4iIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0icmVzcG9uc2libGVfdXNlcl9uYW1lIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9ImNvbW11bmljYXRpb25fYWRkcmVzcyIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJsYXN0X2ludmVudG9yeSIgVHlwZT0iRGF0ZVRpbWUiIC8+PEZpZWxkIE5hbWU9ImlkIiBUeXBlPSJJbnQzMiIgLz48L1ZpZXc+PC9EYXRhU2V0PjwvUmVzdWx0U2NoZW1hPjxDb25uZWN0aW9uT3B0aW9ucyBDbG9zZUNvbm5lY3Rpb249InRydWUiIERiQ29tbWFuZFRpbWVvdXQ9IjAiIC8+PC9TcWxEYXRhU291cmNlPg==" />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="4" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v18.2.Core" DataSource="#Ref-0" DataMember="Patch list" ValueMember="id" DisplayMember="PATCH" FilterString="Contains([PATCH], ?name)" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v18.2" Ref="5" Content="System.Int32" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
END
GO
BEGIN
	DECLARE @folderSoftwareUsageMonthId INT

	SELECT TOP 1
			@folderSoftwareUsageMonthId	= fold_id 
	FROM	AFW_FOLDER
	WHERE	fold_name			= 'Reports_ASM'
	AND		fold_application_id = 32

	EXEC [dbo].[METADATA_REPORT] @folderSoftwareUsageMonthId, N'ASM_SOFTWARE_MONTHLY_CONSOLIDATED', 4,
'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="18.2.8.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v18.2, Version=18.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report2" DisplayName="Detalle de software" Bookmark="Report-ADM" Landscape="true" Margins="34, 30, 30, 40" PageWidth="1100" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="18.2" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Parameters>
    <Item1 Ref="4" Description="Año" LookUpSettings="#Ref-2" ValueInfo="0" Name="Year" Type="#Ref-3" Tag="Year" />
    <Item2 Ref="6" Description="Desde" LookUpSettings="#Ref-5" ValueInfo="0" Name="InitialMonth" Type="#Ref-3" Tag="From" />
    <Item3 Ref="8" Description="Hasta" LookUpSettings="#Ref-7" ValueInfo="0" Name="EndMonth" Type="#Ref-3" Tag="To" />
  </Parameters>
  <Bands>
    <Item1 Ref="9" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="10" ControlType="DetailBand" Name="Detail" Expanded="false" HeightF="0" />
    <Item3 Ref="11" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="40" />
    <Item4 Ref="12" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="136.000031">
      <Controls>
        <Item1 Ref="13" ControlType="XRLabel" Name="label8" Multiline="true" Text="label8" TextAlignment="TopLeft" SizeF="83.85416,22.9999924" LocationFloat="77.95833, 112.791634" StyleName="Style4" Padding="2,2,0,0,100" Borders="None">
          <ExpressionBindings>
            <Item1 Ref="14" Expression="?Year" PropertyName="Text" EventName="BeforePrint" />
          </ExpressionBindings>
          <StylePriority Ref="15" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="16" ControlType="XRLabel" Name="label12" Multiline="true" Text="label12" TextAlignment="TopLeft" SizeF="112.5,23.2083664" LocationFloat="395.249878, 112.791634" StyleName="Style4" Font="Tahoma, 9.75pt" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="17" Expression="[EndMonth].[month]" PropertyName="Text" EventName="BeforePrint" />
          </ExpressionBindings>
          <StylePriority Ref="18" UseFont="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="19" ControlType="XRLabel" Name="label11" Multiline="true" Text="label11" TextAlignment="TopLeft" SizeF="112.083252,22.9999924" LocationFloat="224.833282, 112.791634" StyleName="Style4" Font="Tahoma, 9.75pt" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="20" Expression="[InitialMonth].[month]" PropertyName="Text" EventName="BeforePrint" />
          </ExpressionBindings>
          <StylePriority Ref="21" UseFont="false" UseTextAlignment="false" />
        </Item3>
        <Item4 Ref="22" ControlType="XRLabel" Name="label10" Text="Hasta:" TextAlignment="TopLeft" SizeF="58.3333435,22.9999924" LocationFloat="336.916534, 112.791634" StyleName="Style4" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="To">
          <StylePriority Ref="23" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="24" ControlType="XRLabel" Name="label9" Text="Desde:" TextAlignment="TopLeft" SizeF="63.0207977,22.9999924" LocationFloat="161.812485, 112.791634" StyleName="Style4" Font="Tahoma, 9.75pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="From">
          <StylePriority Ref="25" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
        <Item6 Ref="26" ControlType="XRLabel" Name="label7" Text="Año:" TextAlignment="TopLeft" SizeF="57.2916641,22.9999847" LocationFloat="20.6666622, 112.791634" StyleName="Style4" Borders="None" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="year">
          <StylePriority Ref="27" UseTextAlignment="false" />
        </Item6>
        <Item7 Ref="28" ControlType="XRLabel" Name="typeReport" Text="Aranda Device Management" SizeF="675.3817,23.0000038" LocationFloat="20.6666718, 41.3333244" Font="Tahoma, 10pt" ForeColor="255,0,160,197" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="subtitle">
          <StylePriority Ref="29" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="30" ControlType="XRLabel" Name="titleReport" Text="Uso de software mensual" SizeF="675.3817,31.3333244" LocationFloat="20.6666718, 10.0000067" Font="Tahoma, 14pt" ForeColor="255,66,89,102" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="titleReport">
          <StylePriority Ref="31" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item8>
        <Item9 Ref="32" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " SizeF="308.16,80" LocationFloat="711.8401, 0" />
        <Item10 Ref="33" ControlType="XRLabel" Name="dateReport" Text="Fecha:" SizeF="57.2916641,22.9999847" LocationFloat="20.6666622, 80" StyleName="Style2" BorderColor="White" Borders="None" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="date">
          <StylePriority Ref="34" UseBorderColor="false" />
        </Item10>
        <Item11 Ref="35" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" SizeF="229.166687,22.9999847" LocationFloat="77.95833, 80" StyleName="Style4" />
        <Item12 Ref="36" ControlType="XRShape" Name="boxHeader" LineWidth="0" SizeF="711.8401,80" LocationFloat="3.57627869E-05, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="37" ShapeName="Rectangle" />
          <StylePriority Ref="38" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item12>
      </Controls>
    </Item4>
    <Item5 Ref="39" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.0000153" Borders="None">
      <Controls>
        <Item1 Ref="40" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="996.875,24.041687" LocationFloat="13.1249828, 0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="recycleMessage">
          <StylePriority Ref="41" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="42" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="940.416443, 35.29164" />
        <Item3 Ref="43" ControlType="XRLine" Name="lineFooter" SizeF="1016.87494,14.6666851" LocationFloat="3.12497234, 20.6249561" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="44" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="45" ControlType="XRShape" Name="boxFooter" LineWidth="0" SizeF="1016.87494,21.6666431" LocationFloat="3.12497234, 0" BackColor="255,224,224,224" BorderColor="Transparent" BorderWidth="0">
          <Shape Ref="46" ShapeName="Rectangle" />
          <StylePriority Ref="47" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
        </Item4>
        <Item5 Ref="48" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="49" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="50" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616, 44.14584" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="pageFooter">
          <StylePriority Ref="51" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="52" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="811.4584,23.0000038" LocationFloat="118.791443, 44.14584" Font="Tahoma, 9.75pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="msjfooter">
          <StylePriority Ref="53" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
      </Controls>
      <StylePriority Ref="54" UseBorders="false" />
    </Item5>
    <Item6 Ref="55" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="SoftwareUsageMonth" DataSource="#Ref-0">
      <Bands>
        <Item1 Ref="56" ControlType="DetailBand" Name="Detail1" HeightF="25" TextAlignment="MiddleJustify" StyleName="Style2">
          <Controls>
            <Item1 Ref="57" ControlType="XRTable" Name="table1" SizeF="999.3331,25" LocationFloat="20.6667252, 0">
              <Rows>
                <Item1 Ref="58" ControlType="XRTableRow" Name="tableRow1" Weight="11.5">
                  <Cells>
                    <Item1 Ref="59" ControlType="XRTableCell" Name="tableCell6" Weight="0.63317914305258083" Multiline="true" Text="tableCell6">
                      <ExpressionBindings>
                        <Item1 Ref="60" Expression="[month]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item1>
                    <Item2 Ref="61" ControlType="XRTableCell" Name="tableCell9" Weight="0.90385916718227288" Multiline="true" Text="tableCell9" StyleName="Style3">
                      <ExpressionBindings>
                        <Item1 Ref="62" Expression="[user_name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item2>
                    <Item3 Ref="63" ControlType="XRTableCell" Name="tableCell1" Weight="1.0286832710073788" Multiline="true" Text="tableCell1">
                      <ExpressionBindings>
                        <Item1 Ref="64" Expression="[device_name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                    </Item3>
                    <Item4 Ref="65" ControlType="XRTableCell" Name="tableCell7" Weight="1.4006346517259556" Multiline="true" Text="tableCell7" TextAlignment="MiddleLeft">
                      <ExpressionBindings>
                        <Item1 Ref="66" Expression="[product_name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                      <StylePriority Ref="67" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="68" ControlType="XRTableCell" Name="tableCell8" Weight="1.2357079487737064" Multiline="true" Text="tableCell8" TextAlignment="MiddleLeft">
                      <ExpressionBindings>
                        <Item1 Ref="69" Expression="[software_name]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                      <StylePriority Ref="70" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="71" ControlType="XRTableCell" Name="tableCell3" Weight="1.1813663783375348" Multiline="true" Text="tableCell3" TextAlignment="MiddleLeft">
                      <ExpressionBindings>
                        <Item1 Ref="72" Expression="[durationddhhmmss]" PropertyName="Text" EventName="BeforePrint" />
                      </ExpressionBindings>
                      <StylePriority Ref="73" UseTextAlignment="false" />
                    </Item6>
                  </Cells>
                </Item1>
              </Rows>
            </Item1>
          </Controls>
          <StylePriority Ref="74" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="75" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="36.20849" StyleName="Style1">
          <Controls>
            <Item1 Ref="76" ControlType="XRLabel" Name="label1" Text="Mes" SizeF="98.12474,26.2084618" LocationFloat="20.6666946, 10.0000067" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Month" />
            <Item2 Ref="77" ControlType="XRLabel" Name="label2" Text="Usuario" SizeF="142.500336,26.2084618" LocationFloat="118.791435, 10.0000067" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="User" />
            <Item3 Ref="78" ControlType="XRLabel" Name="label3" Text="Dispositivo" SizeF="161.0415,26.2084618" LocationFloat="261.291779, 10.0000067" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Device" />
            <Item4 Ref="79" ControlType="XRLabel" Name="label4" Text="Producto" SizeF="219.2709,26.2084618" LocationFloat="422.333282, 10.0000067" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Product" />
            <Item5 Ref="80" ControlType="XRLabel" Name="label5" Text="Software" SizeF="193.451416,26.2084618" LocationFloat="641.604248, 10.0000067" StyleName="Style1" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Software" />
            <Item6 Ref="81" ControlType="XRLabel" Name="label6" Multiline="true" Text="Duración " SizeF="184.944214,26.2084618" LocationFloat="835.055664, 10.0000067" Tag_type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Tag="Duration" />
          </Controls>
        </Item2>
      </Bands>
    </Item6>
  </Bands>
  <StyleSheet>
    <Item1 Ref="82" Name="Style1" BorderStyle="Inset" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Sides="Left, Top, Right" StringFormat="Center;Center;FitBlackBox, LineLimit, NoClip;None;Character;GenericTypographic" TextAlignment="MiddleCenter" />
    <Item2 Ref="83" Name="Style2" BorderStyle="Inset" Padding="5,0,0,0,100" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" BorderColor="255,204,204,204" Sides="All" StringFormat="Near;Center;FitBlackBox, LineLimit, NoClip;None;Character;GenericTypographic" TextAlignment="MiddleLeft" />
    <Item3 Ref="84" Name="Style3" BorderStyle="Inset" Padding="5,0,0,0,100" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" BorderColor="255,204,204,204" Sides="All" StringFormat="Near;Center;FitBlackBox, LineLimit, NoClip;None;Character;GenericTypographic" TextAlignment="MiddleJustify" />
    <Item4 Ref="85" Name="Style4" BorderStyle="Inset" Padding="5,0,0,0,100" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" BorderColor="White" Sides="All" StringFormat="Near;Center;FitBlackBox, LineLimit, NoClip;None;Character;GenericTypographic" TextAlignment="MiddleLeft" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v18.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v18.2.Core" DataSource="#Ref-0" DataMember="Year" ValueMember="year" DisplayMember="year" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v18.2" Ref="3" Content="System.Int32" Type="System.Type" />
    <Item3 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v18.2.Core" DataSource="#Ref-0" DataMember="Month" ValueMember="MonthNumber" DisplayMember="month" />
    <Item4 Ref="7" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v18.2.Core" DataSource="#Ref-0" DataMember="Month" ValueMember="MonthNumber" DisplayMember="month" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
END
GO

-- DASHBOARDS
/* ===================================================================================================*/
/*	Carpetas para los documentos relacionados con tableros                                            */
/* ===================================================================================================*/

-- Quita los tableros anteriores
DELETE FROM [DASH_BOARD]
WHERE boar_name IN 
 (
	'GeneralInformation'  ,
	'EnergySummary'		  ,
	'Histogram'			  ,
	'ExecutionSummary'	  ,
	'GeneralInformation'  ,
	'EnergySummary'		  ,
	'Histogram'			  ,
	'ExecutionSummary'
 )

DECLARE 
	@root_folder    INT,
	@dash_folder    INT,
	@product_folder INT,
	@appId	        INT,
	@date DATETIME

-- Codigo de aplicacion
SET @appId = 32
SET @date = GETDATE()

-- Carpeta raiz
EXEC [METADATA_FOLDER]
	 @folderId = @root_folder OUTPUT,
	 @name = 'ADM',
	 @parentId = NULL,
	 @creationDate = @date,
	 @modifiedDate =@date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'ADM',
	 @applicationId = @appId,
	 @order = 0,
	 @isPublic = 1

-- Carpeta de Dashboard
EXEC [METADATA_FOLDER]
	 @folderId = @dash_folder OUTPUT,
	 @name = 'Dashboards',
	 @parentId = @root_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Dashboards_Description',
	 @applicationId = @appId,
	 @order = 1,
	 @isPublic = 1

-- AAM Folder
EXEC [METADATA_FOLDER] 
	 @folderId = @product_folder OUTPUT,
	 @name = 'Dashboards_AAM',
	 @parentId = @dash_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Dashboards_AAM_Description',
	 @applicationId = @appId,
	 @order = 2,
	 @isPublic = 1

-- Quita tablero de delivery
DELETE FROM AFW_FOLDER WHERE fold_parent = @dash_folder
AND fold_name='Dashboards_ASD'



-- APM Folder
EXEC [METADATA_FOLDER] 
	 @folderId = @product_folder OUTPUT,
	 @name = 'Dashboards_APM',
	 @parentId = @dash_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Dashboards_APM_Description',
	 @applicationId = @appId,
	 @order = 3,
	 @isPublic = 1

-- ASM Folder
EXEC [METADATA_FOLDER] 
	 @folderId = @product_folder OUTPUT,
	 @name = 'Dashboards_ASM',
	 @parentId = @dash_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Dashboards_ASM_Description',
	 @applicationId = @appId,
	 @order = 4,
	 @isPublic = 1

EXEC [METADATA_FOLDER] 
	 @folderId = @product_folder OUTPUT,
	 @name = 'Dashboards_APWM',
	 @parentId = @dash_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Dashboards_APWM_Description',
	 @applicationId = @appId,
	 @order = 5,
	 @isPublic = 1


EXEC [METADATA_FOLDER] 
	 @folderId = @product_folder OUTPUT,
	 @name = 'Dashboards_APWM',
	 @parentId = @dash_folder,
	 @creationDate = @date,
	 @modifiedDate = @date,
	 @userIdCreate = 1,
	 @userIdModified = 1,
	 @description = 'Dashboards_APWM_Description',
	 @applicationId = @appId,
	 @order = 6,
	 @isPublic = 1

GO
/*
	Tablero resumen de dispositivos
*/
DECLARE @documentDeviceId   INT, 
		@folderDevicesId    INT,
		@dashboardDeviceFolder    INT,
		@aamFolder          INT,
		@rootDevice         INT,
		@xmlDefinitionDevice NVARCHAR(MAX)

-- Carpeta de ADM
SELECT @rootDevice = fold_id 
FROM   AFW_FOLDER
WHERE  fold_parent IS NULL 
AND    fold_name           = 'ADM'
AND    fold_application_id = 32

--  Carpeta de tableros
SELECT @dashboardDeviceFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = @rootDevice  
AND    fold_name   = 'Dashboards'

--  Carpeta de aam para tableros
SELECT @aamFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = @dashboardDeviceFolder  
AND    fold_name   = 'Dashboards_AAM'

SET @xmlDefinitionDevice= '<?xml version="1.0" encoding="utf-8"?>
<Dashboard CurrencyCulture="es-CO">
  <Title Text="DeviceMonitor" Alignment="Left"> </Title>
  <DataSources>
    <SqlDataSource Name="ADM" ComponentName="sqlDataSource2">
      <Connection Name="Connection" ProviderKey="MSSqlServer">
        <Parameters>
          <Parameter Name="server" Value="" />
          <Parameter Name="database" Value="" />
          <Parameter Name="useIntegratedSecurity" Value="False" />
          <Parameter Name="read only" Value="1" />
          <Parameter Name="generateConnectionHelper" Value="false" />
          <Parameter Name="userid" Value="" />
          <Parameter Name="password" Value="" />
        </Parameters>
      </Connection>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery">
        <Sql>SELECT COUNT(ID) AS [DEVICES] FROM AAM_DEVICE WHERE is_active = 1</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_1">
        <Sql>SELECT ISNULL(SUM([CONFLICT]),0) AS [CONFLICTS]
             FROM (SELECT IIF(B.conflict_type_id IS NULL OR B.status_id = 2, 0, B.conflict_type_id) AS [CONFLICT]
                   FROM VIEW_AAM_DEVICE A
                   LEFT JOIN AAM_DEVICE_CONFLICT B ON B.device_id = A.id
                   GROUP BY A.id, IIF(B.conflict_type_id IS NULL OR B.status_id = 2, 0, B.conflict_type_id)) AS X
            WHERE [CONFLICT] != 0</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_2">
        <Sql>SELECT COUNT(a.id) AS [NOT AGENT] FROM AAM_DEVICE a LEFT JOIN AAM_DEVICE_CONFIGURATION b ON a.id=b.device_id WHERE b.device_id is null and a.is_active= 1</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_3">
        <Sql>SELECT COUNT(DEVICE)AS [ACTUALIZED] FROM(
          SELECT
          CASE WHEN DEVLIC.device_id IS NULL  AND AAM_DEVICE.is_discovery = 0  THEN ''Without License''
          ELSE
          CASE  WHEN	DATEDIFF(DAY,last_update,GETUTCDATE()) &lt;= CONVERT(INT,AFW_SETTINGS.sett_value) THEN ''Inventory''
          END
          END [STATUS],
          ISNULL(ADM_DEVICE_INVENTORY.device_id, 0)AS [DEVICE]
          FROM AAM_DEVICE
          LEFT JOIN ADM_DEVICE_INVENTORY ON AAM_DEVICE.id = ADM_DEVICE_INVENTORY.device_id AND app_code = 1
          LEFT JOIN ADM_DEVICE_LICENSE DEVLIC ON AAM_DEVICE.[id] = DEVLIC.[device_id],
          AFW_SETTINGS
          WHERE ((app_code = 1 OR app_code IS NULL) AND (is_active = 1))
          AND (ADM_DEVICE_INVENTORY.type = 0 OR ADM_DEVICE_INVENTORY.type IS NULL)
          AND (AFW_SETTINGS.sett_key=''UpdatedInventoryDays'' OR AFW_SETTINGS.sett_key IS NULL)
          AND (AFW_SETTINGS.sett_application_id = 32 OR AFW_SETTINGS.sett_application_id IS NULL)
          AND AFW_SETTINGS.sett_project_id IS NULL
          AND (DEVLIC.product_id = 1 OR DEVLIC.product_id IS NULL))AS X
          WHERE STATUS = ''Inventory''</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_4">
        <Sql>SELECT COUNT(DEVICE)AS [QUANTITY], STATUS AS [STATE] FROM(
          SELECT
          CASE WHEN DEVLIC.device_id IS NULL  AND AAM_DEVICE.is_discovery = 0  THEN ''Without License''
          ELSE
          CASE  WHEN	DATEDIFF(DAY,last_update,GETUTCDATE()) &lt;= CONVERT(INT,AFW_SETTINGS.sett_value) THEN ''Inventory''
          WHEN ISNULL(DATEDIFF(DAY, last_update, GETUTCDATE()), 0) &gt; CONVERT(INT,AFW_SETTINGS.sett_value) THEN ''Without Updating''
          WHEN DATEDIFF(DAY, last_update, GETUTCDATE()) IS NULL and DEVLIC.device_id is not null THEN ''Without Inventory''
          WHEN DATEDIFF(DAY, last_update, GETUTCDATE()) IS NULL and DEVLIC.device_id is null THEN ''Without License''
          END
          END [STATUS],
          ISNULL(ADM_DEVICE_INVENTORY.device_id, 0)AS [DEVICE]
          FROM AAM_DEVICE
          LEFT JOIN ADM_DEVICE_INVENTORY ON AAM_DEVICE.id = ADM_DEVICE_INVENTORY.device_id AND app_code = 1
          LEFT JOIN ADM_DEVICE_LICENSE DEVLIC ON AAM_DEVICE.[id] = DEVLIC.[device_id]   AND (DEVLIC.product_id = 1 OR DEVLIC.product_id IS NULL),
          AFW_SETTINGS
          WHERE AAM_DEVICE.is_active= 1 and (app_code = 1 OR app_code IS NULL)
          AND (ADM_DEVICE_INVENTORY.type = 0 OR ADM_DEVICE_INVENTORY.type IS NULL)
          AND (AFW_SETTINGS.sett_key=''UpdatedInventoryDays'' OR AFW_SETTINGS.sett_key IS NULL)
          AND (AFW_SETTINGS.sett_application_id = 32 OR AFW_SETTINGS.sett_application_id IS NULL)
          AND AFW_SETTINGS.sett_project_id IS NULL
          )AS X
          GROUP BY STATUS</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_5">
        <Sql>SELECT
          COUNT(type) AS [Devices],
          CASE type
          WHEN -1 THEN ''Unknown''
          WHEN 0 THEN ''Desktop''
          WHEN 1 THEN ''Laptop''
          WHEN 2 THEN ''Server''
          WHEN 3 THEN ''Printer''
          WHEN 4 THEN ''Switch''
          WHEN 5 THEN ''Router''
          END AS [PC TYPE]
          FROM VIEW_AAM_DEVICE_DETAIL
          GROUP BY type</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_6">
        <Sql>SELECT
          COUNT(ISNULL(manufacturer_id, 0)) AS [Devices],
          ISNULL(manufacturer, ''Unknown'') AS [MANUFACTURER]
          FROM VIEW_AAM_DEVICE_DETAIL A
          GROUP BY manufacturer</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_7">
        <Sql>SELECT
          COUNT(operating_system) AS [Devices],
          operating_system AS [Operating System]
          FROM VIEW_AAM_DEVICE_DETAIL A
          WHERE platform = 1
          GROUP BY operating_system</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_8">
        <Sql>SELECT
          COUNT(operating_system) AS [Devices],
          operating_system AS [Operating System]
          FROM VIEW_AAM_DEVICE_DETAIL A
          WHERE platform = 2
          GROUP BY operating_system</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_9">
        <Sql>SELECT
          COUNT(operating_system) AS [Devices],
          operating_system AS [Operating System]
          FROM VIEW_AAM_DEVICE_DETAIL A
          WHERE platform = 3
          GROUP BY operating_system</Sql>
      </Query>
      <ResultSchema>
        <DataSet Name="ADM">
          <View Name="CustomSqlQuery">
            <Field Name="DEVICES" Type="Int32" />
          </View>
          <View Name="CustomSqlQuery_1">
            <Field Name="CONFLICTS" Type="Int32" />
          </View>
          <View Name="CustomSqlQuery_2">
            <Field Name="NOT AGENT" Type="Int32" />
          </View>
          <View Name="CustomSqlQuery_3">
            <Field Name="ACTUALIZED" Type="Int32" />
          </View>
          <View Name="CustomSqlQuery_4">
            <Field Name="QUANTITY" Type="Int32" />
            <Field Name="STATE" Type="String" />
          </View>
          <View Name="CustomSqlQuery_5">
            <Field Name="Devices" Type="Int32" />
            <Field Name="PC TYPE" Type="String" />
          </View>
          <View Name="CustomSqlQuery_6">
            <Field Name="Devices" Type="Int32" />
            <Field Name="MANUFACTURER" Type="String" />
          </View>
          <View Name="CustomSqlQuery_7">
            <Field Name="Devices" Type="Int32" />
            <Field Name="Operating System" Type="String" />
          </View>
          <View Name="CustomSqlQuery_8">
            <Field Name="Devices" Type="Int32" />
            <Field Name="Operating System" Type="String" />
          </View>
          <View Name="CustomSqlQuery_9">
            <Field Name="Devices" Type="Int32" />
            <Field Name="Operating System" Type="String" />
          </View>
        </DataSet>
      </ResultSchema>
      <ConnectionOptions CloseConnection="true" />
    </SqlDataSource>
  </DataSources>
  <Items>
   <Card ComponentName="cardDashboardItem1" Name="Dispositivos" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource2" DataMember="CustomSqlQuery">
      <DataItems>
        <Measure DataMember="DEVICES" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>										
      </DataItems>
      <FormatRules>
        <CardItemDeltaFormatRule Name="Format Rule 1" LayoutItemApplyTo="AllElements" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="GreaterOrEqual">
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
        <CardItemDeltaFormatRule Name="Format Rule 2" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="GreaterOrEqual">
            <IconSettings IconType="Rating4FilledBoxes" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
      </FormatRules>
      <Card Name="Devices">
        <ActualValue DefaultId="DataItem0" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
    </Card>
    <Pie ComponentName="pieDashboardItem1" Name="DevicesByStatus" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_4" PieType="Donut" LabelContentType="ArgumentAndValue" TooltipContentType="Percent" ShowPieCaptions="false">
      <ColoringOptions MeasuresColoringMode="Hue" />
      <DataItems>
        <Measure DataMember="QUANTITY" DefaultId="DataItem0" />
        <Dimension DataMember="STATE" DefaultId="DataItem1" />
        <Dimension DataMember="QUANTITY" DefaultId="DataItem2" />
      </DataItems>
      <Arguments>
        <Argument DefaultId="DataItem1" />
        <Argument DefaultId="DataItem2" />
      </Arguments>
      <Values>
        <Value DefaultId="DataItem0" />
      </Values>
    </Pie>
    <Card ComponentName="cardDashboardItem2" Name="Dispositivos actualizados" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_3">
      <DataItems>
        <Measure DataMember="ACTUALIZED" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>														   
      </DataItems>
      <FormatRules>
        <CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="GreaterOrEqual">
            <IconSettings IconType="IndicatorGreenCheck" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
      </FormatRules>
      <Card Name="Updated">
        <ActualValue DefaultId="DataItem0" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
    </Card>
    <Chart ComponentName="chartDashboardItem1" Name="DevicesByManufacturer" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_6">
      <DataItems>
        <Dimension DataMember="MANUFACTURER" DefaultId="DataItem1" />
        <Measure DataMember="Devices" DefaultId="DataItem0" />
      </DataItems>
      <Arguments>
        <Argument DefaultId="DataItem1" />
      </Arguments>
      <Panes>
        <Pane Name="Pane 1">
          <AxisY Title="Devices" />
          <Series>
            <Simple>
              <Value DefaultId="DataItem0" />
            </Simple>
          </Series>
        </Pane>
      </Panes>
      <ChartLegend Visible="false" />
      <AxisX Reverse="true" />
    </Chart>
    <Chart ComponentName="chartDashboardItem2" Name="DevicesByType" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_5">
      <ColoringOptions MeasuresColoringMode="None" />
      <DataItems>
        <Dimension DataMember="PC TYPE" DefaultId="DataItem1" />
        <Measure DataMember="Devices" DefaultId="DataItem0" />
      </DataItems>
      <Arguments>
        <Argument DefaultId="DataItem1" />
      </Arguments>
      <Panes>
        <Pane Name="Pane 1">
          <AxisY Title="Devices" />
          <Series>
            <Simple Name="Devices">
              <Value DefaultId="DataItem0" />
            </Simple>
          </Series>
        </Pane>
      </Panes>
    </Chart>
    <Grid ComponentName="gridDashboardItem1" Name="WindowsVersions" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_7">
      <DataItems>
        <Dimension DataMember="Operating System" DefaultId="DataItem0" Name="OperatingSystem" />
        <Measure DataMember="Devices" DefaultId="DataItem1" />
      </DataItems>
      <GridColumns>
        <GridDimensionColumn>
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Name="Devices">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions EnableBandedRows="true" ShowHorizontalLines="false" ShowVerticalLines="false" ColumnWidthMode="Manual" />
    </Grid>
    <Grid ComponentName="gridDashboardItem2" Name="MacVersions" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_9">
      <DataItems>
        <Dimension DataMember="Operating System" DefaultId="DataItem0" Name="OperatingSystem" />
        <Measure DataMember="Devices" DefaultId="DataItem1" />
      </DataItems>
      <GridColumns>
        <GridDimensionColumn>
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Name="Devices">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions EnableBandedRows="true" ShowHorizontalLines="false" ShowVerticalLines="false" WordWrap="true" />
    </Grid>
    <Grid ComponentName="gridDashboardItem3" Name="LinuxVersions" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_8">
      <DataItems>
        <Dimension DataMember="Operating System" DefaultId="DataItem0" Name="OperatingSystem" />
        <Measure DataMember="Devices" DefaultId="DataItem1" />
      </DataItems>
      <GridColumns>
        <GridDimensionColumn>
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Name="Devices">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions EnableBandedRows="true" ShowHorizontalLines="false" ShowVerticalLines="false" WordWrap="true" />
    </Grid>
    <Card ComponentName="cardDashboardItem3" Name="Dispositivos con conflicto" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_1">
      <DataItems>
        <Measure DataMember="CONFLICTS" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>
      </DataItems>
      <FormatRules>
        <CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="GreaterOrEqual">
            <IconSettings IconType="IndicatorCircledYellowExclamation" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
      </FormatRules>
      <Card Name="WithConflicts">
        <ActualValue DefaultId="DataItem0" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
    </Card>
    <Card ComponentName="cardDashboardItem4" Name="Dispositivos sin agente" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_2">
      <DataItems>
        <Measure DataMember="NOT AGENT" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>
      </DataItems>
      <FormatRules>
        <CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="GreaterOrEqual">
            <IconSettings IconType="IndicatorCircledRedCross" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
      </FormatRules>
      <Card Name="WithoutAgent">
        <ActualValue DefaultId="DataItem0" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
    </Card>
  </Items>
  <ColorScheme>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-15969158">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="status" />
          <Value Type="System.String" Value="not update" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-10125922">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="status" />
          <Value Type="System.String" Value="not inventoried" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-13910304">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="type" />
          <Value Type="System.String" Value="Desktop" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-10125922">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="type" />
          <Value Type="System.String" Value="Laptop" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-12396900">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="type" />
          <Value Type="System.String" Value="Unknown" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-13910304">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="Apple Inc." />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-10125922">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="Dell Inc." />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-12396900">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="Hewlett-Packard" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-5011812">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="HP" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-686993">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="Intel Corporation" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-2070454">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="LENOVO" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-11637092">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="Unknown" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-16734053">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="VMware, Inc." />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
  </ColorScheme>
  <LayoutTree>
    <LayoutGroup Orientation="Vertical" Weight="100">
      <LayoutGroup Weight="51.461988304093566">
        <LayoutItem DashboardItem="cardDashboardItem1" Weight="16.791443850267381" />
        <LayoutGroup Orientation="Vertical" Weight="17.005347593582886">
          <LayoutItem DashboardItem="cardDashboardItem2" Weight="31.818181818181817" />
          <LayoutItem DashboardItem="cardDashboardItem3" Weight="25.757575757575758" />
          <LayoutItem DashboardItem="cardDashboardItem4" Weight="25.378787878787879" />
        </LayoutGroup>
        <LayoutItem DashboardItem="pieDashboardItem1" Weight="33.689839572192511" />
        <LayoutItem DashboardItem="chartDashboardItem2" Weight="32.513368983957221" />
      </LayoutGroup>
      <LayoutGroup Weight="48.538011695906434">
        <LayoutItem DashboardItem="chartDashboardItem1" Weight="42.5668449197861" />
        <LayoutItem DashboardItem="gridDashboardItem1" Weight="21.069518716577541" />
        <LayoutItem DashboardItem="gridDashboardItem3" Weight="19.251336898395721" />
        <LayoutItem DashboardItem="gridDashboardItem2" Weight="17.112299465240643" />
      </LayoutGroup>
    </LayoutGroup>
  </LayoutTree>
</Dashboard>'

EXEC METADATA_DASHBOARD
     @name          = 'DASH_DEVICE_MONITOR',
     @folder        = @aamFolder,
     @order         = 1,
     @definition    = @xmlDefinitionDevice,
     @frecuency     = 60,
     @description   = 'DASH_DEVICE_MONITOR_DESCRIPTION',
	 @id            = @documentDeviceId OUTPUT

	PRINT 'AAM - Dashboard - Monitor de Dispositivos'   

BEGIN
DECLARE @documentPatchId    INT, 
		@folderPatchId	    INT,
		@dashboardPatchFolder    INT,
		@apmFolder          INT,
		@rootPatch          INT,
		@documentDefinitionPatch NVARCHAR(MAX)

-- Carpeta de ADM
SELECT @rootPatch = fold_id 
FROM   AFW_FOLDER
WHERE  fold_parent IS NULL 
AND    fold_name           = 'ADM'
AND    fold_application_id = 32

--  Carpeta de tableros
SELECT @dashboardPatchFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = @rootPatch  
AND    fold_name   = 'Dashboards'

--  Carpeta de aam para tableros
SELECT @apmFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = @dashboardPatchFolder  
AND    fold_name   = 'Dashboards_APM'


SET @documentDefinitionPatch  = '<?xml version="1.0" encoding="utf-8"?>
<Dashboard CurrencyCulture="es-CO">
	<Title Text="PatchMonitor" Alignment="Left"> </Title>
	<DataSources>
		<SqlDataSource Name="ADM" ComponentName="sqlDataSource1">
			<Connection Name="Connection" ProviderKey="MSSqlServer">
				<Parameters>
					<Parameter Name="server" Value="" />
					<Parameter Name="database" Value="" />
					<Parameter Name="useIntegratedSecurity" Value="False" />
					<Parameter Name="read only" Value="1" />
					<Parameter Name="generateConnectionHelper" Value="false" />
					<Parameter Name="userid" Value="" />
					<Parameter Name="password" Value="" />
				</Parameters>
			</Connection>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery">
				<Sql>SELECT COUNT(ID)AS [PATCH] FROM V_APM_PATCH_MAIN</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_1">
				<Sql>            
				SELECT            
				COUNT(ID) AS [QUANTITY DOWNLOAD]            
				FROM V_APM_PATCH_MAIN A 
				WHERE download_status_id = 3      
				</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_2">
				<Sql>        
				SELECT    
				COUNT(ID) AS [QUANTITY DOWNLOADING]  
				FROM V_APM_PATCH_MAIN A  
				WHERE download_status_id = 2   
				</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_3">
				<Sql>
				SELECT
				COUNT(ID) AS [QUANTITY PENDING_DOWNLOAD]
				FROM V_APM_PATCH_MAIN A  
				WHERE download_status_id = 1   
				</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_4">
				<Sql>  
				SELECT    
				COUNT(ID)AS [NOT INSTAL]   
				FROM V_APM_PATCH_MAIN A   
				WHERE is_installed = 0  
				</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_5">
				<Sql>      
				SELECT   
				COUNT(A.id)AS [QUANTITY], B.name
				FROM V_APM_PATCH_MAIN A     
				LEFT JOIN APM_SEVERITY B ON A.severity_id = B.id      
				GROUP BY B.name   
				</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_6">
				<Sql>        
				SELECT      
				COUNT(A.id)AS [QUANTITY], ISNULL(B.name, ''Unknown'')AS [TYPE]        
				FROM V_APM_PATCH_MAIN A      
				LEFT JOIN APM_PATCH_TYPE B ON A.patch_type_id = B.id 
				GROUP BY B.name      
				</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_7">
				<Sql>      
				SELECT TOP 10   
				COUNT(B.device_id)AS [Devices], C.name AS [Patch]   
				FROM AAM_DEVICE_APPLICATION A   
				INNER JOIN AAM_DEVICE_SOFTWARE B ON A.id = B.id     
				INNER JOIN VIEW_AAM_SOFTWARE_VERSION C ON B.software_id = C.id  
				WHERE  C.type = 2 AND DATEDIFF(DAY, date, GETDATE()) = 7
				GROUP BY C.name
				ORDER BY [Devices] DESC 
				</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_8">
				<Sql>     
				SELECT TOP 10  
				CONCAT(f.title,'' '', L.short_name) AS [Patch], COUNT(DISTINCT A.ID) AS [Pending Installations]      
				FROM VIEW_AAM_DEVICE A       
				JOIN APM_SHAVLIK_SCAN_RESULT B ON A.id = B.device_id     
				JOIN APM_SCANNED_PRODUCTS C ON B.id = C.scan_result_id   
				JOIN APM_SCANNED_PATCHES D ON C.id = D.scaned_product_id   
				JOIN APM_PATCH_DETAIL P ON D.patch_id = P.id
				JOIN APM_BULLETIN_DETAIL F ON F.id = P.bulletin_id 
				JOIN APM_REGION E ON D.region_id = E.id          
				JOIN APM_LANGUAGE L ON L.id = E.language_id 
				WHERE d.is_installed = 0       
				GROUP BY P.ID,f.title, L.short_name   
				ORDER BY [Pending Installations] DESC 
				</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_9">
				<Sql>
				SELECT TOP 10
				scanned_by AS [Device], SUM([Patchs]) AS [Patchs]
				FROM (
				SELECT 
				A.scanned_by, COUNT(DISTINCT(CONCAT(PM.id, PM.language_id))) AS [Patchs]
				FROM APM_SHAVLIK_SCAN_RESULT A
				INNER JOIN APM_SCANNED_PRODUCTS B ON B.scan_result_id = A.id   
				INNER JOIN APM_SCANNED_PATCHES C ON C.scaned_product_id = B.id   
				INNER JOIN APM_REGION R ON C.region_id = R.id    
				INNER JOIN APM_LANGUAGE L ON L.id = R.language_id   
				INNER JOIN V_APM_PATCH_MAIN PM ON PM.id = c.patch_id AND PM.language_id = L.id AND PM.is_installed = c.is_installed  
				WHERE c.is_installed = 0         
				GROUP BY  A.scanned_by    
				UNION ALL         
				SELECT        
				A.scanned_by, COUNT(DISTINCT(CONCAT(PM.id, PM.language_id))) AS [Patchs] 
				FROM APM_SHAVLIK_SCAN_RESULT A       
				INNER JOIN APM_SCANNED_PRODUCTS B ON B.scan_result_id = A.id   
				INNER JOIN APM_APPLICABLE_SERV_PACK C ON C.scaned_product_id = B.id      
				INNER JOIN APM_REGION R ON C.region_id = R.id        
				INNER JOIN APM_LANGUAGE L ON L.id = R.language_id  
				INNER JOIN V_APM_PATCH_MAIN PM ON PM.id = c.service_pack_id AND PM.language_id = L.id 
				GROUP BY A.scanned_by         
				) AS   P        
				GROUP BY scanned_by        
				ORDER BY [Patchs] DESC  
				</Sql>
			</Query>
			<ResultSchema>
				<DataSet Name="ADM">
					<View Name="CustomSqlQuery">
						<Field Name="PATCH" Type="Int32" />
					</View>
					<View Name="CustomSqlQuery_1">
						<Field Name="QUANTITY DOWNLOAD" Type="Int32" />
					</View>
					<View Name="CustomSqlQuery_2">
						<Field Name="QUANTITY DOWNLOADING" Type="Int32" />
					</View>
					<View Name="CustomSqlQuery_3">
						<Field Name="QUANTITY PENDING_DOWNLOAD" Type="Int32" />
					</View>
					<View Name="CustomSqlQuery_4">
						<Field Name="NOT INSTAL" Type="Int32" />
					</View>
					<View Name="CustomSqlQuery_5">
						<Field Name="QUANTITY" Type="Int32" />
						<Field Name="name" Type="String" />
					</View>
					<View Name="CustomSqlQuery_7">
						<Field Name="Devices" Type="Int32" />
						<Field Name="Patch" Type="String" />
					</View>
					<View Name="CustomSqlQuery_8">
						<Field Name="Patch" Type="String" />
						<Field Name="Pending Installations" Type="Int32" />
					</View>
					<View Name="CustomSqlQuery_9">
						<Field Name="Device" Type="String" />
						<Field Name="Patchs" Type="Int32" />
					</View>
				</DataSet>
			</ResultSchema>
			<ConnectionOptions CloseConnection="true" />
		</SqlDataSource>
	</DataSources>
	<Items>
		<Card ComponentName="customItemDashboardItem1" Name="Parches" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery">
		  <DataItems>
			<Measure DataMember="PATCH" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>										
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" LayoutItemApplyTo="AllElements" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
			<CardItemDeltaFormatRule Name="Format Rule 2" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="Rating1FilledBox" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="SoftwarePatches">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Pie ComponentName="pieDashboardItem1" Name="PatchesByType" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_6" PieType="Donut" LabelContentType="ArgumentAndValue" TooltipContentType="Percent" ShowPieCaptions="false">
			<ColoringOptions MeasuresColoringMode="Hue" />
			<DataItems>
				<Measure DataMember="QUANTITY" DefaultId="DataItem0" />
				<Dimension DataMember="TYPE" DefaultId="DataItem1" />
			</DataItems>
			<Arguments>
				<Argument DefaultId="DataItem1" />
			</Arguments>
			<Values>
				<Value DefaultId="DataItem0" />
			</Values>
		</Pie>
		<Card ComponentName="customItemDashboardItem2" Name="Parches en descarga" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_2">
		  <DataItems>
			<Measure DataMember="QUANTITY DOWNLOADING" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="DirectionalYellowDownInclineArrow" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="InDownload">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Card ComponentName="customItemDashboardItem3" Name="Parches descargados" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_1">
		  <DataItems>
			<Measure DataMember="QUANTITY DOWNLOAD" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="DirectionalRedDownArrow" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="PatchesDownloaded">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Grid ComponentName="gridDashboardItem1" Name="DevicesRequiringPatchesTop10" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_9">
			<DataItems>
				<Dimension DataMember="Device" SortOrder="Descending" SortByMeasure="DataItem1" DefaultId="DataItem0" Name="Device" />
				<Measure DataMember="Patchs" DefaultId="DataItem1" />
			</DataItems>
			<GridColumns>
				<GridDimensionColumn>
					<Dimension DefaultId="DataItem0" />
				</GridDimensionColumn>
				<GridMeasureColumn Name="Patch">
					<Measure DefaultId="DataItem1" />
				</GridMeasureColumn>
			</GridColumns>
			<GridOptions EnableBandedRows="true" ShowHorizontalLines="false" ShowVerticalLines="false" WordWrap="true" />
		</Grid>
		<Card ComponentName="customItemDashboardItem5" Name="Parches sin instalar" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_4">
		  <DataItems>
			<Measure DataMember="NOT INSTAL" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="IndicatorRedCross" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="PatchesNotInstalled">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Card ComponentName="customItemDashboardItem4" Name="Parches programados" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_3">
		  <DataItems>
			<Measure DataMember="QUANTITY PENDING_DOWNLOAD" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="Rating3QuartersGrayCircle" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="PatchesScheduled">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Pie ComponentName="pieDashboardItem2" Name="PatchesBySeverity" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_5" PieType="Donut" LabelContentType="ArgumentAndValue" TooltipContentType="Percent" ShowPieCaptions="false">
			<ColoringOptions MeasuresColoringMode="Hue" />
			<DataItems>
				<Dimension DataMember="name" DefaultId="DataItem1" />
				<Measure DataMember="QUANTITY" DefaultId="DataItem0" />
			</DataItems>
			<Arguments>
				<Argument DefaultId="DataItem1" />
			</Arguments>
			<Values>
				<Value DefaultId="DataItem0" />
			</Values>
		</Pie>
		<Grid ComponentName="gridDashboardItem2" Name="InstalledLastWeekTop10Devices" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_7">
			<DataItems>
				<Dimension DataMember="Patch" SortOrder="Descending" SortByMeasure="DataItem1" DefaultId="DataItem0" Name="Patch" />
				<Measure DataMember="Devices" DefaultId="DataItem1" />
			</DataItems>
			<GridColumns>
				<GridDimensionColumn>
					<Dimension DefaultId="DataItem0" />
				</GridDimensionColumn>
				<GridMeasureColumn Name="Devices">
					<Measure DefaultId="DataItem1" />
				</GridMeasureColumn>
			</GridColumns>
			<GridOptions EnableBandedRows="true" ShowHorizontalLines="false" ShowVerticalLines="false" WordWrap="true" />
		</Grid>
		<Grid ComponentName="gridDashboardItem3" Name="PendingInstallationTop10Updates" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_8">
			<DataItems>
				<Dimension DataMember="Patch" SortOrder="Descending" SortByMeasure="DataItem1" DefaultId="DataItem0" Name="Patch" />
				<Measure DataMember="Pending Installations" DefaultId="DataItem1" />
			</DataItems>
			<GridColumns>
				<GridDimensionColumn>
					<Dimension DefaultId="DataItem0" />
				</GridDimensionColumn>
				<GridMeasureColumn Name="ASD_PendingInstallations">
					<Measure DefaultId="DataItem1" />
				</GridMeasureColumn>
			</GridColumns>
			<GridOptions EnableBandedRows="true" ShowHorizontalLines="false" ShowVerticalLines="false" WordWrap="true" />
		</Grid>
	</Items>
	<ColorScheme>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-15969158">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="status" />
					<Value Type="System.String" Value="not update" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-10125922">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="status" />
					<Value Type="System.String" Value="not inventoried" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-13910304">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="type" />
					<Value Type="System.String" Value="Desktop" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-10125922">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="type" />
					<Value Type="System.String" Value="Laptop" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-12396900">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="type" />
					<Value Type="System.String" Value="Unknown" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-13910304">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="manufacturer" />
					<Value Type="System.String" Value="Apple Inc." />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-10125922">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="manufacturer" />
					<Value Type="System.String" Value="Dell Inc." />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-12396900">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="manufacturer" />
					<Value Type="System.String" Value="Hewlett-Packard" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-5011812">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="manufacturer" />
					<Value Type="System.String" Value="HP" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-686993">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="manufacturer" />
					<Value Type="System.String" Value="Intel Corporation" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-2070454">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="manufacturer" />
					<Value Type="System.String" Value="LENOVO" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-11637092">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="manufacturer" />
					<Value Type="System.String" Value="Unknown" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-16734053">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="manufacturer" />
					<Value Type="System.String" Value="VMware, Inc." />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="CustomSqlQuery_5" Color="-10125922">
			<MeasureKey>
				<Definition DataMember="QUANTITY" />
			</MeasureKey>
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="name" />
					<Value Type="System.String" Value="None" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="CustomSqlQuery_5" Color="-13910304">
			<MeasureKey>
				<Definition DataMember="QUANTITY" />
			</MeasureKey>
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="name" />
					<Value Type="System.String" Value="Important" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
	</ColorScheme>
	<LayoutTree>
		<LayoutGroup Weight="100">
			<LayoutGroup Orientation="Vertical" Weight="100">
				<LayoutGroup Weight="108.25824302560869">
					<LayoutGroup Orientation="Vertical" Weight="192.84409286377124">
						<LayoutGroup Weight="100">
							<LayoutGroup Orientation="Vertical" Weight="122.05074044399238">
								<LayoutGroup Weight="141.39274227771887">
									<LayoutItem DashboardItem="customItemDashboardItem1" Weight="117.89195585082612" />
									<LayoutGroup Orientation="Vertical" Weight="118.80879828645135">
										<LayoutItem DashboardItem="customItemDashboardItem3" Weight="101.40570466723055" />
										<LayoutItem DashboardItem="customItemDashboardItem2" Weight="102.92322409125549" />
									</LayoutGroup>
								</LayoutGroup>
								<LayoutGroup Weight="74.416896330824343">
									<LayoutGroup Orientation="Vertical" Weight="105.77532144199515">
										<LayoutGroup Weight="105.77532144199515">
											<LayoutItem DashboardItem="customItemDashboardItem5" Weight="105.77532144199515" />
											<LayoutItem DashboardItem="customItemDashboardItem4" Weight="105.77532144199515" />
										</LayoutGroup>
									</LayoutGroup>
								</LayoutGroup>
							</LayoutGroup>
							<LayoutItem DashboardItem="pieDashboardItem2" Weight="121.61629423239272" />
							<LayoutItem DashboardItem="pieDashboardItem1" Weight="121.61629423239272" />
						</LayoutGroup>
					</LayoutGroup>
				</LayoutGroup>
				<LayoutGroup Weight="101.84600717487245">
					<LayoutGroup Orientation="Vertical" Weight="76.057460482923616">
						<LayoutGroup Weight="114.12530991194515">
							<LayoutItem DashboardItem="gridDashboardItem2" Weight="109.24566668182473" />
							<LayoutItem DashboardItem="gridDashboardItem3" Weight="109.24566668182473" />
							<LayoutItem DashboardItem="gridDashboardItem1" Weight="109.24566668182473" />
						</LayoutGroup>
					</LayoutGroup>
				</LayoutGroup>
			</LayoutGroup>
		</LayoutGroup>
	</LayoutTree>
</Dashboard>'

EXEC METADATA_DASHBOARD
     @name          = 'DASH_PATCH_MONITOR',
     @folder        = @apmFolder,
     @order         = 1,
     @definition    = @documentDefinitionPatch,
     @frecuency     = 60,
     @description   = 'DASH_PATCH_MONITOR_DESCRIPTION',
	 @id            = @documentPatchId OUTPUT


PRINT 'AAM - Dashboard - Monitor de Dispositivos'   
END
GO
BEGIN
DECLARE @documentSoftwareId INT, 
		@folderSoftwarId    INT,
		@dashboardSoftwareFolder    INT,
		@asmFolder          INT,
		@rootSoftware       INT,
		@documentDefinitionSoftware NVARCHAR(MAX)

-- Carpeta de ADM
SELECT @rootSoftware = fold_id 
FROM   AFW_FOLDER
WHERE  fold_parent IS NULL 
AND    fold_name           = 'ADM'
AND    fold_application_id = 32

--  Carpeta de tableros
SELECT @dashboardSoftwareFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = @rootSoftware  
AND    fold_name   = 'Dashboards'

--  Carpeta de aam para tableros
SELECT @asmFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = @dashboardSoftwareFolder  
AND    fold_name   = 'Dashboards_ASM'


SET @documentDefinitionSoftware='<?xml version="1.0" encoding="utf-8"?>
<Dashboard CurrencyCulture="es-CO">
	<Title Text="DASH_SOFTWARE_MONITOR" Alignment="Left"> </Title>
	<DataSources>
		<SqlDataSource ComponentName="sqlDataSource1">
			<Name>ADM</Name>
			<Connection Name="Connection" ProviderKey="MSSqlServer">
				<Parameters>
					<Parameter Name="server" Value="BG-D-APRENDIZ01" />
					<Parameter Name="database" Value="MTPreventaTest" />
					<Parameter Name="useIntegratedSecurity" Value="False" />
					<Parameter Name="read only" Value="1" />
					<Parameter Name="generateConnectionHelper" Value="false" />
					<Parameter Name="userid" Value="sa" />
					<Parameter Name="password" Value="Aranda2017" />
				</Parameters>
			</Connection>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_1">
				<Sql>SELECT COUNT(ID) AS [SOFT QUANTITY],
				CASE   
				WHEN platform = 1 THEN ''Windows''  
				WHEN platform = 2 THEN ''Linux''  
				WHEN platform = 3 THEN ''Mac''  
				END AS [PLATFORM] 
				FROM (  
				SELECT  
				ID,  
				platform 
				FROM VIEW_AAM_SOFTWARE_VERSION) AS X 
				GROUP BY platform</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_2">
				<Sql>SELECT  
				COUNT(ID) AS [NOT PERMITTED] 
				FROM VIEW_AAM_SOFTWARE_VERSION 
				WHERE is_permitted = 2</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_3">
				<Sql>SELECT * FROM (  
				SELECT COUNT(software_id) AS [NOT PERMITTED INSTALLS]   
				FROM (SELECT id FROM VIEW_AAM_SOFTWARE_VERSION WHERE is_permitted = 2) X  
				LEFT JOIN VIEW_ASM_DEVICE_SOFTWARE A ON X.id = A.software_id) AS X</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_4">
				<Sql>SELECT 
				COUNT(id)AS [QUANTITY LIC] 
				FROM ASM_LICENSING</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_5">
				<Sql>SELECT  
				ISNULL(SUM(unit_cost), 0) AS [VALUE LIC]
				FROM ASM_LICENSE_PACKAGE 
				WHERE expiration_date &gt; GETDATE()</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_7">
				<Sql>BEGIN 
				WITH LISENCIAS_VIGENTES AS (
				SELECT    
				SUM([QUANTITY]) AS [PACKAGE], id FROM (SELECT quantity AS [QUANTITY], X.id FROM ASM_LICENSING X 
				LEFT JOIN ASM_LICENSE_PACKAGE Z ON Z.license_package_id = X.id WHERE Z.expiration_date &gt; GETDATE()) AS X 
				GROUP BY ID  
				),  
				INSTALACIONES AS (   
				SELECT COUNT(device_id)AS [DEVICES], license_package_id FROM( 
				SELECT DISTINCT device_id, license_package_id FROM VIEW_AAM_SOFTWARE_VERSION X  
				LEFT JOIN VIEW_ASM_DEVICE_SOFTWARE A ON X.id = A.software_id 
				LEFT JOIN ASM_LICENSE_SOFTWARE B ON B.software_id = X.id   
				WHERE B.license_package_id IS NOT NULL)AS X    
				GROUP BY license_package_id  
				)   

				SELECT COUNT([LICENCIAMIENTO]) AS [LIC SUBUTILIZADO] FROM ( 
				SELECT   
				CASE WHEN [PACKAGE] &gt;= ([DEVICES]*1.2) THEN ''Sl'' END AS [LICENCIAMIENTO]
				FROM LISENCIAS_VIGENTES A    
				INNER JOIN INSTALACIONES B ON A.ID = B.license_package_id) AS X 
				END</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_8">
				<Sql>SELECT COUNT(id) [LIC EXPIRED] FROM (  
				SELECT   
				id  
				FROM(  
				SELECT    
				MAX(expiration_date) AS [DATE], id   
				FROM ASM_LICENSE_PACKAGE 
				GROUP BY id) AS X WHERE DATE &lt; GETDATE())AS X</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_9">
				<Sql>SELECT COUNT(EXPIRACION) AS[LIC FOR EXPIRED] FROM( 
				SELECT  
				CASE  
				WHEN X.DATEDIFF &lt; 30 AND X.DATEDIFF &gt; 0 THEN ''Por expirar''  
				END AS [EXPIRACION] 
				FROM(  
				SELECT 
				ISNULL((MAX(DATEDIFF(DAY, GETDATE(), expiration_date))), 0) AS [DATEDIFF], license_package_id  
				FROM ASM_LICENSE_PACKAGE X 
				GROUP BY license_package_id) AS X) AS X  WHERE [EXPIRACION] IS NOT NULL</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_10">
				<Sql>SELECT TOP 10 package_name, COUNT(ERRORS)AS [FAILURE], COUNT(SUCCESS)AS [SUCCESSFULL], COUNT(id)AS [EXECUTIONS] FROM (  
				SELECT 
				A.id,   
				A.name AS[package_name],   
				CASE WHEN B.status = 4 OR B.status = 6 THEN ''E'' END AS [ERRORS], 
				CASE WHEN B.status = 3 THEN ''S'' END AS [SUCCESS] 
				FROM ASD_SETUPPROJECT A  
				INNER JOIN ASD_EXECUTION B ON  A.id= B.setupproject_id 
				WHERE B.status = 3 OR B.status = 6 OR B.status = 4 AND DATEDIFF(DAY, B.execution_date, GETDATE()) &lt;= 30)AS X 
				GROUP BY package_name 
				ORDER BY [FAILURE], [SUCCESSFULL] DESC</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery_6">
				<Sql>BEGIN 
				WITH LISENCIAS_VIGENTES AS (SELECT
				SUM([QUANTITY]) AS [PACKAGE], id FROM (SELECT quantity AS [QUANTITY], X.id FROM ASM_LICENSING X    
				LEFT JOIN ASM_LICENSE_PACKAGE Z ON Z.license_package_id = X.id WHERE Z.expiration_date &gt; GETDATE()) AS X 
				GROUP BY ID     
				),       
				INSTALACIONES AS (  
				SELECT COUNT(device_id)AS [DEVICES], license_package_id FROM(   
				SELECT DISTINCT device_id, license_package_id FROM VIEW_AAM_SOFTWARE_VERSION X  
				LEFT JOIN VIEW_ASM_DEVICE_SOFTWARE A ON X.id = A.software_id          
				LEFT JOIN ASM_LICENSE_SOFTWARE B ON B.software_id = X.id    
				WHERE B.license_package_id IS NOT NULL)AS X         
				GROUP BY license_package_id    
				)  
				

				SELECT COUNT([LICENCIAMIENTO]) AS [LIC INCOMPLETO] FROM ( 
				SELECT        
				CASE WHEN ([PACKAGE] - B.DEVICES) &lt; 0 THEN ''Fl'' END AS [LICENCIAMIENTO]
				FROM LISENCIAS_VIGENTES A  
				INNER JOIN INSTALACIONES B ON A.ID = B.license_package_id) AS X
				END</Sql>
			</Query>
			<Query Type="CustomSqlQuery" Name="CustomSqlQuery">
				<Sql>SELECT 
				COUNT(ID) AS [SOFT QUANTITY] 
				FROM VIEW_AAM_SOFTWARE_VERSION
				WHERE PARENT_ID IS NULL</Sql>
			</Query>
			<ResultSchema>
				<DataSet Name="ADM">
					<View Name="VIEW_ADM_SOFTWARE_DASHBOARD">
						<Field Name="item" Type="Int32" />
						<Field Name="name" Type="String" />
						<Field Name="type_software" Type="String" />
						<Field Name="operating_system" Type="String" />
						<Field Name="install_not_allowed" Type="String" />
					</View>
					<View Name="VIEW_ADM_SW_COMPLETE_EXECUTION_PROJECT">
						<Field Name="package" Type="String" />
						<Field Name="successfull" Type="Int32" />
						<Field Name="failure" Type="Int32" />
					</View>
					<View Name="VIEW_ADM_SW_CURRENTLY_RUNNING">
						<Field Name="currentlyrunning" Type="Int32" />
					</View>
					<View Name="VIEW_ADM_SW_LICENCED">
						<Field Name="software_licensed" Type="Int32" />
					</View>
					<View Name="VIEW_ADM_SW_LICENSING_EXPIRED">
						<Field Name="Expired" Type="Int32" />
					</View>
					<View Name="VIEW_ADM_SW_LICENSING_EXPIRING">
						<Field Name="expiring" Type="Int32" />
					</View>
					<View Name="VIEW_ADM_SW_OVER_LICENSED">
						<Field Name="Overlicensed" Type="Int32" />
					</View>
					<View Name="VIEW_ADM_SW_UNDER_LICENSED">
						<Field Name="UnderLicensed" Type="Int32" />
					</View>
					<View Name="InstallNotAllowed">
						<Field Name="notAllowed" Type="Int32" />
					</View>
					<View Name="Software">
						<Field Name="items" Type="Int32" />
					</View>
				</DataSet>
			</ResultSchema>
			<ConnectionOptions CloseConnection="true" />
		</SqlDataSource>
	</DataSources>
	<Items>
		<Card ComponentName="customItemDashboardItem1" Name="Cantidad de licenciamientos" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_4">
		  <DataItems>
			<Measure DataMember="QUANTITY LIC" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="IndicatorCircledGreenCheck" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="LicensingCount">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Pie ComponentName="pieDashboardItem2" Name="SoftwareByOS" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_1" PieType="Donut" LabelContentType="ArgumentAndValue" TooltipContentType="Percent" ShowPieCaptions="false">
			<ColoringOptions MeasuresColoringMode="None" />
			<DataItems>
				<Measure DataMember="SOFT QUANTITY" DefaultId="DataItem0" />
				<Dimension DataMember="PLATFORM" DefaultId="DataItem1" />
				<Dimension DataMember="SOFT QUANTITY" DefaultId="DataItem2" />
			</DataItems>
			<Arguments>
				<Argument DefaultId="DataItem1" />
				<Argument DefaultId="DataItem2" />
			</Arguments>
			<Values>
				<Value DefaultId="DataItem0" />
			</Values>
		</Pie>
		<Card ComponentName="customItemDashboardItem3" Name="Licenciamientos expirados" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_8">
		  <DataItems>
			<Measure DataMember="LIC EXPIRED" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="IndicatorRedCross" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="ExpiredLicenses">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Card ComponentName="customItemDashboardItem4" Name="Licenciamientos por expirar" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_9">
		  <DataItems>
			<Measure DataMember="LIC FOR EXPIRED" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="IndicatorCircledYellowExclamation" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="LicensesExpire">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Chart ComponentName="chartDashboardItem1" Name="DistributionProjectsLast30Days" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_10">
			<ColoringOptions MeasuresColoringMode="Hue" />
			<DataItems>
				<Dimension DataMember="package_name" DefaultId="DataItem2" />
				<Measure DataMember="FAILURE" DefaultId="DataItem0" />
				<Measure DataMember="SUCCESSFULL" DefaultId="DataItem1" />
			</DataItems>
			<Arguments>
				<Argument DefaultId="DataItem2" />
			</Arguments>
			<Panes>
				<Pane Name="Pane 1">
					<AxisY Title="Executions" />
					<Series>
						<Simple Name="Successful" SeriesType="StackedBar">
							<Value DefaultId="DataItem1" />
							<PointLabelOptions ContentType="Value" />
						</Simple>
						<Simple Name="Failure" SeriesType="StackedBar">
							<Value DefaultId="DataItem0" />
							<PointLabelOptions ContentType="Value" />
						</Simple>
					</Series>
				</Pane>
			</Panes>
		</Chart>
		<Card ComponentName="customItemDashboardItem6" Name="No permitido" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_2">
		  <DataItems>
			<Measure DataMember="NOT PERMITTED" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="IndicatorCircledRedCross" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="NotAllowed">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Card ComponentName="customItemDashboardItem5" Name="Cantidad software" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery">
		  <DataItems>
			<Measure DataMember="SOFT QUANTITY" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>										
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" LayoutItemApplyTo="AllElements" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
			<CardItemDeltaFormatRule Name="Format Rule 2" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="Rating4FilledBoxes" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="SoftwareCount">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Card ComponentName="customItemDashboardItem7" Name="Instalaciones no permitidas" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_3">
		  <DataItems>
			<Measure DataMember="NOT PERMITTED INSTALLS" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="IndicatorRedCross" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="UnauthorizedInstallations">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Card ComponentName="customItemDashboardItem2" Name="Licenciamientos subutilizados" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_7">
		  <DataItems>
			<Measure DataMember="LIC SUBUTILIZADO" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="IndicatorYellowExclamation" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="UnderutilizedLicenses">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Card ComponentName="customItemDashboardItem8" Name="Licenciamientos incompletos" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_6">
		  <DataItems>
			<Measure DataMember="LIC INCOMPLETO" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="ShapeYellowTriangle" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="IncompleteLicenses">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
		<Card ComponentName="customItemDashboardItem9" Name="Valor de licenciamiento vigente" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource1" DataMember="CustomSqlQuery_5">
		  <DataItems>
			<Measure DataMember="VALUE LIC" DefaultId="DataItem0">
			  <NumericFormat FormatType="General" />
			</Measure>														   
		  </DataItems>
		  <FormatRules>
			<CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
			  <FormatConditionValue Condition="GreaterOrEqual">
				<IconSettings IconType="ShapeGreenCircle" />
				<Value1 Type="System.Decimal" Value="0" />
			  </FormatConditionValue>
			</CardItemDeltaFormatRule>
		  </FormatRules>
		  <Card Name="CurrentLicensingValueNoConversion">
			<ActualValue DefaultId="DataItem0" />
			<AbsoluteVariationNumericFormat />
			<PercentVariationNumericFormat />
			<PercentOfTargetNumericFormat />
			<LayoutTemplate MinWidth="100" Type="Lightweight">
			  <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
			  <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
			  <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
			  <DeltaIndicator Visible="false" />
			  <Sparkline Visible="false" />
			</LayoutTemplate>
		  </Card>
		</Card>
	</Items>
	<ColorScheme>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_SW_COMPLETE_EXECUTION_PROJECT" Color="-65536">
			<MeasureKey>
				<Definition DataMember="failure" />
			</MeasureKey>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_SW_COMPLETE_EXECUTION_PROJECT" Color="-6177792">
			<MeasureKey>
				<Definition DataMember="successfull" />
			</MeasureKey>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_SOFTWARE_DASHBOARD" Color="-13910304">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="operating_system" />
					<Value Type="System.String" Value="Mac" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_SOFTWARE_DASHBOARD" Color="-10125922">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="operating_system" />
					<Value Type="System.String" Value="Windows" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_SOFTWARE_DASHBOARD" Color="-13910304">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="type_software" />
					<Value Type="System.String" Value="Actualización" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_SOFTWARE_DASHBOARD" Color="-10125922">
			<DimensionKeys>
				<DimensionKey>
					<Definition DataMember="type_software" />
					<Value Type="System.String" Value="Aplicación" />
				</DimensionKey>
			</DimensionKeys>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="CustomSqlQuery_10" Color="-6177792">
			<MeasureKey>
				<Definition DataMember="SUCCESSFULL" />
			</MeasureKey>
		</Entry>
		<Entry DataSource="sqlDataSource1" DataMember="CustomSqlQuery_10" Color="-65536">
			<MeasureKey>
				<Definition DataMember="FAILURE" />
			</MeasureKey>
		</Entry>
	</ColorScheme>
	<LayoutTree>
		<LayoutGroup Orientation="Vertical" Weight="100">
			<LayoutGroup Orientation="Vertical" Weight="100">
				<LayoutGroup Weight="105.91166451807689">
					<LayoutGroup Orientation="Vertical" Weight="54.7135941831986">
						<LayoutGroup Weight="173.82019024861336">
							<LayoutItem DashboardItem="customItemDashboardItem5" Weight="107.10149102891575" />
						</LayoutGroup>
						<LayoutGroup Weight="94.555042453873313">
							<LayoutItem DashboardItem="customItemDashboardItem6" Weight="128.12919061106985" />
							<LayoutItem DashboardItem="customItemDashboardItem7" Weight="124.69937430074307" />
						</LayoutGroup>
					</LayoutGroup>
					<LayoutGroup Orientation="Vertical" Weight="165.661961052979">
						<LayoutGroup Weight="121.89254210104248">
							<LayoutItem DashboardItem="pieDashboardItem2" Weight="136.05962066386266" />
							<LayoutGroup Orientation="Vertical" Weight="132.0511965435189">
								<LayoutItem DashboardItem="customItemDashboardItem1" Weight="165.97888527202986" />
								<LayoutItem DashboardItem="customItemDashboardItem9" Weight="93.2459257091733" />
							</LayoutGroup>
							<LayoutGroup Orientation="Vertical" Weight="161.89935070325822">
								<LayoutItem DashboardItem="customItemDashboardItem8" Weight="124.90301417328415" />
								<LayoutItem DashboardItem="customItemDashboardItem2" Weight="129.10843483582045" />
								<LayoutItem DashboardItem="customItemDashboardItem3" Weight="117.51765602425324" />
								<LayoutItem DashboardItem="customItemDashboardItem4" Weight="121.57963001202181" />
							</LayoutGroup>
						</LayoutGroup>
					</LayoutGroup>
				</LayoutGroup>
				<LayoutGroup Weight="121.01559826186781">
					<LayoutGroup Orientation="Vertical" Weight="185.71676387080615">
						<LayoutGroup Weight="191.51254065066374">
							<LayoutItem DashboardItem="chartDashboardItem1" Weight="191.51254065066374" />
						</LayoutGroup>
					</LayoutGroup>
				</LayoutGroup>
			</LayoutGroup>
		</LayoutGroup>
	</LayoutTree>
</Dashboard>'

EXEC METADATA_DASHBOARD
     @name          = 'DASH_SOFTWARE_MONITOR',
     @folder        = @asmFolder,
     @order         = 1,
     @definition    = @documentDefinitionSoftware,
     @frecuency     = 60,
     @description   = 'DASH_SOFTWARE_MONITOR_DESCRIPTION',
	 @id            = @documentSoftwareId OUTPUT


	PRINT 'AAM - Dashboard - Monitor de Dispositivos'   
END
GO
	BEGIN
DECLARE @documentPolicyId    INT, 
		@folderPolicyId	    INT,
		@dashboardPolicyFolder    INT,
		@apwmFolder          INT,
		@rootPolicy          INT,
		@documentDefinitionPolicy NVARCHAR(MAX)

SELECT @rootPolicy = fold_id 
FROM   AFW_FOLDER
WHERE  fold_parent IS NULL 
AND    fold_name           = 'ADM'
AND    fold_application_id = 32

SELECT @dashboardPolicyFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = 1  
AND    fold_name   = 'Dashboards'


SELECT @apwmFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_name   = 'Dashboards_APWM'


SET @documentDefinitionPolicy  = '<?xml version="1.0" encoding="utf-8"?>
<Dashboard CurrencyCulture="es-CO">
  <Title Text="DevicePoliciesNote" Alignment="Left"> </Title>
  <DataSources>
	<SqlDataSource Name="kilowattsAhorrados" ComponentName="dashboardSqlDataSource1">
	  <Connection Name="localhost_ADM_9.9_Connection" ProviderKey="MSSqlServer">
		<Parameters>
		  <Parameter Name="server" Value="" />
		  <Parameter Name="database" Value="" />
		  <Parameter Name="useIntegratedSecurity" Value="False" />
		  <Parameter Name="read only" Value="1" />
		  <Parameter Name="generateConnectionHelper" Value="false" />
		  <Parameter Name="userid" Value="" />
		  <Parameter Name="password" Value="" />
		</Parameters>
	  </Connection>
	  <Query Type="CustomSqlQuery" Name="KilowattsDispositivos">
		<Sql>
		  SELECT TOP 10 [device],
		  ROUND(SUM([saving_watts]),0)/1000 as [TotalKw]
		  FROM APWM_DEVICE_CONSUM_CUBE
		  GROUP BY [device]
		  ORDER BY [TotalKw] DESC
		</Sql>
	  </Query>
	  <Query Type="CustomSqlQuery" Name="killowatsporsemana">
		<Sql>
			  SELECT DATENAME(weekday, [date]) as [Day],
			  ROUND(SUM([saving_watts]),0)/1000				AS [TotalKw]
			  FROM APWM_CONSUMPTION_CUBE
			  GROUP BY DATENAME(weekday, [date]) 
			  ORDER BY DATENAME(weekday, [date]) 
		  </Sql>
	  </Query>
	  <Query Type="CustomSqlQuery" Name="Query">
		<Sql>SELECT
		  DATEPART(DAY,[date]) day,
		  ROUND(SUM([saving_watts]),0)/1000  as [TotalKw]
		  FROM	APWM_DEVICE_CONSUM_CUBE
		  GROUP BY DATEPART(DAY,[date])</Sql>
	  </Query>
	  <ResultSchema>
		<DataSet Name="kilowattsAhorrados">
		  <View Name="KilowattsDispositivos">
			<Field Name="device" Type="String" />
			<Field Name="TotalKw" Type="Double" />
		  </View>
		  <View Name="killowatsporsemana">
			<Field Name="Day" Type="String" />
			<Field Name="TotalKw" Type="Double" />
		  </View>
		  <View Name="Query">
			<Field Name="day" Type="Int32" />
			<Field Name="TotalKw" Type="Double" />
		  </View>
		</DataSet>
	  </ResultSchema>
	  <ConnectionOptions CloseConnection="true" />
	</SqlDataSource>
  </DataSources>
  <Items>
	<Pie ComponentName="pieDashboardItem2" Name="TotalKilowattsSavedWeek" DataSource="dashboardSqlDataSource1" DataMember="killowatsporsemana">
	  <DataItems>
		<Dimension DataMember="Day" DefaultId="DataItem0" />
		<Measure DataMember="TotalKw" DefaultId="DataItem1" />
	  </DataItems>
	  <Arguments>
		<Argument DefaultId="DataItem0" />
	  </Arguments>
	  <Values>
		<Value DefaultId="DataItem1" />
	  </Values>
	</Pie>
	<Grid ComponentName="gridDashboardItem1" Name="TotalKilowattsSavedPerDevice" DataSource="dashboardSqlDataSource1" DataMember="KilowattsDispositivos">
	  <DataItems>
		<Dimension DataMember="device" DefaultId="DataItem0" />
		<Dimension DataMember="TotalKw" DefaultId="DataItem1" />
	  </DataItems>
	  <GridColumns>
		<GridDimensionColumn Name="Devices">
		  <Dimension DefaultId="DataItem0" />
		</GridDimensionColumn>
		<GridDimensionColumn>
		  <Dimension DefaultId="DataItem1" />
		</GridDimensionColumn>
	  </GridColumns>
	  <GridOptions />
	</Grid>
	<Chart ComponentName="chartDashboardItem1" Name="TotalKilowattsSavedDaily" DataSource="dashboardSqlDataSource1" DataMember="Query">
	  <InteractivityOptions TargetDimensions="Series" />
	  <DataItems>
		<Measure DataMember="TotalKw" DefaultId="DataItem1" />
		<Dimension DataMember="day" DefaultId="DataItem0" />
	  </DataItems>
	  <SeriesDimensions>
		<SeriesDimension DefaultId="DataItem0" />
	  </SeriesDimensions>
	  <Panes>
		<Pane Name="Pane 1">
		  <Series>
			<Simple>
			  <Value DefaultId="DataItem1" />
			</Simple>
		  </Series>
		</Pane>
	  </Panes>
	</Chart>
  </Items>
  <LayoutTree>
	<LayoutGroup Orientation="Vertical" Weight="100">
	  <LayoutGroup Weight="49.902534113060426">
		<LayoutItem DashboardItem="pieDashboardItem2" Weight="50.053475935828878" />
		<LayoutItem DashboardItem="gridDashboardItem1" Weight="49.946524064171122" />
	  </LayoutGroup>
	  <LayoutItem DashboardItem="chartDashboardItem1" Weight="50.097465886939574" />
	</LayoutGroup>
  </LayoutTree>
</Dashboard>'

EXEC METADATA_DASHBOARD
	 @name          = 'DASH_POLICY_ENERGY_MONITOR',
	 @folder        = @apwmFolder,
	 @order         = 5,
	 @definition    = @documentDefinitionPolicy,
	 @frecuency     = 60,
	 @description   = 'DASH_POLICY_MONITOR_DESCRIPTION',
	 @id            = @documentPolicyId OUTPUT


PRINT 'APWM - Dashboard - Monitor de politicas'   
END
GO
BEGIN
DECLARE @documentPolicyId    INT, 
		@folderPolicyId	    INT,
		@dashboardPolicyFolder    INT,
		@apwmFolder          INT,
		@rootPolicy          INT,
		@documentDefinitionPolicy NVARCHAR(MAX)

-- Carpeta de ADM
SELECT @rootPolicy = fold_id 
FROM   AFW_FOLDER
WHERE  fold_parent IS NULL 
AND    fold_name           = 'ADM'
AND    fold_application_id = 32

--  Carpeta de tableros
SELECT @dashboardPolicyFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = @rootPolicy  
AND    fold_name   = 'Dashboards'

--  Carpeta de aam para tableros
SELECT @apwmFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = @dashboardPolicyFolder  
AND    fold_name   = 'Dashboards_APWM'


SET @documentDefinitionPolicy  = '<?xml version="1.0" encoding="utf-8"?>
<Dashboard CurrencyCulture="es-CO">
  <Title Text="DevicePolicies" Alignment="Left"> </Title>
  <DataSources>
    <SqlDataSource Name="ADM" ComponentName="dashboardSqlDataSource1">
      <Connection Name="localhost_adm_Connection" ProviderKey="MSSqlServer">
        <Parameters>
          <Parameter Name="server" Value="" />
          <Parameter Name="database" Value="" />
          <Parameter Name="useIntegratedSecurity" Value="False" />
          <Parameter Name="read only" Value="1" />
          <Parameter Name="generateConnectionHelper" Value="false" />
          <Parameter Name="userid" Value="" />
          <Parameter Name="password" Value="" />
        </Parameters>
      </Connection>
      <Query Type="CustomSqlQuery" Name="TotalDispositivosConPolitica">
        <Sql>
          SELECT TOP 10 D.NAME
		  FROM AAM_DEVICE AS D 
		  WHERE EXISTS(SELECT id FROM APWM_POLICY_INVENTORY PI WHERE PI.DEVICE_ID = D.ID)
        </Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="SoftwareBloqueado">
        <Sql>
          SELECT TOP 20 APS.NAME,APS.TIMES
          FROM APWM_POLICY_SOFTWARE APS
          JOIN APWM_POLICY_INVENTORY API ON API.ID = APS.POLICY_INVENTORY_ID
          WHERE [START_DATE] BETWEEN GETUTCDATE() - 7 AND GETUTCDATE()
        </Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="DispositivosPorPolitica">
        <Sql>
          SELECT AP.NAME AS POLICY,  COUNT(DISTINCT(DEVICE_ID)) AS TOTALDEVICES
          FROM APWM_POLICY_INVENTORY API
          JOIN APWM_POLICY AP ON  AP.ID = API.POLICY_ID
          WHERE [START_DATE] BETWEEN GETUTCDATE() - 7 AND GETUTCDATE()
          GROUP BY AP.NAME
        </Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="Query">
        <Sql>
          SELECT AP.NAME AS POLICY,  SUM(APU.TIMES) AS TOTALUSB
          FROM APWM_POLICY_USB APU
          JOIN APWM_POLICY_INVENTORY API ON API.ID = APU.POLICY_INVENTORY_ID
          JOIN APWM_POLICY AP ON  AP.ID = API.POLICY_ID
          WHERE [START_DATE] BETWEEN GETUTCDATE() - 7 AND GETUTCDATE()
          GROUP BY AP.ID, AP.NAME
        </Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="MinutosPorDispositivo">
        <Sql>
          SELECT TOP 10 AD.NAME, SUM([OFF]) AS ''OFF'', SUM([ON]) AS ''ON'', SUM([SLEEP]) ''SLEEP'' FROM APWM_POLICY_HOUR APH
          JOIN APWM_POLICY_DAY APD ON APD.ID = APH.POLICY_DAY_ID
          JOIN APWM_POLICY_INVENTORY API ON APD.POLICY_INVENTORY_ID  = API.ID
          JOIN AAM_DEVICE AD ON AD.ID = API.DEVICE_ID
          WHERE [START_DATE] BETWEEN GETUTCDATE() - 30 AND GETUTCDATE()
          GROUP BY AD.ID,AD.NAME
          ORDER BY [ON]
        </Sql>
      </Query>
      <ResultSchema>
        <DataSet Name="ADM">
          <View Name="TotalDispositivosConPolitica">
            <Field Name="NAME" Type="String" />
          </View>
          <View Name="SoftwareBloqueado">
            <Field Name="NAME" Type="String" />
            <Field Name="TIMES" Type="Int32" />
          </View>
          <View Name="DispositivosPorPolitica">
            <Field Name="POLICY" Type="String" />
            <Field Name="TOTALDEVICES" Type="Int32" />
          </View>
          <View Name="Query">
            <Field Name="POLICY" Type="String" />
            <Field Name="TOTALUSB" Type="Int32" />
          </View>
          <View Name="MinutosPorDispositivo">
            <Field Name="NAME" Type="String" />
            <Field Name="OFF" Type="Double" />
            <Field Name="ON" Type="Double" />
            <Field Name="SLEEP" Type="Double" />
          </View>
        </DataSet>
      </ResultSchema>
      <ConnectionOptions CloseConnection="true" />
    </SqlDataSource>
  </DataSources>
  <Items>
    <Grid ComponentName="gridDashboardItem2" Name="Top10DevicesWithPolicy" ParentContainer="dashboardItemGroup1" DataSource="dashboardSqlDataSource1" DataMember="TotalDispositivosConPolitica">
      <DataItems>
        <Dimension DataMember="NAME" DefaultId="DataItem0" Name="Name" />
      </DataItems>
      <GridColumns>
        <GridDimensionColumn>
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
      </GridColumns>
      <GridOptions />
    </Grid>
    <Grid ComponentName="gridDashboardItem1" Name="BlockedSoftware" ParentContainer="dashboardItemGroup1" DataSource="dashboardSqlDataSource1" DataMember="SoftwareBloqueado">
      <DataItems>
        <Dimension DataMember="NAME" Name="Software" DefaultId="DataItem0" />
        <Measure DataMember="TIMES" Name="Quantity" SummaryType="Max" DefaultId="DataItem1">
          <NumericFormat FormatType="Number" Precision="0" Unit="Ones" />
        </Measure>
      </DataItems>
      <GridColumns>
        <GridDimensionColumn Weight="113.85135135135135">
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Weight="36.148648648648646">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions ColumnWidthMode="Manual" />
    </Grid>
    <Pie ComponentName="pieDashboardItem1" Name="DevicesByPolicy" ParentContainer="dashboardItemGroup1" DataSource="dashboardSqlDataSource1" DataMember="DispositivosPorPolitica" PieType="Donut">
      <DataItems>
        <Measure DataMember="TOTALDEVICES" Name="Dispositivos" DefaultId="DataItem1" />
        <Dimension DataMember="POLICY" DefaultId="DataItem0" />
      </DataItems>
      <Arguments>
        <Argument DefaultId="DataItem0" />
      </Arguments>
      <Values>
        <Value DefaultId="DataItem1" />
      </Values>
    </Pie>
    <Chart ComponentName="chartDashboardItem1" Name="UsbBlockByPolicy" ParentContainer="dashboardItemGroup1" DataSource="dashboardSqlDataSource1" DataMember="Query">
      <ColoringOptions UseGlobalColors="false" />
      <DataItems>
        <Dimension DataMember="POLICY" DefaultId="DataItem0" />
        <Measure DataMember="TOTALUSB" Name="BlockCount" DefaultId="DataItem1" />
      </DataItems>
      <Arguments>
        <Argument DefaultId="DataItem0" />
      </Arguments>
      <Panes>
        <Pane Name="Pane 1">
          <Series>
            <Simple>
              <Value DefaultId="DataItem1" />
            </Simple>
          </Series>
        </Pane>
      </Panes>
    </Chart>
    <Chart ComponentName="chartDashboardItem2" Name="BehaviorByDevice" ParentContainer="dashboardItemGroup1" DataSource="dashboardSqlDataSource1" DataMember="MinutosPorDispositivo">
      <DataItems>
        <Measure DataMember="OFF" DefaultId="DataItem1" Name="PowerOff" />
        <Measure DataMember="ON" DefaultId="DataItem3" Name="PowerOn" />
        <Measure DataMember="SLEEP" DefaultId="DataItem0" Name="PowerSleep" />
        <Dimension DataMember="NAME" DefaultId="DataItem2" Name="Name" />
      </DataItems>
      <Arguments>
        <Argument DefaultId="DataItem2" />
      </Arguments>
      <Panes>
        <Pane Name="Pane 1">
          <Series>
            <Simple Name="ON">
              <Value DefaultId="DataItem3" />
            </Simple>
            <Simple Name="OFF">
              <Value DefaultId="DataItem1" />
            </Simple>
            <Simple Name="SLEEP">
              <Value DefaultId="DataItem0" />
            </Simple>
          </Series>
        </Pane>
      </Panes>
    </Chart>
  </Items>
  <Groups>
    <Group ComponentName="dashboardItemGroup1" Name=" " />
  </Groups>
  <LayoutTree>
    <LayoutGroup Orientation="Vertical" Weight="100">
      <LayoutGroup Orientation="Vertical" DashboardItem="dashboardItemGroup1" Weight="100">
        <LayoutGroup Weight="42.016806722689076">
          <LayoutItem DashboardItem="gridDashboardItem2" Weight="22.622950819672131" />
          <LayoutItem DashboardItem="chartDashboardItem1" Weight="38.5792349726776" />
          <LayoutItem DashboardItem="gridDashboardItem1" Weight="38.797814207650276" />
        </LayoutGroup>
        <LayoutGroup Weight="57.983193277310924">
          <LayoutItem DashboardItem="pieDashboardItem1" Weight="49.94535519125683" />
          <LayoutItem DashboardItem="chartDashboardItem2" Weight="50.05464480874317" />
        </LayoutGroup>
      </LayoutGroup>
    </LayoutGroup>
  </LayoutTree>
</Dashboard>'

EXEC [METADATA_DASHBOARD]
	 @name          = 'DASH_POLICY_MONITOR',
	 @folder        = @apwmFolder,
	 @order         = 4,
	 @definition    = @documentDefinitionPolicy,
	 @frecuency     = 60,
	 @description   = 'DASH_POLICY_MONITOR_DESCRIPTION',
	 @id            = @documentPolicyId OUTPUT


PRINT 'APWM - Dashboard - Monitor de politicas'   
END
GO
/*
    Tablero resumen de dispositivos
*/
DECLARE @documentDeviceId   INT, 
        @folderDevicesId    INT,
        @dashboardDeviceFolder    INT,
        @aamFolder          INT,
        @rootDevice         INT,
        @xmlDefinitionDevice NVARCHAR(MAX)

-- Carpeta de ADM
SELECT @rootDevice = fold_id 
FROM   AFW_FOLDER
WHERE  fold_parent IS NULL 
AND    fold_name           = 'ADM'
AND    fold_application_id = 32

--  Carpeta de tableros
SELECT @dashboardDeviceFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = @rootDevice  
AND    fold_name   = 'Dashboards'

--  Carpeta de aam para tableros
SELECT @aamFolder = fold_id 
FROM   AFW_FOLDER 
WHERE  fold_parent = @dashboardDeviceFolder  
AND    fold_name   = 'Dashboards_AAM'

SET @xmlDefinitionDevice = '<?xml version="1.0" encoding="utf-8"?>
<Dashboard CurrencyCulture="es-CO">
  <Title Text="DeviceMonitor">
    <ImageData> </ImageData>
  </Title>
  <DataSources>
    <SqlDataSource Name="ADM" ComponentName="sqlDataSource2">
      <Connection Name="Connection" ProviderKey="MSSqlServer">
        <Parameters>
          <Parameter Name="server" Value="" />
          <Parameter Name="database" Value="" />
          <Parameter Name="useIntegratedSecurity" Value="False" />
          <Parameter Name="read only" Value="1" />
          <Parameter Name="generateConnectionHelper" Value="false" />
          <Parameter Name="userid" Value="" />
          <Parameter Name="password" Value="" />
        </Parameters>
      </Connection>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery">
        <Sql>SELECT COUNT(ID) AS [DEVICES] FROM AAM_DEVICE WHERE is_active = 1</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_1">
        <Sql>SELECT ISNULL(SUM([CONFLICT]),0) AS [CONFLICTS]
             FROM (SELECT IIF(B.conflict_type_id IS NULL OR B.status_id = 2, 0, B.conflict_type_id) AS [CONFLICT]
                   FROM VIEW_AAM_DEVICE A
                   LEFT JOIN AAM_DEVICE_CONFLICT B ON B.device_id = A.id
                   GROUP BY A.id, IIF(B.conflict_type_id IS NULL OR B.status_id = 2, 0, B.conflict_type_id)) AS X
            WHERE [CONFLICT] != 0</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_2">
        <Sql>SELECT COUNT(a.id) AS [NOT AGENT] FROM AAM_DEVICE a LEFT JOIN AAM_DEVICE_CONFIGURATION b ON a.id=b.device_id WHERE b.device_id is null and a.is_active= 1</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_3">
        <Sql>SELECT COUNT(DEVICE)AS [ACTUALIZED] FROM(
    SELECT
            CASE WHEN DEVLIC.device_id IS NULL  AND AAM_DEVICE.is_discovery = 0  THEN ''Without License''
                ELSE
                    CASE  WHEN	DATEDIFF(DAY,last_update,GETUTCDATE()) &lt;= CONVERT(INT,AFW_SETTINGS.sett_value) THEN ''Inventory''
                    END
            END [STATUS],
            ISNULL(ADM_DEVICE_INVENTORY.device_id, 0)AS [DEVICE]  
    FROM AAM_DEVICE 
    LEFT JOIN ADM_DEVICE_INVENTORY ON AAM_DEVICE.id = ADM_DEVICE_INVENTORY.device_id AND app_code = 1
    LEFT JOIN ADM_DEVICE_LICENSE DEVLIC ON AAM_DEVICE.[id] = DEVLIC.[device_id],
     AFW_SETTINGS
    WHERE (app_code = 1 OR app_code IS NULL)
                   AND (ADM_DEVICE_INVENTORY.type = 0 OR ADM_DEVICE_INVENTORY.type IS NULL)
                   AND (AFW_SETTINGS.sett_key=''UpdatedInventoryDays'' OR AFW_SETTINGS.sett_key IS NULL)
                   AND (AFW_SETTINGS.sett_application_id = 32 OR AFW_SETTINGS.sett_application_id IS NULL)
                   AND AFW_SETTINGS.sett_project_id IS NULL
                   AND (DEVLIC.product_id = 1 OR DEVLIC.product_id IS NULL))AS X
WHERE STATUS = ''Inventory''</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_4">
        <Sql>SELECT COUNT(DEVICE)AS [QUANTITY], STATUS AS [STATE] FROM(
    SELECT
            CASE WHEN DEVLIC.device_id IS NULL  AND AAM_DEVICE.is_discovery = 0  THEN ''Without License''
                ELSE
                    CASE  WHEN	DATEDIFF(DAY,last_update,GETUTCDATE()) &lt;= CONVERT(INT,AFW_SETTINGS.sett_value) THEN ''Inventory''
                    WHEN ISNULL(DATEDIFF(DAY, last_update, GETUTCDATE()), 0) &gt; CONVERT(INT,AFW_SETTINGS.sett_value) THEN ''Without Updating''
                    WHEN DATEDIFF(DAY, last_update, GETUTCDATE()) IS NULL and DEVLIC.device_id is not null THEN ''Without Inventory''
                    WHEN DATEDIFF(DAY, last_update, GETUTCDATE()) IS NULL and DEVLIC.device_id is null THEN ''Without License''
                                                                                                 
                    END
            END [STATUS],
            ISNULL(ADM_DEVICE_INVENTORY.device_id, 0)AS [DEVICE]  
    FROM AAM_DEVICE 
    LEFT JOIN ADM_DEVICE_INVENTORY ON AAM_DEVICE.id = ADM_DEVICE_INVENTORY.device_id AND app_code = 1
    LEFT JOIN ADM_DEVICE_LICENSE DEVLIC ON AAM_DEVICE.[id] = DEVLIC.[device_id] AND (DEVLIC.product_id = 1 OR DEVLIC.product_id IS NULL),
     AFW_SETTINGS
     WHERE AAM_DEVICE.is_active= 1 and (app_code = 1 OR app_code IS NULL)
                   AND (ADM_DEVICE_INVENTORY.type = 0 OR ADM_DEVICE_INVENTORY.type IS NULL)
                   AND (AFW_SETTINGS.sett_key=''UpdatedInventoryDays'' OR AFW_SETTINGS.sett_key IS NULL)
                   AND (AFW_SETTINGS.sett_application_id = 32 OR AFW_SETTINGS.sett_application_id IS NULL)
                   AND AFW_SETTINGS.sett_project_id IS NULL
     )AS X
GROUP BY STATUS</Sql>
              
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_5">
        <Sql>SELECT 
    COUNT(type) AS [Devices],
    CASE type 
        WHEN -1 THEN ''Unknown''
        WHEN 0 THEN ''Estación''
        WHEN 1 THEN ''Portátil''
        WHEN 2 THEN ''Servidor''
        WHEN 3 THEN ''Impresora''
        WHEN 4 THEN ''Switch''
        WHEN 5 THEN ''Router''
    END AS [PC TYPE]
FROM VIEW_AAM_DEVICE_DETAIL
GROUP BY type</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_6">
        <Sql>SELECT
    COUNT(ISNULL(manufacturer_id, 0)) AS [Devices],
    ISNULL(manufacturer, ''Unknown'') AS [MANUFACTURER]
FROM VIEW_AAM_DEVICE_DETAIL A
GROUP BY manufacturer</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_7">
        <Sql>SELECT
COUNT(operating_system) AS [Devices],
operating_system AS [Operating System]
FROM VIEW_AAM_DEVICE_DETAIL A
WHERE platform = 1
GROUP BY operating_system</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_8">
        <Sql>SELECT
COUNT(operating_system) AS [Devices],
operating_system AS [Operating System]
FROM VIEW_AAM_DEVICE_DETAIL A
WHERE platform = 2
GROUP BY operating_system</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_9">
        <Sql>SELECT
COUNT(operating_system) AS [Devices],
operating_system AS [Operating System]
FROM VIEW_AAM_DEVICE_DETAIL A
WHERE platform = 3
GROUP BY operating_system</Sql>
      </Query>				
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_10">
        <Sql>SELECT COUNT(ESTADO)AS [ON LINE] FROM(
    SELECT 
        CASE WHEN DATEDIFF(MINUTE, LAST_UPDATE, GETUTCDATE()) &lt;=5 THEN ''1'' END AS [ESTADO]

    FROM(
        SELECT MAX(last_update)AS [LAST_UPDATE], device_id FROM AAM_DEVICE A
        INNER JOIN ADM_COMMUNICATION_NODE B ON A.id = B.device_id
        GROUP BY device_id)AS X)AS X 
WHERE [ESTADO] IS NOT NULL</Sql>									  
      </Query>
      <Query Type="CustomSqlQuery" Name="CustomSqlQuery_11">
        <Sql>SELECT COUNT(ESTADO)AS [OFFLINE] FROM(
    SELECT 
        CASE WHEN DATEDIFF(MINUTE, LAST_UPDATE, GETUTCDATE()) &gt;=10 THEN ''0'' END AS [ESTADO]

    FROM(
        SELECT MAX(last_update)AS [LAST_UPDATE], device_id FROM AAM_DEVICE A
        INNER JOIN ADM_COMMUNICATION_NODE B ON A.id = B.device_id
        GROUP BY device_id)AS X)AS X 
WHERE [ESTADO] IS NOT NULL</Sql> 
      </Query>
      <ConnectionOptions CloseConnection="true" />
      <CalculatedFields>
        <CalculatedField Name="ESTADO" Expression="Iif([STATE]=''Inventory'',''Inventario'' ,&#xA;Iif([STATE]=''Without Inventory'',''Sin Inventario'' ,&#xA;Iif([STATE]=''Without License'',''Sin Licencia'' , &#xA;Iif([STATE]=''Without Updating'',''Sin Actualizar'' ,''Otros'' ))))" DataType="Auto" DataMember="CustomSqlQuery_4" />
      </CalculatedFields>
    </SqlDataSource>
  </DataSources>
  <Items>
    <Card ComponentName="cardDashboardItem1" Name="Cards 1" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource2" DataMember="CustomSqlQuery">
      <DataItems>
        <Measure DataMember="DEVICES" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>                                                   
      </DataItems>
      <FormatRules>
        <CardItemDeltaFormatRule Name="Format Rule 1" LayoutItemApplyTo="AllElements" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="GreaterOrEqual">
            <AppearanceSettings AppearanceType="Gray" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
        <CardItemDeltaFormatRule Name="Format Rule 2" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="GreaterOrEqual">
            <IconSettings IconType="Rating4FilledBoxes" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
      </FormatRules>
      <Card Name="Devices">
        <ActualValue DefaultId="DataItem0" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
    </Card>
   
    <Card ComponentName="cardDashboardItem2" Name="Cards 1" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_3">
      <DataItems>
        <Measure DataMember="ACTUALIZED" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>                                                          
      </DataItems>
      <FormatRules>
        <CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="GreaterOrEqual">
            <IconSettings IconType="IndicatorGreenCheck" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
      </FormatRules>
      <Card Name="Updated">
        <ActualValue DefaultId="DataItem0" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
    </Card>
    <Chart ComponentName="chartDashboardItem1" Name="DevicesByManufacturer" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_6" Rotated="true">
      <DataItems>
        <Dimension DataMember="MANUFACTURER" SortOrder="Descending" ColoringMode="Hue" SortByMeasure="DataItem0" DefaultId="DataItem1" />
        <Measure DataMember="Devices" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>
      </DataItems>
      <Arguments>
        <Argument DefaultId="DataItem1" />
      </Arguments>
      <Panes>
        <Pane Name="Pane 1">
          <AxisY Title="Quantity" Logarithmic="true" />
          <Series>
            <Simple Name="Cantidad" SeriesType="StackedBar">
              <Value DefaultId="DataItem0" />
              <PointLabelOptions OverlappingMode="None" Position="Inside" ContentType="Value" />
            </Simple>
          </Series>
        </Pane>
      </Panes>
      <ChartLegend Visible="false" IsInsidePosition="true" />
      <AxisX Reverse="true" LimitVisiblePoints="true" VisiblePointsCount="5" />
    </Chart>
    <Chart ComponentName="chartDashboardItem2" Name="DevicesByType" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_5">
      <ColoringOptions MeasuresColoringMode="Hue" />
      <DataItems>
        <Dimension DataMember="PC TYPE" SortOrder="Descending" ColoringMode="Hue" SortByMeasure="DataItem0" DefaultId="DataItem1" />
        <Measure DataMember="Devices" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>
      </DataItems>
      <Arguments>
        <Argument DefaultId="DataItem1" />
      </Arguments>
      <Panes>
        <Pane Name="Pane 1">
          <AxisY TitleVisible="false" Title="Dispositivos" />
          <Series>
            <Simple Name="DISPOSITIVOS">
              <Value DefaultId="DataItem0" />
              <PointLabelOptions ContentType="Value" />
            </Simple>
          </Series>
        </Pane>
      </Panes>
      <ChartLegend Visible="false" />
    </Chart>
    <Grid ComponentName="gridDashboardItem2" Name="MacVersions" ParentContainer="dashboardTabPage2" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_9">
      <DataItems>
        <Dimension DataMember="Operating System" DefaultId="DataItem0" />
        <Measure DataMember="Devices" DefaultId="DataItem1" />
      </DataItems>
      <FormatRules>
        <GridItemFormatRule Name="Format Rule 1" DataItem="DataItem1">
          <FormatConditionValue Condition="GreaterOrEqual">
            <AppearanceSettings AppearanceType="PaleGray" />
            <Value1 Type="System.Decimal" Value="-1" />
          </FormatConditionValue>
        </GridItemFormatRule>
      </FormatRules>
      <GridColumns>
        <GridDimensionColumn Name="Sistema Operativo">
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Name="Cantidad">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions EnableBandedRows="true" ShowHorizontalLines="false" WordWrap="true" />
    </Grid>
    <Grid ComponentName="gridDashboardItem3" Name="LinuxVersions" ParentContainer="dashboardTabPage3" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_8">
      <DataItems>
        <Dimension DataMember="Operating System" DefaultId="DataItem0" />
        <Measure DataMember="Devices" DefaultId="DataItem1" />
      </DataItems>
      <GridColumns>
        <GridDimensionColumn Name="Sisitema Operativo">
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Name="Cantidad">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions EnableBandedRows="true" ShowHorizontalLines="false" WordWrap="true" />
    </Grid>
    <Card ComponentName="cardDashboardItem5" Name="Cards 1" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_1">
      <DataItems>
        <Measure DataMember="CONFLICTS" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>
      </DataItems>
      <FormatRules>
        <CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="GreaterOrEqual">
            <IconSettings IconType="IndicatorCircledYellowExclamation" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
      </FormatRules>
      <Card Name="WithConflicts">
        <ActualValue DefaultId="DataItem0" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
    </Card>
    <Card ComponentName="cardDashboardItem4" Name="Cards 1" ShowCaption="false" ParentContainer="groupDashboardItem1" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_2">
      <DataItems>
        <Measure DataMember="NOT AGENT" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>
      </DataItems>
      <FormatRules>
        <CardItemDeltaFormatRule Name="Format Rule 1" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="GreaterOrEqual">
            <IconSettings IconType="IndicatorCircledRedCross" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
      </FormatRules>
      <Card Name="WithoutAgent">
        <ActualValue DefaultId="DataItem0" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
    </Card>
    <TabContainer ComponentName="tabContainerDashboardItem1" Name="Tab Container 1">
      <Pages>
        <Page ComponentName="dashboardTabPage1" Name="Page 1" />
        <Page ComponentName="dashboardTabPage2" Name="Page 2" />
        <Page ComponentName="dashboardTabPage3" Name="Page 3" />
      </Pages>
    </TabContainer>
    <Grid ComponentName="gridDashboardItem4" Name="WindowsVersions" ParentContainer="dashboardTabPage1" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_7">
      <DataItems>
        <Dimension DataMember="Operating System" TopNEnabled="true" TopNCount="2000" TopNMeasure="DataItem1" DefaultId="DataItem0" />
        <Measure DataMember="Devices" DefaultId="DataItem1">
          <NumericFormat FormatType="General" />
        </Measure>
      </DataItems>
      <FormatRules>
        <GridItemFormatRule Name="Format Rule 1" ApplyToRow="true" DataItem="DataItem1">
          <FormatConditionValue Condition="GreaterOrEqual">
            <AppearanceSettings AppearanceType="PaleGray" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </GridItemFormatRule>
        <GridItemFormatRule Name="Format Rule 2" ApplyToRow="true" DataItem="DataItem1">
          <FormatConditionValue Condition="GreaterOrEqual">
            <AppearanceSettings AppearanceType="FontBold" />
            <Value1 Type="System.Decimal" Value="0" />
          </FormatConditionValue>
        </GridItemFormatRule>
      </FormatRules>
      <GridColumns>
        <GridDimensionColumn Name="OperatingSystem" Weight="124.27184466019418">
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Name="Quantity" Weight="25.728155339805824">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions EnableBandedRows="true" ColumnWidthMode="Manual" />
    </Grid>
    <Pie ComponentName="pieDashboardItem2" Name="Dispositivos por estado" ShowCaption="false" DataSource="sqlDataSource2" DataMember="CustomSqlQuery_4" IsMasterFilterCrossDataSource="true" PieType="Donut" LabelContentType="ArgumentAndValue" TooltipContentType="Percent">
      <ColoringOptions MeasuresColoringMode="Hue" />                                                                                                                                                                          
      <DataItems>
        <Measure DataMember="QUANTITY" Name="DevicesByStatus" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>
        <Dimension DataMember="ESTADO" DefaultId="DataItem3" />
      </DataItems>
      <Arguments>              
        <Argument DefaultId="DataItem3" />
      </Arguments>
      <Values>
        <Value DefaultId="DataItem0" />
      </Values>
    </Pie>               
  </Items>
  <Groups>
    <Group ComponentName="groupDashboardItem1" Name="Group 1" ShowCaption="false" />
  </Groups>
  <ColorScheme>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-15969158">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="status" />
          <Value Type="System.String" Value="not update" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-10125922">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="status" />
          <Value Type="System.String" Value="not inventoried" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-13910304">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="type" />
          <Value Type="System.String" Value="Desktop" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-10125922">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="type" />
          <Value Type="System.String" Value="Laptop" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-12396900">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="type" />
          <Value Type="System.String" Value="Unknown" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-13910304">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="Apple Inc." />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-10125922">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="Dell Inc." />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-12396900">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="Hewlett-Packard" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-5011812">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="HP" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-686993">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="Intel Corporation" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-2070454">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="LENOVO" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-11637092">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="Unknown" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource1" DataMember="VIEW_ADM_DEVICE_DASHBOARD" Color="-16734053">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="manufacturer" />
          <Value Type="System.String" Value="VMware, Inc." />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource2" DataMember="CustomSqlQuery_5" Color="-13301054">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="PC TYPE" />
          <Value Type="System.String" Value="Laptop" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource2" DataMember="CustomSqlQuery_5" Color="-16727328">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="PC TYPE" />
          <Value Type="System.String" Value="Desktop" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="sqlDataSource2" DataMember="CustomSqlQuery_5" Color="-13269760">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="PC TYPE" />
          <Value Type="System.String" Value="Server" />
        </DimensionKey>
      </DimensionKeys>
    </Entry>
  </ColorScheme>
  <LayoutTree>
    <LayoutGroup Weight="100">
      <LayoutGroup Orientation="Vertical" Weight="51.193705346249857">
        <LayoutGroup Orientation="Vertical" DashboardItem="groupDashboardItem1" Weight="52.031093737075558">
          <LayoutGroup Orientation="Vertical" Weight="31.943676087108873">
            <LayoutItem DashboardItem="cardDashboardItem1" Weight="122.38238168977436" />
            <LayoutItem DashboardItem="cardDashboardItem2" Weight="116.86358177475087" />
            <LayoutGroup Weight="121.63568890541052">
              <LayoutItem DashboardItem="cardDashboardItem4" Weight="109.37373549688969" />
              <LayoutItem DashboardItem="cardDashboardItem5" Weight="93.5973259561051" />
            </LayoutGroup>
          </LayoutGroup>
        </LayoutGroup>
        <LayoutTabContainer DashboardItem="tabContainerDashboardItem1" Weight="44.905006264255">
          <LayoutTabPage DashboardItem="dashboardTabPage1">
            <LayoutItem DashboardItem="gridDashboardItem4" Weight="34.05342781445259" />
          </LayoutTabPage>
          <LayoutTabPage DashboardItem="dashboardTabPage2">
            <LayoutItem DashboardItem="gridDashboardItem2" Weight="114.90815568836872" />
          </LayoutTabPage>
          <LayoutTabPage DashboardItem="dashboardTabPage3">
            <LayoutItem DashboardItem="gridDashboardItem3" Weight="51.64155249658873" />
          </LayoutTabPage>
        </LayoutTabContainer>
      </LayoutGroup>
      <LayoutGroup Weight="154.83377224646603">
        <LayoutGroup Orientation="Vertical" Weight="192.84409286377124">
          <LayoutGroup Weight="100">
            <LayoutGroup Orientation="Vertical" Weight="147.64063049681923">
              <LayoutItem DashboardItem="pieDashboardItem2" Weight="184.28364776809357" />
              <LayoutItem DashboardItem="chartDashboardItem1" Weight="166.97631062867546" />
            </LayoutGroup>
            <LayoutItem DashboardItem="chartDashboardItem2" Weight="107.3408594839218" />
          </LayoutGroup>
        </LayoutGroup>
      </LayoutGroup>
    </LayoutGroup>
  </LayoutTree>
</Dashboard>'

EXEC METADATA_DASHBOARD
     @name          = 'DASH_DEVICE_MONITOR_ALTERNATE',
     @folder        = @aamFolder,
     @order         = 2,
     @definition    = @xmlDefinitionDevice,
     @frecuency     = 60,
     @description   = 'DASH_DEVICE_MONITOR_ALTERNATE_DESCRIPTION',
     @id            = @documentDeviceId OUTPUT

    PRINT 'AAM - Dashboard - Monitor de Dispositivos alterno'   


--------------------
-- Actualizar número de versión de la BD
-- Mantener este número alineado con la versión del archivo Aranda.MDM.Common.Defs.Product.cs
--------------------

--UPDATE AMDM DATABASE VERSION
--------------------
-- Actualizar número de versión de la BD
-- Mantener este número alineado con la versión del archivo Aranda.MDM.Common.Defs.Product.cs
--------------------
GO
DECLARE @newDBVersion AS VARCHAR (32)
SET @newDBVersion = '9.18.1'


IF EXISTS (SELECT * FROM AMDM_DATABASEINFO WHERE [key] = 'AMDM_version')
	UPDATE AMDM_DATABASEINFO SET [value] = @newDBVersion WHERE [key] = 'AMDM_version'
ELSE
	INSERT INTO AMDM_DATABASEINFO ([key], [value], [description]) VALUES ('AMDM_version', @newDBVersion, 'Versión soportada del producto AMDM')
GO

--INITIALIZE DEPLOY
/*===================*/
/* INITIALIZE DEPLOY */
/*===================*/
CREATE PROCEDURE [dbo].[MD_AMDM_AGENTTYPE] 
	@i_bundleId			NVARCHAR(64),
    @i_platformId		INT,
    @i_agentName		NVARCHAR(64)	= NULL,
	@i_downloadUrl		NVARCHAR(1024)	= NULL,
	@i_supress_nulls	INT				= 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_AGENTTYPE] WHERE [agenttype_bundleid] = @i_bundleId AND [agenttype_platformid] = @i_platformId;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_AGENTTYPE] (
			[agenttype_bundleid], 
			[agenttype_platformid],
			[agenttype_agentname],
			[agenttype_downloadurl]
		)
		VALUES(
			@i_bundleId, 
			@i_platformId,
			@i_agentName,
			@i_downloadUrl
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_AGENTTYPE] 
			SET 
				[agenttype_agentname] = ISNULL(@i_agentName, [agenttype_agentname]),
				[agenttype_downloadurl] = ISNULL(@i_downloadUrl, [agenttype_downloadurl])
			WHERE [agenttype_bundleid] = @i_bundleId AND [agenttype_platformid] = @i_platformId
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_AGENTTYPE] 
				SET 
					[agenttype_agentname] = ISNULL([agenttype_agentname], @i_agentName),
					[agenttype_downloadurl] = ISNULL([agenttype_downloadurl], @i_downloadUrl)
				WHERE [agenttype_bundleid] = @i_bundleId AND [agenttype_platformid] = @i_platformId
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [dbo].[AMDM_AGENTTYPE] SET
					[agenttype_agentname] = @i_agentName,
					[agenttype_downloadurl] = @i_downloadUrl
				WHERE
					[agenttype_bundleid] = @i_bundleId AND [agenttype_platformid] = @i_platformId
			END
		END
	END
END

GO

GO
CREATE PROCEDURE [dbo].[MD_AMDM_APNGENERATIONSATUS] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS 
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_APNSGENERATIONSTATUS] WHERE [apnsgenstat_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_APNSGENERATIONSTATUS](
			[apnsgenstat_id], 
			[apnsgenstat_name]
		)
		VALUES(
			@i_id, @i_name
		)
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_APNSGENERATIONSTATUS] 
			SET 
				[apnsgenstat_name] = ISNULL(@i_name, [apnsgenstat_name])
			WHERE [apnsgenstat_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_APNSGENERATIONSTATUS] 
				SET 
					[apnsgenstat_name] = ISNULL([apnsgenstat_name], @i_name)
				WHERE [apnsgenstat_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_APNSGENERATIONSTATUS] 
				SET 
					[apnsgenstat_name] = @i_name
				WHERE [apnsgenstat_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 
	@i_bundleId			VARCHAR(64)	= NULL, 
	@i_name				VARCHAR(64) = NULL,
	@i_platformId		INT			= NULL,
	@i_supress_nulls	INT			= 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_APPS_NONSYSTEMAPPS] WHERE [app_bundleid] = @i_bundleId;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_APPS_NONSYSTEMAPPS] (
			[app_bundleid], 
			[app_name],
			[app_platformid]
		)
		VALUES(
			@i_bundleId, 
			@i_name,
			@i_platformId
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_APPS_NONSYSTEMAPPS] 
			SET 
				[app_name] = ISNULL(@i_name, [app_name]),
				[app_platformid] = ISNULL(@i_platformId, [app_platformid])
			WHERE [app_bundleid] = @i_bundleId 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_APPS_NONSYSTEMAPPS] 
				SET 
					[app_name] = ISNULL([app_name], @i_name),
					[app_platformid] = ISNULL([app_platformid], @i_platformId)
				WHERE [app_bundleid] = @i_bundleId 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_APPS_NONSYSTEMAPPS] 
				SET 
					[app_name] = @i_name,
					[app_platformid] = @i_platformId
				WHERE [app_bundleid] = @i_bundleId 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_APPSINFORMATION] 
	@i_bundleId			VARCHAR(255),
	@i_platformId		INT,
	@i_lastUpdate		DATETIME		= NULL,
	@i_nextUpdate		DATETIME		= NULL,
	@i_isCorporate		BIT				= NULL,
	@i_isProcessed		BIT				= NULL,
	@i_hasDeviceCount	BIT				= NULL,
	@i_deviceCount		INT				= NULL,
	@i_isSystem			BIT				= NULL,
	@i_isVisible		BIT				= NULL,
	@i_isAfw			BIT				= NULL,
	@i_isPrivate		BIT				= NULL,
	@i_supress_nulls	INT				= 0,
	@o_appId			INT				OUT
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_APPSINFORMATION] WHERE [bundleid] = @i_bundleId AND [platform_id] = @i_platformId;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_APPSINFORMATION] (
			[bundleid],
			[lastupdate],
			[nextupdate],
			[iscorporate],
			[isprocessed],
			[platform_id],
			[hasdevicecount],
			[devicecount],
			[issystem],
			[isvisible],
			[isafw],
			[isprivate]
		)
		VALUES(
			@i_bundleId,
			@i_lastUpdate,
			@i_nextUpdate,
			@i_isCorporate,
			@i_isProcessed,
			@i_platformId,
			@i_hasDeviceCount,
			@i_deviceCount,
			@i_isSystem,
			@i_isVisible,
			@i_isAfw,
			@i_isPrivate
		)

		SET @o_appId = SCOPE_IDENTITY();
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_APPSINFORMATION] 
			SET 
				[bundleid] = ISNULL(@i_bundleId, [bundleid]),
				[lastupdate] = ISNULL(@i_lastUpdate, [lastupdate]),
				[nextupdate] = ISNULL(@i_nextUpdate, [nextupdate]),
				[iscorporate] = ISNULL(@i_isCorporate, [iscorporate]),
				[isprocessed] = ISNULL(@i_isProcessed, [isprocessed]),
				[platform_id] = ISNULL(@i_platformId, [platform_id]),
				[hasdevicecount] = ISNULL(@i_hasDeviceCount, [hasdevicecount]),
				[devicecount] = ISNULL(@i_deviceCount, [devicecount]),
				[issystem] = ISNULL(@i_isSystem, [issystem]),
				[isvisible] = ISNULL(@i_isVisible, [isvisible]),
				[isafw] = ISNULL(@i_isAfw, [isafw]),
				[isprivate] = ISNULL(@i_isPrivate, [isprivate])
			WHERE [bundleid] = @i_bundleId AND [platform_id] = @i_platformId 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_APPSINFORMATION] 
				SET 
					[bundleid] = ISNULL([bundleid], @i_bundleId),
					[lastupdate] = ISNULL([lastupdate], @i_lastUpdate),
					[nextupdate] = ISNULL([nextupdate], @i_nextUpdate),
					[iscorporate] = ISNULL([iscorporate], @i_isCorporate),
					[isprocessed] = ISNULL([isprocessed], @i_isProcessed),
					[platform_id] = ISNULL([platform_id], @i_platformId),
					[hasdevicecount] = ISNULL([hasdevicecount], @i_hasDeviceCount),
					[devicecount] = ISNULL([devicecount], @i_deviceCount),
					[issystem] = ISNULL([issystem], @i_isSystem),
					[isvisible] = ISNULL([isvisible], @i_isVisible),
					[isafw] = ISNULL([isafw], @i_isAfw),
					[isprivate] = ISNULL([isprivate], @i_isPrivate)
				WHERE [bundleid] = @i_bundleId AND [platform_id] = @i_platformId
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_APPSINFORMATION] 
				SET 
					[bundleid] = @i_bundleId,
					[lastupdate] = @i_lastUpdate,
					[nextupdate] = @i_nextUpdate,
					[iscorporate] = @i_isCorporate,
					[isprocessed] = @i_isProcessed,
					[platform_id] = @i_platformId,
					[hasdevicecount] = @i_hasDeviceCount,
					[devicecount] = @i_deviceCount,
					[issystem] = @i_isSystem,
					[isvisible] = @i_isVisible,
					[isafw] = @i_isAfw,
					[isprivate] = @i_isPrivate
				WHERE [bundleid] = @i_bundleId AND [platform_id] = @i_platformId
			END
		END

		SELECT @o_appId = MIN(id) FROM [AMDM_APPSINFORMATION] WHERE [bundleid] = @i_bundleId AND [platform_id] = @i_platformId;
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_APPSINFORMATIONDETAIL] 
	@i_appId			INT,
	@i_lang				CHAR(20),
	@i_name				VARCHAR(512)	= NULL,
	@i_description		VARCHAR(MAX)	= NULL,
	@i_urlDownload		VARCHAR(512)	= NULL,
	@i_genres			VARCHAR(64)		= NULL,
	@i_supress_nulls	INT				= 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_APPSINFORMATIONDETAIL] WHERE [appsinfodetail_appid] = @i_appId AND [appsinfodetail_lang] = @i_lang;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_APPSINFORMATIONDETAIL] (
			[appsinfodetail_lang], 
			[appsinfodetail_name], 
			[appsinfodetail_description], 
			[appsinfodetail_urldownload], 
			[appsinfodetail_genres], 
			[appsinfodetail_appid] 
		)
		VALUES(
			@i_lang, 
			@i_name,
			@i_description,
			@i_urlDownload,
			@i_genres,
			@i_appId
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_APPSINFORMATIONDETAIL] 
			SET 
				[appsinfodetail_name] = ISNULL(@i_name, [appsinfodetail_name]), 
				[appsinfodetail_description] = ISNULL(@i_description, [appsinfodetail_description]), 
				[appsinfodetail_urldownload] = ISNULL(@i_urlDownload, [appsinfodetail_urldownload]), 
				[appsinfodetail_genres] = ISNULL(@i_genres, [appsinfodetail_genres])
			WHERE  [appsinfodetail_appid] = @i_appId AND [appsinfodetail_lang] = @i_lang;
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_APPSINFORMATIONDETAIL] 
				SET 
					[appsinfodetail_name] = ISNULL([appsinfodetail_name], @i_name), 
					[appsinfodetail_description] = ISNULL([appsinfodetail_description], @i_description), 
					[appsinfodetail_urldownload] = ISNULL([appsinfodetail_urldownload], @i_urlDownload), 
					[appsinfodetail_genres] = ISNULL([appsinfodetail_genres], @i_genres)
				WHERE  [appsinfodetail_appid] = @i_appId AND [appsinfodetail_lang] = @i_lang; 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_APPSINFORMATIONDETAIL] 
				SET 
					[appsinfodetail_name] = @i_name, 
					[appsinfodetail_description] =  @i_description, 
					[appsinfodetail_urldownload] = @i_urlDownload, 
					[appsinfodetail_genres] = @i_genres
				WHERE  [appsinfodetail_appid] = @i_appId AND [appsinfodetail_lang] = @i_lang;
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_BASICPERMISSIONS]
	 @i_roleId		INT
	 AS
BEGIN
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 1, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 2, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 3, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 4, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 5, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 6, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 7, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 8, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 9, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 10, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 11, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 12, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 13, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 14, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 15, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 16, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 17, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 18, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 19, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 20, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 21, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 22, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 23, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 24, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 25, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 26, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 27, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 28, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 29, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 30, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 31, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 32, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 33, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 34, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 35, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 36, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 37, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 38, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 39, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 40, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 41, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 42, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 43, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 44, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 45, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 46, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 47, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 48, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 49, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 50, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 51, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 52, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 53, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 54, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 55, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 56, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 57, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 58, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 59, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 60, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 61, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 62, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 63, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 64, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 65, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 66, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 67, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 68, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 69, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 70, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 71, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 72, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 73, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 74, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 75, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 76, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 77, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 78, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 79, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 80, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 81, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 82, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 83, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 84, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 85, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 86, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 87, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 88, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 89, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 90, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 91, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 92, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 93, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 94, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 95, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 96, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 97, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 98, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 99, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 100, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 101, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 102, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 108, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 109, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 110, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 111, @i_roleId, 0
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 112, @i_roleId, 0


	EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @i_roleId, 1   --  AMDM-PersonalSettings
	EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @i_roleId, 1	 --  AMDM-PersonalSettings-ProfileEdit
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_COMMANDACTIONRESULTTYPE] WHERE [cmdactresype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_COMMANDACTIONRESULTTYPE] (
			[cmdactresype_id], 
			[cmdactresype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_COMMANDACTIONRESULTTYPE] 
			SET 
				[cmdactresype_name] = ISNULL(@i_name, [cmdactresype_name])
			WHERE [cmdactresype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_COMMANDACTIONRESULTTYPE] 
				SET 
					[cmdactresype_name] = ISNULL([cmdactresype_name], @i_name)
				WHERE [cmdactresype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_COMMANDACTIONRESULTTYPE] 
				SET 
					[cmdactresype_name] = @i_name
				WHERE [cmdactresype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_COMMANDACTIONTYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_COMMANDACTIONTYPE] WHERE [cmdactype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_COMMANDACTIONTYPE] (
			[cmdactype_id], 
			[cmdactype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_COMMANDACTIONTYPE] 
			SET 
				[cmdactype_name] = ISNULL(@i_name, [cmdactype_name])
			WHERE [cmdactype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_COMMANDACTIONTYPE] 
				SET 
					[cmdactype_name] = ISNULL([cmdactype_name], @i_name)
				WHERE [cmdactype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_COMMANDACTIONTYPE] 
				SET 
					[cmdactype_name] = @i_name
				WHERE [cmdactype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_COMMANDERRORTYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_COMMANDERRORTYPE] WHERE [cmderrtype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_COMMANDERRORTYPE] (
			[cmderrtype_id], 
			[cmderrtype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_COMMANDERRORTYPE] 
			SET 
				[cmderrtype_name] = ISNULL(@i_name, [cmderrtype_name])
			WHERE [cmderrtype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_COMMANDERRORTYPE] 
				SET 
					[cmderrtype_name] = ISNULL([cmderrtype_name], @i_name)
				WHERE [cmderrtype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_COMMANDERRORTYPE] 
				SET 
					[cmderrtype_name] = @i_name
				WHERE [cmderrtype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_COMMANDSTATUS] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_COMMANDSTATUS] WHERE [cmdstat_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_COMMANDSTATUS] (
			[cmdstat_id], 
			[cmdstat_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_COMMANDSTATUS] 
			SET 
				[cmdstat_name] = ISNULL(@i_name, [cmdstat_name])
			WHERE [cmdstat_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_COMMANDSTATUS] 
				SET 
					[cmdstat_name] = ISNULL([cmdstat_name], @i_name)
				WHERE [cmdstat_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_COMMANDSTATUS] 
				SET 
					[cmdstat_name] = @i_name
				WHERE [cmdstat_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_COMMANDTARGETPROT] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_COMMANDTARGETPROT] WHERE [cmdprot_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_COMMANDTARGETPROT] (
			[cmdprot_id], 
			[cmdprot_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_COMMANDTARGETPROT] 
			SET 
				[cmdprot_name] = ISNULL(@i_name, [cmdprot_name])
			WHERE [cmdprot_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_COMMANDTARGETPROT] 
				SET 
					[cmdprot_name] = ISNULL([cmdprot_name], @i_name)
				WHERE [cmdprot_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_COMMANDTARGETPROT] 
				SET 
					[cmdprot_name] = @i_name
				WHERE [cmdprot_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_COMMANDTARGETTYPE]
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_COMMANDTARGETTYPE] WHERE [cmdtgtype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_COMMANDTARGETTYPE] (
			[cmdtgtype_id], 
			[cmdtgtype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_COMMANDTARGETTYPE] 
			SET 
				[cmdtgtype_name] = ISNULL(@i_name, [cmdtgtype_name])
			WHERE [cmdtgtype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_COMMANDTARGETTYPE] 
				SET 
					[cmdtgtype_name] = ISNULL([cmdtgtype_name], @i_name)
				WHERE [cmdtgtype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_COMMANDTARGETTYPE] 
				SET 
					[cmdtgtype_name] = @i_name
				WHERE [cmdtgtype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_COMMANDTYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_COMMANDTYPE] WHERE [cmdtype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_COMMANDTYPE] (
			[cmdtype_id], 
			[cmdtype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_COMMANDTYPE] 
			SET 
				[cmdtype_name] = ISNULL(@i_name, [cmdtype_name])
			WHERE [cmdtype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_COMMANDTYPE] 
				SET 
					[cmdtype_name] = ISNULL([cmdtype_name], @i_name)
				WHERE [cmdtype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_COMMANDTYPE] 
				SET 
					[cmdtype_name] = @i_name
				WHERE [cmdtype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_CURRENCY] 
	@i_id				INT, 
	@i_name				VARCHAR(50) = NULL,
	@i_symbol			VARCHAR(3)	= NULL,
	@i_supress_nulls	INT			= 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_CURRENCY] WHERE [currency_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_CURRENCY] (
			[currency_id], 
			[currency_name],
			[currency_symbol]
		)
		VALUES(
			@i_id, 
			@i_name,
			@i_symbol
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_CURRENCY] 
			SET 
				[currency_name] = ISNULL(@i_name, [currency_name]),
				[currency_symbol] = ISNULL(@i_symbol, [currency_symbol])
			WHERE [currency_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_CURRENCY] 
				SET 
					[currency_name] = ISNULL([currency_name], @i_name),
					[currency_symbol] = ISNULL([currency_symbol], @i_symbol)
				WHERE [currency_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_CURRENCY] 
				SET 
					[currency_name] = @i_name,
					[currency_symbol] = @i_symbol
				WHERE [currency_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_DEVAGENTPROFILEDET] 
	@i_name				VARCHAR(50)		= NULL,
	@i_profileId		INT				= NULL,
	@i_value			VARCHAR(1024)	= NULL,
	@i_supress_nulls	INT				= 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_DEVICEAGENTPROFILEDETAIL] WHERE [devagentprofiledet_name] = @i_name AND [devagentprofiledet_profileid] = @i_profileId;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_DEVICEAGENTPROFILEDETAIL] (
			[devagentprofiledet_name],
			[devagentprofiledet_value],
			[devagentprofiledet_profileid]
		)
		VALUES(
			@i_name, 
			@i_value,
			@i_profileId
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_DEVICEAGENTPROFILEDETAIL] 
			SET 
				[devagentprofiledet_value] = ISNULL(@i_value, [devagentprofiledet_value])
			WHERE [devagentprofiledet_name] = @i_name AND [devagentprofiledet_profileid] = @i_profileId;
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_DEVICEAGENTPROFILEDETAIL] 
				SET 
					[devagentprofiledet_value] = ISNULL([devagentprofiledet_value], @i_value)
				WHERE [devagentprofiledet_name] = @i_name AND [devagentprofiledet_profileid] = @i_profileId;
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_DEVICEAGENTPROFILEDETAIL] 
				SET 
					[devagentprofiledet_value] = @i_value
				WHERE [devagentprofiledet_name] = @i_name AND [devagentprofiledet_profileid] = @i_profileId;
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_DEVICEAFWMODE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_DEVICEAFWMODE] WHERE [afwmode_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_DEVICEAFWMODE] (
			[afwmode_id], 
			[afwmode_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_DEVICEAFWMODE] 
			SET 
				[afwmode_name] = ISNULL(@i_name, [afwmode_name])
			WHERE [afwmode_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_DEVICEAFWMODE] 
				SET 
					[afwmode_name] = ISNULL([afwmode_name], @i_name)
				WHERE [afwmode_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_DEVICEAFWMODE] 
				SET 
					[afwmode_name] = @i_name
				WHERE [afwmode_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_DEVICEAGENTPROFILE] 
	@i_name				VARCHAR(255) = NULL,
	@i_creationDate		DATETIME	 = NULL,
	@i_userCreatorId	INT			 = NULL,
	@i_supress_nulls	INT			 = 0,
	@o_agentProfileId	INT			 OUT
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_DEVICEAGENTPROFILE] WHERE [devagentprofile_name] = @i_name;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_DEVICEAGENTPROFILE] (
			[devagentprofile_name],
			[devagentprofile_creationdate],
			[devagentprofile_usercreatorid]
		)
		VALUES(
			@i_name, 
			@i_creationDate,
			@i_userCreatorId
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_DEVICEAGENTPROFILE] 
			SET 
				[devagentprofile_creationdate] = ISNULL(@i_creationDate, [devagentprofile_creationdate]),
				[devagentprofile_usercreatorid] = ISNULL(@i_userCreatorId, [devagentprofile_usercreatorid])
			WHERE [devagentprofile_name] = @i_name 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_DEVICEAGENTPROFILE] 
				SET 
					[devagentprofile_creationdate] = ISNULL([devagentprofile_creationdate], @i_creationDate),
					[devagentprofile_usercreatorid] = ISNULL([devagentprofile_usercreatorid], @i_userCreatorId)
				WHERE [devagentprofile_name] = @i_name 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_DEVICEAGENTPROFILE] 
				SET 
					[devagentprofile_creationdate] = @i_creationDate,
					[devagentprofile_usercreatorid] = @i_userCreatorId
				WHERE [devagentprofile_name] = @i_name 
			END
		END
	END

	SELECT @o_agentProfileId = MIN(devagentprofile_id) FROM [AMDM_DEVICEAGENTPROFILE] WHERE [devagentprofile_name] = @i_name;
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_DEVICEENROLLSTATUS] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL, 
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_DEVICEENROLLSTATUS] WHERE [enrstat_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_DEVICEENROLLSTATUS](
			[enrstat_id], 
			[enrstat_name]
		)
		VALUES(
			@i_id,
			@i_name
		)
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_DEVICEENROLLSTATUS] 
			SET 
				[enrstat_name] = ISNULL(@i_name, [enrstat_name])
			WHERE [enrstat_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_DEVICEENROLLSTATUS] 
				SET 
					[enrstat_name] = ISNULL([enrstat_name], @i_name)
				WHERE [enrstat_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_DEVICEENROLLSTATUS] 
				SET 
					[enrstat_name] = @i_name
				WHERE [enrstat_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_DEVICEEVENTTYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_DEVICEEVENTTYPE] WHERE [deventtype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_DEVICEEVENTTYPE] (
			[deventtype_id], 
			[deventtype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_DEVICEEVENTTYPE] 
			SET 
				[deventtype_name] = ISNULL(@i_name, [deventtype_name])
			WHERE [deventtype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_DEVICEEVENTTYPE] 
				SET 
					[deventtype_name] = ISNULL([deventtype_name], @i_name)
				WHERE [deventtype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_DEVICEEVENTTYPE] 
				SET 
					[deventtype_name] = @i_name
				WHERE [deventtype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_DEVICEMODELS]
	@i_name				VARCHAR(64)  = NULL,
	@i_commercialname	VARCHAR(64)  = NULL,
	@i_platform_id		INT          = NULL,
	@i_manufacturer_id	INT          = NULL,
	@i_cpu_name			NVARCHAR(100) = NULL,
	@i_cpu_frequency	BIGINT  = NULL,
	@i_cpu_cores		INT          = NULL,
	@i_battery_tech		NVARCHAR(50)  = NULL,
	@i_battery_voltage	NVARCHAR(20)  = NULL,
	@i_screen_resolution NVARCHAR(20) = NULL,
	@i_screen_size		NVARCHAR(10)  = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN
	SET NOCOUNT ON;
	DECLARE @v_count INT;

	SELECT @v_count = COUNT(*)
	FROM [dbo].[AMDM_DEVICEMODELS]
	WHERE [name] = @i_name;

	IF @v_count = 0
	BEGIN
		INSERT INTO [dbo].[AMDM_DEVICEMODELS] (
			[name],
			[commercialname],
			[platform_id],
			[manufacturer_id],
			[cpu_name],
			[cpu_frequency],
			[cpu_cores],
			[battery_tech],
			[battery_voltage],
			[screen_resolution],
			[screen_size]
		)
		VALUES(
			@i_name,
			@i_commercialname,
			@i_platform_id,
			@i_manufacturer_id,
			@i_cpu_name,
			@i_cpu_frequency,
			@i_cpu_cores,
			@i_battery_tech,
			@i_battery_voltage,
			@i_screen_resolution,
			@i_screen_size
		)
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [dbo].[AMDM_DEVICEMODELS]
			SET
				[name]              = ISNULL(@i_name,              [name]),
				[commercialname]    = ISNULL(@i_commercialname,    [commercialname]),
				[platform_id]       = ISNULL(@i_platform_id,       [platform_id]),
				[manufacturer_id]   = ISNULL(@i_manufacturer_id,   [manufacturer_id]),
				[cpu_name]          = ISNULL(@i_cpu_name,          [cpu_name]),
				[cpu_frequency]     = ISNULL(@i_cpu_frequency,     [cpu_frequency]),
				[cpu_cores]         = ISNULL(@i_cpu_cores,         [cpu_cores]),
				[battery_tech]      = ISNULL(@i_battery_tech,      [battery_tech]),
				[battery_voltage]   = ISNULL(@i_battery_voltage,   [battery_voltage]),
				[screen_resolution] = ISNULL(@i_screen_resolution, [screen_resolution]),
				[screen_size]       = ISNULL(@i_screen_size,       [screen_size])
			WHERE [name] = @i_name
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [dbo].[AMDM_DEVICEMODELS]
				SET
					[name]              = ISNULL([name],              @i_name),
					[commercialname]    = ISNULL([commercialname],    @i_commercialname),
					[platform_id]       = ISNULL([platform_id],       @i_platform_id),
					[manufacturer_id]   = ISNULL([manufacturer_id],   @i_manufacturer_id),
					[cpu_name]          = ISNULL([cpu_name],          @i_cpu_name),
					[cpu_frequency]     = ISNULL([cpu_frequency],     @i_cpu_frequency),
					[cpu_cores]         = ISNULL([cpu_cores],         @i_cpu_cores),
					[battery_tech]      = ISNULL([battery_tech],      @i_battery_tech),
					[battery_voltage]   = ISNULL([battery_voltage],   @i_battery_voltage),
					[screen_resolution] = ISNULL([screen_resolution], @i_screen_resolution),
					[screen_size]       = ISNULL([screen_size],       @i_screen_size)
				WHERE [name] = @i_name
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [dbo].[AMDM_DEVICEMODELS]
				SET
					[name]              = @i_name,
					[commercialname]    = @i_commercialname,
					[platform_id]       = @i_platform_id,
					[manufacturer_id]   = @i_manufacturer_id,
					[cpu_name]          = @i_cpu_name,
					[cpu_frequency]     = @i_cpu_frequency,
					[cpu_cores]         = @i_cpu_cores,
					[battery_tech]      = @i_battery_tech,
					[battery_voltage]   = @i_battery_voltage,
					[screen_resolution] = @i_screen_resolution,
					[screen_size]       = @i_screen_size
				WHERE [name] = @i_name
			END
		END
	END
END
GO

CREATE PROCEDURE [dbo].[MD_AMDM_DEVICEPLATFORM] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_DEVICEPLATFORM] WHERE [platf_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_DEVICEPLATFORM] (
			[platf_id], 
			[platf_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_DEVICEPLATFORM] 
			SET 
				[platf_name] = ISNULL(@i_name, [platf_name])
			WHERE [platf_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_DEVICEPLATFORM] 
				SET 
					[platf_name] = ISNULL([platf_name], @i_name)
				WHERE [platf_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_DEVICEPLATFORM] 
				SET 
					[platf_name] = @i_name
				WHERE [platf_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_DEVICESTATUS] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_DEVICESTATUS] WHERE [devstat_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_DEVICESTATUS] (
			[devstat_id], 
			[devstat_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_DEVICESTATUS] 
			SET 
				[devstat_name] = ISNULL(@i_name, [devstat_name])
			WHERE [devstat_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_DEVICESTATUS] 
				SET 
					[devstat_name] = ISNULL([devstat_name], @i_name)
				WHERE [devstat_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_DEVICESTATUS] 
				SET 
					[devstat_name] = @i_name
				WHERE [devstat_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_DYNAMICGROUPPARAMTYPE]
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_DYNAMICGROUPPARAMTYPE] WHERE [dyngrpartyp_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_DYNAMICGROUPPARAMTYPE] (
			[dyngrpartyp_id], 
			[dyngrpartyp_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_DYNAMICGROUPPARAMTYPE] 
			SET 
				[dyngrpartyp_name] = ISNULL(@i_name, [dyngrpartyp_name])
			WHERE [dyngrpartyp_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_DYNAMICGROUPPARAMTYPE] 
				SET 
					[dyngrpartyp_name] = ISNULL([dyngrpartyp_name], @i_name)
				WHERE [dyngrpartyp_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_DYNAMICGROUPPARAMTYPE] 
				SET 
					[dyngrpartyp_name] = @i_name
				WHERE [dyngrpartyp_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_ENROLLMENTERROR] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_ENROLLMENTERROR] WHERE [enrerr_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_ENROLLMENTERROR] (
			[enrerr_id], 
			[enrerr_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_ENROLLMENTERROR] 
			SET 
				[enrerr_name] = ISNULL(@i_name, [enrerr_name])
			WHERE [enrerr_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_ENROLLMENTERROR] 
				SET 
					[enrerr_name] = ISNULL([enrerr_name], @i_name)
				WHERE [enrerr_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_ENROLLMENTERROR] 
				SET 
					[enrerr_name] = @i_name
				WHERE [enrerr_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_code				VARCHAR(255) = NULL,
	@i_code_store		VARCHAR(3)	 = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_EXPENSE_COUNTRYCODE] WHERE [countrycode_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_EXPENSE_COUNTRYCODE] (
			[countrycode_id], 
			[countrycode_name],
			[countrycode_code],
			[codestore]
		)
		VALUES(
			@i_id, 
			@i_name,
			@i_code,
			@i_code_store
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_EXPENSE_COUNTRYCODE] 
			SET 
				[countrycode_name] = ISNULL(@i_name, [countrycode_name]),
				[countrycode_code] = ISNULL(@i_code, [countrycode_code]),
				[codestore] = ISNULL(@i_code_store, [codestore])
			WHERE [countrycode_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_EXPENSE_COUNTRYCODE] 
				SET 
					[countrycode_name] = ISNULL([countrycode_name], @i_name),
					[countrycode_code] = ISNULL([countrycode_code], @i_code),
					[codestore] = ISNULL([codestore], @i_code_store)
				WHERE [countrycode_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_EXPENSE_COUNTRYCODE] 
				SET 
					[countrycode_name] = @i_name,
					[countrycode_code] = @i_code,
					[codestore] = @i_code_store
				WHERE [countrycode_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_EVENT_STATUS] 
	@i_name				VARCHAR(50), 
	@i_row_date			DATETIME = NULL
AS
BEGIN 
	SET NOCOUNT ON;

	IF NOT EXISTS (SELECT 1 FROM [AMDM_EVENT_STATUS] WHERE [name] = @i_name) 
	BEGIN
		INSERT INTO AMDM_EVENT_STATUS
		(
			[name],
			[row_date]
		)
		VALUES (
			@i_name,
			@i_row_date
		)
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_EVENT_TYPE] 
	@i_name				VARCHAR(50), 
	@i_active			BIT = 1,
	@i_row_date			DATETIME = NULL
AS
BEGIN 
	SET NOCOUNT ON;
	
	IF NOT EXISTS(SELECT 1 FROM [AMDM_EVENT_TYPE] WHERE [name] = @i_name)
	BEGIN
		
		INSERT INTO AMDM_EVENT_TYPE
		(
			[name],
			[active],
			[row_date]
		)
		VALUES (
			@i_name,
			@i_active,
			@i_row_date
		)

	END
	ELSE
	BEGIN
		
		UPDATE AMDM_EVENT_TYPE
		SET [active] = @i_active
		WHERE [name] = @i_name
		
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_FLAGDEVICE] 
	@i_id				INT, 
	@i_name				VARCHAR(50) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_FLAGDEVICE] WHERE [id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_FLAGDEVICE] (
			[id], 
			[flag]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_FLAGDEVICE] 
			SET 
				[flag] = ISNULL(@i_name, [flag])
			WHERE [id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_FLAGDEVICE] 
				SET 
					[flag] = ISNULL([flag], @i_name)
				WHERE [id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_FLAGDEVICE] 
				SET 
					[flag] = @i_name
				WHERE [id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_MANPROJECT_ACTION_TYPE] WHERE [manprojectactiontype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_MANPROJECT_ACTION_TYPE] (
			[manprojectactiontype_id], 
			[manprojectactiontype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_MANPROJECT_ACTION_TYPE] 
			SET 
				[manprojectactiontype_name] = ISNULL(@i_name, [manprojectactiontype_name])
			WHERE [manprojectactiontype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_MANPROJECT_ACTION_TYPE] 
				SET 
					[manprojectactiontype_name] = ISNULL([manprojectactiontype_name], @i_name)
				WHERE [manprojectactiontype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_MANPROJECT_ACTION_TYPE] 
				SET 
					[manprojectactiontype_name] = @i_name
				WHERE [manprojectactiontype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_MANPROJ_NOTIFY_TYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_MANPROJECT_NOTIFY_TYPE] WHERE [manprojectnotifytype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_MANPROJECT_NOTIFY_TYPE] (
			[manprojectnotifytype_id], 
			[manprojectnotifytype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_MANPROJECT_NOTIFY_TYPE] 
			SET 
				[manprojectnotifytype_name] = ISNULL(@i_name, [manprojectnotifytype_name])
			WHERE [manprojectnotifytype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_MANPROJECT_NOTIFY_TYPE] 
				SET 
					[manprojectnotifytype_name] = ISNULL([manprojectnotifytype_name], @i_name)
				WHERE [manprojectnotifytype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_MANPROJECT_NOTIFY_TYPE] 
				SET 
					[manprojectnotifytype_name] = @i_name
				WHERE [manprojectnotifytype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_MANPROJECT_STATUS] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_MANPROJECT_STATUS] WHERE [manprojectstatus_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_MANPROJECT_STATUS] (
			[manprojectstatus_id], 
			[manprojectstatus_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_MANPROJECT_STATUS] 
			SET 
				[manprojectstatus_name] = ISNULL(@i_name, [manprojectstatus_name])
			WHERE [manprojectstatus_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_MANPROJECT_STATUS] 
				SET 
					[manprojectstatus_name] = ISNULL([manprojectstatus_name], @i_name)
				WHERE [manprojectstatus_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_MANPROJECT_STATUS] 
				SET 
					[manprojectstatus_name] = @i_name
				WHERE [manprojectstatus_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_MOBILEMANUFACTURERS] 
	@i_mobman_name				VARCHAR(256) = NULL,
	@i_mobman_platform		INT = NULL,
	@i_supress_nulls	INT			= 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) 
	FROM [dbo].[AMDM_MOBILEMANUFACTURERS] 
	WHERE [mobman_name] = @i_mobman_name;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [dbo].[AMDM_MOBILEMANUFACTURERS] (
			[mobman_name], 
			[mobman_platform]
		)
		VALUES(
			@i_mobman_name, 
			@i_mobman_platform
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [dbo].[AMDM_MOBILEMANUFACTURERS] 
			SET 
				[mobman_name] = ISNULL(@i_mobman_name, [mobman_name]),
				[mobman_platform] = ISNULL(@i_mobman_platform, [mobman_platform])
			WHERE [mobman_name] = @i_mobman_name 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [dbo].[AMDM_MOBILEMANUFACTURERS] 
				SET 
					[mobman_name] = ISNULL([mobman_name], @i_mobman_name),
					[mobman_platform] = ISNULL([mobman_platform], @i_mobman_platform)
				WHERE [mobman_name] = @i_mobman_name 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [dbo].[AMDM_MOBILEMANUFACTURERS] 
				SET 
					[mobman_name] = @i_mobman_name,
					[mobman_platform] = @i_mobman_platform
				WHERE [mobman_name] = @i_mobman_name 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_MOBPLATFORMSVERSIONS] 
	@i_id				INT, 
	@i_version			VARCHAR(255) = NULL,
	@i_platform			INT			 = NULL,
	@i_description		VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_MOBILEPLATFORMSVERSIONS] WHERE [platformver_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_MOBILEPLATFORMSVERSIONS] (
			[platformver_id], 
			[platformver_version],
			[platformver_platform],
			[platformver_description]
		)
		VALUES(
			@i_id, 
			@i_version,
			@i_platform,
			@i_description
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_MOBILEPLATFORMSVERSIONS] 
			SET 
				[platformver_version] = ISNULL(@i_version, [platformver_version]),
				[platformver_platform] = ISNULL(@i_platform, [platformver_platform]),
				[platformver_description] = ISNULL(@i_description, [platformver_description])
			WHERE [platformver_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_MOBILEPLATFORMSVERSIONS] 
				SET 
					[platformver_version] = ISNULL([platformver_version], @i_version),
					[platformver_platform] = ISNULL([platformver_platform], @i_platform),
					[platformver_description] = ISNULL([platformver_description], @i_description)
				WHERE [platformver_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_MOBILEPLATFORMSVERSIONS] 
				SET 
					[platformver_version] = @i_version,
					[platformver_platform] = @i_platform,
					[platformver_description] = @i_description
				WHERE [platformver_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_NOTIFICATIONTYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_NOTIFICATIONTYPE] WHERE [devnottype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_NOTIFICATIONTYPE] (
			[devnottype_id], 
			[devnottype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_NOTIFICATIONTYPE] 
			SET 
				[devnottype_name] = ISNULL(@i_name, [devnottype_name])
			WHERE [devnottype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_NOTIFICATIONTYPE] 
				SET 
					[devnottype_name] = ISNULL([devnottype_name], @i_name)
				WHERE [devnottype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_NOTIFICATIONTYPE] 
				SET 
					[devnottype_name] = @i_name
				WHERE [devnottype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_POLICY] 
	@i_name				VARCHAR(255),
	@i_createdBy		INT				= NULL,
	@i_modifiedBy		INt				= NULL,
	@i_lastModified		DATETIME		= NULL,
	@i_createdDate		DATETIME		= NULL,
	@i_platformId		INT				= NULL,
	@i_approvedBy		INT				= NULL,
	@i_lastApproved		DATETIME		= NULL,
	@i_status			INT				= NULL,
	@i_version			INT				= NULL,
	@i_supress_nulls	INT				= 0,
	@o_idPolicy			INT				OUT
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_POLICY] WHERE [policy_policyname] = @i_name AND [policy_platformid] = @i_platformId;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_POLICY] (
			[policy_policyname],
			[policy_createby],
			[policy_modifiedby],
			[policy_lastmodified],
			[policy_createdate],
			[policy_platformid],
			[policy_ApprovedBy],
			[policy_lastapproved],
			[policy_status],
			[policy_version]
		)
		VALUES(
			@i_name,
			@i_createdBy,
			@i_modifiedBy,
			@i_lastModified,
			@i_createdDate,
			@i_platformId,
			@i_approvedBy,
			@i_lastApproved,
			@i_status,
			@i_version
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_POLICY] 
			SET 
				[policy_createby] = ISNULL(@i_createdBy, [policy_createby]),
				[policy_modifiedby] = ISNULL(@i_modifiedBy, [policy_modifiedby]),
				[policy_lastmodified] = ISNULL(@i_lastModified, [policy_lastmodified]),
				[policy_createdate] = ISNULL(@i_createdDate, [policy_createdate]),
				[policy_ApprovedBy] = ISNULL(@i_approvedBy, [policy_ApprovedBy]),
				[policy_lastapproved] = ISNULL(@i_lastApproved, [policy_lastapproved]),
				[policy_status] = ISNULL(@i_status, [policy_status]),
				[policy_version] = ISNULL(@i_version, [policy_version])
			WHERE [policy_policyname] = @i_name AND [policy_platformid] = @i_platformId	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_POLICY] 
				SET 
					[policy_createby] = ISNULL([policy_createby], @i_createdBy),
					[policy_modifiedby] = ISNULL([policy_modifiedby], @i_modifiedBy),
					[policy_lastmodified] = ISNULL([policy_lastmodified], @i_lastModified),
					[policy_createdate] = ISNULL([policy_createdate], @i_createdDate),
					[policy_ApprovedBy] = ISNULL([policy_ApprovedBy], @i_approvedBy),
					[policy_lastapproved] = ISNULL([policy_lastapproved], @i_lastApproved),
					[policy_status] = ISNULL([policy_status], @i_status),
					[policy_version] = ISNULL([policy_version], @i_version)
				WHERE [policy_policyname] = @i_name AND [policy_platformid] = @i_platformId
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_POLICY] 
				SET 
					[policy_createby] = @i_createdBy,
					[policy_modifiedby] = @i_modifiedBy,
					[policy_lastmodified] = @i_lastModified,
					[policy_createdate] = @i_createdDate,
					[policy_ApprovedBy] = @i_approvedBy,
					[policy_lastapproved] = @i_lastApproved,
					[policy_status] = @i_status,
					[policy_version] = @i_version
				WHERE [policy_policyname] = @i_name AND [policy_platformid] = @i_platformId
			END
		END
	END
	SELECT @o_idPolicy = MIN(policy_id) FROM [AMDM_POLICY] WHERE [policy_policyname] = @i_name AND [policy_platformid] = @i_platformId;
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_POLICYFULFILLPROBTYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_POLICYFULFILLPROBLEMTYPE] WHERE [fulfilledpromtype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_POLICYFULFILLPROBLEMTYPE] (
			[fulfilledpromtype_id], 
			[fulfilledpromtype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_POLICYFULFILLPROBLEMTYPE] 
			SET 
				[fulfilledpromtype_name] = ISNULL(@i_name, [fulfilledpromtype_name])
			WHERE [fulfilledpromtype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_POLICYFULFILLPROBLEMTYPE] 
				SET 
					[fulfilledpromtype_name] = ISNULL([fulfilledpromtype_name], @i_name)
				WHERE [fulfilledpromtype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_POLICYFULFILLPROBLEMTYPE] 
				SET 
					[fulfilledpromtype_name] = @i_name
				WHERE [fulfilledpromtype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_POLICYITEMTYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_POLICYITEMTYPE] WHERE [politemtype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_POLICYITEMTYPE] (
			[politemtype_id], 
			[politemtype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_POLICYITEMTYPE] 
			SET 
				[politemtype_name] = ISNULL(@i_name, [politemtype_name])
			WHERE [politemtype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_POLICYITEMTYPE] 
				SET 
					[politemtype_name] = ISNULL([politemtype_name], @i_name)
				WHERE [politemtype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_POLICYITEMTYPE] 
				SET 
					[politemtype_name] = @i_name
				WHERE [politemtype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_POLICYSTATUSTYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_POLICYSTATUSTYPE] WHERE [polstatype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_POLICYSTATUSTYPE] (
			[polstatype_id], 
			[polstatype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_POLICYSTATUSTYPE] 
			SET 
				[polstatype_name] = ISNULL(@i_name, [polstatype_name])
			WHERE [polstatype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_POLICYSTATUSTYPE] 
				SET 
					[polstatype_name] = ISNULL([polstatype_name], @i_name)
				WHERE [polstatype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_POLICYSTATUSTYPE] 
				SET 
					[polstatype_name] = @i_name
				WHERE [polstatype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_POLICYVERSION] 
	@i_name				VARCHAR(255),
	@i_createdBy		INT				= NULL,
	@i_modifiedBy		INt				= NULL,
	@i_lastModified		DATETIME		= NULL,
	@i_createdDate		DATETIME		= NULL,
	@i_platformId		INT				= NULL,
	@i_approvedBy		INT				= NULL,
	@i_lastApproved		DATETIME		= NULL,
	@i_version			INT				= NULL,
	@i_parentPolicyId	INT				= NULL,
	@i_supress_nulls	INT				= 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_POLICYVERSION] WHERE [policy_policyname] = @i_name AND [policy_platformid] = @i_platformId;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_POLICYVERSION] (
			[policy_policyname],
			[policy_createby],
			[policy_modifiedby],
			[policy_lastmodified],
			[policy_createdate],
			[policy_platformid],
			[policy_ApprovedBy],
			[policy_lastapproved],
			[policy_version],
			[policy_parentpolicy]
		)
		VALUES(
			@i_name,
			@i_createdBy,
			@i_modifiedBy,
			@i_lastModified,
			@i_createdDate,
			@i_platformId,
			@i_approvedBy,
			@i_lastApproved,
			@i_version,
			@i_parentPolicyId
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_POLICYVERSION] 
			SET 
				[policy_createby] = ISNULL(@i_createdBy, [policy_createby]),
				[policy_modifiedby] = ISNULL(@i_modifiedBy, [policy_modifiedby]),
				[policy_lastmodified] = ISNULL(@i_lastModified, [policy_lastmodified]),
				[policy_createdate] = ISNULL(@i_createdDate, [policy_createdate]),
				[policy_ApprovedBy] = ISNULL(@i_approvedBy, [policy_ApprovedBy]),
				[policy_lastapproved] = ISNULL(@i_lastApproved, [policy_lastapproved]),
				[policy_version] = ISNULL(@i_version, [policy_version]),
				[policy_parentpolicy] = ISNULL(@i_parentPolicyId, [policy_parentpolicy])
			WHERE [policy_policyname] = @i_name AND [policy_platformid] = @i_platformId	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_POLICYVERSION] 
				SET 
					[policy_createby] = ISNULL([policy_createby], @i_createdBy),
					[policy_modifiedby] = ISNULL([policy_modifiedby], @i_modifiedBy),
					[policy_lastmodified] = ISNULL([policy_lastmodified], @i_lastModified),
					[policy_createdate] = ISNULL([policy_createdate], @i_createdDate),
					[policy_ApprovedBy] = ISNULL([policy_ApprovedBy], @i_approvedBy),
					[policy_lastapproved] = ISNULL([policy_lastapproved], @i_lastApproved),
					[policy_version] = ISNULL([policy_version], @i_version),
					[policy_parentpolicy] = ISNULL([policy_parentpolicy], @i_parentPolicyId)
				WHERE [policy_policyname] = @i_name AND [policy_platformid] = @i_platformId
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_POLICYVERSION] 
				SET 
					[policy_createby] = @i_createdBy,
					[policy_modifiedby] = @i_modifiedBy,
					[policy_lastmodified] = @i_lastModified,
					[policy_createdate] = @i_createdDate,
					[policy_ApprovedBy] = @i_approvedBy,
					[policy_lastapproved] = @i_lastApproved,
					[policy_version] = @i_version,
					[policy_parentpolicy] = @i_parentPolicyId
				WHERE [policy_policyname] = @i_name AND [policy_platformid] = @i_platformId
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_OWNERSHIP_TYPE]
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_OWNERSHIP_TYPE] WHERE [owntype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_OWNERSHIP_TYPE] (
			[owntype_id], 
			[owntype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_OWNERSHIP_TYPE] 
			SET 
				[owntype_name] = ISNULL(@i_name, [owntype_name])
			WHERE [owntype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_OWNERSHIP_TYPE] 
				SET 
					[owntype_name] = ISNULL([owntype_name], @i_name)
				WHERE [owntype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_OWNERSHIP_TYPE] 
				SET 
					[owntype_name] = @i_name
				WHERE [owntype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_RCSESSIONSTATUS] 
	@i_id				INT, 
	@i_name				VARCHAR(64) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_RCSESSIONSTATUS] WHERE [rcsesstat_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_RCSESSIONSTATUS] (
			[rcsesstat_id], 
			[rcsesstat_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_RCSESSIONSTATUS] 
			SET 
				[rcsesstat_name] = ISNULL(@i_name, [rcsesstat_name])
			WHERE [rcsesstat_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_RCSESSIONSTATUS] 
				SET 
					[rcsesstat_name] = ISNULL([rcsesstat_name], @i_name)
				WHERE [rcsesstat_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_RCSESSIONSTATUS] 
				SET 
					[rcsesstat_name] = @i_name
				WHERE [rcsesstat_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_RULE_TYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_RULE_TYPE] WHERE [rtype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_RULE_TYPE] (
			[rtype_id], 
			[rtype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_RULE_TYPE] 
			SET 
				[rtype_name] = ISNULL(@i_name, [rtype_name])
			WHERE [rtype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_RULE_TYPE] 
				SET 
					[rtype_name] = ISNULL([rtype_name], @i_name)
				WHERE [rtype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_RULE_TYPE] 
				SET 
					[rtype_name] = @i_name
				WHERE [rtype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_RULESET] 
	@i_name				VARCHAR(255), 
	@i_userCreatorId	INT				= NULL,
	@i_lastUserId		INT				= NULL,
	@i_haveGeofencing	BIT				= NULL,
	@i_haveUnenroll		BIT				= NULL,
	@i_haveRooted		BIT				= NULL,
	@i_haveFullfillment	BIT				= NULL,
	@i_haveLoginFailed	BIT				= NULL,
	@i_version			INT				= NULL,
	@i_creationDate		DATETIME		= NULL,
	@i_lastModification	DATETIME		= NULL,
	@i_supress_nulls	INT				= 0, 
	@o_idRuleset		INT				OUT
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_RULESET] WHERE [ruleset_name] = @i_name;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_RULESET] (
			[ruleset_name],
			[ruleset_creationdate],
			[ruleset_usercreatorid],
			[ruleset_lastuserid],
			[ruleset_lastmodification],
			[ruleset_haveGeofencing],
			[ruleset_haveUnenroll],
			[ruleset_haveRooted],
			[ruleset_haveFullFillment],
			[ruleset_haveLoginFailed],
			[ruleset_version]
		)
		VALUES(
			@i_name,
			@i_creationDate,
			@i_userCreatorId,
			@i_lastUserId,
			@i_lastModification,
			@i_haveGeofencing,
			@i_haveUnenroll,
			@i_haveRooted,
			@i_haveFullfillment,
			@i_haveLoginFailed,
			@i_version	
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_RULESET] 
			SET 
				[ruleset_creationdate] = ISNULL(@i_creationDate, [ruleset_creationdate]),
				[ruleset_usercreatorid] = ISNULL(@i_userCreatorId, [ruleset_usercreatorid]),
				[ruleset_lastuserid] = ISNULL(@i_lastUserId, [ruleset_lastuserid]),
				[ruleset_lastmodification] = ISNULL(@i_lastModification, [ruleset_lastmodification]),
				[ruleset_haveGeofencing] = ISNULL(@i_haveGeofencing, [ruleset_haveGeofencing]),
				[ruleset_haveUnenroll] = ISNULL(@i_haveUnenroll, [ruleset_haveUnenroll]),
				[ruleset_haveRooted] = ISNULL(@i_haveRooted, [ruleset_haveRooted]),
				[ruleset_haveFullFillment] = ISNULL(@i_haveFullfillment, [ruleset_haveFullFillment]),
				[ruleset_haveLoginFailed] = ISNULL(@i_haveLoginFailed, [ruleset_haveLoginFailed]),
				[ruleset_version] = ISNULL(@i_version, [ruleset_version])
			WHERE [ruleset_name] = @i_name	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_RULESET] 
				SET 
					[ruleset_creationdate] = ISNULL([ruleset_creationdate], @i_creationDate),
					[ruleset_usercreatorid] = ISNULL([ruleset_usercreatorid], @i_userCreatorId),
					[ruleset_lastuserid] = ISNULL([ruleset_lastuserid], @i_lastUserId),
					[ruleset_lastmodification] = ISNULL([ruleset_lastmodification], @i_lastModification),
					[ruleset_haveGeofencing] = ISNULL([ruleset_haveGeofencing], @i_haveGeofencing),
					[ruleset_haveUnenroll] = ISNULL([ruleset_haveUnenroll], @i_haveUnenroll),
					[ruleset_haveRooted] = ISNULL([ruleset_haveRooted], @i_haveRooted),
					[ruleset_haveFullFillment] = ISNULL([ruleset_haveFullFillment], @i_haveFullfillment),
					[ruleset_haveLoginFailed] = ISNULL([ruleset_haveLoginFailed], @i_haveLoginFailed),
					[ruleset_version] = ISNULL([ruleset_version], @i_version)
				WHERE [ruleset_name] = @i_name
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_RULESET] 
				SET 
					[ruleset_creationdate] = @i_creationDate,
					[ruleset_usercreatorid] = @i_userCreatorId,
					[ruleset_lastuserid] = @i_lastUserId,
					[ruleset_lastmodification] = @i_lastModification,
					[ruleset_haveGeofencing] = @i_haveGeofencing,
					[ruleset_haveUnenroll] = @i_haveUnenroll,
					[ruleset_haveRooted] = @i_haveRooted,
					[ruleset_haveFullFillment] = @i_haveFullfillment,
					[ruleset_haveLoginFailed] = @i_haveLoginFailed,
					[ruleset_version] = @i_version
				WHERE [ruleset_name] = @i_name
			END
		END
	END
	SELECT @o_idRuleset = MIN(ruleset_id) FROM [AMDM_RULESET] WHERE [ruleset_name] = @i_name;
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_SYSTEMAPP] 
	@i_package			VARCHAR(255) = NULL, 
	@i_typeId			INT			 = NULL
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_SYSTEMAPP] WHERE [systemapp_package] = @i_package AND [systemapp_typeid] = @i_typeId; 
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_SYSTEMAPP] (
			[systemapp_package], 
			[systemapp_typeid]
		)
		VALUES(
			@i_package, 
			@i_typeId
		) 
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_SYSTEMAPPTYPE] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_SYSTEMAPPTYPE] WHERE [sysapptype_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_SYSTEMAPPTYPE] (
			[sysapptype_id], 
			[sysapptype_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_SYSTEMAPPTYPE] 
			SET 
				[sysapptype_name] = ISNULL(@i_name, [sysapptype_name])
			WHERE [sysapptype_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_SYSTEMAPPTYPE] 
				SET 
					[sysapptype_name] = ISNULL([sysapptype_name], @i_name)
				WHERE [sysapptype_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_SYSTEMAPPTYPE] 
				SET 
					[sysapptype_name] = @i_name
				WHERE [sysapptype_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_WEEKDAY] 
	@i_id				INT, 
	@i_name				VARCHAR(255) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_WEEKDAY] WHERE [day_id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_WEEKDAY] (
			[day_id], 
			[day_name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_WEEKDAY] 
			SET 
				[day_name] = ISNULL(@i_name, [day_name])
			WHERE [day_id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_WEEKDAY] 
				SET 
					[day_name] = ISNULL([day_name], @i_name)
				WHERE [day_id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_WEEKDAY] 
				SET 
					[day_name] = @i_name
				WHERE [day_id] = @i_id 
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 
	@i_id					INT, 
	@i_commandText			NVARCHAR(50) = NULL,
	@i_parameters			INT			 = NULL,
	@i_commandActionTypeId	INT			 = NULL,
	@i_isVisible			BIT			 = NULL,
	@i_supress_nulls		INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_SCRIPTCOMMAND_TYPE] WHERE [id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_SCRIPTCOMMAND_TYPE] (
			[id], 
			[command_text],
			[parameters],
			[commandactiontype_id],
			[is_visible]
		)
		VALUES(
			@i_id, 
			@i_commandText,
			@i_parameters,
			@i_commandActionTypeId,
			@i_isVisible
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_SCRIPTCOMMAND_TYPE] 
			SET 
				[command_text] = ISNULL(@i_commandText, [command_text]),
				[parameters] = ISNULL(@i_parameters, [parameters]),
				[commandactiontype_id] = ISNULL(@i_commandActionTypeId, [commandactiontype_id]),
				[is_visible] = ISNULL(@i_isVisible, [is_visible])
			WHERE [id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_SCRIPTCOMMAND_TYPE] 
				SET 
					[command_text] = ISNULL([command_text], @i_commandText),
					[parameters] = ISNULL([parameters], @i_parameters),
					[commandactiontype_id] = ISNULL([commandactiontype_id], @i_commandActionTypeId),
					[is_visible] = ISNULL([is_visible], @i_isVisible)
				WHERE [id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_SCRIPTCOMMAND_TYPE] 
				SET 
					[command_text] = @i_commandText,
					[parameters] = @i_parameters,
					[commandactiontype_id] = @i_commandActionTypeId,
					[is_visible] = @i_isVisible
				WHERE [id] = @i_id
			END
		END
	END
END
GO
CREATE PROCEDURE [dbo].[MD_AMDM_SECURITYVALIDATIONACTION] 
	@i_id				INT, 
	@i_name				NVARCHAR(50) = NULL,
	@i_supress_nulls	INT			 = 0
AS
BEGIN 
	SET NOCOUNT ON;
	DECLARE @v_count INT;
	
	SELECT @v_count = COUNT(*) FROM [AMDM_SECURITYVALIDATION_ACTION] WHERE [id] = @i_id;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO [AMDM_SECURITYVALIDATION_ACTION] (
			[id], 
			[name]
		)
		VALUES(
			@i_id, 
			@i_name
		) 
	END
	ELSE
	BEGIN
		IF @i_supress_nulls = 1			-- Actualiza el registro con el valor de entrada sólo si este valor no es nulo, en caso contrario, mantiene el que se encuentra en el campo en la base de datos
		BEGIN
			UPDATE [AMDM_SECURITYVALIDATION_ACTION] 
			SET 
				[name] = ISNULL(@i_name, [name])
			WHERE [id] = @i_id 	
		END
		BEGIN
			IF @i_supress_nulls = 2		-- Actualiza el registro con el valor de entrada sólo si el valor del campo en la base de datos es nulo, en caso contrario, mantiene el que se encuentra en el campo de la base de datos
			BEGIN
				UPDATE [AMDM_SECURITYVALIDATION_ACTION] 
				SET 
					[name] = ISNULL([name], @i_name)
				WHERE [id] = @i_id 
			END
			ELSE						-- Actualiza el registro con el valor de entrada, sin importar que sea nulo
			BEGIN
				UPDATE [AMDM_SECURITYVALIDATION_ACTION] 
				SET 
					[name] = @i_name
				WHERE [id] = @i_id 
			END
		END
	END
END
GO


/*==========================================================================================================*/
/* METADATA				                                                                                    */
/*==========================================================================================================*/
--Params
PRINT 'AMDM - Required params - Insertando DeviceStatus'
EXEC [dbo].[MD_AMDM_DEVICESTATUS] 0, 'Enrolled'
EXEC [dbo].[MD_AMDM_DEVICESTATUS] 1, 'PendingForEnrollment'
EXEC [dbo].[MD_AMDM_DEVICESTATUS] 2, 'Unenrolled'
GO
PRINT 'AMDM - Required params - Insertando APNSCertificateGenerationStatus'

EXEC [dbo].[MD_AMDM_APNGENERATIONSATUS] 0, 'None'
EXEC [dbo].[MD_AMDM_APNGENERATIONSATUS] 1, 'Start'
EXEC [dbo].[MD_AMDM_APNGENERATIONSATUS] 2, 'GenerateCSR'
EXEC [dbo].[MD_AMDM_APNGENERATIONSATUS] 3, 'RequestToApple'
EXEC [dbo].[MD_AMDM_APNGENERATIONSATUS] 4, 'UploadPemToAranda'
EXEC [dbo].[MD_AMDM_APNGENERATIONSATUS] 5, 'Finished'
GO
PRINT 'AMDM - Required params - Insertando Enrollment status'
EXEC [dbo].[MD_AMDM_DEVICEENROLLSTATUS] 0, 'Pending'
EXEC [dbo].[MD_AMDM_DEVICEENROLLSTATUS] 2, 'Finished'
GO
PRINT 'AMDM - Required params - Insertando Enrollment error'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 0, 'None' 
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 1, 'UnknownEnrollmentCode' 
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 2, 'EnrollmentExpired'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 3, 'BadCredentials'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 4, 'DeviceAlreadyEnrolled'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 5, 'RequestBelongsToOther'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 6, 'TermsNotAccepted'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 7, 'IncorrectPushIdFormat'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 8, 'PushIdAlreadyUsed'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 9, 'MaxAuthAttempsReached'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 10, 'iOSProfileNotInstalled'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 11, 'AdminNotAccepted'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 12, 'CancelByUser'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 13, 'NoPendingEnrollments'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 14, 'IncorrectPlatform'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 15, 'EnrollmentAlreadyClosed'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 16, 'XMLParsingError'
EXEC [dbo].[MD_AMDM_ENROLLMENTERROR] 17, 'DeviceNotFound'
GO
PRINT 'AMDM - Required params - Insertando Device platform'
EXEC [dbo].[MD_AMDM_DEVICEPLATFORM] 0, 'None'
EXEC [dbo].[MD_AMDM_DEVICEPLATFORM] 1, 'Android'
EXEC [dbo].[MD_AMDM_DEVICEPLATFORM] 3, 'Windows'
EXEC [dbo].[MD_AMDM_DEVICEPLATFORM] 4, 'iOS'
GO
PRINT 'AMDM - Required params - Insertando Android for Work Mode'
EXEC [dbo].[MD_AMDM_DEVICEAFWMODE] 1, 'Profile Owner'
EXEC [dbo].[MD_AMDM_DEVICEAFWMODE] 2, 'Device Owner'
GO
PRINT 'AMDM - Required params - Insertando Command status'
EXEC [dbo].[MD_AMDM_COMMANDSTATUS] 0, 'New' 
EXEC [dbo].[MD_AMDM_COMMANDSTATUS] 1, 'Fetched' 
EXEC [dbo].[MD_AMDM_COMMANDSTATUS] 2, 'Resolved'
GO
PRINT 'AMDM - Required params - Insertando Command type'
EXEC [dbo].[MD_AMDM_COMMANDTYPE] 0, 'None'
EXEC [dbo].[MD_AMDM_COMMANDTYPE] 1, 'Action'
EXEC [dbo].[MD_AMDM_COMMANDTYPE] 2, 'Policy'
EXEC [dbo].[MD_AMDM_COMMANDTYPE] 3, 'RuleSet'
EXEC [dbo].[MD_AMDM_COMMANDTYPE] 4, 'Expense'
GO
PRINT 'AMDM - Required params - Insertando target type'
EXEC [dbo].[MD_AMDM_COMMANDTARGETTYPE] 1, 'Device'
EXEC [dbo].[MD_AMDM_COMMANDTARGETTYPE] 2, 'Group'
GO
PRINT 'AMDM - Required params - Insertando Command target protocol'
EXEC [dbo].[MD_AMDM_COMMANDTARGETPROT] 1, 'Rest'
EXEC [dbo].[MD_AMDM_COMMANDTARGETPROT] 2, 'iOSMDM'
EXEC [dbo].[MD_AMDM_COMMANDTARGETPROT] 3, 'Windows10'
GO
PRINT 'AMDM - Required params - Insertando Command error type'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 0, 'None'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 1, 'ExpiredNonFetched'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 2, 'iOSParsing'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 3, 'iOSProtocolError'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 4, 'iOSIncorrectCommandFormat'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 5, 'iOSIdle'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 6, 'iOSNotNow'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 7, 'AppParsing'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 8, 'AppError'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 9, 'ExpiredFetched'
EXEC [dbo].[MD_AMDM_COMMANDERRORTYPE] 10, 'Canceled'
GO
PRINT 'AMDM - Required params - Insertando Command action type'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 1, 'GetDeviceInfo'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 2, 'GetLocationInfo'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 3, 'SendTextMessage'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 4, 'InstalliOSControlApp'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 5, 'Unenroll'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 6, 'LockDevice'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 7, 'WipeDevice'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 8, 'ClearPassword'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 9, 'ChangePassword'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 10, 'GetInstalledApplications'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 11, 'RemoveiOSProfile'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 12, 'RemovePolicy'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 13, 'PolicyInfo'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 14, 'InstallApplication'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 15, 'UnInstallApplication'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 16, 'SendEmailMessage'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 17, 'getSecurityInfo'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 18, 'jailBrokenDeviceDetected'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 19, 'TriggerSound'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 20, 'LocationSensorStatus'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 21, 'UpdateExpense'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 22, 'RemoveWindowsWorkAccessAccount'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 23, 'SetWindowsPushPFN'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 24, 'GetInstalledAppsForWindows'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 25, 'DeviceTracking'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 26, 'GetRoamingState'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 27, 'GetAvailableStorage'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 28, 'SetAndroidFWUserToken'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 29, 'GetWindowsNonStoreApps'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 30, 'GetWindowsAppstoreApps'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 31, 'GetWindowsSystemApps'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 32, 'WebClip'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 33, 'ChangePasswordProfileAFW'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 34, 'SendBrowsingSettings'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 35, 'TotalLock'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 36, 'PolicyAdditionalInfo'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 37, 'RequestRemoteControl'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 38, 'DeviceLost'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 39, 'DeviceFound'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 40, 'Configuration'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 41, 'ClearPasswordProfileAFW'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 42, 'SetVpnIos'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 43, 'PrintMessage'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 44, 'CopyElement'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 45, 'DeleteElement'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 46, 'StartApplication'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 47, 'GetHiddenApplications'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 48, 'SynchronizeLogs'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 49, 'RestartDevice'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 50, 'ChangeRuleSetForManProject'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 51, 'ChangeExpensePlanForManProject'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 52, 'ValidateVersion'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 53, 'ChangeMetrixActivationStatus'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 54, 'ChangeHealthDeviceActivationStatus'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 55, 'HealthDeviceInfo'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 56, 'SetTrackingPolicyIos'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 57, 'ProtectionResetAndroid'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 58, 'DisableProtectionResetAndroid'
EXEC [dbo].[MD_AMDM_COMMANDACTIONTYPE] 59, 'EnableTracking'
GO
PRINT 'AMDM - Required params - Insertando Script Command type'
EXEC [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 1, 'text', 1, 43, 1
EXEC [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 2, 'copy', 2, 44, 1
EXEC [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 3, 'del', 1, 45, 1
EXEC [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 4, 'start', 1, 46, 1
EXEC [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 5, 'install', 1, 14, 1
EXEC [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 6, 'uninstall', 1, 15, 1
EXEC [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 7, 'policy', 1, null, 1
EXEC [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 8, 'validateVersion', 2, 1, 1
EXEC [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 9, 'policyInfo', 0, 13, 0
EXEC [dbo].[MD_AMDM_SCRIPTCOMMAND_TYPE] 10, 'hiddenApplications', 0, 47, 1
GO

PRINT 'AMDM - Required params - Insertando Command action result type'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 1, 'DeviceInfo'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 2, 'LocationInfo'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 3, 'HardwareInfo'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 4, 'NetworkInfo'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 5, 'InstalledApps'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 6, 'SendTextMessage'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 7, 'InstalliOSControlApp'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 8, 'Unenroll'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 9, 'LockDevice'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 10, 'WipeDevice'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 11, 'ClearPassword'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 12, 'ChangePassword'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 13, 'UnenrollByApp'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 14, 'UnenrollByOSPrivileges'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 15, 'ResetBadgeNumber'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 16, 'ApplicationState'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 17, 'getSecurityInfo'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 18, 'jailBrokenDeviceDetected'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 19, 'InstallApplication' 
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 20, 'TriggerSound'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 21, 'LocationSensorStatus'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 22, 'GeofencingStatus'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 23, 'UpdateExpense'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 24, 'ExpenseEvent'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 25, 'SetWindowsPushPFN'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 26, 'InstalledAppsForWindows'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 27, 'DeviceTracking'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 28, 'PushHandleChanged'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 29, 'Polling'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 30, 'AvailableStorage'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 31, 'AFWTokenSet'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 32, 'GetWindowsAppstoreApps'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 33, 'GetWindowsNonStoreApps'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 34, 'GetWindowsSystemApps'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 35, 'WifiFencingStatus'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 36, 'UserLogged'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 37, 'DeviceLost'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 38, 'DeviceFoundByUser'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 39, 'DeviceFound'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 40, 'BatteryLevel'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 41, 'Configuration'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 42, 'UpdateToken'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 43, 'LoginFailed'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 44, 'TotalLock'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 45, 'TotalUnlock'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 46, 'GeofencingFailed'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 47, 'GetHiddenApplications'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 48, 'InstalledApp'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 49, 'SynchronizeLogs'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 50, 'RestartDevice'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 51, 'ValidateVersion'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 52, 'ApplicationsMetrix'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 53, 'ChangeMetrixActivationStatus'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 54, 'ChangeHealthDeviceActivationStatus'
EXEC [dbo].[MD_AMDM_CMDACTIONRESULTTYPE] 55, 'HealthDeviceInfo'
GO
PRINT 'AMDM - Required params - Insertando Device event type'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 1, 'Enrolled'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 2, 'UnenrolledByApp'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 3, 'UnenrolledByProfile'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 4, 'UnenrolledByConsole'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 5, 'CommandFetched'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 6, 'ActionCommandSuccess'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 7, 'ActionCommandFailure'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 8, 'PolicyCommandSuccess'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 9, 'PolicyCommandFailure'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 10, 'RuleCommandSuccess'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 11, 'RuleCommandFailure'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 12, 'UnenrolledByAndroidPrivileges'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 13, 'UnenrolledByWipe'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 14, 'ChangeSecurityDevice'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 15, 'CommandCancelled'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 16, 'CommandExpired'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 17, 'CommandSent'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 18, 'DeviceSignal'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 19, 'CommandFinished'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 20, 'EnrollRequested'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 21, 'EnrollFinished'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 22, 'RemoteControlStarted'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 23, 'RemoteControlFinished'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 24, 'ActionCommandDelayed'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 25, 'RuleActionExecuted'
EXEC [dbo].[MD_AMDM_DEVICEEVENTTYPE] 26, 'ChangeUserDevice'
GO
PRINT 'AMDM - Required params - Insertando DeviceStatus'
EXEC [dbo].[MD_AMDM_MOBILEMANUFACTURERS] 'Apple', 4

DECLARE  @v_device_model_id INT

SELECT @v_device_model_id = mobman_id
FROM [dbo].[AMDM_MOBILEMANUFACTURERS]
WHERE [mobman_name] = 'Apple' AND [mobman_platform] = 4

-- iPhones
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone1,1', 'iPhone',               4, @v_device_model_id, 'Samsung ARM Cortex-A8',                  412000000,    1, 'Li-ion', '3.7V',  '320x480',   '3.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone1,2', 'iPhone 3G',            4, @v_device_model_id, 'Samsung ARM Cortex-A8',                  412000000,    1, 'Li-ion', '3.7V',  '320x480',   '3.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone2,1', 'iPhone 3GS',           4, @v_device_model_id, 'Samsung ARM Cortex-A8',                  600000000,    1, 'Li-ion', '3.7V',  '320x480',   '3.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone3,1', 'iPhone 4',             4, @v_device_model_id, 'Apple A4',                               800000000,    1, 'Li-ion', '3.7V',  '640x960',   '3.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone3,2', 'iPhone 4 GSM Rev A',   4, @v_device_model_id, 'Apple A4',                               800000000,    1, 'Li-ion', '3.7V',  '640x960',   '3.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone3,3', 'iPhone 4 CDMA',        4, @v_device_model_id, 'Apple A4',                               800000000,    1, 'Li-ion', '3.7V',  '640x960',   '3.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone4,1', 'iPhone 4S',            4, @v_device_model_id, 'Apple A5',                               800000000,    2, 'Li-ion', '3.7V',  '640x960',   '3.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone5,1', 'iPhone 5 (GSM)',       4, @v_device_model_id, 'Apple A6',                               1300000000,   2, 'Li-ion', '3.8V',  '640x1136',  '4.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone5,2', 'iPhone 5 (GSM+CDMA)', 4, @v_device_model_id, 'Apple A6',                                1300000000,   2, 'Li-ion', '3.8V',  '640x1136',  '4.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone5,3', 'iPhone 5C (GSM)',      4, @v_device_model_id, 'Apple A6',                               1300000000,   2, 'Li-ion', '3.8V',  '640x1136',  '4.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone5,4', 'iPhone 5C (Global)',   4, @v_device_model_id, 'Apple A6',                               1300000000,   2, 'Li-ion', '3.8V',  '640x1136',  '4.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone6,1', 'iPhone 5S (GSM)',      4, @v_device_model_id, 'Apple A7',                               1300000000,   2, 'Li-ion', '3.8V',  '640x1136',  '4.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone6,2', 'iPhone 5S (Global)',   4, @v_device_model_id, 'Apple A7',                               1300000000,   2, 'Li-ion', '3.8V',  '640x1136',  '4.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone7,1', 'iPhone 6 Plus',        4, @v_device_model_id, 'Apple A8',                               1400000000,   2, 'Li-ion', '3.82V', '1080x1920', '5.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone7,2', 'iPhone 6',             4, @v_device_model_id, 'Apple A8',                               1400000000,   2, 'Li-ion', '3.82V', '750x1334',  '4.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone8,1', 'iPhone 6s',            4, @v_device_model_id, 'Apple A9',                               1840000000,   2, 'Li-ion', '3.82V', '750x1334',  '4.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone8,2', 'iPhone 6s Plus',       4, @v_device_model_id, 'Apple A9',                               1840000000,   2, 'Li-ion', '3.82V', '1080x1920', '5.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone8,4', 'iPhone SE (GSM)',       4, @v_device_model_id, 'Apple A9',                              1840000000,   2, 'Li-ion', '3.82V', '640x1136',  '4.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone9,1', 'iPhone 7',             4, @v_device_model_id, 'Apple A10 Fusion',                       2340000000,   4, 'Li-ion', '3.8V',  '750x1334',  '4.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone9,2', 'iPhone 7 Plus',        4, @v_device_model_id, 'Apple A10 Fusion',                       2340000000,   4, 'Li-ion', '3.8V',  '1080x1920', '5.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone9,3', 'iPhone 7',             4, @v_device_model_id, 'Apple A10 Fusion',                       2340000000,   4, 'Li-ion', '3.8V',  '750x1334',  '4.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone9,4', 'iPhone 7 Plus',        4, @v_device_model_id, 'Apple A10 Fusion',                       2340000000,   4, 'Li-ion', '3.8V',  '1080x1920', '5.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone10,1', 'iPhone 8',            4, @v_device_model_id, 'Apple A11 Bionic',                       2380000000,   6, 'Li-ion', '3.82V', '750x1334',  '4.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone10,2', 'iPhone 8 Plus',       4, @v_device_model_id, 'Apple A11 Bionic',                       2380000000,   6, 'Li-ion', '3.82V', '1080x1920', '5.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone10,3', 'iPhone X Global',     4, @v_device_model_id, 'Apple A11 Bionic',                       2380000000,   6, 'Li-ion', '3.81V', '1125x2436', '5.8"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone10,4', 'iPhone 8',            4, @v_device_model_id, 'Apple A11 Bionic',                       2380000000,   6, 'Li-ion', '3.82V', '750x1334',  '4.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone10,5', 'iPhone 8 Plus',       4, @v_device_model_id, 'Apple A11 Bionic',                       2380000000,   6, 'Li-ion', '3.82V', '1080x1920', '5.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone10,6', 'iPhone X GSM',        4, @v_device_model_id, 'Apple A11 Bionic',                       2380000000,   6, 'Li-ion', '3.81V', '1125x2436', '5.8"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone11,2', 'iPhone XS',           4, @v_device_model_id, 'Apple A12 Bionic',                       2490000000,   6, 'Li-ion', '3.81V', '1125x2436', '5.8"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone11,4', 'iPhone XS Max',       4, @v_device_model_id, 'Apple A12 Bionic',                       2490000000,   6, 'Li-ion', '3.81V', '1242x2688', '6.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone11,6', 'iPhone XS Max Global',4, @v_device_model_id, 'Apple A12 Bionic',                       2490000000,   6, 'Li-ion', '3.81V', '1242x2688', '6.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone11,8', 'iPhone XR',           4, @v_device_model_id, 'Apple A12 Bionic',                       2490000000,   6, 'Li-ion', '3.79V', '828x1792',  '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone12,1', 'iPhone 11',           4, @v_device_model_id, 'Apple A13 Bionic',                       2650000000,   6, 'Li-ion', '3.79V', '828x1792',  '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone12,3', 'iPhone 11 Pro',       4, @v_device_model_id, 'Apple A13 Bionic',                       2650000000,   6, 'Li-ion', '3.81V', '1125x2436', '5.8"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone12,5', 'iPhone 11 Pro Max',   4, @v_device_model_id, 'Apple A13 Bionic',                       2650000000,   6, 'Li-ion', '3.81V', '1242x2688', '6.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone12,8', 'iPhone SE 2nd Gen',   4, @v_device_model_id, 'Apple A13 Bionic',                       2650000000,   6, 'Li-ion', '3.82V', '750x1334',  '4.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone13,1', 'iPhone 12 Mini',      4, @v_device_model_id, 'Apple A14 Bionic',                       3100000000,   6, 'Li-ion', '3.83V', '1080x2340', '5.4"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone13,2', 'iPhone 12',           4, @v_device_model_id, 'Apple A14 Bionic',                       3100000000,   6, 'Li-ion', '3.83V', '1170x2532', '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone13,3', 'iPhone 12 Pro',       4, @v_device_model_id, 'Apple A14 Bionic',                       3100000000,   6, 'Li-ion', '3.83V', '1170x2532', '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone13,4', 'iPhone 12 Pro Max',   4, @v_device_model_id, 'Apple A14 Bionic',                       3100000000,   6, 'Li-ion', '3.83V', '1284x2778', '6.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone14,2', 'iPhone 13 Pro',       4, @v_device_model_id, 'Apple A15 Bionic',                       3230000000,   6, 'Li-ion', '3.87V', '1170x2532', '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone14,3', 'iPhone 13 Pro Max',   4, @v_device_model_id, 'Apple A15 Bionic',                       3230000000,   6, 'Li-ion', '3.87V', '1284x2778', '6.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone14,4', 'iPhone 13 Mini',      4, @v_device_model_id, 'Apple A15 Bionic',                       3230000000,   6, 'Li-ion', '3.87V', '1080x2340', '5.4"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone14,5', 'iPhone 13',           4, @v_device_model_id, 'Apple A15 Bionic',                       3230000000,   6, 'Li-ion', '3.87V', '1170x2532', '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone14,6', 'iPhone SE 3rd Gen',   4, @v_device_model_id, 'Apple A15 Bionic',                       3230000000,   6, 'Li-ion', '3.87V', '750x1334',  '4.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone14,7', 'iPhone 14',           4, @v_device_model_id, 'Apple A15 Bionic',                       3230000000,   6, 'Li-ion', '3.87V', '1170x2532', '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone14,8', 'iPhone 14 Plus',      4, @v_device_model_id, 'Apple A15 Bionic',                       3230000000,   6, 'Li-ion', '3.87V', '1284x2778', '6.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone15,2', 'iPhone 14 Pro',       4, @v_device_model_id, 'Apple A16 Bionic',                       3460000000,   6, 'Li-ion', '3.88V', '1179x2556', '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone15,3', 'iPhone 14 Pro Max',   4, @v_device_model_id, 'Apple A16 Bionic',                       3460000000,   6, 'Li-ion', '3.88V', '1290x2796', '6.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone15,4', 'iPhone 15',           4, @v_device_model_id, 'Apple A16 Bionic',                       3460000000,   6, 'Li-ion', '3.88V', '1179x2556', '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone15,5', 'iPhone 15 Plus',      4, @v_device_model_id, 'Apple A16 Bionic',                       3460000000,   6, 'Li-ion', '3.88V', '1290x2796', '6.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone16,1', 'iPhone 15 Pro',       4, @v_device_model_id, 'Apple A17 Pro',                          3780000000,   6, 'Li-ion', '3.88V', '1179x2556', '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone16,2', 'iPhone 15 Pro Max',   4, @v_device_model_id, 'Apple A17 Pro',                          3780000000,   6, 'Li-ion', '3.88V', '1290x2796', '6.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone17,1', 'iPhone 16 Pro',       4, @v_device_model_id, 'Apple A18 Pro',                          4050000000,   6, 'Li-ion', '3.88V', '1206x2622', '6.3"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone17,2', 'iPhone 16 Pro Max',   4, @v_device_model_id, 'Apple A18 Pro',                          4050000000,   6, 'Li-ion', '3.88V', '1320x2868', '6.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone17,3', 'iPhone 16',           4, @v_device_model_id, 'Apple A18',                              4050000000,   6, 'Li-ion', '3.88V', '1179x2556', '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone17,4', 'iPhone 16 Plus',      4, @v_device_model_id, 'Apple A18',                              4050000000,   6, 'Li-ion', '3.88V', '1290x2796', '6.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone17,5', 'iPhone 16e',          4, @v_device_model_id, 'Apple A16 Bionic',                       3460000000,   6, 'Li-ion', '3.88V', '1170x2532', '6.1"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone18,1', 'iPhone 17 Pro',       4, @v_device_model_id, NULL, NULL, NULL, NULL, NULL, NULL, NULL
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone18,2', 'iPhone 17 Pro Max',   4, @v_device_model_id, NULL, NULL, NULL, NULL, NULL, NULL, NULL
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone18,3', 'iPhone 17',           4, @v_device_model_id, NULL, NULL, NULL, NULL, NULL, NULL, NULL
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPhone18,4', 'iPhone Air',          4, @v_device_model_id, NULL, NULL, NULL, NULL, NULL, NULL, NULL

-- iPads
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad1,1', 'iPad',                                    4, @v_device_model_id, 'Apple A4',                              1000000000,   1, 'Li-ion', '3.75V', '768x1024',  '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad1,2', 'iPad 3G',                                 4, @v_device_model_id, 'Apple A4',                              1000000000,   1, 'Li-ion', '3.75V', '768x1024',  '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad2,1', '2nd Gen iPad',                            4, @v_device_model_id, 'Apple A5',                              1000000000,   2, 'Li-ion', '3.73V', '768x1024',  '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad2,2', '2nd Gen iPad GSM',                        4, @v_device_model_id, 'Apple A5',                              1000000000,   2, 'Li-ion', '3.73V', '768x1024',  '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad2,3', '2nd Gen iPad CDMA',                       4, @v_device_model_id, 'Apple A5',                              1000000000,   2, 'Li-ion', '3.73V', '768x1024',  '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad2,4', '2nd Gen iPad New Revision',               4, @v_device_model_id, 'Apple A5',                              1000000000,   2, 'Li-ion', '3.73V', '768x1024',  '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad3,1', '3rd Gen iPad',                            4, @v_device_model_id, 'Apple A5X',                             1000000000,   2, 'Li-ion', '3.7V',  '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad3,2', '3rd Gen iPad CDMA',                       4, @v_device_model_id, 'Apple A5X',                             1000000000,   2, 'Li-ion', '3.7V',  '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad3,3', '3rd Gen iPad GSM',                        4, @v_device_model_id, 'Apple A5X',                             1000000000,   2, 'Li-ion', '3.7V',  '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad2,5', 'iPad mini',                               4, @v_device_model_id, 'Apple A5',                              1000000000,   2, 'Li-ion', '3.72V', '768x1024',  '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad2,6', 'iPad mini GSM+LTE',                       4, @v_device_model_id, 'Apple A5',                              1000000000,   2, 'Li-ion', '3.72V', '768x1024',  '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad2,7', 'iPad mini CDMA+LTE',                      4, @v_device_model_id, 'Apple A5',                              1000000000,   2, 'Li-ion', '3.72V', '768x1024',  '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad3,4', '4th Gen iPad',                            4, @v_device_model_id, 'Apple A6X',                             1400000000,   2, 'Li-ion', '3.73V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad3,5', '4th Gen iPad GSM+LTE',                    4, @v_device_model_id, 'Apple A6X',                             1400000000,   2, 'Li-ion', '3.73V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad3,6', '4th Gen iPad CDMA+LTE',                   4, @v_device_model_id, 'Apple A6X',                             1400000000,   2, 'Li-ion', '3.73V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad4,1', 'iPad Air (WiFi)',                         4, @v_device_model_id, 'Apple A7',                              1300000000,   2, 'Li-ion', '3.73V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad4,2', 'iPad Air (GSM+CDMA)',                     4, @v_device_model_id, 'Apple A7',                              1300000000,   2, 'Li-ion', '3.73V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad4,3', '1st Gen iPad Air (China)',                4, @v_device_model_id, 'Apple A7',                              1300000000,   2, 'Li-ion', '3.73V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad4,4', 'iPad mini Retina (WiFi)',                 4, @v_device_model_id, 'Apple A7',                              1300000000,   2, 'Li-ion', '3.73V', '1536x2048', '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad4,5', 'iPad mini Retina (GSM+CDMA)',             4, @v_device_model_id, 'Apple A7',                              1300000000,   2, 'Li-ion', '3.73V', '1536x2048', '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad4,6', 'iPad mini Retina (China)',                4, @v_device_model_id, 'Apple A7',                              1300000000,   2, 'Li-ion', '3.73V', '1536x2048', '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad4,7', 'iPad mini 3 (WiFi)',                      4, @v_device_model_id, 'Apple A7',                              1300000000,   2, 'Li-ion', '3.73V', '1536x2048', '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad4,8', 'iPad mini 3 (GSM+CDMA)',                  4, @v_device_model_id, 'Apple A7',                              1300000000,   2, 'Li-ion', '3.73V', '1536x2048', '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad4,9', 'iPad Mini 3 (China)',                     4, @v_device_model_id, 'Apple A7',                              1300000000,   2, 'Li-ion', '3.73V', '1536x2048', '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad5,1', 'iPad mini 4 (WiFi)',                      4, @v_device_model_id, 'Apple A8',                              1500000000,   2, 'Li-ion', '3.75V', '1536x2048', '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad5,2', 'iPad mini 4 (WiFi+Cellular)',             4, @v_device_model_id, 'Apple A8',                              1500000000,   2, 'Li-ion', '3.75V', '1536x2048', '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad5,3', 'iPad Air 2 (WiFi)',                       4, @v_device_model_id, 'Apple A8X',                             1500000000,   3, 'Li-ion', '3.75V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad5,4', 'iPad Air 2 (Cellular)',                   4, @v_device_model_id, 'Apple A8X',                             1500000000,   3, 'Li-ion', '3.75V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad6,3', 'iPad Pro (9.7 inch, WiFi)',               4, @v_device_model_id, 'Apple A9X',                             2160000000,   2, 'Li-ion', '3.77V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad6,4', 'iPad Pro (9.7 inch, WiFi+LTE)',           4, @v_device_model_id, 'Apple A9X',                             2160000000,   2, 'Li-ion', '3.77V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad6,7', 'iPad Pro (12.9 inch, WiFi)',              4, @v_device_model_id, 'Apple A9X',                             2160000000,   2, 'Li-ion', '3.77V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad6,8', 'iPad Pro (12.9 inch, WiFi+LTE)',          4, @v_device_model_id, 'Apple A9X',                             2160000000,   2, 'Li-ion', '3.77V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad6,11', 'iPad (2017)',                            4, @v_device_model_id, 'Apple A9',                              1840000000,   2, 'Li-ion', '3.73V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad6,12', 'iPad (2017)',                            4, @v_device_model_id, 'Apple A9',                              1840000000,   2, 'Li-ion', '3.73V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad7,1', 'iPad Pro 2nd Gen (WiFi)',                 4, @v_device_model_id, 'Apple A10X Fusion',                     2340000000,   6, 'Li-ion', '3.77V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad7,2', 'iPad Pro 2nd Gen (WiFi+Cellular)',        4, @v_device_model_id, 'Apple A10X Fusion',                     2340000000,   6, 'Li-ion', '3.77V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad7,3', 'iPad Pro 10.5-inch 2nd Gen (WiFi)',       4, @v_device_model_id, 'Apple A10X Fusion',                     2340000000,   6, 'Li-ion', '3.77V', '1668x2224', '10.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad7,4', 'iPad Pro 10.5-inch 2nd Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple A10X Fusion',                  2340000000, 6, 'Li-ion', '3.77V', '1668x2224', '10.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad7,5', 'iPad 6th Gen (WiFi)',                     4, @v_device_model_id, 'Apple A10 Fusion',                      2340000000,   4, 'Li-ion', '3.73V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad7,6', 'iPad 6th Gen (WiFi+Cellular)',            4, @v_device_model_id, 'Apple A10 Fusion',                      2340000000,   4, 'Li-ion', '3.73V', '1536x2048', '9.7"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad7,11', 'iPad 7th Gen 10.2-inch (WiFi)',          4, @v_device_model_id, 'Apple A10 Fusion',                      2340000000,   4, 'Li-ion', '3.73V', '1620x2160', '10.2"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad7,12', 'iPad 7th Gen 10.2-inch (WiFi+Cellular)', 4, @v_device_model_id, 'Apple A10 Fusion',                      2340000000,   4, 'Li-ion', '3.73V', '1620x2160', '10.2"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,1', 'iPad Pro 11 inch 3rd Gen (WiFi)',         4, @v_device_model_id, 'Apple A12X Bionic',                     2490000000,   8, 'Li-ion', '3.77V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,2', 'iPad Pro 11 inch 3rd Gen (1TB, WiFi)',    4, @v_device_model_id, 'Apple A12X Bionic',                     2490000000,   8, 'Li-ion', '3.77V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,3', 'iPad Pro 11 inch 3rd Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple A12X Bionic',                    2490000000,  8, 'Li-ion', '3.77V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,4', 'iPad Pro 11 inch 3rd Gen (1TB, WiFi+Cellular)', 4, @v_device_model_id, 'Apple A12X Bionic',               2490000000, 8, 'Li-ion', '3.77V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,5', 'iPad Pro 12.9 inch 3rd Gen (WiFi)',       4, @v_device_model_id, 'Apple A12X Bionic',                     2490000000,   8, 'Li-ion', '3.77V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,6', 'iPad Pro 12.9 inch 3rd Gen (1TB, WiFi)', 4, @v_device_model_id, 'Apple A12X Bionic',                      2490000000,   8, 'Li-ion', '3.77V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,7', 'iPad Pro 12.9 inch 3rd Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple A12X Bionic',                  2490000000, 8, 'Li-ion', '3.77V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,8', 'iPad Pro 12.9 inch 3rd Gen (1TB, WiFi+Cellular)', 4, @v_device_model_id, 'Apple A12X Bionic',             2490000000, 8, 'Li-ion', '3.77V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,9', 'iPad Pro 11 inch 4th Gen (WiFi)',         4, @v_device_model_id, 'Apple A12Z Bionic',                     2490000000,   8, 'Li-ion', '3.77V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,10', 'iPad Pro 11 inch 4th Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple A12Z Bionic',                   2490000000, 8, 'Li-ion', '3.77V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,11', 'iPad Pro 12.9 inch 4th Gen (WiFi)',      4, @v_device_model_id, 'Apple A12Z Bionic',                     2490000000,   8, 'Li-ion', '3.77V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad8,12', 'iPad Pro 12.9 inch 4th Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple A12Z Bionic',                 2490000000, 8, 'Li-ion', '3.77V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad11,1', 'iPad mini 5th Gen (WiFi)',               4, @v_device_model_id, 'Apple A12 Bionic',                      2490000000,   6, 'Li-ion', '3.73V', '1536x2048', '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad11,2', 'iPad mini 5th Gen (WiFi+Cellular)',      4, @v_device_model_id, 'Apple A12 Bionic',                      2490000000,   6, 'Li-ion', '3.73V', '1536x2048', '7.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad11,3', 'iPad Air 3rd Gen (WiFi)',                4, @v_device_model_id, 'Apple A12 Bionic',                      2490000000,   6, 'Li-ion', '3.73V', '1668x2224', '10.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad11,4', 'iPad Air 3rd Gen (WiFi+Cellular)',       4, @v_device_model_id, 'Apple A12 Bionic',                      2490000000,   6, 'Li-ion', '3.73V', '1668x2224', '10.5"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad11,6', 'iPad 8th Gen (WiFi)',                    4, @v_device_model_id, 'Apple A12 Bionic',                      2490000000,   6, 'Li-ion', '3.73V', '1620x2160', '10.2"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad11,7', 'iPad 8th Gen (WiFi+Cellular)',           4, @v_device_model_id, 'Apple A12 Bionic',                      2490000000,   6, 'Li-ion', '3.73V', '1620x2160', '10.2"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad12,1', 'iPad 9th Gen (WiFi)',                    4, @v_device_model_id, 'Apple A13 Bionic',                      2650000000,   6, 'Li-ion', '3.73V', '1620x2160', '10.2"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad12,2', 'iPad 9th Gen (WiFi+Cellular)',           4, @v_device_model_id, 'Apple A13 Bionic',                      2650000000,   6, 'Li-ion', '3.73V', '1620x2160', '10.2"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad14,1', 'iPad mini 6th Gen (WiFi)',               4, @v_device_model_id, 'Apple A15 Bionic',                      3230000000,   6, 'Li-ion', '3.73V', '1488x2266', '8.3"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad14,2', 'iPad mini 6th Gen (WiFi+Cellular)',      4, @v_device_model_id, 'Apple A15 Bionic',                      3230000000,   6, 'Li-ion', '3.73V', '1488x2266', '8.3"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,1', 'iPad Air 4th Gen (WiFi)',                4, @v_device_model_id, 'Apple A14 Bionic',                      3100000000,   6, 'Li-ion', '3.75V', '1640x2360', '10.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,2', 'iPad Air 4th Gen (WiFi+Cellular)',       4, @v_device_model_id, 'Apple A14 Bionic',                      3100000000,   6, 'Li-ion', '3.75V', '1640x2360', '10.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,4', 'iPad Pro 11 inch 5th Gen',               4, @v_device_model_id, 'Apple M1',                              3200000000,   8, 'Li-ion', '3.76V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,5', 'iPad Pro 11 inch 5th Gen',               4, @v_device_model_id, 'Apple M1',                              3200000000,   8, 'Li-ion', '3.76V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,6', 'iPad Pro 11 inch 5th Gen',               4, @v_device_model_id, 'Apple M1',                              3200000000,   8, 'Li-ion', '3.76V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,7', 'iPad Pro 11 inch 5th Gen',               4, @v_device_model_id, 'Apple M1',                              3200000000,   8, 'Li-ion', '3.76V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,8', 'iPad Pro 12.9 inch 5th Gen',             4, @v_device_model_id, 'Apple M1',                              3200000000,   8, 'Li-ion', '3.76V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,9', 'iPad Pro 12.9 inch 5th Gen',             4, @v_device_model_id, 'Apple M1',                              3200000000,   8, 'Li-ion', '3.76V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,10', 'iPad Pro 12.9 inch 5th Gen',            4, @v_device_model_id, 'Apple M1',                              3200000000,   8, 'Li-ion', '3.76V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,11', 'iPad Pro 12.9 inch 5th Gen',            4, @v_device_model_id, 'Apple M1',                              3200000000,   8, 'Li-ion', '3.76V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,16', 'iPad Air 5th Gen (WiFi)',               4, @v_device_model_id, 'Apple M1',                              3200000000,   8, 'Li-ion', '3.75V', '1640x2360', '10.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,17', 'iPad Air 5th Gen (WiFi+Cellular)',      4, @v_device_model_id, 'Apple M1',                              3200000000,   8, 'Li-ion', '3.75V', '1640x2360', '10.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,18', 'iPad 10th Gen (WiFi)',                  4, @v_device_model_id, 'Apple A14 Bionic',                      3100000000,   6, 'Li-ion', '3.75V', '1640x2360', '10.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad13,19', 'iPad 10th Gen (WiFi+Cellular)',         4, @v_device_model_id, 'Apple A14 Bionic',                      3100000000,   6, 'Li-ion', '3.75V', '1640x2360', '10.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad14,3', 'iPad Pro 11 inch 4th Gen (WiFi)',        4, @v_device_model_id, 'Apple M2',                              3490000000,   8, 'Li-ion', '3.76V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad14,4', 'iPad Pro 11 inch 4th Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple M2',                            3490000000,   8, 'Li-ion', '3.76V', '1668x2388', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad14,5', 'iPad Pro 12.9 inch 6th Gen (WiFi)',      4, @v_device_model_id, 'Apple M2',                              3490000000,   8, 'Li-ion', '3.76V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad14,6', 'iPad Pro 12.9 inch 6th Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple M2',                          3490000000,   8, 'Li-ion', '3.76V', '2048x2732', '12.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad14,8', 'iPad Air 11 inch 6th Gen (WiFi)',        4, @v_device_model_id, 'Apple M2',                              3490000000,   8, 'Li-ion', '3.75V', '1640x2360', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad14,9', 'iPad Air 11 inch 6th Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple M2',                            3490000000,   8, 'Li-ion', '3.75V', '1640x2360', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad14,10', 'iPad Air 13 inch 6th Gen (WiFi)',       4, @v_device_model_id, 'Apple M2',                              3490000000,   8, 'Li-ion', '3.75V', '2064x2752', '13.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad14,11', 'iPad Air 13 inch 6th Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple M2',                           3490000000,   8, 'Li-ion', '3.75V', '2064x2752', '13.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad15,3', 'iPad Air 11-inch 7th Gen (WiFi)',        4, @v_device_model_id, 'Apple M3',                              4050000000,   8, 'Li-ion', '3.75V', '1640x2360', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad15,4', 'iPad Air 11-inch 7th Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple M3',                            4050000000,   8, 'Li-ion', '3.75V', '1640x2360', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad15,5', 'iPad Air 13-inch 7th Gen (WiFi)',        4, @v_device_model_id, 'Apple M3',                              4050000000,   8, 'Li-ion', '3.75V', '2064x2752', '13.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad15,6', 'iPad Air 13-inch 7th Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple M3',                            4050000000,   8, 'Li-ion', '3.75V', '2064x2752', '13.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad15,7', 'iPad 11th Gen (WiFi)',                   4, @v_device_model_id, 'Apple A16 Bionic',                      3460000000,   6, 'Li-ion', '3.73V', '1640x2360', '10.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad15,8', 'iPad 11th Gen (WiFi+Cellular)',          4, @v_device_model_id, 'Apple A16 Bionic',                      3460000000,   6, 'Li-ion', '3.73V', '1640x2360', '10.9"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad16,1', 'iPad mini 7th Gen (WiFi)',               4, @v_device_model_id, 'Apple A17 Pro',                         3780000000,   6, 'Li-ion', '3.73V', '1488x2266', '8.3"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad16,2', 'iPad mini 7th Gen (WiFi+Cellular)',      4, @v_device_model_id, 'Apple A17 Pro',                         3780000000,   6, 'Li-ion', '3.73V', '1488x2266', '8.3"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad16,3', 'iPad Pro 11 inch 5th Gen (WiFi)',        4, @v_device_model_id, 'Apple M4',                              4400000000,  10, 'Li-ion', '3.76V', '1668x2420', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad16,4', 'iPad Pro 11 inch 5th Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple M4',                            4400000000,  10, 'Li-ion', '3.76V', '1668x2420', '11.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad16,5', 'iPad Pro 12.9 inch 7th Gen (WiFi)',      4, @v_device_model_id, 'Apple M4',                              4400000000,  10, 'Li-ion', '3.76V', '2064x2752', '13.0"'
EXEC [dbo].[MD_AMDM_DEVICEMODELS] 'iPad16,6', 'iPad Pro 12.9 inch 7th Gen (WiFi+Cellular)', 4, @v_device_model_id, 'Apple M4',                          4400000000,  10, 'Li-ion', '3.76V', '2064x2752', '13.0"'

GO

PRINT 'AMDM - Required params - Insertando Notification type'
EXEC [dbo].[MD_AMDM_NOTIFICATIONTYPE] 0, 'Info'
EXEC [dbo].[MD_AMDM_NOTIFICATIONTYPE] 1, 'Error'
EXEC [dbo].[MD_AMDM_NOTIFICATIONTYPE] 2, 'Warning'
GO
PRINT 'AMDM - Required params - Policy item type'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 1, 'Restrictions'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 2, 'PolicyPasswordRestriction'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 3, 'MailConfiguration'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 4, 'ConfigureWebClips'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 5, 'EASConfiguration'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 6, 'WifiConfiguration'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 7, 'WebContentRestrictions'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 8, 'Applications'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 9, 'AFW_Restrictions'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 10, 'AFW_PolicyPasswordRestriction_Device'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 11, 'AFW_PolicyPasswordRestriction_Profile'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 12, 'AFW_Applications'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 13, 'AFW_WifiConfiguration'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 14, 'AFW_ConfigureWebClips'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 15, 'SecureBrowsing'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 16, 'AFW_SecureBrowsing'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 17, 'Kiosk'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 18, 'AFW_Kiosk'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 19, 'kioskModeKnox'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 20, 'AFW_Calls'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 21, 'VPN'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 22, 'APN'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 23, 'Tracking'
EXEC [dbo].[MD_AMDM_POLICYITEMTYPE] 24, 'AFW_Tracking'
GO
PRINT 'AMDM - Required params - Policy status'
EXEC [dbo].[MD_AMDM_POLICYSTATUSTYPE] 1, 'Editing'
EXEC [dbo].[MD_AMDM_POLICYSTATUSTYPE] 2, 'Approved'
EXEC [dbo].[MD_AMDM_POLICYSTATUSTYPE] 3, 'Released'
EXEC [dbo].[MD_AMDM_POLICYSTATUSTYPE] 4, 'Removed'
GO
PRINT 'AMDM - Required params - AMDM_POLICYFULFILLPROBLEMTYPE'
EXEC [dbo].[MD_AMDM_POLICYFULFILLPROBTYPE] 1, 'RequiredApp'
EXEC [dbo].[MD_AMDM_POLICYFULFILLPROBTYPE] 2, 'BlacklistApp'
EXEC [dbo].[MD_AMDM_POLICYFULFILLPROBTYPE] 3, 'WhitelistApp'
GO
PRINT 'AMDM - Required params - AMDM_RULE_TYPE'
EXEC [dbo].[MD_AMDM_RULE_TYPE] 1, 'Geofencing'
EXEC [dbo].[MD_AMDM_RULE_TYPE] 2, 'Unenroll'
EXEC [dbo].[MD_AMDM_RULE_TYPE] 3, 'JailbreakRoot'
EXEC [dbo].[MD_AMDM_RULE_TYPE] 4, 'PolicyFulfillment'
EXEC [dbo].[MD_AMDM_RULE_TYPE] 5, 'WorkHorary'
EXEC [dbo].[MD_AMDM_RULE_TYPE] 6, 'NewInventory'
EXEC [dbo].[MD_AMDM_RULE_TYPE] 7, 'Expense'
EXEC [dbo].[MD_AMDM_RULE_TYPE] 8, 'Wififencing'
EXEC [dbo].[MD_AMDM_RULE_TYPE] 9, 'UserLogged'
EXEC [dbo].[MD_AMDM_RULE_TYPE] 10, 'LoginFailed'
GO
PRINT 'AMDM - Required params - AMDM_WEEKDAY'
EXEC [dbo].[MD_AMDM_WEEKDAY] 0, 'Sunday'
EXEC [dbo].[MD_AMDM_WEEKDAY] 1, 'Monday'
EXEC [dbo].[MD_AMDM_WEEKDAY] 2, 'Tuesday'
EXEC [dbo].[MD_AMDM_WEEKDAY] 3, 'Wednesday'
EXEC [dbo].[MD_AMDM_WEEKDAY] 4, 'Thursday'
EXEC [dbo].[MD_AMDM_WEEKDAY] 5, 'Friday'
EXEC [dbo].[MD_AMDM_WEEKDAY] 6, 'Saturday'
GO
PRINT 'AMDM - Required params - APPLICATION_CATEGORY'
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33001, 5, null,1, 'ArandaLicense',   '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33002, 5, null,1, 'APNSLicense',     '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33003, 5, null,1, 'DeviceCount',     '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33004, 5, null,1, 'DeviceAbsent',    '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33005, 5, null,1, 'Device',          '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33006, 5, null,1, 'AFW',             '', 1

EXEC [dbo].[METADATA_ALERT_CATEGORY] 33007, 5, null,1, 'Geofencing',      '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33008, 5, null,1, 'Unenroll',        '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33009, 5, null,1, 'JailbreakRoot',   '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33010, 5, null,1, 'NewInventory',    '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33011, 5, null,1, 'Timefencing',     '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33012, 5, null,1, 'Expense',         '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33013, 5, null,1, 'Wififencing',     '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33014, 5, null,1, 'UserLogged',      '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33015, 5, null,1, 'FulfilledPolicy', '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33016, 5, null,1, 'LoginFailed',     '', 1
EXEC [dbo].[METADATA_ALERT_CATEGORY] 33017, 5, null,1, 'DeviceWithoutConfig','', 1
GO
PRINT 'AMDM - Required params - AMDM_CURRENCY'
EXEC [dbo].[MD_AMDM_CURRENCY] 1, 'Colombian Peso', 'COP'
EXEC [dbo].[MD_AMDM_CURRENCY] 2, 'Venezuela Bolivar', 'VEF'
EXEC [dbo].[MD_AMDM_CURRENCY] 3, 'Brazilian Real', 'BRL'
EXEC [dbo].[MD_AMDM_CURRENCY] 4, 'Peru Sol', 'PEN'
EXEC [dbo].[MD_AMDM_CURRENCY] 5, 'Bolivia Bolíviano', 'BOB'
EXEC [dbo].[MD_AMDM_CURRENCY] 6, 'Uruguay Peso', 'UYU'
EXEC [dbo].[MD_AMDM_CURRENCY] 7, 'Paraguay Guarani', 'PYG'
EXEC [dbo].[MD_AMDM_CURRENCY] 8, 'Argentine Peso', 'ARS'
EXEC [dbo].[MD_AMDM_CURRENCY] 9, 'Chilean Peso', 'CLP'
EXEC [dbo].[MD_AMDM_CURRENCY] 10, 'US Dollar', 'USD'
EXEC [dbo].[MD_AMDM_CURRENCY] 11, 'Euro', 'EUR'
EXEC [dbo].[MD_AMDM_CURRENCY] 12, 'Panama Balboa', 'PAB'
EXEC [dbo].[MD_AMDM_CURRENCY] 13, 'Mexico Peso', 'MXN'
EXEC [dbo].[MD_AMDM_CURRENCY] 14, 'Costa Rica Colon', 'CRC'
EXEC [dbo].[MD_AMDM_CURRENCY] 15, 'East Caribbean Dollar', 'XCD'
EXEC [dbo].[MD_AMDM_CURRENCY] 16, 'Barbados Dollar', 'BBD'
EXEC [dbo].[MD_AMDM_CURRENCY] 17, 'Jamaican Dollar', 'JMD'
EXEC [dbo].[MD_AMDM_CURRENCY] 18, 'Cayman Islands Dollar', 'KYD'
GO
PRINT 'AMDM - Required params - AMDM_NONSYSTEMAPPS'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.gm',							'Gmail', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.youtube',						'YouTube', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.ext.services',					'Android Services Library', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.googlequicksearchbox',			'Google', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.apps.docs.editors.docs',		'Documentos', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.onetimeinitializer',			'Google One Time Init', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.apps.docs.editors.sheets',		'Hojas de cálculo', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.apps.docs.editors.slides',		'Diapositivas', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.apps.tachyon',					'Duo', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.setupwizard',					'Configuración de Android', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.music',							'Google Play Música', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.apps.docs',						'Google Drive', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.apps.maps',						'Maps', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.syncadapters.contacts',			'Sincronización de los contactos de Google', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.packageinstaller',				'Programa de instalación del paquete', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.gms',							'Servicios de Google Play', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.gsf',							'Marco de los servicios de Google', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.tts',							'Motor de texto a voz de Google', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.videos',						'Google Play Películas', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.feedback',						'Agente de obs. de Market', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.apps.photos',					'Fotos', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.apps.meetings',					'Meet', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.talk',							'Hangouts', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.android.play.games',					'Google Play Juegos', '1'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.Trips',									'Google Trips', '4'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.chrome.ios',							'Chrome', '4'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.ios.youtube',							'YouTube', '4'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.Maps',									'Google Maps', '4'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.Translate',								'Traductor', '4'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.Drive',									'Drive', '4'
EXEC [dbo].[MD_AMDM_APPS_NONSYSTEMAPPS] 'com.google.Gmail',									'Gmail', '4'
GO
PRINT 'AMDM - Required params - AFW_RCSESSIONSTATUS'
EXEC [dbo].[MD_AMDM_RCSESSIONSTATUS] 1, 'Created'
EXEC [dbo].[MD_AMDM_RCSESSIONSTATUS] 2, 'Presenting'
EXEC [dbo].[MD_AMDM_RCSESSIONSTATUS] 3, 'Finished'
EXEC [dbo].[MD_AMDM_RCSESSIONSTATUS] 4, 'Cancelled'
GO
PRINT 'AMDM - Required params - AMDM_SYSTEMAPPTYPE'
EXEC [dbo].[MD_AMDM_SYSTEMAPPTYPE] 1, 'Camera'
EXEC [dbo].[MD_AMDM_SYSTEMAPPTYPE] 2, 'SMS'
EXEC [dbo].[MD_AMDM_SYSTEMAPPTYPE] 3, 'Caller'
EXEC [dbo].[MD_AMDM_SYSTEMAPPTYPE] 4, 'Gallery'
EXEC [dbo].[MD_AMDM_SYSTEMAPPTYPE] 5, 'Others'
GO
PRINT 'AMDM - Required params - AMDM_SYSTEMAPP'
EXEC [dbo].[MD_AMDM_SYSTEMAPP] 'com.sec.android.app.camera', 1
EXEC [dbo].[MD_AMDM_SYSTEMAPP] 'com.huawei.camera', 1
EXEC [dbo].[MD_AMDM_SYSTEMAPP] 'com.motorola.cameraone', 1
EXEC [dbo].[MD_AMDM_SYSTEMAPP] 'com.motorola.camera', 1
EXEC [dbo].[MD_AMDM_SYSTEMAPP] 'com.android.camera2', 1
EXEC [dbo].[MD_AMDM_SYSTEMAPP] 'com.lge.camera', 1
EXEC [dbo].[MD_AMDM_SYSTEMAPP] 'com.tplink.camera', 1
EXEC [dbo].[MD_AMDM_SYSTEMAPP] 'com.mediatek.camera', 1
EXEC [dbo].[MD_AMDM_SYSTEMAPP] 'com.google.android.GoogleCamera', 1
EXEC [dbo].[MD_AMDM_SYSTEMAPP] 'org.codeaurora.snapcam', 1

EXEC [dbo].[MD_AMDM_SYSTEMAPP]  'com.samsung.android.messaging', 2 
EXEC [dbo].[MD_AMDM_SYSTEMAPP]  'com.android.mms', 2 
EXEC [dbo].[MD_AMDM_SYSTEMAPP]  'com.google.android.apps.messaging', 2 
EXEC [dbo].[MD_AMDM_SYSTEMAPP]  'com.android.messaging', 2 

EXEC [dbo].[MD_AMDM_SYSTEMAPP]  'com.samsung.android.contacts', 3 
EXEC [dbo].[MD_AMDM_SYSTEMAPP]  'com.android.contacts', 3
EXEC [dbo].[MD_AMDM_SYSTEMAPP]  'com.android.dialer', 3
EXEC [dbo].[MD_AMDM_SYSTEMAPP]  'com.lenovo.ideafriend', 3

EXEC [dbo].[MD_AMDM_SYSTEMAPP]  'com.sec.android.gallery3d', 4

GO
PRINT 'AMDM - Required params - AMDM_MANPROJECT_ACTION_TYPE'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 0, 'None'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 1, 'LostMode'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 2, 'DeviceFound'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 3, 'GetInventory'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 4, 'GetLocation'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 5, 'ScriptCommand'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 6, 'InstallCorporateApplication'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 7, 'SetTracking'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 8, 'WipeDevice'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 9, 'SendTextMessage'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 10, 'ChangeAgentProfile'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 11, 'LockScreen'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 12, 'ChangePassword'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 13, 'ChangeProfilePassword'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 14, 'ChangePolicy'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 15, 'ChangeRuleset'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 16, 'ChangeExpensePlan'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 17, 'TotalLock'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 18, 'TotalUnlock'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 19, 'GetHiddenPackages'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 20, 'RestartDevice'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 21, 'ChangeApplicationMetricsStatus'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 22, 'ChangeHealthDeviceStatus'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 23, 'GetHealthDeviceInfo'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 24, 'ProtectionResetAndroid'
EXEC [dbo].[MD_AMDM_MANPROJ_ACTION_TYPE] 25, 'DisableProtectionResetAndroid'
GO
PRINT 'AMDM - Required params - AMDM_MANPROJECT_NOTIFY_TYPE'
EXEC [dbo].[MD_AMDM_MANPROJ_NOTIFY_TYPE] 0, 'None'
EXEC [dbo].[MD_AMDM_MANPROJ_NOTIFY_TYPE] 1, 'Started'
EXEC [dbo].[MD_AMDM_MANPROJ_NOTIFY_TYPE] 2, 'Executed'
GO
PRINT 'AMDM - Required params - AMDM_MANPROJECT_STATUS'
EXEC [dbo].[MD_AMDM_MANPROJECT_STATUS] 0, 'None'
EXEC [dbo].[MD_AMDM_MANPROJECT_STATUS] 1, 'Scheduled'
EXEC [dbo].[MD_AMDM_MANPROJECT_STATUS] 2, 'Running'
EXEC [dbo].[MD_AMDM_MANPROJECT_STATUS] 3, 'Completed'
EXEC [dbo].[MD_AMDM_MANPROJECT_STATUS] 4, 'Cancelled'
EXEC [dbo].[MD_AMDM_MANPROJECT_STATUS] 5, 'Creating'
GO
PRINT 'AMDM - Required params - Insertando Expense Country Codes'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 1, 'Afghanistan', '93', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 2, 'Albania', '355', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 3, 'Alemania', '49', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 4, 'Algeria', '213', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 5, 'Andorra', '376', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 6, 'Angola', '244', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 7, 'Anguilla', '1000', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 8, 'Antárctica', '672', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 9, 'Antigua', '1001', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 10, 'Antillas Francesas', '596', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 11, 'Antillas Holandesas', '599', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 12, 'Arabia Saudita', '966', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 13, 'Argentina', '54', 'ar'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 14, 'Armenia', ' 374', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 15, 'Aruba', ' 297', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 16, 'Australia', ' 61', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 17, 'Austria', ' 43', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 18, 'Azerbaiján', '994', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 19, 'Bahamas', '1002', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 20, 'Bahía de Guantanamo', '539', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 21, 'Bahrain', '973', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 22, 'Bangladesh', '880', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 23, 'Barbados', '1003', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 24, 'Belgica', '32', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 25, 'Belice', '501', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 26, 'Benin', '229', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 27, 'Bermuda', '1004', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 28, 'Bhutan', '975', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 29, 'Bolivia', '591', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 30, 'Bosnia y Herzegovina', '387', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 31, 'Botswana', '267', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 32, 'Brasil', '55', 'br'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 33, 'Brunei', '673', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 34, 'Bulgaria', '359', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 35, 'Burkina Faso', '226', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 36, 'Burma', '95', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 37, 'Burundi', '257', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 38, 'Cambodia', '855', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 39, 'Camerún', '237', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 40, 'Canada', '1', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 41, 'Colombia', '57', 'co'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 42, 'Comoros', '269', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 43, 'Congo', '242', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 44, 'Corea', '82', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 45, 'Corea del Norte', '850', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 46, 'Costa de Marfil', '225', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 47, 'Costa Rica', '506', 'cr'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 48, 'Croacia', '385', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 49, 'Cuba', '53', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 50, 'Chad', '235', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 51, 'Chile', '56', 'cl'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 52, 'China', '86', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 53, 'Chipre', '357', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 54, 'Diego Garcia', '246', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 55, 'Dinamarca', '45', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 56, 'Djibouti', '253', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 57, 'Dominica', '1007', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 58, 'Ecuador', '593', 'ec'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 59, 'Egipto', '20', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 60, 'El Salvador', '503', 'sv'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 61, 'Emiratos Arabes Unidos', '971', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 62, 'Eritea', '291', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 63, 'Eslovaquia', '421', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 64, 'España', '34', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 65, 'Estados Unidos', '1', 'us'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 66, 'Estonia', '372', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 67, 'Etiopía', '251', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 68, 'Filipinas', '63', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 69, 'Finlandia', '358', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 70, 'Francia', '33', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 71, 'Gambia', '220', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 72, 'Georgia', '995', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 73, 'Ghana', '233', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 74, 'Gibraltar', '350', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 75, 'Granada', '1009', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 76, 'Grecia', '30', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 77, 'Groelandia', '299', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 78, 'Guadalupe', '590', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 79, 'Guam', '1671', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 80, 'Guatemala', '502', 'gt'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 81, 'Guinea', '224', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 82, 'Guinea-Bissau', '245', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 83, 'Guinea Ecuatorial', '240', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 84, 'Guyana', '592', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 85, 'Guyana Francesa', '594', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 86, 'Haití', '509', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 87, 'Honduras', '504', 'hn'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 88, 'Hong Kong', '852', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 89, 'Holanda', '31', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 90, 'Hungría', '36', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 91, 'India', '91', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 92, 'Indonesia', '62', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 93, 'Inglaterra / Reino Unido', '44', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 94, 'Irán', '98', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 95, 'Iraq', '964', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 96, 'Irlanda', '353', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 97, 'Isla Cabo Verde', '238', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 98, 'Isla Navidad', '6724', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 99, 'Isla Norforlk', '6723', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 100, 'Isla Reunión', '262', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 101, 'Islandía', '354', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 102, 'Islas Ascención', ' 247', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 103, 'Islas Caimán', '1006', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 104, 'Islas Cook', '682', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 105, 'Islas Faroe', '298', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 106, 'Islas Fiji', '679', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 107, 'Islas Maldivas', '960', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 108, 'Islas Malvinas', '500', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 109, 'Islas Marshall', '692', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 110, 'Islas Mauricio', '230', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 111, 'Isla Mayotte', '2696', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 112, 'Islas Salomón', '677', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 113, 'Isla Seychelles', '248', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 114, 'Islas Tonga', '676', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 115, 'Islas Vírgenes Americanas', '340', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 116, 'Islas Vírgenes Británicas', '284', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 117, 'Israel', '972', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 118, 'Italia', '39', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 119, 'Jamaica', '1010', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 120, 'Japón', '81', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 121, 'Jordania', '962', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 122, 'Kazakhstán', '731', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 123, 'Kenia', '254', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 124, 'Kiribati', '686', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 125, 'Kuwait', '965', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 126, 'Kyrgyzstán', '733', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 127, 'Laos', '856', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 128, 'Latvia', '371', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 129, 'Lesoto', '266', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 130, 'Líbano', '961', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 131, 'Liberia', '231', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 132, 'Libia', '218', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 133, 'Liechtenstein', '417', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 134, 'Lituania', '370', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 135, 'Luxemburgo', '352', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 136, 'Macao', '853', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 137, 'Macedonia', '389', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 138, 'Madagascar', '261', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 139, 'Malasia', '60', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 140, 'Malawi', '265', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 141, 'Malta', '356', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 142, 'Marruecos', '212', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 143, 'Mauritania', '222', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 144, 'México', '52', 'mx'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 145, 'Micronesia', '691', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 146, 'Moldova', '373', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 147, 'Mónaco', '377', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 148, 'Mongolia', '976', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 149, 'Montserrat', '1011', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 150, 'Mozambique', '258', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 151, 'Myanmar', '95', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 152, 'Namibia', '264', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 153, 'Nauru', '674', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 154, 'Nepal', '977', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 155, 'Nevis', '1012', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 156, 'Nicaragua', '505', 'ni'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 157, 'Niger', '227', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 158, 'Nigeria', '234', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 159, 'Niue', '683', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 160, 'Noruega', '47', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 161, 'Nueva Caledonia', '687', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 162, 'Nueva Zelanda', '64', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 163, 'Oceano Atlántico Este', ' 871', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 164, 'Oceano Atlántico Oeste', ' 874', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 165, 'Oceano Indico', '873', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 166, 'Oceano Pacífico', '872', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 167, 'Omán', '968', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 168, 'Pakistan', '92', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 169, 'Palau', '680', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 170, 'Panamá', '507', 'pa'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 171, 'Papua Nueva Guinea', '675', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 172, 'Paraguay', '595', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 173, 'Perú', '51', 'pe'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 174, 'Polonia', '48', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 175, 'Portugal', '351', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 176, 'Puerto Rico', '1787', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 177, 'Qatar', '974', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 178, 'República Central Africana', '236', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 179, 'República Checa', '42', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 180, 'República Dominicana', '1008', 'do'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 181, 'República Gabona', '241', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 182, 'República de Mali', '223', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 183, 'República de Senegal', '221', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 184, 'República de Vanuatú', '7377', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 185, 'Rumanía', '40', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 186, 'Russia', '7', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 187, 'Rwanda', '250', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 188, 'Saipán', '1670', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 189, 'Samoa Americana', '684', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 190, 'Samoa Oeste', '685', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 191, 'San Croix', '340', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 192, 'San John', '340', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 193, 'San Kitts', '1013', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 194, 'San Marino', '378', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 195, 'San Thomas', '340', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 196, 'San Vicente', '1015', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 197, 'Santa Elena', '290', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 198, 'Santa Lucia', '1014', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 199, 'Santa Piera y Miquelón', '508', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 200, 'Sao Tome', '239', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 201, 'Sierra Leona', '232', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 202, 'Singapur', '65', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 203, 'Siria', '963', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 204, 'Slovakia', '421', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 205, 'Slovenia', '386', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 206, 'Somalía', '252', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 207, 'Sri Lanka', '94', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 208, 'Sudáfrica', '27', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 209, 'Sudán', '249', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 210, 'Suecia', '46', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 211, 'Suiza', '41', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 212, 'Surinam', '597', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 213, 'Swazilandia', '268', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 214, 'Tahití / Polinesia Francesa', '689', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 215, 'Tailandía', '66', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 216, 'Taiwan', '886', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 217, 'Tajikstan', '73', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 218, 'Tanzania', '255', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 219, 'Togo', '228', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 220, 'Trinidad y Tobago', '1016', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 221, 'Tunisia', '216', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 222, 'Turquía', '90', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 223, 'Turkmenistán', '993', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 224, 'Tuvalú', '688', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 225, 'Uganda', '256', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 226, 'Ukrania', '380', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 227, 'Uruguay', '598', 'uy'
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 228, 'Uzbekistán', '737', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 229, 'Vaticano', '396', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 230, 'Venezuela', '58', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 231, 'Vietnam', '84', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 232, 'Wallis y Futuna', '681', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 233, 'Yemen', '967', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 234, 'Yugoslavia', '381', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 235, 'Zaire', '243', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 236, 'Zambia', '260', NULL
EXEC [dbo].[MD_AMDM_EXPENSE_COUNTRYCODE] 237, 'Zimbabwe', '263', NULL
GO
EXEC [dbo].[MD_AMDM_AGENTTYPE] 'com.arandasoft.mdm-agent',                   4,    'iOS Agent',         'https://arandapush1.arandasoft.com/agents/IosAgent.ipa'
EXEC [dbo].[MD_AMDM_AGENTTYPE] 'com.arandasoft.amdm.android',                1,    'Generic Agent',     'https://arandapush1.arandasoft.com/agents/GenericAgent.apk'
EXEC [dbo].[MD_AMDM_AGENTTYPE] 'com.arandasoft.amdm.lg',                     1,    'LG Agent',          'https://arandapush1.arandasoft.com/agents/LGAgent.apk'
EXEC [dbo].[MD_AMDM_AGENTTYPE] 'com.arandasoft.amdm.android.cyrus',          1,    'Cyrus Agent',       'https://arandapush1.arandasoft.com/agents/CyrusAgent.apk'
EXEC [dbo].[MD_AMDM_AGENTTYPE] 'com.arandasoft.amdm.samsungnew',             1,    'Knox Agent',        'https://arandapush1.arandasoft.com/agents/KnoxAgent.apk'
EXEC [dbo].[MD_AMDM_AGENTTYPE] 'com.arandasoft.amdm.android.panasonic',      1,    'Panasonic Agent',   'https://arandapush1.arandasoft.com/agents/PanasonicAgent.apk'
GO
PRINT 'AMDM - Required params - Insertando FlagDevice'
EXEC [dbo].[MD_AMDM_FLAGDEVICE] 1, 'KioskEnabled'
EXEC [dbo].[MD_AMDM_FLAGDEVICE] 2, 'MetricsEnabled'
EXEC [dbo].[MD_AMDM_FLAGDEVICE] 3, 'MetricsVisibleOnAgent'
EXEC [dbo].[MD_AMDM_FLAGDEVICE] 4, 'HealthDeviceEnabled'
EXEC [dbo].[MD_AMDM_FLAGDEVICE] 5, 'HealthDeviceVisibleOnAgent'
EXEC [dbo].[MD_AMDM_FLAGDEVICE] 6, 'ProtectionResetAndroidEnabled'
GO
PRINT 'AMDM - Required params - Insertando dynamic group param type'
EXEC [dbo].[MD_AMDM_DYNAMICGROUPPARAMTYPE] 1, 'Ownership'
EXEC [dbo].[MD_AMDM_DYNAMICGROUPPARAMTYPE] 2, 'Manufacturer'
EXEC [dbo].[MD_AMDM_DYNAMICGROUPPARAMTYPE] 3, 'Version'
EXEC [dbo].[MD_AMDM_DYNAMICGROUPPARAMTYPE] 4, 'Group'
EXEC [dbo].[MD_AMDM_DYNAMICGROUPPARAMTYPE] 5, 'DeviceType'
EXEC [dbo].[MD_AMDM_DYNAMICGROUPPARAMTYPE] 6, 'DevicePlatform'
EXEC [dbo].[MD_AMDM_DYNAMICGROUPPARAMTYPE] 7, 'User'
GO
PRINT 'AMDM - Required params - Insertando ownership type'
EXEC [dbo].[MD_AMDM_OWNERSHIP_TYPE] 1, 'Company'
EXEC [dbo].[MD_AMDM_OWNERSHIP_TYPE] 2, 'User'
GO
PRINT 'AMDM - Required params - AMDM_SECURITYVALIDATION_ACTION'
EXEC [dbo].[MD_AMDM_SECURITYVALIDATIONACTION] 1, 'DisableAndroidForWork'
EXEC [dbo].[MD_AMDM_SECURITYVALIDATIONACTION] 2, 'UpdateApnsIos'
EXEC [dbo].[MD_AMDM_SECURITYVALIDATIONACTION] 3, 'UpdatePfxCertificateIos'
EXEC [dbo].[MD_AMDM_SECURITYVALIDATIONACTION] 4, 'SendMassiveUnenrollCommand'
EXEC [dbo].[MD_AMDM_SECURITYVALIDATIONACTION] 5, 'DisableApnsIos'
EXEC [dbo].[MD_AMDM_SECURITYVALIDATIONACTION] 6, 'DisableAndroidManagementApi'
EXEC [dbo].[MD_AMDM_SECURITYVALIDATIONACTION] 7, 'DisablePermissionsApplication'
GO
PRINT 'AMDM - Required params - AMDM_EVENT_STATUS'
DECLARE @nowEventStatus DATETIME = GETUTCDATE()

EXEC [dbo].[MD_AMDM_EVENT_STATUS] 'successful', @nowEventStatus
EXEC [dbo].[MD_AMDM_EVENT_STATUS] 'inProcess', @nowEventStatus
EXEC [dbo].[MD_AMDM_EVENT_STATUS] 'failed', @nowEventStatus
GO
PRINT 'AMDM - Required params - AMDM_EVENT_TYPE'
DECLARE @nowEventType DATETIME = GETUTCDATE()

EXEC [dbo].[MD_AMDM_EVENT_TYPE] 'massiveEnrollment', 1, @nowEventType
GO


--Authorization
PRINT 'AMDM - Required authentication - Permissions'

EXEC [dbo].[METADATA_PERMISSIONS] 33001, 'AMDM-Dashboard', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33002, 'AMDM-Reports', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33003, 'AMDM-Devices', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33004, 'AMDM-Devices-Details', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33005, 'AMDM-Devices-ExportDeviceList', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33006, 'AMDM-Devices-CmdGetinventory', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33007, 'AMDM-Devices-CmdEdit', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33008, 'AMDM-Devices-CmdBlock', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33009, 'AMDM-Devices-CmdMessage', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33010, 'AMDM-Devices-CmdClearPwd', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33011, 'AMDM-Devices-CmdLocate', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33012, 'AMDM-Devices-CmdChangePolicy', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33013, 'AMDM-Devices-CmdWipe', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33014, 'AMDM-Devices-CmdChangeRuleset', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33015, 'AMDM-Devices-CmdChangePlan', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33016, 'AMDM-Devices-CmdSetTracking', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33017, 'AMDM-Devices-CmdContentLock', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33018, 'AMDM-Devices-CmdContentUnlock', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33019, 'AMDM-Devices-CmdChangeProfile', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33020, 'AMDM-Devices-CmdChangeOwner', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33021, 'AMDM-Devices-CmdSendSound', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33022, 'AMDM-Devices-CmdEnableLostMode', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33023, 'AMDM-Devices-CmdDisableLostMode', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33024, 'AMDM-Devices-CmdChangePassword', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33025, 'AMDM-Devices-CmdRemoteControl', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33026, 'AMDM-Devices-CmdChangeProfilePassword', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33027, 'AMDM-Devices-CmdInstallApp', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33028, 'AMDM-Devices-CmdUninstallApp', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33029, 'AMDM-Devices-CmdTotalLock', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33030, 'AMDM-Devices-CmdTotalUnlock', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33031, 'AMDM-Devices-CmdUpdateCI', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33032, 'AMDM-Devices-ViewGeneral', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33033, 'AMDM-Devices-ViewActivity', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33034, 'AMDM-Devices-ViewActivityRemoteSessions', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33035, 'AMDM-Devices-ViewActivityCancelCommand', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33036, 'AMDM-Devices-ViewActivityCancelRemoteSession', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33037, 'AMDM-Devices-ViewActivityDownloadRemoteSession', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33038, 'AMDM-Devices-ViewApplications', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33039, 'AMDM-Devices-ViewLocation', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33040, 'AMDM-Devices-ViewExpenses', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33041, 'AMDM-Devices-ViewCI', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33042, 'AMDM-Devices-GoToPolicy', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33043, 'AMDM-Devices-GoToPlan', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33044, 'AMDM-Devices-GoToRuleset', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33045, 'AMDM-Devices-GoToProfile', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33046, 'AMDM-Devices-GoToCMDBConfig', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33047, 'AMDM-Devices-Enroll', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33048, 'AMDM-Devices-Unenroll', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33049, 'AMDM-Policies', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33050, 'AMDM-Devices-ExportPolicyList', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33051, 'AMDM-Policies-Details', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33052, 'AMDM-Policies-Create', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33053, 'AMDM-Policies-Update', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33054, 'AMDM-Policies-Configure', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33055, 'AMDM-Policies-ViewDevices', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33056, 'AMDM-Policies-GoToDevice', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33057, 'AMDM-Policies-Approve', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33058, 'AMDM-Policies-Apply', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33059, 'AMDM-Policies-Delete', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33060, 'AMDM-Policies-AndroidPolicyType', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33061, 'AMDM-Policies-iOSPolicyType', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33062, 'AMDM-Policies-WindowsPolicyType', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33063, 'AMDM-Policies-ViewRestrictions', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33064, 'AMDM-Policies-ViewOptionalRestrictionsAndroid', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33065, 'AMDM-Policies-ViewPassword', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33066, 'AMDM-Policies-ViewProfilePassword', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33067, 'AMDM-Policies-ViewWifi', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33068, 'AMDM-Policies-ViewWebclips', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33069, 'AMDM-Policies-ViewEAS', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33070, 'AMDM-Policies-ViewMail', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33071, 'AMDM-Policies-ViewApplications', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33072, 'AMDM-Policies-ViewKiosk', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33073, 'AMDM-Policies-ViewSecureBrowsing', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33074, 'AMDM-AppCatalog', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33075, 'AMDM-AppCatalog-ExportAppList', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33076, 'AMDM-AppCatalog-Import', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33077, 'AMDM-AppCatalog-Load', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33078, 'AMDM-AppCatalog-Details', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33079, 'AMDM-AppCatalog-Install', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33080, 'AMDM-AppCatalog-Devices', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33081, 'AMDM-AppCatalog-Policies', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33082, 'AMDM-AppCatalog-AllowApprove', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33083, 'AMDM-PersonalSettings', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33084, 'AMDM-PersonalSettings-ProfileEdit', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33085, 'AMDM-ApplicationSettings', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33086, 'AMDM-ApplicationSettings-EnterpriseIntegration', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33087, 'AMDM-ApplicationSettings-EnterpriseIntegration-CMDB', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33088, 'AMDM-ApplicationSettings-EnterpriseIntegration-LDAP', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33089, 'AMDM-ApplicationSettings-EnterpriseIntegration-EMAIL', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33090, 'AMDM-ApplicationSettings-Users', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33091, 'AMDM-ApplicationSettings-Groups', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33092, 'AMDM-ApplicationSettings-DynamicGroups', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33093, 'AMDM-ApplicationSettings-Licensing', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33094, 'AMDM-ApplicationSettings-Templates', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33095, 'AMDM-ApplicationSettings-ActivityLog', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33096, 'AMDM-ApplicationSettings-Calendars', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33097, 'AMDM-ApplicationSettings-Calendars-Apply', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33098, 'AMDM-ApplicationSettings-Calendars-ViewDevices', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33099, 'AMDM-ApplicationSettings-Zones', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33100, 'AMDM-ApplicationSettings-GroupPolicy', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33101, 'AMDM-ApplicationSettings-Mobile-Android', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33102, 'AMDM-ApplicationSettings-Mobile-Windows', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33103, 'AMDM-ApplicationSettings-Mobile-iOS', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33104, 'AMDM-ApplicationSettings-Mobile-Enrollment', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33105, 'AMDM-Rulesets', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33106, 'AMDM-Rulesets-ExportTRulesetList', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33107, 'AMDM-Rulesets-Details', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33108, 'AMDM-Rulesets-Create', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33109, 'AMDM-Rulesets-Delete', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33110, 'AMDM-Rulesets-ViewUnenroll', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33111, 'AMDM-Rulesets-ViewNewInventory', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33112, 'AMDM-Rulesets-ViewGeofencing', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33113, 'AMDM-Rulesets-ViewWififencing', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33114, 'AMDM-Rulesets-ViewTimefencing', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33115, 'AMDM-Rulesets-ViewExpenses', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33116, 'AMDM-Rulesets-ViewPolicyFulfillment', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33117, 'AMDM-Rulesets-ViewJailRoot', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33118, 'AMDM-Rulesets-ViewUserLogged', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33119, 'AMDM-Rulesets-ViewDevices', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33120, 'AMDM-Rulesets-Apply', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33121, 'AMDM-Rulesets-GoToDevice', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33122, 'AMDM-Alerts', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33123, 'AMDM-Alerts-GoToDevice', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33124, 'AMDM-Documents', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33125, 'AMDM-ManagementProjects', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33126, 'AMDM-ManagementProjects-Details', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33127, 'AMDM-ManagementProjects-Create', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33128, 'AMDM-ManagementProjects-Delete', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33129, 'AMDM-ManagementProjects-GoToDevice', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33130, 'AMDM-Expenses', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33131, 'AMDM-Expenses-Details', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33132, 'AMDM-Expenses-Create', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33133, 'AMDM-Expenses-Delete', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33134, 'AMDM-Expenses-Update', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33135, 'AMDM-Expenses-ViewDevices', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33136, 'AMDM-Expenses-Apply', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33137, 'AMDM-Expenses-GoToDevice', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33138, 'AMDM-Policies-ViewCalls', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33139, 'AMDM-Rulesets-ViewLoginFailed', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33140, 'AMDM-Expenses-ViewMonitoringRules', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33141, 'AMDM-ApplicationSettings-ScriptCommands', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33142, 'AMDM-ApplicationSettings-Mobile-RemoteSupport', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33143, 'AMDM-ApplicationSettings-Mobile-AgentProfile', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33144, 'AMDM-ApplicationSettings-Mobile-Ping', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33145, 'AMDM-ApplicationSettings-GlobalConfigurations', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33146, 'AMDM-Devices-CmdRestartDevice', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33147, 'AMDM-ApplicationSettings-Mobile-Enrollment-UpdateConfiguration', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33148, 'AMDM-ApplicationSettings-Mobile-iOS-UpdatePfxCertificate', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33149, 'AMDM-ApplicationSettings-Mobile-iOS-UpdateApnsCertificate', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33150, 'AMDM-ApplicationSettings-Mobile-iOS-UpdateAppleBusinessManagerEnrolling', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33151, 'AMDM-ApplicationSettings-Mobile-iOS-UpdateVolumePurchaseProgramToken', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33152, 'AMDM-ApplicationSettings-Mobile-Android-EnableAndroidForWork', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33153, 'AMDM-ApplicationSettings-Mobile-Android-DisableAndroidForWork', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33154, 'AMDM-ApplicationSettings-Mobile-Ping-UpdateConfiguration', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33155, 'AMDM-ApplicationSettings-Mobile-AgentProfile-Create', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33156, 'AMDM-ApplicationSettings-Mobile-AgentProfile-Update', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33157, 'AMDM-ApplicationSettings-Mobile-AgentProfile-Delete', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33158, 'AMDM-ApplicationSettings-Templates-UpdateEnrollTemplate', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33159, 'AMDM-ApplicationSettings-Templates-UpdateWelcomeTemplate', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33160, 'AMDM-ApplicationSettings-Templates-UpdateRecoveryTemplate', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33161, 'AMDM-ApplicationSettings-Templates-UpdateTermsTemplate', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33162, 'AMDM-ApplicationSettings-Templates-UpdateAppTemplate', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33163, 'AMDM-ApplicationSettings-Zones-Create', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33164, 'AMDM-ApplicationSettings-Zones-Update', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33165, 'AMDM-ApplicationSettings-Zones-Delete', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33166, 'AMDM-ApplicationSettings-GlobalConfigurations-UpdateConfiguration', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33167, 'AMDM-Rulesets-Update', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33168, 'AMDM-Devices-MassiveCmd', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33169, 'AMDM-AgentProfiles-Apply', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33170, 'AMDM-ChangeOwner', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33171, 'AMDM-ChangeContentLockState', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33172, 'AMDM-Expenses-Unassign', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33173, 'AMDM-ApplicationSettings-ApplicationCategories', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33174, 'AMDM-ApplicationSettings-ApplicationCategories-Create', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33175, 'AMDM-ApplicationSettings-ApplicationCategories-Delete', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33176, 'AMDM-ApplicationSettings-ApplicationCategories-Update', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33177, 'AMDM-AppCatalog-AddCategory', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33178, 'AMDM-AppCatalog-RemoveCategory', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33179, 'AMDM-Devices-ViewMetrics', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33180, 'AMDM-AppCatalog-Metrics', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33181, 'AMDM-Devices-CmdApplicationMetrics', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33182, 'AMDM-Devices-CmdChangeHealthDeviceStatus', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33183, 'AMDM-Devices-CmdHealthDeviceInfo', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33184, 'AMDM-ApplicationSettings-StatusDevice', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33185, 'AMDM-ApplicationSettings-Mobile-Android-DisableAndroidForWork-APP', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33186, 'AMDM-ApplicationSettings-Mobile-Android-EnableAndroidForWork-APP', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33187, 'AMDM-Devices-EnableEnterpriseFactoryResetProtection', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33188, 'AMDM-Devices-DisableEnterpriseFactoryResetProtection', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33189, 'AMDM-ApplicationSettings-Mobile-Android-EnableAndroidManagementApi', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33190, 'AMDM-ApplicationSettings-Mobile-Android-DisableAndroidManagementApi', NULL, 1, 33, NULL
EXEC [dbo].[METADATA_PERMISSIONS] 33191, 'AMDM-Devices-ViewOthersDevices', NULL, 1, 33, NULL
GO
PRINT 'AMDM - Required authentication - Roles and permissions'
DECLARE @v_id_rol INT
DECLARE @v_id_service_user INT
DECLARE @v_id_adminGroup INT

SELECT @v_id_service_user = user_id FROM [AFW_USERS] WHERE [user_name] = 'ARANDA SERVICES USER'
SELECT @v_id_adminGroup = grou_id FROM [AFW_GROUPS] WHERE [grou_name] = 'Administrators'

SELECT @v_id_rol = role_id FROM AFW_ROLES WHERE role_name = 'Administrator' AND role_application_id = 0
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33045, @v_id_rol, 1  -- Administrator -> AMDM-Devices-GoToProfile
SET @v_id_rol = NULL

PRINT 'Device Manager Role'
EXEC [dbo].[METADATA_ROLES] 'Device Manager', 'Device Manager', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33001, @v_id_rol, 1  -- Device Manager -> AMDM-Dashboard
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33002, @v_id_rol, 1  -- Device Manager -> AMDM-Reports
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33003, @v_id_rol, 1  -- Device Manager -> AMDM-Devices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33004, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-Details
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33005, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ExportDeviceList
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33006, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdGetinventory
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33007, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33008, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdBlock
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33009, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdMessage
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33010, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdClearPwd
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33011, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdLocate
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33012, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdChangePolicy
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33013, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdWipe
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33014, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdChangeRuleset
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33015, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdChangePlan
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33016, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdSetTracking
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33017, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdContentLock
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33018, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdContentUnlock
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33019, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdChangeProfile
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33020, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdChangeOwner
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33021, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdSendSound
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33022, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdEnableLostMode
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33023, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdDisableLostMode
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33024, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdChangePassword
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33025, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdRemoteControl
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33026, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdChangeProfilePassword
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33027, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdInstallApp
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33028, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdUninstallApp
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33029, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdTotalLock
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33030, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdTotalUnlock
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33031, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdUpdateCI
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33032, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewGeneral
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33033, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewActivity
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33034, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewActivityRemoteSessions
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33035, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewActivityCancelCommand
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33036, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewActivityCancelRemoteSession
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33037, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewActivityDownloadRemoteSession
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33038, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewApplications
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33039, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewLocation
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33040, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewExpenses
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33041, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewCI
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33047, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-Enroll
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33048, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-Unenroll
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33056, @v_id_rol, 1  -- Device Manager -> AMDM-Policies-GoToDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33058, @v_id_rol, 1  -- Device Manager -> AMDM-Policies-Apply
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33079, @v_id_rol, 1  -- Device Manager -> AMDM-AppCatalog-Install
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @v_id_rol, 1  -- Device Manager -> AMDM-PersonalSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @v_id_rol, 1  -- Device Manager -> AMDM-PersonalSettings-ProfileEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33098, @v_id_rol, 1  -- Device Manager -> AMDM-ApplicationSettings-Calendars-ViewDevices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33120, @v_id_rol, 1  -- Device Manager -> AMDM-Rulesets-Apply
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33121, @v_id_rol, 1  -- Device Manager -> AMDM-Rulesets-GoToDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33122, @v_id_rol, 1  -- Device Manager -> AMDM-Alerts
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33123, @v_id_rol, 1  -- Device Manager -> AMDM-Alerts-GoToDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33125, @v_id_rol, 1  -- Device Manager -> AMDM-ManagementProjects
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33126, @v_id_rol, 1  -- Device Manager -> AMDM-ManagementProjects-Details
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33127, @v_id_rol, 1  -- Device Manager -> AMDM-ManagementProjects-Create
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33128, @v_id_rol, 1  -- Device Manager -> AMDM-ManagementProjects-Delete
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33129, @v_id_rol, 1  -- Device Manager -> AMDM-ManagementProjects-GoToDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33136, @v_id_rol, 1  -- Device Manager -> AMDM-Expenses-Apply
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33137, @v_id_rol, 1  -- Device Manager -> AMDM-Expenses-GoToDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33146, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdRestartDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33179, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-ViewMetrics
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33181, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdApplicationMetrics
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33182, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdChangeHealthDeviceStatus
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33183, @v_id_rol, 1  -- Device Manager -> AMDM-Devices-CmdHealthDeviceInfo
SET @v_id_rol = NULL

PRINT 'Device Reader Role'
EXEC [dbo].[METADATA_ROLES] 'Device Reader', 'Device Reader', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33001, @v_id_rol, 1  -- Device Reader -> AMDM-Dashboard
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33002, @v_id_rol, 1  -- Device Reader -> AMDM-Reports
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33003, @v_id_rol, 1  -- Device Reader -> AMDM-Devices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33004, @v_id_rol, 1  -- Device Reader -> AMDM-Devices-Details
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33005, @v_id_rol, 1  -- Device Reader -> AMDM-Devices-ExportDeviceList
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33032, @v_id_rol, 1  -- Device Reader -> AMDM-Devices-ViewGeneral
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33033, @v_id_rol, 1  -- Device Reader -> AMDM-Devices-ViewActivity
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33034, @v_id_rol, 1  -- Device Reader -> AMDM-Devices-ViewActivityRemoteSessions
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33037, @v_id_rol, 1  -- Device Reader -> AMDM-Devices-ViewActivityDownloadRemoteSession
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33038, @v_id_rol, 1  -- Device Reader -> AMDM-Devices-ViewApplications
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33039, @v_id_rol, 1  -- Device Reader -> AMDM-Devices-ViewLocation
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33040, @v_id_rol, 1  -- Device Reader -> AMDM-Devices-ViewExpenses
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33041, @v_id_rol, 1  -- Device Reader -> AMDM-Devices-ViewCI
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33056, @v_id_rol, 1  -- Device Reader -> AMDM-Policies-GoToDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @v_id_rol, 1  -- Device Reader -> AMDM-PersonalSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @v_id_rol, 1  -- Device Reader -> AMDM-PersonalSettings-ProfileEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33098, @v_id_rol, 1  -- Device Reader -> AMDM-ApplicationSettings-Calendars-ViewDevices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33121, @v_id_rol, 1  -- Device Reader -> AMDM-Rulesets-GoToDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33122, @v_id_rol, 1  -- Device Reader -> AMDM-Alerts
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33123, @v_id_rol, 1  -- Device Reader -> AMDM-Alerts-GoToDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33129, @v_id_rol, 1  -- Device Reader -> AMDM-ManagementProjects-GoToDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33137, @v_id_rol, 1  -- Device Reader -> AMDM-Expenses-GoToDevice
SET @v_id_rol = NULL

PRINT 'Policy Manager Role'
EXEC [dbo].[METADATA_ROLES] 'Policy Manager', 'Policy Manager', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33001, @v_id_rol, 1  -- Policy Manager -> AMDM-Dashboard
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33002, @v_id_rol, 1  -- Policy Manager -> AMDM-Reports
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33042, @v_id_rol, 1  -- Policy Manager -> AMDM-Devices-GoToPolicy
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33049, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33050, @v_id_rol, 1  -- Policy Manager -> AMDM-Devices-ExportPolicyList
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33051, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-Details
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33052, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-Create
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33053, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-Update
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33054, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-Configure
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33055, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewDevices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33057, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-Approve
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33059, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-Delete
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33060, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-AndroidPolicyType
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33061, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-iOSPolicyType
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33062, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-WindowsPolicyType
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33063, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewRestrictions
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33064, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewOptionalRestrictionsAndroid
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33065, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewPassword
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33066, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewProfilePassword
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33067, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewWifi
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33068, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewWebclips
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33069, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewEAS
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33070, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewMail
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33071, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewApplications
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33072, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewKiosk
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33073, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewSecureBrowsing
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @v_id_rol, 1  -- Policy Manager -> AMDM-PersonalSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @v_id_rol, 1  -- Policy Manager -> AMDM-PersonalSettings-ProfileEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33122, @v_id_rol, 1  -- Policy Manager -> AMDM-Alerts
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33138, @v_id_rol, 1  -- Policy Manager -> AMDM-Policies-ViewCalls
SET @v_id_rol = NULL

PRINT 'Policy Editor Role'
EXEC [dbo].[METADATA_ROLES] 'Policy Editor', 'Policy Editor', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33001, @v_id_rol, 1  -- Policy Editor -> AMDM-Dashboard
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33002, @v_id_rol, 1  -- Policy Editor -> AMDM-Reports
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33042, @v_id_rol, 1  -- Policy Editor -> AMDM-Devices-GoToPolicy
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33049, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33050, @v_id_rol, 1  -- Policy Editor -> AMDM-Devices-ExportPolicyList
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33051, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-Details
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33052, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-Create
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33053, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-Update
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33054, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-Configure
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33055, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewDevices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33059, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-Delete
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33060, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-AndroidPolicyType
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33061, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-iOSPolicyType
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33062, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-WindowsPolicyType
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33063, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewRestrictions
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33064, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewOptionalRestrictionsAndroid
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33065, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewPassword
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33066, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewProfilePassword
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33067, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewWifi
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33068, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewWebclips
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33069, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewEAS
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33070, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewMail
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33071, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewApplications
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33072, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewKiosk
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33073, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewSecureBrowsing
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @v_id_rol, 1  -- Policy Editor -> AMDM-PersonalSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @v_id_rol, 1  -- Policy Editor -> AMDM-PersonalSettings-ProfileEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33122, @v_id_rol, 1  -- Policy Editor -> AMDM-Alerts
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33138, @v_id_rol, 1  -- Policy Editor -> AMDM-Policies-ViewCalls
SET @v_id_rol = NULL

PRINT 'Policy Reader Role'
EXEC [dbo].[METADATA_ROLES] 'Policy Reader', 'Policy Reader', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33001, @v_id_rol, 1  -- Policy Reader -> AMDM-Dashboard
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33002, @v_id_rol, 1  -- Policy Reader -> AMDM-Reports
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33042, @v_id_rol, 1  -- Policy Reader -> AMDM-Devices-GoToPolicy
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33049, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33050, @v_id_rol, 1  -- Policy Reader -> AMDM-Devices-ExportPolicyList
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33051, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-Details
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33054, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-Configure
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33055, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewDevices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33060, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-AndroidPolicyType
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33061, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-iOSPolicyType
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33062, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-WindowsPolicyType
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33063, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewRestrictions
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33064, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewOptionalRestrictionsAndroid
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33065, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewPassword
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33066, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewProfilePassword
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33067, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewWifi
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33068, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewWebclips
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33069, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewEAS
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33070, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewMail
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33071, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewApplications
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33072, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewKiosk
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33073, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewSecureBrowsing
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @v_id_rol, 1  -- Policy Reader -> AMDM-PersonalSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @v_id_rol, 1  -- Policy Reader -> AMDM-PersonalSettings-ProfileEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33122, @v_id_rol, 1  -- Policy Reader -> AMDM-Alerts
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33138, @v_id_rol, 1  -- Policy Reader -> AMDM-Policies-ViewCalls
SET @v_id_rol = NULL

PRINT 'Ruleset Manager Role'
EXEC [dbo].[METADATA_ROLES] 'Ruleset Manager', 'Ruleset Manager', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33001, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Dashboard
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33002, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Reports
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33044, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Devices-GoToRuleset
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @v_id_rol, 1  -- Ruleset Manager -> AMDM-PersonalSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @v_id_rol, 1  -- Ruleset Manager -> AMDM-PersonalSettings-ProfileEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33105, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33106, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ExportTRulesetList
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33107, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-Details
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33108, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-Create
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33109, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-Delete
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33110, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewUnenroll
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33111, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewNewInventory
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33112, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewGeofencing
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33113, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewWififencing
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33114, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewTimefencing
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33115, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewExpenses
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33116, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewPolicyFulfillment
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33117, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewJailRoot
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33118, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewUserLogged
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33119, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewDevices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33122, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Alerts
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33139, @v_id_rol, 1  -- Ruleset Manager -> AMDM-Rulesets-ViewLoginFailed
SET @v_id_rol = NULL

PRINT 'AppCatalog Manager Role'
EXEC [dbo].[METADATA_ROLES] 'AppCatalog Manager', 'AppCatalog Manager', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33001, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-Dashboard
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33002, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-Reports
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33074, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-AppCatalog
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33075, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-AppCatalog-ExportAppList
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33076, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-AppCatalog-Import
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33077, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-AppCatalog-Load
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33078, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-AppCatalog-Details
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33080, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-AppCatalog-Devices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33081, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-AppCatalog-Policies
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33082, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-AppCatalog-AllowApprove
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-PersonalSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-PersonalSettings-ProfileEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33122, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-Alerts
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33180, @v_id_rol, 1  -- AppCatalog Manager -> AMDM-AppCatalog-Metrics
SET @v_id_rol = NULL

PRINT 'Content Manager Role'
EXEC [dbo].[METADATA_ROLES] 'Content Manager', 'Content Manager', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33001, @v_id_rol, 1  -- Content Manager -> AMDM-Dashboard
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33002, @v_id_rol, 1  -- Content Manager -> AMDM-Reports
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @v_id_rol, 1  -- Content Manager -> AMDM-PersonalSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @v_id_rol, 1  -- Content Manager -> AMDM-PersonalSettings-ProfileEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33122, @v_id_rol, 1  -- Content Manager -> AMDM-Alerts
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33124, @v_id_rol, 1  -- Content Manager -> AMDM-Documents
SET @v_id_rol = NULL

PRINT 'Plan Manager Role'
EXEC [dbo].[METADATA_ROLES] 'Plan Manager', 'Plan Manager', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33001, @v_id_rol, 1  -- Plan Manager -> AMDM-Dashboard
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33002, @v_id_rol, 1  -- Plan Manager -> AMDM-Reports
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33043, @v_id_rol, 1  -- Plan Manager -> AMDM-Devices-GoToPlan
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @v_id_rol, 1  -- Plan Manager -> AMDM-PersonalSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @v_id_rol, 1  -- Plan Manager -> AMDM-PersonalSettings-ProfileEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33122, @v_id_rol, 1  -- Plan Manager -> AMDM-Alerts
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33130, @v_id_rol, 1  -- Plan Manager -> AMDM-Expenses
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33131, @v_id_rol, 1  -- Plan Manager -> AMDM-Expenses-Details
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33132, @v_id_rol, 1  -- Plan Manager -> AMDM-Expenses-Create
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33133, @v_id_rol, 1  -- Plan Manager -> AMDM-Expenses-Delete
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33134, @v_id_rol, 1  -- Plan Manager -> AMDM-Expenses-Update
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33135, @v_id_rol, 1  -- Plan Manager -> AMDM-Expenses-ViewDevices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33140, @v_id_rol, 1  -- Plan Manager -> AMDM-Expenses-ViewMonitoringRules
SET @v_id_rol = NULL

PRINT 'Settings Manager Role'
EXEC [dbo].[METADATA_ROLES] 'Settings Manager', 'Settings Manager', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33001, @v_id_rol, 1  -- Settings Manager -> AMDM-Dashboard
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33002, @v_id_rol, 1  -- Settings Manager -> AMDM-Reports
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33083, @v_id_rol, 1  -- Settings Manager -> AMDM-PersonalSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33084, @v_id_rol, 1  -- Settings Manager -> AMDM-PersonalSettings-ProfileEdit
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33085, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33086, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-EnterpriseIntegration
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33087, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-EnterpriseIntegration-CMDB
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33088, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-EnterpriseIntegration-LDAP
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33089, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-EnterpriseIntegration-EMAIL
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33090, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Users
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33091, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Groups
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33092, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-DynamicGroups
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33093, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Licensing
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33094, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Templates
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33095, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-ActivityLog
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33096, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Calendars
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33097, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Calendars-Apply
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33098, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Calendars-ViewDevices
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33099, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Zones
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33100, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-GroupPolicy
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33101, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-Android
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33102, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-Windows
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33103, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-iOS
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33104, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-Enrollment
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33122, @v_id_rol, 1  -- Settings Manager -> AMDM-Alerts
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33141, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-ScriptCommands
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33142, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-RemoteSupport
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33143, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-AgentProfile
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33144, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-Ping
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33145, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-GlobalConfigurations
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33147, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-Enrollment-UpdateConfiguration
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33148, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-iOS-UpdatePfxCertificate
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33149, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-iOS-UpdateApnsCertificate
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33150, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-iOS-UpdateAppleBusinessManagerEnrolling
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33151, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-iOS-UpdateVolumePurchaseProgramToken
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33152, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-Android-EnableAndroidForWork
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33153, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-Android-DisableAndroidForWork
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33154, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-Ping-UpdateConfiguration
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33155, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-AgentProfile-Create
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33156, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-AgentProfile-Update
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33157, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-AgentProfile-Delete
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33158, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Templates-UpdateEnrollTemplate
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33159, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Templates-UpdateWelcomeTemplate
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33160, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Templates-UpdateRecoveryTemplate
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33161, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Templates-UpdateTermsTemplate
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33162, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Templates-UpdateAppTemplate
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33163, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Zones-Create
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33164, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Zones-Update
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33165, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Zones-Delete
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33166, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-GlobalConfigurations-UpdateConfiguration
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33173, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-ApplicationCategories
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33174, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-ApplicationCategories-Create
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33175, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-ApplicationCategories-Delete
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33176, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-ApplicationCategories-Update
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33184, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-StatusDevice
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33187, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-ProtectionResetAndroid
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33188, @v_id_rol, 1  -- Settings Manager -> AMDM-Devices-DisableEnterpriseFactoryResetProtection
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33189, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-Android-EnableAndroidManagementApi
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33190, @v_id_rol, 1  -- Settings Manager -> AMDM-ApplicationSettings-Mobile-Android-DisableAndroidManagementApi
SET @v_id_rol = NULL


PRINT 'View Other Devices Role'
EXEC [dbo].[METADATA_ROLES] 'View Other Devices', 'View Other Devices', 1, 0, 33, NULL, @v_id_rol OUTPUT

IF(@v_id_adminGroup IS NOT NULL)
BEGIN
	EXEC [dbo].[METADATA_ROLE_ACCESS] @v_id_adminGroup, @v_id_rol, NULL, NULL, 0, NULL
END

EXEC [dbo].[METADATA_ROLE_ACCESS] NULL, @v_id_rol, NULL, @v_id_service_user, 0, NULL
EXEC [dbo].[MD_AMDM_BASICPERMISSIONS] @v_id_rol
EXEC [dbo].[METADATA_ROLE_PERMISSION] 33191, @v_id_rol, 1  -- View Other Devices -> AMDM-Devices-ViewOthersDevices


GO


--AppSettings - AppSettings-Fixed - Licensing - IosCertificates
PRINT 'AMDM - Required data - Settings'

--Endpoints de conexión para los móviles
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MDMServer', 33, 'https://localhost/AMDMWS', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ConsoleServer', 33, 'http://localhost/AMDM', NULL, NULL

--Opciones de autenticación
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnrollSettings_RequiredWebAuth', 33, 'true', NULL, NULL

-- Certificado individual del móvil iOS: Por defecto usa un archivo precargado
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileIOS_MobileCertificateType', 33, 'ByCorporateCertificate', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileIOS_CertificateFile', 33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileIOS_CertificateName', 33, 'MDM_Profile_Certificate_For_IOS.pfx', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileIOS_CertificatePassword', 33, 'o5t0LTXlzl8SOT1tbv8lUN0Y7XmiENn48x8j7GViqVI=', NULL, NULL

-- CA para que el móvil iOS reconozca el certificado que firma los mobileconfigs. Este debe ser descargado desde el navegador del móvil durante el enrollment
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileIOS_CAPemFile',  33, '-----BEGIN CERTIFICATE-----
MIIF3zCCA8egAwIBAgIJAP+25lcRPOc7MA0GCSqGSIb3DQEBCwUAMIGFMQswCQYD
VQQGEwJVUzEOMAwGA1UECAwFTWlhbWkxHTAbBgNVBAoMFEFyYW5kYSBTb2Z0d2Fy
ZSBDb3JwMSEwHwYDVQQLDBhBcmFuZGEgRGV2aWNlIE1hbmFnZW1lbnQxJDAiBgNV
BAMMG0FyYW5kYSBEZXZpY2UgTWFuYWdlbWVudCBDQTAeFw0xNzA3MjUyMDU0NTha
Fw0zNzA3MjAyMDU0NThaMIGFMQswCQYDVQQGEwJVUzEOMAwGA1UECAwFTWlhbWkx
HTAbBgNVBAoMFEFyYW5kYSBTb2Z0d2FyZSBDb3JwMSEwHwYDVQQLDBhBcmFuZGEg
RGV2aWNlIE1hbmFnZW1lbnQxJDAiBgNVBAMMG0FyYW5kYSBEZXZpY2UgTWFuYWdl
bWVudCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALWu07sjpCA7
0GR3hoiuaJahmg6boRCkz/Jh7He4hcMbZlrU2QksrDsW8vyclkIkV7K0yb2SjTvX
p5bRyruxX86da1mn2p9Sh3WCGcLIn1eGtDKlCN3dAwooomPF+XNea/2X5m9+daoh
NqRJKxisAL9ENnqNBcYJMB3u5hAPTPYnRCFe5MAqhvXhRSv364n82qDgTiNaqHK4
Clt07QZQFarYLx06MBFpUiOpDbtKxGQmuvgao7G6bIOn74tOK7w8LXrin7Hkq2yf
jBVbBsOszhsiPIrquArcwKLYH3ALumAdtP4xxwNPLjRXzhkfuvfd2dGQbqzsESDp
7PawWLn5jyyuCPgVcgjufo+EXOo5DQNwallAxIIkCqZQwvHwZC+y81J7LEMltZNa
ePqlN3TMcHNiE2PXpyZfhM1wWtHe42Woh7mxzEuY4cQQuIvGkW0TPNMhJ/E48095
yWC6SU9/1x4A5eeiQBmvJIGyRIrw5+3Pfgxt39trHcmqVxDJ/DM3KKA9ysP4D/cN
1Ct+PETZzP0qkVKo9bF10L+HcTq1ZZu9ymxLukHbcxWLT3zqmOQh09pebgl1jVx6
eyMAqd268g/sExrdGt2S5JT+bfZ59z6HCy0Wbr1uh9kNa0ToMQq/MhurNL+O402D
fl2xMtYyWdEmB6BZcWEa54mOPYWbsqurAgMBAAGjUDBOMB0GA1UdDgQWBBT6hUHM
9thBeB2rsxx5h7z3xwLqeTAfBgNVHSMEGDAWgBT6hUHM9thBeB2rsxx5h7z3xwLq
eTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4ICAQAy2RpI4aHvMLdCOJiR
DN9yZvQKzLo6IFbz7AEp4ELNIedPkWIULbiBaKF6T59rMZNw7qXZEZnLiFNGCCOo
+KwvvI03/notNGY+VfNSv5FtYm3B/5Z4VqS7VtZg+WnT4rXPJ5byVCOxGCIdRp+V
TkQ+y+IRakzbv6NbcfcOuMggjO+BwfYvHskd78RKwgiEIuEsj0W63+wPnREvOg/y
Z5ArbB6kADuNv0T4nsGGL8x7LFMndInBsW5P6eWYQw21jDgvGFOBGcGt3ejzqpN4
rPGm8vVS2HMJpEAe5Kt+3IY5nbsn3Gm2zBYG5mHP4GHtjZh6j0PpPtIsGfrU6+eh
xqi/kQStTECN71boKudtOnBehPAYOCuwZUytb9kUuQcRxNaiGqtqs4Qpb5daW8to
JkEqt8WnrtneCWXvnrMkOJCGpKlRl6O2p0fXOoc6E3bdYlAeH9Qzm057Lm70o1wf
3sYWL/yS2qjvnc7qmohMwOR9bGgzYwV/147KARt/HpOk6X/Kv0P+aa1tjJ32YqJ/
qxIMV0pQwfI6NlJOlPzBJ6mip3reIrY6SHstvNJCTgDyLWzIZ/zKmjmFVg5chLmS
rvG7P/dNU7182luftC+Kluv61VG2mK+IlexgFdRfCjOijDyAKzQsAX2foey+CfnK
p7BaaNrXQE2vY3Mlbzst3gzbBg==
-----END CERTIFICATE-----', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileIOS_CAServerURL',  33, ' ', NULL, NULL

-- Email
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CorporateEmail_Server',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CorporateEmail_User',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CorporateEmail_User',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CorporateEmail_Password',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CorporateEmail_Sender',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CorporateEmail_SenderName',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CorporateEmail_Port',  33, '587', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CorporateEmail_isSSL',  33, 'true', NULL, NULL

-- CMDB Configuration
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CMDBConfiguration',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CMDBConfiguration_ItemsMapped',  33, 'OSVersion,EnrollmentDateFormat,IMEI,PhoneNumber,Model,TotalInternalStorage,ProductName,DeviceSerialNumber,SimSerialNumber,TotalRamMemory,TotalExtornalStorage,CurrentNetworkcarrier,SimCarrier,Platform', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CMDBConfiguration_ItemsMappedInfo',  33, ' ', NULL, NULL

--Plantilla de términos y condiciones
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnrollSettings_TermsAndConditions',  33, 'Aranda Software Corp  Terms and Conditions and Privacy Policy    Effective March 1, 2014    The platform software (“software”) licensed by Aranda Software Corp,  provides mobile device management and consists of two elements: (1) the Aranda Software Corp Console which allows communication and control functions with smartphones or mobile devices to be monitored and as required by Apple policy, we do not share any data collected by our service with any third parties for any reason. (2) a software agent or other method that facilitates communication with the Aranda Software Corp Console licensed by our customers. The privacy considerations for customers who license the Aranda Software Corp software to perform enterprise-wide mobile device management (“Customers”) and the privacy considerations for those on whose mobile devices are being monitored (“Individuals”) are both discussed in this Policy.    Whether you are a Customer or an Individual, the privacy and security of your personal information is a foremost consideration of Aranda Software Corp. We want to make sure you understand how the Aranda Software Corp software works and how we use any personal information gathered through the software and on our site: www.arandasoft.com allowing you to feel secure that your privacy interests are being respected within the bounds of this Policy. This Privacy Policy applies to all of our software and services. The use of information collected through our service shall be limited to the purpose of providing the service for which the Customer has engaged Aranda Software Corp.    Aranda Software Corp complies with the U.S. – E.U. and U.S. – Swiss Safe Harbor Framework as set forth by the U.S. Department of Commerce regarding the collection, use and retention of personal data from European Union member countries and Switzerland.  Aranda Software Corp has certified that it adheres to the Safe Harbor Privacy Principles of notice, choice, onward transfer, security, data integrity, access, and enforcement. To learn more about the Safe Harbor program.    Customer Considerations  Account Information. As a Customer of Aranda Software Corp, we only collect private information that you voluntarily provide us. In cases where necessary, Aranda Software Corp collects certain information that is necessary to fully service your Aranda Software Corp account. As a Customer, you may be asked to provide information that is needed in order to create your Aranda Software Corp account and fulfill our service commitment to you such as your name, address, phone number, and e-mails address. If you choose to register with us for a promotional event we will also collect your credit card information. We treat any personal information that you provide to us as highly confidential. Aranda Software Corp may use this personal information for editorial and feedback purposes, marketing and promotional purposes, for statistical analysis and for product development. Your personal information, however, will never be sold to any company nor will it be shared with third parties, unless specifically stated otherwise in this policy or as required by law.    Use of Account Information. In addition to other specific instances described herein, Aranda Software Corp may use information collected for the purposes that include the following:    In instances where Aranda Software Corp and a partner jointly promote the Aranda Software Corp service, Aranda Software Corp may provide that partner certain information, such as name and e-mail address, for the sole purpose of allowing Aranda Software Corp and the partner to evaluate the promotion.  Aranda Software Corp may use your information to disclose summary information to strategic and business partners: the summary information is obtained by combining data from many individuals with the name and other identifiers removed.  Aranda Software Corp also may create aggregate reports on user demographics and traffic patterns. This information may be used to negotiate with service providers who complement the Aranda Software Corp service or assist us in our efforts to expand our customer base.  Aranda Software Corp uses the information in order to provide services and may perform auditing, research, and analysis in order to maintain, protect, and improve our services, ensure the technical functioning of our network, protect the rights or property of Aranda Software Corp or our users, and develop new products or services.  Other than as provided above, Aranda Software Corp will not divulge any of your personal information—contact, or geographic location—to any other organization unless: (1) you give Aranda Software Corp explicit, and specific, prior permission; (2) we provide such information to our subsidiaries, affiliated companies or other trusted businesses or persons for the purpose of processing personal information on our behalf such as an employment partner to process job applications, a credit card processing company to bill you for events, and an email service provider to send out emails on our behalf. (these parties agree to process such information based on our instructions and in compliance with this Privacy Policy and any other appropriate confidentiality and security measures); (3) we have a good faith belief that access, use, preservation or disclosure of such information is reasonably necessary to (a) satisfy any applicable law, regulation, legal process or enforceable governmental request, (b) enforce applicable agreements, including investigation of potential violations thereof, (c) detect, prevent, or otherwise address fraud, security or technical issues, or (d) protect against harm to the rights, property or safety of Aranda Software Corp, its users or the public as required or permitted by law;  (4) you make an inquiry, request or complaint that requires follow-up and we share your information with others to satisfy your inquiry; and/or if Aranda Software Corp is involved in a merger, acquisition, or sale of all or a portion of its assets,  you will be notified via email and/or a prominent notice on our Web site of any change in ownership or uses of your personal information, as well as any choices you may have regarding your personal information.    Tracking and Location Information. Aranda Software Corp may collect and/or track certain information that is derived from your usage of the Aranda Software Corp Console such as usage patterns, travel patterns, and Web site page views, and traffic patterns. Aranda Software Corp may use this tracking and location information for statistical purposes to improve our products and services and to manage our networks and systems more efficiently. When you access the Aranda Software Corp Console, our servers automatically record information that your device sends and these server logs may include: the MAC (Media Access Controller) address from the network card in or used with your device; your web request, Internet Protocol address, browser type, browser language, the date and time of your request; and other information regarding Internet connection activity (such as packets sent and received). This information enables Aranda Software Corp to accurately perform our billing functions, monitor and maintain our network, address issues that may arise concerning claims of abuse or inappropriate activity. Some of the information Aranda Software Corp collects allows us to differentiate users on our network, and in some cases, we act as a pass-through for certain pieces of personal information in order to obtain authentication to allow for Internet access. Some of the information Aranda Software Corp collects allows us to perform our support obligations.    Individual Considerations  Monitoring Information. The levels of communication and monitoring functionality between your mobile device or smartphone and the Aranda Software Corp Console is selected by our Customer who is typically your employer or the company for whom you work as an independent contractor or consultant.', NULL, NULL

--Plantilla de email de recuperación de clave
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PasswordRecoveryEmail',  33, '<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title>Untitled Document</title><style type="text/css">body,td,th { font-family: Verdana, Geneva, sans-serif; font-size: 12px; } .container{ width:415px; margin:18px; } </style><div>   <img src="../../App_Themes/AMDMUX/Image/Email/email_header.png" />   <div class="container">   <p><hr><br /></p>		<p><strong>Message in English</strong><br /></p>		<p><hr></p>      Dear {{USER_FULLNAME}}:<br /><br />Thank you for communicating with us. &nbsp;<br /><br />Below you will find a password change link. This link is valid FOR ONLY ONE TIME and will expire 24 HOURS after it has been generated.<br /><br />If the link expires or is invalidated and you need another one, go back to the login page and click on the "recover my password" link to request a new one.<br />      <strong>         <br />To set your password:<br />1.<span class="Apple-tab-span" style="white-space:pre;"> </span><a href="{{RECOVERY_URL}}" title="{{RECOVERY_URL}}">Click here</a><br />2.<span class="Apple-tab-span" style="white-space:pre;"> </span>Write and confirm a new password.<br />3.<span class="Apple-tab-span" style="white-space:pre;"> </span>Click on "Change" to set the password.<br /><br />Still having problems? Contact the system administrator. &nbsp;<br />         <p><br /></p>      </strong>   </div>   <div><strong><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png" /></strong></div></div><br/><div>   <img src="../../App_Themes/AMDMUX/Image/Email/email_header.png" />   <div class="container">   <p><hr><br /></p>		<p><strong>Mensaje en español</strong><br /></p>		<p><hr></p>      Estimado/a {{USER_FULLNAME}}:<br /><br />Gracias por comunicarte con nosotros.&nbsp;<br /><br />A continuaci&oacute;n encontrar&aacute;s un enlace de cambio de clave . Este enlace es v&aacute;lido POR UNA SOLA VEZ y CADUCAR&Aacute; AL CABO DE 24 HORAS de haberse generado.<br /><br />Si el enlace vence o queda invalidado y necesitas otro, regresa a la p&aacute;gina de inicio de sesi&oacute;n y haz clic en el v&iacute;nculo "recuperar mi contrase&ntilde;a"para solicitar uno nuevo.<br />      <strong>         <br />Para establecer tu contrase&ntilde;a:<br />1.<span class="Apple-tab-span" style="white-space:pre;"> </span><a href="{{RECOVERY_URL}}" title="{{RECOVERY_URL}}">Haz clic aqu&iacute;</a><br />2.<span class="Apple-tab-span" style="white-space:pre;"> </span>Escribe y confirma una contrase&ntilde;a nueva.<br />3.<span class="Apple-tab-span" style="white-space:pre;"> </span>Haz clic en "Cambiar" para establecer la contrase&ntilde;a.<br /><br />&iquest;A&uacute;n tienes problemas? Contacta al administrador del sistema.&nbsp;<br />         <p><br /></p>      </strong>   </div>   <div><strong><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png" /></strong></div></div>', NULL, NULL

--Plantilla de email de bienvenida a los usuarios del sistema
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WelcomeEmail',  33, '<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title>Untitled Document</title><style type="text/css">body,td,th { font-family: Verdana, Geneva, sans-serif; font-size: 12px; } .container{ width:415px; margin:18px; } </style><div>   <img src="../../App_Themes/AMDMUX/Image/Email/email_header.png" />   <div class="container">   <p><hr><br /></p>		<p><strong>Message in English</strong><br /></p>		<p><hr></p>      <p>Dear {{USER_FULLNAME}}:<br /><br />We have created an account for you in our Mobile Device Management site. The credentials to access are the following:</p>      <p style="margin-left:30px;">Username: {{USER_NAME}}</p>      <p style="margin-left:30px;">Password: {{USER_PASSWORD}}</p>      <p>These credentials should be used when you want to enroll your mobile device to the system.</p>      <p>For more information contact the administrator.&nbsp;</p>      <p></p>   </div>   <div><strong><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png" /></strong></div></div><br/><div>   <img src="../../App_Themes/AMDMUX/Image/Email/email_header.png" />   <div class="container">   <p><hr><br /></p>		<p><strong>Mensaje en español</strong><br /></p>		<p><hr></p>      <p>Estimado/a {{USER_FULLNAME}}:<br /><br />Hemos creado una cuenta para ti en nuestro sitio de Mobile Device Management. Las credenciales para acceder son las siguientes:</p>      <p style="margin-left:30px;">Nombre de usuario: {{USER_NAME}}</p>      <p style="margin-left:30px;">Contrase&ntilde;a: {{USER_PASSWORD}}</p>      <p>Estas credenciales deber&aacute;n ser usadas cuando desees vincular tu dispositivo m&oacute;vil al sistema.</p>      <p>Para m&aacute;s informaci&oacute;n contacta al administrador.&nbsp;</p>      <p></p>   </div>   <div><strong><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png" /></strong></div></div>', NULL, NULL

-- La pantilla de email de vinculación se pasa a los parámetros obligatrorios (33009-AMDM-Required-AppSettings-Fixed.sql) por el cambio en el enrollment
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnrollSettings_EnrollEmailSubject',  33, 'Solicitud de ingreso a Aranda MDM', NULL, NULL

--Plantilla para email de aplicación
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ApplicationEmailTemplate',  33, '<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title>Untitled Document</title><style type="text/css">body,td,th { font-family: Verdana, Geneva, sans-serif; font-size: 12px; } .container{ width:415px; margin:18px; } </style><div>   <img src="../../App_Themes/AMDMUX/Image/Email/email_header.png" />   <div class="container">   <p><hr><br /></p>		<p><strong>Message in English</strong><br /></p>		<p><hr></p>      <p></p>	  <p>News about the application {{APP_NAME}}, with ID = {{APP_ID}}:</p>            <p>{{CONTENT}}</p>   </div>   <div><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png" /></div></div><br/><div>   <img src="../../App_Themes/AMDMUX/Image/Email/email_header.png" />   <div class="container">   <p><hr><br /></p>		<p><strong>Mensaje en español</strong><br /></p>		<p><hr></p>      <p></p>      <p>Noticias sobre la aplicaci&oacute;n {{APP_NAME}}, con ID={{APP_ID}}:</p>      <p>{{CONTENT}}</p>   </div>   <div><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png" /></div></div>', NULL, NULL

--Plantilla de email de envío de correo con código de seguridad
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SecurityValidationCodeEmailTemplate',  33, '<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title>Untitled Document</title><style type="text/css">body,td,th { font-family: Verdana, Geneva, sans-serif; font-size: 12px; } .container{ width:415px; margin:18px; } </style><div>   <img src="../../App_Themes/AMDMUX/Image/Email/email_header.png" />   <div class="container">   <p><hr><br /></p>		<p><strong>Message in English</strong><br /></p>		<p><hr></p>      <p>Dear {{USER_FULLNAME}}:<br /><br />Here is the code for confirm the action {{APP_ACTION_EN}} in the web console.<br /><br />The code is: {{APP_CODE}}<br /><br />This code is valid for 5 minutes form the request, don''t show this code to other people.<br /><br />This message was generated automatically. Don''t replay to this message</p>      <p></p>   </div>   <div><strong><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png" /></strong></div></div><br/><div>   <img src="../../App_Themes/AMDMUX/Image/Email/email_header.png" />   <div class="container">   <p><hr><br /></p>		<p><strong>Mensaje en español</strong><br /></p>		<p><hr></p>      <p>Estimado/a {{USER_FULLNAME}}:<br /><br />Este es el código para confirmar la acción: {{APP_ACTION_ES}} en la consola web.<br /><br />El código es: {{APP_CODE}}<br /><br />Este código tiene vigencia de 5 minutos desde su solicitud. no comparta este código con otras personas<br /><br />Este mensaje se generó automáticamente. No responda a este correo.</p>      <p></p>   </div>   <div><strong><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png" /></strong></div></div>', NULL, NULL

--Valores para Android for Work
EXEC [dbo].[METADATA_AFW_SETTINGS] 'enterpriseAndroidForWorkId',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'enterpriseAndroidForWorkESA',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'enterpriseAndroidForWorkGuid',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'enterpriseAndroidForWorkEmail',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'enterpriseAndroidForWorkUrlRegister',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'enterpriseAndroidForWorkEnterpriseName',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ESACreatorWebSiteUrl',  33, 'https://arandapush1.arandasoft.com/ESACreator', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'enterpriseAndroidForWorkAditionalQRData',  33, '{"android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME":"com.arandasoft.amdm.android/.admin.ArandaDeviceAdminReceiver","android.app.extra.PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM":"M2j2kAg_khNPynexUJqK2szTZ29a7NPeLjpw4gjQ_Es=","android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION":"[[PARAM_DOWNLOAD_URL]]","android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE":{"urlServerExtraBundle":""},"packageName":"[[PARAM_PACKAGE_NAME]]","packageChecksum":"e0I-bHY2GWvCpF5z6EyOU2Qd4UM="}', NULL, NULL

--Valor para la minima distancia para incluir nueva localización
EXEC [dbo].[METADATA_AFW_SETTINGS] 'maximumDistanceRadius',  33, '50.0', NULL, NULL

--Valores para configuración de seguimiento al móvil
EXEC [dbo].[METADATA_AFW_SETTINGS] 'accuracyHigh',  33, '300', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'accuracyMedium',  33, '1200', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'accuracyLow',  33, '3600', NULL, NULL

--Credenciales ante el servidor de Push
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PushClientId',  33, 'Aranda_AMDM', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PushClientKey',  33, 'AKxRaWD6XKWXP4NE2dxUxk1j5PBPVl8+so3S4rrJI1s=', NULL, NULL

--RemoteControl
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ChallengeRequiredRC',  33, 'true', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ProtocolVersionRC',  33, '1.0', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TimeoutSecondsRCSession',  33, '60', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'RequestConfirmationRC',  33, 'true', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'RequestKeyRC',  33, 'true', NULL, NULL

--Maximo numero de dias de permanencia de registoros para tablas de alto nivel transaccional
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DatabaseRecordsKeepingDays',  33, '60', NULL, NULL

--Tipo de Identificador Unico para Dispositivos UDID
EXEC [dbo].[METADATA_AFW_SETTINGS] 'UseLongDeviceIdentification',  33, 'false', NULL, NULL

--Tiempo de espera para ejecutar alertas por lista negra de aplicaciones (en minutos)
EXEC [dbo].[METADATA_AFW_SETTINGS] 'BlackListTimeout',  33, '10', NULL, NULL

--Políticas por defecto
DECLARE @idOut	INT
DECLARE @now	DATETIME = GETUTCDATE()

EXEC [dbo].[MD_AMDM_POLICY] 'DefaultiOSPolicy', 1, 1, @now, @now, 4, 1, @now, 2, 1, 0, @idOut OUTPUT
EXEC [dbo].[MD_AMDM_POLICYVERSION] 'DefaultiOSPolicy', 1, 1, @now, @now, 4, 1, @now, 1, @idOut
EXEC [dbo].[METADATA_AFW_SETTINGS] 'iOSPolicy',  33, @idOut, NULL, NULL
SET @idOut = NULL

EXEC [dbo].[MD_AMDM_POLICY] 'DefaultAndroidPolicy', 1, 1, @now, @now, 1, 1, @now, 2, 1, 0, @idOut OUTPUT
EXEC [dbo].[MD_AMDM_POLICYVERSION] 'DefaultAndroidPolicy', 1, 1, @now, @now, 1, 1, @now, 1, @idOut
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AndroidPolicy',  33, @idOut, NULL, NULL
SET @idOut = NULL

EXEC [dbo].[MD_AMDM_POLICY] 'DefaultWindowsPolicy', 1, 1, @now, @now, 3, 1, @now, 2, 1, 0, @idOut OUTPUT
EXEC [dbo].[MD_AMDM_POLICYVERSION] 'DefaultWindowsPolicy', 1, 1, @now, @now, 3, 1, @now, 1, @idOut
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WindowsPolicy',  33, @idOut, NULL, NULL
SET @idOut = NULL

--Perfil de agente por defecto
EXEC [dbo].[MD_AMDM_DEVICEAGENTPROFILE] 'DefaultProfile', @now, NULL, 0, @idOut OUTPUT
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DefaultProfile',  33, @idOut, NULL, NULL
EXEC [dbo].[MD_AMDM_DEVAGENTPROFILEDET] 'pollingConfiguration', @idOut, '[{"name":"firstInterval","value":"5,5,m"},{"name":"secondInterval","value":"5,30,m"},{"name":"thirdInterval","value":"24,h"}]'
EXEC [dbo].[MD_AMDM_DEVAGENTPROFILEDET] 'pollingDataRequested', @idOut, NULL
SET @idOut = NULL

--Alertas
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AlertRemainingDays',  33, '30', NULL, NULL

--Porcentaje (1 -100) de corte para generar alertas por dispositivos
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AlertDevicePercentLimit',  33, '90', NULL, NULL

--Días de diferencia para generar la alerta por ausencia de dispositivo
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AlertRemainingDaysDeviceAbsent',  33, '8', NULL, NULL

--Días de diferencia para generar el ping de revisión de desconexión de dispositivo
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ReviewRemainingDaysPingDevice',  33, '2', NULL, NULL

--Días de diferencia para realizar la limpieza de registros de ubicación del dispositivo.
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CleanRemainingDaysLocationDevice',  33, '15', NULL, NULL

--Días de diferencia para realizar la limpieza de registros de ubicación del dispositivo.
EXEC [dbo].[METADATA_AFW_SETTINGS] 'LastKPIFullUpdate',  33, '2013-12-01', NULL, NULL

--Ping
--Lista de comandos que se crean una vez se haya hecho ping a dispositivo 
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PingCommands',  33, '[]', NULL, NULL
--Periodo total de tiempo (minutos) en que se hace ping a todos los dispositivos
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PingPeriod',  33, '1440', NULL, NULL
--Número de intervalos en los que se dividirá el periodo para realizar el ping
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PingIntervals',  33, '48', NULL, NULL
-- Calculos necesarios para establecer fecha actual en ticks para inicio del primer intervalo de ping
DECLARE @days			BIGINT = DATEDIFF( DAY, '00010101', CAST(@now AS DATE ) );
DECLARE @seconds		BIGINT = DATEDIFF( SECOND, '00:00', CAST(@now AS TIME( 7 ) ) );
DECLARE @nanoSeconds	BIGINT = DATEPART( NANOSECOND, @now );
DECLARE @dateNowTicks	BIGINT =  @days * 864000000000 + @seconds * 10000000 + @nanoseconds / 100;
--Fecha inicial en que un periodo definido empieza a transcurrir
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PingStartDate',  33, @dateNowTicks, NULL, NULL

--Activación de envío automático de comando wipe,  como acción de regla
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AutomaticWipe',  33, 'false', NULL, NULL

--Tiempo de espera para envío de parámetros de configuración en vinculación iOs por web en milisegundos
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DelayTimeIOsEnrollmentWeb',  33, '2', NULL, NULL

--Push para aplicaciones iOs en producción
EXEC [dbo].[METADATA_AFW_SETTINGS] 'IOsPushProduction',  33, 'true', NULL, NULL

--Cruncher
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CruncherType', 33, 'Local', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CruncherFolder',  33, 'C:\MDMCruncher', NULL, NULL

--BundleIds ArandaApps
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ArandaDialerBundleId',  33, 'com.arandasoft.dialer', NULL, NULL

--Apple Business Manager
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppleBusinessManagerPublicKey',  33, 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQyRENDQXNBQ0NRREt0NjNNMXFwb0F6QU5CZ2txaGtpRzl3MEJBUXNGQURDQnJURUxNQWtHQTFVRUJoTUMKWTI4eEZUQVRCZ05WQkFnTURHTjFibVJwYm1GdFlYSmpZVEVQTUEwR0ExVUVCd3dHWW05bmIzUmhNUmd3RmdZRApWUVFLREE5QmNtRnVaR0VnYzI5bWRIZGhjbVV4RFRBTEJnTlZCQXNNQkVGRlRVMHhJREFlQmdOVkJBTU1GMmgwCmRIQnpPaTh2WVhKaGJtUmhjMjltZEM1amIyMHZNU3N3S1FZSktvWklodmNOQVFrQkZoeGhjSEJzWlM1dFlXNWgKWjJWeVFHRnlZVzVrWVhOdlpuUXVZMjl0TUI0WERUSXdNRE14TWpFMk1qRXdObG9YRFRJeE1ETXhNakUyTWpFdwpObG93Z2EweEN6QUpCZ05WQkFZVEFtTnZNUlV3RXdZRFZRUUlEQXhqZFc1a2FXNWhiV0Z5WTJFeER6QU5CZ05WCkJBY01CbUp2WjI5MFlURVlNQllHQTFVRUNnd1BRWEpoYm1SaElITnZablIzWVhKbE1RMHdDd1lEVlFRTERBUkIKUlUxTk1TQXdIZ1lEVlFRRERCZG9kSFJ3Y3pvdkwyRnlZVzVrWVhOdlpuUXVZMjl0THpFck1Da0dDU3FHU0liMwpEUUVKQVJZY1lYQndiR1V1YldGdVlXZGxja0JoY21GdVpHRnpiMlowTG1OdmJUQ0NBU0l3RFFZSktvWklodmNOCkFRRUJCUUFEZ2dFUEFEQ0NBUW9DZ2dFQkFLNEtyY2pvOFA1Q1NyNzFydXVZVDRibktuWURCVzVHcjJqK1NDSWIKeXNXVU5FL1pURHpoY214cS8rY1kwekl3L0dIck4vc3BtZkFLVjJYY0hTclU1aERoWXdRTVBJeEZ4OGtrcGpEYwpINkNDY1ludnVjcUpNL1VQb005ejRkZm40VFpibnE3MEZDcW0yQnZIdDNQbUtCa3lDb00ySGJIWXI4RTlEUUZMCjFXZFcwNWFtZ1E3bi9tczI5cU1LVHdsdDVZNXpoMzdWdW1XNXg1cEdVOVNBVVNJcTdTUjNucjFNRWlEaElKM0YKWDhINGUySjNwVGRQK0JGMW1qYUlYN2thVWdtZEhOZ21rL0lnbjVoZTE3UXpBZFFXSXEzREpwS050ekpHanNGbgpwK04wY3BHYk93OFptaDBzTjF5VC9hQ1hVMUZRQW9UY1VaN3NvejF4czhrd0dPMENBd0VBQVRBTkJna3Foa2lHCjl3MEJBUXNGQUFPQ0FRRUFwTEMrVGYyVHJLVjNGYU02UUZIQ2F4QkdnS0RtcmdLbmlKL0pneEQrdVd4YWNPeFUKbEVxR3FOSjZqbU9Sb3hSWEdRNG4yd1ZlZXFpWFlRbWZDRkdXZU4xc3A1bTIyZXdJU0RxcWt1NEhzT1kzZXFzYQpibXF0b09yS0NSR2ZRMVNPNW9EUEpCOEpjMlQyakdGTCtBdFBQYkIxTTlmODFhZjc1ZEVlY1ZyeitXTWZ4L1VLCmlBRFRDaVlGM25HczJWclBYWFR5WFp2UjVqbUs0MXdHZXpkS01LTnhkbWI1R3hNdDFBYy8vSW9ZVmNnRlNCMmUKUFFIUnVpaS8xdEFNWVQvVHlwZUZiaFJxNUh1SFhJMFZUeDhVUkFVa2JubDgrZzZBZEo1TGJYdkVhTWhaNnpEWQo1ZUpSY0tkNjFlRlpFanZsNWJ6THVRNE9IMmRsZlhrYk5kN0svQT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppleBusinessManagerPrivateKey',  33, 'LS0tLS1CRUdJTiBFTkNSWVBURUQgUFJJVkFURSBLRVktLS0tLQpNSUlGSHpCSkJna3Foa2lHOXcwQkJRMHdQREFiQmdrcWhraUc5dzBCQlF3d0RnUUliVkhMZm1XNFc2Z0NBZ2dBCk1CMEdDV0NHU0FGbEF3UUJLZ1FROTFyMFBKam1abWl0V2loVzkvUXhKQVNDQk5DRmZrbXZJQTVjR2FsUGEwbk4KKyt1d1ZiMkRFTlliK2N3dmdnNEF1NWdmM1pqV1RDTkVhclJ0SGIxR2hJb0xjZWp5aFZjT1BxaStrV2c3eXc3SgpSZTdGNXhLNDk0eSttdnY4a1BFWHlQN0g5eGxCWHU0d0ZPVElJV3hjNWY1Q05KWXhvNGluU0d0QkJsVHdsWXQvCmR5NnovQlhWV1VPT3hQQnZCMnhzU0lnREFyMDZnbWhwWGpHTWhCeUxydHVUNG5nZTBCeFBhZTRMQWl2bFBKbVkKeVltajBZai90N2JyVVpiYUhoRndhL0VRMWdJTEhrUml4N25hWEF6OVlWTGloVW52dWZOL2tzRXhGaStUWHZqdQpVdE5ndTJQUjkwS1lpeFhpaWpvV1prWFIrOVMycHVQeHZ0Rjh5UUFBM29oUjlzeVRRT3AzMXk4VldJa0FjV25oCm1nSmc1dlpNU2pnRlEwc0dkMk0wSi9CUFRTaktEWWdkNzVmNU8rbVloTnF6eTFKS1ZwVlVoQ2VIMHRCVnJSUUcKOU1hOEhpc09abVdRZXhPcmRWNGRNT3BLSnVxaGhQOUFQS1AwZUprSThlRnVYZEFJUFd6cEkva0o1aXh0Sk51SwpTTklrcVBqSlp4cHVSZHdCU0o3SGszSnJ6MlVHYS84c1RJRjN2VlI3L3VURnp3RGRUL2Y2NlAyOC93UzdTbEQ0CnB1UysyTmorSmdONjZLelBQY092NGRSWGdmSUE4N0ZGV3VjYWN6b1FhWUJ3aS9wdEhMZGNIbDA5cWpkRWpwQ3EKUjNSdk1QOVlyb0RlaGMrLzd5Rk1PNWFhK3IwT1NhYVlJOFNHS1FyWmdEeTJWd1cvYXdlVHJkMk43VUVHdmlSUwovcUhidlNhTkJJaGlxVWxtV21tUzdtSXczUFE1OVpxWmNlbmRCektDYmdvZGptK1o0MVoxSHdNQnJrWksxdTVjCkRxZTVHMjZvQzdKRzhSWjdJRkZmOUZhMC9IQ295SVJHeEttU1ZpOVBDckc2Wnp1eFFMM3VuZXk0M2dPK0pwUzUKZUdjVTRnMEIrTWRDckYyL2FsVmpOQnVRaXQ2bndjb3ZRWEN4QXlnL29hTFduM0ZEblFld0VHRU1xSDdqVjk3VgpHaXYrR0gzSDZRUnlSNnRxZDRzZkxlMkF3ckJXK2lycE5HNGR1d0hNclBBNUJSK1VSQUw2MlBLVmdDeHl5blJuCmtzM1M3YVZ4Z3U3enREaERvNlIybHB2bzh1N3FwN0VManBCVUFuQ0s4SXgwbDROa3pOVzRBT2lSbm4vN0lwMSsKenljSGV2SDRsdjdCVEVMTWpRLzlqMmZ0Ly9idnhJaFl3U0NucDRsMm5xdVFyL2N1N1FCaXBESEpKQnFRRmNwSApFZGRwanNZdXhFSmZBMVlWRzNXSHM4T3liNXRLbTg0UXp6blRJSmkzSXN2Z0haV2ZYOWl4L21UMWJBUGtvcUVICk1tRjdvRCtJZEE4UW1oVXREN3NrSWhjbTNOSHZpdzlXWStrTXBsMmoxUVJUd0UzNlNTbTNmSTk2SWVoQVVWMzIKMXdLak9UZjRIeER1YzNOZWxEUnB3ZlNsbmkyeGlScytwVjZOV3VyZytScTFaUWtEOXozbEZsVDhwN3Y5amloNgovdU9vWkptTUI0R29GNjNoVHdGQTdmc1Fsc1dBVkx5VGdUbXFERTV2SzVhZlgwL3FjSXhhd1pmbUJuYzAxdTFpClUwMmZLdXZNUmZFeEtWL2NoVno2N2lVNVJhZ01hSERxUVNwVWFrak96Z05TS1hDL21OcXg1UDZCcnVTdm5ZTzQKRkJaRlp5TFJvNUE3K3VwUzBGdnJtWVFkeThrT0xKR2VLSEltZlp3R0dDWlNES1NSMk8rS09taTNGVFZYOU1HQwplaHFtUjFKRXRZc2lNTlNyZnR5TTEvQVJSVHBIOXlCL0tIV1d4MVNIUXVpTGxlc0I3Q0hvckZQVy9HYno4MHNNCjRoUnZTVXRWcTdRa29wQVdhSzNHT1V5VjcyRUJJbC90aWRpbWJsVm91WDRaanVLTDIzQlZwbHBVQ2ZMS0RWK04KTnVVNXhKZm5wdWRzOEg2MithMzdoS0QwK1VUZEErOEFnaTI3SW95aXpXSU9EVUFGK3ZCY0M2UnM1a1l4ZmlRcgpHb21TWVREYk9NaFU5d25PbW8rdXFMd2t5UT09Ci0tLS0tRU5EIEVOQ1JZUFRFRCBQUklWQVRFIEtFWS0tLS0tCg==', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppleBusinessManagerPrivateKeyPassword',  33, 'S0w06idxkDaYAskBg4ZORghvO2645aLS6jw+YQqRUUk=', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppleBusinessManagerUrl',  33, 'https://mdmenrollment.apple.com/', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppleBusinessManagerSessionToken', 33, '', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppleBusinessManagerUploadDate', 33, '', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppleBusinessManagerExpiryDate', 33, '', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppleBusinessManagerAuthHeader', 33, '', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppleBusinessManagerProfileData', 33, '', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppleBusinessManagerDeviceLimit', 33, '100', NULL, NULL

--Identificador de grupo administradores
DECLARE @adminGroupId INT;
SELECT @adminGroupId = AFW_GROUPS.grou_id FROM AFW_GROUPS WHERE AFW_GROUPS.grou_name = 'Administrators' AND AFW_GROUPS.grou_is_active = 1 AND AFW_GROUPS.grou_definition_ldap IS NULL;
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AdministratorsGroupId',  33, @adminGroupId, NULL, NULL

--Conjunto de reglas por defecto
EXEC [dbo].[MD_AMDM_RULESET] 'DefaultRuleSet', 1, 1, 0, 0, 0, 0, 0, 1, @now, @now, 0, @idOut OUTPUT
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DefaultRuleSetId',  33, @idOut, NULL, NULL
SET @idOut = NULL

-- Días de vigencia de la información en el cache de apps
EXEC [dbo].[METADATA_AFW_SETTINGS] 'NextUpdateApplication',  33, '7', NULL, NULL

-- Valores generales relacionados con el enrollment y los comandos
EXEC [dbo].[METADATA_AFW_SETTINGS] 'IsPasswordGenerated',  33, 'true', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnrollmentExpiryMinutes',  33, '10080', NULL, NULL

EXEC [dbo].[METADATA_AFW_SETTINGS] 'CommandFetchExpiryMinutes',  33, '14400', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CommandAnswerExpiryMinutes',  33, '1440', NULL, NULL

EXEC [dbo].[METADATA_AFW_SETTINGS] 'WebClipPath',  33, 'resources\\WebClipsImages\\', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'UrlToOpenAppIOS',  33, 'amdm://server=param_server&amp;pass=param_pass&amp;user=param_user&amp;domain=param_domain', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'UrlToOpenAppAndroid',  33, 'http://mdm.arandasoft.com/?server=param_server&amp;user=param_user&amp;passcode=param_pass&amp;domain=param_domain', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DefaultProvider',  33, 'ARANDA', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'maxAuthenticationAttemps',  33, '3', NULL, NULL

-- Activar para guardar los XMLs generados por el MDM de Apple
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ModeDebug',  33, 'false', NULL, NULL

-- Ruta de las plantillas y valores de reemplazo para el MDM de Apple
EXEC [dbo].[METADATA_AFW_SETTINGS] 'mobileConfigTemplateFileSCEP',  33, 'resources\\SCEP.mobileconfig.txt', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'mobileConfigTemplateFileCERT',  33, 'resources\\CERT.mobileconfig.txt', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'iOSCommandTemplateFile',  33, 'resources\\iOSCommandTemplate.txt', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'iOSManifiestTemplateFile',  33, 'resources\\ArandaMDM.Manifiest.txt', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ManifiesIOSApp_NativeICONMDM57',  33, '/Resources/IOSIconsAPP/NativeMDM57x57.png', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ManifiesIOSApp_NativeICONMDM114',  33, '/Resources/IOSIconsAPP/NativeMDM114x114.png', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ManifiesIOSApp_BundleIDProd',  33, 'com.arandasoft.mdm.amdm', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ManifiesIOSApp_BundleIDDev',  33, 'com.arandasoft.mdm-agent', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'iOSConfProfileTemplateFile',  33, 'resources\\iOSConfProfileTemplate.txt', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'iOSMDMPayloadIdentifier',  33, 'com.arandasoft.AMDM', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'iOSPolicyPayloadIdentifier',  33, 'com.arandasoft.AMDM.config', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'iOSSCEPPayloadIdentifier',  33, 'com.arandasoft.SCEP.scep1', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'iOSServerPayloadIdentifier',  33, 'com.arandasoft.server', NULL, NULL


-- Certificado para firmar perfiles para el MDM de Apple
EXEC [dbo].[METADATA_AFW_SETTINGS] 'mdmSigningCert64',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'mdmSigningCertPwd',  33, 'MA7wL419FXzqIoIDNbmBnomNB9us3eYzKXiMsiuCQc4=', NULL, NULL

EXEC [dbo].[METADATA_AFW_SETTINGS] 'amdmappPushCertDev',  33, 'resources\\AppCertificates\\amdmappPushCertDev.p12', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'amdmappPushCertProd',  33, 'resources\\AppCertificates\\amdmappPushCert.p12', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'amdmappPushCertDevAppStore',  33, 'resources\\AppCertificates\\amdmappPushCertDevAppStore.p12', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'amdmappPushCertAppStore',  33, 'resources\\AppCertificates\\amdmappPushCertAppStore.p12', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'pfxfile',  33, 'resources\\com.apple.mgmt.External.8be7fb6b-321e-4c77-ac24-2055c8519fe4.pfx', NULL, NULL

-- Carpeta para los archivos de log del MDM de Apple
EXEC [dbo].[METADATA_AFW_SETTINGS] 'iOSOutputFolder',  33, 'resources\\Generated', NULL, NULL

-- Valores para el MDM nativo de Windows
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WindowsPFN',  33, '1kFJJwn5B/9erqrOzOKkiQZrybWqS0Afi2bK9lIlIQvDxh/yNu9nLQefpr/1Y8RnsHsQQCipBnoEjUqTPMplfe8iVksduOTU8QV+MO0fAQ3+t8qRJ7iI1l0Bza2and+RkLfK0iJyaDJYaK4Pg3/MFr3jAEFd62WdVvm+ALGeaco=', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WindowsProviderId',  33, 'TestMDMServer', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WindowsAuthName',  33, 'test8', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WindowsAuthSecret',  33, 'jPeeQ0iBurgQsBgBU84bpA==', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WindowsAuthData',  33, 'eb06OAtVFZHx6ut9S+oo9r00kkpUh91LCUnMN1KZlQk=', NULL, NULL

-- Valores relacionados con el origen y la descarga de los binarios de los agentes 
EXEC [dbo].[METADATA_AFW_SETTINGS] 'useProductionEnvironment',  33, 'true', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'useAppStore',  33, 'true', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'useGooglePlay',  33, 'true', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppGooglePlay',  33, 'https://play.google.com/store/apps/details?id=com.arandasoft.amdm.android', NULL, NULL

-- Ruta local de los binarios de los agentes
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppFile_Android',  33, 'resources\\ArandaMDM.apk.txt', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppFile_Android_SAFE',  33, 'resources\\ArandaMDMSAFE.apk.txt', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppFile_iOS',  33, 'resources\\ArandaMDM.ipa.txt', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppFile_iOSDev',  33, 'resources\\ArandaMDMDev.ipa.txt', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AppFile_iOSProd',  33, 'resources\\ArandaMDM.ipa.txt', NULL, NULL

-- Valores del MDM de Android
EXEC [dbo].[METADATA_AFW_SETTINGS] 'GCMAppID',  33, '425428924662', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'APIAccess',  33, '6yIoQlWzrQjnFZh12O4/pt1nH4fGPW60ldo+BiKJohgtm+tFY7Ga1WFA++YnvkSI0gO7Pnaucj+uNN4YnG1nYGKzLTZBQE9PernkHDCYrGQ=', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'pckgName',  33, 'com.arandasoft.amdm.android', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'UseELMSigning',  33, 'true', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TokenELMProd',  33, 'AAuBe7A00isEtLMhv7h1JyuO5lpCm5ytoCAu1v+0loLOtsCW2Vu8MmO2l8D6X6me4haVtTS17JtI/z+8sso6I50n3klow34IyG0MFHLo2L+ocHmwJwG86NFy5thbT4jin2UzHeWGa/LJMKhjI8C3Ih+KNLsGHFMCJteqICCj125XHcdbJiBWh4FkF47fXeahf8GUWJI65zOQcBdHaGlG1vgLAumxxWA46cKf2lTR+XXbJCtIbowf9q9YADM1SQ2cfiAVocNQOIX3if5iTFHxPp2QCfiewg6lKVGn9spwzzwMK5RfQf2aESLZvx1IRKhMU43V531lFPRNoBJ2AwYi/DPNUtcDmxY85Kz2x3T+hd8=', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TokenELMDev',  33, 'rWNYVuymGFOAVapifqSyJlkTg16u/qGQ7RHESKHFFe2qlCOkYQdXlGRGTJR+m8db/98SvhjI1Q+wLRS+hT4MM8PV/zGK0tu6U32iSJWJfmyHUSK1hEs7TLj4i4a32Ri09egC82vNa62MYcDI5JMXVeNo2uub/rSqf+RsYdPZ+0HsHbe6/r1XWT7Qp48VqKNMk5Ej06GIN1ut7Sisq2iIr/CWgmucOZ47vqhTqprGmI37FTyrXAx+ksHWFpzj8K/+0EB1iOgsmqVTb4R3WUCC2FcRKYKTdnpONC3dVi5unE5PrcwLjnrI55dvu0oNKCKJtmIUuR/JTjxflA9/d3cKLqIA0LA5jG26+HywfYffTFU=', NULL, NULL
											   
-- Asunto del email de recuperación de clave
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PasswordRecoveryEmailSubject',  33, 'Recuperar contraseña', NULL, NULL

-- Asunto del email de bienvenida a los usuarios del sistema
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WelcomeEmailSubject',  33, 'Bienvenido a AMDM', NULL, NULL

--El Dashboard no ha recalculado
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DashboardCalculated',  33, 'false', NULL, NULL

--Servidor de push de Aranda
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PushServer',  0, 'https://arandapush1.arandasoft.com/push', NULL, NULL

--Plantilla de email de vinculación
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnrollSettings_EnrollEmailTemplate',  33, '<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><style type="text/css">body,td,th {font-family:Verdana,Geneva,sans-serif;font-size:12px;} .container{width:415px;margin:18px;}</style><div><img src="../../App_Themes/AMDMUX/Image/Email/email_header.png"/><div class="container"><p>Greetings.<br/></p><p>As part of the Company&#39;s corporate policy, we have sent you this message to request your enrollment to our mobile device management system. To enroll your device, perform the following steps:</p><strong></strong><hr><p><strong>If your device is Android</strong><br/></p><hr><p><strong>1) Install the agent: </strong>In the device to be enrolled, install the application "Aranda MDM Agent" from the PlayStore. If your device is a Samsung we recommend better to download "Aranda MDM For Samsung".</p><p></p><p><strong>2) Authenticate yourself in the App: </strong>Open the Aranda MDM Agent application and select the "Use QR" option, then focus your camera on the following QR code:</p><p><img alt="EnrollmentQR" height="300" src="../../App_Themes/AMDMUX/Image/Email/email_qrcodedummie.png" width="300"/></p><p>If you are reading this email from the mobile device to be enrolled, instead of the QR simply use this&nbsp;<a href="{{APPSHORTCUT_ANDROID}}" title="link">link</a>&nbsp;to open the application.</p><p><br/></p><hr><p><strong>If your device is iOS</strong></p><hr><p><strong>Go to the Safari browser on the device:</strong> Open the link {{CONSOLESERVER_LINK}}/Pages/AMDM/MobileEnrollment.aspx and follow the steps described.</p><p></p><p></p><br/><hr><p><strong>If your device is Windows</strong></p><hr><p><strong>1) Configure enterprise management</strong>:&nbsp;In the Windows configuration, enter "Accounts / enterprise management / Register for device management".&nbsp;In the first step use your email, in the second step enter the following path in the server field &nbsp;{{AUTHSERVER_LINK}}/ws/mobile/w10enrollmenthandler.ashx.&nbsp;In the third step, complete the form with your user credentials. When you select "continue" the system should show you that the device was enrolled successfully.</p><p><strong>2) Install the agent </strong>:&nbsp;You are already enrolled to the system, to take advantage of all the features of the MDM, we suggest that you install the Windows agent (ask the administrator for the installer). After installing run the app Aranda MDM Agent and select the option "Use QR", then focus with your camera the following QR code:</p><p><img alt="EnrollmentQR" height="300" src="../../App_Themes/AMDMUX/Image/Email/email_qrcodedummie.png" width="300"/></p><p>If you have problems authenticating with the above options open the application manually and fill in the required fields with the following information:<br/></p><p style="margin-left:30px;"><strong>Server:&nbsp;</strong>{{AUTHSERVER_LINK}} <br/></p><p style="left:30px;margin-left:30px;"><strong>Domain</strong>:&nbsp;{{USER_DOMAIN}}</p><p style="left:30px;margin-left:30px;"><strong>User:</strong>&nbsp;{{USER_NAME}}</p><p style="left:30px;margin-left:30px;"><strong>Password:</strong>&nbsp;Your user password in the System.&nbsp;</p><div></div><p><br/></p><p>Cordially,</p><p>MDM Administrator</p></div></div><br/>------------------------------------------------------------------------------------------<div><div class="container"><p>Saludos.<br/></p><p>Como parte de la pol&iacute;tica empresarial de la Compa&ntilde;&iacute;a le hemos enviado este mensaje para solicitar su vinculaci&oacute;n a nuestro sistema de gesti&oacute;n de dispositivos m&oacute;viles. Para vincular su dispositivo ejecute los siguientes pasos:</p><p><strong></strong></p><hr><p><strong>Si su dispositivo es Android</strong><br/></p><hr><p><strong>1) Instale el agente: </strong>En el dispositivo a vincular instale desde el PlayStore la applicaci&oacute;n "Aranda MDM Agent". Si su dispositivo es un Samsung recomendamos mejor descargar "Aranda MDM For Samsung".</p><p></p><p><strong>2) Autent&iacute;quese en la App: </strong>Abra la aplicaci&oacute;n Aranda MDM Agent y seleccione la opci&oacute;n "Usar QR", luego enfoque con su c&aacute;mara el siguiente c&oacute;digo QR:</p><p><img alt="EnrollmentQR" height="300" src="../../App_Themes/AMDMUX/Image/Email/email_qrcodedummie.png" width="300"/></p><p>Si Usted est&aacute; leyendo este correo desde el dispositivo m&oacute;vil a vincular, en lugar del QR simplemente use este&nbsp;<a href="{{APPSHORTCUT_ANDROID}}" title="enlace">enlace</a>&nbsp;para abrir la aplicaci&oacute;n.</p><p><br/></p><p></p><hr><p><strong>Si su dispositivo es iOS</strong></p><hr><p><strong>Dirijase al navegador safari del dispositivo:&nbsp;</strong>Abra el enlace {{CONSOLESERVER_LINK}}/Pages/AMDM/MobileEnrollment.aspx y siga los pasos descritos.</p><br/><hr><p><strong>Si su dispositivo es Windows</strong></p><hr><p><strong>1) Configure el acceso laboral</strong>:&nbsp;En la configuraci&oacute;n de Windows ingrese a "Cuentas/Acceso Laboral/Inscribirse a la administraci&oacute;n de dispositivos".&nbsp;En el primer paso use su correo electr&oacute;nico, en el segundo paso ingrese la siguiente ruta en el campo servidor&nbsp;{{AUTHSERVER_LINK}}/ws/mobile/w10enrollmenthandler.ashx.&nbsp;En el tercer paso complete el formulario con sus credenciales de usuario.&nbsp;Al dar continuar el sistema debe indicarle que el dispositivo se vincul&oacute; con &eacute;xito.</p><p><strong>2) Instale el agente</strong>:&nbsp;Usted ya est&aacute; vinculado al sistema, para aprovechar todas las funcionalidades del MDM sugerimos que instale el agente Windows (solicite instalador al administrador). Despu&eacute;s de instalar ejecute la app Aranda MDM Agent&nbsp;y seleccione la opci&oacute;n "Usar QR", luego enfoque con su c&aacute;mara el siguiente c&oacute;digo QR:</p><p><img alt="EnrollmentQR" height="300" src="../../App_Themes/AMDMUX/Image/Email/email_qrcodedummie.png" width="300"/></p><p>Si tiene problemas para autenticarse con las opciones anteriores abra la aplicaci&oacute;n manualmente y llene los campos de requeridos con la siguiente informaci&oacute;n:<br/></p><p style="margin-left:30px;"><strong>Servidor:&nbsp;</strong>{{AUTHSERVER_LINK}} <br/></p><p style="left:30px;margin-left:30px;"><strong>Dominio</strong>:&nbsp;{{USER_DOMAIN}}</p><p style="left:30px;margin-left:30px;"><strong>Usuario:</strong>&nbsp;{{USER_NAME}}</p><p style="left:30px;margin-left:30px;"><strong>Contrase&ntilde;a:</strong>&nbsp;Su clave de usuario en el Sistema. &nbsp;</p><div></div><p><br/></p><p>Cordialmente,</p><p>Administrador MDM</p></div><div><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png"/></div></div>', NULL, NULL

--Estado de la alerta de porcentaje limite de dispositivos licenciados
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AlertnessNumberDevices',  33, 'False', NULL, NULL

--Ruta Content manager
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ContentManagerConfiguration',  0, '{"DataType":0,"Properties":"{\"FILE_ROOT\":\"C:\\\\ContentManager\",\"FILE_TYPE\":\"LOCAL\"}"}', NULL, NULL

-- Valores para el intervalo de tiempo de recurrencia para la acción Enviar mensaje en rulesets
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TimePeriodsMobileNotificationAction',  33, '[{"name":"1 hour", "value": 60},{"name":"1/2 day", "value": 720},{"name":"1 day", "value": 1440}]', NULL, NULL

-- Certificado individual del móvil iOS: Por defecto usa un archivo precargado
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileIOS_MobileCertificateType',  33, 'ByCorporateCertificate', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileIOS_CertificateFile',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileIOS_CertificateName',  33, 'MDM_Profile_Certificate_For_IOS.pfx', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileIOS_CertificatePassword',  33, 'o5t0LTXlzl8SOT1tbv8lUN0Y7XmiENn48x8j7GViqVI=', NULL, NULL

--Servicio scrapper
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ScrapperService',  33, 'https://arandapush1.arandasoft.com/scrapper', NULL, NULL

--Identificadores de tareas en ejecución
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TasksInExecution',  33, '', NULL, NULL

--Cantidad de días para eliminar registros antiguos
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DeleteOldRegistersDays',  33, '90', NULL, NULL

--Rutas de imágenes para plantillas de correos
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ImagesPath',  33, '/App_Themes/AMDMUX/Image/', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ImagesPathInTemplates',  33, '../../App_Themes/AMDMUX/Image/', NULL, NULL

--Certificados iOS
EXEC [dbo].[METADATA_AFW_SETTINGS] 'encamdmappPushCertProd',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'encamdmappPushCertDevAppStore',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'encamdmappPushCertDev',  33, ' ', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'encamdmappPushCertAppStore',  33, ' ', NULL, NULL

--Versión de agente iOS con Política de VPN
EXEC [dbo].[METADATA_AFW_SETTINGS] 'IosAgentVersionWithVpnPolicyItem',  33, '9.16', NULL, NULL

--Generación de videos de sesiones de control remoto
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MakeVideoRemoteControlSession', 33, 'true', NULL, NULL

--Servicio de utilidades de AEMM
EXEC [dbo].[METADATA_AFW_SETTINGS] 'UtilsServer', 33, 'https://arandapush1.arandasoft.com/utils', NULL, NULL

--Volume Purchase Program
EXEC [dbo].[METADATA_AFW_SETTINGS] 'VolumePurchaseProgramUrl', 33, 'https://vpp.itunes.apple.com/mdm/', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'VolumePurchaseProgramAuthenticationToken', 33, '', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'VolumePurchaseProgramUploadDate', 33, '', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'VolumePurchaseProgramExpiryDate', 33, '', NULL, NULL

--Nivel de verbosidad de logs por aplicación
EXEC [dbo].[METADATA_AFW_SETTINGS] 'LogVerbosityLevel', 33, '{
  "verbosityLevel":
  [
    {
      "appName": "WebApps",
      "level": "OnlyErrors"
    },
    {
      "appName": "Cruncher",
      "level": "OnlyErrors"
    },
    {
      "appName": "Push",
      "level": "OnlyErrors"
    }
  ]
}', NULL, NULL

--Plantilla para email de configuración de correo electrónico
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TestConfigurationEmail', 33, '<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title>Untitled Document</title><style type="text/css">body,td,th { font-family: Verdana, Geneva, sans-serif; font-size: 12px; } .container{ width:415px; margin:18px; } </style><div>   <img src="../../App_Themes/AMDMUX/Image/Email/email_header.png" />   <div class="container">   <p><hr><br /></p> <p><strong>{{AMDM_testEmailSettingsTitle1}}</strong><br /></p>  <p><strong>{{AMDM_testEmailSettingsTitle2}}</strong><br /></p>  <p><hr></p>      <p>{{AMDM_testEmailSettingsBody}}</p>      <p></p>   </div>   <div><strong><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png" /></strong></div><br/></div>', NULL, NULL

--URL de documentación de ayuda para scripts de comandos
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ScriptCommandsUrlHelp', 33, 'https://docs.arandasoft.com/aemm/pages/preferencias/scripts.html', NULL, NULL

--Ocultar formulario de inicio de sesión de AEMM
EXEC [dbo].[METADATA_AFW_SETTINGS] 'HideLoginForm', 33, 'false', NULL, NULL

--Tamaño de lote para procesar cambio de estado masivo de alertas
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ChangeMassiveStatusAlertCount', 33, '100', NULL, NULL

--Tipo de descarga a usar en comando de instalación de aplicaciones
EXEC [dbo].[METADATA_AFW_SETTINGS] 'InstallAppDownloadMode', 33, 'ClassicMode', NULL, NULL

--Configuración de almacenamiento de AEMM
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AemmStorageConfigurationInfo', 33, 
'{
	"CruncherStorageConfiguration": 
	{
		"StorageType": 0,
		"ConfigurationInfo": 
		{
			"StorageProvider" : "0",
			"FileSystem": 0,
			"RootFolder": "C:\\MDMCruncher"
		}
	},
	"RemoteControlStorageConfiguration": 
	{
		"StorageType": 0,
		"ConfigurationInfo": 
		{
			"StorageProvider" : "0",
			"FileSystem": 0,
			"RootFolder": "resources\\Generated\\remoteControlSession"
		}
	},
	"WebAppsStorageConfiguration":
	{
		"StorageType": 0,
		"ConfigurationInfo": 
		{
			"StorageProvider" : "0",
			"FileSystem": 0,
			"RootFolder": "resources\\Generated"
		}
	}
}', NULL, NULL

-- Configuración de seguimiento
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AmountTrackingRecords', 33, '100', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'HighAccuracyName', 33, 'High', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'HighAccuracyDistance', 33, '50', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'HighAccuracyTime', 33, '300', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'HighAccuracyType', 33, '3', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MediumAccuracyName', 33, 'Medium', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MediumAccuracyDistance', 33, '500', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MediumAccuracyTime', 33, '1200', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MediumAccuracyType', 33, '2', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'LowAccuracyName', 33, 'Low', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'LowAccuracyDistance', 33, '3000', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'LowAccuracyTime', 33, '3000', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'LowAccuracyType', 33, '1', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'NoneAccuracyName', 33, 'None', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'NoneAccuracyDistance', 33, '100', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'NoneAccuracyTime', 33, '100', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'NoneAccuracyType', 33, '0', NULL, NULL

-- Configuración de métricas
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnableMetricCollection', 33, 'true', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MetricStartDate', 33, '08:00', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MetricFinishDate', 33, '17:00', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MetricReportFrecuencyTime', 33, '10', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SendMetricCommandOnEnroll', 33, 'true', NULL, NULL

-- Activación de llaves para lista negra y blanca de aplicaciones en iOS
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WhiteAndBlackListKeysIos', 33, 'old', NULL, NULL

--Días de diferencia para realizar la limpieza de registros de métricas de los dispositivos
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CleanRemainingDaysMetricsDevice', 33, '90', NULL, NULL

--Listado de comandos con estado de activación administrable
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ManageableStatusCommands', 33, '{"EnableMetricCollection":[53],"EnableHealthDeviceCollection":[54,55]}', NULL, NULL

-- Configuración de métricas
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnableHealthDeviceCollection', 33, 'true', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'HealthDeviceReportFrecuencyTime', 33, '10', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SendHealthDeviceCommandOnEnroll', 33, 'true', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ExternalStoragePercentageLimit', 33, '80', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'InternalStoragePercentageLimit', 33, '80', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DataSignalStrengthPercentageLimit', 33, '80', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WifiSignalStregthPercentageLimit', 33, '80', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'BatteryLevelPercentageLimit', 33, '15', NULL, NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'RamPercentageLimit', 33, '80', NULL, NULL

--Días de diferencia para realizar la limpieza de registros de salud de los dispositivos
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CleanRemainingDaysHealthDevice', 33, '90', NULL, NULL

--Configuración de almacenamiento remoto para Adons Móviles
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AdonsContainer', 33, '{"type":"1","connectionstring":"","containername":""}', NULL, NULL

--Configuración que indica a partir de que versión de agente se usa el seguimiento en la política
EXEC [dbo].[METADATA_AFW_SETTINGS] 'IosAgentVersionWithTrackingPolicyItem', 33, '9.24', NULL, NULL

--Configuración que indica la cantidad de mensajes permitidos para que se realice la notificación del seguimiento
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MessagesByMinuteTracking', 33, '100', 'Parámetro que contiene la cantidad de mensajes permitidos por minuto de seguimiento', NULL

--Configuración que indica a que corre se realiza la notificación de mensajes superados para el seguimiento
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EmailNotificationTracking', 33, 'operacionesaranda@arandasoft.com', 'Correo al cual se hará notificación de seguimiento', NULL

-- URL donde se encuentra la documentación de obtención de ID de factory reset
EXEC [dbo].[METADATA_AFW_SETTINGS] 'UrlDocumentationResetFactory', 33, 'https://docs.arandasoft.com/aemm/pages/administracion/email_factory_reset.html', 'Url que contiene la configuración de los Ids de las cuenta de gmail', NULL

--Configuración de Android Management Api
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AndroidManagementApiMSA', 33, '', 'Archivo MSA cargado por el cliente', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AndroidManagementApiName', 33, '', 'Nombre de la compañia que se crea a traves de Android Management API', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ActiveAndroidManagementApi', 33, 'true', 'Oculta o muestra la opción de Android Management API', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'UrlHelpAndroidManagementApi', 33, 'https://docs.arandasoft.com/aemm/index.html', 'Url de paso a paso para generar MSA', NULL

--Configuración table storage
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnabledTableStorage', 33, 'false', 'Bandera que habilita el almacenamiento de table storage', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TableStorageConfiguration', 33, '', 'Configuración para usar alamcenamiento de table storage', NULL

--Visor de tableros y/o reportes
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnabledNewDashboard', 33, 'false', 'Bandera para habilitar nuevo visor de tableros de AQM', NULL

EXEC [dbo].[METADATA_AFW_SETTINGS] 'AEMM_EnrollmentService', 33, 'https://aemm.arandasoft.com/enrollment/', 'Url del api que gestiona los procesos de vinculación masiva', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnableNewHeader', 33, 'true', 'Habilita nueva cabecera de react', NULL

PRINT N'Creacion de setting para definir version de CMDB por default'
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CMDBDefaultVersion', 33, '8', 'Versión por omisión del servicio CMDB', NULL

---Cantidad de mensajes que procesa el mobile push
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobilePushBufferLength', 33, '100', NULL, NULL

PRINT N'Inserción de metadato para el setting PrivacyPolicy'
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PrivacyPolicy', 33, '{"baseMessage": "https://arandasoft.com/politicas-aemm/","message":"https://arandasoft.com/politicas-aemm/","privacyPolicyEnabled":true,"isPersonalized": false}', NULL, NULL

GO

--Dashboard
PRINT 'AMDM - Required data - Dashboard and Report Folders'

DECLARE @folderId					INT
DECLARE @dashboardFolderId			INT
DECLARE @reportFolderId				INT
DECLARE @now						DATETIME = GETUTCDATE()

EXEC [dbo].[METADATA_FOLDER] NULL,	'AMDM_ContentManager_DocumentExportPDF', NULL, @now, @now, 1, 1, 'AMDM_ContentManager_DocumentExportPDF',	33, 0, 0

EXEC [dbo].[METADATA_FOLDER] @folderId OUTPUT, 'AMDM', NULL, @now, @now, 1, 1, 'AMDM', 33, 0, 1

EXEC [dbo].[METADATA_FOLDER] @dashboardFolderId OUTPUT, 'AMDM_Dashboards', @folderId, @now, @now, 1, 1, 'AMDM_Dashboards', 33, 0, 1

EXEC [dbo].[METADATA_FOLDER] NULL, 'AMDM_Dashboards_Devices', @dashboardFolderId, @now, @now, 1, 1, 'AMDM_Dashboards_Devices', 33, 1, 1
EXEC [dbo].[METADATA_FOLDER] NULL, 'AMDM_Dashboards_Expenses', @dashboardFolderId, @now, @now, 1, 1, 'AMDM_Dashboards_Expenses', 33, 2, 1
EXEC [dbo].[METADATA_FOLDER] NULL, 'AMDM_Dashboards_Metrics', @dashboardFolderId, @now, @now, 1, 1, 'AMDM_Dashboards_Metrics', 33, 3, 1
EXEC [dbo].[METADATA_FOLDER] NULL, 'AMDM_Dashboards_HealthDevice', @dashboardFolderId, @now, @now, 1, 1, 'AMDM_Dashboards_HealthDevice', 33, 4, 1

EXEC [dbo].[METADATA_FOLDER] @reportFolderId OUTPUT, 'AMDM_Reports', @folderId, @now, @now, 1, 1, 'AMDM_Reports', 33, 0, 1

EXEC [dbo].[METADATA_FOLDER] NULL, 'AMDM_Reports_DevicesTitle', @reportFolderId, @now, @now, 1, 1, 'AMDM_Reports_DevicesDescription', 33, 1, 1
EXEC [dbo].[METADATA_FOLDER] NULL, 'AMDM_Reports_PoliciesTitle', @reportFolderId, @now, @now, 1, 1, 'AMDM_Reports_PoliciesDescription', 33, 2, 1
EXEC [dbo].[METADATA_FOLDER] NULL, 'AMDM_Reports_ApplicationsTitle', @reportFolderId, @now, @now, 1, 1, 'AMDM_Reports_PoliciesDescriptionMessage', 33, 3, 1
EXEC [dbo].[METADATA_FOLDER] NULL, 'AMDM_Reports_EnrollmentsTitle', @reportFolderId, @now, @now, 1, 1, 'AMDM_Reports_EnrollmentsDescription', 33, 4, 1
EXEC [dbo].[METADATA_FOLDER] NULL, 'AMDM_Reports_ConsumptionTitle', @reportFolderId, @now, @now, 1, 1, 'AMDM_Reports_ConsumptionDescription', 33, 5, 1
EXEC [dbo].[METADATA_FOLDER] NULL, 'AMDM_Reports_TrackingTitle', @reportFolderId, @now, @now, 1, 1, 'AMDM_Reports_TrackingDescription', 33, 6, 1
GO
PRINT 'AMDM - Required data - Folder access'

DECLARE @folderId					INT
DECLARE @managerRoleId				INT
DECLARE @managerRoleAccessId		INT

SELECT @managerRoleId = role_id FROM [AFW_ROLES] WHERE [role_name] = 'CMManager'
SELECT @managerRoleAccessId = roac_id FROM [AFW_ROLE_ACCESS] WHERE roac_grou_id = 1 AND roac_role_id = @managerRoleId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_ContentManager_DocumentExportPDF' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1,@folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Dashboards' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Dashboards_Devices' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Dashboards_Expenses' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_DevicesTitle' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_PoliciesTitle' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_ApplicationsTitle' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_EnrollmentsTitle' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_ConsumptionTitle' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId

SELECT @folderId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_TrackingTitle' AND fold_application_id = 33
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @managerRoleAccessId, 1, @folderId
GO
PRINT 'AMDM - Required data - Dashboard'

DECLARE @amdmDashboardDevicesId INT
DECLARE @amdmDashboardExpensesId INT
DECLARE @amdmDashboardMetricsId INT
DECLARE @amdmDashboardDeviceHealthId INT

SELECT @amdmDashboardDevicesId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Dashboards_Devices' AND fold_application_id = 33
SELECT @amdmDashboardExpensesId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Dashboards_Expenses' AND fold_application_id = 33
SELECT @amdmDashboardMetricsId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Dashboards_Metrics' AND fold_application_id = 33
SELECT @amdmDashboardDeviceHealthId = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Dashboards_HealthDevice' AND fold_application_id = 33

BEGIN TRAN

	EXEC [dbo].[METADATA_DASHBOARD]  
			N'AMDM_Dashboards_Devices', 
			@amdmDashboardDevicesId, 
			1,
		'<?xml version="1.0" encoding="utf-8"?>
		<Dashboard CurrencyCulture="es-CO">
		  <Title Visible="false" Text="Tablero de control" />
		  <DataSources>
			<SqlDataSource ComponentName="dashboardSqlDataSource1">
			  <Name>Origen de datos SQL 1</Name>
			  <Connection Name="aemmConnection" ProviderKey="MSSqlServer">
				<Parameters>
				  <Parameter Name="server" Value="" />
				  <Parameter Name="database" Value="" />
				  <Parameter Name="useIntegratedSecurity" Value="False" />
				  <Parameter Name="read only" Value="1" />
				  <Parameter Name="generateConnectionHelper" Value="false" />
				  <Parameter Name="userid" Value="" />
				  <Parameter Name="password" Value="" />
				</Parameters>
			  </Connection>
			  <Query Type="CustomSqlQuery" Name="device">
				<Sql>SELECT * FROM VIEW_AMDM_DASHBOARD_DEVICES where status=''Enrolled''</Sql>
			  </Query>
			  <Query Type="CustomSqlQuery" Name="CustomSqlQuery">
				<Sql>SELECT count(*)  as TotalEnrolled FROM VIEW_AMDM_DASHBOARD_DEVICES where status=''Enrolled''</Sql>
			  </Query>
			  <Query Type="CustomSqlQuery" Name="CustomSqlQuery_1">
				<Sql>SELECT 
			Policy + '' - '' + Platform AS Policy
			,Devices AS "Device Count"
		FROM
		(
				SELECT 
				   ROW_NUMBER() OVER(ORDER BY COUNT (d.id) DESC) AS Row
				  ,dp.platf_name AS Platform
				  ,p.policy_policyname AS Policy
				  ,COUNT (d.id) AS Devices

				FROM
				AMDM_DEVICE d
				INNER JOIN AMDM_POLICY p ON (d.policy_id = p.policy_id)
				INNER JOIN AMDM_DEVICEPLATFORM dp ON (p.policy_platformid = dp.platf_id)

				WHERE d.status_id = 0

				GROUP BY dp.platf_name, p.policy_policyname
				) CONS

		WHERE Row &lt;= 10</Sql>
			  </Query>
			  <Query Type="CustomSqlQuery" Name="CustomSqlQuery_2">
				<Sql>SELECT 
			Platform + '' '' +OSVersion AS "Operative System",
			Devices AS "Device Count"
		FROM
				(
				SELECT 
				   ROW_NUMBER() OVER(ORDER BY COUNT(d.id) DESC) AS Row,
					dp.platf_name AS Platform
				   ,d.osversion AS OSVersion          
				   ,COUNT(d.id) AS Devices
				FROM AMDM_DEVICE d
					 INNER JOIN AMDM_DEVICEPLATFORM dp ON (d.platform_id = dp.platf_id)
				WHERE d.osversion IS NOT NULL
				AND d.status_id = 0

				GROUP BY dp.platf_name,d.osversion
				) CONS
		WHERE Row &lt;= 10</Sql>
			  </Query>
			  <ResultSchema>
				<DataSet Name="Origen de datos SQL 1">
				  <View Name="device">
					<Field Name="idDevice" Type="Int32" />
					<Field Name="Status" Type="String" />
					<Field Name="Platform" Type="String" />
					<Field Name="Manufacturer" Type="String" />
					<Field Name="Type" Type="String" />
					<Field Name="LostMode" Type="Boolean" />
					<Field Name="Roaming" Type="Boolean" />
					<Field Name="longInactivity" Type="Int32" />
					<Field Name="NotCompliant" Type="Int32" />
					<Field Name="RootedJailbroken" Type="Boolean" />
					<Field Name="LowBattery" Type="Int32" />
					<Field Name="LowInternalMemory" Type="Int32" />
					<Field Name="OSVersion" Type="String" />
					<Field Name="Policy" Type="String" />
				  </View>
				</DataSet>
			  </ResultSchema>
			  <ConnectionOptions CloseConnection="true" />
			  <CalculatedFields>
				<CalculatedField Name="SumLostMode" Expression="Sum([LostMode])" DataType="Integer" DataMember="device" />
			  </CalculatedFields>
			</SqlDataSource>
		  </DataSources>
		  <Items>
			<Pie ComponentName="pieDashboardItem1" Name="Platform" DataSource="dashboardSqlDataSource1" DataMember="device" PieType="Donut" LabelContentType="ArgumentAndValue" ShowPieCaptions="false" Tag="AMDM_PlatformLabel" Translate="true">
			  <DataItems>
				<Dimension DataMember="Platform" DefaultId="DataItem0" />
				<Measure DataMember="idDevice" Name="Devices" SummaryType="Count" DefaultId="DataItem1" Tag="AMDM_MenuDevicesLabel" Translate="true" />
			  </DataItems>
			  <Arguments>
				<Argument DefaultId="DataItem0" />
			  </Arguments>
			  <Values>
				<Value DefaultId="DataItem1" />
			  </Values>
			</Pie>
			<Pie ComponentName="pieDashboardItem2" Name="Manufacturer" DataSource="dashboardSqlDataSource1" DataMember="device" PieType="Donut" LabelContentType="ArgumentAndValue" ShowPieCaptions="false" Tag="AMDM_Settings_DynamicGroups_Devices_ManufacturerLabel" Translate="true">
			  <DataItems>
				<Dimension DataMember="Manufacturer" DefaultId="DataItem0" />
				<Measure DataMember="idDevice" Name="Devices" SummaryType="Count" DefaultId="DataItem1" Tag="AMDM_MenuDevicesLabel" Translate="true"/>
			  </DataItems>
			  <Arguments>
				<Argument DefaultId="DataItem0" />
			  </Arguments>
			  <Values>
				<Value DefaultId="DataItem1" />
			  </Values>
			</Pie>
			<Pie ComponentName="pieDashboardItem3" Name="Type" DataSource="dashboardSqlDataSource1" DataMember="device" PieType="Donut" LabelContentType="ArgumentAndValue" ShowPieCaptions="false" Tag="AMDM_Devices_TypeTitle" Translate="true">
			  <DataItems>
				<Dimension DataMember="Type" DefaultId="DataItem0" />
				<Measure DataMember="idDevice" Name="Devices" SummaryType="Count" DefaultId="DataItem1" Tag="AMDM_MenuDevicesLabel" Translate="true"/>
			  </DataItems>
			  <Arguments>
				<Argument DefaultId="DataItem0" />
			  </Arguments>
			  <Values>
				<Value DefaultId="DataItem1" />
			  </Values>
			</Pie>
			<CustomItem ComponentName="customItemDashboardItem1" Name="Enrolled" DataSource="dashboardSqlDataSource1" DataMember="CustomSqlQuery" CustomItemType="Kpi Number" Tag="Dashboard_Enrolled" Translate="true">
			  <DataItems>
				<Dimension DataMember="idDevice" DefaultId="DataItem0" />
				<Measure DataMember="TotalEnrolled" DefaultId="DataItem1" />
			  </DataItems>
			  <SliceTables>
				<SliceTable Name="SliceTable1">
				  <Measures>
					<Measure DefaultId="DataItem1" />
				  </Measures>
				</SliceTable>
			  </SliceTables>
			  <ColoringMeasures>
				<Measure DefaultId="DataItem1" />
			  </ColoringMeasures>
			  <CustomMetadata>
				<kpiValue>
				  <Item1 ItemType="Measure" DefaultId="DataItem1" />
				</kpiValue>
			  </CustomMetadata>
			</CustomItem>
			<CustomItem ComponentName="customItemDashboardItem3" Name="KPI Icon 1" ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="device" CustomItemType="KPI Icon">
			  <DataItems>
				<Dimension DataMember="longInactivity" DefaultId="DataItem0" />
				<Measure DataMember="longInactivity" DefaultId="DataItem1" />
			  </DataItems>
			  <SliceTables>
				<SliceTable Name="SliceTable1">
				  <Measures>
					<Measure DefaultId="DataItem1" />
				  </Measures>
				</SliceTable>
			  </SliceTables>
			  <ColoringMeasures>
				<Measure DefaultId="DataItem1" />
			  </ColoringMeasures>
			  <CustomMetadata KpiIcon="fa fa-clock-o" value2="Long inactivity" Tag="LongInactivity" TranslateCustom="true">
				<kpiIconValue>
				  <Item1 ItemType="Measure" DefaultId="DataItem1" />
				</kpiIconValue>
			  </CustomMetadata>
			</CustomItem>
			<CustomItem ComponentName="customItemDashboardItem4" Name="KPI Icon 1" ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="device" CustomItemType="KPI Icon">
			  <DataItems>
				<Dimension DataMember="NotCompliant" DefaultId="DataItem0" />
				<Measure DataMember="NotCompliant" DefaultId="DataItem1" />
			  </DataItems>
			  <SliceTables>
				<SliceTable Name="SliceTable1">
				  <Measures>
					<Measure DefaultId="DataItem1" />
				  </Measures>
				</SliceTable>
			  </SliceTables>
			  <ColoringMeasures>
				<Measure DefaultId="DataItem1" />
			  </ColoringMeasures>
			  <CustomMetadata KpiIcon="fa fa-bug" value2="Not compilant" Tag="NoFulfillment" TranslateCustom="true">
				<kpiIconValue>
				  <Item1 ItemType="Measure" DefaultId="DataItem1" />
				</kpiIconValue>
			  </CustomMetadata>
			</CustomItem>
			<CustomItem ComponentName="customItemDashboardItem7" Name="KPI Icon 1" ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="device" CustomItemType="KPI Icon">
			  <DataItems>
				<Dimension DataMember="SumLostMode" DefaultId="DataItem0" />
				<Measure DataMember="LostMode" DefaultId="DataItem1" />
			  </DataItems>
			  <SliceTables>
				<SliceTable Name="SliceTable1">
				  <Measures>
					<Measure DefaultId="DataItem1" />
				  </Measures>
				</SliceTable>
			  </SliceTables>
			  <ColoringMeasures>
				<Measure DefaultId="DataItem1" />
			  </ColoringMeasures>
			  <CustomMetadata KpiIcon="fa fa-ban" value2="Loss mode" Tag="LostMode" TranslateCustom="true">
				<kpiIconValue>
				  <Item1 ItemType="Measure" DefaultId="DataItem1" />
				</kpiIconValue>
			  </CustomMetadata>
			</CustomItem>
			<CustomItem ComponentName="customItemDashboardItem8" Name="KPI Icon 1" ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="device" CustomItemType="KPI Icon">
			  <DataItems>
				<Dimension DataMember="RootedJailbroken" DefaultId="DataItem0" />
				<Measure DataMember="RootedJailbroken" DefaultId="DataItem1" />
			  </DataItems>
			  <SliceTables>
				<SliceTable Name="SliceTable1">
				  <Measures>
					<Measure DefaultId="DataItem1" />
				  </Measures>
				</SliceTable>
			  </SliceTables>
			  <ColoringMeasures>
				<Measure DefaultId="DataItem1" />
			  </ColoringMeasures>
			  <CustomMetadata KpiIcon="fa fa-unlock-alt" value2="JailBreak">
				<kpiIconValue>
				  <Item1 ItemType="Measure" DefaultId="DataItem1" />
				</kpiIconValue>
			  </CustomMetadata>
			</CustomItem>
			<Chart ComponentName="chartDashboardItem1" Name="Policies applied by platform (Top 10)" DataSource="dashboardSqlDataSource1" DataMember="CustomSqlQuery_1" Rotated="true" Tag="PoliciesAppliedByPlatformTop10" Translate="true">
			  <DataItems>
				<Measure DataMember="Device Count" DefaultId="DataItem0" />
				<Dimension DataMember="Policy" SortOrder="Descending" ColoringMode="Hue" SortByMeasure="DataItem0" DefaultId="DataItem1" />
			  </DataItems>
			  <Arguments>
				<Argument DefaultId="DataItem1" />
			  </Arguments>
			  <Panes>
				<Pane Name="Pane 1">
				  <AxisY Title="Devices" Tag="AMDM_MenuDevicesLabel" TranslateCustom="true"/>
				  <Series>
					<Simple Name="Devices" Tag="AMDM_MenuDevicesLabel" TranslateCustom="true">
					  <Value DefaultId="DataItem0" />
					</Simple>
				  </Series>
				</Pane>
			  </Panes>
			  <ChartLegend Visible="false" />
			  <AxisX Reverse="true" />
			</Chart>
			<Grid ComponentName="gridDashboardItem1" Name="Versiones de Sistemas Operativos (Top 10)" DataSource="dashboardSqlDataSource1" DataMember="CustomSqlQuery_2" Tag="OperatingSystemVersionsTop10" Translate="true">
			  <DataItems>
				<Dimension DataMember="Operative System" SortOrder="Descending" SortByMeasure="DataItem1" DefaultId="DataItem0" Tag="AMDM_Devices_deviceOSLabel" Translate="true"/>
				<Measure DataMember="Device Count" DefaultId="DataItem1"/>
			  </DataItems>
			  <GridColumns>
				<GridDimensionColumn Weight="97.297297297297291">
				  <Dimension DefaultId="DataItem0" />
				</GridDimensionColumn>
				<GridMeasureColumn Name="Devices" Weight="52.7027027027027" Tag="AMDM_MenuDevicesLabel" TranslateCustom="true">
				  <Measure DefaultId="DataItem1" />
				</GridMeasureColumn>
			  </GridColumns>
			  <GridOptions ColumnWidthMode="Manual" />
			</Grid>
		  </Items>
		  <LayoutTree>
			<LayoutGroup Weight="100">
			  <LayoutGroup Weight="84.118577963605063">
				<LayoutGroup Orientation="Vertical" Weight="100">
				  <LayoutGroup Weight="32.511125428601268">
					<LayoutGroup Orientation="Vertical" Weight="18.186768470839063">
					  <LayoutItem DashboardItem="customItemDashboardItem1" Weight="23.110447368329595" />
					  <LayoutItem DashboardItem="customItemDashboardItem3" Weight="10.974862213576254" />
					</LayoutGroup>
					<LayoutGroup Orientation="Vertical" Weight="17.370936173966285">
					  <LayoutItem DashboardItem="customItemDashboardItem8" Weight="10.171779286225579" />
					  <LayoutItem DashboardItem="customItemDashboardItem7" Weight="10.199325078787672" />
					  <LayoutItem DashboardItem="customItemDashboardItem4" Weight="9.78668338746813" />
					</LayoutGroup>
					<LayoutGroup Orientation="Vertical" Weight="34.902348385953744">
					  <LayoutGroup Weight="34.902348385953744">
						<LayoutItem DashboardItem="pieDashboardItem1" Weight="34.902348385953744" />
					  </LayoutGroup>
					</LayoutGroup>
					<LayoutItem DashboardItem="pieDashboardItem3" Weight="31.757498621796373" />
				  </LayoutGroup>
				  <LayoutGroup Weight="44.528574002402515">
					<LayoutItem DashboardItem="pieDashboardItem2" Weight="35.973099488728508" />
					<LayoutItem DashboardItem="chartDashboardItem1" Weight="35.446542836169236" />
					<LayoutItem DashboardItem="gridDashboardItem1" Weight="31.909278909768538" />
				  </LayoutGroup>
				</LayoutGroup>
			  </LayoutGroup>
			</LayoutGroup>
		  </LayoutTree>
		</Dashboard>',
			60,
			'AMDM_Dashboards_Devices',
			NULL

	EXEC [dbo].[METADATA_DASHBOARD]  
			N'AMDM_Dashboards_Expenses', 
			@amdmDashboardExpensesId, 
			2, 
		'<?xml version="1.0" encoding="utf-8"?>
	<Dashboard CurrencyCulture="es-CO">
	  <Title Visible="false" Text="Tablero de control" />
	  <DataSources>
		<SqlDataSource Name="Datasource" ComponentName="dashboardSqlDataSource1">
		  <Connection Name="aemmConnection" ProviderKey="MSSqlServer">
			<Parameters>
			  <Parameter Name="server" Value="" />
			  <Parameter Name="database" Value="" />
			  <Parameter Name="useIntegratedSecurity" Value="False" />
			  <Parameter Name="read only" Value="1" />
			  <Parameter Name="generateConnectionHelper" Value="false" />
			  <Parameter Name="userid" Value="" />
			  <Parameter Name="password" Value="" />
			</Parameters>
		  </Connection>
		  <Query Type="CustomSqlQuery" Name="Query">
			<Sql>SELECT * FROM VIEW_AMDM_DASHBOARD_EXPENSES_1</Sql>
		  </Query>
		  <Query Type="CustomSqlQuery" Name="CustomSqlQuery">
			<Sql>SELECT * FROM VIEW_AMDM_DASHBOARD_EXPENSES_2</Sql>
		  </Query>
		  <Query Type="CustomSqlQuery" Name="CustomSqlQueryPlan">
			<Sql>SELECT count(*)  as TotalDevicesPlan FROM VIEW_AMDM_DASHBOARD_EXPENSES_1</Sql>
		  </Query>
		  <ResultSchema>
			<DataSet Name="Datasource">
			  <View Name="Query">
				<Field Name="iddevice" Type="Int32" />
				<Field Name="devicename" Type="String" />
				<Field Name="username" Type="String" />
				<Field Name="planname" Type="String" />
				<Field Name="carriername" Type="String" />
				<Field Name="ollocaldata" Type="Int32" />
				<Field Name="ollocalvoice" Type="Int32" />
				<Field Name="olroamingdata" Type="Int32" />
				<Field Name="olroamingvoice" Type="Int32" />
			  </View>
			  <View Name="CustomSqlQuery">
				<Field Name="PlanName" Type="String" />
				<Field Name="LocalData" Type="Double" />
				<Field Name="RoamingData" Type="Double" />
				<Field Name="LocalVoice" Type="Double" />
				<Field Name="RoamingVoice" Type="Double" />
			  </View>
			  <View Name="CustomSqlQueryPlan">
				<Field Name="TotalDevicesPlan" Type="Int32" />
			  </View>
			</DataSet>
		  </ResultSchema>
		  <ConnectionOptions CloseConnection="true" />
		</SqlDataSource>
	  </DataSources>
	  <Items>
		<CustomItem ComponentName="customItemDashboardItem1" Name="Devices with plan" DataSource="dashboardSqlDataSource1" DataMember="CustomSqlQueryPlan" CustomItemType="Kpi Number">
		  <DataItems>
			<Dimension DataMember="iddevice" DefaultId="DataItem0" />
			<Measure DataMember="TotalDevicesPlan" DefaultId="DataItem1" />
		  </DataItems>
		  <SliceTables>
			<SliceTable Name="SliceTable1">
			  <Measures>
				<Measure DefaultId="DataItem1" />
			  </Measures>
			</SliceTable>
		  </SliceTables>
		  <ColoringMeasures>
			<Measure DefaultId="DataItem1" />
		  </ColoringMeasures>
		  <CustomMetadata>
				<kpiValue>
				  <Item1 ItemType="Measure" DefaultId="DataItem1" />
				</kpiValue>
			  </CustomMetadata>
		</CustomItem>
		<Pie ComponentName="pieDashboardItem1" Name="By carrier" DataSource="dashboardSqlDataSource1" DataMember="Query" LabelContentType="ArgumentAndValue" TooltipContentType="ArgumentAndPercent" ShowPieCaptions="false">
		  <DataItems>
			<Measure DataMember="iddevice" SummaryType="Count" DefaultId="DataItem1" />
			<Dimension DataMember="carriername" DefaultId="DataItem0" />
		  </DataItems>
		  <Arguments>
			<Argument DefaultId="DataItem0" />
		  </Arguments>
		  <Values>
			<Value DefaultId="DataItem1" />
		  </Values>
		</Pie>
		<Pie ComponentName="pieDashboardItem2" Name="By plan" DataSource="dashboardSqlDataSource1" DataMember="Query" LabelContentType="ArgumentAndValue" TooltipContentType="ArgumentAndPercent" ShowPieCaptions="false">
		  <DataItems>
			<Dimension DataMember="planname" DefaultId="DataItem0" />
			<Measure DataMember="iddevice" SummaryType="Count" DefaultId="DataItem1" />
		  </DataItems>
		  <Arguments>
			<Argument DefaultId="DataItem0" />
		  </Arguments>
		  <Values>
			<Value DefaultId="DataItem1" />
		  </Values>
		</Pie>
		<CustomItem ComponentName="customItemDashboardItem2" Name="KPI Icon 1" ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="Query" CustomItemType="KPI Icon">
		  <DataItems>
			<Measure DataMember="ollocaldata" DefaultId="DataItem0" />
		  </DataItems>
		  <SliceTables>
			<SliceTable Name="SliceTable1">
			  <Measures>
				<Measure DefaultId="DataItem0" />
			  </Measures>
			</SliceTable>
		  </SliceTables>
		  <ColoringMeasures>
			<Measure DefaultId="DataItem0" />
		  </ColoringMeasures>
		  <CustomMetadata KpiIcon="fa fa-cloud-download" value2="Local data" bgColorKpiIcon="#2490d4" Tag="ExceededLocalData" TranslateCustom="true">
				<kpiIconValue>
				  <Item1 ItemType="Measure" DefaultId="DataItem0" />
				</kpiIconValue>
			  </CustomMetadata>
		</CustomItem>
		<CustomItem ComponentName="customItemDashboardItem3" Name="KPI Icon 1" ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="Query" CustomItemType="KPI Icon">
		  <DataItems>
			<Measure DataMember="olroamingvoice" DefaultId="DataItem0" />
		  </DataItems>
		  <SliceTables>
			<SliceTable Name="SliceTable1">
			  <Measures>
				<Measure DefaultId="DataItem0" />
			  </Measures>
			</SliceTable>
		  </SliceTables>
		  <ColoringMeasures>
			<Measure DefaultId="DataItem0" />
		  </ColoringMeasures>
		  <CustomMetadata KpiIcon="fa fa-volume-up" value2="Roaming voice" bgColorKpiIcon="#0ba180" Tag="ExceededVoiceRoaming" TranslateCustom="true">
				<kpiIconValue>
				  <Item1 ItemType="Measure" DefaultId="DataItem0" />
				</kpiIconValue>
			  </CustomMetadata>
		</CustomItem>
		<CustomItem ComponentName="customItemDashboardItem4" Name="KPI Icon 1" ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="Query" CustomItemType="KPI Icon">
		  <DataItems>
			<Measure DataMember="ollocalvoice" DefaultId="DataItem0" />
		  </DataItems>
		  <SliceTables>
			<SliceTable Name="SliceTable1">
			  <Measures>
				<Measure DefaultId="DataItem0" />
			  </Measures>
			</SliceTable>
		  </SliceTables>
		  <ColoringMeasures>
			<Measure DefaultId="DataItem0" />
		  </ColoringMeasures>
		  <CustomMetadata KpiIcon="fa fa-volume-up" value2="Local voice" bgColorKpiIcon="#2490d4" Tag="ExceededLocalVoice" TranslateCustom="true">
				<kpiIconValue>
				  <Item1 ItemType="Measure" DefaultId="DataItem0" />
				</kpiIconValue>
			  </CustomMetadata>
		</CustomItem>
		<CustomItem ComponentName="customItemDashboardItem5" Name="KPI Icon 1" ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="Query" CustomItemType="KPI Icon">
		  <DataItems>
			<Measure DataMember="olroamingdata" DefaultId="DataItem0" />
		  </DataItems>
		  <SliceTables>
			<SliceTable Name="SliceTable1">
			  <Measures>
				<Measure DefaultId="DataItem0" />
			  </Measures>
			</SliceTable>
		  </SliceTables>
		  <ColoringMeasures>
			<Measure DefaultId="DataItem0" />
		  </ColoringMeasures>
		  <CustomMetadata KpiIcon="fa fa-cloud-download" value2="Roaming data" bgColorKpiIcon="#0ba180" Tag="ExceededRoamingData" TranslateCustom="true">
				<kpiIconValue>
				  <Item1 ItemType="Measure" DefaultId="DataItem0" />
				</kpiIconValue>
			  </CustomMetadata>
		</CustomItem>
		<Chart ComponentName="chartDashboardItem1" Name="Local data" DataSource="dashboardSqlDataSource1" DataMember="CustomSqlQuery">
		  <DataItems>
			<Dimension DataMember="PlanName" DefaultId="DataItem0" />
			<Measure DataMember="LocalData" DefaultId="DataItem1" />
		  </DataItems>
		  <Arguments>
			<Argument DefaultId="DataItem0" />
		  </Arguments>
		  <Panes>
			<Pane Name="Pane 1">
			  <AxisY TitleVisible="false" />
			  <Series>
				<Simple>
				  <Value DefaultId="DataItem1" />
				  <PointLabelOptions ContentType="Value" />
				</Simple>
			  </Series>
			</Pane>
		  </Panes>
		  <ChartLegend Visible="false" />
		</Chart>
		<Chart ComponentName="chartDashboardItem2" Name="Local voice" DataSource="dashboardSqlDataSource1" DataMember="CustomSqlQuery">
		  <DataItems>
			<Dimension DataMember="PlanName" DefaultId="DataItem0" />
			<Measure DataMember="LocalVoice" DefaultId="DataItem1" />
		  </DataItems>
		  <Arguments>
			<Argument DefaultId="DataItem0" />
		  </Arguments>
		  <Panes>
			<Pane Name="Pane 1">
			  <AxisY TitleVisible="false" />
			  <Series>
				<Simple>
				  <Value DefaultId="DataItem1" />
				  <PointLabelOptions ContentType="Value" />
				</Simple>
			  </Series>
			</Pane>
		  </Panes>
		  <ChartLegend Visible="false" />
		</Chart>
		<Chart ComponentName="chartDashboardItem3" Name="Roaming data" DataSource="dashboardSqlDataSource1" DataMember="CustomSqlQuery">
		  <DataItems>
			<Dimension DataMember="PlanName" DefaultId="DataItem0" />
			<Measure DataMember="RoamingData" DefaultId="DataItem1" />
		  </DataItems>
		  <Arguments>
			<Argument DefaultId="DataItem0" />
		  </Arguments>
		  <Panes>
			<Pane Name="Pane 1">
			  <AxisY TitleVisible="false" />
			  <Series>
				<Simple>
				  <Value DefaultId="DataItem1" />
				  <PointLabelOptions ContentType="Value" />
				</Simple>
			  </Series>
			</Pane>
		  </Panes>
		  <ChartLegend Visible="false" />
		</Chart>
		<Chart ComponentName="chartDashboardItem4" Name="Roaming voice" DataSource="dashboardSqlDataSource1" DataMember="CustomSqlQuery">
		  <DataItems>
			<Dimension DataMember="PlanName" DefaultId="DataItem0" />
			<Measure DataMember="RoamingVoice" DefaultId="DataItem1" />
		  </DataItems>
		  <Arguments>
			<Argument DefaultId="DataItem0" />
		  </Arguments>
		  <Panes>
			<Pane Name="Pane 1">
			  <AxisY TitleVisible="false" />
			  <Series>
				<Simple>
				  <Value DefaultId="DataItem1" />
				  <PointLabelOptions ContentType="Value" />
				</Simple>
			  </Series>
			</Pane>
		  </Panes>
		  <ChartLegend Visible="false" />
		</Chart>
	  </Items>
	  <ColorScheme>
		<Entry DataSource="dashboardSqlDataSource1" DataMember="Query" Color="-2748143">
		  <DimensionKeys>
			<DimensionKey>
			  <Definition DataMember="carriername" />
			  <Value Type="System.String" Value="Claro" />
			</DimensionKey>
		  </DimensionKeys>
		</Entry>
	  </ColorScheme>
	  <LayoutTree>
		<LayoutGroup Orientation="Vertical" Weight="100">
		  <LayoutGroup Weight="100">
			<LayoutGroup Orientation="Vertical" Weight="100">
			  <LayoutGroup Weight="100">
				<LayoutItem DashboardItem="customItemDashboardItem1" Weight="100" />
			  </LayoutGroup>
			</LayoutGroup>
			<LayoutItem DashboardItem="pieDashboardItem2" Weight="100" />
			<LayoutItem DashboardItem="pieDashboardItem1" Weight="100" />
			<LayoutGroup Orientation="Vertical" Weight="100">
			  <LayoutItem DashboardItem="customItemDashboardItem2" Weight="100" />
			  <LayoutItem DashboardItem="customItemDashboardItem4" Weight="100" />
			  <LayoutItem DashboardItem="customItemDashboardItem5" Weight="100" />
			  <LayoutItem DashboardItem="customItemDashboardItem3" Weight="100" />
			</LayoutGroup>
		  </LayoutGroup>
		  <LayoutGroup Weight="100">
			<LayoutGroup Orientation="Vertical" Weight="100">
			  <LayoutGroup Weight="100">
				<LayoutItem DashboardItem="chartDashboardItem1" Weight="100" />
				<LayoutItem DashboardItem="chartDashboardItem3" Weight="100" />
			  </LayoutGroup>
			</LayoutGroup>
			<LayoutGroup Orientation="Vertical" Weight="100">
			  <LayoutGroup Weight="100">
				<LayoutItem DashboardItem="chartDashboardItem2" Weight="100" />
				<LayoutItem DashboardItem="chartDashboardItem4" Weight="100" />
			  </LayoutGroup>
			</LayoutGroup>
		  </LayoutGroup>
		</LayoutGroup>
	  </LayoutTree>
	</Dashboard>',
			60,
			'AMDM_Dashboards_Expenses',
			NULL

	EXEC [dbo].[METADATA_DASHBOARD]  
			N'AMDM_Dashboards_Metrics', 
			@amdmDashboardMetricsId, 
			3, 
		'<?xml version="1.0" encoding="utf-8"?>
<Dashboard CurrencyCulture="es-CO">
  <Title Text="Dashboard" />
  <DataSources>
    <SqlDataSource Name="SQL Data Source 1" ComponentName="dashboardSqlDataSource1" DataProcessingMode="Client">
      <Connection Name="aemmConnection" ProviderKey="MSSqlServer">
        <Parameters>
          <Parameter Name="server" Value="" />
          <Parameter Name="database" Value="" />
          <Parameter Name="useIntegratedSecurity" Value="False" />
          <Parameter Name="read only" Value="1" />
          <Parameter Name="generateConnectionHelper" Value="false" />
          <Parameter Name="userid" Value="" />
          <Parameter Name="password" Value="" />
        </Parameters>
      </Connection>
      <Query Type="CustomSqlQuery" Name="Query">
        <Sql>SELECT 
CASE
WHEN isProductive = 1 THEN ''Productiva''
ELSE ''No Productiva''
END AS isProductive
,ISNULL(categoryName,''Ninguna'') AS categoryName,appName,year as año,month as mes,dateValue,SUM(appUseTimeMs) as hoursUse
FROM VIEW_AMDM_DASHBOARD_METRICS
WHERE appUseTimeMs > 0
GROUP BY isProductive,categoryName,appName,year,month,dateValue</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="Query_1">
        <Sql>SELECT  vs.appName,vs.day,vs.month,vs.year,dateValue,
CAST(ROUND(AVG(vs.appUseTimeMs/vs.totalWorkingTime), 3) AS DECIMAL (18, 3)) AS hoursUse
,(
SELECT CAST(ROUND(AVG(hoursUse), 3) AS DECIMAL (18, 3)) FROM
(
SELECT appName,week,month,year,AVG(appUseTimeMs/(totalWorkingTime*604800000)) AS hoursUse
FROM VIEW_AMDM_DASHBOARD_METRICS
WHERE 
appName = vs.AppName
AND month = vs.month
AND year = vs.year
GROUP BY appName,week,month,year
) subquery 
WHERE appName = vs.appNAme
) AS hoursUseWeek
FROM VIEW_AMDM_DASHBOARD_METRICS vs
GROUP BY appName,day,month,year,dateValue
	,vs.appUseTimeMs,vs.totalWorkingTime
HAVING SUM(appUseTimeMs) > 0
ORDER BY SUM(appUseTimeMs) DESC</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="Query_2">
        <Sql>SELECT  vs.appName,vs.day,vs.month,vs.year,dateValue, AVG(vs.appDataConsumption) AS dataConsumption
,(
SELECT AVG(dataConsumption) FROM
(
SELECT appName,week,month,year,
AVG(appDataConsumption) AS dataConsumption
FROM VIEW_AMDM_DASHBOARD_METRICS
WHERE 
appName = vs.AppName
AND month = vs.month
AND year = vs.year
GROUP BY appName,week,month,year
) subquery 
WHERE appName = vs.appNAme
) AS dataConsumptionWeek
FROM VIEW_AMDM_DASHBOARD_METRICS vs
GROUP BY appName,day,month,year,dateValue
HAVING AVG(appdataConsumptionBytes) > 0
ORDER BY AVG(appdataConsumptionBytes) DESC</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="Query_3">
        <Sql>SELECT  vm.deviceName,vm.month,vm.year,DATEADD(DAY,(-1)*(DATEPART(DAY,datevalue)-1),datevalue) as dateValue
,(SELECT DISTINCT ISNULL(categoryName,''Ninguna'') + '', ''
 FROM VIEW_AMDM_DASHBOARD_METRICS
 WHERE month = vm.month
 AND year = vm.year
 AND deviceName = vm.deviceName
 ORDER BY ISNULL(categoryName, ''Ninguna'') + '', '' ASC
 FOR XML PATH ('''')
) as Categories
,SUM(vm.appUseTimeMs) as useTime,
[dbo].[FUN_AMDM_GET_MS_IN_TIME_FORMAT]((SUM(vm.appUseTimeMs))) as timeFormat
FROM VIEW_AMDM_DASHBOARD_METRICS vm
WHERE vm.isProductive = 1
GROUP BY vm.deviceName,vm.month,vm.year,DATEADD(DAY,(-1)*(DATEPART(DAY,datevalue)-1),datevalue)
HAVING SUM(vm.appUseTime) > 0
ORDER BY SUM(vm.appUseTime) DESC</Sql>
      </Query>
      <ResultSchema>
        <DataSet Name="SQL Data Source 1">
          <View Name="Query">
            <Field Name="isProductive" Type="String" />
            <Field Name="categoryName" Type="String" />
            <Field Name="appName" Type="String" />
            <Field Name="year" Type="Int16" />
            <Field Name="month" Type="Byte" />
            <Field Name="hoursUse" Type="Decimal" />
          </View>
          <View Name="Query_1">
            <Field Name="appName" Type="String" />
            <Field Name="day" Type="Byte" />
            <Field Name="month" Type="Byte" />
            <Field Name="year" Type="Int16" />
            <Field Name="hoursUse" Type="Decimal" />
            <Field Name="hoursUseWeek" Type="Decimal" />
          </View>
          <View Name="Query_2">
            <Field Name="appName" Type="String" />
            <Field Name="day" Type="Byte" />
            <Field Name="month" Type="Byte" />
            <Field Name="year" Type="Int16" />
            <Field Name="dataConsumption" Type="Decimal" />
            <Field Name="dataConsumptionWeek" Type="Decimal" />
          </View>
          <View Name="Query_3">
            <Field Name="deviceName" Type="String" />
            <Field Name="month" Type="Byte" />
            <Field Name="year" Type="Int16" />
            <Field Name="Categories" Type="String" />
            <Field Name="useTime" Type="Decimal" />
          </View>
        </DataSet>
      </ResultSchema>
      <ConnectionOptions CloseConnection="true" />
    </SqlDataSource>
  </DataSources>
  <Items>
    <ComboBox ComponentName="comboBoxDashboardItem1" Name="Mes" Tag="Month" TranslateCustom="true" DataSource="dashboardSqlDataSource1" DataMember="Query" IsMasterFilterCrossDataSource="true" ShowAllValue="false">
      <DataItems>
        <Dimension DataMember="dateValue" Name="mes" SortOrder="Descending" DateTimeGroupInterval="Month" DefaultId="DataItem0" />
      </DataItems>
      <FilterDimensions>
        <Dimension DefaultId="DataItem0" />
      </FilterDimensions>
    </ComboBox>
    <Pie ComponentName="pieDashboardItem1" Name="Tendencia de uso de aplicaciones" Tag="ApplicationUsageTrend" TranslateCustom="true" ParentContainer="dashboardTabPage1" DataSource="dashboardSqlDataSource1" DataMember="Query" PieType="Donut" LabelPosition="Inside">
      <InteractivityOptions IsDrillDownEnabled="true" />
      <DataItems>
        <Dimension DataMember="isProductive" DefaultId="DataItem0" />
        <Measure DataMember="hoursUse" Name="Tiempo de Uso (%)" Tag="UsageTime" TranslateCustom="true" SummaryType="Average" DefaultId="DataItem1">
          <NumericFormat FormatType="Number" />
        </Measure>
        <Dimension DataMember="categoryName" DefaultId="DataItem2" />
        <Dimension DataMember="appName" DefaultId="DataItem3" />
        <Dimension DataMember="month" DefaultId="DataItem4" />
        <Dimension DataMember="year" DefaultId="DataItem5" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem4" />
        <Dimension DefaultId="DataItem5" />
      </HiddenDimensions>
      <Arguments>
        <Argument DefaultId="DataItem0" />
        <Argument DefaultId="DataItem2" />
        <Argument DefaultId="DataItem3" />
      </Arguments>
      <Values>
        <Value DefaultId="DataItem1" />
      </Values>
    </Pie>
    <Chart ComponentName="chartDashboardItem1" Name="Aplicaciones más usadas - Top 10" Tag="MostUsedApps_Top10" TranslateCustom="true" ParentContainer="dashboardTabPage2" DataSource="dashboardSqlDataSource1" DataMember="Query_1" Rotated="true">
      <DataItems>
        <Dimension DataMember="appName" SortByMeasure="DataItem1" TopNEnabled="true" TopNCount="10" TopNMeasure="DataItem1" DefaultId="DataItem0" />
        <Measure DataMember="hoursUse" Name="Promedio Diario" SummaryType="Average" DefaultId="DataItem1" Tag="DailyAverage" TranslateCustom="true">
          <NumericFormat FormatType="Percent" Precision="0" IncludeGroupSeparator="true" />
        </Measure>
        <Measure DataMember="hoursUseWeek" Name="Promedio Semanal" SummaryType="Average" DefaultId="DataItem4">
          <NumericFormat FormatType="Percent" Precision="1" />
        </Measure>
        <Dimension DataMember="dateValue" DateTimeGroupInterval="Month" DefaultId="DataItem2" />
        <Dimension DataMember="dateValue" DefaultId="DataItem3" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem2" />
        <Dimension DefaultId="DataItem3" />
      </HiddenDimensions>
      <Arguments>
        <Argument DefaultId="DataItem0" />
      </Arguments>
      <Panes>
        <Pane Name="Pane 1">
          <AxisY Title="% de Uso en Jornada" LogarithmicBase="Base5" Tag="Percent_OfUseInWorkingHours" TranslateCustom="true">
            <NumericFormat FormatType="Percent" />
          </AxisY>
          <Series>
            <Simple SeriesType="StackedBar">
              <Value DefaultId="DataItem1" />
              <PointLabelOptions OverlappingMode="None" />
            </Simple>
            <Simple SeriesType="StackedBar">
              <Value DefaultId="DataItem4" />
              <PointLabelOptions OverlappingMode="None" />
            </Simple>
          </Series>
        </Pane>
      </Panes>
      <ChartLegend InsidePosition="TopLeftHorizontal" />
    </Chart>
    <Chart ComponentName="chartDashboardItem2" Name="Mayor consumo de datos en aplicaciones" Tag="HigherDataConsumptionInApplications" TranslateCustom="true" ParentContainer="dashboardTabPage3" DataSource="dashboardSqlDataSource1" DataMember="Query_2">
      <DataItems>
        <Dimension DataMember="appName" SortByMeasure="DataItem1" TopNEnabled="true" TopNCount="10" TopNMeasure="DataItem1" DefaultId="DataItem0" />
        <Measure DataMember="dataConsumption" Name="Promedio Diario" SummaryType="Average" DefaultId="DataItem1" Tag="DailyAverage" TranslateCustom="true">
          <NumericFormat FormatType="Number" />
        </Measure>
        <Measure DataMember="dataConsumptionWeek" Name="Promedio Semanal" SummaryType="Average" DefaultId="DataItem2" Tag="WeeklyAverage" TranslateCustom="true">
          <NumericFormat FormatType="Number" />
        </Measure>
        <Dimension DataMember="dateValue" DateTimeGroupInterval="Month" DefaultId="DataItem3" />
        <Dimension DataMember="dateValue" DefaultId="DataItem4" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem3" />
        <Dimension DefaultId="DataItem4" />
      </HiddenDimensions>
      <Arguments>
        <Argument DefaultId="DataItem0" />
      </Arguments>
      <Panes>
        <Pane Name="Pane 1">
          <AxisY Title="Consumo de Datos (MB)" Tag="DataConsumption_MB" TranslateCustom="true">
            <NumericFormat FormatType="Number" />
          </AxisY>
          <Series>
            <Simple SeriesType="StackedBar">
              <Value DefaultId="DataItem1" />
              <PointLabelOptions OverlappingMode="None" ContentType="Value" />
            </Simple>
            <Simple SeriesType="StackedBar">
              <Value DefaultId="DataItem2" />
              <PointLabelOptions OverlappingMode="None" ContentType="Value" />
            </Simple>
          </Series>
        </Pane>
      </Panes>
    </Chart>
	<Grid ComponentName="gridDashboardItem1" Name="Dispositivos más Productivos - Top 10" Tag="MostProductiveDevices_Top10" TranslateCustom="true" ParentContainer="dashboardTabPage1" DataSource="dashboardSqlDataSource1" DataMember="Query_3">
      <DataItems>
        <Dimension DataMember="dateValue" DateTimeGroupInterval="Month" DefaultId="DataItem0" />
        <Dimension DataMember="dateValue" DefaultId="DataItem1" />
        <Dimension DataMember="deviceName" SortOrder="Descending" TopNEnabled="true" TopNCount="10" TopNMeasure="DataItem4" DefaultId="DataItem2" />
        <Measure DataMember="useTime" DefaultId="DataItem4">
          <NumericFormat FormatType="Number" />
        </Measure>
        <Dimension DataMember="timeFormat" Name="Tiempo de uso" DefaultId="DataItem5" Tag="UsageTime" TranslateCustom="true"/>
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem0" />
        <Dimension DefaultId="DataItem1" />
      </HiddenDimensions>
      <GridColumns>
        <GridDimensionColumn Name="Dispositivo" Tag="device" TranslateCustom="true">
          <Dimension DefaultId="DataItem2" />
        </GridDimensionColumn>
        <GridDimensionColumn>
          <Dimension DefaultId="DataItem5" />
        </GridDimensionColumn>
        <GridDeltaColumn Name=" " DisplayMode="Bar">
          <ActualValue DefaultId="DataItem4" />
        </GridDeltaColumn>
      </GridColumns>
      <GridOptions EnableBandedRows="true" ShowVerticalLines="false" />
    </Grid>
    <ComboBox ComponentName="comboBoxDashboardItem2" Name="Año" DataSource="dashboardSqlDataSource1" DataMember="Query" IsMasterFilterCrossDataSource="true" ShowAllValue="false" Tag="Year" TranslateCustom="true">
      <DataItems>
        <Dimension DataMember="dateValue" Name="año" SortOrder="Descending" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Dimension>
      </DataItems>
      <FilterDimensions>
        <Dimension DefaultId="DataItem0" />
      </FilterDimensions>
    </ComboBox>
    <TabContainer ComponentName="tabContainerDashboardItem1" Name="Tab Container 1">
      <Pages>
        <Page ComponentName="dashboardTabPage1" Name="Tendencia de Uso / Dispositivos más productivos" Tag="UseTrend_MostProductiveDevices" TranslateCustom="true"/>
        <Page ComponentName="dashboardTabPage2" Name="Tendencias" />
        <Page ComponentName="dashboardTabPage3" Name="Page 1" />
      </Pages>
    </TabContainer>
  </Items>
  <ColorScheme>
    <Entry DataSource="dashboardSqlDataSource1" DataMember="Query" Color="-7096506">
      <DimensionKeys>
        <DimensionKey>
          <Definition DataMember="isProductive" />
          <Value Type="System.String" Value="Productiva"/>
        </DimensionKey>
      </DimensionKeys>
    </Entry>
    <Entry DataSource="dashboardSqlDataSource1" DataMember="Query_1" Color="-8358223">
      <MeasureKey>
        <Definition DataMember="hoursUse" SummaryType="Average" />
      </MeasureKey>
    </Entry>
    <Entry DataSource="dashboardSqlDataSource1" DataMember="Query_1" Color="-11752818">
      <MeasureKey>
        <Definition DataMember="hoursUseWeek" SummaryType="Average" />
      </MeasureKey>
    </Entry>
    <Entry DataSource="dashboardSqlDataSource1" DataMember="Query_2" Color="-13521704">
      <MeasureKey>
        <Definition DataMember="dataConsumption" SummaryType="Average" />
      </MeasureKey>
    </Entry>
    <Entry DataSource="dashboardSqlDataSource1" DataMember="Query_2" Color="-413382">
      <MeasureKey>
        <Definition DataMember="dataConsumptionWeek" SummaryType="Average" />
      </MeasureKey>
    </Entry>
  </ColorScheme>
  <LayoutTree>
    <LayoutGroup>
      <LayoutGroup Orientation="Vertical">
        <LayoutGroup>
          <LayoutItem DashboardItem="comboBoxDashboardItem1" Weight="25.00424495233883" />
          <LayoutItem DashboardItem="comboBoxDashboardItem2" Weight="25.952983448003344" />
        </LayoutGroup>
        <LayoutTabContainer DashboardItem="tabContainerDashboardItem1">
          <LayoutTabPage DashboardItem="dashboardTabPage1">
            <LayoutItem DashboardItem="pieDashboardItem1" Weight="49.957228400342174" />
            <LayoutItem DashboardItem="gridDashboardItem1" Weight="50.042771599657826" />
          </LayoutTabPage>
          <LayoutTabPage DashboardItem="dashboardTabPage2">
            <LayoutGroup Orientation="Vertical" Weight="24.411827540496137">
              <LayoutItem DashboardItem="chartDashboardItem1" Weight="45.924764890282134" />
              <LayoutGroup />
            </LayoutGroup>
          </LayoutTabPage>
          <LayoutTabPage DashboardItem="dashboardTabPage3">
            <LayoutItem DashboardItem="chartDashboardItem2" Weight="22.669677161698225" />
          </LayoutTabPage>
        </LayoutTabContainer>
      </LayoutGroup>
    </LayoutGroup>
  </LayoutTree>
</Dashboard>',
			60,
			'AMDM_Dashboards_Metrics',
			NULL

	EXEC [dbo].[METADATA_DASHBOARD]  
			N'AMDM_Dashboards_HealthDevice', 
			@amdmDashboardDeviceHealthId, 
			4, 
			'<?xml version="1.0" encoding="utf-8"?>
<Dashboard CurrencyCulture="es-CO">
  <Title Text="Estado de Dispositivos" />
  <DataSources>
    <SqlDataSource Name="SQL Data Source 1" ComponentName="dashboardSqlDataSource1">
      <Connection Name="aemmConnection" ProviderKey="MSSqlServer">
        <Parameters>
          <Parameter Name="server" Value="" />
          <Parameter Name="database" Value="" />
          <Parameter Name="useIntegratedSecurity" Value="False" />
          <Parameter Name="read only" Value="1" />
          <Parameter Name="generateConnectionHelper" Value="false" />
          <Parameter Name="userid" Value="" />
          <Parameter Name="password" Value="" />
        </Parameters>
      </Connection>
      <Query Type="CustomSqlQuery" Name="General">
        <Sql>SELECT [devicename]
      ,[percentusedexternalstorage]
      ,[riskexternalstorage]
      ,[percentusedinternalstorage]
      ,[riskinternalstorage]
      ,[percentusedrammemory]
      ,[riskrammemory]
      ,[percentbatterylevel]
      ,[riskbatterylevel]
      ,[signalstrength]
      ,[risksignalstrength]
      ,[wifisignalstrength]
      ,[riskwifisignalstrength]
      ,[date_value]
      ,[time_value]
      ,[recorddate]
  FROM [VIEW_AMDM_DASHBOARD_HEALTHDEVICE]</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="InternalStorage">
        <Sql>SELECT deviceid,devicename,CAST(percentusedinternalstorage as FLOAT)/100 as percentusedinternalstorage,riskinternalstorage,date_value
from VIEW_AMDM_DASHBOARD_HEALTHDEVICE</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="ExternalStorage">
        <Sql>SELECT deviceid,devicename,CAST(percentusedexternalstorage AS FLOAT)/100 AS percentusedexternalstorage ,riskexternalstorage,date_value
from VIEW_AMDM_DASHBOARD_HEALTHDEVICE</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="BatteryLevel">
        <Sql>SELECT deviceid,devicename,CAST(percentbatterylevel AS FLOAT)/100 AS percentbatterylevel,riskbatterylevel,date_value
from VIEW_AMDM_DASHBOARD_HEALTHDEVICE</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="CellSignalStrength">
        <Sql>SELECT deviceid,devicename,CAST(signalstrength AS FLOAT)/100 AS signalstrength,risksignalstrength,date_value
from VIEW_AMDM_DASHBOARD_HEALTHDEVICE</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="WifiSignalStrenght">
        <Sql>SELECT deviceid,devicename,CAST(wifisignalstrength AS FLOAT)/100 AS wifisignalstrength,riskwifisignalstrength,date_value
from VIEW_AMDM_DASHBOARD_HEALTHDEVICE</Sql>
      </Query>
      <Query Type="CustomSqlQuery" Name="Counters">
        <Sql>SELECT
deviceid,
CASE
WHEN
riskexternalstorage +
riskinternalstorage +
riskrammemory +
riskbatterylevel +
risksignalstrength +
riskwifisignalstrength > 0
THEN 1
ELSE 0
END AS riskstate,
date_value
FROM VIEW_AMDM_DASHBOARD_HEALTHDEVICE</Sql>
      </Query>
      <ResultSchema>
        <DataSet Name="SQL Data Source 1">
          <View Name="General">
            <Field Name="devicename" Type="String" />
            <Field Name="percentavailableexternalstorage" Type="Double" />
            <Field Name="riskexternalstorage" Type="Int32" />
            <Field Name="percentavailableinternalstorage" Type="Double" />
            <Field Name="riskinternalstorage" Type="Int32" />
            <Field Name="percentavailablerammemory" Type="Double" />
            <Field Name="riskrammemory" Type="Int32" />
            <Field Name="percentbatterylevel" Type="Double" />
            <Field Name="riskbatterylevel" Type="Int32" />
            <Field Name="signalstrength" Type="Double" />
            <Field Name="risksignalstrength" Type="Int32" />
            <Field Name="wifisignalstrength" Type="Double" />
            <Field Name="riskwifisignalstrength" Type="Int32" />
            <Field Name="date_value" Type="DateTime" />
            <Field Name="time_value" Type="Unknown" />
            <Field Name="recorddate" Type="DateTime" />
          </View>
          <View Name="InternalStorage">
            <Field Name="deviceid" Type="Int32" />
            <Field Name="devicename" Type="String" />
            <Field Name="percentavailableinternalstorage" Type="Double" />
            <Field Name="riskinternalstorage" Type="Int32" />
            <Field Name="date_value" Type="DateTime" />
          </View>
          <View Name="ExternalStorage">
            <Field Name="deviceid" Type="Int32" />
            <Field Name="devicename" Type="String" />
            <Field Name="percentavailableexternalstorage" Type="Double" />
            <Field Name="riskexternalstorage" Type="Int32" />
            <Field Name="date_value" Type="DateTime" />
          </View>
          <View Name="BatteryLevel">
            <Field Name="deviceid" Type="Int32" />
            <Field Name="devicename" Type="String" />
            <Field Name="percentbatterylevel" Type="Double" />
            <Field Name="riskbatterylevel" Type="Int32" />
            <Field Name="date_value" Type="DateTime" />
          </View>
          <View Name="CellSignalStrength">
            <Field Name="deviceid" Type="Int32" />
            <Field Name="devicename" Type="String" />
            <Field Name="signalstrength" Type="Double" />
            <Field Name="risksignalstrength" Type="Int32" />
            <Field Name="date_value" Type="DateTime" />
          </View>
          <View Name="WifiSignalStrenght">
            <Field Name="deviceid" Type="Int32" />
            <Field Name="devicename" Type="String" />
            <Field Name="wifisignalstrength" Type="Double" />
            <Field Name="riskwifisignalstrength" Type="Int32" />
            <Field Name="date_value" Type="DateTime" />
          </View>
        </DataSet>
      </ResultSchema>
      <ConnectionOptions CloseConnection="true" />
    </SqlDataSource>
  </DataSources>
  <Items>
    <ComboBox ComponentName="comboBoxDashboardItem1" Name="Año" ParentContainer="groupDashboardItem1" DataSource="dashboardSqlDataSource1" DataMember="General" IsMasterFilterCrossDataSource="true" ShowAllValue="false">
      <DataItems>
        <Dimension DataMember="date_value" Name="año" SortOrder="Descending" DefaultId="DataItem0" />
      </DataItems>
      <FilterDimensions>
        <Dimension DefaultId="DataItem0" />
      </FilterDimensions>
    </ComboBox>
    <ComboBox ComponentName="comboBoxDashboardItem2" Name="Mes" ParentContainer="groupDashboardItem1" DataSource="dashboardSqlDataSource1" DataMember="General" IsMasterFilterCrossDataSource="true" ShowAllValue="false">
      <DataItems>
        <Dimension DataMember="date_value" Name="mes" SortOrder="Descending" DateTimeGroupInterval="Month" DefaultId="DataItem0" />
      </DataItems>
      <FilterDimensions>
        <Dimension DefaultId="DataItem0" />
      </FilterDimensions>
    </ComboBox>
    <Grid ComponentName="gridDashboardItem1" Name=" " ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="InternalStorage" FilterString="[DataItem4] = 1">
      <DataItems>
        <Dimension DataMember="devicename" Name=" " SortOrder="Descending" SortByMeasure="DataItem1" DefaultId="DataItem0" />
        <Measure DataMember="percentusedinternalstorage" Name=" " DefaultId="DataItem1">
          <NumericFormat FormatType="Percent" Precision="0" />
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem2" />
        <Dimension DataMember="date_value" DefaultId="DataItem3" />
        <Dimension DataMember="riskinternalstorage" DefaultId="DataItem4" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem2" />
        <Dimension DefaultId="DataItem3" />
        <Dimension DefaultId="DataItem4" />
      </HiddenDimensions>
      <GridColumns>
        <GridDimensionColumn>
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn>
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions />
    </Grid>
    <Grid ComponentName="gridDashboardItem2" Name=" " ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="ExternalStorage" FilterString="[DataItem4] = 1">
      <DataItems>
        <Dimension DataMember="devicename" SortOrder="Descending" SortByMeasure="DataItem1" DefaultId="DataItem0" />
        <Measure DataMember="percentusedexternalstorage" DefaultId="DataItem1">
          <NumericFormat FormatType="Percent" Precision="0" />
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem2" />
        <Dimension DataMember="date_value" DefaultId="DataItem3" />
        <Dimension DataMember="riskexternalstorage" DefaultId="DataItem4" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem2" />
        <Dimension DefaultId="DataItem3" />
        <Dimension DefaultId="DataItem4" />
      </HiddenDimensions>
      <GridColumns>
        <GridDimensionColumn Name=" ">
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Name=" ">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions />
    </Grid>
    <Grid ComponentName="gridDashboardItem3" Name=" " ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="BatteryLevel" FilterString="[DataItem4] = 1">
      <DataItems>
        <Dimension DataMember="devicename" SortByMeasure="DataItem1" DefaultId="DataItem0" />
        <Measure DataMember="percentbatterylevel" DefaultId="DataItem1">
          <NumericFormat FormatType="Percent" Precision="0" />
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem2" />
        <Dimension DataMember="date_value" DefaultId="DataItem3" />
        <Dimension DataMember="riskbatterylevel" DefaultId="DataItem4" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem2" />
        <Dimension DefaultId="DataItem3" />
        <Dimension DefaultId="DataItem4" />
      </HiddenDimensions>
      <GridColumns>
        <GridDimensionColumn Name=" " Weight="102.18120805369128">
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Name=" " Weight="47.818791946308728">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions ColumnWidthMode="Manual" />
    </Grid>
    <Grid ComponentName="gridDashboardItem4" Name="Grid 4" ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="CellSignalStrength" FilterString="[DataItem4] = 1">
      <DataItems>
        <Dimension DataMember="devicename" SortByMeasure="DataItem1" DefaultId="DataItem0" />
        <Measure DataMember="signalstrength" DefaultId="DataItem1">
          <NumericFormat FormatType="Percent" Precision="0" Unit="Ones" />
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem2" />
        <Dimension DataMember="date_value" DefaultId="DataItem3" />
        <Dimension DataMember="risksignalstrength" DefaultId="DataItem4" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem2" />
        <Dimension DefaultId="DataItem3" />
        <Dimension DefaultId="DataItem4" />
      </HiddenDimensions>
      <GridColumns>
        <GridDimensionColumn Name=" ">
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Name=" ">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions />
    </Grid>
    <Grid ComponentName="gridDashboardItem5" Name="Grid 5" ShowCaption="false" DataSource="dashboardSqlDataSource1" DataMember="WifiSignalStrenght" FilterString="[DataItem4] = 1">
      <DataItems>
        <Dimension DataMember="devicename" SortByMeasure="DataItem1" DefaultId="DataItem0" />
        <Measure DataMember="wifisignalstrength" DefaultId="DataItem1">
          <NumericFormat FormatType="Percent" Precision="0" />
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem2" />
        <Dimension DataMember="date_value" DefaultId="DataItem3" />
        <Dimension DataMember="riskwifisignalstrength" DefaultId="DataItem4" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem2" />
        <Dimension DefaultId="DataItem3" />
        <Dimension DefaultId="DataItem4" />
      </HiddenDimensions>
      <GridColumns>
        <GridDimensionColumn Name=" " Weight="109.80392156862745">
          <Dimension DefaultId="DataItem0" />
        </GridDimensionColumn>
        <GridMeasureColumn Name=" " Weight="40.196078431372548">
          <Measure DefaultId="DataItem1" />
        </GridMeasureColumn>
      </GridColumns>
      <GridOptions ColumnWidthMode="Manual" />
    </Grid>
    <CustomItem ComponentName="customItemDashboardItem2" Name="Umbral Nivel de Batería" DataSource="dashboardSqlDataSource1" DataMember="BatteryLevel" CustomItemType="Donut">
      <CustomProperties>
        <barColorDonut>#E8841A</barColorDonut>
        <textColorDonut>#1B19AB</textColorDonut>
        <unitDonut>%</unitDonut>
      </CustomProperties>
      <DataItems>
        <Measure DataMember="riskbatterylevel" Expression="Round((ToDouble(Sum([riskbatterylevel])) / CountDistinct([deviceid]))*100)" DefaultId="DataItem0">
          <NumericFormat FormatType="Percent" Precision="0" />
          <WindowDefinition>
            <CustomItemWindowDefinition />
          </WindowDefinition>
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem1" />
        <Dimension DataMember="date_value" DefaultId="DataItem2" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem1" />
        <Dimension DefaultId="DataItem2" />
      </HiddenDimensions>
      <SliceTables>
        <SliceTable Name="SliceTable1">
          <Measures>
            <Measure DefaultId="DataItem0" />
          </Measures>
        </SliceTable>
      </SliceTables>
      <ColoringMeasures>
        <Measure DefaultId="DataItem0" />
      </ColoringMeasures>
      <CustomMetadata>
        <donutValue>
          <Item1 ItemType="Measure" DefaultId="DataItem0" />
        </donutValue>
      </CustomMetadata>
    </CustomItem>
    <CustomItem ComponentName="customItemDashboardItem3" Name="Umbral de Almacenamiento Externo" DataSource="dashboardSqlDataSource1" DataMember="ExternalStorage" CustomItemType="Donut">
      <CustomProperties>
        <barColorDonut>#E8841A</barColorDonut>
        <textColorDonut>#1B19AB</textColorDonut>
        <unitDonut>%</unitDonut>
      </CustomProperties>
      <DataItems>
        <Measure DataMember="riskexternalstorage" Expression="Round(ToDouble(Sum([riskexternalstorage])) / CountDistinct([deviceid])*100)" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
          <WindowDefinition>
            <CustomItemWindowDefinition />
          </WindowDefinition>
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem1" />
        <Dimension DataMember="date_value" DefaultId="DataItem2" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem1" />
        <Dimension DefaultId="DataItem2" />
      </HiddenDimensions>
      <SliceTables>
        <SliceTable Name="SliceTable1">
          <Measures>
            <Measure DefaultId="DataItem0" />
          </Measures>
        </SliceTable>
      </SliceTables>
      <ColoringMeasures>
        <Measure DefaultId="DataItem0" />
      </ColoringMeasures>
      <CustomMetadata>
        <donutValue>
          <Item1 ItemType="Measure" DefaultId="DataItem0" />
        </donutValue>
      </CustomMetadata>
    </CustomItem>
    <CustomItem ComponentName="customItemDashboardItem4" Name="Umbral Señal de Datos" DataSource="dashboardSqlDataSource1" DataMember="CellSignalStrength" CustomItemType="Donut">
      <CustomProperties>
        <barColorDonut>#E8841A</barColorDonut>
        <textColorDonut>#1B19AB</textColorDonut>
        <unitDonut>%</unitDonut>
      </CustomProperties>
      <DataItems>
        <Measure DataMember="risksignalstrength" Expression="Round(ToDouble(Sum([risksignalstrength])) / CountDistinct([deviceid])*100)" DefaultId="DataItem0">
          <NumericFormat FormatType="Percent" />
          <WindowDefinition>
            <CustomItemWindowDefinition />
          </WindowDefinition>
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem1" />
        <Dimension DataMember="date_value" DefaultId="DataItem2" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem1" />
        <Dimension DefaultId="DataItem2" />
      </HiddenDimensions>
      <SliceTables>
        <SliceTable Name="SliceTable1">
          <Measures>
            <Measure DefaultId="DataItem0" />
          </Measures>
        </SliceTable>
      </SliceTables>
      <ColoringMeasures>
        <Measure DefaultId="DataItem0" />
      </ColoringMeasures>
      <CustomMetadata>
        <donutValue>
          <Item1 ItemType="Measure" DefaultId="DataItem0" />
        </donutValue>
      </CustomMetadata>
    </CustomItem>
    <CustomItem ComponentName="customItemDashboardItem5" Name="Umbral Señal Wifi" DataSource="dashboardSqlDataSource1" DataMember="WifiSignalStrenght" CustomItemType="Donut">
      <CustomProperties>
        <barColorDonut>#E8841A</barColorDonut>
        <textColorDonut>#1B19AB</textColorDonut>
        <unitDonut>%</unitDonut>
      </CustomProperties>
      <DataItems>
        <Measure DataMember="riskwifisignalstrength" Expression="Round(ToDouble(Sum([riskwifisignalstrength])) / CountDistinct([deviceid])*100)" DefaultId="DataItem0">
          <WindowDefinition>
            <CustomItemWindowDefinition />
          </WindowDefinition>
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem1" />
        <Dimension DataMember="date_value" DefaultId="DataItem2" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem1" />
        <Dimension DefaultId="DataItem2" />
      </HiddenDimensions>
      <SliceTables>
        <SliceTable Name="SliceTable1">
          <Measures>
            <Measure DefaultId="DataItem0" />
          </Measures>
        </SliceTable>
      </SliceTables>
      <ColoringMeasures>
        <Measure DefaultId="DataItem0" />
      </ColoringMeasures>
      <CustomMetadata>
        <donutValue>
          <Item1 ItemType="Measure" DefaultId="DataItem0" />
        </donutValue>
      </CustomMetadata>
    </CustomItem>
    <CustomItem ComponentName="customItemDashboardItem7" Name="Umbral de Almacenamiento Interno" DataSource="dashboardSqlDataSource1" DataMember="InternalStorage" CustomItemType="Donut">
      <CustomProperties>
        <barColorDonut>#E8841A</barColorDonut>
        <textColorDonut>#1B19AB</textColorDonut>
        <unitDonut>%</unitDonut>
      </CustomProperties>
      <DataItems>
        <Measure DataMember="riskinternalstorage" Expression="Round((ToDouble(Sum([riskinternalstorage])) / CountDistinct([deviceid]))*100)" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
          <WindowDefinition>
            <CustomItemWindowDefinition />
          </WindowDefinition>
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem1" />
        <Dimension DataMember="date_value" DefaultId="DataItem2" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem1" />
        <Dimension DefaultId="DataItem2" />
      </HiddenDimensions>
      <SliceTables>
        <SliceTable Name="SliceTable1">
          <Measures>
            <Measure DefaultId="DataItem0" />
          </Measures>
        </SliceTable>
      </SliceTables>
      <ColoringMeasures>
        <Measure DefaultId="DataItem0" />
      </ColoringMeasures>
      <CustomMetadata>
        <donutValue>
          <Item1 ItemType="Measure" DefaultId="DataItem0" />
        </donutValue>
      </CustomMetadata>
    </CustomItem>
    <Card ComponentName="cardDashboardItem1" Name="Dispositivos con Reporte de Estado" DataSource="dashboardSqlDataSource1" DataMember="Counters">
      <DataItems>
        <Measure DataMember="deviceid" SummaryType="CountDistinct" DefaultId="DataItem0">
          <NumericFormat FormatType="General" />
        </Measure>
        <Measure DataMember="deviceid" Expression="CountDistinct( [deviceid] ) - Sum( [riskstate] )" DefaultId="DataItem1">
          <NumericFormat FormatType="General" />
          <WindowDefinition>
            <CardWindowDefinition />
          </WindowDefinition>
        </Measure>
        <Measure DataMember="riskstate" DefaultId="DataItem2">
          <NumericFormat FormatType="General" />
        </Measure>
        <Dimension DataMember="date_value" DateTimeGroupInterval="Month" DefaultId="DataItem3" />
        <Dimension DataMember="date_value" DefaultId="DataItem4" />
      </DataItems>
      <HiddenDimensions>
        <Dimension DefaultId="DataItem3" />
        <Dimension DefaultId="DataItem4" />
      </HiddenDimensions>
      <FormatRules>
        <CardItemDeltaFormatRule Name="Format Rule 1" LayoutItemApplyTo="ActualValue" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="Greater">
            <AppearanceSettings AppearanceType="FontBold" />
            <Value1 Type="System.Int32" Value="-1" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
        <CardItemDeltaFormatRule Name="Format Rule 2" DeltaValueType="ActualValue" CardId="DataItem0">
          <FormatConditionValue Condition="Greater">
            <AppearanceSettings AppearanceType="FontBold" />
            <Value1 Type="System.Decimal" Value="-1" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
        <CardItemDeltaFormatRule Name="Format Rule 3" LayoutItemApplyTo="ActualValue" DeltaValueType="ActualValue" CardId="DataItem1">
          <FormatConditionValue Condition="Greater">
            <AppearanceSettings AppearanceType="FontBlue" />
            <Value1 Type="System.Decimal" Value="-1" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
        <CardItemDeltaFormatRule Name="Format Rule 4" DeltaValueType="ActualValue" CardId="DataItem1">
          <FormatConditionValue Condition="Greater">
            <AppearanceSettings AppearanceType="FontBold" />
            <Value1 Type="System.Decimal" Value="-1" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
        <CardItemDeltaFormatRule Name="Format Rule 5" LayoutItemApplyTo="ActualValue" DeltaValueType="ActualValue" CardId="DataItem2">
          <FormatConditionValue Condition="Greater">
            <AppearanceSettings AppearanceType="FontRed" />
            <Value1 Type="System.Decimal" Value="-1" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
        <CardItemDeltaFormatRule Name="Format Rule 6" DeltaValueType="ActualValue" CardId="DataItem2">
          <FormatConditionValue Condition="Greater">
            <AppearanceSettings AppearanceType="FontBold" />
            <Value1 Type="System.Decimal" Value="-1" />
          </FormatConditionValue>
        </CardItemDeltaFormatRule>
      </FormatRules>
      <Card Name="Total Dispositivos">
        <ActualValue DefaultId="DataItem0" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
      <Card Name="Dispositivos OK">
        <ActualValue DefaultId="DataItem1" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
      <Card Name="Dispositivos a Revisar">
        <ActualValue DefaultId="DataItem2" />
        <AbsoluteVariationNumericFormat />
        <PercentVariationNumericFormat />
        <PercentOfTargetNumericFormat />
        <LayoutTemplate MinWidth="100" Type="Lightweight">
          <MainValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
          <SubValue Visible="true" ValueType="Title" DimensionIndex="0" />
          <BottomValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
          <DeltaIndicator Visible="false" />
          <Sparkline Visible="false" />
        </LayoutTemplate>
      </Card>
    </Card>
  </Items>
  <Groups>
    <Group ComponentName="groupDashboardItem1" Name="Seleccione un rango de fecha">
      <InteractivityOptions IsMasterFilter="true" />
    </Group>
  </Groups>
  <ColorScheme>
    <Entry DataSource="dashboardSqlDataSource1" DataMember="Counters" Color="-5921371">
      <MeasureKey>
        <Definition DataMember="deviceid" SummaryType="CountDistinct" />
      </MeasureKey>
    </Entry>
    <Entry DataSource="dashboardSqlDataSource1" DataMember="Counters" Color="-10857997">
      <MeasureKey>
        <Definition DataMember="deviceid" Expression="CountDistinct( [deviceid] ) - Sum( [riskstate] )">
          <WindowDefinition>
            <CustomItemWindowDefinition />
          </WindowDefinition>
        </Definition>
      </MeasureKey>
    </Entry>
    <Entry DataSource="dashboardSqlDataSource1" DataMember="Counters" Color="-2209950">
      <MeasureKey>
        <Definition DataMember="riskstate" />
      </MeasureKey>
    </Entry>
  </ColorScheme>
  <LayoutTree>
    <LayoutGroup Orientation="Vertical">
      <LayoutGroup Weight="24.893275862068965">
        <LayoutItem DashboardItem="cardDashboardItem1" Weight="44.786941164996854" />
        <LayoutGroup DashboardItem="groupDashboardItem1" Weight="31.355997957442131">
          <LayoutGroup Weight="19.232941664738082">
            <LayoutItem DashboardItem="comboBoxDashboardItem2" Weight="31.674454594471982" />
            <LayoutItem DashboardItem="comboBoxDashboardItem1" Weight="28.911408321490768" />
          </LayoutGroup>
        </LayoutGroup>
      </LayoutGroup>
      <LayoutGroup Weight="75.106724137931025">
        <LayoutGroup Orientation="Vertical" Weight="15.114396051781538">
          <LayoutItem DashboardItem="customItemDashboardItem7" Weight="31.448582516265624" />
          <LayoutItem DashboardItem="gridDashboardItem1" Weight="31.757707356639379" />
        </LayoutGroup>
        <LayoutGroup Orientation="Vertical" Weight="31.754878177164748">
          <LayoutGroup Weight="49.914821124361161">
            <LayoutItem DashboardItem="customItemDashboardItem3" Weight="44.055583573615337" />
            <LayoutItem DashboardItem="customItemDashboardItem2" Weight="47.758563980778959" />
          </LayoutGroup>
          <LayoutGroup Weight="50.085178875638839">
            <LayoutItem DashboardItem="gridDashboardItem2" Weight="33.894067784508906" />
            <LayoutItem DashboardItem="gridDashboardItem3" Weight="36.464849328940026" />
          </LayoutGroup>
        </LayoutGroup>
        <LayoutGroup Orientation="Vertical" Weight="16.018841364250061">
          <LayoutItem DashboardItem="customItemDashboardItem4" Weight="49.914821124361161" />
          <LayoutItem DashboardItem="gridDashboardItem4" Weight="50.085178875638839" />
        </LayoutGroup>
        <LayoutGroup Orientation="Vertical" Weight="16.838146168993561">
          <LayoutItem DashboardItem="customItemDashboardItem5" Weight="49.914821124361161" />
          <LayoutItem DashboardItem="gridDashboardItem5" Weight="50.085178875638839" />
        </LayoutGroup>
      </LayoutGroup>
    </LayoutGroup>
  </LayoutTree>
</Dashboard>',
			60,
			'AMDM_Dashboards_HealthDevice',
			NULL

COMMIT;

GO

--SchedureConfig
PRINT 'AMDM - Required data - Tasks'

EXEC [dbo].[METADATA_TASK] 33000, N'UpdateCubesForReports', N'Aranda.MDM.Business.Task.Report.UpdateDataCubeForReportsTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea de actualización de información de apps
EXEC [dbo].[METADATA_TASK] 33010, N'UpdateAllApplications', N'Aranda.MDM.Business.Task.Application.UpdateAllApplicationsTask', N'Aranda.MDM.Business.dll', 1

-- Insertar tarea para actualizar datos de KPIs
EXEC [dbo].[METADATA_TASK] 33020, N'UpdateKPIs', N'Aranda.MDM.Business.Task.Dashboard.UpdateKPITask', N'Aranda.MDM.Business.dll', 1

-- Insertar tarea para generar alertas
EXEC [dbo].[METADATA_TASK] 33021, N'AlertCreator', N'Aranda.MDM.Business.Task.Alert.AlertCreatorTask', N'Aranda.MDM.Business.dll', 1

-- Insertar tarea para limpiar los registros de ubicación del móvil de acuerdo a un umbral de tiempo
EXEC [dbo].[METADATA_TASK] 33022, N'ClearOldLocation', N'Aranda.MDM.Business.Task.Device.ClearOldLocationTask', N'Aranda.MDM.Business.dll', 1

-- Insertar tarea para consumo de un servicio web en backGround
EXEC [dbo].[METADATA_TASK] 33023, N'ASDKWebService', N'Aranda.MDM.Business.Task.Rules.AsdkWebServiceTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para salida o entrada del workingtime
EXEC [dbo].[METADATA_TASK] 33024, N'WorkingTimeEvent', N'Aranda.MDM.Business.Task.Rules.WorkingTimeEventTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para envió de PUSH periódico a los dispositivos 
EXEC [dbo].[METADATA_TASK] 33025, N'Ping', N'Aranda.MDM.Business.Task.Device.PingTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para envió de PUSH periódico a los dispositivos 
EXEC [dbo].[METADATA_TASK] 33039, N'PingV2', N'Aranda.MDM.Business.Task.Device.PingTaskV2', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para consumo de un servicio web de tipo Aranda CMDB en backGround
EXEC [dbo].[METADATA_TASK] 33026, N'CMDBWebService', N'Aranda.MDM.Business.Task.Integration.CmdbWebServiceTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para envío de notificaciones al dispositivo, en este caso cuando se harán de forma recurrente
EXEC [dbo].[METADATA_TASK] 33027, N'RecurrentNotificationExpense', N'Aranda.MDM.Business.Task.Rules.RecurrentNotificationExpenseTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para actualizar datos del dispositivo durante el enrollment de Windows 
EXEC [dbo].[METADATA_TASK] 33028, N'W10UpdateDeviceRecordTask', N'Aranda.MDM.Business.Task.Enrollment.W10UpdateDeviceRecordTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para crear el usuario en la empresa para Android for Work 
EXEC [dbo].[METADATA_TASK] 33029, N'CreateAndroidFWUserTask', N'Aranda.MDM.Business.Task.AFW.CreateAndroidFWUserTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para solicitar una url de registro ante Google Android for Work
EXEC [dbo].[METADATA_TASK] 33030, N'CreateRequestUrlRegisterAFWTask', N'Aranda.MDM.Business.Task.AFW.CreateRequestUrlRegisterAFWTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para enviar configuraciones manejadas a usuarios/dispositivos Android For Work
EXEC [dbo].[METADATA_TASK] 33031, N'SendManagedConfigurationsToUsersAFWTask', N'Aranda.MDM.Business.Task.AFW.SendManagedConfigurationsToUsersAFWTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para sincronizacion automática de aplicaciones aprobadas en Google Android for Work
EXEC [dbo].[METADATA_TASK] 33032, N'UpdateApplicationsAndroidForWorkTask', N'Aranda.MDM.Business.Task.AFW.UpdateApplicationsAfwTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para asignar aplicaciones aprobadas a usuarios de Google Android for Work
EXEC [dbo].[METADATA_TASK] 33033, N'AsignAFWApplicationsToUsersTask', N'Aranda.MDM.Business.Task.AFW.AsignAFWApplicationsToUsersTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para generar video de sesion de control remota
EXEC [dbo].[METADATA_TASK] 33034, N'MakeRCSessionVideoTask', N'Aranda.MDM.Media.Task.Video.VideoMakingTask', N'Aranda.MDM.Media.dll', 1

--Insertar Tarea para realizar archivamiento de registros antiguos en la base de datos
EXEC [dbo].[METADATA_TASK] 33035, N'MaintenanceProductDataBaseTask', N'Aranda.MDM.Business.Task.ProductUtilities.MaintenanceProductDataBaseTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para cancelar comandos de proyecto de gestion
EXEC [dbo].[METADATA_TASK] 33036, N'CancelCommandsManagementProjectTask', N'Aranda.MDM.Business.Task.ManagementProject.CancelCommandsManagementProjectTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para ejecutar proyecto de gestion
EXEC [dbo].[METADATA_TASK] 33037, N'ExecuteManagementProjectsTask', N'Aranda.MDM.Business.Task.ManagementProject.ExecuteManagementProjectsTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para enviar parámetros de configuración en vinculación ios por web
EXEC [dbo].[METADATA_TASK] 33038, N'SendConfigParamsEnrollmentIOsTask', N'Aranda.MDM.Business.Task.Enrollment.SendConfigParamsEnrollmentIOsTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para envío de parámetros de configuración de vinculación ios
EXEC [dbo].[METADATA_TASK] 33039, N'SendConfigParams', N'Aranda.MDM.Business.Task.Enrollment.SendConfigParamsEnrollmentIOsTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para procesamiento de resultados de comandos y/o eventos de dispositivo
EXEC [dbo].[METADATA_TASK] 33040, N'ProcessConsumptionTask', N'Aranda.MDM.Business.Task.Expense.ProcessConsumptionTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para acutalización de resumenes para planes de consumo
EXEC [dbo].[METADATA_TASK] 33041, N'UpdateExpensePlansSummaryTask', N'Aranda.MDM.Business.Task.Expense.UpdateExpensePlansSummaryTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea pare realizar distribuciones y aplicaciones de politicas
EXEC [dbo].[METADATA_TASK] 33042, N'ApplyPolicyTask', N'Aranda.MDM.Business.Task.Policy.ApplyPolicyTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea pare realizar la gestion de aplicaciones en AFW
EXEC [dbo].[METADATA_TASK] 33043, N'ManageApplicationsAfwTask', N'Aranda.MDM.Business.Task.AFW.ManageApplicationsAfwTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para actualizar comandos para dispositivo expirados
EXEC [dbo].[METADATA_TASK] 33044, N'ManageCommandExpirationTask', N'Aranda.MDM.Business.Task.Command.ManageCommandExpirationTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para enviar comando masivo a dispositivos
EXEC [dbo].[METADATA_TASK] 33045, N'ApplyMassiveCommandTask', N'Aranda.MDM.Business.Task.Command.ApplyMassiveCommandTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para cambiar contenido bloqueado a dispositivos
EXEC [dbo].[METADATA_TASK] 33046, N'ChangeLockContentToDevicesTask', N'Aranda.MDM.Business.Task.Command.ChangeLockContentToDevicesTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para cambiar masivamente plan de consumo a dispositivos
EXEC [dbo].[METADATA_TASK] 33047, N'ApplyMassiveExpensePlanTask', N'Aranda.MDM.Business.Task.Expense.ApplyMassiveExpensePlanTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para cambiar masivamente perfil de agente a dispositivos
EXEC [dbo].[METADATA_TASK] 33048, N'ApplyMassiveAgentProfileTask', N'Aranda.MDM.Business.Task.AgentProfile.ApplyMassiveAgentProfileTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para cambiar masivamente usuario propietario a dispositivos
EXEC [dbo].[METADATA_TASK] 33049, N'ApplyMassiveChangeOwnerTask', N'Aranda.MDM.Business.Task.Device.ApplyMassiveChangeOwnerTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para cambiar masivamente usuario propietario a dispositivos
EXEC [dbo].[METADATA_TASK] 33050, N'ValidateDeviceSoftwareVersionTask', N'Aranda.MDM.Business.Task.Device.ValidateDeviceSoftwareVersionTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para cancelar masivamente los comandos pendientes de aplicación de una política
EXEC [dbo].[METADATA_TASK] 33051, N'CancelPendingRequestPolicyTask', N'Aranda.MDM.Business.Task.Policy.CancelPendingRequestPolicyTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para sincronizar dispositivos al perfil de Apple Business Manager
EXEC [dbo].[METADATA_TASK] 33052, N'AbmSyncProfileDevicesTask', N'Aranda.MDM.Business.Task.ABM.AbmSyncProfileDevicesTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para asignar licencias de una aplicación a dispositivos en Volume Purchase Program
EXEC [dbo].[METADATA_TASK] 33053, N'VppAssignLicensesToDevicesTask', N'Aranda.MDM.Business.Task.VPP.VppAssignLicensesToDevicesTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para cambiar estado de alertas de forma masiva
EXEC [dbo].[METADATA_TASK] 33054, N'ChangeMassiveAlertStatusTask', N'Aranda.MDM.Business.Task.Alert.ChangeMassiveAlertStatusTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para cambiar estado de alertas de forma masiva
EXEC [dbo].[METADATA_TASK] 33055, N'CreateManagementProjectTask', N'Aranda.MDM.Business.Task.ManagementProject.CreateManagementProjectTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para obtener el Dialer
EXEC [dbo].[METADATA_TASK] 33056, N'GetDialerTask', N'Aranda.MDM.Business.Task.Application.GetDialerTask', N'Aranda.MDM.Business.dll', 1

--Insertar Tarea para reenviar política a dispositivos de acuerdo a filtros
EXEC [dbo].[METADATA_TASK] 33057, N'ResendPolicyByFiltersTask', N'Aranda.MDM.Business.Task.Policy.ResendPolicyByFiltersTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para enviar agente a dispositivo iOS
EXEC [dbo].[METADATA_TASK] 33058, N'SendAgentInstallationToIosDeviceTask', N'Aranda.MDM.Business.Task.Application.SendAgentInstallationToIosDeviceTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para enviar comando de validación de versión
EXEC [dbo].[METADATA_TASK] 33059, N'SendValidateVersionCommandTask', N'Aranda.MDM.Business.Task.Command.SendValidateVersionCommandTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para cancelar comandos de activación de métricas
EXEC [dbo].[METADATA_TASK] 33060, N'CancelEnableMetricsCommandTask', N'Aranda.MDM.Business.Task.Command.CancelEnableMetricsCommandTask', N'Aranda.MDM.Business.dll', 1

-- Insertar tarea para limpiar los registros de métricas de aplicaciones reportadas por los dispositivos de acuerdo a un umbral de tiempo
EXEC [dbo].[METADATA_TASK] 33061, N'ClearOldMetricsTask', N'Aranda.MDM.Business.Task.Device.ClearOldMetricsTask', N'Aranda.MDM.Business.dll', 1

-- Insertar tarea para gestionar aplicaciones
EXEC [dbo].[METADATA_TASK] 33062, N'ManageApplicationsTask', N'Aranda.MDM.Business.Task.Application.ManageApplicationsTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para cancelar comandos de activación de salud de dispositivo
EXEC [dbo].[METADATA_TASK] 33063, N'CancelEnableHealthDeviceCommandTask', N'Aranda.MDM.Business.Task.Command.CancelEnableHealthDeviceCommandTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para validar dispositivos sin perfil de agente
EXEC [dbo].[METADATA_TASK] 33064, N'ValidateDevicesWithoutAgentProfileTask', N'Aranda.MDM.Business.Task.Device.ValidateDevicesWithoutAgentProfileTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para asignar comando de reporte de estado (salud) de dispositivos
EXEC [dbo].[METADATA_TASK] 33065, N'AssignHealthDeviceReportCommand', N'Aranda.MDM.Business.Task.Command.AssignHealthDeviceReportCommand', N'Aranda.MDM.Business.dll', 1

--Insertar tarea para sincronización de Adons Móviles desde almacenamiento remoto
EXEC [dbo].[METADATA_TASK] 33066, N'SynchronizeAdonsListTask', N'Aranda.MDM.Business.Task.Adons.SynchronizeAdonsListTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea que se usa para la notificación de seguimiento
EXEC [dbo].[METADATA_TASK] 33067, N'NotificationTrackingTask', N'Aranda.MDM.Business.Task.Settings.NotificationTrackingTask', N'Aranda.MDM.Business.dll', 1

--Insertar tarea que se usa para generar alertas en caso de que encuentre dispositivos sin configuración
EXEC [dbo].[METADATA_TASK] 33068, N'ValidateDevicesWithoutPolicyOrRule', N'Aranda.MDM.Business.Task.Device.ValidateDevicesWithoutPolicyOrRuleTask', N'Aranda.MDM.Business.dll', 1

--El ID 33069 queda reservado para las tareas de pubsub
--Insertar tarea que se usa para limpiar los puntos de ubicacion de un dispositivo desvinculado
EXEC [dbo].[METADATA_TASK] 33070, N'ClearLocationByDeviceTask', N'Aranda.MDM.Business.Task.Device.ClearLocationByDeviceTask', N'Aranda.MDM.Business.dll', 1

EXEC [dbo].[METADATA_TASK] 33071, N'SaveMassiveEnrollmentTask', N'Aranda.MDM.Business.Task.Enrollment.SaveMassiveEnrollmentTask', N'Aranda.MDM.Business.dll', 1

EXEC [dbo].[METADATA_TASK] 33072, N'ProccessMobilePushTask', N'Aranda.MDM.Business.Push.ProccessMobilePushTask', N'Aranda.MDM.Business.dll', 1

GO
PRINT 'AMDM - Required data - Scheduler'

DECLARE @Now DATETIME
SET @Now = DATETIMEFROMPARTS(YEAR(GETUTCDATE()),MONTH(GETUTCDATE()),DAY(GETUTCDATE()), 6, 0, 0, 0)

								--@sche_name,								--@sche_description,															--@sche_frecuency_type,		--@sche_recurse_every,	--@sche_weekdays,	--@sche_months,		--@sche_cardinal_days,	--@sche_ordinal_days,	--@sche_start_date,		--@sche_task_id,	--@sche_application_id,		--@sche_next_execution,		--@sche_max_delay
--Programar tarea de actualización de cubos de reportes
EXEC [dbo].[METADATA_SCHEDULER]	N'AMDM_ExecStoreProceduresForReports',		N'Executes calls to StoreProcedures for reports', 								N'Daily',					1,						0,					0,					0,						0,						@Now,										33000,				33,							NULL,						120 												
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea de actualización de información de apps
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_UpdateAllApplications',				N'Obtiene información de las aplicaciones del catálogo',						N'Daily',					7,						0,					0,					0,						0,						@Now,					33010,				33,							NULL,						120 														
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea para actualizar todos los KPIs cada cierto tiempo
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_UpdateAllKPIs',						N'Actualiza todos los KPIs',													N'Interval',				90,						0,					0,					0,						0,						@Now,					33020,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

-- Programar tarea para generar alertas cuando un dispositivo ha estado ausente
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_AlertDeviceAbsent',					N'AMDM Calculo de ejecución de alerta por ausentismo de dispositivo',			N'Daily',					1,						0,					0,					0,						0,						@Now,					33021,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);
	UPDATE [dbo].[AFW_SCHEDULER]  SET [sche_parameters] = '{"AlertType":"AbsentDeviceAlert"}' WHERE [sche_name] = 'AMDM_AlertDeviceAbsent' AND [sche_frecuency_type] = 'Daily' AND [sche_task_id] = 33021;

-- Programar tarea para limpiar los registros de ubicación del móvil de acuerdo a un umbral de tiempo
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_ClearOldLocationSchedule',			N'AMDM Calculo de ejecución de limpieza de ubicaciones de móvil',				N'Daily',					1,						0,					0,					0,						0,						@Now,					33022,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea para envió de PUSH periódico a los dispositivos 
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_Ping',								N'AMDM Envió de PUSH a los dispositivos para sincronizar información',			N'Interval',                30,						0,					0,					0,						0,						@Now,					33025,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);
	UPDATE [dbo].[AFW_SCHEDULER]  SET [sche_parameters] = '{"round":"0", "indexRound":"0","amountDevice":"0","schedulerId":"0"}' WHERE [sche_name] = 'AMDM_Ping' AND [sche_frecuency_type] = 'Interval' AND [sche_task_id] = 33025

--Programar tarea para sincronizacion automática de aplicaciones aprobadas en Google Android for Work
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_UpdateApplicationsAFW',				N'AMDM actualización de aplicaciones aprobadas en Google Android for Work',		N'Daily',					1,						0,					0,					0,						0,						@Now,					33032,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea periodica para archivamiento de registros antiguos en la base de datos
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_Maintenance Database',				N'AMDM archivamiento de registros antiguos',									N'Daily',					7,						0,					0,					0,						0,						@Now,					33035,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea para envío de parámetros de configuración de vinculación ios
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_SendConfigParams',					N'AMDM Envío de parámetros de configuración a dispositivos ios pendientes',		N'Interval',				10,						0,					0,					0,						0,						@Now,					33038,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea periodica para acutalización de resumenes para planes de consumo
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_Update Expense Plan Summaries',		N'AMDM actialización de resumenes de planes de consumo',						N'Interval',				5,						0,					0,					0,						0,						@Now,					33041,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea para cancelación de comandos expirados
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_Cancel Devices Expired Commands',	N'AMDM Cancelacion de comandos expirados',										N'Daily',					1,						0,					0,					0,						0,						@Now,					33044,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea para sincronizar dispositivos al perfil de Apple Business manager
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_AbmSyncProfileDevicesTask',			N'AMDM Sincronización de dispositivos a perfil de Apple Business Manager',		N'Interval',				720,					0,					0,					0,						0,						@Now,					33052,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea para limpiar los registros de métricas de los dispositivos
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_ClearOldMetricsSchedule',			N'AMDM limpieza de métricas de aplicaciones reportadas por dispositivos',		N'Daily',					7,						0,					0,					0,						0,						@Now,					33061,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea para validar dispositivos sin perfil de agente asignado
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_ValidateDevicesWithoutAgentProfile', N'AMDM Validación de dispositivos sin perfil de agente',						N'Daily',					1,						0,					0,					0,						0,						@Now,					33064,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea para sincronizar periódicamente adons móviles desde almacenamiento remoto hacia BD local
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_SynchronizeAdonsListTask'		  ,N'AMDM Sincronización de listado local de Adons desde contenedor remoto',	   N'Interval',					720,					0,					0,					0,						0,						@Now,					33066,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea para notificar periódicamente si la cantidad de mensajes de seguimiento fue superado por el mínimo
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_NotificationTrackingTask',N'AMDM notificación que se hace para indicar que la cantidad de mensajes son altos',	   N'Interval',					720,					0,					0,					0,						0,						@Now,					33067,				33,							NULL,						120
SET @Now = DATEADD(MINUTE, 10, @Now);

--Programar tarea para notificar periódicamente si existen dispositivos sin politica y/o regla
EXEC [dbo].[METADATA_SCHEDULER] N'AMDM_ValidateDevicesWithoutPolicyOrRule',N'AMDM Validación de dispositivos sin configuración',						   N'Daily',					1,						0,					0,					0,						0,						@Now,					33068,				33,							NULL,						120

--Programar tarea para consultar de forma periodica si hay notificaciones push para procesar
EXEC [dbo].[METADATA_SCHEDULER] N'ProccessMobilePushTask',				  N'Procesar notificaciones push',												   N'Interval',					1,						0,					0,					0,						0,						@Now,					33072,				33,							NULL,						120

GO

--RuleEvaluator
PRINT 'AMDM - Required data - Rule context'

EXEC [dbo].[METADATA_RULE_CONTEXT]  33001, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.HardwareChangeContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33002, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.NetworkChangeContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33003, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.LocationChangeContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33004, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.DeviceChangeContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33005, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.EnrollStatusChangeContext', 'EnrollmentId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33006, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.GeofencingContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33007, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.DashDeviceChangeContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33008, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.WorkHoraryChangeContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33009, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.NewInventoryChangeContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33010, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.ExpenseChangeContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33011, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.WififencingContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33012, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.UserLoggedContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33013, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.PlanExpenseChangeContext', 'PlanId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33014, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.LoginFailedContext', 'DeviceId'
EXEC [dbo].[METADATA_RULE_CONTEXT]  33015, 'Aranda.MDM.Business.dll', 'Aranda.MDM.Business.RuleContext.FulfilledPolicyContext', 'DeviceId'
GO
PRINT 'AMDM - Required data - Rule action type'

--                              @acty_id	@acty_context_id	@acty_name											@acty_class_name												@acty_assembly_path
EXEC [dbo].[METADATA_RULE_ACTION] 33001,    33001,				'NewInventary_UpdateKpi_HardwareChangeContext',		'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33002,	33001,				'SendEmail_HardwareChangeContext',					'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33003,	33001,				'MobileNotificacion_HardwareChangeContext',			'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33004,	33001,				'SendSound_HardwareChangeContext',					'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33005,	33001,				'AlertToConsole_HardwareChangeContext',				'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33006,	33001,				'ChangePolicy_HardwareChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33007,	33001,				'Unenroll_HardwareChangeContext',					'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33008,	33001,				'WebServiceASDK_HardwareChangeContext',				'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33009,	33001,				'DeviceLock_HardwareChangeContext',					'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33010,	33001,				'ContentLock_HardwareChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33011,	33001,				'ContentUnlock_HardwareChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33012,	33001,				'ChangePassword_HardwareChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33013,	33001,				'BlockScreen_HardwareChangeContext',				'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33014,	33001,				'WipeDevice_HardwareChangeContext',					'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33015,	33001,				'TotalLock_HardwareChangeContext',					'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33016,	33001,				'TotalUnlock_HardwareChangeContext',				'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33017,	33002,				'NewInventary_UpdateKpi_NetworkChangeContext',		'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33018,	33002,				'SendEmail_NetworkChangeContext',					'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33019,	33002,				'MobileNotificacion_NetworkChangeContext',			'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33020,	33002,				'SendSound_NetworkChangeContext',					'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33021,	33002,				'AlertToConsole_NetworkChangeContext',				'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33022,	33002,				'ChangePolicy_NetworkChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33023,	33002,				'Unenroll_NetworkChangeContext',					'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33024,	33002,				'WebServiceASDK_NetworkChangeContext',				'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33025,	33002,				'DeviceLock_NetworkChangeContext',					'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33026,	33002,				'ContentLock_NetworkChangeContext',					'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33027,	33002,				'ContentUnlock_NetworkChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33028,	33002,				'ChangePassword_NetworkChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33029,	33002,				'BlockScreen_NetworkChangeContext',					'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33030,	33002,				'WipeDevice_NetworkChangeContext',					'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33031,	33002,				'TotalLock_NetworkChangeContext',					'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33032,	33002,				'TotalUnlock_NetworkChangeContext',					'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33033,	33003,				'NewInventary_UpdateKpi_LocationChangeContext',		'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33034,	33003,				'SendEmail_LocationChangeContext',					'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33035,	33003,				'MobileNotificacion_LocationChangeContext',			'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33036,	33003,				'SendSound_LocationChangeContext',					'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33037,	33003,				'AlertToConsole_LocationChangeContext',				'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33038,	33003,				'ChangePolicy_LocationChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33039,	33003,				'Unenroll_LocationChangeContext',					'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33040,	33003,				'WebServiceASDK_LocationChangeContext',				'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33041,	33003,				'DeviceLock_LocationChangeContext',					'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33042,	33003,				'ContentLock_LocationChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33043,	33003,				'ContentUnlock_LocationChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33044,	33003,				'ChangePassword_LocationChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33045,	33003,				'BlockScreen_LocationChangeContext',				'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33046,	33003,				'WipeDevice_LocationChangeContext',					'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33047,	33003,				'TotalLock_LocationChangeContext',					'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33048,	33003,				'TotalUnlock_LocationChangeContext',				'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33049,	33004,				'NewInventary_UpdateKpi_DeviceChangeContext',		'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33050,	33004,				'SendEmail_DeviceChangeContext',					'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33051,	33004,				'MobileNotificacion_DeviceChangeContext',			'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33052,	33004,				'SendSound_DeviceChangeContext',					'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33053,	33004,				'AlertToConsole_DeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33054,	33004,				'ChangePolicy_DeviceChangeContext',					'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33055,	33004,				'Unenroll_DeviceChangeContext',						'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33056,	33004,				'WebServiceASDK_DeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33057,	33004,				'DeviceLock_DeviceChangeContext',					'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33058,	33004,				'ContentLock_DeviceChangeContext',					'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33059,	33004,				'ContentUnlock_DeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33060,	33004,				'ChangePassword_DeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33061,	33004,				'BlockScreen_DeviceChangeContext',					'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33062,	33004,				'WipeDevice_DeviceChangeContext',					'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33063,	33004,				'TotalLock_DeviceChangeContext',					'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33064,	33004,				'TotalUnlock_DeviceChangeContext',					'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33065,	33005,				'NewInventary_UpdateKpi_EnrollStatusChangeContext',	'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33066,	33005,				'SendEmail_EnrollStatusChangeContext',				'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33067,	33005,				'MobileNotificacion_EnrollStatusChangeContext',		'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33068,	33005,				'SendSound_EnrollStatusChangeContext',				'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33069,	33005,				'AlertToConsole_EnrollStatusChangeContext',			'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33070,	33005,				'ChangePolicy_EnrollStatusChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33071,	33005,				'Unenroll_EnrollStatusChangeContext',				'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33072,	33005,				'WebServiceASDK_EnrollStatusChangeContext',			'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33073,	33005,				'DeviceLock_EnrollStatusChangeContext',				'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33074,	33005,				'ContentLock_EnrollStatusChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33075,	33005,				'ContentUnlock_EnrollStatusChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33076,	33005,				'ChangePassword_EnrollStatusChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33077,	33005,				'BlockScreen_EnrollStatusChangeContext',			'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33078,	33005,				'WipeDevice_EnrollStatusChangeContext',				'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33079,	33005,				'TotalLock_EnrollStatusChangeContext',				'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33080,	33005,				'TotalUnlock_EnrollStatusChangeContext',			'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33081,	33006,				'NewInventary_UpdateKpi_GeofencingContext',			'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33082,	33006,				'SendEmail_GeofencingContext',						'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33083,	33006,				'MobileNotificacion_GeofencingContext',				'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33084,	33006,				'SendSound_GeofencingContext',						'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33085,	33006,				'AlertToConsole_GeofencingContext',					'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33086,	33006,				'ChangePolicy_GeofencingContext',					'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33087,	33006,				'Unenroll_GeofencingContext',						'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33088,	33006,				'WebServiceASDK_GeofencingContext',					'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33089,	33006,				'DeviceLock_GeofencingContext',						'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33090,	33006,				'ContentLock_GeofencingContext',					'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33091,	33006,				'ContentUnlock_GeofencingContext',					'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33092,	33006,				'ChangePassword_GeofencingContext',					'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33093,	33006,				'BlockScreen_GeofencingContext',					'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33094,	33006,				'WipeDevice_GeofencingContext',						'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33095,	33006,				'TotalLock_GeofencingContext',						'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33096,	33006,				'TotalUnlock_GeofencingContext',					'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33097,	33007,				'NewInventary_UpdateKpi_DashDeviceChangeContext',	'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33098,	33007,				'SendEmail_DashDeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33099,	33007,				'MobileNotificacion_DashDeviceChangeContext',		'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33100,	33007,				'SendSound_DashDeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33101,	33007,				'AlertToConsole_DashDeviceChangeContext',			'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33102,	33007,				'ChangePolicy_DashDeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33103,	33007,				'Unenroll_DashDeviceChangeContext',					'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33104,	33007,				'WebServiceASDK_DashDeviceChangeContext',			'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33105,	33007,				'DeviceLock_DashDeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33106,	33007,				'ContentLock_DashDeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33107,	33007,				'ContentUnlock_DashDeviceChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33108,	33007,				'ChangePassword_DashDeviceChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33109,	33007,				'BlockScreen_DashDeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33110,	33007,				'WipeDevice_DashDeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33111,	33007,				'TotalLock_DashDeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33112,	33007,				'TotalUnlock_DashDeviceChangeContext',				'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33113,	33008,				'NewInventary_UpdateKpi_WorkHoraryChangeContext',	'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33114,	33008,				'SendEmail_WorkHoraryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33115,	33008,				'MobileNotificacion_WorkHoraryChangeContext',		'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33116,	33008,				'SendSound_WorkHoraryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33117,	33008,				'AlertToConsole_WorkHoraryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33118,	33008,				'ChangePolicy_WorkHoraryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33119,	33008,				'Unenroll_WorkHoraryChangeContext',					'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33120,	33008,				'WebServiceASDK_WorkHoraryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33121,	33008,				'DeviceLock_WorkHoraryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33122,	33008,				'ContentLock_WorkHoraryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33123,	33008,				'ContentUnlock_WorkHoraryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33124,	33008,				'ChangePassword_WorkHoraryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33125,	33008,				'BlockScreen_WorkHoraryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33126,	33008,				'WipeDevice_WorkHoraryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33127,	33008,				'TotalLock_WorkHoraryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33128,	33008,				'TotalUnlock_WorkHoraryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33129,	33009,				'NewInventary_UpdateKpi_NewInventoryChangeContext',	'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33130,	33009,				'SendEmail_NewInventoryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33131,	33009,				'MobileNotificacion_NewInventoryChangeContext',		'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33132,	33009,				'SendSound_NewInventoryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33133,	33009,				'AlertToConsole_NewInventoryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33134,	33009,				'ChangePolicy_NewInventoryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33135,	33009,				'Unenroll_NewInventoryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33136,	33009,				'WebServiceASDK_NewInventoryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33137,	33009,				'DeviceLock_NewInventoryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33138,	33009,				'ContentLock_NewInventoryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33139,	33009,				'ContentUnlock_NewInventoryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33140,	33009,				'ChangePassword_NewInventoryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33141,	33009,				'BlockScreen_NewInventoryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33142,	33009,				'WipeDevice_NewInventoryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33143,	33009,				'TotalLock_NewInventoryChangeContext',				'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33144,	33009,				'TotalUnlock_NewInventoryChangeContext',			'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33145,	33010,				'NewInventary_UpdateKpi_ExpenseChangeContext',		'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33146,	33010,				'SendEmail_ExpenseChangeContext',					'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33147,	33010,				'MobileNotificacion_ExpenseChangeContext',			'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33148,	33010,				'SendSound_ExpenseChangeContext',					'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33149,	33010,				'AlertToConsole_ExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33150,	33010,				'ChangePolicy_ExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33151,	33010,				'Unenroll_ExpenseChangeContext',					'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33152,	33010,				'WebServiceASDK_ExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33153,	33010,				'DeviceLock_ExpenseChangeContext',					'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33154,	33010,				'ContentLock_ExpenseChangeContext',					'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33155,	33010,				'ContentUnlock_ExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33156,	33010,				'ChangePassword_ExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33157,	33010,				'BlockScreen_ExpenseChangeContext',					'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33158,	33010,				'WipeDevice_ExpenseChangeContext',					'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33159,	33010,				'TotalLock_ExpenseChangeContext',					'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33160,	33010,				'TotalUnlock_ExpenseChangeContext',					'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33161,	33011,				'NewInventary_UpdateKpi_WififencingContext',		'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33162,	33011,				'SendEmail_WififencingContext',						'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33163,	33011,				'MobileNotificacion_WififencingContext',			'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33164,	33011,				'SendSound_WififencingContext',						'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33165,	33011,				'AlertToConsole_WififencingContext',				'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33166,	33011,				'ChangePolicy_WififencingContext',					'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33167,	33011,				'Unenroll_WififencingContext',						'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33168,	33011,				'WebServiceASDK_WififencingContext',				'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33169,	33011,				'DeviceLock_WififencingContext',					'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33170,	33011,				'ContentLock_WififencingContext',					'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33171,	33011,				'ContentUnlock_WififencingContext',					'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33172,	33011,				'ChangePassword_WififencingContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33173,	33011,				'BlockScreen_WififencingContext',					'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33174,	33011,				'WipeDevice_WififencingContext',					'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33175,	33011,				'TotalLock_WififencingContext',						'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33176,	33011,				'TotalUnlock_WififencingContext',					'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33177,	33012,				'NewInventary_UpdateKpi_UserLoggedContext',			'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33178,	33012,				'SendEmail_UserLoggedContext',						'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33179,	33012,				'MobileNotificacion_UserLoggedContext',				'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33180,	33012,				'SendSound_UserLoggedContext',						'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33181,	33012,				'AlertToConsole_UserLoggedContext',					'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33182,	33012,				'ChangePolicy_UserLoggedContext',					'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33183,	33012,				'Unenroll_UserLoggedContext',						'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33184,	33012,				'WebServiceASDK_UserLoggedContext',					'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33185,	33012,				'DeviceLock_UserLoggedContext',						'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33186,	33012,				'ContentLock_UserLoggedContext',					'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33187,	33012,				'ContentUnlock_UserLoggedContext',					'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33188,	33012,				'ChangePassword_UserLoggedContext',					'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33189,	33012,				'BlockScreen_UserLoggedContext',					'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33190,	33012,				'WipeDevice_UserLoggedContext',						'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33191,	33012,				'TotalLock_UserLoggedContext',						'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33192,	33012,				'TotalUnlock_UserLoggedContext',					'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33193,	33013,				'NewInventary_UpdateKpi_PlanExpenseChangeContext',	'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33194,	33013,				'SendEmail_PlanExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33195,	33013,				'MobileNotificacion_PlanExpenseChangeContext',		'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33196,	33013,				'SendSound_PlanExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33197,	33013,				'AlertToConsole_PlanExpenseChangeContext',			'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33198,	33013,				'ChangePolicy_PlanExpenseChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33199,	33013,				'Unenroll_PlanExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33200,	33013,				'WebServiceASDK_PlanExpenseChangeContext',			'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33201,	33013,				'DeviceLock_PlanExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33202,	33013,				'ContentLock_PlanExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33203,	33013,				'ContentUnlock_PlanExpenseChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33204,	33013,				'ChangePassword_PlanExpenseChangeContext',			'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33205,	33013,				'BlockScreen_PlanExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33206,	33013,				'WipeDevice_PlanExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33207,	33013,				'TotalLock_PlanExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33208,	33013,				'TotalUnlock_PlanExpenseChangeContext',				'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33209,	33014,				'NewInventary_UpdateKpi_LoginFailedContext',		'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33210,	33014,				'SendEmail_LoginFailedContext',						'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33211,	33014,				'MobileNotificacion_LoginFailedContext',			'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33212,	33014,				'SendSound_LoginFailedContext',						'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33213,	33014,				'AlertToConsole_LoginFailedContext',				'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33214,	33014,				'ChangePolicy_LoginFailedContext',					'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33215,	33014,				'Unenroll_LoginFailedContext',						'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33216,	33014,				'WebServiceASDK_LoginFailedContext',				'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33217,	33014,				'DeviceLock_LoginFailedContext',					'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33218,	33014,				'ContentLock_LoginFailedContext',					'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33219,	33014,				'ContentUnlock_LoginFailedContext',					'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33220,	33014,				'ChangePassword_LoginFailedContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33221,	33014,				'BlockScreen_LoginFailedContext',					'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33222,	33014,				'WipeDevice_LoginFailedContext',					'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33223,	33014,				'TotalLock_LoginFailedContext',						'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33224,	33014,				'TotalUnlock_LoginFailedContext',					'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0

EXEC [dbo].[METADATA_RULE_ACTION] 33225,	33015,				'NewInventary_UpdateKpi_FulfilledPolicyContext',	'Aranda.MDM.Business.RuleEvaluator.UpdateKpiAction',			'Aranda.MDM.Business.dll', 0 
EXEC [dbo].[METADATA_RULE_ACTION] 33226,	33015,				'SendEmail_FulfilledPolicyContext',					'Aranda.MDM.Business.RuleEvaluator.SendEmailAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33227,	33015,				'MobileNotificacion_FulfilledPolicyContext',		'Aranda.MDM.Business.RuleEvaluator.MobileNotificacionAction',	'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33228,	33015,				'SendSound_FulfilledPolicyContext',					'Aranda.MDM.Business.RuleEvaluator.SendSoundAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33229,	33015,				'AlertToConsole_FulfilledPolicyContext',			'Aranda.MDM.Business.RuleEvaluator.AlertToConsoleAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33230,	33015,				'ChangePolicy_FulfilledPolicyContext',				'Aranda.MDM.Business.RuleEvaluator.ChangePolicyAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33231,	33015,				'Unenroll_FulfilledPolicyContext',					'Aranda.MDM.Business.RuleEvaluator.UnenrollAction',				'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33232,	33015,				'WebServiceASDK_FulfilledPolicyContext',			'Aranda.MDM.Business.RuleEvaluator.WebServicesAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33233,	33015,				'DeviceLock_FulfilledPolicyContext',				'Aranda.MDM.Business.RuleEvaluator.DeviceLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33234,	33015,				'ContentLock_FulfilledPolicyContext',				'Aranda.MDM.Business.RuleEvaluator.ContentLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33235,	33015,				'ContentUnlock_FulfilledPolicyContext',				'Aranda.MDM.Business.RuleEvaluator.ContentUnlockAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33236,	33015,				'ChangePassword_FulfilledPolicyContext',			'Aranda.MDM.Business.RuleEvaluator.ChangePasswordAction',		'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33237,	33015,				'BlockScreen_FulfilledPolicyContext',				'Aranda.MDM.Business.RuleEvaluator.BlockScreenAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33238,	33015,				'WipeDevice_FulfilledPolicyContext',				'Aranda.MDM.Business.RuleEvaluator.WipeDeviceAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33239,	33015,				'TotalLock_FulfilledPolicyContext',					'Aranda.MDM.Business.RuleEvaluator.TotalLockAction',			'Aranda.MDM.Business.dll', 0
EXEC [dbo].[METADATA_RULE_ACTION] 33240,	33015,				'TotalUnlock_FulfilledPolicyContext',				'Aranda.MDM.Business.RuleEvaluator.TotalUnlockAction',			'Aranda.MDM.Business.dll', 0
GO

--InstallReports
DECLARE 
	@amdmReportDevices       INT,
	@amdmReportPolicies      INT,
	@amdmReportApplications  INT,
	@amdmReportEnrollments   INT,
	@amdmReportConsumption   INT,
    @amdmReportTracking   INT


SELECT @amdmReportDevices = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_DevicesTitle' AND fold_application_id = 33
SELECT @amdmReportPolicies = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_PoliciesTitle' AND fold_application_id = 33
SELECT @amdmReportApplications = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_ApplicationsTitle' AND fold_application_id = 33
SELECT @amdmReportEnrollments = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_EnrollmentsTitle' AND fold_application_id = 33
SELECT @amdmReportConsumption = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_ConsumptionTitle' AND fold_application_id = 33
SELECT @amdmReportTracking = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AMDM_Reports_TrackingTitle' AND fold_application_id = 33


BEGIN TRAN

--Reporte resumido de dispositivos
	EXEC [dbo].[METADATA_REPORT] @amdmReportDevices,  N'AMDM_Report_Devices_Summary', 1,
	'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report2" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="DevicesStatus" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" ValueInfo="es" Name="language" />
  </Parameters>
  <Bands>
    <Item1 Ref="4" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="5" ControlType="DetailBand" Name="Detail" />
    <Item3 Ref="6" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="7" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="8" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="9" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Devices_Summary_descripcion">
          <StylePriority Ref="10" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="11" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" BackColor="Transparent" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="12" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="13" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="14" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="15" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="16" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="17" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="18" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="19" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="20" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="21" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="22" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="23" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="25" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="27" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
      <StylePriority Ref="29" UseFont="false" />
    </Item5>
    <Item6 Ref="30" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="4">
      <Controls>
        <Item1 Ref="31" ControlType="XRLabel" Name="label20" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Devices_Summary_statusdevicelist">
          <StylePriority Ref="32" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="33" ControlType="XRShape" Name="shape8" ForeColor="255,204,204,204">
          <StylePriority Ref="34" UseForeColor="false" />
        </Item2>
        <Item3 Ref="35" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="36">
            <DataContainer Ref="37" DataMember="DevicesStatus" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="38" Name="Series 1" ArgumentDataMember="Status" ValueDataMembersSerializable="Devices" LegendTextPattern="{A}">
                  <View Ref="39" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="40" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="41" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="42" />
            <OptionsPrint Ref="43" ImageFormat="Metafile" />
          </Chart>
        </Item3>
      </Controls>
    </Item6>
    <Item7 Ref="44" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="2">
      <Controls>
        <Item1 Ref="45" ControlType="XRLabel" Name="label3" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Devices_Summary_manufacturerlist">
          <StylePriority Ref="46" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="47" ControlType="XRLabel" Name="label2" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Devices_Summary_rooteddeviceslist">
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="49" ControlType="XRShape" Name="shape1" ForeColor="255,204,204,204">
          <StylePriority Ref="50" UseForeColor="false" />
        </Item3>
        <Item4 Ref="51" ControlType="XRChart" Name="chart8" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="52">
            <DataContainer Ref="53" DataMember="DevicesSecurity" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="54" Name="Series 1" ArgumentDataMember="StatusName" ValueDataMembersSerializable="Devices" LegendTextPattern="{A}">
                  <View Ref="55" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="56" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="57" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
              <SeriesTemplate Ref="58" ValueDataMembersSerializable="Devices" />
            </DataContainer>
            <Legend Ref="59" />
            <OptionsPrint Ref="60" ImageFormat="Metafile" />
          </Chart>
        </Item4>
        <Item5 Ref="61" ControlType="XRChart" Name="chart3" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="62">
            <DataContainer Ref="63" DataMember="DevicesManufacturer" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="64" Name="Series 1" ArgumentDataMember="Manufacturer" ValueDataMembersSerializable="Devices" LegendTextPattern="{A}">
                  <View Ref="65" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="66" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="67" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
              <SeriesTemplate Ref="68" ValueDataMembersSerializable="Devices" />
            </DataContainer>
            <Legend Ref="69" />
            <OptionsPrint Ref="70" ImageFormat="Metafile" />
          </Chart>
        </Item5>
      </Controls>
    </Item7>
    <Item8 Ref="71" ControlType="GroupHeaderBand" Name="GroupHeader3" Level="1">
      <Controls>
        <Item1 Ref="72" ControlType="XRLabel" Name="label5" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Devices_Summary_ownerlist">
          <StylePriority Ref="73" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="74" ControlType="XRLabel" Name="label4" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Devices_Summary_typelist">
          <StylePriority Ref="75" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="76" ControlType="XRShape" Name="shape3" ForeColor="255,204,204,204">
          <StylePriority Ref="77" UseForeColor="false" />
        </Item3>
        <Item4 Ref="78" ControlType="XRChart" Name="chart5" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="79">
            <DataContainer Ref="80" DataMember="DevicesOwner" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="81" Name="Series 1" ArgumentDataMember="Property" ValueDataMembersSerializable="Devices" LegendTextPattern="{A}">
                  <View Ref="82" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="83" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="84" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
              <SeriesTemplate Ref="85" ValueDataMembersSerializable="Devices" />
            </DataContainer>
            <Legend Ref="86" />
            <OptionsPrint Ref="87" ImageFormat="Metafile" />
          </Chart>
        </Item4>
        <Item5 Ref="88" ControlType="XRChart" Name="chart4" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="89">
            <DataContainer Ref="90" DataMember="DevicesDevType" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="91" Name="Series 1" ArgumentDataMember="Type" ValueDataMembersSerializable="Devices" LegendTextPattern="{A}">
                  <View Ref="92" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="93" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="94" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
              <SeriesTemplate Ref="95" ValueDataMembersSerializable="Devices" />
            </DataContainer>
            <Legend Ref="96" />
            <OptionsPrint Ref="97" ImageFormat="Metafile" />
          </Chart>
        </Item5>
      </Controls>
    </Item8>
    <Item9 Ref="98" ControlType="GroupHeaderBand" Name="GroupHeader4">
      <Controls>
        <Item1 Ref="99" ControlType="XRLabel" Name="label7" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Devices_Summary_lastreportlist">
          <StylePriority Ref="100" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="101" ControlType="XRLabel" Name="label6" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Devices_Summary_enrollmentdatelist">
          <StylePriority Ref="102" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="103" ControlType="XRShape" Name="shape5" ForeColor="255,204,204,204">
          <StylePriority Ref="104" UseForeColor="false" />
        </Item3>
        <Item4 Ref="105" ControlType="XRChart" Name="chart7" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="106">
            <DataContainer Ref="107" DataMember="DevicesLastContact" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="108" Name="Series 1" ArgumentDataMember="LastSeen" ValueDataMembersSerializable="Devices" LabelsVisibility="True" ShowInLegend="false" LegendTextPattern="{A}" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="109" TypeNameSerializable="XYDiagram">
              <AxisX Ref="110" VisibleInPanesSerializable="-1" />
              <AxisY Ref="111" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="112" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="113">
                  <ConnectorLineStyle Ref="114" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="115" Visibility="False" Name="Default Legend" />
            <OptionsPrint Ref="116" ImageFormat="Metafile" />
          </Chart>
        </Item4>
        <Item5 Ref="117" ControlType="XRChart" Name="chart6" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="118">
            <DataContainer Ref="119" DataMember="DeviceEnrollmentDate" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="120" Name="Series 1" ArgumentDataMember="EnrollDate" ValueDataMembersSerializable="Devices" LegendTextPattern="{A}" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="121" TypeNameSerializable="XYDiagram">
              <AxisX Ref="122" VisibleInPanesSerializable="-1" />
              <AxisY Ref="123" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="124" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="125">
                  <ConnectorLineStyle Ref="126" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="127" Visibility="False" Name="Default Legend" />
            <OptionsPrint Ref="128" ImageFormat="Metafile" />
          </Chart>
        </Item5>
      </Controls>
    </Item9>
    <Item10 Ref="129" ControlType="GroupHeaderBand" Name="GroupHeader5" Level="3">
      <Controls>
        <Item1 Ref="130" ControlType="XRShape" Name="shape7" ForeColor="255,204,204,204">
          <StylePriority Ref="131" UseForeColor="false" />
        </Item1>
        <Item2 Ref="132" ControlType="XRLabel" Name="label1" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Devices_Summary_platformlist">
          <StylePriority Ref="133" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="134" ControlType="XRChart" Name="chart2" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="135">
            <DataContainer Ref="136" DataMember="DevicesPlatform" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="137" Name="Series 1" ArgumentDataMember="Platformid" ValueDataMembersSerializable="Devices" LegendTextPattern="{A}">
                  <View Ref="138" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="139" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="140" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
              <SeriesTemplate Ref="141" ArgumentDataMember="Platformid" ValueDataMembersSerializable="Devices" />
            </DataContainer>
            <Legend Ref="142" />
            <OptionsPrint Ref="143" ImageFormat="Metafile" />
          </Chart>
        </Item3>
      </Controls>
    </Item10>
  </Bands>
  <LocalizationItems>
    <Item1 Ref="144" Component="#Ref-6" Culture="Default" Path="HeightF" Data="40.0416679" />
    <Item2 Ref="145" Component="#Ref-35" Culture="Default" Path="LocationFloat" Data="108.374657,25.4509926" />
    <Item3 Ref="146" Component="#Ref-35" Culture="Default" Path="SizeF" Data="671.6253,220.359146" />
    <Item4 Ref="147" Component="#Ref-134" Culture="Default" Path="LocationFloat" Data="92.7497559,25.138855" />
    <Item5 Ref="148" Component="#Ref-134" Culture="Default" Path="SizeF" Data="687.2503,222.98613" />
    <Item6 Ref="149" Component="#Ref-61" Culture="Default" Path="LocationFloat" Data="477.6155,25.138855" />
    <Item7 Ref="150" Component="#Ref-61" Culture="Default" Path="SizeF" Data="292.38443,309.7917" />
    <Item8 Ref="151" Component="#Ref-88" Culture="Default" Path="LocationFloat" Data="69.79163,25.138855" />
    <Item9 Ref="152" Component="#Ref-88" Culture="Default" Path="SizeF" Data="305.87973,309.7917" />
    <Item10 Ref="153" Component="#Ref-78" Culture="Default" Path="LocationFloat" Data="477.6155,25.138855" />
    <Item11 Ref="154" Component="#Ref-78" Culture="Default" Path="SizeF" Data="300.671356,309.7917" />
    <Item12 Ref="155" Component="#Ref-117" Culture="Default" Path="LocationFloat" Data="0,25.1388569" />
    <Item13 Ref="156" Component="#Ref-117" Culture="Default" Path="SizeF" Data="375.671356,264.814819" />
    <Item14 Ref="157" Component="#Ref-105" Culture="Default" Path="LocationFloat" Data="404.3286,25.1388569" />
    <Item15 Ref="158" Component="#Ref-105" Culture="Default" Path="SizeF" Data="375.671326,264.814819" />
    <Item16 Ref="159" Component="#Ref-51" Culture="Default" Path="LocationFloat" Data="69.79163,25.138855" />
    <Item17 Ref="160" Component="#Ref-51" Culture="Default" Path="SizeF" Data="306.041779,309.7917" />
    <Item18 Ref="161" Component="#Ref-15" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item19 Ref="162" Component="#Ref-15" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item20 Ref="163" Component="#Ref-15" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item21 Ref="164" Component="#Ref-13" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item22 Ref="165" Component="#Ref-13" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item23 Ref="166" Component="#Ref-13" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item24 Ref="167" Component="#Ref-13" Culture="Default" Path="Text" Data="Fecha:" />
    <Item25 Ref="168" Component="#Ref-13" Culture="en" Path="Text" Data="Date:" />
    <Item26 Ref="169" Component="#Ref-13" Culture="pt" Path="Text" Data="Data:" />
    <Item27 Ref="170" Component="#Ref-5" Culture="Default" Path="HeightF" Data="5.20833349" />
    <Item28 Ref="171" Component="#Ref-30" Culture="Default" Path="HeightF" Data="247.035614" />
    <Item29 Ref="172" Component="#Ref-44" Culture="Default" Path="HeightF" Data="346.3889" />
    <Item30 Ref="173" Component="#Ref-71" Culture="Default" Path="HeightF" Data="336.4121" />
    <Item31 Ref="174" Component="#Ref-98" Culture="Default" Path="HeightF" Data="294.9074" />
    <Item32 Ref="175" Component="#Ref-129" Culture="Default" Path="HeightF" Data="248.4491" />
    <Item33 Ref="176" Component="#Ref-8" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item34 Ref="177" Component="#Ref-8" Culture="Default" Path="SizeF" Data="257.5302,79.99999" />
    <Item35 Ref="178" Component="#Ref-132" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item36 Ref="179" Component="#Ref-132" Culture="Default" Path="LocationFloat" Data="0.3241221,2.45100665" />
    <Item37 Ref="180" Component="#Ref-132" Culture="Default" Path="SizeF" Data="776.6808,22.687849" />
    <Item38 Ref="181" Component="#Ref-132" Culture="Default" Path="Text" Data="Plataformas" />
    <Item39 Ref="182" Component="#Ref-132" Culture="en" Path="Text" Data="Platforms" />
    <Item40 Ref="183" Component="#Ref-47" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item41 Ref="184" Component="#Ref-47" Culture="Default" Path="LocationFloat" Data="0.162029266,2.138837" />
    <Item42 Ref="185" Component="#Ref-47" Culture="Default" Path="SizeF" Data="375.509338,23.0000076" />
    <Item43 Ref="186" Component="#Ref-47" Culture="Default" Path="Text" Data="Dispositivos con Jailbreak o Root" />
    <Item44 Ref="187" Component="#Ref-47" Culture="en" Path="Text" Data="Jailbroken or Rooted Devices" />
    <Item45 Ref="188" Component="#Ref-47" Culture="pt" Path="Text" Data="Dispositivos desbloqueados ou com root" />
    <Item46 Ref="189" Component="#Ref-31" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item47 Ref="190" Component="#Ref-31" Culture="Default" Path="LocationFloat" Data="0.161997482,2.4509747" />
    <Item48 Ref="191" Component="#Ref-31" Culture="Default" Path="SizeF" Data="776.8429,23.0000076" />
    <Item49 Ref="192" Component="#Ref-31" Culture="Default" Path="Text" Data="Dispositivos por estado" />
    <Item50 Ref="193" Component="#Ref-31" Culture="en" Path="Text" Data="Devices by state" />
    <Item51 Ref="194" Component="#Ref-45" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item52 Ref="195" Component="#Ref-45" Culture="Default" Path="LocationFloat" Data="401.495636,2.138837" />
    <Item53 Ref="196" Component="#Ref-45" Culture="Default" Path="SizeF" Data="375.509338,23.0000076" />
    <Item54 Ref="197" Component="#Ref-45" Culture="Default" Path="Text" Data="Fabricante" />
    <Item55 Ref="198" Component="#Ref-45" Culture="en" Path="Text" Data="Manufacturer" />
    <Item56 Ref="199" Component="#Ref-45" Culture="pt" Path="Text" Data="Criador" />
    <Item57 Ref="200" Component="#Ref-74" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item58 Ref="201" Component="#Ref-74" Culture="Default" Path="LocationFloat" Data="0,2.138837" />
    <Item59 Ref="202" Component="#Ref-74" Culture="Default" Path="SizeF" Data="375.509338,23.0000076" />
    <Item60 Ref="203" Component="#Ref-74" Culture="Default" Path="Text" Data="Tipo" />
    <Item61 Ref="204" Component="#Ref-74" Culture="en" Path="Text" Data="Type" />
    <Item62 Ref="205" Component="#Ref-74" Culture="pt" Path="Text" Data="Cara" />
    <Item63 Ref="206" Component="#Ref-72" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item64 Ref="207" Component="#Ref-72" Culture="Default" Path="LocationFloat" Data="402.7777,2.138837" />
    <Item65 Ref="208" Component="#Ref-72" Culture="Default" Path="SizeF" Data="375.509338,23.0000076" />
    <Item66 Ref="209" Component="#Ref-72" Culture="Default" Path="Text" Data="Propietario" />
    <Item67 Ref="210" Component="#Ref-72" Culture="en" Path="Text" Data="Owner" />
    <Item68 Ref="211" Component="#Ref-72" Culture="pt" Path="Text" Data="Proprietário" />
    <Item69 Ref="212" Component="#Ref-101" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item70 Ref="213" Component="#Ref-101" Culture="Default" Path="LocationFloat" Data="0,2.08333325" />
    <Item71 Ref="214" Component="#Ref-101" Culture="Default" Path="SizeF" Data="375.509338,23.0000076" />
    <Item72 Ref="215" Component="#Ref-101" Culture="Default" Path="Text" Data="Fecha de vinculación" />
    <Item73 Ref="216" Component="#Ref-101" Culture="en" Path="Text" Data="Link date" />
    <Item74 Ref="217" Component="#Ref-101" Culture="pt" Path="Text" Data="Data de ligação" />
    <Item75 Ref="218" Component="#Ref-99" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item76 Ref="219" Component="#Ref-99" Culture="Default" Path="LocationFloat" Data="404.328583,2.138837" />
    <Item77 Ref="220" Component="#Ref-99" Culture="Default" Path="SizeF" Data="375.509338,23.0000076" />
    <Item78 Ref="221" Component="#Ref-99" Culture="Default" Path="Text" Data="Último reporte" />
    <Item79 Ref="222" Component="#Ref-99" Culture="en" Path="Text" Data="Last report" />
    <Item80 Ref="223" Component="#Ref-99" Culture="pt" Path="Text" Data="Último relatório" />
    <Item81 Ref="224" Component="#Ref-3" Culture="Default" Path="Description" Data="Idioma" />
    <Item82 Ref="225" Component="#Ref-21" Culture="Default" Path="LocationFloat" Data="3.125,20.6250515" />
    <Item83 Ref="226" Component="#Ref-21" Culture="Default" Path="SizeF" Data="773.88,14.6665554" />
    <Item84 Ref="227" Component="#Ref-20" Culture="Default" Path="LocationFloat" Data="700.4166,35.2916336" />
    <Item85 Ref="228" Component="#Ref-20" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item86 Ref="229" Component="#Ref-27" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item87 Ref="230" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="137.67157,44.14584" />
    <Item88 Ref="231" Component="#Ref-27" Culture="Default" Path="SizeF" Data="562.745056,23.0000114" />
    <Item89 Ref="232" Component="#Ref-27" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ©" />
    <Item90 Ref="233" Component="#Ref-27" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ©" />
    <Item91 Ref="234" Component="#Ref-27" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ©" />
    <Item92 Ref="235" Component="#Ref-17" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item93 Ref="236" Component="#Ref-17" Culture="Default" Path="HeightF" Data="76.0000153" />
    <Item94 Ref="237" Component="#Ref-23" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item95 Ref="238" Component="#Ref-23" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item96 Ref="239" Component="#Ref-23" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item97 Ref="240" Component="#Ref-25" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item98 Ref="241" Component="#Ref-25" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item99 Ref="242" Component="#Ref-25" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item100 Ref="243" Component="#Ref-25" Culture="Default" Path="Text" Data="Página" />
    <Item101 Ref="244" Component="#Ref-25" Culture="en" Path="Text" Data="Page" />
    <Item102 Ref="245" Component="#Ref-18" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item103 Ref="246" Component="#Ref-18" Culture="Default" Path="LocationFloat" Data="0.3241221,0" />
    <Item104 Ref="247" Component="#Ref-18" Culture="Default" Path="SizeF" Data="776.6808,20.6249866" />
    <Item105 Ref="248" Component="#Ref-18" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item106 Ref="249" Component="#Ref-18" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item107 Ref="250" Component="#Ref-18" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item108 Ref="251" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item109 Ref="252" Component="#Ref-1" Culture="Default" Path="DisplayName" Data="DeviceSummary" />
    <Item110 Ref="253" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item111 Ref="254" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item112 Ref="255" Component="#Ref-7" Culture="Default" Path="HeightF" Data="120.17894" />
    <Item113 Ref="256" Component="#Ref-49" Culture="Default" Path="LocationFloat" Data="0.162029266,0" />
    <Item114 Ref="257" Component="#Ref-49" Culture="Default" Path="SizeF" Data="779.999634,2.138837" />
    <Item115 Ref="258" Component="#Ref-76" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item116 Ref="259" Component="#Ref-76" Culture="Default" Path="SizeF" Data="779.837952,2.138837" />
    <Item117 Ref="260" Component="#Ref-103" Culture="Default" Path="LocationFloat" Data="0.324058533,0" />
    <Item118 Ref="261" Component="#Ref-103" Culture="Default" Path="SizeF" Data="779.8377,2.08333325" />
    <Item119 Ref="262" Component="#Ref-130" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item120 Ref="263" Component="#Ref-130" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item121 Ref="264" Component="#Ref-33" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item122 Ref="265" Component="#Ref-33" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item123 Ref="266" Component="#Ref-11" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item124 Ref="267" Component="#Ref-11" Culture="Default" Path="LocationFloat" Data="20.666647,10.0000048" />
    <Item125 Ref="268" Component="#Ref-11" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item126 Ref="269" Component="#Ref-11" Culture="Default" Path="Text" Data="Resumen del dispositivo" />
    <Item127 Ref="270" Component="#Ref-11" Culture="en" Path="Text" Data="Device Summary" />
    <Item128 Ref="271" Component="#Ref-11" Culture="pt" Path="Text" Data="Resumo do dispositivo" />
    <Item129 Ref="272" Component="#Ref-4" Culture="Default" Path="HeightF" Data="30" />
    <Item130 Ref="273" Component="#Ref-9" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item131 Ref="274" Component="#Ref-9" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item132 Ref="275" Component="#Ref-9" Culture="Default" Path="SizeF" Data="487.339966,23.0000038" />
    <Item133 Ref="276" Component="#Ref-9" Culture="Default" Path="Text" Data="Información consolidada de los dispositivos inscritos en la plataforma MDM" />
    <Item134 Ref="277" Component="#Ref-9" Culture="en" Path="Text" Data="Consolidated information of the devices enrolled in the MDM platform" />
    <Item135 Ref="278" Component="#Ref-9" Culture="pt" Path="Text" Data="Informações consolidadas dos dispositivos cadastrados na plataforma MDM" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
</XtraReportsLayoutSerializer>'

	--Reporte lista de dispositivos
	EXEC [dbo].[METADATA_REPORT] @amdmReportDevices,  N'AMDM_Report_Devices_List', 2,
	'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report1" ScriptsSource="using DevExpress.XtraReports;&#xD;&#xA;private void Report1_ParametersRequestBeforeShow(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e) {&#xD;&#xA;&#x9;XtraReport report=sender as XtraReport;&#xD;&#xA;      //Muestra la fecha un año antes de la fecha actual&#xD;&#xA;      report.Parameters[6].Value = DateTime.Today.AddYears(-1);&#xD;&#xA;      //Muestra la fecha actual&#xD;&#xA;      report.Parameters[7].Value = DateTime.Today;&#xD;&#xA;}&#xD;&#xA;" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="DeviceListDS" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="4" ValueSourceSettings="#Ref-2" AllowNull="true" Name="deviceType" />
    <Item2 Ref="7" ValueSourceSettings="#Ref-5" ValueInfo="0" AllowNull="true" Name="enrollstatus" Type="#Ref-6" />
    <Item3 Ref="9" ValueSourceSettings="#Ref-8" AllowNull="true" Name="platform" Type="#Ref-6" />
    <Item4 Ref="11" ValueSourceSettings="#Ref-10" AllowNull="true" Name="manufacturer" />
    <Item5 Ref="13" ValueSourceSettings="#Ref-12" AllowNull="true" Name="secure" Type="#Ref-6" />
    <Item6 Ref="15" ValueSourceSettings="#Ref-14" AllowNull="true" Name="owner" Type="#Ref-6" />
    <Item7 Ref="17" ValueInfo="2000-01-01" Name="dateinit" Type="#Ref-16" />
    <Item8 Ref="18" ValueInfo="2000-01-01" Name="dateend" Type="#Ref-16" />
  </Parameters>
  <Bands>
    <Item1 Ref="19" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="20" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="21" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="22" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="23" ControlType="XRTableCell" Name="tableCell10">
                  <ExpressionBindings>
                    <Item1 Ref="24" EventName="BeforePrint" PropertyName="Text" Expression="[UserName]" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="25" ControlType="XRTableCell" Name="tableCell11">
                  <ExpressionBindings>
                    <Item1 Ref="26" EventName="BeforePrint" PropertyName="Text" Expression="[UserFullName]" />
                  </ExpressionBindings>
                </Item2>
                <Item3 Ref="27" ControlType="XRTableCell" Name="tableCell12">
                  <ExpressionBindings>
                    <Item1 Ref="28" EventName="BeforePrint" PropertyName="Text" Expression="[StatusName]" />
                  </ExpressionBindings>
                </Item3>
                <Item4 Ref="29" ControlType="XRTableCell" Name="tableCell13">
                  <ExpressionBindings>
                    <Item1 Ref="30" EventName="BeforePrint" PropertyName="Text" Expression="[PlatformName]" />
                  </ExpressionBindings>
                </Item4>
                <Item5 Ref="31" ControlType="XRTableCell" Name="tableCell14">
                  <ExpressionBindings>
                    <Item1 Ref="32" EventName="BeforePrint" PropertyName="Text" Expression="[Manufacturer]" />
                  </ExpressionBindings>
                </Item5>
                <Item6 Ref="33" ControlType="XRTableCell" Name="tableCell15">
                  <ExpressionBindings>
                    <Item1 Ref="34" EventName="BeforePrint" PropertyName="Text" Expression="[IsSecure]" />
                  </ExpressionBindings>
                </Item6>
                <Item7 Ref="35" ControlType="XRTableCell" Name="tableCell16">
                  <ExpressionBindings>
                    <Item1 Ref="36" EventName="BeforePrint" PropertyName="Text" Expression="[Type]" />
                  </ExpressionBindings>
                </Item7>
                <Item8 Ref="37" ControlType="XRTableCell" Name="tableCell17">
                  <ExpressionBindings>
                    <Item1 Ref="38" EventName="BeforePrint" PropertyName="Text" Expression="[CorporateOwned]" />
                  </ExpressionBindings>
                </Item8>
                <Item9 Ref="39" ControlType="XRTableCell" Name="tableCell18">
                  <ExpressionBindings>
                    <Item1 Ref="40" EventName="BeforePrint" PropertyName="Text" Expression="[LastUpdate_HW]" />
                  </ExpressionBindings>
                </Item9>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="41" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="42" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="43" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="44" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="45" ControlType="XRLabel" Name="typeReport" Multiline="true" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Devices_List_descripcion">
          <StylePriority Ref="46" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="47" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="49" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="50" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="51" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="52" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
      <StylePriority Ref="53" UseFont="false" />
    </Item4>
    <Item5 Ref="54" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="55" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="56" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="57" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="58" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="59" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="60" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="61" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="62" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="63" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="64" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="65" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="66" ControlType="GroupHeaderBand" Name="GroupHeader1">
      <Controls>
        <Item1 Ref="67" ControlType="XRShape" Name="shape1" ForeColor="255,204,204,204">
          <StylePriority Ref="68" UseForeColor="false" />
        </Item1>
        <Item2 Ref="69" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="70" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="71" ControlType="XRTableCell" Name="tableCell1" Tag_type="System.String" Tag="Report_Devices_List_dispositivo" />
                <Item2 Ref="72" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Devices_List_nombreusuario" />
                <Item3 Ref="73" ControlType="XRTableCell" Name="tableCell3" Tag_type="System.String" Tag="Report_Devices_List_estado" />
                <Item4 Ref="74" ControlType="XRTableCell" Name="tableCell4" Tag_type="System.String" Tag="Report_Devices_List_plataforma" />
                <Item5 Ref="75" ControlType="XRTableCell" Name="tableCell5" Tag_type="System.String" Tag="Report_Devices_List_manufactura" />
                <Item6 Ref="76" ControlType="XRTableCell" Name="tableCell6" Tag_type="System.String" Tag="Report_Devices_List_seguro" />
                <Item7 Ref="77" ControlType="XRTableCell" Name="tableCell7" Tag_type="System.String" Tag="Report_Devices_List_tipo" />
                <Item8 Ref="78" ControlType="XRTableCell" Name="tableCell8" Tag_type="System.String" Tag="Report_Devices_List_propietario" />
                <Item9 Ref="79" ControlType="XRTableCell" Name="tableCell9" Tag_type="System.String" Tag="Report_Devices_List_actualizacion" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="80" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item2>
      </Controls>
    </Item6>
  </Bands>
  <Scripts Ref="81" OnParametersRequestBeforeShow="Report1_ParametersRequestBeforeShow" />
  <LocalizationItems>
    <Item1 Ref="82" Component="#Ref-42" Culture="Default" Path="HeightF" Data="40" />
    <Item2 Ref="83" Component="#Ref-18" Culture="Default" Path="Description" Data="Fecha final*" />
    <Item3 Ref="84" Component="#Ref-51" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item4 Ref="85" Component="#Ref-51" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item5 Ref="86" Component="#Ref-51" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item6 Ref="87" Component="#Ref-17" Culture="Default" Path="Description" Data="Fecha Inicial*" />
    <Item7 Ref="88" Component="#Ref-49" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item8 Ref="89" Component="#Ref-49" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item9 Ref="90" Component="#Ref-49" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item10 Ref="91" Component="#Ref-49" Culture="Default" Path="Text" Data="Fecha:" />
    <Item11 Ref="92" Component="#Ref-49" Culture="en" Path="Text" Data="Date:" />
    <Item12 Ref="93" Component="#Ref-49" Culture="pt" Path="Text" Data="Encontro:" />
    <Item13 Ref="94" Component="#Ref-20" Culture="Default" Path="HeightF" Data="25" />
    <Item14 Ref="95" Component="#Ref-4" Culture="Default" Path="Description" Data="Tipo de dispositivo" />
    <Item15 Ref="96" Component="#Ref-7" Culture="Default" Path="Description" Data="Estado de inscripcion" />
    <Item16 Ref="97" Component="#Ref-66" Culture="Default" Path="HeightF" Data="41.2037125" />
    <Item17 Ref="98" Component="#Ref-44" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item18 Ref="99" Component="#Ref-44" Culture="Default" Path="SizeF" Data="257.5301,79.99999" />
    <Item19 Ref="100" Component="#Ref-58" Culture="Default" Path="LocationFloat" Data="3.125,20.6249866" />
    <Item20 Ref="101" Component="#Ref-58" Culture="Default" Path="SizeF" Data="773.88,14.6666851" />
    <Item21 Ref="102" Component="#Ref-57" Culture="Default" Path="LocationFloat" Data="700.4167,35.29167" />
    <Item22 Ref="103" Component="#Ref-57" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item23 Ref="104" Component="#Ref-11" Culture="Default" Path="Description" Data="Manufactura" />
    <Item24 Ref="105" Component="#Ref-64" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item25 Ref="106" Component="#Ref-64" Culture="Default" Path="LocationFloat" Data="143.934921,44.14584" />
    <Item26 Ref="107" Component="#Ref-64" Culture="Default" Path="SizeF" Data="556.4815,23.0000076" />
    <Item27 Ref="108" Component="#Ref-64" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ?" />
    <Item28 Ref="109" Component="#Ref-64" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ?" />
    <Item29 Ref="110" Component="#Ref-64" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ?" />
    <Item30 Ref="111" Component="#Ref-15" Culture="Default" Path="Description" Data="Propietario" />
    <Item31 Ref="112" Component="#Ref-54" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item32 Ref="113" Component="#Ref-60" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item33 Ref="114" Component="#Ref-60" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item34 Ref="115" Component="#Ref-60" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item35 Ref="116" Component="#Ref-62" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item36 Ref="117" Component="#Ref-62" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item37 Ref="118" Component="#Ref-62" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item38 Ref="119" Component="#Ref-62" Culture="Default" Path="Text" Data="Página" />
    <Item39 Ref="120" Component="#Ref-62" Culture="en" Path="Text" Data="Page" />
    <Item40 Ref="121" Component="#Ref-9" Culture="Default" Path="Description" Data="Plataforma" />
    <Item41 Ref="122" Component="#Ref-55" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item42 Ref="123" Component="#Ref-55" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item43 Ref="124" Component="#Ref-55" Culture="Default" Path="SizeF" Data="780.0002,20.6249866" />
    <Item44 Ref="125" Component="#Ref-55" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item45 Ref="126" Component="#Ref-55" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item46 Ref="127" Component="#Ref-55" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também é em suas mãos." />
    <Item47 Ref="128" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item48 Ref="129" Component="#Ref-1" Culture="Default" Path="DisplayName" Data="DeviceList" />
    <Item49 Ref="130" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item50 Ref="131" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item51 Ref="132" Component="#Ref-43" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item52 Ref="133" Component="#Ref-43" Culture="Default" Path="HeightF" Data="110.375" />
    <Item53 Ref="134" Component="#Ref-13" Culture="Default" Path="Description" Data="Integridad del dispositivo" />
    <Item54 Ref="135" Component="#Ref-67" Culture="Default" Path="LocationFloat" Data="3.53212745E-05,0" />
    <Item55 Ref="136" Component="#Ref-67" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item56 Ref="137" Component="#Ref-69" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item57 Ref="138" Component="#Ref-69" Culture="Default" Path="LocationFloat" Data="0,16.2037048" />
    <Item58 Ref="139" Component="#Ref-69" Culture="Default" Path="SizeF" Data="780,25" />
    <Item59 Ref="140" Component="#Ref-21" Culture="Default" Path="Font" Data="Tahoma, 9pt, charSet=0" />
    <Item60 Ref="141" Component="#Ref-21" Culture="Default" Path="LocationFloat" Data="3.12496829,0" />
    <Item61 Ref="142" Component="#Ref-21" Culture="Default" Path="SizeF" Data="776.875061,25" />
    <Item62 Ref="143" Component="#Ref-71" Culture="Default" Path="Text" Data="Dispositivo" />
    <Item63 Ref="144" Component="#Ref-71" Culture="en" Path="Text" Data="Device" />
    <Item64 Ref="145" Component="#Ref-71" Culture="Default" Path="Weight" Data="1.1470589264100266" />
    <Item65 Ref="146" Component="#Ref-23" Culture="Default" Path="Text" Data="Column1" />
    <Item66 Ref="147" Component="#Ref-23" Culture="Default" Path="Weight" Data="1.1158093195459642" />
    <Item67 Ref="148" Component="#Ref-25" Culture="Default" Path="Text" Data="Column2" />
    <Item68 Ref="149" Component="#Ref-25" Culture="Default" Path="Weight" Data="1.2359068294483906" />
    <Item69 Ref="150" Component="#Ref-27" Culture="Default" Path="Text" Data="Column3" />
    <Item70 Ref="151" Component="#Ref-27" Culture="Default" Path="Weight" Data="0.68828365619433263" />
    <Item71 Ref="152" Component="#Ref-29" Culture="Default" Path="Text" Data="tableCell13" />
    <Item72 Ref="153" Component="#Ref-29" Culture="Default" Path="Weight" Data="0.81539271874613728" />
    <Item73 Ref="154" Component="#Ref-31" Culture="Default" Path="Text" Data="tableCell14" />
    <Item74 Ref="155" Component="#Ref-31" Culture="Default" Path="Weight" Data="0.86642113447992886" />
    <Item75 Ref="156" Component="#Ref-33" Culture="Default" Path="Text" Data="tableCell15" />
    <Item76 Ref="157" Component="#Ref-33" Culture="Default" Path="Weight" Data="0.5539199627540804" />
    <Item77 Ref="158" Component="#Ref-35" Culture="Default" Path="Text" Data="tableCell16" />
    <Item78 Ref="159" Component="#Ref-35" Culture="Default" Path="Weight" Data="0.7990203515629456" />
    <Item79 Ref="160" Component="#Ref-37" Culture="Default" Path="Text" Data="tableCell17" />
    <Item80 Ref="161" Component="#Ref-37" Culture="Default" Path="Weight" Data="0.80740169380554494" />
    <Item81 Ref="162" Component="#Ref-39" Culture="Default" Path="Text" Data="tableCell18" />
    <Item82 Ref="163" Component="#Ref-39" Culture="Default" Path="Weight" Data="0.88659449933320378" />
    <Item83 Ref="164" Component="#Ref-72" Culture="Default" Path="Text" Data="Nombre de usuario" />
    <Item84 Ref="165" Component="#Ref-72" Culture="en" Path="Text" Data="Username" />
    <Item85 Ref="166" Component="#Ref-72" Culture="pt" Path="Text" Data="Nome de usuário" />
    <Item86 Ref="167" Component="#Ref-72" Culture="Default" Path="Weight" Data="1.2359067565887434" />
    <Item87 Ref="168" Component="#Ref-73" Culture="Default" Path="Text" Data="Estado" />
    <Item88 Ref="169" Component="#Ref-73" Culture="en" Path="Text" Data="State" />
    <Item89 Ref="170" Component="#Ref-73" Culture="pt" Path="Text" Data="Doença" />
    <Item90 Ref="171" Component="#Ref-73" Culture="Default" Path="Weight" Data="0.68828392666902516" />
    <Item91 Ref="172" Component="#Ref-74" Culture="Default" Path="Text" Data="Plataforma" />
    <Item92 Ref="173" Component="#Ref-74" Culture="en" Path="Text" Data="Platform" />
    <Item93 Ref="174" Component="#Ref-74" Culture="Default" Path="Weight" Data="0.8153923703311271" />
    <Item94 Ref="175" Component="#Ref-75" Culture="Default" Path="Text" Data="Manufactura" />
    <Item95 Ref="176" Component="#Ref-75" Culture="en" Path="Text" Data="Manufacture" />
    <Item96 Ref="177" Component="#Ref-75" Culture="pt" Path="Text" Data="Fabricação" />
    <Item97 Ref="178" Component="#Ref-75" Culture="Default" Path="Weight" Data="0.86642113360182615" />
    <Item98 Ref="179" Component="#Ref-76" Culture="Default" Path="Text" Data="Seguro" />
    <Item99 Ref="180" Component="#Ref-76" Culture="en" Path="Text" Data="Insurance" />
    <Item100 Ref="181" Component="#Ref-76" Culture="Default" Path="Weight" Data="0.55392053110734274" />
    <Item101 Ref="182" Component="#Ref-77" Culture="Default" Path="Text" Data="Tipo" />
    <Item102 Ref="183" Component="#Ref-77" Culture="en" Path="Text" Data="Type" />
    <Item103 Ref="184" Component="#Ref-77" Culture="pt" Path="Text" Data="Cara" />
    <Item104 Ref="185" Component="#Ref-77" Culture="Default" Path="Weight" Data="0.79901968274926216" />
    <Item105 Ref="186" Component="#Ref-78" Culture="Default" Path="Text" Data="Propietario" />
    <Item106 Ref="187" Component="#Ref-78" Culture="en" Path="Text" Data="Owner" />
    <Item107 Ref="188" Component="#Ref-78" Culture="pt" Path="Text" Data="Proprietário" />
    <Item108 Ref="189" Component="#Ref-78" Culture="Default" Path="Weight" Data="0.80740103144395814" />
    <Item109 Ref="190" Component="#Ref-79" Culture="Default" Path="Text" Data="Actualización" />
    <Item110 Ref="191" Component="#Ref-79" Culture="en" Path="Text" Data="Update" />
    <Item111 Ref="192" Component="#Ref-79" Culture="pt" Path="Text" Data="Atualizar" />
    <Item112 Ref="193" Component="#Ref-79" Culture="Default" Path="Weight" Data="0.88659467088534338" />
    <Item113 Ref="194" Component="#Ref-70" Culture="Default" Path="Weight" Data="1" />
    <Item114 Ref="195" Component="#Ref-22" Culture="Default" Path="Weight" Data="1" />
    <Item115 Ref="196" Component="#Ref-47" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item116 Ref="197" Component="#Ref-47" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item117 Ref="198" Component="#Ref-47" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item118 Ref="199" Component="#Ref-47" Culture="Default" Path="Text" Data="Lista de dispositivos" />
    <Item119 Ref="200" Component="#Ref-47" Culture="en" Path="Text" Data="Device list" />
    <Item120 Ref="201" Component="#Ref-19" Culture="Default" Path="HeightF" Data="30" />
    <Item121 Ref="202" Component="#Ref-45" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item122 Ref="203" Component="#Ref-45" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item123 Ref="204" Component="#Ref-45" Culture="Default" Path="SizeF" Data="487.340057,23.0000038" />
    <Item124 Ref="205" Component="#Ref-45" Culture="Default" Path="Text" Data="Esta lista muestra los dispositivos registrados en la plataforma y su estado." />
    <Item125 Ref="206" Component="#Ref-45" Culture="en" Path="Text" Data="This list shows the devices registered to the platform and their status." />
    <Item126 Ref="207" Component="#Ref-45" Culture="pt" Path="Text" Data="Esta lista mostra os dispositivos cadastrados na plataforma e seus status." />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="DeviceTypeDS" ValueMember="DEVICETYPE" DisplayMember="DEVICETYPE" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="EnrollmentStatusDS" ValueMember="id" DisplayMember="name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="PlatformDS" ValueMember="id" DisplayMember="name" />
    <Item5 Ref="10" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="ManufacturerDS" ValueMember="Manufacturer" DisplayMember="Manufacturer" />
    <Item6 Ref="12" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="SecureDS" ValueMember="DeviceIntegrityId" DisplayMember="DeviceIntegrity" />
    <Item7 Ref="14" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="OwnerTypeDS" ValueMember="companyOwnedId" DisplayMember="companyOwned" />
    <Item8 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="16" Content="System.DateTime" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

	--Reporte detalle de dispositivo
	EXEC [dbo].[METADATA_REPORT] @amdmReportDevices,  N'AMDM_Report_Devices_Detail', 3,
	'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="PolicyDetail" DisplayName="AMDM_Report_Policies_Detail" Bookmark="Report_AMDM" Margins="40, 30, 30, 40" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="PolicyVersionListDS" DataSource="#Ref-0" Font="Tahoma, 9.75pt, charSet=0">
  <Extensions>
    <Item1 Ref="2" Key="DataSerializationExtension" Value="DevExpress.XtraReports.Web.ReportDesigner.DefaultDataSerializer" />
  </Extensions>
  <Parameters>
    <Item1 Ref="5" Description="Politica" ValueSourceSettings="#Ref-3" ValueInfo="0" Name="policyId" Type="#Ref-4" />
    <Item2 Ref="6" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCOffSet" Type="#Ref-4" />
  </Parameters>
  <Bands>
    <Item1 Ref="7" ControlType="TopMarginBand" Name="TopMargin" HeightF="30" />
    <Item2 Ref="8" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="121.666672">
      <Controls>
        <Item1 Ref="9" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAQMAAAA8CAYAAABiit8HAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAteSURBVHhe7Z0x8vO2EcV1BOcG3/gEmfEFXOQAX+PeVWp3aVm6dJl0VpdxlTIzblKpcuEDxDM5QeIbfJnH7DKPbxcUQVGyJG7xm7/+CxAEQezDAiKh06dPn05FURTBUBTFMQmGoiiOSTAURXFMgqEoimMSDEVRHJNgKIrimARDURTHJBiKojgmwbCF0/ny4XS+fDydL8MGvjydL59pmUVRPJZg6OV0vnx3Ol8+nc6XX0/nyz86+ZmO/b2WXRTF4wiGHk7ny9fmzN9o2loQFZzOl+9NED5oelEUjyEYerCR/Xu192KC8K9bRKX4P8Mw/HEYhk9X+IMe9y7g2uwafxqG4XeaXuQEQw8WFXxU+xZs2oAI4a7RwTAMf7KO8oWmPQvDMPwCh1b7Wu4lBnAsO/YvmvZMoH50nZvb8WgEQw8mBl+qfQu0fgC+0/S9MEeDIDxth95ZDLqdvsUwDF+9iBhUZLCBYOhhZzFAZIBvF7AOgfWD3QXBOsmPNsLB4Z6yozyxGHhU9dRiUGwjGHqgkXwv/m7ljguTer5bMSH4yj5/i86teZ6BR4qB5fn3MAyfS3iNUXWcStH0IGMq38QCZXkayvuc0nnE/sLux3h+S/f/EYHgGrws/J21B51D641yp+uXY1zMHPSBaUCw64SN8zxlH7kHwdCDOfA39qzArWCa8K2ViwVFlI01hF0iD+s0v7T+F7s7BzrtrFOY3TstmJzG0tERkY6Oz8fP8lledL4ftPNlYiAdPjiH5O0VgxY4D+oI2MmZsXxpEwbXMgoCiYGX7Z/HSIPFISkHTNfcKGe8n5kYSPsxfu6xPyTp4Edtt3ckGHowh93FWX2aQP+j7H+6KGj+XrJIgCMFsqFToAPAeV0A4AywY9RB55vKsU7GIuMj2syh7Vyjc1GZOAdwZ2FxGI+lfLD7sd7Zp1FXrmFxAVHyTh2eyvc2AFP7kEPNpgl0PlwfC6PnH0VexOCHpN4sBlyOi+pPZPNywnSvIQaenyMZRCB+zV7XaZ2B2n7WDu9KMPTwADHwqAFrCFNaLzSyzZzHR3GxuSOsDg+585IYaAf1Ovg0ZYwAtCxLC5GBYuKQ1nGjGGgk4qOkCh9sKgbuxKPTkx3iCbuP2CwGQcioHC3fFy6BO2pab0tbEoNZHZN0HRwOs04SDD08QgzsM55y/FmPWYt1jjASWdpMJEgMQmdtYY7j4TLOddXJrzjzGjGAY7aO3zJNuEUMWuH1hOXbKgZ8nLdzWm9Ly8RA1wvQ/i7MHAm1ePupQjD08EAxQHSweUFR5u4Z02hxTQwsHU6hZfaKAY4PHVnzkQ3THJ2Xv4oY3BoZ8HEegaX1trQgBlROWCBcKQYVGSzxCmJgHSCE7a30JTGwToa8cAqee26JDNDxW87M+XydYhYJ6P9y/KPFwNc50hCc8m0VAx7VN00TFCrThcoXIt9+baBFMPTwImKAjnqtk/Ji4ZIYwEFCZ9koBuNIn+TxtQXPBwcM9f+NxUDXWfx8qPfsfD7y2ue1YsALhf5MyOy8rXpLfXiaABsLuOcZz0XXNi3omh39IW3ndyMYenh2MVhybMk3OfDSMdZZuUP6Q0zI3ysGfp5pLcPKQ2dkMYAz8TcOPk2ZOaqch8WgxeLcuyEGOu8GXi+vU8Z4jR1ikKHfMLj9qhjQQmaGDwL8zUFG2tbvRDD08AJikI6+Cq/0XxEDpHGHGZ3Woo8uMbD/s2cRXGA4nzrJ+DVpq4PeSwzMzs9F4DM7qD8j4en4zGKyVgxQLp8Hdn1GI623pWWRAe4tt+PsXlge9AMVvNm9eGeCoYdnF4PitWitGRSPIRh6KDEo9qTE4LclGHooMSj2pMTgtyUYeigxKIr3IRh6KDEoivchGHooMSiK9yEYeigxKIr3IRh6KDEoivchGHp4BTGQB3DSh3QkPz8YczW/cu3BGskbXo/NHvnN8u0NPWw1O3cLelBrVf7i+QmGHsxhsRuR/krSFrBV+p+l7L3FoPnCEuXnJwLvLQb8tJ4+1stiEPKZ3d/AWzzPGkQMwLV3GvjtvxKDB0D7Otzlichg6MEcFtuVYVS/lf+czpe/Stl7iwFoOnhP3hadYhBG/IYYhHxmd+FaPM8aEjFoOnhP3mI/SICfVgxeaZoAmtGBjMDgrmKQkYlBCwrTu8+jJA4O0uggeSnpal2L29Et8fYmGHp4MTGAo7uzh7k35YOD+ZNw+pKOvuyCvJqHxQCf2XFwLIf5wfHX2JINOrh8r19wUIowpleEKW22ZmB/wwtXks875+xc1pb6UpBuJwY72o/fwhzrlryUNL5GLNeKY3RrOeRxgVR4n0rcR54Ooq766rXXj3dxBry79lS2Xl+jPqgz33/vK+OLWHIe3vOSt32boee8hWDowfYm/FrtW3iQGHCUMBtN+S29TAySzsiw47IYZB2TO+VVx89sC3UZOzX9r07l1xhGFnFyLkPf7JvqQvXguraEaiyX8mkaM0VvtlCp6c7a8wLft6DVdmBt/dhpGX6Ds5UH98DXh7idM/x+N/P5+fYgGHo4nS9/gxOrvRf8ArM5/yQs9xAD+99vEs/TOSpA55uJgTgKCwS/J+95+cbxOYKDqZN32rhOLWHj8/voMv5GgaLlkdOweKlgZGKANoE92yWZ927wctDWussU4F2ZUR63O+fzbdBcePk4FwjfnZmP41fE/f5nuy9n6znA7zdvvuLn4f6UtUO2WzRvvceD1hT9LIn5HgRDD+bE/lPsH81pe/FfUJpteHpHMZjN6eUrMr/BKgbe6YMjUajsI09zzYBC07GDNZx8rW1JDKb6kqN5PdN1EC1P2sXFazYFycQgQ++B2fxcGnlMEZqW08jndVsSA2/vpWnSbP0lq9+Ck87Ejtpp027RKrpkf14xGAv4nyBADOC8W4AQ4OvJz6Tcu4iB2abooDECqhgEZ6S8M6Fo3WBLm82xs3I7bEtiMBM4CbXTxcasPG6b7LqWxMDSAE+VNosBRSK86cl0PNUlw+f5PLK3aG76wmIgdZvdH7qGJnRNbnt9MXBucVgFv8R8ZzHgxg4N/OpiYOk+Ko77O9rndLv4pfKofbKpRxCDpcWuLWIg07YMvm+6bRmOy34EZolVkYHUuVcM3jMycMiBb/6JdnsI6Vf6f1cxMDt3DE1TMdhrmqBzy8zJ19pS522k++icflWY5OeOyaGxps3EQCIQ1NkdK9wDyndNDFzUYGfH1GmC16XpKJQnTBOUrH4dYnDTbtEvLwbAfuwEYf8tv78IIYCo8DcL9xADbnDtkCoGnLdnAZE7EoexHopmTr7WlnYYRkLq2fUrLTGwtBAVmF3FgK+d59Rejy1iEObfdh5dz8hGfY+Ksh9L0WkI+kn2bcIWMeAFRP3KEvVxkdwqBovrKVsJhlshQdC1gbWMYiJl7i4GlgZnzr4fnomB2ZbmpOykfIMzeEU9c/JVNrPrV5fqrKkwZVwRg3Gj0OQYFQNeq2CmqQYdm9ZLO/xCu2tksDQ9AS4IGukwU+RHtm4xEFvG4m7RC2Kg6yWhT99CMOyFjfA3f+0ILNKYpg09LIlBi0wMzN7z0JHvdMzzR8271IkWbXQud76sLt6ppm8VWiyJQQsVA7PpNfuUCLZuMTAbO5a3q99X/PUILYT/+g2O2fQ+jucThwz16xEDs6NMbgt85uvqFQPYeV0EU6jF+9pDMOyFfdWIkf6mJxTt59nxEtPNv8R8NKiTLs5dXx0SpSUxCJFNMScY9sS+MoQgYOqgbymuBUKAqcMHLb9os2Wkf1XsWrPpiRNEoogEw95YiK9vKPYQnkEortMKXd8VmyroI8mzsLxYJhiKojgmwVAUxTEJhqIojkkwFEVxTIKhKIpjEgxFURyTYCiK4pgEQ1EUxyQYiqI4Jv8FOkbLCK7b8D8AAAAASUVORK5CYII=" ImageAlignment="MiddleCenter" SizeF="257.5301,79.9999847" LocationFloat="522.47,0" />
        <Item2 Ref="10" ControlType="XRLabel" Name="typeReport" Text="Este informe muestra la información de la política, el estado, las versiones existentes y la cantidad de dispositivos por versión." SizeF="487.339966,23.0000038" LocationFloat="20.6666622,41.3333244" Font="Tahoma, 8pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_descripcion">
          <StylePriority Ref="11" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="12" ControlType="XRLabel" Name="titleReport" Text="Detalle de la política" SizeF="487.34,31.33" LocationFloat="20.6666546,10.0000181" Font="Tahoma, 12.75pt, style=Bold, charSet=0" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="13" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="14" ControlType="XRLabel" Name="dateReport" Text="Fecha:" TextAlignment="MiddleLeft" SizeF="57.2916641,22.9999847" LocationFloat="20.6666622,80" Font="Tahoma, 8pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="15" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="16" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" SizeF="229.166687,22.9999847" LocationFloat="77.95833,80" Font="Tahoma, 8pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="17" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item2>
    <Item3 Ref="18" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="1" HeightF="208.166763" ForeColor="255,102,102,102">
      <Controls>
        <Item1 Ref="19" ControlType="XRShape" Name="shape2" SizeF="779.9998,2.45098114" LocationFloat="0,0" ForeColor="255,204,204,204">
          <StylePriority Ref="20" UseForeColor="false" />
        </Item1>
        <Item2 Ref="21" ControlType="XRLabel" Name="label13" Text="label13" SizeF="180.416748,49.4166336" LocationFloat="597.5328,137.333389" Font="Tahoma, 9pt" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="22" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyDetailsDS].[config]" />
          </ExpressionBindings>
          <StylePriority Ref="23" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="24" ControlType="XRLabel" Name="label12" Text="Secciones configuradas en la política:" SizeF="194.791626,49.41665" LocationFloat="402.7411,137.33342" StyleName="controlStyle1" Font="Tahoma, 9pt, style=Bold" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_secciones">
          <StylePriority Ref="25" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="26" ControlType="XRLabel" Name="label11" Text="label11" SizeF="180.41687,22.9999466" LocationFloat="597.5328,114.333374" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="27" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyDetailsDS].[version]" />
          </ExpressionBindings>
          <StylePriority Ref="28" UseForeColor="false" />
        </Item4>
        <Item5 Ref="29" ControlType="XRLabel" Name="label10" Text="Versión:" SizeF="194.791626,22.9999466" LocationFloat="402.7411,114.333405" StyleName="controlStyle1" Font="Tahoma, 9pt, style=Bold" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_version">
          <StylePriority Ref="30" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="31" ControlType="XRLabel" Name="label9" Text="label9" SizeF="180.416748,22.9999847" LocationFloat="597.5328,91.33336" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <Scripts Ref="32" OnBeforePrint="label9_BeforePrint" />
          <ExpressionBindings>
            <Item1 Ref="33" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([PolicyDetailsDS].[createddate],-1* ?UTCOffSet )" />
          </ExpressionBindings>
          <StylePriority Ref="34" UseForeColor="false" />
        </Item6>
        <Item7 Ref="35" ControlType="XRLabel" Name="label8" Text="Fecha de creación:" SizeF="194.791626,22.9999542" LocationFloat="402.7411,91.33339" StyleName="controlStyle1" Font="Tahoma, 9pt, style=Bold" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_fecha">
          <StylePriority Ref="36" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="37" ControlType="XRLabel" Name="label7" Text="label7" SizeF="211.428009,22.9999161" LocationFloat="184.20845,137.333389" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="38" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyDetailsDS].[creatormail]" />
          </ExpressionBindings>
          <StylePriority Ref="39" UseForeColor="false" />
        </Item8>
        <Item9 Ref="40" ControlType="XRLabel" Name="label6" Text="Correo:" SizeF="163.5418,23" LocationFloat="20.6666317,137.333359" StyleName="controlStyle1" Font="Tahoma, 9pt, style=Bold" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_correo">
          <StylePriority Ref="41" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="42" ControlType="XRLabel" Name="label5" Text="label5" SizeF="211.428131,22.9999161" LocationFloat="184.20845,114.333374" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="43" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyDetailsDS].[creatorname]" />
          </ExpressionBindings>
          <StylePriority Ref="44" UseForeColor="false" />
        </Item10>
        <Item11 Ref="45" ControlType="XRLabel" Name="label4" Text="Creador de la política:" SizeF="163.5418,23" LocationFloat="20.6666317,114.333344" StyleName="controlStyle1" Font="Tahoma, 9pt, style=Bold" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_creador">
          <StylePriority Ref="46" UseFont="false" UseForeColor="false" />
        </Item11>
        <Item12 Ref="47" ControlType="XRLabel" Name="label3" Text="label3" SizeF="211.428253,22.9999237" LocationFloat="184.20845,91.33339" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="48" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyDetailsDS].[policyname]" />
          </ExpressionBindings>
          <StylePriority Ref="49" UseForeColor="false" />
        </Item12>
        <Item13 Ref="50" ControlType="XRLabel" Name="label2" Text="Nombre de la política:" SizeF="163.5418,23" LocationFloat="20.6666317,91.33339" StyleName="controlStyle1" Font="Tahoma, 9pt, style=Bold" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_nombre">
          <StylePriority Ref="51" UseFont="false" UseForeColor="false" />
        </Item13>
        <Item14 Ref="52" ControlType="XRLabel" Name="label1" Multiline="true" Text="Configuración de política" SizeF="204.050888,20.9166565" LocationFloat="100.624977,22.5000057" StyleName="controlStyle1" Font="Tahoma, 11pt, style=Bold" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_configuracion">
          <StylePriority Ref="53" UseFont="false" UseForeColor="false" />
        </Item14>
        <Item15 Ref="54" ControlType="XRPictureBox" Name="pictureBox1" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAEsAAABBCAYAAACZ1VmMAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJRSURBVHhe7ZrbUcQwDEUpgVIogRIoYUugBH7VxZawJVACpdBBGM8oO+ZeK9iOCVbQx/ngIgXvycv28rAsy0NQBwWBDQWBDQWBDQWBDQWBDQWBDQWBDQWBDQWBDQWBDQW9iMibiLxPyk1EnnDMrVDQg4h8iMjigBccewsUtKJXFA5qVj5F5BE/Qy0UtKKXeT6Y3Zf7SETkCsKesaYWCloBWVOJWtFn1lyy8HezAI+KkLVFyGrglLJE5HXP28ridLKyt1aasw0VdipZhdf7UGHuZKVphb7Cv0koiFrZNdvOcSVLRC541Sj5/CfngsfYgxtZICoXZq0nSVT6gLVgr/a7kZVuv7QMQiklSJQeA+tMsFf7fcjSmhphRVHaj7Um2Kv9fmRp3ZYwU1T2N6rAXu33JUtrS8I2RY3ApSytX4UlugfegltZ2pOEHbad41rW0YSsBkJWAyGrgVPKwkX2KE4nK5tSDJ93nUpWYbI6VJg7WbolQ3tUBVErVNuLK1kqat2SuV81G6L+504piFpJe1xp/+nXRSU8ybK2jUsURa07CjVgr/a7kVW6skoURekxsNYEe7XfhyytScLudQXoiwzox3oT7NV+P7Ky2tItecU6RJ9vVWCv9vuTpfW5sB9FjcCtLO1Jwg4RlXAt62hCVgMhq4GQ1cCUso58aNdSWH/+qSz85470czqTs4Drz+5vlShoRc9cPpiZueH4W6Cgh7T3VDiDs7G5pKqBgl50/UfLj0novvVyKAhsKAhsKAhsKAhsKAhsKAhsKAhsKAhsKAhsvgDq++a2lc2qUQAAAABJRU5ErkJggg==" ImageAlignment="MiddleCenter" SizeF="80.90276,68.83336" LocationFloat="19.722208,10.0000067" />
      </Controls>
      <StylePriority Ref="55" UseForeColor="false" />
    </Item3>
    <Item4 Ref="56" ControlType="GroupHeaderBand" Name="GroupHeader2" HeightF="35.4166679">
      <Controls>
        <Item1 Ref="57" ControlType="XRShape" Name="shape1" SizeF="779.9998,2.45098114" LocationFloat="3.53212745E-05,0" ForeColor="255,204,204,204">
          <StylePriority Ref="58" UseForeColor="false" />
        </Item1>
        <Item2 Ref="59" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="780,25" LocationFloat="4.57763672E-05,10.0000067" Font="Tahoma, 9.75pt, charSet=0" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="60" ControlType="XRTableRow" Name="tableRow1" Weight="1">
              <Cells>
                <Item1 Ref="61" ControlType="XRTableCell" Name="tableCell1" Weight="3.7458331545790844" Text="Version" Tag_type="System.String" Tag="Report_Policies_Detail_version_table" />
                <Item2 Ref="62" ControlType="XRTableCell" Name="tableCell2" Weight="4.0541672857207711" Text="Fecha de creacion" Tag_type="System.String" Tag="Report_Policies_Detail_fecha_table" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="63" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item2>
      </Controls>
    </Item4>
    <Item5 Ref="64" ControlType="DetailBand" Name="Detail" HeightF="23">
      <Controls>
        <Item1 Ref="65" ControlType="XRLabel" Name="label15" Text="label15" TextAlignment="MiddleCenter" SizeF="405.4166,23" LocationFloat="374.583344,0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="66" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([createDate],-1* ?UTCOffSet )" />
          </ExpressionBindings>
          <StylePriority Ref="67" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="68" ControlType="XRLabel" Name="label14" Text="label14" TextAlignment="MiddleCenter" SizeF="374.5833,23" LocationFloat="0,0" Font="Tahoma, 9pt" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="69" EventName="BeforePrint" PropertyName="Text" Expression="[version]" />
          </ExpressionBindings>
          <StylePriority Ref="70" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
      </Controls>
    </Item5>
    <Item6 Ref="71" ControlType="GroupFooterBand" Name="GroupFooter1" HeightF="223">
      <Controls>
        <Item1 Ref="72" ControlType="XRShape" Name="shape4" FillColor="255,0,161,198" SizeF="779.999939,23" LocationFloat="0,0" ForeColor="Transparent">
          <Shape Ref="73" ShapeName="Rectangle" />
          <StylePriority Ref="74" UseForeColor="false" />
        </Item1>
        <Item2 Ref="75" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" SizeF="779.999939,200" LocationFloat="0,22.9999542" BorderColor="Black" Borders="None">
          <Chart Ref="76">
            <DataContainer Ref="77" DataMember="PolicyDeviceCountDS" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="78" Name="Series 1" ArgumentDataMember="version" ValueDataMembersSerializable="devicecount" LegendTextPattern="{A}">
                  <View Ref="79" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="80" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="81" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="82" />
            <OptionsPrint Ref="83" ImageFormat="Metafile" />
            <XtraPaletteRepository>
              <Item1 Ref="84" Name="Aranda" ScaleMode="Repeat">
                <Palette>
                  <Item1 Ref="85" Color="255,255,255,128" Color2="255,255,255,128" />
                  <Item2 Ref="86" Color="255,0,128,255" Color2="255,0,128,255" />
                  <Item3 Ref="87" Color="Red" Color2="Red" />
                  <Item4 Ref="88" Color="Green" Color2="Green" />
                  <Item5 Ref="89" Color="255,128,0,255" Color2="255,128,0,255" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item2>
      </Controls>
    </Item6>
    <Item7 Ref="90" ControlType="PageFooterBand" Name="PageFooter" HeightF="76.00002">
      <Controls>
        <Item1 Ref="91" ControlType="XRLabel" Name="recycleMessage" Text="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." TextAlignment="TopCenter" SizeF="780.0002,20.6249866" LocationFloat="0,0" Font="Tahoma, 8pt" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="92" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="93" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAO1SURBVGhD7ZnNbeMwEIVTgktwCSkhJbgEAxJ8dgmpgO6AvuWaEnzh3SW4BJfgxUcMtU9jKg42sjdB+ICBpdHwZx5nRhT99NTQ0NDQ0NDQ0PCTEWN8jjEuvL7hBoy4U4zxEmM8c+9tGiYQY1waaZBX5N3b/XqEEBYhhLXJkKYxxp0jD9mPWzdA4CGEcDE5Fn2M8eDIO7Y6WIGQV+QVPdEm5GVdg6HrNy8mzyGEkyPwHELg5bF++Iuj6zfLrt9cRL5l0ZX5kb6rShQeQwjLt7e3VUppm1I6pJQuKaVjSul+0dj1m1dHILL0dv8bSiD3IYQXqYVE4B5dSmmRUtobeSq53ezo+s2pQuDW2ym6frOwdHoY0Z7AW0gpvVdIXHm7L4F6UiEPGd5sZqdRepTrnBpdv1mR+qI/232uRfb8YLJ3tvQ3OGaLs7M+eM4Cb2sESr86Lv0vLRLPjsB5U9kmOkxMrpEhuibSHEGPE16vDlFjp9qr5PEq8/CSCXSkemFcCFw7Al/U/y9DVhmBCI2undjVCKAteo0mrnFMywL3vj3jaDsEG8rCLbtCoM4Vm7XzZ40dpBF59yBPI+dsOl3Vk9gqAUxy2CZYFJf0JNogYZTmrr32S7qp3SgjxO4qhWXMMi7+6MLNm64ebvI4jOM+LUoNUwJGn0Y2efrS1VfxBCoxquda03cgwG21CoHUbyJvctzSfnZYofYD1iST5R11/fi3OA6NImEGAnW+JeI8cVfjlvazw+qFDj4lJbWnCNSahQO5zlRS87METqWwzhcCR6VGMqW6ALOjso0oTnpnEWrLZwjMjlTKgO/zIwL9G52FoD+NNkjSdsyfcf2870Ng5dPtanPpXgI4MUXg1D5y5MhnCayMXRMI9ETX5G4EaoTkFPXwNjVHxVbTrsgolWpvUWt71a/VO78X1PvyEvHjMs+rTf6PgHzazbbXki3R5OfiPcZ9OOyj/pXT4Rs6To/R5cjQe7NHOKpactpSbKT9lme1/sqptO+z2H5r2EkIx0s7IYDzOnSckGQS7OQEErJjZsvzTIwRSB8IR1P5udnynHGGryPrryxUWZSiQyYj91vBCICwd/uvIjtlz/KRk13jHMQoCaNIMRsEYiGykI8d+qFmiy1j59Mj0SGPO1T9V1iU4Gg5m8srb0RxnSPMbPNz194TyCIgpCIRV1JT+xsi2n6xLZH6YyMwp6foSF+IUF1O8aHhX+cHnf7TJqSwSCWiWZxyrZGcr22MEoFD/WxoaGhoaGho+AX4A7kWUPpV0lE1AAAAAElFTkSuQmCC" SizeF="79.5834961,40.7083473" LocationFloat="700.416565,35.2916756" />
        <Item3 Ref="94" ControlType="XRLine" Name="lineFooter" SizeF="773.88,14.6666851" LocationFloat="3.125,20.6249866" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="95" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="96" ControlType="XRPageInfo" Name="pageInfoFooter" SizeF="33.3333359,22.9999962" LocationFloat="69.79163,44.14584" Font="Tahoma, 8pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="97" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="98" ControlType="XRLabel" Name="pagination" Text="Página" SizeF="66.6666641,22.9999962" LocationFloat="3.12497616,44.14584" Font="Tahoma, 8pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="99" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="100" ControlType="XRLabel" Name="messageFooter" Text="Aranda Software. Todos los derechos reservados ©" TextAlignment="TopRight" SizeF="555.3241,23.0000038" LocationFloat="145.092484,44.14584" Font="Tahoma, 8pt" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="101" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item7>
    <Item8 Ref="102" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="40" />
  </Bands>
  <StyleSheet>
    <Item1 Ref="103" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,192,192" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="3" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="PolicyIdDS" ValueMember="id" DisplayMember="name" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="4" Content="System.Int32" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

	--Reporte Resumido de politicas
	EXEC [dbo].[METADATA_REPORT] @amdmReportPolicies,  N'AMDM_Report_Policies_Summary', 4,
	'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="PoliciesSummary" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="DevicesPolicyPlatform" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" Name="language" />
  </Parameters>
  <Bands>
    <Item1 Ref="4" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="5" ControlType="DetailBand" Name="Detail" />
    <Item3 Ref="6" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="7" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="8" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="9" ControlType="XRLabel" Name="typeReport" Multiline="true" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Summary_descripcion">
          <StylePriority Ref="10" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="11" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="12" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="13" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="date">
          <StylePriority Ref="14" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="15" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="16" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="17" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="18" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="19" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="20" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="21" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="22" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="23" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="25" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="27" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="29" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="2">
      <Controls>
        <Item1 Ref="30" ControlType="XRShape" Name="shape8" ForeColor="255,204,204,204">
          <StylePriority Ref="31" UseForeColor="false" />
        </Item1>
        <Item2 Ref="32" ControlType="XRLabel" Name="label7" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Summary_statuslist">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="34" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="35">
            <DataContainer Ref="36" DataMember="PoliciesStatus" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="37" Name="Series 1" ArgumentDataMember="Status" ValueDataMembersSerializable="Policies" LegendTextPattern="{A}">
                  <View Ref="38" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="39" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="40" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="41" />
            <OptionsPrint Ref="42" ImageFormat="Metafile" />
          </Chart>
        </Item3>
      </Controls>
    </Item6>
    <Item7 Ref="43" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="1">
      <Controls>
        <Item1 Ref="44" ControlType="XRShape" Name="shape1" ForeColor="255,204,204,204">
          <StylePriority Ref="45" UseForeColor="false" />
        </Item1>
        <Item2 Ref="46" ControlType="XRLabel" Name="label1" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Summary_platformlist">
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="48" ControlType="XRChart" Name="chart2" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="49">
            <DataContainer Ref="50" DataMember="PoliciesPlatform" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="51" Name="Series 1" ArgumentDataMember="Platform" ValueDataMembersSerializable="Policies" LegendTextPattern="{A}">
                  <View Ref="52" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="53" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="54" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="55" />
            <OptionsPrint Ref="56" ImageFormat="Metafile" />
          </Chart>
        </Item3>
      </Controls>
    </Item7>
    <Item8 Ref="57" ControlType="GroupHeaderBand" Name="GroupHeader3">
      <Controls>
        <Item1 Ref="58" ControlType="XRShape" Name="shape2" ForeColor="255,204,204,204">
          <StylePriority Ref="59" UseForeColor="false" />
        </Item1>
        <Item2 Ref="60" ControlType="XRLabel" Name="label2" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Summary_fulfilledpolicylist">
          <StylePriority Ref="61" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="62" ControlType="XRChart" Name="chart3" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="63">
            <DataContainer Ref="64" DataMember="DevicesPolicyPlatform" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="65" Name="Comply" ArgumentDataMember="Plataforma" ValueDataMembersSerializable="Cumplen" Tag_type="System.String" Tag="Reports_comply">
                  <Label Ref="66" ShowForZeroValues="true" TypeNameSerializable="SideBySideBarSeriesLabel" />
                </Item1>
                <Item2 Ref="67" Name="Not comply" ArgumentDataMember="Plataforma" ValueDataMembersSerializable="No_Cumplen" Tag_type="System.String" Tag="Reports_not_comply" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="68" TypeNameSerializable="XYDiagram">
              <AxisX Ref="69" VisibleInPanesSerializable="-1" />
              <AxisY Ref="70" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="71" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="72">
                  <ConnectorLineStyle Ref="73" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="74" />
            <OptionsPrint Ref="75" ImageFormat="Metafile" />
          </Chart>
        </Item3>
      </Controls>
    </Item8>
  </Bands>
  <LocalizationItems>
    <Item1 Ref="76" Component="#Ref-6" Culture="Default" Path="HeightF" Data="40" />
    <Item2 Ref="77" Component="#Ref-34" Culture="Default" Path="LocationFloat" Data="93.75,23.3676586" />
    <Item3 Ref="78" Component="#Ref-34" Culture="Default" Path="SizeF" Data="686.2502,254.178665" />
    <Item4 Ref="79" Component="#Ref-48" Culture="Default" Path="LocationFloat" Data="93.75,23.3676586" />
    <Item5 Ref="80" Component="#Ref-48" Culture="Default" Path="SizeF" Data="686.250061,244.84993" />
    <Item6 Ref="81" Component="#Ref-62" Culture="Default" Path="LocationFloat" Data="0,23.3676586" />
    <Item7 Ref="82" Component="#Ref-62" Culture="Default" Path="SizeF" Data="780.000061,244.84993" />
    <Item8 Ref="83" Component="#Ref-15" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item9 Ref="84" Component="#Ref-15" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item10 Ref="85" Component="#Ref-15" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item11 Ref="86" Component="#Ref-13" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item12 Ref="87" Component="#Ref-13" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item13 Ref="88" Component="#Ref-13" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item14 Ref="89" Component="#Ref-13" Culture="Default" Path="Text" Data="Fecha:" />
    <Item15 Ref="90" Component="#Ref-13" Culture="en" Path="Text" Data="Date:" />
    <Item16 Ref="91" Component="#Ref-13" Culture="pt" Path="Text" Data="Data:" />
    <Item17 Ref="92" Component="#Ref-5" Culture="Default" Path="HeightF" Data="0" />
    <Item18 Ref="93" Component="#Ref-29" Culture="Default" Path="HeightF" Data="278.7037" />
    <Item19 Ref="94" Component="#Ref-43" Culture="Default" Path="HeightF" Data="268.2176" />
    <Item20 Ref="95" Component="#Ref-57" Culture="Default" Path="HeightF" Data="268.518524" />
    <Item21 Ref="96" Component="#Ref-8" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item22 Ref="97" Component="#Ref-8" Culture="Default" Path="SizeF" Data="257.530334,79.99999" />
    <Item23 Ref="98" Component="#Ref-46" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item24 Ref="99" Component="#Ref-46" Culture="Default" Path="LocationFloat" Data="0,2.4509747" />
    <Item25 Ref="100" Component="#Ref-46" Culture="Default" Path="SizeF" Data="779.9998,20.9166832" />
    <Item26 Ref="101" Component="#Ref-46" Culture="Default" Path="Text" Data="Plataformas" />
    <Item27 Ref="102" Component="#Ref-46" Culture="en" Path="Text" Data="Platforms" />
    <Item28 Ref="103" Component="#Ref-60" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item29 Ref="104" Component="#Ref-60" Culture="Default" Path="LocationFloat" Data="0,2.4509747" />
    <Item30 Ref="105" Component="#Ref-60" Culture="Default" Path="SizeF" Data="779.9998,20.9166832" />
    <Item31 Ref="106" Component="#Ref-60" Culture="Default" Path="Text" Data="Cumplimiento de las políticas" />
    <Item32 Ref="107" Component="#Ref-60" Culture="en" Path="Text" Data="Policy Compliance" />
    <Item33 Ref="108" Component="#Ref-60" Culture="pt" Path="Text" Data="Conformidade política" />
    <Item34 Ref="109" Component="#Ref-32" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item35 Ref="110" Component="#Ref-32" Culture="Default" Path="LocationFloat" Data="0,2.4509747" />
    <Item36 Ref="111" Component="#Ref-32" Culture="Default" Path="SizeF" Data="779.9998,20.9166832" />
    <Item37 Ref="112" Component="#Ref-32" Culture="Default" Path="Text" Data="Estado" />
    <Item38 Ref="113" Component="#Ref-32" Culture="en" Path="Text" Data="State" />
    <Item39 Ref="114" Component="#Ref-3" Culture="Default" Path="Description" Data="Idioma" />
    <Item40 Ref="115" Component="#Ref-21" Culture="Default" Path="LocationFloat" Data="3.125,20.6250515" />
    <Item41 Ref="116" Component="#Ref-21" Culture="Default" Path="SizeF" Data="773.88,14.66662" />
    <Item42 Ref="117" Component="#Ref-20" Culture="Default" Path="LocationFloat" Data="700.416748,35.2916756" />
    <Item43 Ref="118" Component="#Ref-20" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item44 Ref="119" Component="#Ref-27" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item45 Ref="120" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="143.935242,44.14584" />
    <Item46 Ref="121" Component="#Ref-27" Culture="Default" Path="SizeF" Data="556.4815,23.0000038" />
    <Item47 Ref="122" Component="#Ref-27" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ©" />
    <Item48 Ref="123" Component="#Ref-27" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ©" />
    <Item49 Ref="124" Component="#Ref-27" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ©" />
    <Item50 Ref="125" Component="#Ref-17" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item51 Ref="126" Component="#Ref-23" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item52 Ref="127" Component="#Ref-23" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item53 Ref="128" Component="#Ref-23" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item54 Ref="129" Component="#Ref-25" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item55 Ref="130" Component="#Ref-25" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item56 Ref="131" Component="#Ref-25" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item57 Ref="132" Component="#Ref-25" Culture="Default" Path="Text" Data="Página" />
    <Item58 Ref="133" Component="#Ref-25" Culture="en" Path="Text" Data="Page" />
    <Item59 Ref="134" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item60 Ref="135" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item61 Ref="136" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item62 Ref="137" Component="#Ref-18" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item63 Ref="138" Component="#Ref-18" Culture="Default" Path="LocationFloat" Data="3.125,0" />
    <Item64 Ref="139" Component="#Ref-18" Culture="Default" Path="SizeF" Data="773.8799,20.6249866" />
    <Item65 Ref="140" Component="#Ref-18" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item66 Ref="141" Component="#Ref-18" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item67 Ref="142" Component="#Ref-18" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item68 Ref="143" Component="#Ref-7" Culture="Default" Path="HeightF" Data="110.375" />
    <Item69 Ref="144" Component="#Ref-44" Culture="Default" Path="LocationFloat" Data="0.000190734863,0" />
    <Item70 Ref="145" Component="#Ref-44" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item71 Ref="146" Component="#Ref-58" Culture="Default" Path="LocationFloat" Data="0.000190734863,0" />
    <Item72 Ref="147" Component="#Ref-58" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item73 Ref="148" Component="#Ref-30" Culture="Default" Path="LocationFloat" Data="0.000190734863,0" />
    <Item74 Ref="149" Component="#Ref-30" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item75 Ref="150" Component="#Ref-11" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item76 Ref="151" Component="#Ref-11" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item77 Ref="152" Component="#Ref-11" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item78 Ref="153" Component="#Ref-11" Culture="Default" Path="Text" Data="Resumen de políticas" />
    <Item79 Ref="154" Component="#Ref-11" Culture="en" Path="Text" Data="Policy Brief" />
    <Item80 Ref="155" Component="#Ref-11" Culture="pt" Path="Text" Data="Resumo de Política" />
    <Item81 Ref="156" Component="#Ref-4" Culture="Default" Path="HeightF" Data="30" />
    <Item82 Ref="157" Component="#Ref-9" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item83 Ref="158" Component="#Ref-9" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item84 Ref="159" Component="#Ref-9" Culture="Default" Path="SizeF" Data="487.340057,23.0000038" />
    <Item85 Ref="160" Component="#Ref-9" Culture="Default" Path="Text" Data="Este informe muestra información consolidada de las políticas configuradas en MDM." />
    <Item86 Ref="161" Component="#Ref-9" Culture="en" Path="Text" Data="This report shows consolidated information of the policies configured in MDM." />
    <Item87 Ref="162" Component="#Ref-9" Culture="pt" Path="Text" Data="Este relatório mostra informações consolidadas das políticas configuradas no MDM." />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
</XtraReportsLayoutSerializer>'

	--Reporte Resumido de lista de politicas
	EXEC [dbo].[METADATA_REPORT] @amdmReportPolicies,  N'AMDM_Report_Policies_List', 5,
	'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="PolicyList" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="PolicyListDS" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="4" ValueSourceSettings="#Ref-2" Name="status" />
    <Item2 Ref="7" ValueSourceSettings="#Ref-5" ValueInfo="0" Name="platform" Type="#Ref-6" />
    <Item3 Ref="8" Visible="false" ValueInfo="0" Name="UTCOffSet" Type="#Ref-6" />
  </Parameters>
  <Bands>
    <Item1 Ref="9" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="10" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="11" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="12" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="13" ControlType="XRTableCell" Name="tableCell10">
                  <ExpressionBindings>
                    <Item1 Ref="14" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyListDS].[PolicyName]" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="15" ControlType="XRTableCell" Name="tableCell11">
                  <ExpressionBindings>
                    <Item1 Ref="16" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyListDS].[Status]" />
                  </ExpressionBindings>
                </Item2>
                <Item3 Ref="17" ControlType="XRTableCell" Name="tableCell12" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="18" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyListDS].[PolicyVersion]" />
                  </ExpressionBindings>
                  <StylePriority Ref="19" UseTextAlignment="false" />
                </Item3>
                <Item4 Ref="20" ControlType="XRTableCell" Name="tableCell13" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="21" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyListDS].[Platform]" />
                  </ExpressionBindings>
                  <StylePriority Ref="22" UseTextAlignment="false" />
                </Item4>
                <Item5 Ref="23" ControlType="XRTableCell" Name="tableCell14">
                  <ExpressionBindings>
                    <Item1 Ref="24" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([PolicyListDS].[CreateDate],-1* ?UTCOffSet )" />
                  </ExpressionBindings>
                </Item5>
                <Item6 Ref="25" ControlType="XRTableCell" Name="tableCell15" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="26" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyListDS].[DeviceCount]" />
                  </ExpressionBindings>
                  <StylePriority Ref="27" UseTextAlignment="false" />
                </Item6>
                <Item7 Ref="28" ControlType="XRTableCell" Name="tableCell16" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="29" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyListDS].[EnabledSections]" />
                  </ExpressionBindings>
                  <StylePriority Ref="30" UseTextAlignment="false" />
                </Item7>
                <Item8 Ref="31" ControlType="XRTableCell" Name="tableCell17" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="32" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyListDS].[NotFulfilledDeviceCount]" />
                  </ExpressionBindings>
                  <StylePriority Ref="33" UseTextAlignment="false" />
                </Item8>
                <Item9 Ref="34" ControlType="XRTableCell" Name="tableCell18" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="35" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyListDS].[PendingRequest]" />
                  </ExpressionBindings>
                  <StylePriority Ref="36" UseTextAlignment="false" />
                </Item9>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="37" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="38" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="39" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="40" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="41" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_List_descripcion">
          <StylePriority Ref="42" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="43" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="44" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="45" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="46" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="47" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="49" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="50" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="51" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="52" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="53" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="54" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="55" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="56" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="57" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="58" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="59" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="60" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="61" ControlType="GroupHeaderBand" Name="GroupHeader1">
      <Controls>
        <Item1 Ref="62" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="63" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="64" ControlType="XRTableCell" Name="tableCell1" Tag_type="System.String" Tag="Report_Policies_List_nombre" />
                <Item2 Ref="65" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Policies_List_estado" />
                <Item3 Ref="66" ControlType="XRTableCell" Name="tableCell3" Tag_type="System.String" Tag="Report_Policies_List_version" />
                <Item4 Ref="67" ControlType="XRTableCell" Name="tableCell4" Tag_type="System.String" Tag="Report_Policies_List_plataforma" />
                <Item5 Ref="68" ControlType="XRTableCell" Name="tableCell5" Tag_type="System.String" Tag="Report_Policies_List_fecha" />
                <Item6 Ref="69" ControlType="XRTableCell" Name="tableCell6" Tag_type="System.String" Tag="Report_Policies_List_dispositivosconpolitica" />
                <Item7 Ref="70" ControlType="XRTableCell" Name="tableCell7" Multiline="true" Tag_type="System.String" Tag="Report_Policies_List_numerodesecciones" />
                <Item8 Ref="71" ControlType="XRTableCell" Name="tableCell8" Multiline="true" Tag_type="System.String" Tag="Report_Policies_List_dispositivoscumplen" />
                <Item9 Ref="72" ControlType="XRTableCell" Name="tableCell9" Tag_type="System.String" Tag="Report_Policies_List_solicitudesdeinstalacion" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="73" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item6>
  </Bands>
  <LocalizationItems>
    <Item1 Ref="74" Component="#Ref-38" Culture="Default" Path="HeightF" Data="40" />
    <Item2 Ref="75" Component="#Ref-47" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item3 Ref="76" Component="#Ref-47" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item4 Ref="77" Component="#Ref-47" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item5 Ref="78" Component="#Ref-45" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item6 Ref="79" Component="#Ref-45" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item7 Ref="80" Component="#Ref-45" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item8 Ref="81" Component="#Ref-45" Culture="Default" Path="Text" Data="Fecha:" />
    <Item9 Ref="82" Component="#Ref-45" Culture="en" Path="Text" Data="Date:" />
    <Item10 Ref="83" Component="#Ref-45" Culture="pt" Path="Text" Data="Data:" />
    <Item11 Ref="84" Component="#Ref-10" Culture="Default" Path="HeightF" Data="25.306366" />
    <Item12 Ref="85" Component="#Ref-61" Culture="Default" Path="HeightF" Data="66.6666641" />
    <Item13 Ref="86" Component="#Ref-40" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item14 Ref="87" Component="#Ref-40" Culture="Default" Path="SizeF" Data="257.5301,79.9999847" />
    <Item15 Ref="88" Component="#Ref-53" Culture="Default" Path="LocationFloat" Data="3.125,20.6249866" />
    <Item16 Ref="89" Component="#Ref-53" Culture="Default" Path="SizeF" Data="773.88,14.6666851" />
    <Item17 Ref="90" Component="#Ref-52" Culture="Default" Path="LocationFloat" Data="700.416443,35.2916756" />
    <Item18 Ref="91" Component="#Ref-52" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item19 Ref="92" Component="#Ref-59" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item20 Ref="93" Component="#Ref-59" Culture="Default" Path="LocationFloat" Data="142.08313,42.29501" />
    <Item21 Ref="94" Component="#Ref-59" Culture="Default" Path="SizeF" Data="558.3333,23.0000038" />
    <Item22 Ref="95" Component="#Ref-59" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ©" />
    <Item23 Ref="96" Component="#Ref-59" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ©" />
    <Item24 Ref="97" Component="#Ref-59" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ©" />
    <Item25 Ref="98" Component="#Ref-49" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item26 Ref="99" Component="#Ref-55" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item27 Ref="100" Component="#Ref-55" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item28 Ref="101" Component="#Ref-55" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item29 Ref="102" Component="#Ref-57" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item30 Ref="103" Component="#Ref-57" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item31 Ref="104" Component="#Ref-57" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item32 Ref="105" Component="#Ref-57" Culture="Default" Path="Text" Data="Página" />
    <Item33 Ref="106" Component="#Ref-57" Culture="en" Path="Text" Data="Page" />
    <Item34 Ref="107" Component="#Ref-7" Culture="Default" Path="Description" Data="Plataforma" />
    <Item35 Ref="108" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item36 Ref="109" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item37 Ref="110" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item38 Ref="111" Component="#Ref-50" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item39 Ref="112" Component="#Ref-50" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item40 Ref="113" Component="#Ref-50" Culture="Default" Path="SizeF" Data="779.999939,20.6249866" />
    <Item41 Ref="114" Component="#Ref-50" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item42 Ref="115" Component="#Ref-50" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item43 Ref="116" Component="#Ref-50" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item44 Ref="117" Component="#Ref-39" Culture="Default" Path="HeightF" Data="110.375" />
    <Item45 Ref="118" Component="#Ref-4" Culture="Default" Path="Description" Data="Estado" />
    <Item46 Ref="119" Component="#Ref-62" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item47 Ref="120" Component="#Ref-62" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item48 Ref="121" Component="#Ref-62" Culture="Default" Path="SizeF" Data="780,62.5" />
    <Item49 Ref="122" Component="#Ref-11" Culture="Default" Path="Font" Data="Tahoma, 9pt, charSet=0" />
    <Item50 Ref="123" Component="#Ref-11" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item51 Ref="124" Component="#Ref-11" Culture="Default" Path="SizeF" Data="780.000061,25" />
    <Item52 Ref="125" Component="#Ref-64" Culture="Default" Path="Text" Data="Nombre" />
    <Item53 Ref="126" Component="#Ref-64" Culture="en" Path="Text" Data="Name" />
    <Item54 Ref="127" Component="#Ref-64" Culture="pt" Path="Text" Data="Nome" />
    <Item55 Ref="128" Component="#Ref-64" Culture="Default" Path="Weight" Data="1.4826953559756781" />
    <Item56 Ref="129" Component="#Ref-13" Culture="Default" Path="Text" Data="Column1" />
    <Item57 Ref="130" Component="#Ref-13" Culture="Default" Path="Weight" Data="1.2975634765625002" />
    <Item58 Ref="131" Component="#Ref-15" Culture="Default" Path="Text" Data="Column2" />
    <Item59 Ref="132" Component="#Ref-15" Culture="Default" Path="Weight" Data="0.60896270751953108" />
    <Item60 Ref="133" Component="#Ref-17" Culture="Default" Path="Text" Data="Column3" />
    <Item61 Ref="134" Component="#Ref-17" Culture="Default" Path="Weight" Data="0.48972198486328128" />
    <Item62 Ref="135" Component="#Ref-20" Culture="Default" Path="Text" Data="tableCell13" />
    <Item63 Ref="136" Component="#Ref-20" Culture="Default" Path="Weight" Data="0.67500183105468747" />
    <Item64 Ref="137" Component="#Ref-23" Culture="Default" Path="Text" Data="tableCell14" />
    <Item65 Ref="138" Component="#Ref-23" Culture="Default" Path="Weight" Data="1.0433331298828126" />
    <Item66 Ref="139" Component="#Ref-25" Culture="Default" Path="Text" Data="tableCell15" />
    <Item67 Ref="140" Component="#Ref-25" Culture="Default" Path="Weight" Data="0.74041351318359372" />
    <Item68 Ref="141" Component="#Ref-28" Culture="Default" Path="Text" Data="tableCell16" />
    <Item69 Ref="142" Component="#Ref-28" Culture="Default" Path="Weight" Data="0.87582794189453128" />
    <Item70 Ref="143" Component="#Ref-31" Culture="Default" Path="Text" Data="tableCell17" />
    <Item71 Ref="144" Component="#Ref-31" Culture="Default" Path="Weight" Data="0.93625671386718767" />
    <Item72 Ref="145" Component="#Ref-34" Culture="Default" Path="Text" Data="tableCell18" />
    <Item73 Ref="146" Component="#Ref-34" Culture="Default" Path="Weight" Data="1.1329193115234377" />
    <Item74 Ref="147" Component="#Ref-65" Culture="Default" Path="Text" Data="Estado" />
    <Item75 Ref="148" Component="#Ref-65" Culture="en" Path="Text" Data="State" />
    <Item76 Ref="149" Component="#Ref-65" Culture="Default" Path="Weight" Data="0.69584767705003447" />
    <Item77 Ref="150" Component="#Ref-66" Culture="Default" Path="Text" Data="Versión" />
    <Item78 Ref="151" Component="#Ref-66" Culture="en" Path="Text" Data="Version" />
    <Item79 Ref="152" Component="#Ref-66" Culture="pt" Path="Text" Data="Versão" />
    <Item80 Ref="153" Component="#Ref-66" Culture="Default" Path="Weight" Data="0.55959366527022392" />
    <Item81 Ref="154" Component="#Ref-67" Culture="Default" Path="Text" Data="Plataforma" />
    <Item82 Ref="155" Component="#Ref-67" Culture="en" Path="Text" Data="Platform" />
    <Item83 Ref="156" Component="#Ref-67" Culture="Default" Path="Weight" Data="0.7713086841130169" />
    <Item84 Ref="157" Component="#Ref-68" Culture="Default" Path="Text" Data="Fecha de creación" />
    <Item85 Ref="158" Component="#Ref-68" Culture="en" Path="Text" Data="Creation date" />
    <Item86 Ref="159" Component="#Ref-68" Culture="pt" Path="Text" Data="Data de criação" />
    <Item87 Ref="160" Component="#Ref-68" Culture="Default" Path="Weight" Data="1.192192259648958" />
    <Item88 Ref="161" Component="#Ref-69" Culture="Default" Path="Text" Data="Dispositivos con la política" />
    <Item89 Ref="162" Component="#Ref-69" Culture="en" Path="Text" Data="Devices with policy" />
    <Item90 Ref="163" Component="#Ref-69" Culture="pt" Path="Text" Data="Dispositivos com política" />
    <Item91 Ref="164" Component="#Ref-69" Culture="Default" Path="Weight" Data="0.84605316248702367" />
    <Item92 Ref="165" Component="#Ref-70" Culture="Default" Path="Text" Data="Número de secciones habilitadas&#xD;&#xA;" />
    <Item93 Ref="166" Component="#Ref-70" Culture="en" Path="Text" Data="Number of sections enabled" />
    <Item94 Ref="167" Component="#Ref-70" Culture="pt" Path="Text" Data="Número de seções ativadas" />
    <Item95 Ref="168" Component="#Ref-70" Culture="Default" Path="Weight" Data="1.0007894697093092" />
    <Item96 Ref="169" Component="#Ref-71" Culture="Default" Path="Text" Data="Dispositivos que cumplen con la política" />
    <Item97 Ref="170" Component="#Ref-71" Culture="en" Path="Text" Data="Policy Compliant Devices" />
    <Item98 Ref="171" Component="#Ref-71" Culture="pt" Path="Text" Data="Dispositivos em conformidade com a política" />
    <Item99 Ref="172" Component="#Ref-71" Culture="Default" Path="Weight" Data="1.0698379172390051" />
    <Item100 Ref="173" Component="#Ref-72" Culture="Default" Path="Text" Data="Solicitudes de instalación de política pendientes" />
    <Item101 Ref="174" Component="#Ref-72" Culture="en" Path="Text" Data="Pending policy installation requests" />
    <Item102 Ref="175" Component="#Ref-72" Culture="pt" Path="Text" Data="Solicitações de instalação de política pendentes" />
    <Item103 Ref="176" Component="#Ref-72" Culture="Default" Path="Weight" Data="1.2945587810894148" />
    <Item104 Ref="177" Component="#Ref-63" Culture="Default" Path="Weight" Data="1" />
    <Item105 Ref="178" Component="#Ref-12" Culture="Default" Path="Weight" Data="1" />
    <Item106 Ref="179" Component="#Ref-43" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item107 Ref="180" Component="#Ref-43" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item108 Ref="181" Component="#Ref-43" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item109 Ref="182" Component="#Ref-43" Culture="Default" Path="Text" Data="Lista de políticas" />
    <Item110 Ref="183" Component="#Ref-43" Culture="en" Path="Text" Data="Policy list" />
    <Item111 Ref="184" Component="#Ref-9" Culture="Default" Path="HeightF" Data="30" />
    <Item112 Ref="185" Component="#Ref-41" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item113 Ref="186" Component="#Ref-41" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item114 Ref="187" Component="#Ref-41" Culture="Default" Path="SizeF" Data="487.340057,23.0000038" />
    <Item115 Ref="188" Component="#Ref-41" Culture="Default" Path="Text" Data="Este informe muestra la lista de políticas con su estado y cumplimiento en los dispositivos con la política." />
    <Item116 Ref="189" Component="#Ref-41" Culture="en" Path="Text" Data="This report shows the list of policies with their status and compliance on devices with the policy." />
    <Item117 Ref="190" Component="#Ref-41" Culture="pt" Path="Text" Data="Este relatório mostra a lista de políticas com seu status e conformidade em dispositivos com a política." />
    <Item118 Ref="191" Component="#Ref-8" Culture="Default" Path="Description" Data="Diferencia Horaria" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64="PFNxbERhdGFTb3VyY2UgTmFtZT0ic3FsRGF0YVNvdXJjZTEiPjxDb25uZWN0aW9uIE5hbWU9ImxvY2FsaG9zdF9SZWxlYXNlOTE1X0Nvbm5lY3Rpb24iIFByb3ZpZGVyS2V5PSJNU1NxbFNlcnZlciI+PFBhcmFtZXRlcnM+PFBhcmFtZXRlciBOYW1lPSJzZXJ2ZXIiIFZhbHVlPSIobG9jYWwpXFNRTEVYUFJFU1MiIC8+PFBhcmFtZXRlciBOYW1lPSJkYXRhYmFzZSIgVmFsdWU9IlJlbGVhc2U5MTUiIC8+PFBhcmFtZXRlciBOYW1lPSJ1c2VJbnRlZ3JhdGVkU2VjdXJpdHkiIFZhbHVlPSJGYWxzZSIgLz48UGFyYW1ldGVyIE5hbWU9InJlYWQgb25seSIgVmFsdWU9IjEiIC8+PFBhcmFtZXRlciBOYW1lPSJnZW5lcmF0ZUNvbm5lY3Rpb25IZWxwZXIiIFZhbHVlPSJmYWxzZSIgLz48UGFyYW1ldGVyIE5hbWU9InVzZXJpZCIgVmFsdWU9IiIgLz48UGFyYW1ldGVyIE5hbWU9InBhc3N3b3JkIiBWYWx1ZT0iIiAvPjwvUGFyYW1ldGVycz48L0Nvbm5lY3Rpb24+PFF1ZXJ5IFR5cGU9IkN1c3RvbVNxbFF1ZXJ5IiBOYW1lPSJQb2xpY3lMaXN0RFMiPjxQYXJhbWV0ZXIgTmFtZT0icGxhdGZvcm1wYXJhbSIgVHlwZT0iRGV2RXhwcmVzcy5EYXRhQWNjZXNzLkV4cHJlc3Npb24iPihTeXN0ZW0uSW50MzIpKFtQYXJhbWV0ZXJzLnBsYXRmb3JtXSk8L1BhcmFtZXRlcj48UGFyYW1ldGVyIE5hbWU9InN0YXR1c3BhcmFtIiBUeXBlPSJEZXZFeHByZXNzLkRhdGFBY2Nlc3MuRXhwcmVzc2lvbiI+KFN5c3RlbS5TdHJpbmcpKFtQYXJhbWV0ZXJzLnN0YXR1c10pPC9QYXJhbWV0ZXI+PFNxbD5TRUxFQ1QgDQogICAgIElkLA0KICAgICBQb2xpY3lOYW1lICAgICAgICAgICAgICAsDQogICAgIFN0YXR1cyAgICAgICAgICAgICAgICAgICwNCiAgICAgUG9saWN5VmVyc2lvbiAgICAgICAgICAgLA0KICAgICBDcmVhdGVEYXRlICAgICAgICAgICAgICAsDQogICAgIERldmljZUNvdW50ICAgICAgICAgICAgICwNCiAgICAgRW5hYmxlZFNlY3Rpb25zICAgICAgICAgLA0KICAgICBOb3RGdWxmaWxsZWREZXZpY2VDb3VudCAsDQogICAgIFBlbmRpbmdSZXF1ZXN0ICwNCiAgICAgW1BsYXRmb3JtSWRdLA0KCVtQbGF0Zm9ybV0gICAgIA0KRlJPTSBkYm8uVklFV19BTURNX0FMTFBPTElDSUVTDQpXSEVSRSANCltQbGF0Zm9ybUlkXSBJTiAoQHBsYXRmb3JtcGFyYW0pDQphbmQNCltTdGF0dXNdICBJTiAoQHN0YXR1c3BhcmFtKTwvU3FsPjwvUXVlcnk+PFF1ZXJ5IFR5cGU9IkN1c3RvbVNxbFF1ZXJ5IiBOYW1lPSJTdGF0dXNEUyI+PFNxbD5TRUxFQ1QgRElTVElOQ1QgDQogICAgICBbU1RBVFVTXQ0KRlJPTSAgVklFV19BTURNX0FMTFBPTElDSUVTDQpXSEVSRSBbU1RBVFVTXSBJUyBOT1QgTlVMTDwvU3FsPjwvUXVlcnk+PFF1ZXJ5IFR5cGU9IkN1c3RvbVNxbFF1ZXJ5IiBOYW1lPSJQbGF0Zm9ybURTIj48U3FsPlNFTEVDVCBESVNUSU5DVA0KICAgICBwbGF0Zl9pZCAgICBBUyBbSWRdLA0KICAgICBwbGF0Zl9uYW1lICBBUyBbTmFtZV0NCkZST00gQU1ETV9ERVZJQ0VQTEFURk9STQ0KSk9JTiBBTURNX1BPTElDWSAgT04gQU1ETV9ERVZJQ0VQTEFURk9STS5wbGF0Zl9pZCA9IEFNRE1fUE9MSUNZLnBvbGljeV9wbGF0Zm9ybWlkPC9TcWw+PC9RdWVyeT48UmVzdWx0U2NoZW1hPjxEYXRhU2V0IE5hbWU9InNxbERhdGFTb3VyY2UxIj48VmlldyBOYW1lPSJQb2xpY3lMaXN0RFMiPjxGaWVsZCBOYW1lPSJJZCIgVHlwZT0iSW50MzIiIC8+PEZpZWxkIE5hbWU9IlBvbGljeU5hbWUiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0iU3RhdHVzIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9IlBvbGljeVZlcnNpb24iIFR5cGU9IkludDMyIiAvPjxGaWVsZCBOYW1lPSJDcmVhdGVEYXRlIiBUeXBlPSJEYXRlVGltZSIgLz48RmllbGQgTmFtZT0iRGV2aWNlQ291bnQiIFR5cGU9IkludDMyIiAvPjxGaWVsZCBOYW1lPSJFbmFibGVkU2VjdGlvbnMiIFR5cGU9IkludDMyIiAvPjxGaWVsZCBOYW1lPSJOb3RGdWxmaWxsZWREZXZpY2VDb3VudCIgVHlwZT0iSW50MzIiIC8+PEZpZWxkIE5hbWU9IlBlbmRpbmdSZXF1ZXN0IiBUeXBlPSJJbnQzMiIgLz48RmllbGQgTmFtZT0iUGxhdGZvcm1JZCIgVHlwZT0iSW50MzIiIC8+PEZpZWxkIE5hbWU9IlBsYXRmb3JtIiBUeXBlPSJTdHJpbmciIC8+PC9WaWV3PjxWaWV3IE5hbWU9IlN0YXR1c0RTIj48RmllbGQgTmFtZT0iU1RBVFVTIiBUeXBlPSJTdHJpbmciIC8+PC9WaWV3PjxWaWV3IE5hbWU9IlBsYXRmb3JtRFMiPjxGaWVsZCBOYW1lPSJJZCIgVHlwZT0iSW50MzIiIC8+PEZpZWxkIE5hbWU9Ik5hbWUiIFR5cGU9IlN0cmluZyIgLz48L1ZpZXc+PC9EYXRhU2V0PjwvUmVzdWx0U2NoZW1hPjxDb25uZWN0aW9uT3B0aW9ucyBDbG9zZUNvbm5lY3Rpb249InRydWUiIERiQ29tbWFuZFRpbWVvdXQ9IjAiIC8+PC9TcWxEYXRhU291cmNlPg==" />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="StatusDS" ValueMember="STATUS" DisplayMember="STATUS" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="PlatformDS" ValueMember="Id" DisplayMember="Name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

	--Reporte detalle de politica
	EXEC [dbo].[METADATA_REPORT] @amdmReportPolicies,  N'AMDM_Report_Policies_Detail', 6,
	'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="PolicyDetail" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="PolicyVersionListDS" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="4" ValueSourceSettings="#Ref-2" ValueInfo="0" Name="policyId" Type="#Ref-3" />
    <Item2 Ref="5" Visible="false" ValueInfo="0" Name="UTCOffSet" Type="#Ref-3" />
  </Parameters>
  <Bands>
    <Item1 Ref="6" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="7" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="8" ControlType="XRLabel" Name="label15" TextAlignment="MiddleCenter" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="9" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([createDate],-1* ?UTCOffSet )" />
          </ExpressionBindings>
          <StylePriority Ref="10" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="11" ControlType="XRLabel" Name="label14" TextAlignment="MiddleCenter" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="12" EventName="BeforePrint" PropertyName="Text" Expression="[version]" />
          </ExpressionBindings>
          <StylePriority Ref="13" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
      </Controls>
    </Item2>
    <Item3 Ref="14" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="15" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="16" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="17" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_descripcion">
          <StylePriority Ref="18" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="19" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="20" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="21" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="22" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="23" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="25" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="26" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="27" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="28" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="29" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="30" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="31" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="32" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="33" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="34" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="35" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="36" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="37" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="1" ForeColor="255,102,102,102">
      <Controls>
        <Item1 Ref="38" ControlType="XRShape" Name="shape2" ForeColor="255,204,204,204">
          <StylePriority Ref="39" UseForeColor="false" />
        </Item1>
        <Item2 Ref="40" ControlType="XRLabel" Name="label13" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="41" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyDetailsDS].[config]" />
          </ExpressionBindings>
          <StylePriority Ref="42" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="43" ControlType="XRLabel" Name="label12" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_secciones">
          <StylePriority Ref="44" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="45" ControlType="XRLabel" Name="label11" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="46" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyDetailsDS].[version]" />
          </ExpressionBindings>
          <StylePriority Ref="47" UseForeColor="false" />
        </Item4>
        <Item5 Ref="48" ControlType="XRLabel" Name="label10" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_version">
          <StylePriority Ref="49" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="50" ControlType="XRLabel" Name="label9" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <Scripts Ref="51" OnBeforePrint="label9_BeforePrint" />
          <ExpressionBindings>
            <Item1 Ref="52" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([PolicyDetailsDS].[createddate],-1* ?UTCOffSet )" />
          </ExpressionBindings>
          <StylePriority Ref="53" UseForeColor="false" />
        </Item6>
        <Item7 Ref="54" ControlType="XRLabel" Name="label8" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_fecha">
          <StylePriority Ref="55" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="56" ControlType="XRLabel" Name="label7" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="57" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyDetailsDS].[creatormail]" />
          </ExpressionBindings>
          <StylePriority Ref="58" UseForeColor="false" />
        </Item8>
        <Item9 Ref="59" ControlType="XRLabel" Name="label6" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_correo">
          <StylePriority Ref="60" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="61" ControlType="XRLabel" Name="label5" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="62" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyDetailsDS].[creatorname]" />
          </ExpressionBindings>
          <StylePriority Ref="63" UseForeColor="false" />
        </Item10>
        <Item11 Ref="64" ControlType="XRLabel" Name="label4" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_creador">
          <StylePriority Ref="65" UseFont="false" UseForeColor="false" />
        </Item11>
        <Item12 Ref="66" ControlType="XRLabel" Name="label3" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="67" EventName="BeforePrint" PropertyName="Text" Expression="[PolicyDetailsDS].[policyname]" />
          </ExpressionBindings>
          <StylePriority Ref="68" UseForeColor="false" />
        </Item12>
        <Item13 Ref="69" ControlType="XRLabel" Name="label2" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_nombre">
          <StylePriority Ref="70" UseFont="false" UseForeColor="false" />
        </Item13>
        <Item14 Ref="71" ControlType="XRLabel" Name="label1" Multiline="true" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Detail_configuracion">
          <StylePriority Ref="72" UseFont="false" UseForeColor="false" />
        </Item14>
        <Item15 Ref="73" ControlType="XRPictureBox" Name="pictureBox1" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAEsAAABBCAYAAACZ1VmMAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKXSURBVHhe7ZrRVdwwEEUpIaVQAiVQAiVQQn63C0qghJSQUtKBcydnxVG0T2ZshNGY+bjnsM8z0uxDliV575ZlSZxIMdFIMdFIMdFIMdFIMdFIMdFIMdFIMdFIMdFIMdFIcQ+Xy+Un/JqUV7hXdW9BiluhkN+wBOBR1e9FilugABtRqrAZ+QM/1PfwIMUt0LkN87qYDw/3kVDPS1Wf8aDiPEhxC3RemzWVUQXqsjlrLrPaa7NAbfVUkWatQW1plhdqO59ZtPEMu59WPWjzXGaRX55atmYbahjtnccsctvH+1DDaCuWWVy/B3uE/2cCn1ujCh9abdfQVhyzuPZUYuDfqLlSr39qnlQ7e6G9GGah10YVzLDefvLGKLQHL23uNT+MWXb72TaoFLuGHFEirkuba6CHug09hnVvPRHbpc010ENO8D3DVucorlsfLjr5scwyiFGGDZ3MFfQRzyyDuGKYsbvwLdBPTLMMYs2ww45z6CuuWUdDbWmWF2pLs7xQW5rlhdrOZxZtDD/LMmj3XGaRX5YUw9ddtHkes8htF6tDDaO9WGZx3Y5kbs6o0NSq3vi251lmVDmSeRs1/N0z6nuelKLXRhXsjMvOnz7dKIP2wpjVOzZWSKPQrA8Xbe41P/TIUnRHVBO3SptroIebs97iBDcvMmqa2FXaXAM9jlkFYtQt+aJia4i5OWvv0cmPZ5ZBXG3Yu0aNgH5immUQa4YdYpRBX3HNOhpqS7O8UFua5YXa0iwv1DafWXDYpO2Fmtr955ea1f64wz7bf3IW2v3n7rdKUtyCdd4UMzOv6jt4keJWKOIR1AnCTKxuqTxIcQ9WCMgtyAQMeaErxUQjxUQjxUQjxUQjxUQjxUQjxUQjxUQjxUSx3P0F6vvmtrLPlbUAAAAASUVORK5CYII=" ImageAlignment="MiddleCenter" />
      </Controls>
      <StylePriority Ref="74" UseForeColor="false" />
    </Item6>
    <Item7 Ref="75" ControlType="GroupHeaderBand" Name="GroupHeader2">
      <Controls>
        <Item1 Ref="76" ControlType="XRShape" Name="shape1" ForeColor="255,204,204,204">
          <StylePriority Ref="77" UseForeColor="false" />
        </Item1>
        <Item2 Ref="78" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="79" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="80" ControlType="XRTableCell" Name="tableCell1" Tag_type="System.String" Tag="Report_Policies_Detail_version_table" />
                <Item2 Ref="81" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Policies_Detail_fecha_table" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="82" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item2>
      </Controls>
    </Item7>
    <Item8 Ref="83" ControlType="GroupFooterBand" Name="GroupFooter1">
      <Controls>
        <Item1 Ref="84" ControlType="XRShape" Name="shape4" FillColor="255,0,161,198" ForeColor="Transparent">
          <Shape Ref="85" ShapeName="Rectangle" />
          <StylePriority Ref="86" UseForeColor="false" />
        </Item1>
        <Item2 Ref="87" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="88">
            <DataContainer Ref="89" DataMember="PolicyDeviceCountDS" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="90" Name="Series 1" ArgumentDataMember="version" ValueDataMembersSerializable="devicecount" LegendTextPattern="{A}">
                  <View Ref="91" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="92" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="93" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="94" />
            <OptionsPrint Ref="95" ImageFormat="Metafile" />
          </Chart>
        </Item2>
      </Controls>
    </Item8>
  </Bands>
  <StyleSheet>
    <Item1 Ref="96" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,192,192" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <LocalizationItems>
    <Item1 Ref="97" Component="#Ref-14" Culture="Default" Path="HeightF" Data="40.0416679" />
    <Item2 Ref="98" Component="#Ref-87" Culture="Default" Path="LocationFloat" Data="0,22.9999542" />
    <Item3 Ref="99" Component="#Ref-87" Culture="Default" Path="SizeF" Data="779.999939,200" />
    <Item4 Ref="100" Component="#Ref-23" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item5 Ref="101" Component="#Ref-23" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item6 Ref="102" Component="#Ref-23" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item7 Ref="103" Component="#Ref-21" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item8 Ref="104" Component="#Ref-21" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item9 Ref="105" Component="#Ref-21" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item10 Ref="106" Component="#Ref-21" Culture="Default" Path="Text" Data="Fecha:" />
    <Item11 Ref="107" Component="#Ref-21" Culture="en" Path="Text" Data="Data:" />
    <Item12 Ref="108" Component="#Ref-21" Culture="pt" Path="Text" Data="Data:" />
    <Item13 Ref="109" Component="#Ref-7" Culture="Default" Path="HeightF" Data="23" />
    <Item14 Ref="110" Component="#Ref-83" Culture="Default" Path="HeightF" Data="222.999954" />
    <Item15 Ref="111" Component="#Ref-37" Culture="Default" Path="HeightF" Data="208.166763" />
    <Item16 Ref="112" Component="#Ref-75" Culture="Default" Path="HeightF" Data="35.4166679" />
    <Item17 Ref="113" Component="#Ref-16" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item18 Ref="114" Component="#Ref-16" Culture="Default" Path="SizeF" Data="257.5301,79.9999847" />
    <Item19 Ref="115" Component="#Ref-71" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item20 Ref="116" Component="#Ref-71" Culture="Default" Path="LocationFloat" Data="100.624977,22.5000057" />
    <Item21 Ref="117" Component="#Ref-71" Culture="Default" Path="SizeF" Data="204.050888,20.9166565" />
    <Item22 Ref="118" Component="#Ref-71" Culture="Default" Path="Text" Data="Configuración de política" />
    <Item23 Ref="119" Component="#Ref-71" Culture="en" Path="Text" Data="Policy Settings" />
    <Item24 Ref="120" Component="#Ref-71" Culture="pt" Path="Text" Data="Configurações de política" />
    <Item25 Ref="121" Component="#Ref-48" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item26 Ref="122" Component="#Ref-48" Culture="Default" Path="LocationFloat" Data="402.7411,114.333405" />
    <Item27 Ref="123" Component="#Ref-48" Culture="Default" Path="SizeF" Data="194.791626,22.9999466" />
    <Item28 Ref="124" Component="#Ref-48" Culture="Default" Path="Text" Data="Versión:" />
    <Item29 Ref="125" Component="#Ref-48" Culture="en" Path="Text" Data="Version:" />
    <Item30 Ref="126" Component="#Ref-48" Culture="pt" Path="Text" Data="Versão:" />
    <Item31 Ref="127" Component="#Ref-45" Culture="Default" Path="LocationFloat" Data="597.5328,114.333374" />
    <Item32 Ref="128" Component="#Ref-45" Culture="Default" Path="SizeF" Data="180.41687,22.9999466" />
    <Item33 Ref="129" Component="#Ref-45" Culture="Default" Path="Text" Data="label11" />
    <Item34 Ref="130" Component="#Ref-43" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item35 Ref="131" Component="#Ref-43" Culture="Default" Path="LocationFloat" Data="402.7411,137.33342" />
    <Item36 Ref="132" Component="#Ref-43" Culture="Default" Path="SizeF" Data="194.791626,49.41665" />
    <Item37 Ref="133" Component="#Ref-43" Culture="Default" Path="Text" Data="Secciones configuradas en la política:" />
    <Item38 Ref="134" Component="#Ref-43" Culture="en" Path="Text" Data="Sections configured in the policy:" />
    <Item39 Ref="135" Component="#Ref-43" Culture="pt" Path="Text" Data="Seções configuradas na política:" />
    <Item40 Ref="136" Component="#Ref-40" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item41 Ref="137" Component="#Ref-40" Culture="Default" Path="LocationFloat" Data="597.5328,137.333389" />
    <Item42 Ref="138" Component="#Ref-40" Culture="Default" Path="SizeF" Data="180.416748,49.4166336" />
    <Item43 Ref="139" Component="#Ref-40" Culture="Default" Path="Text" Data="label13" />
    <Item44 Ref="140" Component="#Ref-11" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item45 Ref="141" Component="#Ref-11" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item46 Ref="142" Component="#Ref-11" Culture="Default" Path="SizeF" Data="374.5833,23" />
    <Item47 Ref="143" Component="#Ref-11" Culture="Default" Path="Text" Data="label14" />
    <Item48 Ref="144" Component="#Ref-8" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item49 Ref="145" Component="#Ref-8" Culture="Default" Path="LocationFloat" Data="374.583344,0" />
    <Item50 Ref="146" Component="#Ref-8" Culture="Default" Path="SizeF" Data="405.4166,23" />
    <Item51 Ref="147" Component="#Ref-8" Culture="Default" Path="Text" Data="label15" />
    <Item52 Ref="148" Component="#Ref-69" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item53 Ref="149" Component="#Ref-69" Culture="Default" Path="LocationFloat" Data="20.6666317,91.33339" />
    <Item54 Ref="150" Component="#Ref-69" Culture="Default" Path="SizeF" Data="163.5418,23" />
    <Item55 Ref="151" Component="#Ref-69" Culture="Default" Path="Text" Data="Nombre de la política:" />
    <Item56 Ref="152" Component="#Ref-69" Culture="en" Path="Text" Data="Policy Name:" />
    <Item57 Ref="153" Component="#Ref-69" Culture="pt" Path="Text" Data="Nome da política:" />
    <Item58 Ref="154" Component="#Ref-66" Culture="Default" Path="LocationFloat" Data="184.20845,91.33339" />
    <Item59 Ref="155" Component="#Ref-66" Culture="Default" Path="SizeF" Data="211.428253,22.9999237" />
    <Item60 Ref="156" Component="#Ref-66" Culture="Default" Path="Text" Data="label3" />
    <Item61 Ref="157" Component="#Ref-64" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item62 Ref="158" Component="#Ref-64" Culture="Default" Path="LocationFloat" Data="20.6666317,114.333344" />
    <Item63 Ref="159" Component="#Ref-64" Culture="Default" Path="SizeF" Data="163.5418,23" />
    <Item64 Ref="160" Component="#Ref-64" Culture="Default" Path="Text" Data="Creador de la política:" />
    <Item65 Ref="161" Component="#Ref-64" Culture="en" Path="Text" Data="Policy Creator:" />
    <Item66 Ref="162" Component="#Ref-64" Culture="pt" Path="Text" Data="Criador da política:" />
    <Item67 Ref="163" Component="#Ref-61" Culture="Default" Path="LocationFloat" Data="184.20845,114.333374" />
    <Item68 Ref="164" Component="#Ref-61" Culture="Default" Path="SizeF" Data="211.428131,22.9999161" />
    <Item69 Ref="165" Component="#Ref-61" Culture="Default" Path="Text" Data="label5" />
    <Item70 Ref="166" Component="#Ref-59" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item71 Ref="167" Component="#Ref-59" Culture="Default" Path="LocationFloat" Data="20.6666317,137.333359" />
    <Item72 Ref="168" Component="#Ref-59" Culture="Default" Path="SizeF" Data="163.5418,23" />
    <Item73 Ref="169" Component="#Ref-59" Culture="Default" Path="Text" Data="Correo:" />
    <Item74 Ref="170" Component="#Ref-59" Culture="en" Path="Text" Data="Mail:" />
    <Item75 Ref="171" Component="#Ref-59" Culture="pt" Path="Text" Data="Correspondência:" />
    <Item76 Ref="172" Component="#Ref-56" Culture="Default" Path="LocationFloat" Data="184.20845,137.333389" />
    <Item77 Ref="173" Component="#Ref-56" Culture="Default" Path="SizeF" Data="211.428009,22.9999161" />
    <Item78 Ref="174" Component="#Ref-56" Culture="Default" Path="Text" Data="label7" />
    <Item79 Ref="175" Component="#Ref-54" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item80 Ref="176" Component="#Ref-54" Culture="Default" Path="LocationFloat" Data="402.7411,91.33339" />
    <Item81 Ref="177" Component="#Ref-54" Culture="Default" Path="SizeF" Data="194.791626,22.9999542" />
    <Item82 Ref="178" Component="#Ref-54" Culture="Default" Path="Text" Data="Fecha de creación:" />
    <Item83 Ref="179" Component="#Ref-54" Culture="en" Path="Text" Data="Creation date:" />
    <Item84 Ref="180" Component="#Ref-54" Culture="pt" Path="Text" Data="Data de criação:" />
    <Item85 Ref="181" Component="#Ref-50" Culture="Default" Path="LocationFloat" Data="597.5328,91.33336" />
    <Item86 Ref="182" Component="#Ref-50" Culture="Default" Path="SizeF" Data="180.416748,22.9999847" />
    <Item87 Ref="183" Component="#Ref-50" Culture="Default" Path="Text" Data="label9" />
    <Item88 Ref="184" Component="#Ref-29" Culture="Default" Path="LocationFloat" Data="3.125,20.6249866" />
    <Item89 Ref="185" Component="#Ref-29" Culture="Default" Path="SizeF" Data="773.88,14.6666851" />
    <Item90 Ref="186" Component="#Ref-28" Culture="Default" Path="LocationFloat" Data="700.416565,35.2916756" />
    <Item91 Ref="187" Component="#Ref-28" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item92 Ref="188" Component="#Ref-35" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item93 Ref="189" Component="#Ref-35" Culture="Default" Path="LocationFloat" Data="145.092484,44.14584" />
    <Item94 Ref="190" Component="#Ref-35" Culture="Default" Path="SizeF" Data="555.3241,23.0000038" />
    <Item95 Ref="191" Component="#Ref-35" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ©" />
    <Item96 Ref="192" Component="#Ref-35" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ©" />
    <Item97 Ref="193" Component="#Ref-35" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ©" />
    <Item98 Ref="194" Component="#Ref-25" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item99 Ref="195" Component="#Ref-31" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item100 Ref="196" Component="#Ref-31" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item101 Ref="197" Component="#Ref-31" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item102 Ref="198" Component="#Ref-33" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item103 Ref="199" Component="#Ref-33" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item104 Ref="200" Component="#Ref-33" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item105 Ref="201" Component="#Ref-33" Culture="Default" Path="Text" Data="Página" />
    <Item106 Ref="202" Component="#Ref-33" Culture="en" Path="Text" Data="Page" />
    <Item107 Ref="203" Component="#Ref-73" Culture="Default" Path="LocationFloat" Data="19.722208,10.0000067" />
    <Item108 Ref="204" Component="#Ref-73" Culture="Default" Path="SizeF" Data="80.90276,68.83336" />
    <Item109 Ref="205" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item110 Ref="206" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item111 Ref="207" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item112 Ref="208" Component="#Ref-4" Culture="Default" Path="Description" Data="Politica" />
    <Item113 Ref="209" Component="#Ref-26" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item114 Ref="210" Component="#Ref-26" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item115 Ref="211" Component="#Ref-26" Culture="Default" Path="SizeF" Data="780.0002,20.6249866" />
    <Item116 Ref="212" Component="#Ref-26" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item117 Ref="213" Component="#Ref-26" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item118 Ref="214" Component="#Ref-26" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item119 Ref="215" Component="#Ref-15" Culture="Default" Path="HeightF" Data="121.666672" />
    <Item120 Ref="216" Component="#Ref-76" Culture="Default" Path="LocationFloat" Data="3.53212745E-05,0" />
    <Item121 Ref="217" Component="#Ref-76" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item122 Ref="218" Component="#Ref-38" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item123 Ref="219" Component="#Ref-38" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item124 Ref="220" Component="#Ref-84" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item125 Ref="221" Component="#Ref-84" Culture="Default" Path="SizeF" Data="779.999939,23" />
    <Item126 Ref="222" Component="#Ref-78" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item127 Ref="223" Component="#Ref-78" Culture="Default" Path="LocationFloat" Data="4.57763672E-05,10.0000067" />
    <Item128 Ref="224" Component="#Ref-78" Culture="Default" Path="SizeF" Data="780,25" />
    <Item129 Ref="225" Component="#Ref-80" Culture="Default" Path="Text" Data="Version" />
    <Item130 Ref="226" Component="#Ref-80" Culture="pt" Path="Text" Data="Versão" />
    <Item131 Ref="227" Component="#Ref-80" Culture="Default" Path="Weight" Data="3.7458331545790844" />
    <Item132 Ref="228" Component="#Ref-81" Culture="Default" Path="Text" Data="Fecha de creacion" />
    <Item133 Ref="229" Component="#Ref-81" Culture="en" Path="Text" Data="Creation date" />
    <Item134 Ref="230" Component="#Ref-81" Culture="pt" Path="Text" Data="Data de criação" />
    <Item135 Ref="231" Component="#Ref-81" Culture="Default" Path="Weight" Data="4.0541672857207711" />
    <Item136 Ref="232" Component="#Ref-79" Culture="Default" Path="Weight" Data="1" />
    <Item137 Ref="233" Component="#Ref-19" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item138 Ref="234" Component="#Ref-19" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item139 Ref="235" Component="#Ref-19" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item140 Ref="236" Component="#Ref-19" Culture="Default" Path="Text" Data="Detalle de la política" />
    <Item141 Ref="237" Component="#Ref-19" Culture="en" Path="Text" Data="Policy details" />
    <Item142 Ref="238" Component="#Ref-19" Culture="pt" Path="Text" Data="Detalhes da política" />
    <Item143 Ref="239" Component="#Ref-6" Culture="Default" Path="HeightF" Data="30" />
    <Item144 Ref="240" Component="#Ref-17" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item145 Ref="241" Component="#Ref-17" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item146 Ref="242" Component="#Ref-17" Culture="Default" Path="SizeF" Data="487.339966,23.0000038" />
    <Item147 Ref="243" Component="#Ref-17" Culture="Default" Path="Text" Data="Este informe muestra la información de la política, el estado, las versiones existentes y la cantidad de dispositivos por versión." />
    <Item148 Ref="244" Component="#Ref-17" Culture="en" Path="Text" Data="This report displays policy information, status, existing versions and the number of devices per version." />
    <Item149 Ref="245" Component="#Ref-17" Culture="pt" Path="Text" Data="Este relatório exibe informações de política, status, versões existentes e o número de dispositivos por versão." />
    <Item150 Ref="246" Component="#Ref-5" Culture="Default" Path="Description" Data="Diferencia Horaria" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="PolicyIdDS" ValueMember="id" DisplayMember="name" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="3" Content="System.Int32" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

	--Reporte resumen de aplicaciones
	EXEC [dbo].[METADATA_REPORT] @amdmReportApplications, N'AMDM_Report_Applications_Summary', 7,
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report4" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="Applications_By_Category" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" Name="language" />
  </Parameters>
  <Bands>
    <Item1 Ref="4" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="5" ControlType="DetailBand" Name="Detail" />
    <Item3 Ref="6" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="7" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="8" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="9" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Summary_descripcion">
          <StylePriority Ref="10" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="11" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="12" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="13" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="14" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="15" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="16" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="17" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="18" ControlType="XRLabel" Name="recycleMessage" TextAlignment="MiddleCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="19" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="20" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="21" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="22" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="23" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="25" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="27" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="29" ControlType="GroupHeaderBand" Name="GroupHeader1">
      <Controls>
        <Item1 Ref="30" ControlType="XRLabel" Name="label2" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Summary_categorylist">
          <StylePriority Ref="31" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="32" ControlType="XRShape" Name="shape3" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="33" ShapeName="Rectangle" />
          <StylePriority Ref="34" UseForeColor="false" />
        </Item2>
        <Item3 Ref="35" ControlType="XRChart" Name="chart3" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="36">
            <DataContainer Ref="37" DataMember="Applications_By_Category" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="38" Name="Series 1" ArgumentDataMember="Categoria" LegendTextPattern="{A}">
                  <NumericSummaryOptions Ref="39" SummaryFunction="SUM([Aplicaciones])" />
                  <DateTimeSummaryOptions Ref="40" SummaryFunction="SUM([Aplicaciones])" />
                  <QualitativeSummaryOptions Ref="41" SummaryFunction="SUM([Aplicaciones])" />
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="42" TypeNameSerializable="XYDiagram">
              <AxisX Ref="43" VisibleInPanesSerializable="-1" />
              <AxisY Ref="44" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="45" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="46">
                  <ConnectorLineStyle Ref="47" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="48" Visibility="False" Name="Default Legend" />
            <OptionsPrint Ref="49" ImageFormat="Metafile" />
          </Chart>
        </Item3>
      </Controls>
    </Item6>
    <Item7 Ref="50" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="1">
      <Controls>
        <Item1 Ref="51" ControlType="XRLabel" Name="label1" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Summary_appOriginList">
          <StylePriority Ref="52" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="53" ControlType="XRShape" Name="shape2" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="54" ShapeName="Rectangle" />
          <StylePriority Ref="55" UseForeColor="false" />
        </Item2>
        <Item3 Ref="56" ControlType="XRChart" Name="chart2" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="57">
            <DataContainer Ref="58" DataMember="Applications_By_Source" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="59" Name="Series 1" ArgumentDataMember="Fuente" LegendTextPattern="{A}">
                  <View Ref="60" TypeNameSerializable="DoughnutSeriesView" />
                  <NumericSummaryOptions Ref="61" SummaryFunction="SUM([Aplicaciones])" />
                  <DateTimeSummaryOptions Ref="62" SummaryFunction="SUM([Aplicaciones])" />
                  <QualitativeSummaryOptions Ref="63" SummaryFunction="SUM([Aplicaciones])" />
                  <Label Ref="64" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="65" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="66" />
            <OptionsPrint Ref="67" ImageFormat="Metafile" />
          </Chart>
        </Item3>
      </Controls>
    </Item7>
    <Item8 Ref="68" ControlType="GroupHeaderBand" Name="GroupHeader3" Level="2">
      <Controls>
        <Item1 Ref="69" ControlType="XRLabel" Name="label20" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Summary_platformList">
          <StylePriority Ref="70" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="71" ControlType="XRShape" Name="shape1" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="72" ShapeName="Rectangle" />
          <StylePriority Ref="73" UseForeColor="false" />
        </Item2>
        <Item3 Ref="74" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="75" PaletteName="Office" AppearanceNameSerializable="In A Fog">
            <DataContainer Ref="76" DataMember="Applications_By_Platform" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="77" Name="Series 1" ArgumentDataMember="Platform" ValueDataMembersSerializable="Aplicaciones" LegendTextPattern="{A}">
                  <View Ref="78" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="79" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="80" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="81" />
            <OptionsPrint Ref="82" ImageFormat="Metafile" />
          </Chart>
        </Item3>
      </Controls>
    </Item8>
  </Bands>
  <LocalizationItems>
    <Item1 Ref="83" Component="#Ref-6" Culture="Default" Path="HeightF" Data="40.0416679" />
    <Item2 Ref="84" Component="#Ref-74" Culture="Default" Path="LocationFloat" Data="266.499969,27.9167175" />
    <Item3 Ref="85" Component="#Ref-74" Culture="Default" Path="SizeF" Data="336.42,206.04" />
    <Item4 Ref="86" Component="#Ref-56" Culture="Default" Path="LocationFloat" Data="266.499969,27.0000134" />
    <Item5 Ref="87" Component="#Ref-56" Culture="Default" Path="SizeF" Data="336.42,206.04" />
    <Item6 Ref="88" Component="#Ref-35" Culture="Default" Path="LocationFloat" Data="6.35782853E-05,39.9166756" />
    <Item7 Ref="89" Component="#Ref-35" Culture="Default" Path="SizeF" Data="779.999939,318.125" />
    <Item8 Ref="90" Component="#Ref-15" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item9 Ref="91" Component="#Ref-15" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item10 Ref="92" Component="#Ref-15" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item11 Ref="93" Component="#Ref-13" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item12 Ref="94" Component="#Ref-13" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item13 Ref="95" Component="#Ref-13" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item14 Ref="96" Component="#Ref-13" Culture="Default" Path="Text" Data="Fecha:" />
    <Item15 Ref="97" Component="#Ref-13" Culture="en" Path="Text" Data="Date:" />
    <Item16 Ref="98" Component="#Ref-13" Culture="pt" Path="Text" Data="Data:" />
    <Item17 Ref="99" Component="#Ref-5" Culture="Default" Path="HeightF" Data="0" />
    <Item18 Ref="100" Component="#Ref-29" Culture="Default" Path="HeightF" Data="358.0417" />
    <Item19 Ref="101" Component="#Ref-50" Culture="Default" Path="HeightF" Data="240.8317" />
    <Item20 Ref="102" Component="#Ref-68" Culture="Default" Path="HeightF" Data="241.250076" />
    <Item21 Ref="103" Component="#Ref-8" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item22 Ref="104" Component="#Ref-8" Culture="Default" Path="SizeF" Data="257.5301,79.99999" />
    <Item23 Ref="105" Component="#Ref-51" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item24 Ref="106" Component="#Ref-51" Culture="Default" Path="LocationFloat" Data="0,3.99999619" />
    <Item25 Ref="107" Component="#Ref-51" Culture="Default" Path="SizeF" Data="776.9677,23.0000057" />
    <Item26 Ref="108" Component="#Ref-51" Culture="Default" Path="Text" Data=" Origen de la aplicación" />
    <Item27 Ref="109" Component="#Ref-51" Culture="en" Path="Text" Data="Application source" />
    <Item28 Ref="110" Component="#Ref-51" Culture="pt" Path="Text" Data="Fonte do aplicativo" />
    <Item29 Ref="111" Component="#Ref-30" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item30 Ref="112" Component="#Ref-30" Culture="Default" Path="LocationFloat" Data="0,3.99999619" />
    <Item31 Ref="113" Component="#Ref-30" Culture="Default" Path="SizeF" Data="776.9677,23.0000057" />
    <Item32 Ref="114" Component="#Ref-30" Culture="Default" Path="Text" Data="Categorías" />
    <Item33 Ref="115" Component="#Ref-30" Culture="en" Path="Text" Data="Categories" />
    <Item34 Ref="116" Component="#Ref-30" Culture="pt" Path="Text" Data="Categorias" />
    <Item35 Ref="117" Component="#Ref-69" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item36 Ref="118" Component="#Ref-69" Culture="Default" Path="LocationFloat" Data="3.03230286,3.99999619" />
    <Item37 Ref="119" Component="#Ref-69" Culture="Default" Path="SizeF" Data="776.9677,23.0000057" />
    <Item38 Ref="120" Component="#Ref-69" Culture="Default" Path="Text" Data="Plataformas" />
    <Item39 Ref="121" Component="#Ref-69" Culture="en" Path="Text" Data="Platforms" />
    <Item40 Ref="122" Component="#Ref-3" Culture="Default" Path="Description" Data="Lenguaje" />
    <Item41 Ref="123" Component="#Ref-21" Culture="Default" Path="LocationFloat" Data="3.125,20.6250515" />
    <Item42 Ref="124" Component="#Ref-21" Culture="Default" Path="SizeF" Data="773.88,14.66662" />
    <Item43 Ref="125" Component="#Ref-20" Culture="Default" Path="LocationFloat" Data="700.416565,35.2916756" />
    <Item44 Ref="126" Component="#Ref-20" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item45 Ref="127" Component="#Ref-27" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item46 Ref="128" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="118.791451,44.1457977" />
    <Item47 Ref="129" Component="#Ref-27" Culture="Default" Path="SizeF" Data="581.6251,23.0000076" />
    <Item48 Ref="130" Component="#Ref-27" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ©" />
    <Item49 Ref="131" Component="#Ref-27" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ©" />
    <Item50 Ref="132" Component="#Ref-27" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ©" />
    <Item51 Ref="133" Component="#Ref-17" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item52 Ref="134" Component="#Ref-23" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item53 Ref="135" Component="#Ref-23" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item54 Ref="136" Component="#Ref-23" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item55 Ref="137" Component="#Ref-25" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item56 Ref="138" Component="#Ref-25" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item57 Ref="139" Component="#Ref-25" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item58 Ref="140" Component="#Ref-25" Culture="Default" Path="Text" Data="Página" />
    <Item59 Ref="141" Component="#Ref-25" Culture="en" Path="Text" Data="Page" />
    <Item60 Ref="142" Component="#Ref-18" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item61 Ref="143" Component="#Ref-18" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item62 Ref="144" Component="#Ref-18" Culture="Default" Path="SizeF" Data="780.0002,20.6249866" />
    <Item63 Ref="145" Component="#Ref-18" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item64 Ref="146" Component="#Ref-18" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item65 Ref="147" Component="#Ref-18" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item66 Ref="148" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item67 Ref="149" Component="#Ref-1" Culture="Default" Path="DisplayName" Data="ApplicationSummary" />
    <Item68 Ref="150" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item69 Ref="151" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item70 Ref="152" Component="#Ref-7" Culture="Default" Path="HeightF" Data="110.374985" />
    <Item71 Ref="153" Component="#Ref-71" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item72 Ref="154" Component="#Ref-71" Culture="Default" Path="SizeF" Data="780,4" />
    <Item73 Ref="155" Component="#Ref-53" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item74 Ref="156" Component="#Ref-53" Culture="Default" Path="SizeF" Data="780,4" />
    <Item75 Ref="157" Component="#Ref-32" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item76 Ref="158" Component="#Ref-32" Culture="Default" Path="SizeF" Data="780,4" />
    <Item77 Ref="159" Component="#Ref-11" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item78 Ref="160" Component="#Ref-11" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item79 Ref="161" Component="#Ref-11" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item80 Ref="162" Component="#Ref-11" Culture="Default" Path="Text" Data="Resumen de aplicaciones" />
    <Item81 Ref="163" Component="#Ref-11" Culture="en" Path="Text" Data="Application Summary" />
    <Item82 Ref="164" Component="#Ref-11" Culture="pt" Path="Text" Data="Resumo do aplicativo" />
    <Item83 Ref="165" Component="#Ref-4" Culture="Default" Path="HeightF" Data="30" />
    <Item84 Ref="166" Component="#Ref-9" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item85 Ref="167" Component="#Ref-9" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item86 Ref="168" Component="#Ref-9" Culture="Default" Path="SizeF" Data="487.339966,23.0000038" />
    <Item87 Ref="169" Component="#Ref-9" Culture="Default" Path="Text" Data="Este informe muestra la información bancaria consolidada de la aplicación MDM." />
    <Item88 Ref="170" Component="#Ref-9" Culture="en" Path="Text" Data="This report shows the consolidated banking information from the MDM application." />
    <Item89 Ref="171" Component="#Ref-9" Culture="pt" Path="Text" Data="Este relatório mostra as informações bancárias consolidadas do aplicativo MDM." />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
</XtraReportsLayoutSerializer>'
	
	--Reporte lista de aplicaciones
	EXEC [dbo].[METADATA_REPORT] @amdmReportApplications, N'AMDM_Report_Applications_List', 8, 
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="ApplicationList" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="applicationList" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="4" ValueSourceSettings="#Ref-2" ValueInfo="0" Name="plataform" Type="#Ref-3" />
    <Item2 Ref="7" ValueSourceSettings="#Ref-5" Name="source" />
  </Parameters>
  <Bands>
    <Item1 Ref="8" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="9" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="10" ControlType="XRTable" Name="table3" TextAlignment="MiddleLeft" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="11" ControlType="XRTableRow" Name="tableRow3">
              <Cells>
                <Item1 Ref="12" ControlType="XRTableCell" Name="tableCell13" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="13" EventName="BeforePrint" PropertyName="Text" Expression="[ApplicationName]" />
                  </ExpressionBindings>
                  <StylePriority Ref="14" UseForeColor="false" />
                </Item1>
                <Item2 Ref="15" ControlType="XRTableCell" Name="tableCell14" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="16" EventName="BeforePrint" PropertyName="Text" Expression="[PackageId]" />
                  </ExpressionBindings>
                  <StylePriority Ref="17" UseForeColor="false" />
                </Item2>
                <Item3 Ref="18" ControlType="XRTableCell" Name="tableCell15" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[Type]" />
                  </ExpressionBindings>
                  <StylePriority Ref="20" UseForeColor="false" />
                </Item3>
                <Item4 Ref="21" ControlType="XRTableCell" Name="tableCell17" TextAlignment="MiddleLeft" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="22" EventName="BeforePrint" PropertyName="Text" Expression="[Platform]" />
                  </ExpressionBindings>
                  <StylePriority Ref="23" UseForeColor="false" UseTextAlignment="false" />
                </Item4>
                <Item5 Ref="24" ControlType="XRTableCell" Name="tableCell16" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="25" EventName="BeforePrint" PropertyName="Text" Expression="[Version]" />
                  </ExpressionBindings>
                  <StylePriority Ref="26" UseForeColor="false" />
                </Item5>
                <Item6 Ref="27" ControlType="XRTableCell" Name="tableCell18" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="28" EventName="BeforePrint" PropertyName="Text" Expression="[Cost]" />
                  </ExpressionBindings>
                  <StylePriority Ref="29" UseForeColor="false" />
                </Item6>
                <Item7 Ref="30" ControlType="XRTableCell" Name="tableCell19" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="31" EventName="BeforePrint" PropertyName="Text" Expression="[Source]" />
                  </ExpressionBindings>
                  <StylePriority Ref="32" UseForeColor="false" />
                </Item7>
                <Item8 Ref="33" ControlType="XRTableCell" Name="tableCell20" TextAlignment="MiddleCenter" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="34" EventName="BeforePrint" PropertyName="Text" Expression="[Devices]" />
                  </ExpressionBindings>
                  <StylePriority Ref="35" UseForeColor="false" UseTextAlignment="false" />
                </Item8>
                <Item9 Ref="36" ControlType="XRTableCell" Name="tableCell21" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="37" EventName="BeforePrint" PropertyName="Text" Expression="[Company]" />
                  </ExpressionBindings>
                  <StylePriority Ref="38" UseForeColor="false" />
                </Item9>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="39" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="40" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="41" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="42" ControlType="XRShape" Name="shape1" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="43" ShapeName="Rectangle" />
          <StylePriority Ref="44" UseForeColor="false" />
        </Item1>
        <Item2 Ref="45" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item3 Ref="46" ControlType="XRLabel" Name="typeReport" Multiline="true" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_List_descripcion">
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="48" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="49" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item4>
        <Item5 Ref="50" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="51" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
        <Item6 Ref="52" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="53" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="54" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="55" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="56" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="57" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="58" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="59" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="60" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="61" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="62" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="63" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="64" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="65" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="66" ControlType="GroupHeaderBand" Name="GroupHeader1">
      <Controls>
        <Item1 Ref="67" ControlType="XRTable" Name="table2" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="68" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="69" ControlType="XRTableCell" Name="tableCell10" Tag_type="System.String" Tag="Report_Applications_List_nombre" />
                <Item2 Ref="70" ControlType="XRTableCell" Name="tableCell11" Tag_type="System.String" Tag="Report_Applications_List_paquete" />
                <Item3 Ref="71" ControlType="XRTableCell" Name="tableCell12" Tag_type="System.String" Tag="Report_Applications_List_tipo" />
                <Item4 Ref="72" ControlType="XRTableCell" Name="tableCell1" Tag_type="System.String" Tag="Report_Applications_List_plataforma" />
                <Item5 Ref="73" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Applications_List_version" />
                <Item6 Ref="74" ControlType="XRTableCell" Name="tableCell3" Tag_type="System.String" Tag="Report_Applications_List_costo" />
                <Item7 Ref="75" ControlType="XRTableCell" Name="tableCell4" Tag_type="System.String" Tag="Report_Applications_List_origen" />
                <Item8 Ref="76" ControlType="XRTableCell" Name="tableCell5" Tag_type="System.String" Tag="Report_Applications_List_dispositivos" />
                <Item9 Ref="77" ControlType="XRTableCell" Name="tableCell6" Tag_type="System.String" Tag="Report_Applications_List_compañia" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="78" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item6>
  </Bands>
  <LocalizationItems>
    <Item1 Ref="79" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item2 Ref="80" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item3 Ref="81" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item4 Ref="82" Component="#Ref-40" Culture="Default" Path="HeightF" Data="40" />
    <Item5 Ref="83" Component="#Ref-52" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item6 Ref="84" Component="#Ref-52" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item7 Ref="85" Component="#Ref-52" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item8 Ref="86" Component="#Ref-50" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item9 Ref="87" Component="#Ref-50" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item10 Ref="88" Component="#Ref-50" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item11 Ref="89" Component="#Ref-50" Culture="Default" Path="Text" Data="Fecha:" />
    <Item12 Ref="90" Component="#Ref-50" Culture="en" Path="Text" Data=" Date:" />
    <Item13 Ref="91" Component="#Ref-50" Culture="pt" Path="Text" Data="Data:" />
    <Item14 Ref="92" Component="#Ref-9" Culture="Default" Path="HeightF" Data="25" />
    <Item15 Ref="93" Component="#Ref-66" Culture="Default" Path="HeightF" Data="25" />
    <Item16 Ref="94" Component="#Ref-45" Culture="Default" Path="LocationFloat" Data="522.4701,0" />
    <Item17 Ref="95" Component="#Ref-45" Culture="Default" Path="SizeF" Data="257.529968,79.99999" />
    <Item18 Ref="96" Component="#Ref-58" Culture="Default" Path="LocationFloat" Data="3.125,20.6249866" />
    <Item19 Ref="97" Component="#Ref-58" Culture="Default" Path="SizeF" Data="773.88,14.6666851" />
    <Item20 Ref="98" Component="#Ref-57" Culture="Default" Path="LocationFloat" Data="700.416443,35.2916756" />
    <Item21 Ref="99" Component="#Ref-57" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item22 Ref="100" Component="#Ref-64" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item23 Ref="101" Component="#Ref-64" Culture="Default" Path="LocationFloat" Data="118.791451,44.1457977" />
    <Item24 Ref="102" Component="#Ref-64" Culture="Default" Path="SizeF" Data="581.625,23.0000076" />
    <Item25 Ref="103" Component="#Ref-64" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ©" />
    <Item26 Ref="104" Component="#Ref-64" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ©" />
    <Item27 Ref="105" Component="#Ref-64" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ©" />
    <Item28 Ref="106" Component="#Ref-54" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item29 Ref="107" Component="#Ref-60" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item30 Ref="108" Component="#Ref-60" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item31 Ref="109" Component="#Ref-60" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item32 Ref="110" Component="#Ref-62" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item33 Ref="111" Component="#Ref-62" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item34 Ref="112" Component="#Ref-62" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item35 Ref="113" Component="#Ref-62" Culture="Default" Path="Text" Data="Página" />
    <Item36 Ref="114" Component="#Ref-62" Culture="en" Path="Text" Data="Page" />
    <Item37 Ref="115" Component="#Ref-4" Culture="Default" Path="Description" Data="Plataforma" />
    <Item38 Ref="116" Component="#Ref-55" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item39 Ref="117" Component="#Ref-55" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item40 Ref="118" Component="#Ref-55" Culture="Default" Path="SizeF" Data="777.0049,20.6249866" />
    <Item41 Ref="119" Component="#Ref-55" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item42 Ref="120" Component="#Ref-55" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item43 Ref="121" Component="#Ref-55" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item44 Ref="122" Component="#Ref-41" Culture="Default" Path="HeightF" Data="126.000023" />
    <Item45 Ref="123" Component="#Ref-42" Culture="Default" Path="LocationFloat" Data="0,112.000015" />
    <Item46 Ref="124" Component="#Ref-42" Culture="Default" Path="SizeF" Data="780,4" />
    <Item47 Ref="125" Component="#Ref-7" Culture="Default" Path="Description" Data="Origen" />
    <Item48 Ref="126" Component="#Ref-67" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item49 Ref="127" Component="#Ref-67" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item50 Ref="128" Component="#Ref-67" Culture="Default" Path="SizeF" Data="770.0001,25" />
    <Item51 Ref="129" Component="#Ref-10" Culture="Default" Path="Font" Data="Tahoma, 9pt, charSet=0" />
    <Item52 Ref="130" Component="#Ref-10" Culture="Default" Path="LocationFloat" Data="0.000190734863,0" />
    <Item53 Ref="131" Component="#Ref-10" Culture="Default" Path="SizeF" Data="769.9998,25" />
    <Item54 Ref="132" Component="#Ref-72" Culture="Default" Path="Text" Data="Plataforma" />
    <Item55 Ref="133" Component="#Ref-72" Culture="en" Path="Text" Data="Platform" />
    <Item56 Ref="134" Component="#Ref-72" Culture="Default" Path="Weight" Data="0.73050846512698042" />
    <Item57 Ref="135" Component="#Ref-69" Culture="Default" Path="Text" Data="Nombre Aplicación" />
    <Item58 Ref="136" Component="#Ref-69" Culture="en" Path="Text" Data="Application Name" />
    <Item59 Ref="137" Component="#Ref-69" Culture="pt" Path="Text" Data="Nome da Aplicação" />
    <Item60 Ref="138" Component="#Ref-69" Culture="Default" Path="Weight" Data="1.2514916274661143" />
    <Item61 Ref="139" Component="#Ref-70" Culture="Default" Path="Text" Data="ID Paquete" />
    <Item62 Ref="140" Component="#Ref-70" Culture="en" Path="Text" Data="Package ID" />
    <Item63 Ref="141" Component="#Ref-70" Culture="pt" Path="Text" Data="ID do pacote" />
    <Item64 Ref="142" Component="#Ref-70" Culture="Default" Path="Weight" Data="0.97767513729277" />
    <Item65 Ref="143" Component="#Ref-71" Culture="Default" Path="Text" Data="Tipo" />
    <Item66 Ref="144" Component="#Ref-71" Culture="en" Path="Text" Data="Tyoe" />
    <Item67 Ref="145" Component="#Ref-71" Culture="pt" Path="Text" Data="Cara" />
    <Item68 Ref="146" Component="#Ref-71" Culture="Default" Path="Weight" Data="0.9879170575492987" />
    <Item69 Ref="147" Component="#Ref-12" Culture="Default" Path="Text" Data="Column1" />
    <Item70 Ref="148" Component="#Ref-12" Culture="Default" Path="Weight" Data="1.2514896392822266" />
    <Item71 Ref="149" Component="#Ref-15" Culture="Default" Path="Text" Data="Column2" />
    <Item72 Ref="150" Component="#Ref-15" Culture="Default" Path="Weight" Data="0.97767486572265627" />
    <Item73 Ref="151" Component="#Ref-18" Culture="Default" Path="Text" Data="Column3" />
    <Item74 Ref="152" Component="#Ref-18" Culture="Default" Path="Weight" Data="0.98791732788085951" />
    <Item75 Ref="153" Component="#Ref-24" Culture="Default" Path="Text" Data="tableCell16" />
    <Item76 Ref="154" Component="#Ref-24" Culture="Default" Path="Weight" Data="0.7171472167968751" />
    <Item77 Ref="155" Component="#Ref-21" Culture="Default" Path="Text" Data="tableCell17" />
    <Item78 Ref="156" Component="#Ref-21" Culture="Default" Path="Weight" Data="0.73050842285156248" />
    <Item79 Ref="157" Component="#Ref-27" Culture="Default" Path="Text" Data="tableCell18" />
    <Item80 Ref="158" Component="#Ref-27" Culture="Default" Path="Weight" Data="0.63381599426269519" />
    <Item81 Ref="159" Component="#Ref-30" Culture="Default" Path="Text" Data="tableCell19" />
    <Item82 Ref="160" Component="#Ref-30" Culture="Default" Path="Weight" Data="0.80048156738281251" />
    <Item83 Ref="161" Component="#Ref-73" Culture="Default" Path="Text" Data="Versión" />
    <Item84 Ref="162" Component="#Ref-73" Culture="en" Path="Text" Data="Version" />
    <Item85 Ref="163" Component="#Ref-73" Culture="pt" Path="Text" Data="Versão" />
    <Item86 Ref="164" Component="#Ref-73" Culture="Default" Path="Weight" Data="0.71714721349405486" />
    <Item87 Ref="165" Component="#Ref-33" Culture="Default" Path="Text" Data="tableCell20" />
    <Item88 Ref="166" Component="#Ref-33" Culture="Default" Path="Weight" Data="0.80048156738281251" />
    <Item89 Ref="167" Component="#Ref-36" Culture="Default" Path="Text" Data="tableCell21" />
    <Item90 Ref="168" Component="#Ref-36" Culture="Default" Path="Weight" Data="0.80048156738281251" />
    <Item91 Ref="169" Component="#Ref-74" Culture="Default" Path="Text" Data="Costo" />
    <Item92 Ref="170" Component="#Ref-74" Culture="en" Path="Text" Data="Cost" />
    <Item93 Ref="171" Component="#Ref-74" Culture="pt" Path="Text" Data="Custo" />
    <Item94 Ref="172" Component="#Ref-74" Culture="Default" Path="Weight" Data="0.63381640727390709" />
    <Item95 Ref="173" Component="#Ref-75" Culture="Default" Path="Text" Data="Origen" />
    <Item96 Ref="174" Component="#Ref-75" Culture="en" Path="Text" Data="Origin" />
    <Item97 Ref="175" Component="#Ref-75" Culture="pt" Path="Text" Data="Origem" />
    <Item98 Ref="176" Component="#Ref-75" Culture="Default" Path="Weight" Data="0.80048187255859382" />
    <Item99 Ref="177" Component="#Ref-76" Culture="Default" Path="Text" Data="Dispositivos" />
    <Item100 Ref="178" Component="#Ref-76" Culture="en" Path="Text" Data="Devices" />
    <Item101 Ref="179" Component="#Ref-76" Culture="Default" Path="Weight" Data="0.80048187255859382" />
    <Item102 Ref="180" Component="#Ref-77" Culture="Default" Path="Text" Data="Compañía" />
    <Item103 Ref="181" Component="#Ref-77" Culture="en" Path="Text" Data="Company" />
    <Item104 Ref="182" Component="#Ref-77" Culture="pt" Path="Text" Data="Empresa" />
    <Item105 Ref="183" Component="#Ref-77" Culture="Default" Path="Weight" Data="0.80048187255859382" />
    <Item106 Ref="184" Component="#Ref-68" Culture="Default" Path="Weight" Data="1" />
    <Item107 Ref="185" Component="#Ref-11" Culture="Default" Path="Weight" Data="1" />
    <Item108 Ref="186" Component="#Ref-48" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item109 Ref="187" Component="#Ref-48" Culture="Default" Path="LocationFloat" Data="20.6666622,10.0000381" />
    <Item110 Ref="188" Component="#Ref-48" Culture="Default" Path="SizeF" Data="487.339966,31.3333244" />
    <Item111 Ref="189" Component="#Ref-48" Culture="Default" Path="Text" Data="Lista de aplicaciones" />
    <Item112 Ref="190" Component="#Ref-48" Culture="en" Path="Text" Data="Application list" />
    <Item113 Ref="191" Component="#Ref-48" Culture="pt" Path="Text" Data="Lista de aplicativos" />
    <Item114 Ref="192" Component="#Ref-8" Culture="Default" Path="HeightF" Data="30" />
    <Item115 Ref="193" Component="#Ref-46" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item116 Ref="194" Component="#Ref-46" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item117 Ref="195" Component="#Ref-46" Culture="Default" Path="SizeF" Data="487.34,23" />
    <Item118 Ref="196" Component="#Ref-46" Culture="Default" Path="Text" Data="Este informe muestra la lista de aplicaciones con sus características básicas" />
    <Item119 Ref="197" Component="#Ref-46" Culture="en" Path="Text" Data="This report shows the list of applications with their basic features" />
    <Item120 Ref="198" Component="#Ref-46" Culture="pt" Path="Text" Data="Este relatório mostra a lista de aplicativos com seus recursos básicos" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64="PFNxbERhdGFTb3VyY2UgTmFtZT0ic3FsRGF0YVNvdXJjZTEiPjxDb25uZWN0aW9uIE5hbWU9ImxvY2FsaG9zdF9BRU1NQXp1cmUwMU11bHRpX0Nvbm5lY3Rpb24iIFByb3ZpZGVyS2V5PSJNU1NxbFNlcnZlciI+PFBhcmFtZXRlcnM+PFBhcmFtZXRlciBOYW1lPSJzZXJ2ZXIiIFZhbHVlPSJ2bS1hZW1tLWRiLTAxLndlc3R1cy5jbG91ZGFwcC5henVyZS5jb20sMTQzM1xTUUxERVZFTE9QRVIiIC8+PFBhcmFtZXRlciBOYW1lPSJkYXRhYmFzZSIgVmFsdWU9IkFFTU1BenVyZTAxTXVsdGkiIC8+PFBhcmFtZXRlciBOYW1lPSJ1c2VJbnRlZ3JhdGVkU2VjdXJpdHkiIFZhbHVlPSJGYWxzZSIgLz48UGFyYW1ldGVyIE5hbWU9InJlYWQgb25seSIgVmFsdWU9IjEiIC8+PFBhcmFtZXRlciBOYW1lPSJnZW5lcmF0ZUNvbm5lY3Rpb25IZWxwZXIiIFZhbHVlPSJmYWxzZSIgLz48UGFyYW1ldGVyIE5hbWU9InVzZXJpZCIgVmFsdWU9IiIgLz48UGFyYW1ldGVyIE5hbWU9InBhc3N3b3JkIiBWYWx1ZT0iIiAvPjwvUGFyYW1ldGVycz48L0Nvbm5lY3Rpb24+PFF1ZXJ5IFR5cGU9IkN1c3RvbVNxbFF1ZXJ5IiBOYW1lPSJhcHBsaWNhdGlvbkxpc3QiPjxQYXJhbWV0ZXIgTmFtZT0icGxhdGZvcm1wYXJhbSIgVHlwZT0iRGV2RXhwcmVzcy5EYXRhQWNjZXNzLkV4cHJlc3Npb24iPihTeXN0ZW0uSW50MzIpKFtQYXJhbWV0ZXJzLnBsYXRhZm9ybV0pPC9QYXJhbWV0ZXI+PFBhcmFtZXRlciBOYW1lPSJzb3VyY2VwYXJhbSIgVHlwZT0iRGV2RXhwcmVzcy5EYXRhQWNjZXNzLkV4cHJlc3Npb24iPihTeXN0ZW0uU3RyaW5nKShbUGFyYW1ldGVycy5zb3VyY2VdKTwvUGFyYW1ldGVyPjxTcWw+U0VMRUNUIA0KSWQsDQpbQXBwbGljYXRpb25OYW1lXSwNCltQYWNrYWdlSWRdCQkgLA0KW1R5cGVdCQkJICwNCltQbGF0Zm9ybUlkXSAgICAgLA0KcGxhdGYucGxhdGZfbmFtZSBBUyBbUGxhdGZvcm1dLA0KW1ZlcnNpb25dCQkgLA0KW0Nvc3RdCQkJICwNCltTb3VyY2VdCQkgLA0KW0RldmljZXNdCQkgLA0KW0NvbXBhbnldDQpGUk9NIERCTy5WSUVXX0FNRE1fQUxMQVBQTElDQVRJT05TIGFwcHMgTEVGVCBPVVRFUiBKT0lOIERCTy5BTURNX0RFVklDRVBMQVRGT1JNIHBsYXRmIG9uIHBsYXRmLnBsYXRmX2lkID0gYXBwcy5QbGF0Zm9ybUlkDQpXSEVSRQ0KUGxhdGZvcm1JZCBpbiAoQHBsYXRmb3JtcGFyYW0pDQpBTkQNClNvdXJjZSBpbiAoQHNvdXJjZXBhcmFtKTwvU3FsPjwvUXVlcnk+PFF1ZXJ5IFR5cGU9IkN1c3RvbVNxbFF1ZXJ5IiBOYW1lPSJwbGF0YWZvcm1EUyI+PFNxbD5TRUxFQ1QgRElTVElOQ1QNCglwbGF0Zl9pZCAgICAgICBBUyBbUGxhdGZvcm1JZF0sDQoJcGxhdGZfbmFtZSAgICAgQVMgW1BsYXRmb3JtXSAgICAgICANCkZST00gQU1ETV9ERVZJQ0VQTEFURk9STQ0KSk9JTiBBTURNX0FQUFNJTkZPUk1BVElPTiBPTiBBTURNX0FQUFNJTkZPUk1BVElPTi5wbGF0Zm9ybV9pZCA9IEFNRE1fREVWSUNFUExBVEZPUk0ucGxhdGZfaWQ8L1NxbD48L1F1ZXJ5PjxRdWVyeSBUeXBlPSJDdXN0b21TcWxRdWVyeSIgTmFtZT0ic291cmNlRFMiPjxTcWw+U0VMRUNUIERJU1RJTkNUDQoNCltTb3VyY2VdCQkgDQoNCkZST00gREJPLlZJRVdfQU1ETV9BTExBUFBMSUNBVElPTlMNCg0KT1JERVIgQlkgU09VUkNFPC9TcWw+PC9RdWVyeT48UmVzdWx0U2NoZW1hPjxEYXRhU2V0IE5hbWU9InNxbERhdGFTb3VyY2UxIj48VmlldyBOYW1lPSJhcHBsaWNhdGlvbkxpc3QiPjxGaWVsZCBOYW1lPSJJZCIgVHlwZT0iSW50MzIiIC8+PEZpZWxkIE5hbWU9IkFwcGxpY2F0aW9uTmFtZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJQYWNrYWdlSWQiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0iVHlwZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJQbGF0Zm9ybUlkIiBUeXBlPSJJbnQzMiIgLz48RmllbGQgTmFtZT0iUGxhdGZvcm0iIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0iVmVyc2lvbiIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJDb3N0IiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9IlNvdXJjZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJEZXZpY2VzIiBUeXBlPSJJbnQzMiIgLz48RmllbGQgTmFtZT0iQ29tcGFueSIgVHlwZT0iU3RyaW5nIiAvPjwvVmlldz48VmlldyBOYW1lPSJwbGF0YWZvcm1EUyI+PEZpZWxkIE5hbWU9IlBsYXRmb3JtSWQiIFR5cGU9IkludDMyIiAvPjxGaWVsZCBOYW1lPSJQbGF0Zm9ybSIgVHlwZT0iU3RyaW5nIiAvPjwvVmlldz48VmlldyBOYW1lPSJzb3VyY2VEUyI+PEZpZWxkIE5hbWU9IlNvdXJjZSIgVHlwZT0iU3RyaW5nIiAvPjwvVmlldz48L0RhdGFTZXQ+PC9SZXN1bHRTY2hlbWE+PENvbm5lY3Rpb25PcHRpb25zIENsb3NlQ29ubmVjdGlvbj0idHJ1ZSIgRGJDb21tYW5kVGltZW91dD0iMCIgLz48L1NxbERhdGFTb3VyY2U+" />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="plataformDS" ValueMember="PlatformId" DisplayMember="Platform" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="3" Content="System.Int32" Type="System.Type" />
    <Item3 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="sourceDS" ValueMember="Source" DisplayMember="Source" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

	--Reporte detalle de aplicacion
	EXEC [dbo].[METADATA_REPORT] @amdmReportApplications, N'AMDM_Report_Applications_Detail', 9,
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AplicationDetail" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="applicationDetail" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="4" ValueSourceSettings="#Ref-2" ValueInfo="0" Name="Aplicacion" Type="#Ref-3" />
    <Item2 Ref="6" ValueInfo="es" Name="language" />
    <Item3 Ref="8" ValueInfo="True" Tag_type="System.String" Tag="valueShowDescription" Name="showDescription" Type="#Ref-7" />
    <Item4 Ref="9" Visible="false" ValueInfo="0" Name="UTCOffSet" Type="#Ref-3" />
  </Parameters>
  <Bands>
    <Item1 Ref="10" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="11" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="12" ControlType="XRLabel" Name="label24" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="13" EventName="BeforePrint" PropertyName="Text" Expression="[Policies]" />
          </ExpressionBindings>
          <StylePriority Ref="14" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="15" ControlType="XRLabel" Name="label23" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_politicas">
          <StylePriority Ref="16" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="17" ControlType="XRLine" Name="line1" LineStyle="Dot" ForeColor="255,204,204,204">
          <StylePriority Ref="18" UseForeColor="false" />
        </Item3>
        <Item4 Ref="19" ControlType="XRLabel" Name="label22" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_identificacion">
          <StylePriority Ref="20" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="21" ControlType="XRLabel" Name="label21" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_fabricacion">
          <StylePriority Ref="22" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="23" ControlType="XRLabel" Name="label20" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_dispositivos">
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="25" ControlType="XRLabel" Name="label19" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_origen">
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="27" ControlType="XRLabel" Name="label18" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_actualizacion">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="29" ControlType="XRLabel" Name="label17" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_calificacion">
          <StylePriority Ref="30" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="31" ControlType="XRLabel" Name="label16" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_costo">
          <StylePriority Ref="32" UseFont="false" UseForeColor="false" />
        </Item10>
        <Item11 Ref="33" ControlType="XRLabel" Name="label15" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_version">
          <StylePriority Ref="34" UseFont="false" UseForeColor="false" />
        </Item11>
        <Item12 Ref="35" ControlType="XRLabel" Name="label14" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_plataforma">
          <StylePriority Ref="36" UseFont="false" UseForeColor="false" />
        </Item12>
        <Item13 Ref="37" ControlType="XRLabel" Name="label3" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="38" EventName="BeforePrint" PropertyName="Text" Expression="[Tipo]" />
          </ExpressionBindings>
          <StylePriority Ref="39" UseFont="false" UseForeColor="false" />
        </Item13>
        <Item14 Ref="40" ControlType="XRLabel" Name="label13" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_tipo">
          <StylePriority Ref="41" UseFont="false" UseForeColor="false" />
        </Item14>
        <Item15 Ref="42" ControlType="XRLabel" Name="label12" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="43" EventName="BeforePrint" PropertyName="Text" Expression="[appsinfo_companydev]" />
          </ExpressionBindings>
          <StylePriority Ref="44" UseFont="false" UseForeColor="false" />
        </Item15>
        <Item16 Ref="45" ControlType="XRLabel" Name="label11" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_detalles">
          <ExpressionBindings>
            <Item1 Ref="46" EventName="BeforePrint" PropertyName="Text" Expression="[Descripcion]" />
            <Item2 Ref="47" EventName="BeforePrint" PropertyName="Visible" Expression="?showDescription" />
          </ExpressionBindings>
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" />
        </Item16>
        <Item17 Ref="49" ControlType="XRLabel" Name="label10" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="50" EventName="BeforePrint" PropertyName="Text" Expression="[deviceCount]" />
          </ExpressionBindings>
          <StylePriority Ref="51" UseFont="false" UseForeColor="false" />
        </Item17>
        <Item18 Ref="52" ControlType="XRLabel" Name="label9" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="53" EventName="BeforePrint" PropertyName="Text" Expression="[Origen]" />
          </ExpressionBindings>
          <StylePriority Ref="54" UseFont="false" UseForeColor="false" />
        </Item18>
        <Item19 Ref="55" ControlType="XRLabel" Name="label8" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="56" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([Ultimaactualizacion],-1* ?UTCOffSet )" />
          </ExpressionBindings>
          <StylePriority Ref="57" UseFont="false" UseForeColor="false" />
        </Item19>
        <Item20 Ref="58" ControlType="XRLabel" Name="label7" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="59" EventName="BeforePrint" PropertyName="Text" Expression="[Calificacion]" />
          </ExpressionBindings>
          <StylePriority Ref="60" UseFont="false" UseForeColor="false" />
        </Item20>
        <Item21 Ref="61" ControlType="XRLabel" Name="label6" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="62" EventName="BeforePrint" PropertyName="Text" Expression="[Costo]" />
          </ExpressionBindings>
          <StylePriority Ref="63" UseFont="false" UseForeColor="false" />
        </Item21>
        <Item22 Ref="64" ControlType="XRLabel" Name="label5" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="65" EventName="BeforePrint" PropertyName="Text" Expression="[Version]" />
          </ExpressionBindings>
          <StylePriority Ref="66" UseFont="false" UseForeColor="false" UsePadding="false" />
        </Item22>
        <Item23 Ref="67" ControlType="XRLabel" Name="label4" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="68" EventName="BeforePrint" PropertyName="Text" Expression="[Plataforma]" />
          </ExpressionBindings>
          <StylePriority Ref="69" UseFont="false" UseForeColor="false" UsePadding="false" />
        </Item23>
        <Item24 Ref="70" ControlType="XRLabel" Name="label2" StyleName="texto" ForeColor="255,0,160,197" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="71" EventName="BeforePrint" PropertyName="Text" Expression="[Aplicacion]" />
          </ExpressionBindings>
          <StylePriority Ref="72" UseFont="false" UseForeColor="false" />
        </Item24>
        <Item25 Ref="73" ControlType="XRLabel" Name="label1" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="74" EventName="BeforePrint" PropertyName="Text" Expression="[PackageId]" />
          </ExpressionBindings>
          <StylePriority Ref="75" UseFont="false" UseForeColor="false" />
        </Item25>
        <Item26 Ref="76" ControlType="XRPictureBox" Name="pictureBox1">
          <ExpressionBindings>
            <Item1 Ref="77" EventName="BeforePrint" PropertyName="ImageSource" Expression="[iconURL]" />
            <Item2 Ref="78" EventName="BeforePrint" PropertyName="ImageUrl" Expression="[iconURL]" />
          </ExpressionBindings>
        </Item26>
      </Controls>
    </Item2>
    <Item3 Ref="79" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="80" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="81" ControlType="XRShape" Name="shape1" ForeColor="255,204,204,204">
          <StylePriority Ref="82" UseForeColor="false" />
        </Item1>
        <Item2 Ref="83" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Applications_Detail_descripcion">
          <StylePriority Ref="84" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="85" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="86" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="87" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item5 Ref="88" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="89" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
        <Item6 Ref="90" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="91" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="92" ControlType="PageFooterBand" Name="PageFooter" Expanded="false">
      <Controls>
        <Item1 Ref="93" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="94" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="95" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="96" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="97" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="98" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="99" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="100" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="101" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="102" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="103" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="104" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="applicationDetail.applicationDetaildeviceList" DataSource="#Ref-0">
      <Bands>
        <Item1 Ref="105" ControlType="DetailBand" Name="Detail1">
          <Controls>
            <Item1 Ref="106" ControlType="XRTable" Name="table1" BorderColor="255,204,204,204">
              <Rows>
                <Item1 Ref="107" ControlType="XRTableRow" Name="tableRow1">
                  <Cells>
                    <Item1 Ref="108" ControlType="XRTableCell" Name="tableCell1" Multiline="true" BorderColor="255,204,204,204" Borders="All">
                      <ExpressionBindings>
                        <Item1 Ref="109" EventName="BeforePrint" PropertyName="Text" Expression="[deviceName]" />
                      </ExpressionBindings>
                      <StylePriority Ref="110" UseBorderColor="false" />
                    </Item1>
                    <Item2 Ref="111" ControlType="XRTableCell" Name="tableCell2" Multiline="true" BorderColor="255,204,204,204" Borders="All">
                      <ExpressionBindings>
                        <Item1 Ref="112" EventName="BeforePrint" PropertyName="Text" Expression="[deviceIdentifier]" />
                      </ExpressionBindings>
                      <StylePriority Ref="113" UseBorderColor="false" />
                    </Item2>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="114" UseBorderColor="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="115" ControlType="GroupHeaderBand" Name="GroupHeader1">
          <Controls>
            <Item1 Ref="116" ControlType="XRTable" Name="table2" Padding="2,2,0,0,96" BorderColor="Transparent" Borders="All">
              <Rows>
                <Item1 Ref="117" ControlType="XRTableRow" Name="tableRow2">
                  <Cells>
                    <Item1 Ref="118" ControlType="XRTableCell" Name="tableCell3" Multiline="true" ForeColor="White" BackColor="255,0,161,198" BorderColor="White" BorderWidth="0" Tag_type="System.String" Tag="AMDM_Devices_deviceNameLabel">
                      <StylePriority Ref="119" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorderWidth="false" />
                    </Item1>
                    <Item2 Ref="120" ControlType="XRTableCell" Name="tableCell4" Multiline="true" ForeColor="White" BackColor="255,0,161,198" BorderColor="Transparent" Tag_type="System.String" Tag="Export_Devices_IMEI">
                      <StylePriority Ref="121" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" />
                    </Item2>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="122" UseBorderColor="false" />
            </Item1>
            <Item2 Ref="123" ControlType="XRLabel" Name="label27" Multiline="true" TextAlignment="TopLeft" ForeColor="255,0,160,197" Padding="2,2,0,0,100" BorderColor="255,204,204,204" Borders="All" Tag_type="System.String" Tag="Report_Applications_Detail_dispositivos">
              <StylePriority Ref="124" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
            </Item2>
          </Controls>
        </Item2>
      </Bands>
    </Item6>
  </Bands>
  <Scripts Ref="125" OnBeforePrint="AplicationDetail_BeforePrint" />
  <StyleSheet>
    <Item1 Ref="126" Name="texto" BorderStyle="Inset" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,160,197" StringFormat="Near;Near;0;None;Character;Default" />
    <Item2 Ref="127" Name="text_content" BorderStyle="Inset" Font="Tahoma, 9pt, charSet=0" ForeColor="255,85,85,85" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <LocalizationItems>
    <Item1 Ref="128" Component="#Ref-4" Culture="Default" Path="Description" Data="Aplicacion" />
    <Item2 Ref="129" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item3 Ref="130" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item4 Ref="131" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 42" />
    <Item5 Ref="132" Component="#Ref-79" Culture="Default" Path="HeightF" Data="42" />
    <Item6 Ref="133" Component="#Ref-90" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item7 Ref="134" Component="#Ref-90" Culture="Default" Path="LocationFloat" Data="80.82102,80" />
    <Item8 Ref="135" Component="#Ref-90" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item9 Ref="136" Component="#Ref-88" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item10 Ref="137" Component="#Ref-88" Culture="Default" Path="LocationFloat" Data="23.5293522,80" />
    <Item11 Ref="138" Component="#Ref-88" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item12 Ref="139" Component="#Ref-88" Culture="Default" Path="Text" Data="Fecha:" />
    <Item13 Ref="140" Component="#Ref-88" Culture="en" Path="Text" Data="Date:" />
    <Item14 Ref="141" Component="#Ref-88" Culture="pt" Path="Text" Data="Data:" />
    <Item15 Ref="142" Component="#Ref-11" Culture="Default" Path="HeightF" Data="512.357666" />
    <Item16 Ref="143" Component="#Ref-105" Culture="Default" Path="HeightF" Data="25" />
    <Item17 Ref="144" Component="#Ref-115" Culture="Default" Path="HeightF" Data="74.45369" />
    <Item18 Ref="145" Component="#Ref-87" Culture="Default" Path="LocationFloat" Data="522.4737,0" />
    <Item19 Ref="146" Component="#Ref-87" Culture="Default" Path="SizeF" Data="257.526367,79.99999" />
    <Item20 Ref="147" Component="#Ref-73" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item21 Ref="148" Component="#Ref-73" Culture="Default" Path="LocationFloat" Data="472.156769,45.9999771" />
    <Item22 Ref="149" Component="#Ref-73" Culture="Default" Path="SizeF" Data="304.1665,23.0000076" />
    <Item23 Ref="150" Component="#Ref-73" Culture="Default" Path="Text" Data="label1" />
    <Item24 Ref="151" Component="#Ref-49" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item25 Ref="152" Component="#Ref-49" Culture="Default" Path="LocationFloat" Data="473.0735,230" />
    <Item26 Ref="153" Component="#Ref-49" Culture="Default" Path="SizeF" Data="303.249725,22.9999847" />
    <Item27 Ref="154" Component="#Ref-49" Culture="Default" Path="Text" Data="label10" />
    <Item28 Ref="155" Component="#Ref-45" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item29 Ref="156" Component="#Ref-45" Culture="Default" Path="LocationFloat" Data="227.28186,324.3332" />
    <Item30 Ref="157" Component="#Ref-45" Culture="Default" Path="SizeF" Data="549.0416,164.544037" />
    <Item31 Ref="158" Component="#Ref-45" Culture="Default" Path="Text" Data="label11" />
    <Item32 Ref="159" Component="#Ref-42" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item33 Ref="160" Component="#Ref-42" Culture="Default" Path="LocationFloat" Data="473.0735,253.000076" />
    <Item34 Ref="161" Component="#Ref-42" Culture="Default" Path="SizeF" Data="303.249969,23" />
    <Item35 Ref="162" Component="#Ref-42" Culture="Default" Path="Text" Data="label12" />
    <Item36 Ref="163" Component="#Ref-40" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item37 Ref="164" Component="#Ref-40" Culture="Default" Path="LocationFloat" Data="227.28186,69.00006" />
    <Item38 Ref="165" Component="#Ref-40" Culture="Default" Path="SizeF" Data="189.583344,23" />
    <Item39 Ref="166" Component="#Ref-40" Culture="Default" Path="Text" Data="Tipo de aplicación:" />
    <Item40 Ref="167" Component="#Ref-40" Culture="en" Path="Text" Data="Type of application:" />
    <Item41 Ref="168" Component="#Ref-40" Culture="pt" Path="Text" Data="Tipo de aplicação:" />
    <Item42 Ref="169" Component="#Ref-35" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item43 Ref="170" Component="#Ref-35" Culture="Default" Path="LocationFloat" Data="227.28186,91.99999" />
    <Item44 Ref="171" Component="#Ref-35" Culture="Default" Path="SizeF" Data="189.583344,23" />
    <Item45 Ref="172" Component="#Ref-35" Culture="Default" Path="Text" Data="Plataforma:" />
    <Item46 Ref="173" Component="#Ref-35" Culture="en" Path="Text" Data="Platform:" />
    <Item47 Ref="174" Component="#Ref-33" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item48 Ref="175" Component="#Ref-33" Culture="Default" Path="LocationFloat" Data="226.365128,115.000069" />
    <Item49 Ref="176" Component="#Ref-33" Culture="Default" Path="SizeF" Data="189.583344,23" />
    <Item50 Ref="177" Component="#Ref-33" Culture="Default" Path="Text" Data="Versión:" />
    <Item51 Ref="178" Component="#Ref-33" Culture="en" Path="Text" Data="Version:" />
    <Item52 Ref="179" Component="#Ref-33" Culture="pt" Path="Text" Data="Versão:" />
    <Item53 Ref="180" Component="#Ref-31" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item54 Ref="181" Component="#Ref-31" Culture="Default" Path="LocationFloat" Data="227.28186,137.999969" />
    <Item55 Ref="182" Component="#Ref-31" Culture="Default" Path="SizeF" Data="189.583344,23" />
    <Item56 Ref="183" Component="#Ref-31" Culture="Default" Path="Text" Data="Costo:" />
    <Item57 Ref="184" Component="#Ref-31" Culture="en" Path="Text" Data="Cost:" />
    <Item58 Ref="185" Component="#Ref-31" Culture="pt" Path="Text" Data="Custo:" />
    <Item59 Ref="186" Component="#Ref-29" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item60 Ref="187" Component="#Ref-29" Culture="Default" Path="LocationFloat" Data="226.365128,161.000046" />
    <Item61 Ref="188" Component="#Ref-29" Culture="Default" Path="SizeF" Data="189.583344,23" />
    <Item62 Ref="189" Component="#Ref-29" Culture="Default" Path="Text" Data="Calificación:" />
    <Item63 Ref="190" Component="#Ref-29" Culture="en" Path="Text" Data="Qualification:" />
    <Item64 Ref="191" Component="#Ref-29" Culture="pt" Path="Text" Data="Qualificação:" />
    <Item65 Ref="192" Component="#Ref-27" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item66 Ref="193" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="226.365128,183.999985" />
    <Item67 Ref="194" Component="#Ref-27" Culture="Default" Path="SizeF" Data="189.583344,23" />
    <Item68 Ref="195" Component="#Ref-27" Culture="Default" Path="Text" Data="Última Actualización:" />
    <Item69 Ref="196" Component="#Ref-27" Culture="en" Path="Text" Data="Last update:" />
    <Item70 Ref="197" Component="#Ref-27" Culture="pt" Path="Text" Data="Ultima atualização:" />
    <Item71 Ref="198" Component="#Ref-25" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item72 Ref="199" Component="#Ref-25" Culture="Default" Path="LocationFloat" Data="227.28186,207.000061" />
    <Item73 Ref="200" Component="#Ref-25" Culture="Default" Path="SizeF" Data="189.583344,23" />
    <Item74 Ref="201" Component="#Ref-25" Culture="Default" Path="Text" Data="Origen:" />
    <Item75 Ref="202" Component="#Ref-25" Culture="en" Path="Text" Data="Origin:" />
    <Item76 Ref="203" Component="#Ref-25" Culture="pt" Path="Text" Data="Origem:" />
    <Item77 Ref="204" Component="#Ref-70" Culture="Default" Path="Font" Data="Tahoma, 12pt, style=Bold" />
    <Item78 Ref="205" Component="#Ref-70" Culture="Default" Path="LocationFloat" Data="226.365128,0" />
    <Item79 Ref="206" Component="#Ref-70" Culture="Default" Path="SizeF" Data="451.0245,23" />
    <Item80 Ref="207" Component="#Ref-70" Culture="Default" Path="Text" Data="label2" />
    <Item81 Ref="208" Component="#Ref-23" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item82 Ref="209" Component="#Ref-23" Culture="Default" Path="LocationFloat" Data="227.28186,230" />
    <Item83 Ref="210" Component="#Ref-23" Culture="Default" Path="SizeF" Data="234.375,23" />
    <Item84 Ref="211" Component="#Ref-23" Culture="Default" Path="Text" Data="Dispositivos con la aplicación:" />
    <Item85 Ref="212" Component="#Ref-23" Culture="en" Path="Text" Data="Devices with the application:" />
    <Item86 Ref="213" Component="#Ref-23" Culture="pt" Path="Text" Data="Dispositivos com o aplicativo:" />
    <Item87 Ref="214" Component="#Ref-21" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item88 Ref="215" Component="#Ref-21" Culture="Default" Path="LocationFloat" Data="227.28186,253.000076" />
    <Item89 Ref="216" Component="#Ref-21" Culture="Default" Path="SizeF" Data="189.583344,23" />
    <Item90 Ref="217" Component="#Ref-21" Culture="Default" Path="Text" Data="Fabricación de la empresa:" />
    <Item91 Ref="218" Component="#Ref-21" Culture="en" Path="Text" Data="Company Manufacture:" />
    <Item92 Ref="219" Component="#Ref-21" Culture="pt" Path="Text" Data="Fabricação da Empresa:" />
    <Item93 Ref="220" Component="#Ref-19" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item94 Ref="221" Component="#Ref-19" Culture="Default" Path="LocationFloat" Data="226.365128,45.9999771" />
    <Item95 Ref="222" Component="#Ref-19" Culture="Default" Path="SizeF" Data="215.791687,23" />
    <Item96 Ref="223" Component="#Ref-19" Culture="Default" Path="Text" Data="Identificación de la aplicación:" />
    <Item97 Ref="224" Component="#Ref-19" Culture="en" Path="Text" Data="Application ID:" />
    <Item98 Ref="225" Component="#Ref-19" Culture="pt" Path="Text" Data="ID do aplicativo:" />
    <Item99 Ref="226" Component="#Ref-15" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item100 Ref="227" Component="#Ref-15" Culture="Default" Path="LocationFloat" Data="227.28186,275.999939" />
    <Item101 Ref="228" Component="#Ref-15" Culture="Default" Path="SizeF" Data="189.583344,23" />
    <Item102 Ref="229" Component="#Ref-15" Culture="Default" Path="Text" Data="Políticas:" />
    <Item103 Ref="230" Component="#Ref-15" Culture="en" Path="Text" Data="Policies:" />
    <Item104 Ref="231" Component="#Ref-12" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item105 Ref="232" Component="#Ref-12" Culture="Default" Path="LocationFloat" Data="473.073547,275.999939" />
    <Item106 Ref="233" Component="#Ref-12" Culture="Default" Path="SizeF" Data="303.250031,23" />
    <Item107 Ref="234" Component="#Ref-12" Culture="Default" Path="Text" Data="label12" />
    <Item108 Ref="235" Component="#Ref-123" Culture="Default" Path="Font" Data="Tahoma, 12pt, style=Bold" />
    <Item109 Ref="236" Component="#Ref-123" Culture="Default" Path="LocationFloat" Data="227.28183,25.6249752" />
    <Item110 Ref="237" Component="#Ref-123" Culture="Default" Path="SizeF" Data="552.7184,23.8286343" />
    <Item111 Ref="238" Component="#Ref-123" Culture="Default" Path="Text" Data="Dispositivos" />
    <Item112 Ref="239" Component="#Ref-123" Culture="en" Path="Text" Data="Devices" />
    <Item113 Ref="240" Component="#Ref-37" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item114 Ref="241" Component="#Ref-37" Culture="Default" Path="LocationFloat" Data="473.0735,69.00006" />
    <Item115 Ref="242" Component="#Ref-37" Culture="Default" Path="SizeF" Data="303.2498,23" />
    <Item116 Ref="243" Component="#Ref-37" Culture="Default" Path="Text" Data="label3" />
    <Item117 Ref="244" Component="#Ref-67" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item118 Ref="245" Component="#Ref-67" Culture="Default" Path="LocationFloat" Data="473.0735,91.99999" />
    <Item119 Ref="246" Component="#Ref-67" Culture="Default" Path="SizeF" Data="303.2498,23" />
    <Item120 Ref="247" Component="#Ref-67" Culture="Default" Path="Text" Data="label4" />
    <Item121 Ref="248" Component="#Ref-64" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item122 Ref="249" Component="#Ref-64" Culture="Default" Path="LocationFloat" Data="472.15683,115.000069" />
    <Item123 Ref="250" Component="#Ref-64" Culture="Default" Path="SizeF" Data="304.166443,23" />
    <Item124 Ref="251" Component="#Ref-64" Culture="Default" Path="Text" Data="label5" />
    <Item125 Ref="252" Component="#Ref-61" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item126 Ref="253" Component="#Ref-61" Culture="Default" Path="LocationFloat" Data="473.0735,137.999969" />
    <Item127 Ref="254" Component="#Ref-61" Culture="Default" Path="SizeF" Data="303.2498,23.0000153" />
    <Item128 Ref="255" Component="#Ref-61" Culture="Default" Path="Text" Data="label6" />
    <Item129 Ref="256" Component="#Ref-58" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item130 Ref="257" Component="#Ref-58" Culture="Default" Path="LocationFloat" Data="472.15683,161.000046" />
    <Item131 Ref="258" Component="#Ref-58" Culture="Default" Path="SizeF" Data="304.166382,23.0000153" />
    <Item132 Ref="259" Component="#Ref-58" Culture="Default" Path="Text" Data="label7" />
    <Item133 Ref="260" Component="#Ref-55" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item134 Ref="261" Component="#Ref-55" Culture="Default" Path="LocationFloat" Data="472.156769,183.999985" />
    <Item135 Ref="262" Component="#Ref-55" Culture="Default" Path="SizeF" Data="304.166443,23.00003" />
    <Item136 Ref="263" Component="#Ref-55" Culture="Default" Path="Text" Data="label8" />
    <Item137 Ref="264" Component="#Ref-52" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item138 Ref="265" Component="#Ref-52" Culture="Default" Path="LocationFloat" Data="473.0734,207.000061" />
    <Item139 Ref="266" Component="#Ref-52" Culture="Default" Path="SizeF" Data="303.249878,23" />
    <Item140 Ref="267" Component="#Ref-52" Culture="Default" Path="Text" Data="label9" />
    <Item141 Ref="268" Component="#Ref-6" Culture="Default" Path="Description" Data="Lenguaje" />
    <Item142 Ref="269" Component="#Ref-17" Culture="Default" Path="LocationFloat" Data="226.365128,22.99997" />
    <Item143 Ref="270" Component="#Ref-17" Culture="Default" Path="SizeF" Data="549.9584,23.0000038" />
    <Item144 Ref="271" Component="#Ref-96" Culture="Default" Path="LocationFloat" Data="3.125,20.6249866" />
    <Item145 Ref="272" Component="#Ref-96" Culture="Default" Path="SizeF" Data="773.88,14.66662" />
    <Item146 Ref="273" Component="#Ref-95" Culture="Default" Path="LocationFloat" Data="700.4165,35.2916336" />
    <Item147 Ref="274" Component="#Ref-95" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item148 Ref="275" Component="#Ref-102" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item149 Ref="276" Component="#Ref-102" Culture="Default" Path="LocationFloat" Data="167.08313,42.29501" />
    <Item150 Ref="277" Component="#Ref-102" Culture="Default" Path="SizeF" Data="533.3334,23" />
    <Item151 Ref="278" Component="#Ref-102" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ?" />
    <Item152 Ref="279" Component="#Ref-102" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ?" />
    <Item153 Ref="280" Component="#Ref-102" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ?" />
    <Item154 Ref="281" Component="#Ref-92" Culture="Default" Path="HeightF" Data="76.0000153" />
    <Item155 Ref="282" Component="#Ref-98" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item156 Ref="283" Component="#Ref-98" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item157 Ref="284" Component="#Ref-98" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item158 Ref="285" Component="#Ref-100" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item159 Ref="286" Component="#Ref-100" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item160 Ref="287" Component="#Ref-100" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item161 Ref="288" Component="#Ref-100" Culture="Default" Path="Text" Data="Página" />
    <Item162 Ref="289" Component="#Ref-100" Culture="en" Path="Text" Data="Page" />
    <Item163 Ref="290" Component="#Ref-76" Culture="Default" Path="LocationFloat" Data="9.999997,0" />
    <Item164 Ref="291" Component="#Ref-76" Culture="Default" Path="SizeF" Data="202.708374,195.916687" />
    <Item165 Ref="292" Component="#Ref-93" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item166 Ref="293" Component="#Ref-93" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item167 Ref="294" Component="#Ref-93" Culture="Default" Path="SizeF" Data="780.0002,20.6249866" />
    <Item168 Ref="295" Component="#Ref-93" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item169 Ref="296" Component="#Ref-93" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item170 Ref="297" Component="#Ref-93" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item171 Ref="298" Component="#Ref-80" Culture="Default" Path="HeightF" Data="131.208313" />
    <Item172 Ref="299" Component="#Ref-81" Culture="Default" Path="LocationFloat" Data="0,119.791672" />
    <Item173 Ref="300" Component="#Ref-81" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item174 Ref="301" Component="#Ref-8" Culture="Default" Path="Description" Data="showDescription" />
    <Item175 Ref="302" Component="#Ref-106" Culture="Default" Path="LocationFloat" Data="227.2818,0" />
    <Item176 Ref="303" Component="#Ref-106" Culture="Default" Path="SizeF" Data="552.7182,25" />
    <Item177 Ref="304" Component="#Ref-116" Culture="Default" Path="LocationFloat" Data="226.365158,49.45367" />
    <Item178 Ref="305" Component="#Ref-116" Culture="Default" Path="SizeF" Data="552.7184,25" />
    <Item179 Ref="306" Component="#Ref-108" Culture="Default" Path="Text" Data="tableCell1" />
    <Item180 Ref="307" Component="#Ref-108" Culture="Default" Path="Weight" Data="0.12410284683581591" />
    <Item181 Ref="308" Component="#Ref-111" Culture="Default" Path="Text" Data="tableCell2" />
    <Item182 Ref="309" Component="#Ref-111" Culture="Default" Path="Weight" Data="0.12024648940844102" />
    <Item183 Ref="310" Component="#Ref-118" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, style=Bold" />
    <Item184 Ref="311" Component="#Ref-118" Culture="Default" Path="Text" Data="Nombre del Dispositivo" />
    <Item185 Ref="312" Component="#Ref-118" Culture="en" Path="Text" Data="Device Name" />
    <Item186 Ref="313" Component="#Ref-118" Culture="pt" Path="Text" Data="Nome do dispositivo" />
    <Item187 Ref="314" Component="#Ref-118" Culture="Default" Path="Weight" Data="2.8072064208984373" />
    <Item188 Ref="315" Component="#Ref-120" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, style=Bold" />
    <Item189 Ref="316" Component="#Ref-120" Culture="Default" Path="Text" Data="Identificador" />
    <Item190 Ref="317" Component="#Ref-120" Culture="en" Path="Text" Data="Identifier" />
    <Item191 Ref="318" Component="#Ref-120" Culture="Default" Path="Weight" Data="2.719977111816406" />
    <Item192 Ref="319" Component="#Ref-107" Culture="Default" Path="Weight" Data="11.5" />
    <Item193 Ref="320" Component="#Ref-117" Culture="Default" Path="Weight" Data="1" />
    <Item194 Ref="321" Component="#Ref-85" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item195 Ref="322" Component="#Ref-85" Culture="Default" Path="LocationFloat" Data="20.6666622,10.0000067" />
    <Item196 Ref="323" Component="#Ref-85" Culture="Default" Path="SizeF" Data="487.335815,31.3333244" />
    <Item197 Ref="324" Component="#Ref-85" Culture="Default" Path="Text" Data="Detalles de la aplicación" />
    <Item198 Ref="325" Component="#Ref-85" Culture="en" Path="Text" Data="Details of the application" />
    <Item199 Ref="326" Component="#Ref-85" Culture="pt" Path="Text" Data="Detalhes do aplicativo" />
    <Item200 Ref="327" Component="#Ref-10" Culture="Default" Path="HeightF" Data="30" />
    <Item201 Ref="328" Component="#Ref-83" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item202 Ref="329" Component="#Ref-83" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3332939" />
    <Item203 Ref="330" Component="#Ref-83" Culture="Default" Path="SizeF" Data="487.335815,23.0000038" />
    <Item204 Ref="331" Component="#Ref-83" Culture="Default" Path="Text" Data="Este informe muestra información detallada sobre la aplicación, así como la política en la que está configurada." />
    <Item205 Ref="332" Component="#Ref-83" Culture="en" Path="Text" Data="This report shows detailed information about the application, as well as the policy in which it is configured." />
    <Item206 Ref="333" Component="#Ref-83" Culture="pt" Path="Text" Data="Este relatório mostra informações detalhadas sobre o aplicativo, bem como a política na qual ele está configurado." />
    <Item207 Ref="334" Component="#Ref-9" Culture="Default" Path="Description" Data="Diferencia Horaria" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="appList" ValueMember="id" DisplayMember="name" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="3" Content="System.Int32" Type="System.Type" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="7" Content="System.Boolean" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

	--Reporte resumido de enrolamientos
	EXEC [dbo].[METADATA_REPORT] @amdmReportEnrollments, N'AMDM_Report_Enrollments_Summary', 10, 
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report4" ScriptsSource="using DevExpress.XtraReports;&#xD;&#xA;private void Report4_ParametersRequestBeforeShow(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e) {&#xD;&#xA;&#x9;XtraReport report=sender as XtraReport;&#xD;&#xA;      //Muestra la fecha un año antes de la fecha actual&#xD;&#xA;      report.Parameters[0].Value = DateTime.Today.AddYears(-1);&#xD;&#xA;      //Muestra la fecha actual&#xD;&#xA;      report.Parameters[1].Value = DateTime.Today;&#xD;&#xA;}&#xD;&#xA;" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="EnrollmentsPlatform" DataSource="#Ref-0" BorderDashStyle="Dot">
  <Parameters>
    <Item1 Ref="3" ValueInfo="2000-01-01" Name="requestFrom" Type="#Ref-2" />
    <Item2 Ref="4" ValueInfo="2018-07-31" Name="requestTo" Type="#Ref-2" />
    <Item3 Ref="6" ValueInfo="es" Name="language" />
  </Parameters>
  <Bands>
    <Item1 Ref="7" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="8" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="9" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="10" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="11" ControlType="XRTableCell" Name="tableCell5">
                  <ExpressionBindings>
                    <Item1 Ref="12" EventName="BeforePrint" PropertyName="Text" Expression="[EnrollmentsRejects].[errorname]" />
                  </ExpressionBindings>
                </Item1>
                <Item2 Ref="13" ControlType="XRTableCell" Name="tableCell6">
                  <ExpressionBindings>
                    <Item1 Ref="14" EventName="BeforePrint" PropertyName="Text" Expression="[EnrollmentsRejects].[requestdate]" />
                  </ExpressionBindings>
                </Item2>
                <Item3 Ref="15" ControlType="XRTableCell" Name="tableCell7">
                  <ExpressionBindings>
                    <Item1 Ref="16" EventName="BeforePrint" PropertyName="Text" Expression="[EnrollmentsRejects].[name]" />
                  </ExpressionBindings>
                </Item3>
                <Item4 Ref="17" ControlType="XRTableCell" Name="tableCell8">
                  <ExpressionBindings>
                    <Item1 Ref="18" EventName="BeforePrint" PropertyName="Text" Expression="[EnrollmentsRejects].[email]" />
                  </ExpressionBindings>
                </Item4>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="19" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="20" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="21" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="22" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="23" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Enrollments_Summary_descripcion">
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="25" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="27" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="29" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="30" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="31" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="32" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="34" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="35" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="36" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="37" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="39" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="40" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="41" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="42" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="43" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="3">
      <Controls>
        <Item1 Ref="44" ControlType="XRShape" Name="shape8" ForeColor="255,204,204,204">
          <StylePriority Ref="45" UseForeColor="false" />
        </Item1>
        <Item2 Ref="46" ControlType="XRLabel" Name="label7" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Enrollments_Summary_lastReportList">
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="48" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="49">
            <DataContainer Ref="50" DataMember="EnrollmentsPlatform" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="51" Name="Series 1" ArgumentDataMember="Plataforma" ValueDataMembersSerializable="Vinculaciones" LegendTextPattern="{A}">
                  <View Ref="52" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="53" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="54" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="55" />
            <OptionsPrint Ref="56" ImageFormat="Metafile" />
          </Chart>
          <StylePriority Ref="57" UseBorders="false" />
        </Item3>
      </Controls>
    </Item6>
    <Item7 Ref="58" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="2">
      <Controls>
        <Item1 Ref="59" ControlType="XRShape" Name="shape2" ForeColor="255,204,204,204">
          <StylePriority Ref="60" UseForeColor="false" />
        </Item1>
        <Item2 Ref="61" ControlType="XRLabel" Name="label2" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Enrollments_Summary_enrollmentStatusList">
          <StylePriority Ref="62" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="63" ControlType="XRChart" Name="chart2" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="64">
            <DataContainer Ref="65" DataMember="EnrollmentsFinalState" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="66" Name="Series 1" ArgumentDataMember="Estado_Final" ValueDataMembersSerializable="Vinculaciones" LegendTextPattern="{A}">
                  <View Ref="67" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="68" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{V}">
                    <Border Ref="69" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="70" />
            <OptionsPrint Ref="71" ImageFormat="Metafile" />
          </Chart>
          <StylePriority Ref="72" UseBorders="false" />
        </Item3>
      </Controls>
    </Item7>
    <Item8 Ref="73" ControlType="GroupHeaderBand" Name="GroupHeader3" Level="1">
      <Controls>
        <Item1 Ref="74" ControlType="XRShape" Name="shape3" ForeColor="255,204,204,204">
          <StylePriority Ref="75" UseForeColor="false" />
        </Item1>
        <Item2 Ref="76" ControlType="XRLabel" Name="label3" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Enrollments_Summary_dailyEnrollmentsList">
          <StylePriority Ref="77" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="78" ControlType="XRChart" Name="chart3" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="79">
            <DataContainer Ref="80" DataMember="EnrollmentsDay" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="81" Name="Series 1" ArgumentDataMember="Fecha" ValueDataMembersSerializable="Solicitudes" LegendTextPattern="{A}" Tag_type="System.String" Tag="Reports_Enrollments">
                  <View Ref="82" TypeNameSerializable="LineSeriesView" />
                </Item1>
              </SeriesSerializable>
              <SeriesTemplate Ref="83">
                <View Ref="84" TypeNameSerializable="LineSeriesView" />
              </SeriesTemplate>
            </DataContainer>
            <Diagram Ref="85" TypeNameSerializable="XYDiagram">
              <AxisX Ref="86" VisibleInPanesSerializable="-1" />
              <AxisY Ref="87" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="88" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="89">
                  <ConnectorLineStyle Ref="90" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="91" />
            <OptionsPrint Ref="92" ImageFormat="Metafile" />
          </Chart>
          <StylePriority Ref="93" UseBorders="false" />
        </Item3>
      </Controls>
    </Item8>
    <Item9 Ref="94" ControlType="GroupHeaderBand" Name="GroupHeader4">
      <Controls>
        <Item1 Ref="95" ControlType="XRShape" Name="shape1" ForeColor="255,204,204,204">
          <StylePriority Ref="96" UseForeColor="false" />
        </Item1>
        <Item2 Ref="97" ControlType="XRLabel" Name="label1" TextAlignment="MiddleCenter" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Borders="None" BorderWidth="0" BorderDashStyle="Solid" Tag_type="System.String" Tag="Report_Enrollments_Summary_refusedEnrollmentsList">
          <StylePriority Ref="98" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseBorderDashStyle="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="99" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="100" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="101" ControlType="XRTableCell" Name="tableCell1" Tag_type="System.String" Tag="Report_Enrollments_Summary_tipo" />
                <Item2 Ref="102" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Enrollments_Summary_fecha" />
                <Item3 Ref="103" ControlType="XRTableCell" Name="tableCell3" Tag_type="System.String" Tag="Report_Enrollments_Summary_nombre" />
                <Item4 Ref="104" ControlType="XRTableCell" Name="tableCell4" Tag_type="System.String" Tag="Report_Enrollments_Summary_correo" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="105" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item3>
      </Controls>
    </Item9>
  </Bands>
  <Scripts Ref="106" OnParametersRequestBeforeShow="Report4_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="107" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 11.25pt, style=Bold, charSet=0" ForeColor="255,0,192,192" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <LocalizationItems>
    <Item1 Ref="108" Component="#Ref-20" Culture="Default" Path="HeightF" Data="40.0416679" />
    <Item2 Ref="109" Component="#Ref-48" Culture="Default" Path="LocationFloat" Data="77.95833,23.3676586" />
    <Item3 Ref="110" Component="#Ref-48" Culture="Default" Path="SizeF" Data="702.0416,217.674026" />
    <Item4 Ref="111" Component="#Ref-63" Culture="Default" Path="LocationFloat" Data="77.95833,25" />
    <Item5 Ref="112" Component="#Ref-63" Culture="Default" Path="SizeF" Data="702.0416,212.5" />
    <Item6 Ref="113" Component="#Ref-78" Culture="Default" Path="LocationFloat" Data="0,23.3676586" />
    <Item7 Ref="114" Component="#Ref-78" Culture="Default" Path="SizeF" Data="779.999939,322.4657" />
    <Item8 Ref="115" Component="#Ref-29" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item9 Ref="116" Component="#Ref-29" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item10 Ref="117" Component="#Ref-29" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item11 Ref="118" Component="#Ref-27" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item12 Ref="119" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item13 Ref="120" Component="#Ref-27" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item14 Ref="121" Component="#Ref-27" Culture="Default" Path="Text" Data="Fecha:" />
    <Item15 Ref="122" Component="#Ref-27" Culture="en" Path="Text" Data="Date:" />
    <Item16 Ref="123" Component="#Ref-27" Culture="pt" Path="Text" Data="Data:" />
    <Item17 Ref="124" Component="#Ref-8" Culture="Default" Path="HeightF" Data="25" />
    <Item18 Ref="125" Component="#Ref-43" Culture="Default" Path="HeightF" Data="241.041687" />
    <Item19 Ref="126" Component="#Ref-58" Culture="Default" Path="HeightF" Data="237.5" />
    <Item20 Ref="127" Component="#Ref-73" Culture="Default" Path="HeightF" Data="367.892181" />
    <Item21 Ref="128" Component="#Ref-94" Culture="Default" Path="HeightF" Data="69.7916641" />
    <Item22 Ref="129" Component="#Ref-22" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item23 Ref="130" Component="#Ref-22" Culture="Default" Path="SizeF" Data="257.5301,79.99999" />
    <Item24 Ref="131" Component="#Ref-97" Culture="Default" Path="Font" Data="Tahoma, 12pt, style=Bold" />
    <Item25 Ref="132" Component="#Ref-97" Culture="Default" Path="LocationFloat" Data="0,9.999968" />
    <Item26 Ref="133" Component="#Ref-97" Culture="Default" Path="SizeF" Data="780,23.0000019" />
    <Item27 Ref="134" Component="#Ref-97" Culture="Default" Path="Text" Data=" Lista de vinculaciones rechazadas" />
    <Item28 Ref="135" Component="#Ref-97" Culture="en" Path="Text" Data="List of Rejected Bindings" />
    <Item29 Ref="136" Component="#Ref-97" Culture="pt" Path="Text" Data="Lista de Vinculações Rejeitadas" />
    <Item30 Ref="137" Component="#Ref-61" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item31 Ref="138" Component="#Ref-61" Culture="Default" Path="LocationFloat" Data="0,4.08331537" />
    <Item32 Ref="139" Component="#Ref-61" Culture="Default" Path="SizeF" Data="779.9998,20.9166832" />
    <Item33 Ref="140" Component="#Ref-61" Culture="Default" Path="Text" Data="Estado de vinculación" />
    <Item34 Ref="141" Component="#Ref-61" Culture="en" Path="Text" Data="Binding status" />
    <Item35 Ref="142" Component="#Ref-61" Culture="pt" Path="Text" Data="Status obrigatório" />
    <Item36 Ref="143" Component="#Ref-76" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item37 Ref="144" Component="#Ref-76" Culture="Default" Path="LocationFloat" Data="0,2.4509747" />
    <Item38 Ref="145" Component="#Ref-76" Culture="Default" Path="SizeF" Data="779.9998,20.9166832" />
    <Item39 Ref="146" Component="#Ref-76" Culture="Default" Path="Text" Data="Vinculaciones diarias" />
    <Item40 Ref="147" Component="#Ref-76" Culture="en" Path="Text" Data="Daily Links" />
    <Item41 Ref="148" Component="#Ref-76" Culture="pt" Path="Text" Data="Links diários" />
    <Item42 Ref="149" Component="#Ref-46" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item43 Ref="150" Component="#Ref-46" Culture="Default" Path="LocationFloat" Data="0,2.4509747" />
    <Item44 Ref="151" Component="#Ref-46" Culture="Default" Path="SizeF" Data="779.9998,20.9166832" />
    <Item45 Ref="152" Component="#Ref-46" Culture="Default" Path="Text" Data="Último reporte" />
    <Item46 Ref="153" Component="#Ref-46" Culture="en" Path="Text" Data="Last report" />
    <Item47 Ref="154" Component="#Ref-46" Culture="pt" Path="Text" Data="Último relatório" />
    <Item48 Ref="155" Component="#Ref-6" Culture="Default" Path="Description" Data="Idioma" />
    <Item49 Ref="156" Component="#Ref-35" Culture="Default" Path="LocationFloat" Data="3.125,20.6250515" />
    <Item50 Ref="157" Component="#Ref-35" Culture="Default" Path="SizeF" Data="773.88,14.6665554" />
    <Item51 Ref="158" Component="#Ref-34" Culture="Default" Path="LocationFloat" Data="700.4165,35.2916336" />
    <Item52 Ref="159" Component="#Ref-34" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item53 Ref="160" Component="#Ref-41" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item54 Ref="161" Component="#Ref-41" Culture="Default" Path="LocationFloat" Data="142.573318,44.14584" />
    <Item55 Ref="162" Component="#Ref-41" Culture="Default" Path="SizeF" Data="557.8432,23.0000114" />
    <Item56 Ref="163" Component="#Ref-41" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ?" />
    <Item57 Ref="164" Component="#Ref-41" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ?" />
    <Item58 Ref="165" Component="#Ref-41" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ?" />
    <Item59 Ref="166" Component="#Ref-31" Culture="Default" Path="HeightF" Data="76.0000153" />
    <Item60 Ref="167" Component="#Ref-37" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item61 Ref="168" Component="#Ref-37" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item62 Ref="169" Component="#Ref-37" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item63 Ref="170" Component="#Ref-39" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item64 Ref="171" Component="#Ref-39" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item65 Ref="172" Component="#Ref-39" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item66 Ref="173" Component="#Ref-39" Culture="Default" Path="Text" Data="Página" />
    <Item67 Ref="174" Component="#Ref-39" Culture="en" Path="Text" Data="Page" />
    <Item68 Ref="175" Component="#Ref-32" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item69 Ref="176" Component="#Ref-32" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item70 Ref="177" Component="#Ref-32" Culture="Default" Path="SizeF" Data="780.0002,20.6249866" />
    <Item71 Ref="178" Component="#Ref-32" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente tambiín está en sus manos." />
    <Item72 Ref="179" Component="#Ref-32" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item73 Ref="180" Component="#Ref-32" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item74 Ref="181" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item75 Ref="182" Component="#Ref-1" Culture="Default" Path="DisplayName" Data="EnrollmentSummary" />
    <Item76 Ref="183" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item77 Ref="184" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item78 Ref="185" Component="#Ref-21" Culture="Default" Path="HeightF" Data="110.375" />
    <Item79 Ref="186" Component="#Ref-3" Culture="Default" Path="Description" Data="Fecha Inicial" />
    <Item80 Ref="187" Component="#Ref-4" Culture="Default" Path="Description" Data="Fecha Final" />
    <Item81 Ref="188" Component="#Ref-95" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item82 Ref="189" Component="#Ref-95" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item83 Ref="190" Component="#Ref-59" Culture="Default" Path="LocationFloat" Data="0.000190734863,0" />
    <Item84 Ref="191" Component="#Ref-59" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item85 Ref="192" Component="#Ref-74" Culture="Default" Path="LocationFloat" Data="0.000190734863,0" />
    <Item86 Ref="193" Component="#Ref-74" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item87 Ref="194" Component="#Ref-44" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item88 Ref="195" Component="#Ref-44" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item89 Ref="196" Component="#Ref-99" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item90 Ref="197" Component="#Ref-99" Culture="Default" Path="LocationFloat" Data="0,43.833416" />
    <Item91 Ref="198" Component="#Ref-99" Culture="Default" Path="SizeF" Data="779.999939,24.9999962" />
    <Item92 Ref="199" Component="#Ref-9" Culture="Default" Path="Font" Data="Tahoma, 9pt, charSet=0" />
    <Item93 Ref="200" Component="#Ref-9" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item94 Ref="201" Component="#Ref-9" Culture="Default" Path="SizeF" Data="779.999939,25" />
    <Item95 Ref="202" Component="#Ref-101" Culture="Default" Path="Text" Data="Tipo de rechazo" />
    <Item96 Ref="203" Component="#Ref-101" Culture="en" Path="Text" Data="Rejection Type" />
    <Item97 Ref="204" Component="#Ref-101" Culture="pt" Path="Text" Data="Tipo de rejeição" />
    <Item98 Ref="205" Component="#Ref-101" Culture="Default" Path="Weight" Data="1" />
    <Item99 Ref="206" Component="#Ref-102" Culture="Default" Path="Text" Data="Fecha de solicitud" />
    <Item100 Ref="207" Component="#Ref-102" Culture="en" Path="Text" Data="Application date" />
    <Item101 Ref="208" Component="#Ref-102" Culture="pt" Path="Text" Data="Data de aplicação" />
    <Item102 Ref="209" Component="#Ref-102" Culture="Default" Path="Weight" Data="1" />
    <Item103 Ref="210" Component="#Ref-103" Culture="Default" Path="Text" Data="Nombre de usuario" />
    <Item104 Ref="211" Component="#Ref-103" Culture="en" Path="Text" Data="Username" />
    <Item105 Ref="212" Component="#Ref-103" Culture="pt" Path="Text" Data="Nome de usuário" />
    <Item106 Ref="213" Component="#Ref-103" Culture="Default" Path="Weight" Data="1" />
    <Item107 Ref="214" Component="#Ref-104" Culture="Default" Path="Text" Data="Correo" />
    <Item108 Ref="215" Component="#Ref-104" Culture="en" Path="Text" Data="Mail" />
    <Item109 Ref="216" Component="#Ref-104" Culture="pt" Path="Text" Data="Correspondência" />
    <Item110 Ref="217" Component="#Ref-104" Culture="Default" Path="Weight" Data="1" />
    <Item111 Ref="218" Component="#Ref-11" Culture="Default" Path="Text" Data="Column1" />
    <Item112 Ref="219" Component="#Ref-11" Culture="Default" Path="Weight" Data="1" />
    <Item113 Ref="220" Component="#Ref-13" Culture="Default" Path="Text" Data="Column2" />
    <Item114 Ref="221" Component="#Ref-13" Culture="Default" Path="Weight" Data="1" />
    <Item115 Ref="222" Component="#Ref-15" Culture="Default" Path="Text" Data="Column3" />
    <Item116 Ref="223" Component="#Ref-15" Culture="Default" Path="Weight" Data="1" />
    <Item117 Ref="224" Component="#Ref-17" Culture="Default" Path="Text" Data="tableCell8" />
    <Item118 Ref="225" Component="#Ref-17" Culture="Default" Path="Weight" Data="1" />
    <Item119 Ref="226" Component="#Ref-100" Culture="Default" Path="Weight" Data="1" />
    <Item120 Ref="227" Component="#Ref-10" Culture="Default" Path="Weight" Data="1" />
    <Item121 Ref="228" Component="#Ref-25" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item122 Ref="229" Component="#Ref-25" Culture="Default" Path="LocationFloat" Data="20.666647,10.0000048" />
    <Item123 Ref="230" Component="#Ref-25" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item124 Ref="231" Component="#Ref-25" Culture="Default" Path="Text" Data="Resumen de vinculación" />
    <Item125 Ref="232" Component="#Ref-25" Culture="en" Path="Text" Data="Link Summary" />
    <Item126 Ref="233" Component="#Ref-25" Culture="pt" Path="Text" Data="Resumo do link" />
    <Item127 Ref="234" Component="#Ref-7" Culture="Default" Path="HeightF" Data="30" />
    <Item128 Ref="235" Component="#Ref-23" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item129 Ref="236" Component="#Ref-23" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item130 Ref="237" Component="#Ref-23" Culture="Default" Path="SizeF" Data="487.340057,23.0000038" />
    <Item131 Ref="238" Component="#Ref-23" Culture="Default" Path="Text" Data="Informe básico estado inscripciones" />
    <Item132 Ref="239" Component="#Ref-23" Culture="en" Path="Text" Data="Basic report registration status" />
    <Item133 Ref="240" Component="#Ref-23" Culture="pt" Path="Text" Data="Status de registro do relatório básico" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'
	
	-- Reporte de consumos de voz local
	EXEC [dbo].[METADATA_REPORT] @amdmReportConsumption, N'AMDM_Report_Consupmtion_Local_Voice', 11,
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="ConsumptionLocalVoice" ScriptsSource="using DevExpress.XtraReports;&#xD;&#xA;&#xD;&#xA;private void ConsumptionLocalVoice_ParametersRequestBeforeShow(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e) {&#xD;&#xA;&#x9;XtraReport report=sender as XtraReport;&#xD;&#xA;      //Muestra la fecha un año antes de la fecha actual&#xD;&#xA;      report.Parameters[0].Value = DateTime.Today.AddYears(-1);&#xD;&#xA;      //Muestra la fecha actual&#xD;&#xA;      report.Parameters[1].Value = DateTime.Today;&#xD;&#xA;}&#xD;&#xA;" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="Data" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" ValueInfo="2000-01-01" Name="start" Type="#Ref-2" />
    <Item2 Ref="4" ValueInfo="2018-07-30" Name="end" Type="#Ref-2" />
    <Item3 Ref="7" ValueSourceSettings="#Ref-5" ValueInfo="0" Name="plan" Type="#Ref-6" />
  </Parameters>
  <Bands>
    <Item1 Ref="8" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="9" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="10" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="11" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="12" ControlType="XRTableCell" Name="tableCell5" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="13" EventName="BeforePrint" PropertyName="Text" Expression="[DEVICE_NAME]" />
                  </ExpressionBindings>
                  <StylePriority Ref="14" UseForeColor="false" />
                </Item1>
                <Item2 Ref="15" ControlType="XRTableCell" Name="tableCell6" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="16" EventName="BeforePrint" PropertyName="Text" Expression="[USER]" />
                  </ExpressionBindings>
                  <StylePriority Ref="17" UseForeColor="false" />
                </Item2>
                <Item3 Ref="18" ControlType="XRTableCell" Name="tableCell7" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[PLAN_NAME]" />
                  </ExpressionBindings>
                  <StylePriority Ref="20" UseForeColor="false" />
                </Item3>
                <Item4 Ref="21" ControlType="XRTableCell" Name="tableCell8" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="22" EventName="BeforePrint" PropertyName="Text" Expression="[TOTAL]" />
                  </ExpressionBindings>
                  <StylePriority Ref="23" UseForeColor="false" />
                </Item4>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="25" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="26" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="27" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="28" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_descripcion">
          <StylePriority Ref="29" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="30" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="31" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="32" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="34" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="35" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="36" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="37" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="39" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="40" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="41" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="42" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="43" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="44" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="45" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="46" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="48" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="2">
      <Controls>
        <Item1 Ref="49" ControlType="XRShape" Name="shape2" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="50" ShapeName="Rectangle" />
          <StylePriority Ref="51" UseForeColor="false" />
        </Item1>
        <Item2 Ref="52" ControlType="XRLabel" Name="label18" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="53" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[CURRENCY]" />
          </ExpressionBindings>
          <StylePriority Ref="54" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="55" ControlType="XRLabel" Name="label16" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="56" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[CUTOFF_DATE]" />
          </ExpressionBindings>
          <StylePriority Ref="57" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="58" ControlType="XRLabel" Name="label14" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="59" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_DATA_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="60" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="61" ControlType="XRLabel" Name="label12" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="62" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_ROAMING_DATA_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="63" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="64" ControlType="XRLabel" Name="label10" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="65" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_VOICE_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="66" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="67" ControlType="XRLabel" Name="label8" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="68" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_ROAMING_VOICE_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="69" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="70" ControlType="XRLabel" Name="label6" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="71" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[NAME]" />
          </ExpressionBindings>
          <StylePriority Ref="72" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="73" ControlType="XRLabel" Name="label4" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="74" EventName="BeforePrint" PropertyName="Text" Expression="?end" />
          </ExpressionBindings>
          <StylePriority Ref="75" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="76" ControlType="XRLabel" Name="label2" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="77" EventName="BeforePrint" PropertyName="Text" Expression="?start" />
          </ExpressionBindings>
          <StylePriority Ref="78" UseFont="false" UseForeColor="false" />
        </Item10>
        <Item11 Ref="79" ControlType="XRLabel" Name="label1" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_inicio">
          <StylePriority Ref="80" UseFont="false" UseForeColor="false" />
        </Item11>
        <Item12 Ref="81" ControlType="XRLabel" Name="label3" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_final">
          <StylePriority Ref="82" UseFont="false" UseForeColor="false" />
        </Item12>
        <Item13 Ref="83" ControlType="XRLabel" Name="label5" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_plan">
          <StylePriority Ref="84" UseFont="false" UseForeColor="false" />
        </Item13>
        <Item14 Ref="85" ControlType="XRLabel" Name="label7" Multiline="true" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_limitevozitinerante">
          <StylePriority Ref="86" UseFont="false" UseForeColor="false" />
        </Item14>
        <Item15 Ref="87" ControlType="XRLabel" Name="label9" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_moneda">
          <StylePriority Ref="88" UseFont="false" UseForeColor="false" />
        </Item15>
        <Item16 Ref="89" ControlType="XRLabel" Name="label11" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_limitevozlocal">
          <StylePriority Ref="90" UseFont="false" UseForeColor="false" />
        </Item16>
        <Item17 Ref="91" ControlType="XRLabel" Name="label13" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_limitedatositinerante">
          <StylePriority Ref="92" UseFont="false" UseForeColor="false" />
        </Item17>
        <Item18 Ref="93" ControlType="XRLabel" Name="label15" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_limitedatoslocal">
          <StylePriority Ref="94" UseFont="false" UseForeColor="false" />
        </Item18>
        <Item19 Ref="95" ControlType="XRLabel" Name="label17" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_fechalimite">
          <StylePriority Ref="96" UseFont="false" UseForeColor="false" />
        </Item19>
      </Controls>
    </Item6>
    <Item7 Ref="97" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="1">
      <Controls>
        <Item1 Ref="98" ControlType="XRShape" Name="shape1" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="99" ShapeName="Rectangle" />
          <StylePriority Ref="100" UseForeColor="false" />
        </Item1>
        <Item2 Ref="101" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="102">
            <DataContainer Ref="103" DataMember="DataGraph" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="104" Name="Series 1" ArgumentDataMember="DEVICE_NAME" ValueDataMembersSerializable="TOTAL" Tag_type="System.String" Tag="Reports_Consumption" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="105" TypeNameSerializable="XYDiagram">
              <AxisX Ref="106" VisibleInPanesSerializable="-1" />
              <AxisY Ref="107" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="108" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="109">
                  <ConnectorLineStyle Ref="110" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="111" />
            <OptionsPrint Ref="112" ImageFormat="Metafile" />
          </Chart>
        </Item2>
        <Item3 Ref="113" ControlType="XRLabel" Name="label19" TextAlignment="MiddleCenter" StyleName="controlStyle2" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_10dispositivos">
          <StylePriority Ref="114" UseForeColor="false" UseTextAlignment="false" />
        </Item3>
      </Controls>
    </Item7>
    <Item8 Ref="115" ControlType="GroupHeaderBand" Name="GroupHeader3">
      <Controls>
        <Item1 Ref="116" ControlType="XRShape" Name="shape3" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="117" ShapeName="Rectangle" />
          <StylePriority Ref="118" UseForeColor="false" />
        </Item1>
        <Item2 Ref="119" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="120" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="121" ControlType="XRTableCell" Name="tableCell1" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_dispositivo" />
                <Item2 Ref="122" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_usuario" />
                <Item3 Ref="123" ControlType="XRTableCell" Name="tableCell3" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_plan_table" />
                <Item4 Ref="124" ControlType="XRTableCell" Name="tableCell4" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_total" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="125" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="126" ControlType="XRLabel" Name="label20" TextAlignment="MiddleCenter" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_devicesList">
          <StylePriority Ref="127" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item3>
      </Controls>
    </Item8>
    <Item9 Ref="128" ControlType="GroupFooterBand" Name="GroupFooter1">
      <Controls>
        <Item1 Ref="129" ControlType="XRTable" Name="table3">
          <Rows>
            <Item1 Ref="130" ControlType="XRTableRow" Name="tableRow3">
              <Cells>
                <Item1 Ref="131" ControlType="XRTableCell" Name="tableCell9" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Voice_total" />
                <Item2 Ref="132" ControlType="XRTableCell" Name="tableCell11" Padding="2,2,0,0,100">
                  <ExpressionBindings>
                    <Item1 Ref="133" EventName="BeforePrint" PropertyName="Text" Expression="[SumTotal].[TOTAL]" />
                  </ExpressionBindings>
                </Item2>
              </Cells>
            </Item1>
          </Rows>
        </Item1>
      </Controls>
    </Item9>
  </Bands>
  <Scripts Ref="134" OnParametersRequestBeforeShow="ConsumptionLocalVoice_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="135" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,192,192" StringFormat="Near;Near;0;None;Character;Default" />
    <Item2 Ref="136" Name="controlStyle2" BorderStyle="Inset" Font="Tahoma, 12pt, style=Bold, charSet=0" ForeColor="White" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <LocalizationItems>
    <Item1 Ref="137" Component="#Ref-25" Culture="Default" Path="HeightF" Data="40.0416679" />
    <Item2 Ref="138" Component="#Ref-101" Culture="Default" Path="LocationFloat" Data="25.6666927,41.75002" />
    <Item3 Ref="139" Component="#Ref-101" Culture="Default" Path="SizeF" Data="731.458252,230.124985" />
    <Item4 Ref="140" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item5 Ref="141" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item6 Ref="142" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item7 Ref="143" Component="#Ref-34" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item8 Ref="144" Component="#Ref-34" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item9 Ref="145" Component="#Ref-34" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item10 Ref="146" Component="#Ref-32" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item11 Ref="147" Component="#Ref-32" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item12 Ref="148" Component="#Ref-32" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item13 Ref="149" Component="#Ref-32" Culture="Default" Path="Text" Data="Fecha:" />
    <Item14 Ref="150" Component="#Ref-32" Culture="en" Path="Text" Data="Date:" />
    <Item15 Ref="151" Component="#Ref-32" Culture="pt" Path="Text" Data="Data:" />
    <Item16 Ref="152" Component="#Ref-9" Culture="Default" Path="HeightF" Data="25" />
    <Item17 Ref="153" Component="#Ref-4" Culture="Default" Path="Description" Data="Fecha Final" />
    <Item18 Ref="154" Component="#Ref-48" Culture="Default" Path="HeightF" Data="165.972214" />
    <Item19 Ref="155" Component="#Ref-97" Culture="Default" Path="HeightF" Data="301.041656" />
    <Item20 Ref="156" Component="#Ref-115" Culture="Default" Path="HeightF" Data="70.41667" />
    <Item21 Ref="157" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item22 Ref="158" Component="#Ref-27" Culture="Default" Path="SizeF" Data="256.696716,79.99999" />
    <Item23 Ref="159" Component="#Ref-79" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item24 Ref="160" Component="#Ref-79" Culture="Default" Path="LocationFloat" Data="20.6666565,22.7314682" />
    <Item25 Ref="161" Component="#Ref-79" Culture="Default" Path="SizeF" Data="148.958328,23" />
    <Item26 Ref="162" Component="#Ref-79" Culture="Default" Path="Text" Data="Fecha de inicio:" />
    <Item27 Ref="163" Component="#Ref-79" Culture="en" Path="Text" Data="Start date:" />
    <Item28 Ref="164" Component="#Ref-79" Culture="pt" Path="Text" Data="Data de início:" />
    <Item29 Ref="165" Component="#Ref-64" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item30 Ref="166" Component="#Ref-64" Culture="Default" Path="LocationFloat" Data="169.625,68.73143" />
    <Item31 Ref="167" Component="#Ref-64" Culture="Default" Path="SizeF" Data="216.898178,22.9999962" />
    <Item32 Ref="168" Component="#Ref-64" Culture="Default" Path="Text" Data="label10" />
    <Item33 Ref="169" Component="#Ref-89" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item34 Ref="170" Component="#Ref-89" Culture="Default" Path="LocationFloat" Data="20.6666565,68.73143" />
    <Item35 Ref="171" Component="#Ref-89" Culture="Default" Path="SizeF" Data="148.958344,23.0000076" />
    <Item36 Ref="172" Component="#Ref-89" Culture="Default" Path="Text" Data="Límite de voz local:" />
    <Item37 Ref="173" Component="#Ref-89" Culture="en" Path="Text" Data="Local voice limit:" />
    <Item38 Ref="174" Component="#Ref-89" Culture="pt" Path="Text" Data="Limite de voz local:" />
    <Item39 Ref="175" Component="#Ref-61" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item40 Ref="176" Component="#Ref-61" Culture="Default" Path="LocationFloat" Data="597.0881,68.73154" />
    <Item41 Ref="177" Component="#Ref-61" Culture="Default" Path="SizeF" Data="182.07843,23" />
    <Item42 Ref="178" Component="#Ref-61" Culture="Default" Path="Text" Data="label12" />
    <Item43 Ref="179" Component="#Ref-91" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item44 Ref="180" Component="#Ref-91" Culture="Default" Path="LocationFloat" Data="403.338,68.73154" />
    <Item45 Ref="181" Component="#Ref-91" Culture="Default" Path="SizeF" Data="193.75,23.0000076" />
    <Item46 Ref="182" Component="#Ref-91" Culture="Default" Path="Text" Data="Límite de datos itinerante:" />
    <Item47 Ref="183" Component="#Ref-91" Culture="en" Path="Text" Data="Roaming Data Limit:" />
    <Item48 Ref="184" Component="#Ref-91" Culture="pt" Path="Text" Data="Limite de dados de roaming:" />
    <Item49 Ref="185" Component="#Ref-58" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item50 Ref="186" Component="#Ref-58" Culture="Default" Path="LocationFloat" Data="169.625,91.7314453" />
    <Item51 Ref="187" Component="#Ref-58" Culture="Default" Path="SizeF" Data="216.898178,23" />
    <Item52 Ref="188" Component="#Ref-58" Culture="Default" Path="Text" Data="label14" />
    <Item53 Ref="189" Component="#Ref-93" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item54 Ref="190" Component="#Ref-93" Culture="Default" Path="LocationFloat" Data="20.6666565,91.7314453" />
    <Item55 Ref="191" Component="#Ref-93" Culture="Default" Path="SizeF" Data="148.958344,23.0000076" />
    <Item56 Ref="192" Component="#Ref-93" Culture="Default" Path="Text" Data="Límite de datos local:" />
    <Item57 Ref="193" Component="#Ref-93" Culture="en" Path="Text" Data="Local data limit:" />
    <Item58 Ref="194" Component="#Ref-93" Culture="pt" Path="Text" Data="Limite de dados locais:" />
    <Item59 Ref="195" Component="#Ref-55" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item60 Ref="196" Component="#Ref-55" Culture="Default" Path="LocationFloat" Data="597.0881,91.73155" />
    <Item61 Ref="197" Component="#Ref-55" Culture="Default" Path="SizeF" Data="182.07843,23" />
    <Item62 Ref="198" Component="#Ref-55" Culture="Default" Path="Text" Data="label16" />
    <Item63 Ref="199" Component="#Ref-95" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item64 Ref="200" Component="#Ref-95" Culture="Default" Path="LocationFloat" Data="403.338,91.73155" />
    <Item65 Ref="201" Component="#Ref-95" Culture="Default" Path="SizeF" Data="193.75,23.0000076" />
    <Item66 Ref="202" Component="#Ref-95" Culture="Default" Path="Text" Data="Fecha límite del plan:" />
    <Item67 Ref="203" Component="#Ref-95" Culture="en" Path="Text" Data="Plan Deadline:" />
    <Item68 Ref="204" Component="#Ref-95" Culture="pt" Path="Text" Data="Prazo do plano:" />
    <Item69 Ref="205" Component="#Ref-52" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item70 Ref="206" Component="#Ref-52" Culture="Default" Path="LocationFloat" Data="169.625,114.731461" />
    <Item71 Ref="207" Component="#Ref-52" Culture="Default" Path="SizeF" Data="216.898178,23" />
    <Item72 Ref="208" Component="#Ref-52" Culture="Default" Path="Text" Data="label18" />
    <Item73 Ref="209" Component="#Ref-113" Culture="Default" Path="LocationFloat" Data="3.53212781E-05,10.0000191" />
    <Item74 Ref="210" Component="#Ref-113" Culture="Default" Path="SizeF" Data="779.166443,23" />
    <Item75 Ref="211" Component="#Ref-113" Culture="Default" Path="Text" Data="Los 10 dispositivos con el mayor nivel de consumo (Seg)" />
    <Item76 Ref="212" Component="#Ref-113" Culture="en" Path="Text" Data="The 10 devices with the highest level of consumption (Seg)" />
    <Item77 Ref="213" Component="#Ref-113" Culture="pt" Path="Text" Data="Os 10 dispositivos com maior nível de consumo (Seg)" />
    <Item78 Ref="214" Component="#Ref-76" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item79 Ref="215" Component="#Ref-76" Culture="Default" Path="LocationFloat" Data="169.625,22.7314682" />
    <Item80 Ref="216" Component="#Ref-76" Culture="Default" Path="SizeF" Data="216.898178,23" />
    <Item81 Ref="217" Component="#Ref-76" Culture="Default" Path="Text" Data="label2" />
    <Item82 Ref="218" Component="#Ref-126" Culture="Default" Path="Font" Data="Tahoma, 12pt, style=Bold" />
    <Item83 Ref="219" Component="#Ref-126" Culture="Default" Path="LocationFloat" Data="0,9.999984" />
    <Item84 Ref="220" Component="#Ref-126" Culture="Default" Path="SizeF" Data="776.0415,23.0000057" />
    <Item85 Ref="221" Component="#Ref-126" Culture="Default" Path="Text" Data="Lista de dispositivos:" />
    <Item86 Ref="222" Component="#Ref-126" Culture="en" Path="Text" Data="Device list:" />
    <Item87 Ref="223" Component="#Ref-81" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item88 Ref="224" Component="#Ref-81" Culture="Default" Path="LocationFloat" Data="403.338,22.7314682" />
    <Item89 Ref="225" Component="#Ref-81" Culture="Default" Path="SizeF" Data="100,23" />
    <Item90 Ref="226" Component="#Ref-81" Culture="Default" Path="Text" Data="Fecha final:" />
    <Item91 Ref="227" Component="#Ref-81" Culture="en" Path="Text" Data="End date:" />
    <Item92 Ref="228" Component="#Ref-81" Culture="pt" Path="Text" Data="Data final:" />
    <Item93 Ref="229" Component="#Ref-73" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item94 Ref="230" Component="#Ref-73" Culture="Default" Path="LocationFloat" Data="597.0881,22.7315044" />
    <Item95 Ref="231" Component="#Ref-73" Culture="Default" Path="SizeF" Data="182.078491,23" />
    <Item96 Ref="232" Component="#Ref-73" Culture="Default" Path="Text" Data="label4" />
    <Item97 Ref="233" Component="#Ref-83" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item98 Ref="234" Component="#Ref-83" Culture="Default" Path="LocationFloat" Data="20.6666565,45.73145" />
    <Item99 Ref="235" Component="#Ref-83" Culture="Default" Path="SizeF" Data="148.958328,23" />
    <Item100 Ref="236" Component="#Ref-83" Culture="Default" Path="Text" Data="Plan:" />
    <Item101 Ref="237" Component="#Ref-83" Culture="pt" Path="Text" Data="Plano:" />
    <Item102 Ref="238" Component="#Ref-70" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item103 Ref="239" Component="#Ref-70" Culture="Default" Path="LocationFloat" Data="169.625,45.73145" />
    <Item104 Ref="240" Component="#Ref-70" Culture="Default" Path="SizeF" Data="216.898178,23" />
    <Item105 Ref="241" Component="#Ref-70" Culture="Default" Path="Text" Data="label6" />
    <Item106 Ref="242" Component="#Ref-85" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item107 Ref="243" Component="#Ref-85" Culture="Default" Path="LocationFloat" Data="403.338,45.7314835" />
    <Item108 Ref="244" Component="#Ref-85" Culture="Default" Path="SizeF" Data="193.75,23" />
    <Item109 Ref="245" Component="#Ref-85" Culture="Default" Path="Text" Data="Límite de voz itinerante:" />
    <Item110 Ref="246" Component="#Ref-85" Culture="en" Path="Text" Data="Roaming Voice Limit:" />
    <Item111 Ref="247" Component="#Ref-85" Culture="pt" Path="Text" Data="Limite de voz em roaming:" />
    <Item112 Ref="248" Component="#Ref-67" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item113 Ref="249" Component="#Ref-67" Culture="Default" Path="LocationFloat" Data="597.087952,45.73152" />
    <Item114 Ref="250" Component="#Ref-67" Culture="Default" Path="SizeF" Data="182.078552,23" />
    <Item115 Ref="251" Component="#Ref-67" Culture="Default" Path="Text" Data="label8" />
    <Item116 Ref="252" Component="#Ref-87" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item117 Ref="253" Component="#Ref-87" Culture="Default" Path="LocationFloat" Data="20.6666927,114.731461" />
    <Item118 Ref="254" Component="#Ref-87" Culture="Default" Path="SizeF" Data="71.875,23" />
    <Item119 Ref="255" Component="#Ref-87" Culture="Default" Path="Text" Data="Moneda:" />
    <Item120 Ref="256" Component="#Ref-87" Culture="en" Path="Text" Data="Currency:" />
    <Item121 Ref="257" Component="#Ref-87" Culture="pt" Path="Text" Data="Moeda:" />
    <Item122 Ref="258" Component="#Ref-40" Culture="Default" Path="LocationFloat" Data="3.125,20.6249866" />
    <Item123 Ref="259" Component="#Ref-40" Culture="Default" Path="SizeF" Data="773.88,14.6666851" />
    <Item124 Ref="260" Component="#Ref-39" Culture="Default" Path="LocationFloat" Data="700.4166,35.29168" />
    <Item125 Ref="261" Component="#Ref-39" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item126 Ref="262" Component="#Ref-46" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item127 Ref="263" Component="#Ref-46" Culture="Default" Path="LocationFloat" Data="118.791435,44.1458054" />
    <Item128 Ref="264" Component="#Ref-46" Culture="Default" Path="SizeF" Data="581.6252,23.0000076" />
    <Item129 Ref="265" Component="#Ref-46" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ?" />
    <Item130 Ref="266" Component="#Ref-46" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ?" />
    <Item131 Ref="267" Component="#Ref-46" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ?" />
    <Item132 Ref="268" Component="#Ref-36" Culture="Default" Path="HeightF" Data="76.00003" />
    <Item133 Ref="269" Component="#Ref-42" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item134 Ref="270" Component="#Ref-42" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item135 Ref="271" Component="#Ref-42" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item136 Ref="272" Component="#Ref-44" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item137 Ref="273" Component="#Ref-44" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item138 Ref="274" Component="#Ref-44" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item139 Ref="275" Component="#Ref-44" Culture="Default" Path="Text" Data="Página" />
    <Item140 Ref="276" Component="#Ref-44" Culture="en" Path="Text" Data="Page" />
    <Item141 Ref="277" Component="#Ref-7" Culture="Default" Path="Description" Data="Plan" />
    <Item142 Ref="278" Component="#Ref-37" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item143 Ref="279" Component="#Ref-37" Culture="Default" Path="LocationFloat" Data="0.000127156571,0" />
    <Item144 Ref="280" Component="#Ref-37" Culture="Default" Path="SizeF" Data="777.004761,20.6249866" />
    <Item145 Ref="281" Component="#Ref-37" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item146 Ref="282" Component="#Ref-37" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item147 Ref="283" Component="#Ref-37" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item148 Ref="284" Component="#Ref-26" Culture="Default" Path="HeightF" Data="110.375" />
    <Item149 Ref="285" Component="#Ref-98" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item150 Ref="286" Component="#Ref-98" Culture="Default" Path="SizeF" Data="780,4" />
    <Item151 Ref="287" Component="#Ref-49" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item152 Ref="288" Component="#Ref-49" Culture="Default" Path="SizeF" Data="780,4" />
    <Item153 Ref="289" Component="#Ref-116" Culture="Default" Path="LocationFloat" Data="7.06425562E-05,0" />
    <Item154 Ref="290" Component="#Ref-116" Culture="Default" Path="SizeF" Data="780,4" />
    <Item155 Ref="291" Component="#Ref-3" Culture="Default" Path="Description" Data="Fecha inicio" />
    <Item156 Ref="292" Component="#Ref-119" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item157 Ref="293" Component="#Ref-119" Culture="Default" Path="LocationFloat" Data="0,45.41667" />
    <Item158 Ref="294" Component="#Ref-119" Culture="Default" Path="SizeF" Data="779.999939,24.9999962" />
    <Item159 Ref="295" Component="#Ref-10" Culture="Default" Path="Font" Data="Tahoma, 9pt, charSet=0" />
    <Item160 Ref="296" Component="#Ref-10" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item161 Ref="297" Component="#Ref-10" Culture="Default" Path="SizeF" Data="780.000061,25" />
    <Item162 Ref="298" Component="#Ref-129" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item163 Ref="299" Component="#Ref-129" Culture="Default" Path="SizeF" Data="780.0003,25" />
    <Item164 Ref="300" Component="#Ref-121" Culture="Default" Path="Text" Data="Dispositivo" />
    <Item165 Ref="301" Component="#Ref-121" Culture="en" Path="Text" Data="Device" />
    <Item166 Ref="302" Component="#Ref-121" Culture="Default" Path="Weight" Data="1" />
    <Item167 Ref="303" Component="#Ref-132" Culture="Default" Path="Text" Data="tableCell11" />
    <Item168 Ref="304" Component="#Ref-132" Culture="Default" Path="Weight" Data="0.75000052818872831" />
    <Item169 Ref="305" Component="#Ref-122" Culture="Default" Path="Text" Data="Usuario" />
    <Item170 Ref="306" Component="#Ref-122" Culture="en" Path="Text" Data="User" />
    <Item171 Ref="307" Component="#Ref-122" Culture="pt" Path="Text" Data="Do utilizador" />
    <Item172 Ref="308" Component="#Ref-122" Culture="Default" Path="Weight" Data="1" />
    <Item173 Ref="309" Component="#Ref-123" Culture="Default" Path="Text" Data="Plan" />
    <Item174 Ref="310" Component="#Ref-123" Culture="pt" Path="Text" Data="Plano" />
    <Item175 Ref="311" Component="#Ref-123" Culture="Default" Path="Weight" Data="1" />
    <Item176 Ref="312" Component="#Ref-124" Culture="Default" Path="Text" Data="Total(Sec)" />
    <Item177 Ref="313" Component="#Ref-124" Culture="Default" Path="Weight" Data="1" />
    <Item178 Ref="314" Component="#Ref-12" Culture="Default" Path="Text" Data="Column1" />
    <Item179 Ref="315" Component="#Ref-12" Culture="Default" Path="Weight" Data="1" />
    <Item180 Ref="316" Component="#Ref-15" Culture="Default" Path="Text" Data="Column2" />
    <Item181 Ref="317" Component="#Ref-15" Culture="Default" Path="Weight" Data="1" />
    <Item182 Ref="318" Component="#Ref-18" Culture="Default" Path="Text" Data="Column3" />
    <Item183 Ref="319" Component="#Ref-18" Culture="Default" Path="Weight" Data="1" />
    <Item184 Ref="320" Component="#Ref-21" Culture="Default" Path="Text" Data="tableCell8" />
    <Item185 Ref="321" Component="#Ref-21" Culture="Default" Path="Weight" Data="1" />
    <Item186 Ref="322" Component="#Ref-131" Culture="Default" Path="Text" Data="Total(Mb)" />
    <Item187 Ref="323" Component="#Ref-131" Culture="Default" Path="Weight" Data="2.2499999413123635" />
    <Item188 Ref="324" Component="#Ref-120" Culture="Default" Path="Weight" Data="1" />
    <Item189 Ref="325" Component="#Ref-11" Culture="Default" Path="Weight" Data="1" />
    <Item190 Ref="326" Component="#Ref-130" Culture="Default" Path="Weight" Data="1" />
    <Item191 Ref="327" Component="#Ref-30" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item192 Ref="328" Component="#Ref-30" Culture="Default" Path="LocationFloat" Data="20.6666565,10.0000191" />
    <Item193 Ref="329" Component="#Ref-30" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item194 Ref="330" Component="#Ref-30" Culture="Default" Path="Text" Data="Información de consumo de voz local" />
    <Item195 Ref="331" Component="#Ref-30" Culture="en" Path="Text" Data="Local voice consumption information" />
    <Item196 Ref="332" Component="#Ref-30" Culture="pt" Path="Text" Data="Informações de consumo de voz local" />
    <Item197 Ref="333" Component="#Ref-8" Culture="Default" Path="HeightF" Data="30" />
    <Item198 Ref="334" Component="#Ref-28" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item199 Ref="335" Component="#Ref-28" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item200 Ref="336" Component="#Ref-28" Culture="Default" Path="SizeF" Data="487.339966,23.0000038" />
    <Item201 Ref="337" Component="#Ref-28" Culture="Default" Path="Text" Data="AMDM" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="PLAN" ValueMember="plan_id" DisplayMember="plan_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

	-- Reporte de consumo de voz roaming
	EXEC [dbo].[METADATA_REPORT] @amdmReportConsumption, N'AMDM_Report_Consupmtion_Roaming_Voice', 12,
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="ConsumptionRoamingVoice" ScriptsSource="using DevExpress.XtraReports;&#xD;&#xA;&#xD;&#xA;private void ConsumptionRoamingVoice_ParametersRequestBeforeShow(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e) {&#xD;&#xA;&#x9;XtraReport report=sender as XtraReport;&#xD;&#xA;      //Muestra la fecha un año antes de la fecha actual&#xD;&#xA;      report.Parameters[0].Value = DateTime.Today.AddYears(-1);&#xD;&#xA;      //Muestra la fecha actual&#xD;&#xA;      report.Parameters[1].Value = DateTime.Today;&#xD;&#xA;}&#xD;&#xA;" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="Data" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" ValueInfo="2000-01-01" Name="start" Type="#Ref-2" />
    <Item2 Ref="4" ValueInfo="2018-07-31" Name="end" Type="#Ref-2" />
    <Item3 Ref="7" ValueSourceSettings="#Ref-5" ValueInfo="0" Name="plan" Type="#Ref-6" />
  </Parameters>
  <Bands>
    <Item1 Ref="8" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="9" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="10" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="11" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="12" ControlType="XRTableCell" Name="tableCell5" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="13" EventName="BeforePrint" PropertyName="Text" Expression="[DEVICE_NAME]" />
                  </ExpressionBindings>
                  <StylePriority Ref="14" UseForeColor="false" />
                </Item1>
                <Item2 Ref="15" ControlType="XRTableCell" Name="tableCell6" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="16" EventName="BeforePrint" PropertyName="Text" Expression="[USER]" />
                  </ExpressionBindings>
                  <StylePriority Ref="17" UseForeColor="false" />
                </Item2>
                <Item3 Ref="18" ControlType="XRTableCell" Name="tableCell7" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[PLAN_NAME]" />
                  </ExpressionBindings>
                  <StylePriority Ref="20" UseForeColor="false" />
                </Item3>
                <Item4 Ref="21" ControlType="XRTableCell" Name="tableCell8" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="22" EventName="BeforePrint" PropertyName="Text" Expression="[TOTAL]" />
                  </ExpressionBindings>
                  <StylePriority Ref="23" UseForeColor="false" />
                </Item4>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="25" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="26" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="27" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="28" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_descripcion">
          <StylePriority Ref="29" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="30" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="31" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="32" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="34" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="35" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="36" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="37" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="39" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="40" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="41" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="42" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="43" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="44" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="45" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="46" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="48" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="2">
      <Controls>
        <Item1 Ref="49" ControlType="XRShape" Name="shape2" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="50" ShapeName="Rectangle" />
          <StylePriority Ref="51" UseForeColor="false" />
        </Item1>
        <Item2 Ref="52" ControlType="XRLabel" Name="label18" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="53" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[CURRENCY]" />
          </ExpressionBindings>
          <StylePriority Ref="54" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="55" ControlType="XRLabel" Name="label16" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="56" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[CUTOFF_DATE]" />
          </ExpressionBindings>
          <StylePriority Ref="57" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="58" ControlType="XRLabel" Name="label14" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="59" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_DATA_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="60" UseForeColor="false" />
        </Item4>
        <Item5 Ref="61" ControlType="XRLabel" Name="label12" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="62" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_ROAMING_DATA_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="63" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="64" ControlType="XRLabel" Name="label10" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="65" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_VOICE_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="66" UseForeColor="false" />
        </Item6>
        <Item7 Ref="67" ControlType="XRLabel" Name="label8" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="68" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_ROAMING_VOICE_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="69" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="70" ControlType="XRLabel" Name="label6" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="71" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[NAME]" />
          </ExpressionBindings>
          <StylePriority Ref="72" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="73" ControlType="XRLabel" Name="label4" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="74" EventName="BeforePrint" PropertyName="Text" Expression="?end" />
          </ExpressionBindings>
          <StylePriority Ref="75" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="76" ControlType="XRLabel" Name="label2" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="77" EventName="BeforePrint" PropertyName="Text" Expression="?start" />
          </ExpressionBindings>
          <StylePriority Ref="78" UseFont="false" UseForeColor="false" />
        </Item10>
        <Item11 Ref="79" ControlType="XRLabel" Name="label1" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_inicio">
          <StylePriority Ref="80" UseFont="false" UseForeColor="false" />
        </Item11>
        <Item12 Ref="81" ControlType="XRLabel" Name="label3" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_final">
          <StylePriority Ref="82" UseFont="false" UseForeColor="false" />
        </Item12>
        <Item13 Ref="83" ControlType="XRLabel" Name="label5" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_plan">
          <StylePriority Ref="84" UseFont="false" UseForeColor="false" />
        </Item13>
        <Item14 Ref="85" ControlType="XRLabel" Name="label7" Multiline="true" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_limitevozitinerante">
          <StylePriority Ref="86" UseFont="false" UseForeColor="false" />
        </Item14>
        <Item15 Ref="87" ControlType="XRLabel" Name="label9" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_moneda">
          <StylePriority Ref="88" UseFont="false" UseForeColor="false" />
        </Item15>
        <Item16 Ref="89" ControlType="XRLabel" Name="label11" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_limitevozlocal">
          <StylePriority Ref="90" UseFont="false" UseForeColor="false" />
        </Item16>
        <Item17 Ref="91" ControlType="XRLabel" Name="label13" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_limitedatositinerante">
          <StylePriority Ref="92" UseFont="false" UseForeColor="false" />
        </Item17>
        <Item18 Ref="93" ControlType="XRLabel" Name="label15" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_limitedatoslocal">
          <StylePriority Ref="94" UseFont="false" UseForeColor="false" />
        </Item18>
        <Item19 Ref="95" ControlType="XRLabel" Name="label17" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_fechalimite">
          <StylePriority Ref="96" UseFont="false" UseForeColor="false" />
        </Item19>
      </Controls>
    </Item6>
    <Item7 Ref="97" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="1">
      <Controls>
        <Item1 Ref="98" ControlType="XRShape" Name="shape1" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="99" ShapeName="Rectangle" />
          <StylePriority Ref="100" UseForeColor="false" />
        </Item1>
        <Item2 Ref="101" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="102">
            <DataContainer Ref="103" DataMember="DataGraph" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="104" Name="Series 1" ArgumentDataMember="DEVICE_NAME" ValueDataMembersSerializable="TOTAL" Tag_type="System.String" Tag="Reports_Consumption" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="105" TypeNameSerializable="XYDiagram">
              <AxisX Ref="106" VisibleInPanesSerializable="-1" />
              <AxisY Ref="107" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="108" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="109">
                  <ConnectorLineStyle Ref="110" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="111" />
            <OptionsPrint Ref="112" ImageFormat="Metafile" />
          </Chart>
        </Item2>
        <Item3 Ref="113" ControlType="XRLabel" Name="label19" TextAlignment="MiddleCenter" StyleName="controlStyle2" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_10dispositivos">
          <StylePriority Ref="114" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item3>
      </Controls>
    </Item7>
    <Item8 Ref="115" ControlType="GroupHeaderBand" Name="GroupHeader3">
      <Controls>
        <Item1 Ref="116" ControlType="XRShape" Name="shape3" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="117" ShapeName="Rectangle" />
          <StylePriority Ref="118" UseForeColor="false" />
        </Item1>
        <Item2 Ref="119" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="120" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="121" ControlType="XRTableCell" Name="tableCell1" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_dispositivo" />
                <Item2 Ref="122" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_usuario" />
                <Item3 Ref="123" ControlType="XRTableCell" Name="tableCell3" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_plan_table" />
                <Item4 Ref="124" ControlType="XRTableCell" Name="tableCell4" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_total" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="125" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="126" ControlType="XRLabel" Name="label20" TextAlignment="MiddleCenter" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_devicesList">
          <StylePriority Ref="127" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item3>
      </Controls>
    </Item8>
    <Item9 Ref="128" ControlType="GroupFooterBand" Name="GroupFooter1">
      <Controls>
        <Item1 Ref="129" ControlType="XRTable" Name="table3">
          <Rows>
            <Item1 Ref="130" ControlType="XRTableRow" Name="tableRow3">
              <Cells>
                <Item1 Ref="131" ControlType="XRTableCell" Name="tableCell9" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Voice_total" />
                <Item2 Ref="132" ControlType="XRTableCell" Name="tableCell11" Padding="2,2,0,0,100">
                  <ExpressionBindings>
                    <Item1 Ref="133" EventName="BeforePrint" PropertyName="Text" Expression="[TotalSum].[TOTAL]" />
                  </ExpressionBindings>
                </Item2>
              </Cells>
            </Item1>
          </Rows>
        </Item1>
      </Controls>
    </Item9>
  </Bands>
  <Scripts Ref="134" OnParametersRequestBeforeShow="ConsumptionRoamingVoice_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="135" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,192,192" StringFormat="Near;Near;0;None;Character;Default" />
    <Item2 Ref="136" Name="controlStyle2" BorderStyle="Inset" Font="Tahoma, 12pt, style=Bold, charSet=0" ForeColor="White" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <LocalizationItems>
    <Item1 Ref="137" Component="#Ref-25" Culture="Default" Path="HeightF" Data="40.0416679" />
    <Item2 Ref="138" Component="#Ref-101" Culture="Default" Path="LocationFloat" Data="20.6667061,41.75002" />
    <Item3 Ref="139" Component="#Ref-101" Culture="Default" Path="SizeF" Data="731.458252,230.124985" />
    <Item4 Ref="140" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item5 Ref="141" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item6 Ref="142" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item7 Ref="143" Component="#Ref-34" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item8 Ref="144" Component="#Ref-34" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item9 Ref="145" Component="#Ref-34" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item10 Ref="146" Component="#Ref-32" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item11 Ref="147" Component="#Ref-32" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item12 Ref="148" Component="#Ref-32" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item13 Ref="149" Component="#Ref-32" Culture="Default" Path="Text" Data="Fecha:" />
    <Item14 Ref="150" Component="#Ref-32" Culture="en" Path="Text" Data="Date:" />
    <Item15 Ref="151" Component="#Ref-32" Culture="pt" Path="Text" Data="Data:" />
    <Item16 Ref="152" Component="#Ref-9" Culture="Default" Path="HeightF" Data="25" />
    <Item17 Ref="153" Component="#Ref-4" Culture="Default" Path="Description" Data="Fecha Final" />
    <Item18 Ref="154" Component="#Ref-48" Culture="Default" Path="HeightF" Data="160.416672" />
    <Item19 Ref="155" Component="#Ref-97" Culture="Default" Path="HeightF" Data="296.180542" />
    <Item20 Ref="156" Component="#Ref-115" Culture="Default" Path="HeightF" Data="58.0000534" />
    <Item21 Ref="157" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item22 Ref="158" Component="#Ref-27" Culture="Default" Path="SizeF" Data="257.529968,79.99999" />
    <Item23 Ref="159" Component="#Ref-79" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item24 Ref="160" Component="#Ref-79" Culture="Default" Path="LocationFloat" Data="13.1249971,19.2592773" />
    <Item25 Ref="161" Component="#Ref-79" Culture="Default" Path="SizeF" Data="148.958328,23" />
    <Item26 Ref="162" Component="#Ref-79" Culture="Default" Path="Text" Data="Fecha de inicio:" />
    <Item27 Ref="163" Component="#Ref-79" Culture="en" Path="Text" Data="Start date:" />
    <Item28 Ref="164" Component="#Ref-79" Culture="pt" Path="Text" Data="Data de início:" />
    <Item29 Ref="165" Component="#Ref-64" Culture="Default" Path="LocationFloat" Data="162.083313,65.2593" />
    <Item30 Ref="166" Component="#Ref-64" Culture="Default" Path="SizeF" Data="187.963013,23.0000076" />
    <Item31 Ref="167" Component="#Ref-64" Culture="Default" Path="Text" Data="label10" />
    <Item32 Ref="168" Component="#Ref-89" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item33 Ref="169" Component="#Ref-89" Culture="Default" Path="LocationFloat" Data="13.1249971,65.2593" />
    <Item34 Ref="170" Component="#Ref-89" Culture="Default" Path="SizeF" Data="148.958344,23.0000076" />
    <Item35 Ref="171" Component="#Ref-89" Culture="Default" Path="Text" Data="Límite de voz local:" />
    <Item36 Ref="172" Component="#Ref-89" Culture="en" Path="Text" Data="Local voice limit:" />
    <Item37 Ref="173" Component="#Ref-89" Culture="pt" Path="Text" Data="Limite de voz local:" />
    <Item38 Ref="174" Component="#Ref-61" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item39 Ref="175" Component="#Ref-61" Culture="Default" Path="LocationFloat" Data="556.166565,65.2593" />
    <Item40 Ref="176" Component="#Ref-61" Culture="Default" Path="SizeF" Data="218.833313,23.0000076" />
    <Item41 Ref="177" Component="#Ref-61" Culture="Default" Path="Text" Data="label12" />
    <Item42 Ref="178" Component="#Ref-91" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item43 Ref="179" Component="#Ref-91" Culture="Default" Path="LocationFloat" Data="362.4167,65.2593" />
    <Item44 Ref="180" Component="#Ref-91" Culture="Default" Path="SizeF" Data="193.75,23.0000076" />
    <Item45 Ref="181" Component="#Ref-91" Culture="Default" Path="Text" Data="Límite de datos itinerante:" />
    <Item46 Ref="182" Component="#Ref-91" Culture="en" Path="Text" Data="Roaming Data Limit:" />
    <Item47 Ref="183" Component="#Ref-91" Culture="pt" Path="Text" Data="Limite de dados de roaming:" />
    <Item48 Ref="184" Component="#Ref-58" Culture="Default" Path="LocationFloat" Data="162.083313,88.2593155" />
    <Item49 Ref="185" Component="#Ref-58" Culture="Default" Path="SizeF" Data="187.963013,22.9999924" />
    <Item50 Ref="186" Component="#Ref-58" Culture="Default" Path="Text" Data="label14" />
    <Item51 Ref="187" Component="#Ref-93" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item52 Ref="188" Component="#Ref-93" Culture="Default" Path="LocationFloat" Data="13.1249971,88.2593155" />
    <Item53 Ref="189" Component="#Ref-93" Culture="Default" Path="SizeF" Data="148.958344,23.0000076" />
    <Item54 Ref="190" Component="#Ref-93" Culture="Default" Path="Text" Data="Límite de datos local:" />
    <Item55 Ref="191" Component="#Ref-93" Culture="en" Path="Text" Data="Local data limit:" />
    <Item56 Ref="192" Component="#Ref-93" Culture="pt" Path="Text" Data="Limite de dados locais:" />
    <Item57 Ref="193" Component="#Ref-55" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item58 Ref="194" Component="#Ref-55" Culture="Default" Path="LocationFloat" Data="556.166565,88.2593155" />
    <Item59 Ref="195" Component="#Ref-55" Culture="Default" Path="SizeF" Data="218.833313,22.9999924" />
    <Item60 Ref="196" Component="#Ref-55" Culture="Default" Path="Text" Data="label16" />
    <Item61 Ref="197" Component="#Ref-95" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item62 Ref="198" Component="#Ref-95" Culture="Default" Path="LocationFloat" Data="362.4167,88.2593155" />
    <Item63 Ref="199" Component="#Ref-95" Culture="Default" Path="SizeF" Data="193.75,23.0000076" />
    <Item64 Ref="200" Component="#Ref-95" Culture="Default" Path="Text" Data="Fecha límite del plan:" />
    <Item65 Ref="201" Component="#Ref-95" Culture="en" Path="Text" Data="Plan Deadline:" />
    <Item66 Ref="202" Component="#Ref-95" Culture="pt" Path="Text" Data="Prazo do plano:" />
    <Item67 Ref="203" Component="#Ref-52" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item68 Ref="204" Component="#Ref-52" Culture="Default" Path="LocationFloat" Data="162.083313,111.259331" />
    <Item69 Ref="205" Component="#Ref-52" Culture="Default" Path="SizeF" Data="187.963013,23.0000076" />
    <Item70 Ref="206" Component="#Ref-52" Culture="Default" Path="Text" Data="label18" />
    <Item71 Ref="207" Component="#Ref-113" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item72 Ref="208" Component="#Ref-113" Culture="Default" Path="LocationFloat" Data="0,10.0000181" />
    <Item73 Ref="209" Component="#Ref-113" Culture="Default" Path="SizeF" Data="780.000061,23" />
    <Item74 Ref="210" Component="#Ref-113" Culture="Default" Path="Text" Data="Los 10 dispositivos con el mayor nivel de consumo (Seg)" />
    <Item75 Ref="211" Component="#Ref-113" Culture="en" Path="Text" Data="The 10 devices with the highest level of consumption (Seg)" />
    <Item76 Ref="212" Component="#Ref-113" Culture="pt" Path="Text" Data="Os 10 dispositivos com maior nível de consumo (Seg)" />
    <Item77 Ref="213" Component="#Ref-76" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item78 Ref="214" Component="#Ref-76" Culture="Default" Path="LocationFloat" Data="162.083313,19.2592773" />
    <Item79 Ref="215" Component="#Ref-76" Culture="Default" Path="SizeF" Data="187.963013,23" />
    <Item80 Ref="216" Component="#Ref-76" Culture="Default" Path="Text" Data="label2" />
    <Item81 Ref="217" Component="#Ref-126" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item82 Ref="218" Component="#Ref-126" Culture="Default" Path="LocationFloat" Data="0,10.0000181" />
    <Item83 Ref="219" Component="#Ref-126" Culture="Default" Path="SizeF" Data="779.999939,23.0000038" />
    <Item84 Ref="220" Component="#Ref-126" Culture="Default" Path="Text" Data="Lista de dispositivos:" />
    <Item85 Ref="221" Component="#Ref-126" Culture="en" Path="Text" Data="Device list:" />
    <Item86 Ref="222" Component="#Ref-81" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item87 Ref="223" Component="#Ref-81" Culture="Default" Path="LocationFloat" Data="362.4167,19.2592773" />
    <Item88 Ref="224" Component="#Ref-81" Culture="Default" Path="SizeF" Data="100,23" />
    <Item89 Ref="225" Component="#Ref-81" Culture="Default" Path="Text" Data="Fecha final:" />
    <Item90 Ref="226" Component="#Ref-81" Culture="en" Path="Text" Data="Final date:" />
    <Item91 Ref="227" Component="#Ref-81" Culture="pt" Path="Text" Data="Data final:" />
    <Item92 Ref="228" Component="#Ref-73" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item93 Ref="229" Component="#Ref-73" Culture="Default" Path="LocationFloat" Data="556.166748,19.2592773" />
    <Item94 Ref="230" Component="#Ref-73" Culture="Default" Path="SizeF" Data="218.833191,23" />
    <Item95 Ref="231" Component="#Ref-73" Culture="Default" Path="Text" Data="label4" />
    <Item96 Ref="232" Component="#Ref-83" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item97 Ref="233" Component="#Ref-83" Culture="Default" Path="LocationFloat" Data="13.1249971,42.25929" />
    <Item98 Ref="234" Component="#Ref-83" Culture="Default" Path="SizeF" Data="148.958328,23" />
    <Item99 Ref="235" Component="#Ref-83" Culture="Default" Path="Text" Data="Plan:" />
    <Item100 Ref="236" Component="#Ref-83" Culture="pt" Path="Text" Data="Plano:" />
    <Item101 Ref="237" Component="#Ref-70" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item102 Ref="238" Component="#Ref-70" Culture="Default" Path="LocationFloat" Data="162.083313,42.25929" />
    <Item103 Ref="239" Component="#Ref-70" Culture="Default" Path="SizeF" Data="187.963013,23.0000038" />
    <Item104 Ref="240" Component="#Ref-70" Culture="Default" Path="Text" Data="label6" />
    <Item105 Ref="241" Component="#Ref-85" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item106 Ref="242" Component="#Ref-85" Culture="Default" Path="LocationFloat" Data="362.4167,42.25929" />
    <Item107 Ref="243" Component="#Ref-85" Culture="Default" Path="SizeF" Data="193.75,23" />
    <Item108 Ref="244" Component="#Ref-85" Culture="Default" Path="Text" Data="Límite de voz itinerante:" />
    <Item109 Ref="245" Component="#Ref-85" Culture="en" Path="Text" Data="Roaming Voice Limit:" />
    <Item110 Ref="246" Component="#Ref-85" Culture="pt" Path="Text" Data="Limite de voz em roaming:" />
    <Item111 Ref="247" Component="#Ref-67" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item112 Ref="248" Component="#Ref-67" Culture="Default" Path="LocationFloat" Data="556.166748,42.25929" />
    <Item113 Ref="249" Component="#Ref-67" Culture="Default" Path="SizeF" Data="218.833191,23.0000038" />
    <Item114 Ref="250" Component="#Ref-67" Culture="Default" Path="Text" Data="label8" />
    <Item115 Ref="251" Component="#Ref-87" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item116 Ref="252" Component="#Ref-87" Culture="Default" Path="LocationFloat" Data="13.1249609,111.259331" />
    <Item117 Ref="253" Component="#Ref-87" Culture="Default" Path="SizeF" Data="71.875,23" />
    <Item118 Ref="254" Component="#Ref-87" Culture="Default" Path="Text" Data="Moneda:" />
    <Item119 Ref="255" Component="#Ref-87" Culture="en" Path="Text" Data="Currency:" />
    <Item120 Ref="256" Component="#Ref-87" Culture="pt" Path="Text" Data="Moeda:" />
    <Item121 Ref="257" Component="#Ref-40" Culture="Default" Path="LocationFloat" Data="3.125,20.6250515" />
    <Item122 Ref="258" Component="#Ref-40" Culture="Default" Path="SizeF" Data="773.88,14.66662" />
    <Item123 Ref="259" Component="#Ref-39" Culture="Default" Path="LocationFloat" Data="700.4164,35.2916756" />
    <Item124 Ref="260" Component="#Ref-39" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item125 Ref="261" Component="#Ref-46" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item126 Ref="262" Component="#Ref-46" Culture="Default" Path="LocationFloat" Data="118.791451,44.14587" />
    <Item127 Ref="263" Component="#Ref-46" Culture="Default" Path="SizeF" Data="581.624939,23.0000038" />
    <Item128 Ref="264" Component="#Ref-46" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ?" />
    <Item129 Ref="265" Component="#Ref-46" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ?" />
    <Item130 Ref="266" Component="#Ref-46" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ?" />
    <Item131 Ref="267" Component="#Ref-36" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item132 Ref="268" Component="#Ref-42" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item133 Ref="269" Component="#Ref-42" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item134 Ref="270" Component="#Ref-42" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item135 Ref="271" Component="#Ref-44" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item136 Ref="272" Component="#Ref-44" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item137 Ref="273" Component="#Ref-44" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item138 Ref="274" Component="#Ref-44" Culture="Default" Path="Text" Data="Página" />
    <Item139 Ref="275" Component="#Ref-44" Culture="en" Path="Text" Data="Page" />
    <Item140 Ref="276" Component="#Ref-7" Culture="Default" Path="Description" Data="Plan" />
    <Item141 Ref="277" Component="#Ref-37" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item142 Ref="278" Component="#Ref-37" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item143 Ref="279" Component="#Ref-37" Culture="Default" Path="SizeF" Data="779.999939,20.6250515" />
    <Item144 Ref="280" Component="#Ref-37" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente tambiín está en sus manos." />
    <Item145 Ref="281" Component="#Ref-37" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also there. in your hands." />
    <Item146 Ref="282" Component="#Ref-37" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está lá. em suas mãos." />
    <Item147 Ref="283" Component="#Ref-26" Culture="Default" Path="HeightF" Data="110.375" />
    <Item148 Ref="284" Component="#Ref-98" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item149 Ref="285" Component="#Ref-98" Culture="Default" Path="SizeF" Data="780,4" />
    <Item150 Ref="286" Component="#Ref-49" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item151 Ref="287" Component="#Ref-49" Culture="Default" Path="SizeF" Data="780,4" />
    <Item152 Ref="288" Component="#Ref-116" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item153 Ref="289" Component="#Ref-116" Culture="Default" Path="SizeF" Data="780,4" />
    <Item154 Ref="290" Component="#Ref-3" Culture="Default" Path="Description" Data="Fecha Inicio" />
    <Item155 Ref="291" Component="#Ref-119" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item156 Ref="292" Component="#Ref-119" Culture="Default" Path="LocationFloat" Data="0,33.0000572" />
    <Item157 Ref="293" Component="#Ref-119" Culture="Default" Path="SizeF" Data="779.999939,24.9999962" />
    <Item158 Ref="294" Component="#Ref-10" Culture="Default" Path="Font" Data="Tahoma, 9pt, charSet=0" />
    <Item159 Ref="295" Component="#Ref-10" Culture="Default" Path="LocationFloat" Data="3.17891427E-05,0" />
    <Item160 Ref="296" Component="#Ref-10" Culture="Default" Path="SizeF" Data="780.000061,25" />
    <Item161 Ref="297" Component="#Ref-129" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item162 Ref="298" Component="#Ref-129" Culture="Default" Path="SizeF" Data="780.0002,25" />
    <Item163 Ref="299" Component="#Ref-121" Culture="Default" Path="Text" Data="Dispositivo" />
    <Item164 Ref="300" Component="#Ref-121" Culture="en" Path="Text" Data="Device" />
    <Item165 Ref="301" Component="#Ref-121" Culture="Default" Path="Weight" Data="1" />
    <Item166 Ref="302" Component="#Ref-132" Culture="Default" Path="Text" Data="tableCell11" />
    <Item167 Ref="303" Component="#Ref-132" Culture="Default" Path="Weight" Data="1.9499993896484371" />
    <Item168 Ref="304" Component="#Ref-122" Culture="Default" Path="Text" Data="Usuario" />
    <Item169 Ref="305" Component="#Ref-122" Culture="en" Path="Text" Data="User" />
    <Item170 Ref="306" Component="#Ref-122" Culture="pt" Path="Text" Data="Do utilizador" />
    <Item171 Ref="307" Component="#Ref-122" Culture="Default" Path="Weight" Data="1" />
    <Item172 Ref="308" Component="#Ref-123" Culture="Default" Path="Text" Data="Plan" />
    <Item173 Ref="309" Component="#Ref-123" Culture="pt" Path="Text" Data="Plano" />
    <Item174 Ref="310" Component="#Ref-123" Culture="Default" Path="Weight" Data="1" />
    <Item175 Ref="311" Component="#Ref-124" Culture="Default" Path="Text" Data="Total(Mb)" />
    <Item176 Ref="312" Component="#Ref-124" Culture="Default" Path="Weight" Data="1" />
    <Item177 Ref="313" Component="#Ref-12" Culture="Default" Path="Text" Data="Column1" />
    <Item178 Ref="314" Component="#Ref-12" Culture="Default" Path="Weight" Data="1" />
    <Item179 Ref="315" Component="#Ref-15" Culture="Default" Path="Text" Data="Column2" />
    <Item180 Ref="316" Component="#Ref-15" Culture="Default" Path="Weight" Data="1" />
    <Item181 Ref="317" Component="#Ref-18" Culture="Default" Path="Text" Data="Column3" />
    <Item182 Ref="318" Component="#Ref-18" Culture="Default" Path="Weight" Data="1" />
    <Item183 Ref="319" Component="#Ref-21" Culture="Default" Path="Text" Data="tableCell8" />
    <Item184 Ref="320" Component="#Ref-21" Culture="Default" Path="Weight" Data="1" />
    <Item185 Ref="321" Component="#Ref-131" Culture="Default" Path="Text" Data="Total(Mb)" />
    <Item186 Ref="322" Component="#Ref-131" Culture="Default" Path="Weight" Data="5.85000244140625" />
    <Item187 Ref="323" Component="#Ref-120" Culture="Default" Path="Weight" Data="1" />
    <Item188 Ref="324" Component="#Ref-11" Culture="Default" Path="Weight" Data="1" />
    <Item189 Ref="325" Component="#Ref-130" Culture="Default" Path="Weight" Data="1" />
    <Item190 Ref="326" Component="#Ref-30" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item191 Ref="327" Component="#Ref-30" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item192 Ref="328" Component="#Ref-30" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item193 Ref="329" Component="#Ref-30" Culture="Default" Path="Text" Data="Información de consumo de voz itinerante" />
    <Item194 Ref="330" Component="#Ref-30" Culture="en" Path="Text" Data="Roaming voice consumption information" />
    <Item195 Ref="331" Component="#Ref-30" Culture="pt" Path="Text" Data="Informações de consumo de voz em roaming" />
    <Item196 Ref="332" Component="#Ref-8" Culture="Default" Path="HeightF" Data="30" />
    <Item197 Ref="333" Component="#Ref-28" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item198 Ref="334" Component="#Ref-28" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item199 Ref="335" Component="#Ref-28" Culture="Default" Path="SizeF" Data="487.339966,23.0000038" />
    <Item200 Ref="336" Component="#Ref-28" Culture="Default" Path="Text" Data="AMDM" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="Plan" ValueMember="plan_id" DisplayMember="plan_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

	-- Reporte de consumos de datos locales
	EXEC [dbo].[METADATA_REPORT] @amdmReportConsumption, N'AMDM_Report_Consupmtion_Local_Data', 13,	
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report1" ScriptsSource="using DevExpress.XtraReports;&#xD;&#xA;&#xD;&#xA;private void Report1_ParametersRequestBeforeShow(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e) {&#xD;&#xA;&#x9;XtraReport report=sender as XtraReport;&#xD;&#xA;      //Muestra la fecha un año antes de la fecha actual&#xD;&#xA;      report.Parameters[0].Value = DateTime.Today.AddYears(-1);&#xD;&#xA;      //Muestra la fecha actual&#xD;&#xA;      report.Parameters[1].Value = DateTime.Today;&#xD;&#xA;}&#xD;&#xA;" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="Data" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" ValueInfo="2000-01-01" Name="start" Type="#Ref-2" />
    <Item2 Ref="4" ValueInfo="2018-07-30" Name="end" Type="#Ref-2" />
    <Item3 Ref="7" ValueSourceSettings="#Ref-5" ValueInfo="0" Name="plan" Type="#Ref-6" />
  </Parameters>
  <Bands>
    <Item1 Ref="8" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="9" ControlType="DetailBand" Name="Detail" KeepTogether="true">
      <Controls>
        <Item1 Ref="10" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="11" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="12" ControlType="XRTableCell" Name="tableCell5" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="13" EventName="BeforePrint" PropertyName="Text" Expression="[DEVICE_NAME]" />
                  </ExpressionBindings>
                  <StylePriority Ref="14" UseForeColor="false" />
                </Item1>
                <Item2 Ref="15" ControlType="XRTableCell" Name="tableCell6" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="16" EventName="BeforePrint" PropertyName="Text" Expression="[USER]" />
                  </ExpressionBindings>
                  <StylePriority Ref="17" UseForeColor="false" />
                </Item2>
                <Item3 Ref="18" ControlType="XRTableCell" Name="tableCell7" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[PLAN_NAME]" />
                  </ExpressionBindings>
                  <StylePriority Ref="20" UseForeColor="false" />
                </Item3>
                <Item4 Ref="21" ControlType="XRTableCell" Name="tableCell8" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="22" EventName="BeforePrint" PropertyName="Text" Expression="[TOTAL]" />
                  </ExpressionBindings>
                  <StylePriority Ref="23" UseForeColor="false" />
                </Item4>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="25" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="26" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="27" ControlType="XRLine" Name="line2" ForeColor="255,204,204,204">
          <StylePriority Ref="28" UseForeColor="false" />
        </Item1>
        <Item2 Ref="29" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item3 Ref="30" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_descripcion">
          <StylePriority Ref="31" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="32" ControlType="XRLabel" Name="titleReport" Multiline="true" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item4>
        <Item5 Ref="34" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="35" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
        <Item6 Ref="36" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="37" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="38" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="39" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="40" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="41" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="42" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="43" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="44" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="45" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="46" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="48" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="49" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="50" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="2">
      <Controls>
        <Item1 Ref="51" ControlType="XRLabel" Name="label18" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="52" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[CUTOFF_DATE]" />
          </ExpressionBindings>
          <StylePriority Ref="53" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="54" ControlType="XRLabel" Name="label17" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_fechalimite" />
        <Item3 Ref="55" ControlType="XRLabel" Name="label16" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="56" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_DATA_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="57" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="58" ControlType="XRLabel" Name="label15" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_limitedatoslocal">
          <StylePriority Ref="59" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="60" ControlType="XRLabel" Name="label14" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="61" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_ROAMING_DATA_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="62" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="63" ControlType="XRLabel" Name="label13" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_limitedatositinerante">
          <StylePriority Ref="64" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="65" ControlType="XRLabel" Name="label12" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="66" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_VOICE_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="67" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="68" ControlType="XRLabel" Name="label11" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_limitevozlocal">
          <StylePriority Ref="69" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="70" ControlType="XRLabel" Name="label10" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="71" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[CURRENCY]" />
          </ExpressionBindings>
          <StylePriority Ref="72" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="73" ControlType="XRLabel" Name="label9" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_moneda">
          <StylePriority Ref="74" UseFont="false" UseForeColor="false" />
        </Item10>
        <Item11 Ref="75" ControlType="XRLabel" Name="label8" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="76" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_ROAMING_VOICE_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="77" UseFont="false" UseForeColor="false" />
        </Item11>
        <Item12 Ref="78" ControlType="XRLabel" Name="label7" Multiline="true" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_limitevozitinerante">
          <StylePriority Ref="79" UseFont="false" UseForeColor="false" />
        </Item12>
        <Item13 Ref="80" ControlType="XRLabel" Name="label6" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="81" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[NAME]" />
          </ExpressionBindings>
          <StylePriority Ref="82" UseFont="false" UseForeColor="false" />
        </Item13>
        <Item14 Ref="83" ControlType="XRLabel" Name="label5" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_plan">
          <StylePriority Ref="84" UseFont="false" UseForeColor="false" />
        </Item14>
        <Item15 Ref="85" ControlType="XRLabel" Name="label4" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="86" EventName="BeforePrint" PropertyName="Text" Expression="[EndDate].[DATE]" />
          </ExpressionBindings>
          <StylePriority Ref="87" UseFont="false" UseForeColor="false" />
        </Item15>
        <Item16 Ref="88" ControlType="XRLabel" Name="label3" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_final">
          <StylePriority Ref="89" UseFont="false" UseForeColor="false" />
        </Item16>
        <Item17 Ref="90" ControlType="XRLabel" Name="label2" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="91" EventName="BeforePrint" PropertyName="Text" Expression="[Parameters].[start]" />
          </ExpressionBindings>
          <StylePriority Ref="92" UseFont="false" UseForeColor="false" UsePadding="false" />
        </Item17>
        <Item18 Ref="93" ControlType="XRLabel" Name="label1" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_inicio">
          <StylePriority Ref="94" UseFont="false" UseForeColor="false" />
        </Item18>
      </Controls>
    </Item6>
    <Item7 Ref="95" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="1">
      <Controls>
        <Item1 Ref="96" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="97">
            <DataContainer Ref="98" DataMember="DataGraph" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="99" Name="Series 1" ArgumentDataMember="DEVICE_NAME" ValueDataMembersSerializable="TOTAL" Tag_type="System.String" Tag="Reports_Consumption" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="100" TypeNameSerializable="XYDiagram">
              <AxisX Ref="101" VisibleInPanesSerializable="-1" />
              <AxisY Ref="102" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="103" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="104">
                  <ConnectorLineStyle Ref="105" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="106" />
            <OptionsPrint Ref="107" ImageFormat="Metafile" />
          </Chart>
        </Item1>
        <Item2 Ref="108" ControlType="XRLabel" Name="label19" TextAlignment="MiddleCenter" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_10dispositivos">
          <StylePriority Ref="109" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="110" ControlType="XRShape" Name="shape1" FillColor="255,224,224,224" ForeColor="Transparent" BorderColor="Transparent" Borders="None" BorderWidth="0">
          <Shape Ref="111" ShapeName="Rectangle" />
          <StylePriority Ref="112" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" />
        </Item3>
      </Controls>
    </Item7>
    <Item8 Ref="113" ControlType="GroupHeaderBand" Name="GroupHeader3" KeepTogether="true">
      <Controls>
        <Item1 Ref="114" ControlType="XRShape" Name="shape2" FillColor="255,224,224,224" ForeColor="Transparent" BorderColor="Transparent" Borders="None" BorderWidth="0">
          <Shape Ref="115" ShapeName="Rectangle" />
          <StylePriority Ref="116" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" />
        </Item1>
        <Item2 Ref="117" ControlType="XRLabel" Name="label20" TextAlignment="MiddleCenter" StyleName="texto" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_devicesList">
          <StylePriority Ref="118" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="119" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="120" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="121" ControlType="XRTableCell" Name="tableCell1" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_dispositivo" />
                <Item2 Ref="122" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_usuario" />
                <Item3 Ref="123" ControlType="XRTableCell" Name="tableCell3" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_plan" />
                <Item4 Ref="124" ControlType="XRTableCell" Name="tableCell4" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_total" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="125" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item3>
      </Controls>
    </Item8>
    <Item9 Ref="126" ControlType="GroupFooterBand" Name="GroupFooter1">
      <Controls>
        <Item1 Ref="127" ControlType="XRTable" Name="table3">
          <Rows>
            <Item1 Ref="128" ControlType="XRTableRow" Name="tableRow3">
              <Cells>
                <Item1 Ref="129" ControlType="XRTableCell" Name="tableCell9" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Local_Data_total" />
                <Item2 Ref="130" ControlType="XRTableCell" Name="tableCell11" Padding="2,2,0,0,100">
                  <ExpressionBindings>
                    <Item1 Ref="131" EventName="BeforePrint" PropertyName="Text" Expression="[SumTotal].[TOTAL]" />
                  </ExpressionBindings>
                </Item2>
              </Cells>
            </Item1>
          </Rows>
        </Item1>
      </Controls>
    </Item9>
  </Bands>
  <Scripts Ref="132" OnParametersRequestBeforeShow="Report1_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="133" Name="texto" BorderStyle="Inset" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,192,192" StringFormat="Near;Near;0;None;Character;Default" />
    <Item2 Ref="134" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 12pt, style=Bold, charSet=0" ForeColor="White" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <LocalizationItems>
    <Item1 Ref="135" Component="#Ref-25" Culture="Default" Path="HeightF" Data="40" />
    <Item2 Ref="136" Component="#Ref-96" Culture="Default" Path="LocationFloat" Data="20.6666183,54.73148" />
    <Item3 Ref="137" Component="#Ref-96" Culture="Default" Path="SizeF" Data="731.458252,230.124985" />
    <Item4 Ref="138" Component="#Ref-36" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item5 Ref="139" Component="#Ref-36" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item6 Ref="140" Component="#Ref-36" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item7 Ref="141" Component="#Ref-34" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item8 Ref="142" Component="#Ref-34" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item9 Ref="143" Component="#Ref-34" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item10 Ref="144" Component="#Ref-34" Culture="Default" Path="Text" Data="Fecha:" />
    <Item11 Ref="145" Component="#Ref-34" Culture="en" Path="Text" Data="Date:" />
    <Item12 Ref="146" Component="#Ref-34" Culture="pt" Path="Text" Data="Data:" />
    <Item13 Ref="147" Component="#Ref-9" Culture="Default" Path="HeightF" Data="25" />
    <Item14 Ref="148" Component="#Ref-4" Culture="Default" Path="Description" Data="Fecha final" />
    <Item15 Ref="149" Component="#Ref-50" Culture="Default" Path="HeightF" Data="175.750046" />
    <Item16 Ref="150" Component="#Ref-95" Culture="Default" Path="HeightF" Data="314.583344" />
    <Item17 Ref="151" Component="#Ref-113" Culture="Default" Path="HeightF" Data="70.8333359" />
    <Item18 Ref="152" Component="#Ref-29" Culture="Default" Path="LocationFloat" Data="522.470032,0" />
    <Item19 Ref="153" Component="#Ref-29" Culture="Default" Path="SizeF" Data="257.529968,79.99999" />
    <Item20 Ref="154" Component="#Ref-93" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item21 Ref="155" Component="#Ref-93" Culture="Default" Path="LocationFloat" Data="20.6666546,27.36113" />
    <Item22 Ref="156" Component="#Ref-93" Culture="Default" Path="SizeF" Data="148.958328,23" />
    <Item23 Ref="157" Component="#Ref-93" Culture="Default" Path="Text" Data="Fecha de inicio:" />
    <Item24 Ref="158" Component="#Ref-93" Culture="en" Path="Text" Data="Start date:" />
    <Item25 Ref="159" Component="#Ref-93" Culture="pt" Path="Text" Data="Data de início:" />
    <Item26 Ref="160" Component="#Ref-70" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item27 Ref="161" Component="#Ref-70" Culture="Default" Path="LocationFloat" Data="169.624969,119.361107" />
    <Item28 Ref="162" Component="#Ref-70" Culture="Default" Path="SizeF" Data="204.171234,23.0000076" />
    <Item29 Ref="163" Component="#Ref-70" Culture="Default" Path="Text" Data="label10" />
    <Item30 Ref="164" Component="#Ref-68" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item31 Ref="165" Component="#Ref-68" Culture="Default" Path="LocationFloat" Data="20.6666183,73.36112" />
    <Item32 Ref="166" Component="#Ref-68" Culture="Default" Path="SizeF" Data="148.958344,23.0000076" />
    <Item33 Ref="167" Component="#Ref-68" Culture="Default" Path="Text" Data="Límite de voz local:" />
    <Item34 Ref="168" Component="#Ref-68" Culture="en" Path="Text" Data="Local voice limit:" />
    <Item35 Ref="169" Component="#Ref-68" Culture="pt" Path="Text" Data="Limite de voz local:" />
    <Item36 Ref="170" Component="#Ref-65" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item37 Ref="171" Component="#Ref-65" Culture="Default" Path="LocationFloat" Data="169.624969,73.36112" />
    <Item38 Ref="172" Component="#Ref-65" Culture="Default" Path="SizeF" Data="204.171234,22.9999924" />
    <Item39 Ref="173" Component="#Ref-65" Culture="Default" Path="Text" Data="label12" />
    <Item40 Ref="174" Component="#Ref-63" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item41 Ref="175" Component="#Ref-63" Culture="Default" Path="LocationFloat" Data="401.2732,73.36112" />
    <Item42 Ref="176" Component="#Ref-63" Culture="Default" Path="SizeF" Data="193.75,23.0000076" />
    <Item43 Ref="177" Component="#Ref-63" Culture="Default" Path="Text" Data="Límite de datos itinerante:" />
    <Item44 Ref="178" Component="#Ref-63" Culture="en" Path="Text" Data="Roaming Data Limit:" />
    <Item45 Ref="179" Component="#Ref-63" Culture="pt" Path="Text" Data="Limite de dados de roaming:" />
    <Item46 Ref="180" Component="#Ref-60" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item47 Ref="181" Component="#Ref-60" Culture="Default" Path="LocationFloat" Data="595.8982,73.36112" />
    <Item48 Ref="182" Component="#Ref-60" Culture="Default" Path="SizeF" Data="181.069519,22.9999924" />
    <Item49 Ref="183" Component="#Ref-60" Culture="Default" Path="Text" Data="label14" />
    <Item50 Ref="184" Component="#Ref-58" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item51 Ref="185" Component="#Ref-58" Culture="Default" Path="LocationFloat" Data="20.6666183,96.36113" />
    <Item52 Ref="186" Component="#Ref-58" Culture="Default" Path="SizeF" Data="148.958344,23.0000076" />
    <Item53 Ref="187" Component="#Ref-58" Culture="Default" Path="Text" Data="Límite de datos local:" />
    <Item54 Ref="188" Component="#Ref-58" Culture="en" Path="Text" Data="Local data limit:" />
    <Item55 Ref="189" Component="#Ref-58" Culture="pt" Path="Text" Data="Limite de dados locais:" />
    <Item56 Ref="190" Component="#Ref-55" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item57 Ref="191" Component="#Ref-55" Culture="Default" Path="LocationFloat" Data="169.624969,96.36113" />
    <Item58 Ref="192" Component="#Ref-55" Culture="Default" Path="SizeF" Data="204.171234,23" />
    <Item59 Ref="193" Component="#Ref-55" Culture="Default" Path="Text" Data="label16" />
    <Item60 Ref="194" Component="#Ref-54" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item61 Ref="195" Component="#Ref-54" Culture="Default" Path="LocationFloat" Data="401.2732,96.36113" />
    <Item62 Ref="196" Component="#Ref-54" Culture="Default" Path="SizeF" Data="193.75,23.0000076" />
    <Item63 Ref="197" Component="#Ref-54" Culture="Default" Path="Text" Data="Fecha límite del plan:" />
    <Item64 Ref="198" Component="#Ref-54" Culture="en" Path="Text" Data="Plan Deadline:" />
    <Item65 Ref="199" Component="#Ref-54" Culture="pt" Path="Text" Data="Prazo do plano:" />
    <Item66 Ref="200" Component="#Ref-51" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item67 Ref="201" Component="#Ref-51" Culture="Default" Path="LocationFloat" Data="595.8982,96.36113" />
    <Item68 Ref="202" Component="#Ref-51" Culture="Default" Path="SizeF" Data="181.069519,23" />
    <Item69 Ref="203" Component="#Ref-51" Culture="Default" Path="Text" Data="label18" />
    <Item70 Ref="204" Component="#Ref-108" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item71 Ref="205" Component="#Ref-108" Culture="Default" Path="LocationFloat" Data="136.4998,6" />
    <Item72 Ref="206" Component="#Ref-108" Culture="Default" Path="SizeF" Data="515.625,36.0000076" />
    <Item73 Ref="207" Component="#Ref-108" Culture="Default" Path="Text" Data="Los 10 dispositivos con el mayor nivel de consumo (Mb)" />
    <Item74 Ref="208" Component="#Ref-108" Culture="en" Path="Text" Data="The 10 devices with the highest level of consumption (Mb)" />
    <Item75 Ref="209" Component="#Ref-108" Culture="pt" Path="Text" Data="Os 10 dispositivos com maior nível de consumo (Mb)" />
    <Item76 Ref="210" Component="#Ref-90" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item77 Ref="211" Component="#Ref-90" Culture="Default" Path="LocationFloat" Data="169.624969,27.36113" />
    <Item78 Ref="212" Component="#Ref-90" Culture="Default" Path="SizeF" Data="204.171234,23" />
    <Item79 Ref="213" Component="#Ref-90" Culture="Default" Path="Text" Data="label2" />
    <Item80 Ref="214" Component="#Ref-90" Culture="Default" Path="TextFormatString" Data="{0:d/MM/yyyy}" />
    <Item81 Ref="215" Component="#Ref-117" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item82 Ref="216" Component="#Ref-117" Culture="Default" Path="LocationFloat" Data="0,10.0000181" />
    <Item83 Ref="217" Component="#Ref-117" Culture="Default" Path="SizeF" Data="776.9677,23.0000057" />
    <Item84 Ref="218" Component="#Ref-117" Culture="Default" Path="Text" Data="Lista de dispositivos:" />
    <Item85 Ref="219" Component="#Ref-117" Culture="en" Path="Text" Data="Device list:" />
    <Item86 Ref="220" Component="#Ref-88" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item87 Ref="221" Component="#Ref-88" Culture="Default" Path="LocationFloat" Data="401.2732,27.36113" />
    <Item88 Ref="222" Component="#Ref-88" Culture="Default" Path="SizeF" Data="100,23" />
    <Item89 Ref="223" Component="#Ref-88" Culture="Default" Path="Text" Data="Fecha final:" />
    <Item90 Ref="224" Component="#Ref-88" Culture="en" Path="Text" Data="Final date:" />
    <Item91 Ref="225" Component="#Ref-88" Culture="pt" Path="Text" Data="Data final:" />
    <Item92 Ref="226" Component="#Ref-85" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item93 Ref="227" Component="#Ref-85" Culture="Default" Path="LocationFloat" Data="595.8982,27.36106" />
    <Item94 Ref="228" Component="#Ref-85" Culture="Default" Path="SizeF" Data="181.069519,23.0000019" />
    <Item95 Ref="229" Component="#Ref-85" Culture="Default" Path="Text" Data="label4" />
    <Item96 Ref="230" Component="#Ref-85" Culture="Default" Path="TextFormatString" Data="{0:d/MM/yyyy}" />
    <Item97 Ref="231" Component="#Ref-83" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item98 Ref="232" Component="#Ref-83" Culture="Default" Path="LocationFloat" Data="20.6666183,50.3610725" />
    <Item99 Ref="233" Component="#Ref-83" Culture="Default" Path="SizeF" Data="148.958328,23" />
    <Item100 Ref="234" Component="#Ref-83" Culture="Default" Path="Text" Data="Plan:" />
    <Item101 Ref="235" Component="#Ref-83" Culture="pt" Path="Text" Data="Plano:" />
    <Item102 Ref="236" Component="#Ref-80" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item103 Ref="237" Component="#Ref-80" Culture="Default" Path="LocationFloat" Data="169.624969,50.3610725" />
    <Item104 Ref="238" Component="#Ref-80" Culture="Default" Path="SizeF" Data="204.171234,22.9999962" />
    <Item105 Ref="239" Component="#Ref-80" Culture="Default" Path="Text" Data="label6" />
    <Item106 Ref="240" Component="#Ref-78" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item107 Ref="241" Component="#Ref-78" Culture="Default" Path="LocationFloat" Data="401.2732,50.3610725" />
    <Item108 Ref="242" Component="#Ref-78" Culture="Default" Path="SizeF" Data="193.75,23" />
    <Item109 Ref="243" Component="#Ref-78" Culture="Default" Path="Text" Data="Límite de voz itinerante:" />
    <Item110 Ref="244" Component="#Ref-78" Culture="en" Path="Text" Data="Roaming Voice Limit:" />
    <Item111 Ref="245" Component="#Ref-78" Culture="pt" Path="Text" Data="Limite de voz em roaming:" />
    <Item112 Ref="246" Component="#Ref-75" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item113 Ref="247" Component="#Ref-75" Culture="Default" Path="LocationFloat" Data="595.8982,50.3610725" />
    <Item114 Ref="248" Component="#Ref-75" Culture="Default" Path="SizeF" Data="181.069519,22.9999962" />
    <Item115 Ref="249" Component="#Ref-75" Culture="Default" Path="Text" Data="label8" />
    <Item116 Ref="250" Component="#Ref-73" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item117 Ref="251" Component="#Ref-73" Culture="Default" Path="LocationFloat" Data="20.6666183,119.361107" />
    <Item118 Ref="252" Component="#Ref-73" Culture="Default" Path="SizeF" Data="71.875,23" />
    <Item119 Ref="253" Component="#Ref-73" Culture="Default" Path="Text" Data="Moneda:" />
    <Item120 Ref="254" Component="#Ref-73" Culture="en" Path="Text" Data="Currency:" />
    <Item121 Ref="255" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="0,108.060211" />
    <Item122 Ref="256" Component="#Ref-27" Culture="Default" Path="SizeF" Data="780.092651,2.314815" />
    <Item123 Ref="257" Component="#Ref-42" Culture="Default" Path="LocationFloat" Data="3.124984,20.6249866" />
    <Item124 Ref="258" Component="#Ref-42" Culture="Default" Path="SizeF" Data="773.8428,14.6666851" />
    <Item125 Ref="259" Component="#Ref-41" Culture="Default" Path="LocationFloat" Data="699.416565,35.29167" />
    <Item126 Ref="260" Component="#Ref-41" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item127 Ref="261" Component="#Ref-48" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item128 Ref="262" Component="#Ref-48" Culture="Default" Path="LocationFloat" Data="166.083221,44.14584" />
    <Item129 Ref="263" Component="#Ref-48" Culture="Default" Path="SizeF" Data="533.3334,23" />
    <Item130 Ref="264" Component="#Ref-48" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ?" />
    <Item131 Ref="265" Component="#Ref-48" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ?" />
    <Item132 Ref="266" Component="#Ref-48" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ?" />
    <Item133 Ref="267" Component="#Ref-38" Culture="Default" Path="HeightF" Data="76.0000153" />
    <Item134 Ref="268" Component="#Ref-44" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item135 Ref="269" Component="#Ref-44" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item136 Ref="270" Component="#Ref-44" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item137 Ref="271" Component="#Ref-46" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item138 Ref="272" Component="#Ref-46" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item139 Ref="273" Component="#Ref-46" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item140 Ref="274" Component="#Ref-46" Culture="Default" Path="Text" Data="Página" />
    <Item141 Ref="275" Component="#Ref-46" Culture="en" Path="Text" Data="Page" />
    <Item142 Ref="276" Component="#Ref-7" Culture="Default" Path="Description" Data="Plan" />
    <Item143 Ref="277" Component="#Ref-39" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item144 Ref="278" Component="#Ref-39" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item145 Ref="279" Component="#Ref-39" Culture="Default" Path="SizeF" Data="781,20.6249866" />
    <Item146 Ref="280" Component="#Ref-39" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente tambiín está en sus manos." />
    <Item147 Ref="281" Component="#Ref-39" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item148 Ref="282" Component="#Ref-39" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item149 Ref="283" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item150 Ref="284" Component="#Ref-1" Culture="Default" Path="DisplayName" Data="ConsumptionLocalData" />
    <Item151 Ref="285" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item152 Ref="286" Component="#Ref-1" Culture="Default" Path="Margins" Data="39, 30, 30, 40" />
    <Item153 Ref="287" Component="#Ref-26" Culture="Default" Path="HeightF" Data="110.375023" />
    <Item154 Ref="288" Component="#Ref-110" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item155 Ref="289" Component="#Ref-110" Culture="Default" Path="SizeF" Data="780,4" />
    <Item156 Ref="290" Component="#Ref-114" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item157 Ref="291" Component="#Ref-114" Culture="Default" Path="SizeF" Data="776.9677,4" />
    <Item158 Ref="292" Component="#Ref-3" Culture="Default" Path="Description" Data="Fecha Inicial" />
    <Item159 Ref="293" Component="#Ref-119" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item160 Ref="294" Component="#Ref-119" Culture="Default" Path="LocationFloat" Data="0,45.8333321" />
    <Item161 Ref="295" Component="#Ref-119" Culture="Default" Path="SizeF" Data="779.999939,24.9999962" />
    <Item162 Ref="296" Component="#Ref-10" Culture="Default" Path="Font" Data="Tahoma, 9pt, charSet=0" />
    <Item163 Ref="297" Component="#Ref-10" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item164 Ref="298" Component="#Ref-10" Culture="Default" Path="SizeF" Data="780.000061,25" />
    <Item165 Ref="299" Component="#Ref-127" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item166 Ref="300" Component="#Ref-127" Culture="Default" Path="SizeF" Data="780.999939,25" />
    <Item167 Ref="301" Component="#Ref-121" Culture="Default" Path="Text" Data="Dispositivo" />
    <Item168 Ref="302" Component="#Ref-121" Culture="en" Path="Text" Data="Device" />
    <Item169 Ref="303" Component="#Ref-121" Culture="Default" Path="Weight" Data="1" />
    <Item170 Ref="304" Component="#Ref-130" Culture="Default" Path="Text" Data="tableCell11" />
    <Item171 Ref="305" Component="#Ref-130" Culture="Default" Path="Weight" Data="0.75288053114492048" />
    <Item172 Ref="306" Component="#Ref-122" Culture="Default" Path="Text" Data="Usuario" />
    <Item173 Ref="307" Component="#Ref-122" Culture="en" Path="Text" Data="User" />
    <Item174 Ref="308" Component="#Ref-122" Culture="pt" Path="Text" Data="Do utilizador" />
    <Item175 Ref="309" Component="#Ref-122" Culture="Default" Path="Weight" Data="1" />
    <Item176 Ref="310" Component="#Ref-123" Culture="Default" Path="Text" Data="Plan" />
    <Item177 Ref="311" Component="#Ref-123" Culture="pt" Path="Text" Data="Plano" />
    <Item178 Ref="312" Component="#Ref-123" Culture="Default" Path="Weight" Data="1" />
    <Item179 Ref="313" Component="#Ref-124" Culture="Default" Path="Text" Data="Total(Mb)" />
    <Item180 Ref="314" Component="#Ref-124" Culture="Default" Path="Weight" Data="1" />
    <Item181 Ref="315" Component="#Ref-12" Culture="Default" Path="Text" Data="Column1" />
    <Item182 Ref="316" Component="#Ref-12" Culture="Default" Path="Weight" Data="1" />
    <Item183 Ref="317" Component="#Ref-15" Culture="Default" Path="Text" Data="Column2" />
    <Item184 Ref="318" Component="#Ref-15" Culture="Default" Path="Weight" Data="1" />
    <Item185 Ref="319" Component="#Ref-18" Culture="Default" Path="Text" Data="Column3" />
    <Item186 Ref="320" Component="#Ref-18" Culture="Default" Path="Weight" Data="1" />
    <Item187 Ref="321" Component="#Ref-21" Culture="Default" Path="Text" Data="tableCell8" />
    <Item188 Ref="322" Component="#Ref-21" Culture="Default" Path="Weight" Data="1" />
    <Item189 Ref="323" Component="#Ref-129" Culture="Default" Path="Text" Data="Total(Mb)" />
    <Item190 Ref="324" Component="#Ref-129" Culture="Default" Path="Weight" Data="2.247119364599464" />
    <Item191 Ref="325" Component="#Ref-120" Culture="Default" Path="Weight" Data="1" />
    <Item192 Ref="326" Component="#Ref-11" Culture="Default" Path="Weight" Data="1" />
    <Item193 Ref="327" Component="#Ref-128" Culture="Default" Path="Weight" Data="1" />
    <Item194 Ref="328" Component="#Ref-32" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item195 Ref="329" Component="#Ref-32" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item196 Ref="330" Component="#Ref-32" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item197 Ref="331" Component="#Ref-32" Culture="Default" Path="Text" Data="Información de consumo de datos locales" />
    <Item198 Ref="332" Component="#Ref-32" Culture="en" Path="Text" Data="Local data consumption information" />
    <Item199 Ref="333" Component="#Ref-32" Culture="pt" Path="Text" Data="Informações de consumo de dados locais" />
    <Item200 Ref="334" Component="#Ref-8" Culture="Default" Path="HeightF" Data="30" />
    <Item201 Ref="335" Component="#Ref-30" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item202 Ref="336" Component="#Ref-30" Culture="Default" Path="LocationFloat" Data="20.666647,41.3333244" />
    <Item203 Ref="337" Component="#Ref-30" Culture="Default" Path="SizeF" Data="487.340027,23.0000038" />
    <Item204 Ref="338" Component="#Ref-30" Culture="Default" Path="Text" Data="AMDM" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="PLAN" ValueMember="plan_id" DisplayMember="plan_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

	-- Reporte de consumo de datos roaming
	EXEC [dbo].[METADATA_REPORT] @amdmReportConsumption, N'AMDM_Report_Consupmtion_Roaming_Data', 14,
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report1" ScriptsSource="using DevExpress.XtraReports;&#xD;&#xA;&#xD;&#xA;private void Report1_ParametersRequestBeforeShow(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e) {&#xD;&#xA;&#x9;XtraReport report=sender as XtraReport;&#xD;&#xA;      //Muestra la fecha un año antes de la fecha actual&#xD;&#xA;      report.Parameters[0].Value = DateTime.Today.AddYears(-1);&#xD;&#xA;      //Muestra la fecha actual&#xD;&#xA;      report.Parameters[1].Value = DateTime.Today;&#xD;&#xA;}&#xD;&#xA;" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="Data" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" ValueInfo="2000-01-01" Name="start" Type="#Ref-2" />
    <Item2 Ref="4" ValueInfo="2018-07-31" Name="end" Type="#Ref-2" />
    <Item3 Ref="7" ValueSourceSettings="#Ref-5" ValueInfo="0" Name="plan" Type="#Ref-6" />
  </Parameters>
  <Bands>
    <Item1 Ref="8" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="9" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="10" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="11" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="12" ControlType="XRTableCell" Name="tableCell5" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="13" EventName="BeforePrint" PropertyName="Text" Expression="[DEVICE_NAME]" />
                  </ExpressionBindings>
                  <StylePriority Ref="14" UseForeColor="false" />
                </Item1>
                <Item2 Ref="15" ControlType="XRTableCell" Name="tableCell6" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="16" EventName="BeforePrint" PropertyName="Text" Expression="[USER]" />
                  </ExpressionBindings>
                  <StylePriority Ref="17" UseForeColor="false" />
                </Item2>
                <Item3 Ref="18" ControlType="XRTableCell" Name="tableCell7" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[PLAN_NAME]" />
                  </ExpressionBindings>
                  <StylePriority Ref="20" UseForeColor="false" />
                </Item3>
                <Item4 Ref="21" ControlType="XRTableCell" Name="tableCell8" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="22" EventName="BeforePrint" PropertyName="Text" Expression="[TOTAL]" />
                  </ExpressionBindings>
                  <StylePriority Ref="23" UseForeColor="false" />
                </Item4>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="25" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="26" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="27" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="28" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_descripcion">
          <StylePriority Ref="29" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="30" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="31" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="32" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="34" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="35" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="36" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="37" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="39" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="40" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="41" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="42" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="43" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="44" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="45" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="46" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="48" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="2">
      <Controls>
        <Item1 Ref="49" ControlType="XRShape" Name="shape1" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="50" ShapeName="Rectangle" />
          <StylePriority Ref="51" UseForeColor="false" />
        </Item1>
        <Item2 Ref="52" ControlType="XRLabel" Name="label17" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_fechalimite">
          <StylePriority Ref="53" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="54" ControlType="XRLabel" Name="label15" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_limitedatoslocal">
          <StylePriority Ref="55" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="56" ControlType="XRLabel" Name="label13" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_limitedatositinerante">
          <StylePriority Ref="57" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="58" ControlType="XRLabel" Name="label11" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_limitevozlocal">
          <StylePriority Ref="59" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="60" ControlType="XRLabel" Name="label9" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_moneda">
          <StylePriority Ref="61" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="62" ControlType="XRLabel" Name="label7" Multiline="true" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_limitevozitinerante">
          <StylePriority Ref="63" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="64" ControlType="XRLabel" Name="label5" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_plan">
          <StylePriority Ref="65" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="66" ControlType="XRLabel" Name="label3" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_final">
          <StylePriority Ref="67" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="68" ControlType="XRLabel" Name="label1" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_inicio">
          <StylePriority Ref="69" UseFont="false" UseForeColor="false" />
        </Item10>
        <Item11 Ref="70" ControlType="XRLabel" Name="label2" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="71" EventName="BeforePrint" PropertyName="Text" Expression="?start" />
          </ExpressionBindings>
          <StylePriority Ref="72" UseFont="false" UseForeColor="false" />
        </Item11>
        <Item12 Ref="73" ControlType="XRLabel" Name="label4" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="74" EventName="BeforePrint" PropertyName="Text" Expression="?end" />
          </ExpressionBindings>
          <StylePriority Ref="75" UseForeColor="false" />
        </Item12>
        <Item13 Ref="76" ControlType="XRLabel" Name="label6" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="77" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[NAME]" />
          </ExpressionBindings>
          <StylePriority Ref="78" UseForeColor="false" />
        </Item13>
        <Item14 Ref="79" ControlType="XRLabel" Name="label8" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="80" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_ROAMING_VOICE_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="81" UseForeColor="false" />
        </Item14>
        <Item15 Ref="82" ControlType="XRLabel" Name="label10" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="83" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_VOICE_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="84" UseForeColor="false" />
        </Item15>
        <Item16 Ref="85" ControlType="XRLabel" Name="label12" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="86" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_ROAMING_DATA_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="87" UseForeColor="false" />
        </Item16>
        <Item17 Ref="88" ControlType="XRLabel" Name="label14" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="89" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_DATA_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="90" UseForeColor="false" />
        </Item17>
        <Item18 Ref="91" ControlType="XRLabel" Name="label16" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="92" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[CUTOFF_DATE]" />
          </ExpressionBindings>
          <StylePriority Ref="93" UseForeColor="false" />
        </Item18>
        <Item19 Ref="94" ControlType="XRLabel" Name="label18" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="95" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[CURRENCY]" />
          </ExpressionBindings>
          <StylePriority Ref="96" UseForeColor="false" />
        </Item19>
      </Controls>
      <StylePriority Ref="97" UseFont="false" />
    </Item6>
    <Item7 Ref="98" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="1">
      <Controls>
        <Item1 Ref="99" ControlType="XRShape" Name="shape2" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="100" ShapeName="Rectangle" />
          <StylePriority Ref="101" UseForeColor="false" />
        </Item1>
        <Item2 Ref="102" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="103">
            <DataContainer Ref="104" DataMember="DataGraph" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="105" Name="Series 1" ArgumentDataMember="DEVICE_NAME" ValueDataMembersSerializable="TOTAL" Tag_type="System.String" Tag="Reports_Consumption" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="106" TypeNameSerializable="XYDiagram">
              <AxisX Ref="107" VisibleInPanesSerializable="-1" />
              <AxisY Ref="108" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="109" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="110">
                  <ConnectorLineStyle Ref="111" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="112" />
            <OptionsPrint Ref="113" ImageFormat="Metafile" />
          </Chart>
        </Item2>
        <Item3 Ref="114" ControlType="XRLabel" Name="label19" TextAlignment="MiddleCenter" StyleName="controlStyle2" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_10dispositivos">
          <StylePriority Ref="115" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item3>
      </Controls>
    </Item7>
    <Item8 Ref="116" ControlType="GroupHeaderBand" Name="GroupHeader3">
      <Controls>
        <Item1 Ref="117" ControlType="XRShape" Name="shape3" FillColor="255,204,204,204" ForeColor="Transparent">
          <Shape Ref="118" ShapeName="Rectangle" />
          <StylePriority Ref="119" UseForeColor="false" />
        </Item1>
        <Item2 Ref="120" ControlType="XRLabel" Name="label20" TextAlignment="MiddleCenter" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_devicesList">
          <StylePriority Ref="121" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="122" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="123" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="124" ControlType="XRTableCell" Name="tableCell1" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_dispositivo" />
                <Item2 Ref="125" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_usuario" />
                <Item3 Ref="126" ControlType="XRTableCell" Name="tableCell3" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_plan" />
                <Item4 Ref="127" ControlType="XRTableCell" Name="tableCell4" Tag_type="System.String" Tag="Report_Consupmtion_Roaming_Data_total" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="128" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item3>
      </Controls>
    </Item8>
    <Item9 Ref="129" ControlType="GroupFooterBand" Name="GroupFooter1">
      <Controls>
        <Item1 Ref="130" ControlType="XRTable" Name="table3">
          <Rows>
            <Item1 Ref="131" ControlType="XRTableRow" Name="tableRow3">
              <Cells>
                <Item1 Ref="132" ControlType="XRTableCell" Name="tableCell9" Padding="2,2,0,0,100" />
                <Item2 Ref="133" ControlType="XRTableCell" Name="tableCell11" Padding="2,2,0,0,100">
                  <ExpressionBindings>
                    <Item1 Ref="134" EventName="BeforePrint" PropertyName="Text" Expression="[SumTotal].[TOTAL]" />
                  </ExpressionBindings>
                </Item2>
              </Cells>
            </Item1>
          </Rows>
        </Item1>
      </Controls>
    </Item9>
  </Bands>
  <Scripts Ref="135" OnParametersRequestBeforeShow="Report1_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="136" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,192,192" StringFormat="Near;Near;0;None;Character;Default" />
    <Item2 Ref="137" Name="controlStyle2" BorderStyle="Inset" Font="Tahoma, 12pt, style=Bold, charSet=0" ForeColor="White" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <LocalizationItems>
    <Item1 Ref="138" Component="#Ref-25" Culture="Default" Path="HeightF" Data="40.0416679" />
    <Item2 Ref="139" Component="#Ref-102" Culture="Default" Path="LocationFloat" Data="18.7916431,41.75002" />
    <Item3 Ref="140" Component="#Ref-102" Culture="Default" Path="SizeF" Data="731.458252,230.124985" />
    <Item4 Ref="141" Component="#Ref-34" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item5 Ref="142" Component="#Ref-34" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item6 Ref="143" Component="#Ref-34" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item7 Ref="144" Component="#Ref-32" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item8 Ref="145" Component="#Ref-32" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item9 Ref="146" Component="#Ref-32" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item10 Ref="147" Component="#Ref-32" Culture="Default" Path="Text" Data="Fecha:" />
    <Item11 Ref="148" Component="#Ref-32" Culture="en" Path="Text" Data="Date:" />
    <Item12 Ref="149" Component="#Ref-32" Culture="pt" Path="Text" Data="Data:" />
    <Item13 Ref="150" Component="#Ref-9" Culture="Default" Path="HeightF" Data="25" />
    <Item14 Ref="151" Component="#Ref-4" Culture="Default" Path="Description" Data="Fecha Final" />
    <Item15 Ref="152" Component="#Ref-48" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item16 Ref="153" Component="#Ref-48" Culture="Default" Path="HeightF" Data="178.125" />
    <Item17 Ref="154" Component="#Ref-98" Culture="Default" Path="HeightF" Data="299.652771" />
    <Item18 Ref="155" Component="#Ref-116" Culture="Default" Path="HeightF" Data="59.375" />
    <Item19 Ref="156" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item20 Ref="157" Component="#Ref-27" Culture="Default" Path="SizeF" Data="253.571716,79.99999" />
    <Item21 Ref="158" Component="#Ref-68" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item22 Ref="159" Component="#Ref-68" Culture="Default" Path="LocationFloat" Data="20.6666546,20.4166851" />
    <Item23 Ref="160" Component="#Ref-68" Culture="Default" Path="SizeF" Data="148.958328,23" />
    <Item24 Ref="161" Component="#Ref-68" Culture="Default" Path="Text" Data="Fecha de inicio:" />
    <Item25 Ref="162" Component="#Ref-68" Culture="en" Path="Text" Data="Start date:" />
    <Item26 Ref="163" Component="#Ref-68" Culture="pt" Path="Text" Data="Data de início:" />
    <Item27 Ref="164" Component="#Ref-82" Culture="Default" Path="LocationFloat" Data="169.624969,66.41667" />
    <Item28 Ref="165" Component="#Ref-82" Culture="Default" Path="SizeF" Data="220.375092,23" />
    <Item29 Ref="166" Component="#Ref-82" Culture="Default" Path="Text" Data="label10" />
    <Item30 Ref="167" Component="#Ref-58" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item31 Ref="168" Component="#Ref-58" Culture="Default" Path="LocationFloat" Data="20.6666546,66.41667" />
    <Item32 Ref="169" Component="#Ref-58" Culture="Default" Path="SizeF" Data="148.958344,23.0000076" />
    <Item33 Ref="170" Component="#Ref-58" Culture="Default" Path="Text" Data="Límite de voz local:" />
    <Item34 Ref="171" Component="#Ref-58" Culture="en" Path="Text" Data="Local voice limit:" />
    <Item35 Ref="172" Component="#Ref-58" Culture="pt" Path="Text" Data="Limite de voz local:" />
    <Item36 Ref="173" Component="#Ref-85" Culture="Default" Path="LocationFloat" Data="596.2267,66.41667" />
    <Item37 Ref="174" Component="#Ref-85" Culture="Default" Path="SizeF" Data="183.773254,23" />
    <Item38 Ref="175" Component="#Ref-85" Culture="Default" Path="Text" Data="label12" />
    <Item39 Ref="176" Component="#Ref-56" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item40 Ref="177" Component="#Ref-56" Culture="Default" Path="LocationFloat" Data="402.4768,66.41667" />
    <Item41 Ref="178" Component="#Ref-56" Culture="Default" Path="SizeF" Data="193.75,23.0000076" />
    <Item42 Ref="179" Component="#Ref-56" Culture="Default" Path="Text" Data="Límite de datos itinerante:" />
    <Item43 Ref="180" Component="#Ref-56" Culture="en" Path="Text" Data="Roaming Data Limit:" />
    <Item44 Ref="181" Component="#Ref-56" Culture="pt" Path="Text" Data="Limite de dados de roaming:" />
    <Item45 Ref="182" Component="#Ref-88" Culture="Default" Path="LocationFloat" Data="169.624969,89.41669" />
    <Item46 Ref="183" Component="#Ref-88" Culture="Default" Path="SizeF" Data="220.375092,23" />
    <Item47 Ref="184" Component="#Ref-88" Culture="Default" Path="Text" Data="label14" />
    <Item48 Ref="185" Component="#Ref-54" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item49 Ref="186" Component="#Ref-54" Culture="Default" Path="LocationFloat" Data="20.6666546,89.41669" />
    <Item50 Ref="187" Component="#Ref-54" Culture="Default" Path="SizeF" Data="148.958344,23.0000076" />
    <Item51 Ref="188" Component="#Ref-54" Culture="Default" Path="Text" Data="Límite de datos local:" />
    <Item52 Ref="189" Component="#Ref-54" Culture="en" Path="Text" Data="Local data limit:" />
    <Item53 Ref="190" Component="#Ref-54" Culture="pt" Path="Text" Data="Limite de dados locais:" />
    <Item54 Ref="191" Component="#Ref-91" Culture="Default" Path="LocationFloat" Data="596.226563,89.41669" />
    <Item55 Ref="192" Component="#Ref-91" Culture="Default" Path="SizeF" Data="183.773376,23" />
    <Item56 Ref="193" Component="#Ref-91" Culture="Default" Path="Text" Data="label16" />
    <Item57 Ref="194" Component="#Ref-52" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item58 Ref="195" Component="#Ref-52" Culture="Default" Path="LocationFloat" Data="402.476654,89.41669" />
    <Item59 Ref="196" Component="#Ref-52" Culture="Default" Path="SizeF" Data="193.75,23.0000076" />
    <Item60 Ref="197" Component="#Ref-52" Culture="Default" Path="Text" Data="Fecha límite del plan:" />
    <Item61 Ref="198" Component="#Ref-52" Culture="en" Path="Text" Data="Plan Deadline:" />
    <Item62 Ref="199" Component="#Ref-52" Culture="pt" Path="Text" Data="Prazo do plano:" />
    <Item63 Ref="200" Component="#Ref-94" Culture="Default" Path="LocationFloat" Data="169.624969,112.4167" />
    <Item64 Ref="201" Component="#Ref-94" Culture="Default" Path="SizeF" Data="220.375092,23" />
    <Item65 Ref="202" Component="#Ref-94" Culture="Default" Path="Text" Data="label18" />
    <Item66 Ref="203" Component="#Ref-114" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item67 Ref="204" Component="#Ref-114" Culture="Default" Path="LocationFloat" Data="3.53212745E-05,10.0000181" />
    <Item68 Ref="205" Component="#Ref-114" Culture="Default" Path="SizeF" Data="779.9999,23" />
    <Item69 Ref="206" Component="#Ref-114" Culture="Default" Path="Text" Data="Los 10 dispositivos con el mayor nivel de consumo (Mb)" />
    <Item70 Ref="207" Component="#Ref-114" Culture="en" Path="Text" Data="The 10 devices with the highest level of consumption (Mb)" />
    <Item71 Ref="208" Component="#Ref-114" Culture="pt" Path="Text" Data="Os 10 dispositivos com maior nível de consumo (Mb)" />
    <Item72 Ref="209" Component="#Ref-70" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item73 Ref="210" Component="#Ref-70" Culture="Default" Path="LocationFloat" Data="169.624969,20.4166851" />
    <Item74 Ref="211" Component="#Ref-70" Culture="Default" Path="SizeF" Data="220.375092,23.0000019" />
    <Item75 Ref="212" Component="#Ref-70" Culture="Default" Path="Text" Data="label2" />
    <Item76 Ref="213" Component="#Ref-120" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item77 Ref="214" Component="#Ref-120" Culture="Default" Path="LocationFloat" Data="0,10.0000181" />
    <Item78 Ref="215" Component="#Ref-120" Culture="Default" Path="SizeF" Data="776.0416,23.0000038" />
    <Item79 Ref="216" Component="#Ref-120" Culture="Default" Path="Text" Data="Lista de dispositivos:" />
    <Item80 Ref="217" Component="#Ref-120" Culture="en" Path="Text" Data="Device list:" />
    <Item81 Ref="218" Component="#Ref-66" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item82 Ref="219" Component="#Ref-66" Culture="Default" Path="LocationFloat" Data="402.4768,20.4166851" />
    <Item83 Ref="220" Component="#Ref-66" Culture="Default" Path="SizeF" Data="100,23" />
    <Item84 Ref="221" Component="#Ref-66" Culture="Default" Path="Text" Data="Fecha final:" />
    <Item85 Ref="222" Component="#Ref-66" Culture="en" Path="Text" Data="Final date:" />
    <Item86 Ref="223" Component="#Ref-66" Culture="pt" Path="Text" Data="Data final:" />
    <Item87 Ref="224" Component="#Ref-73" Culture="Default" Path="LocationFloat" Data="596.2265,20.4166489" />
    <Item88 Ref="225" Component="#Ref-73" Culture="Default" Path="SizeF" Data="183.773438,23" />
    <Item89 Ref="226" Component="#Ref-73" Culture="Default" Path="Text" Data="label4" />
    <Item90 Ref="227" Component="#Ref-64" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item91 Ref="228" Component="#Ref-64" Culture="Default" Path="LocationFloat" Data="20.6666546,43.41666" />
    <Item92 Ref="229" Component="#Ref-64" Culture="Default" Path="SizeF" Data="148.958328,23" />
    <Item93 Ref="230" Component="#Ref-64" Culture="Default" Path="Text" Data="Plan:" />
    <Item94 Ref="231" Component="#Ref-64" Culture="pt" Path="Text" Data="Plano:" />
    <Item95 Ref="232" Component="#Ref-76" Culture="Default" Path="LocationFloat" Data="169.624969,43.41666" />
    <Item96 Ref="233" Component="#Ref-76" Culture="Default" Path="SizeF" Data="220.375092,22.9999962" />
    <Item97 Ref="234" Component="#Ref-76" Culture="Default" Path="Text" Data="label6" />
    <Item98 Ref="235" Component="#Ref-62" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item99 Ref="236" Component="#Ref-62" Culture="Default" Path="LocationFloat" Data="402.4768,43.41666" />
    <Item100 Ref="237" Component="#Ref-62" Culture="Default" Path="SizeF" Data="193.75,23" />
    <Item101 Ref="238" Component="#Ref-62" Culture="Default" Path="Text" Data="Límite de voz itinerante:" />
    <Item102 Ref="239" Component="#Ref-62" Culture="en" Path="Text" Data="Roaming Voice Limit:" />
    <Item103 Ref="240" Component="#Ref-62" Culture="pt" Path="Text" Data="Limite de voz em roaming:" />
    <Item104 Ref="241" Component="#Ref-79" Culture="Default" Path="LocationFloat" Data="596.2267,43.41666" />
    <Item105 Ref="242" Component="#Ref-79" Culture="Default" Path="SizeF" Data="183.773376,22.9999962" />
    <Item106 Ref="243" Component="#Ref-79" Culture="Default" Path="Text" Data="label8" />
    <Item107 Ref="244" Component="#Ref-60" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item108 Ref="245" Component="#Ref-60" Culture="Default" Path="LocationFloat" Data="20.6666546,112.4167" />
    <Item109 Ref="246" Component="#Ref-60" Culture="Default" Path="SizeF" Data="71.875,23" />
    <Item110 Ref="247" Component="#Ref-60" Culture="Default" Path="Text" Data="Moneda:" />
    <Item111 Ref="248" Component="#Ref-60" Culture="en" Path="Text" Data="Currency:" />
    <Item112 Ref="249" Component="#Ref-60" Culture="pt" Path="Text" Data="Moeda:" />
    <Item113 Ref="250" Component="#Ref-40" Culture="Default" Path="LocationFloat" Data="3.12497616,20.6249866" />
    <Item114 Ref="251" Component="#Ref-40" Culture="Default" Path="SizeF" Data="773.88,21.67" />
    <Item115 Ref="252" Component="#Ref-39" Culture="Default" Path="LocationFloat" Data="700.416565,35.2916756" />
    <Item116 Ref="253" Component="#Ref-39" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item117 Ref="254" Component="#Ref-46" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item118 Ref="255" Component="#Ref-46" Culture="Default" Path="LocationFloat" Data="143.935074,44.14584" />
    <Item119 Ref="256" Component="#Ref-46" Culture="Default" Path="SizeF" Data="556.4815,23.0000038" />
    <Item120 Ref="257" Component="#Ref-46" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ?" />
    <Item121 Ref="258" Component="#Ref-46" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ?" />
    <Item122 Ref="259" Component="#Ref-46" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ?" />
    <Item123 Ref="260" Component="#Ref-36" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item124 Ref="261" Component="#Ref-42" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item125 Ref="262" Component="#Ref-42" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item126 Ref="263" Component="#Ref-42" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item127 Ref="264" Component="#Ref-44" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item128 Ref="265" Component="#Ref-44" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item129 Ref="266" Component="#Ref-44" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item130 Ref="267" Component="#Ref-44" Culture="Default" Path="Text" Data="Página" />
    <Item131 Ref="268" Component="#Ref-44" Culture="en" Path="Text" Data="Page" />
    <Item132 Ref="269" Component="#Ref-7" Culture="Default" Path="Description" Data="Plan" />
    <Item133 Ref="270" Component="#Ref-37" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item134 Ref="271" Component="#Ref-37" Culture="Default" Path="LocationFloat" Data="3.125,0" />
    <Item135 Ref="272" Component="#Ref-37" Culture="Default" Path="SizeF" Data="776.8752,20.6249866" />
    <Item136 Ref="273" Component="#Ref-37" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente tambiín está en sus manos." />
    <Item137 Ref="274" Component="#Ref-37" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item138 Ref="275" Component="#Ref-37" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item139 Ref="276" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item140 Ref="277" Component="#Ref-1" Culture="Default" Path="DisplayName" Data="ConsumptionRoamingData" />
    <Item141 Ref="278" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item142 Ref="279" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item143 Ref="280" Component="#Ref-26" Culture="Default" Path="HeightF" Data="110.375" />
    <Item144 Ref="281" Component="#Ref-49" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item145 Ref="282" Component="#Ref-49" Culture="Default" Path="SizeF" Data="780,4" />
    <Item146 Ref="283" Component="#Ref-99" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item147 Ref="284" Component="#Ref-99" Culture="Default" Path="SizeF" Data="780,4" />
    <Item148 Ref="285" Component="#Ref-117" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item149 Ref="286" Component="#Ref-117" Culture="Default" Path="SizeF" Data="780,4" />
    <Item150 Ref="287" Component="#Ref-3" Culture="Default" Path="Description" Data="Fecha Inicio" />
    <Item151 Ref="288" Component="#Ref-122" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item152 Ref="289" Component="#Ref-122" Culture="Default" Path="LocationFloat" Data="3.17891427E-05,33.0000229" />
    <Item153 Ref="290" Component="#Ref-122" Culture="Default" Path="SizeF" Data="779.999939,24.9999962" />
    <Item154 Ref="291" Component="#Ref-10" Culture="Default" Path="Font" Data="Tahoma, 9pt, charSet=0" />
    <Item155 Ref="292" Component="#Ref-10" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item156 Ref="293" Component="#Ref-10" Culture="Default" Path="SizeF" Data="780.000061,25" />
    <Item157 Ref="294" Component="#Ref-130" Culture="Default" Path="LocationFloat" Data="3.125,0" />
    <Item158 Ref="295" Component="#Ref-130" Culture="Default" Path="SizeF" Data="776.875244,25" />
    <Item159 Ref="296" Component="#Ref-124" Culture="Default" Path="Text" Data="Dispositivo" />
    <Item160 Ref="297" Component="#Ref-124" Culture="en" Path="Text" Data="Device" />
    <Item161 Ref="298" Component="#Ref-124" Culture="Default" Path="Weight" Data="1" />
    <Item162 Ref="299" Component="#Ref-133" Culture="Default" Path="Text" Data="tableCell11" />
    <Item163 Ref="300" Component="#Ref-133" Culture="Default" Path="Weight" Data="0.75301748337290642" />
    <Item164 Ref="301" Component="#Ref-125" Culture="Default" Path="Text" Data="Usuario" />
    <Item165 Ref="302" Component="#Ref-125" Culture="en" Path="Text" Data="User" />
    <Item166 Ref="303" Component="#Ref-125" Culture="pt" Path="Text" Data="Do utilizador" />
    <Item167 Ref="304" Component="#Ref-125" Culture="Default" Path="Weight" Data="1" />
    <Item168 Ref="305" Component="#Ref-126" Culture="Default" Path="Text" Data="Plan" />
    <Item169 Ref="306" Component="#Ref-126" Culture="pt" Path="Text" Data="Plano" />
    <Item170 Ref="307" Component="#Ref-126" Culture="Default" Path="Weight" Data="1" />
    <Item171 Ref="308" Component="#Ref-127" Culture="Default" Path="Text" Data="Total(Mb)" />
    <Item172 Ref="309" Component="#Ref-127" Culture="Default" Path="Weight" Data="1" />
    <Item173 Ref="310" Component="#Ref-12" Culture="Default" Path="Text" Data="Column1" />
    <Item174 Ref="311" Component="#Ref-12" Culture="Default" Path="Weight" Data="1" />
    <Item175 Ref="312" Component="#Ref-15" Culture="Default" Path="Text" Data="Column2" />
    <Item176 Ref="313" Component="#Ref-15" Culture="Default" Path="Weight" Data="1" />
    <Item177 Ref="314" Component="#Ref-18" Culture="Default" Path="Text" Data="Column3" />
    <Item178 Ref="315" Component="#Ref-18" Culture="Default" Path="Weight" Data="1" />
    <Item179 Ref="316" Component="#Ref-21" Culture="Default" Path="Text" Data="tableCell8" />
    <Item180 Ref="317" Component="#Ref-21" Culture="Default" Path="Weight" Data="1" />
    <Item181 Ref="318" Component="#Ref-132" Culture="Default" Path="Text" Data="Total(Mb)" />
    <Item182 Ref="319" Component="#Ref-132" Culture="Default" Path="Weight" Data="2.2469829880168022" />
    <Item183 Ref="320" Component="#Ref-123" Culture="Default" Path="Weight" Data="1" />
    <Item184 Ref="321" Component="#Ref-11" Culture="Default" Path="Weight" Data="1" />
    <Item185 Ref="322" Component="#Ref-131" Culture="Default" Path="Weight" Data="1" />
    <Item186 Ref="323" Component="#Ref-30" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item187 Ref="324" Component="#Ref-30" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item188 Ref="325" Component="#Ref-30" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item189 Ref="326" Component="#Ref-30" Culture="Default" Path="Text" Data="Información de consumo de datos móviles" />
    <Item190 Ref="327" Component="#Ref-30" Culture="en" Path="Text" Data="Mobile data consumption information" />
    <Item191 Ref="328" Component="#Ref-30" Culture="pt" Path="Text" Data="Informações de consumo de dados móveis" />
    <Item192 Ref="329" Component="#Ref-8" Culture="Default" Path="HeightF" Data="30" />
    <Item193 Ref="330" Component="#Ref-28" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item194 Ref="331" Component="#Ref-28" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item195 Ref="332" Component="#Ref-28" Culture="Default" Path="SizeF" Data="487.340057,23.0000038" />
    <Item196 Ref="333" Component="#Ref-28" Culture="Default" Path="Text" Data="AMDM" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="Plan" ValueMember="plan_id" DisplayMember="plan_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

	-- Reporte resumido de consumos
	EXEC [dbo].[METADATA_REPORT] @amdmReportConsumption, N'AMDM_Report_Consupmtion_Summary', 15,
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="ConsumptionSummary" ScriptsSource="using DevExpress.XtraReports;&#xD;&#xA;&#xD;&#xA;private void ConsumptionSummary_ParametersRequestBeforeShow(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e) {&#xD;&#xA;&#x9;XtraReport report=sender as XtraReport;&#xD;&#xA;      //Muestra la fecha un año antes de la fecha actual&#xD;&#xA;      report.Parameters[0].Value = DateTime.Today.AddYears(-1);&#xD;&#xA;      //Muestra la fecha actual&#xD;&#xA;      report.Parameters[1].Value = DateTime.Today;&#xD;&#xA;}&#xD;&#xA;" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="Data" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" ValueInfo="2000-01-01" Name="start" Type="#Ref-2" />
    <Item2 Ref="4" ValueInfo="2018-07-31" Name="end" Type="#Ref-2" />
    <Item3 Ref="7" ValueSourceSettings="#Ref-5" ValueInfo="0" Name="plan" Type="#Ref-6" />
    <Item4 Ref="9" ValueSourceSettings="#Ref-8" ValueInfo="0" Name="currency" Type="#Ref-6" />
  </Parameters>
  <Bands>
    <Item1 Ref="10" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="11" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="12" ControlType="XRTable" Name="table2" TextAlignment="MiddleLeft" ForeColor="255,85,85,85" Padding="5,0,0,0,100" BorderColor="255,204,204,204" Borders="Left, Right, Bottom">
          <Rows>
            <Item1 Ref="13" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="14" ControlType="XRTableCell" Name="tableCell5" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="15" EventName="BeforePrint" PropertyName="Text" Expression="[DEVICE_NAME]" />
                  </ExpressionBindings>
                  <StylePriority Ref="16" UseForeColor="false" />
                </Item1>
                <Item2 Ref="17" ControlType="XRTableCell" Name="tableCell6" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="18" EventName="BeforePrint" PropertyName="Text" Expression="[USER]" />
                  </ExpressionBindings>
                  <StylePriority Ref="19" UseForeColor="false" />
                </Item2>
                <Item3 Ref="20" ControlType="XRTableCell" Name="tableCell7" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="21" EventName="BeforePrint" PropertyName="Text" Expression="[PLAN_NAME]" />
                  </ExpressionBindings>
                  <StylePriority Ref="22" UseForeColor="false" />
                </Item3>
                <Item4 Ref="23" ControlType="XRTableCell" Name="tableCell8" ForeColor="255,102,102,102">
                  <ExpressionBindings>
                    <Item1 Ref="24" EventName="BeforePrint" PropertyName="Text" Expression="[TOTAL]" />
                  </ExpressionBindings>
                  <StylePriority Ref="25" UseForeColor="false" />
                </Item4>
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="27" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="28" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="29" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="30" ControlType="XRLabel" Name="typeReport" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_descripcion">
          <StylePriority Ref="31" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="32" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="34" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_date">
          <StylePriority Ref="35" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="36" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="37" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="38" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="39" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="40" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="41" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="42" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="43" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="44" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="45" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="46" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="48" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="49" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
      <StylePriority Ref="50" UseForeColor="false" />
    </Item5>
    <Item6 Ref="51" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="2">
      <Controls>
        <Item1 Ref="52" ControlType="XRShape" Name="shape1" ForeColor="255,204,204,204">
          <StylePriority Ref="53" UseForeColor="false" />
        </Item1>
        <Item2 Ref="54" ControlType="XRLabel" Name="label17" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_fechalimite">
          <StylePriority Ref="55" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="56" ControlType="XRLabel" Name="label15" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_limitedatoslocal">
          <StylePriority Ref="57" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="58" ControlType="XRLabel" Name="label13" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_limitedatositinerante">
          <StylePriority Ref="59" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="60" ControlType="XRLabel" Name="label11" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_limitevozlocal">
          <StylePriority Ref="61" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="62" ControlType="XRLabel" Name="label9" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_moneda">
          <StylePriority Ref="63" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="64" ControlType="XRLabel" Name="label7" Multiline="true" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_limitevozitinerante">
          <StylePriority Ref="65" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="66" ControlType="XRLabel" Name="label5" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_plan">
          <StylePriority Ref="67" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="68" ControlType="XRLabel" Name="label3" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_final">
          <StylePriority Ref="69" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="70" ControlType="XRLabel" Name="label1" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_inicio">
          <StylePriority Ref="71" UseFont="false" UseForeColor="false" />
        </Item10>
        <Item11 Ref="72" ControlType="XRLabel" Name="label2" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="73" EventName="BeforePrint" PropertyName="Text" Expression="?start" />
          </ExpressionBindings>
          <StylePriority Ref="74" UseFont="false" UseForeColor="false" />
        </Item11>
        <Item12 Ref="75" ControlType="XRLabel" Name="label4" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="76" EventName="BeforePrint" PropertyName="Text" Expression="?end" />
          </ExpressionBindings>
          <StylePriority Ref="77" UseForeColor="false" />
        </Item12>
        <Item13 Ref="78" ControlType="XRLabel" Name="label6" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="79" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[NAME]" />
          </ExpressionBindings>
          <StylePriority Ref="80" UseFont="false" UseForeColor="false" />
        </Item13>
        <Item14 Ref="81" ControlType="XRLabel" Name="label8" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="82" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_ROAMING_VOICE_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="83" UseForeColor="false" />
        </Item14>
        <Item15 Ref="84" ControlType="XRLabel" Name="label10" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="85" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_VOICE_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="86" UseFont="false" UseForeColor="false" />
        </Item15>
        <Item16 Ref="87" ControlType="XRLabel" Name="label12" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="88" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_ROAMING_DATA_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="89" UseForeColor="false" />
        </Item16>
        <Item17 Ref="90" ControlType="XRLabel" Name="label14" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="91" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[LIMIT_DATA_SIZE]" />
          </ExpressionBindings>
          <StylePriority Ref="92" UseFont="false" UseForeColor="false" />
        </Item17>
        <Item18 Ref="93" ControlType="XRLabel" Name="label16" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="94" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[CUTOFF_DATE]" />
          </ExpressionBindings>
          <StylePriority Ref="95" UseForeColor="false" />
        </Item18>
        <Item19 Ref="96" ControlType="XRLabel" Name="label18" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="97" EventName="BeforePrint" PropertyName="Text" Expression="[DetailPlan].[CURRENCY]" />
          </ExpressionBindings>
          <StylePriority Ref="98" UseForeColor="false" />
        </Item19>
      </Controls>
      <StylePriority Ref="99" UseFont="false" />
    </Item6>
    <Item7 Ref="100" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="1">
      <Controls>
        <Item1 Ref="101" ControlType="XRLabel" Name="label19" TextAlignment="MiddleCenter" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_10dispositivos">
          <StylePriority Ref="102" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="103" ControlType="XRShape" Name="shape2" ForeColor="255,204,204,204">
          <StylePriority Ref="104" UseForeColor="false" />
        </Item2>
        <Item3 Ref="105" ControlType="XRChart" Name="chart1" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="106">
            <AutoSeriesCheckedInLegendStates>
              <Item1 Ref="107" AutoSeriesName="Series 3" CheckState="true" />
              <Item2 Ref="108" AutoSeriesName="Series 2" CheckState="true" />
              <Item3 Ref="109" AutoSeriesName="Series 1" CheckState="true" />
              <Item4 Ref="110" AutoSeriesName="COP" CheckState="true" />
            </AutoSeriesCheckedInLegendStates>
            <DataContainer Ref="111" DataMember="DataGraph" SeriesDataMember="CURRENCY" ValidateDataMembers="true">
              <SeriesTemplate Ref="112" SeriesDataMember="CURRENCY" ArgumentDataMember="DEVICE_NAME" ColorDataMember="CURRENCY" ValueDataMembersSerializable="TOTAL">
                <View Ref="113" TypeNameSerializable="StackedBarSeriesView" />
              </SeriesTemplate>
            </DataContainer>
            <Diagram Ref="114" Rotated="true" TypeNameSerializable="XYDiagram">
              <AxisX Ref="115" VisibleInPanesSerializable="-1">
                <Label Ref="116" MaxWidth="200" MaxLineCount="3" />
              </AxisX>
              <AxisY Ref="117" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="118" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="119">
                  <ConnectorLineStyle Ref="120" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="121" />
            <OptionsPrint Ref="122" ImageFormat="Metafile" />
          </Chart>
        </Item3>
      </Controls>
    </Item7>
    <Item8 Ref="123" ControlType="GroupHeaderBand" Name="GroupHeader3">
      <Controls>
        <Item1 Ref="124" ControlType="XRShape" Name="shape3" ForeColor="255,204,204,204">
          <StylePriority Ref="125" UseForeColor="false" />
        </Item1>
        <Item2 Ref="126" ControlType="XRLabel" Name="label20" TextAlignment="MiddleCenter" StyleName="controlStyle1" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Consupmtion_Summary_devicesList">
          <StylePriority Ref="127" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="128" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="129" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="130" ControlType="XRTableCell" Name="tableCell1" Tag_type="System.String" Tag="Report_Consupmtion_Summary_dispositivo" />
                <Item2 Ref="131" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Consupmtion_Summary_usuario" />
                <Item3 Ref="132" ControlType="XRTableCell" Name="tableCell3" Tag_type="System.String" Tag="Report_Consupmtion_Summary_plan" />
                <Item4 Ref="133" ControlType="XRTableCell" Name="tableCell4" Tag_type="System.String" Tag="Report_Consupmtion_Summary_total" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="134" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item3>
      </Controls>
    </Item8>
  </Bands>
  <Scripts Ref="135" OnParametersRequestBeforeShow="ConsumptionSummary_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="136" Name="controlStyle1" BorderStyle="Inset" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,192,192" StringFormat="Near;Near;0;None;Character;Default" />
  </StyleSheet>
  <LocalizationItems>
    <Item1 Ref="137" Component="#Ref-27" Culture="Default" Path="HeightF" Data="40" />
    <Item2 Ref="138" Component="#Ref-105" Culture="Default" Path="LocationFloat" Data="0,25.4509926" />
    <Item3 Ref="139" Component="#Ref-105" Culture="Default" Path="SizeF" Data="779.999939,312.280579" />
    <Item4 Ref="140" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item5 Ref="141" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item6 Ref="142" Component="#Ref-1" Culture="Default" Path="Margins" Data="34, 30, 30, 40" />
    <Item7 Ref="143" Component="#Ref-9" Culture="Default" Path="Description" Data="Moneda" />
    <Item8 Ref="144" Component="#Ref-36" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item9 Ref="145" Component="#Ref-36" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item10 Ref="146" Component="#Ref-36" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item11 Ref="147" Component="#Ref-34" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item12 Ref="148" Component="#Ref-34" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item13 Ref="149" Component="#Ref-34" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item14 Ref="150" Component="#Ref-34" Culture="Default" Path="Text" Data="Fecha:" />
    <Item15 Ref="151" Component="#Ref-34" Culture="en" Path="Text" Data="Date:" />
    <Item16 Ref="152" Component="#Ref-34" Culture="pt" Path="Text" Data="Data:" />
    <Item17 Ref="153" Component="#Ref-11" Culture="Default" Path="HeightF" Data="25" />
    <Item18 Ref="154" Component="#Ref-4" Culture="Default" Path="Description" Data="Fecha Final" />
    <Item19 Ref="155" Component="#Ref-51" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item20 Ref="156" Component="#Ref-51" Culture="Default" Path="HeightF" Data="162.962952" />
    <Item21 Ref="157" Component="#Ref-100" Culture="Default" Path="HeightF" Data="352.7778" />
    <Item22 Ref="158" Component="#Ref-123" Culture="Default" Path="HeightF" Data="58.00002" />
    <Item23 Ref="159" Component="#Ref-29" Culture="Default" Path="LocationFloat" Data="522.470032,0" />
    <Item24 Ref="160" Component="#Ref-29" Culture="Default" Path="SizeF" Data="257.5301,79.99999" />
    <Item25 Ref="161" Component="#Ref-70" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item26 Ref="162" Component="#Ref-70" Culture="Default" Path="LocationFloat" Data="20.6666546,22.7315" />
    <Item27 Ref="163" Component="#Ref-70" Culture="Default" Path="SizeF" Data="148.958328,23" />
    <Item28 Ref="164" Component="#Ref-70" Culture="Default" Path="Text" Data="Fecha de inicio:" />
    <Item29 Ref="165" Component="#Ref-70" Culture="en" Path="Text" Data="Start date:" />
    <Item30 Ref="166" Component="#Ref-70" Culture="pt" Path="Text" Data="Data de início:" />
    <Item31 Ref="167" Component="#Ref-84" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item32 Ref="168" Component="#Ref-84" Culture="Default" Path="LocationFloat" Data="169.624969,68.73149" />
    <Item33 Ref="169" Component="#Ref-84" Culture="Default" Path="SizeF" Data="190.4401,23" />
    <Item34 Ref="170" Component="#Ref-84" Culture="Default" Path="Text" Data="label10" />
    <Item35 Ref="171" Component="#Ref-60" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item36 Ref="172" Component="#Ref-60" Culture="Default" Path="LocationFloat" Data="20.6666546,68.73149" />
    <Item37 Ref="173" Component="#Ref-60" Culture="Default" Path="SizeF" Data="148.958344,23.0000076" />
    <Item38 Ref="174" Component="#Ref-60" Culture="Default" Path="Text" Data="Límite de voz local:" />
    <Item39 Ref="175" Component="#Ref-60" Culture="en" Path="Text" Data="Local voice limit:" />
    <Item40 Ref="176" Component="#Ref-60" Culture="pt" Path="Text" Data="Limite de voz local:" />
    <Item41 Ref="177" Component="#Ref-87" Culture="Default" Path="LocationFloat" Data="578.7237,68.73152" />
    <Item42 Ref="178" Component="#Ref-87" Culture="Default" Path="SizeF" Data="201.276123,23" />
    <Item43 Ref="179" Component="#Ref-87" Culture="Default" Path="Text" Data="label12" />
    <Item44 Ref="180" Component="#Ref-58" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item45 Ref="181" Component="#Ref-58" Culture="Default" Path="LocationFloat" Data="384.973633,68.73152" />
    <Item46 Ref="182" Component="#Ref-58" Culture="Default" Path="SizeF" Data="193.75,23.0000076" />
    <Item47 Ref="183" Component="#Ref-58" Culture="Default" Path="Text" Data="Límite de datos itinerante:" />
    <Item48 Ref="184" Component="#Ref-58" Culture="en" Path="Text" Data="Roaming Data Limit:" />
    <Item49 Ref="185" Component="#Ref-58" Culture="pt" Path="Text" Data="Limite de dados de roaming:" />
    <Item50 Ref="186" Component="#Ref-90" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item51 Ref="187" Component="#Ref-90" Culture="Default" Path="LocationFloat" Data="169.624969,91.7315" />
    <Item52 Ref="188" Component="#Ref-90" Culture="Default" Path="SizeF" Data="190.4401,23" />
    <Item53 Ref="189" Component="#Ref-90" Culture="Default" Path="Text" Data="label14" />
    <Item54 Ref="190" Component="#Ref-56" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item55 Ref="191" Component="#Ref-56" Culture="Default" Path="LocationFloat" Data="20.6666546,91.7315" />
    <Item56 Ref="192" Component="#Ref-56" Culture="Default" Path="SizeF" Data="148.958344,23.0000076" />
    <Item57 Ref="193" Component="#Ref-56" Culture="Default" Path="Text" Data="Límite de datos local:" />
    <Item58 Ref="194" Component="#Ref-56" Culture="en" Path="Text" Data="Local data limit:" />
    <Item59 Ref="195" Component="#Ref-56" Culture="pt" Path="Text" Data="Limite de dados locais:" />
    <Item60 Ref="196" Component="#Ref-93" Culture="Default" Path="LocationFloat" Data="578.7237,91.73154" />
    <Item61 Ref="197" Component="#Ref-93" Culture="Default" Path="SizeF" Data="201.276062,23" />
    <Item62 Ref="198" Component="#Ref-93" Culture="Default" Path="Text" Data="label16" />
    <Item63 Ref="199" Component="#Ref-54" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item64 Ref="200" Component="#Ref-54" Culture="Default" Path="LocationFloat" Data="384.973846,91.73154" />
    <Item65 Ref="201" Component="#Ref-54" Culture="Default" Path="SizeF" Data="193.75,23.0000076" />
    <Item66 Ref="202" Component="#Ref-54" Culture="Default" Path="Text" Data="Fecha límite del plan:" />
    <Item67 Ref="203" Component="#Ref-54" Culture="en" Path="Text" Data="Plan Deadline:" />
    <Item68 Ref="204" Component="#Ref-54" Culture="pt" Path="Text" Data="Prazo do plano:" />
    <Item69 Ref="205" Component="#Ref-96" Culture="Default" Path="LocationFloat" Data="169.625015,114.731514" />
    <Item70 Ref="206" Component="#Ref-96" Culture="Default" Path="SizeF" Data="190.440048,22.9999924" />
    <Item71 Ref="207" Component="#Ref-96" Culture="Default" Path="Text" Data="label18" />
    <Item72 Ref="208" Component="#Ref-101" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item73 Ref="209" Component="#Ref-101" Culture="Default" Path="LocationFloat" Data="0,2.4509747" />
    <Item74 Ref="210" Component="#Ref-101" Culture="Default" Path="SizeF" Data="779.999756,23.0000076" />
    <Item75 Ref="211" Component="#Ref-101" Culture="Default" Path="Text" Data=" Los 10 dispositivos con más gastos " />
    <Item76 Ref="212" Component="#Ref-101" Culture="en" Path="Text" Data="The 10 devices with the most expenses" />
    <Item77 Ref="213" Component="#Ref-101" Culture="pt" Path="Text" Data="Os 10 dispositivos com mais gastos" />
    <Item78 Ref="214" Component="#Ref-72" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item79 Ref="215" Component="#Ref-72" Culture="Default" Path="LocationFloat" Data="169.624969,22.7315" />
    <Item80 Ref="216" Component="#Ref-72" Culture="Default" Path="SizeF" Data="190.4401,22.9999981" />
    <Item81 Ref="217" Component="#Ref-72" Culture="Default" Path="Text" Data="label2" />
    <Item82 Ref="218" Component="#Ref-126" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item83 Ref="219" Component="#Ref-126" Culture="Default" Path="LocationFloat" Data="0,2.4509747" />
    <Item84 Ref="220" Component="#Ref-126" Culture="Default" Path="SizeF" Data="779.999756,23.0000076" />
    <Item85 Ref="221" Component="#Ref-126" Culture="Default" Path="Text" Data="Lista de dispositivos:" />
    <Item86 Ref="222" Component="#Ref-126" Culture="en" Path="Text" Data="Device list:" />
    <Item87 Ref="223" Component="#Ref-68" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item88 Ref="224" Component="#Ref-68" Culture="Default" Path="LocationFloat" Data="384.973755,22.7315" />
    <Item89 Ref="225" Component="#Ref-68" Culture="Default" Path="SizeF" Data="100,23" />
    <Item90 Ref="226" Component="#Ref-68" Culture="Default" Path="Text" Data="Fecha final:" />
    <Item91 Ref="227" Component="#Ref-68" Culture="en" Path="Text" Data="Final date:" />
    <Item92 Ref="228" Component="#Ref-68" Culture="pt" Path="Text" Data="Data final:" />
    <Item93 Ref="229" Component="#Ref-75" Culture="Default" Path="LocationFloat" Data="578.7237,22.7315" />
    <Item94 Ref="230" Component="#Ref-75" Culture="Default" Path="SizeF" Data="201.276184,23" />
    <Item95 Ref="231" Component="#Ref-75" Culture="Default" Path="Text" Data="label4" />
    <Item96 Ref="232" Component="#Ref-66" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item97 Ref="233" Component="#Ref-66" Culture="Default" Path="LocationFloat" Data="20.6666546,45.7314758" />
    <Item98 Ref="234" Component="#Ref-66" Culture="Default" Path="SizeF" Data="148.958328,23" />
    <Item99 Ref="235" Component="#Ref-66" Culture="Default" Path="Text" Data="Plan:" />
    <Item100 Ref="236" Component="#Ref-66" Culture="pt" Path="Text" Data="Plano:" />
    <Item101 Ref="237" Component="#Ref-78" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item102 Ref="238" Component="#Ref-78" Culture="Default" Path="LocationFloat" Data="169.624969,45.7314758" />
    <Item103 Ref="239" Component="#Ref-78" Culture="Default" Path="SizeF" Data="190.4401,23" />
    <Item104 Ref="240" Component="#Ref-78" Culture="Default" Path="Text" Data="label6" />
    <Item105 Ref="241" Component="#Ref-64" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item106 Ref="242" Component="#Ref-64" Culture="Default" Path="LocationFloat" Data="384.973755,45.731514" />
    <Item107 Ref="243" Component="#Ref-64" Culture="Default" Path="SizeF" Data="193.75,23" />
    <Item108 Ref="244" Component="#Ref-64" Culture="Default" Path="Text" Data="Límite de voz itinerante:" />
    <Item109 Ref="245" Component="#Ref-64" Culture="en" Path="Text" Data="Roaming Voice Limit:" />
    <Item110 Ref="246" Component="#Ref-64" Culture="pt" Path="Text" Data="Limite de voz em roaming:" />
    <Item111 Ref="247" Component="#Ref-81" Culture="Default" Path="LocationFloat" Data="578.7238,45.731514" />
    <Item112 Ref="248" Component="#Ref-81" Culture="Default" Path="SizeF" Data="201.276,23.0000038" />
    <Item113 Ref="249" Component="#Ref-81" Culture="Default" Path="Text" Data="label8" />
    <Item114 Ref="250" Component="#Ref-62" Culture="Default" Path="Font" Data="Tahoma, 9pt, style=Bold" />
    <Item115 Ref="251" Component="#Ref-62" Culture="Default" Path="LocationFloat" Data="20.6666546,114.731514" />
    <Item116 Ref="252" Component="#Ref-62" Culture="Default" Path="SizeF" Data="71.875,23" />
    <Item117 Ref="253" Component="#Ref-62" Culture="Default" Path="Text" Data="Moneda:" />
    <Item118 Ref="254" Component="#Ref-62" Culture="en" Path="Text" Data="Currency:" />
    <Item119 Ref="255" Component="#Ref-62" Culture="pt" Path="Text" Data="Moeda:" />
    <Item120 Ref="256" Component="#Ref-42" Culture="Default" Path="LocationFloat" Data="3.125,20.6249866" />
    <Item121 Ref="257" Component="#Ref-42" Culture="Default" Path="SizeF" Data="773.88,14.6666851" />
    <Item122 Ref="258" Component="#Ref-41" Culture="Default" Path="LocationFloat" Data="701.4582,35.2916756" />
    <Item123 Ref="259" Component="#Ref-41" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item124 Ref="260" Component="#Ref-48" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item125 Ref="261" Component="#Ref-48" Culture="Default" Path="LocationFloat" Data="141.5045,43.00003" />
    <Item126 Ref="262" Component="#Ref-48" Culture="Default" Path="SizeF" Data="559.953735,23.0000038" />
    <Item127 Ref="263" Component="#Ref-48" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ©" />
    <Item128 Ref="264" Component="#Ref-48" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ©" />
    <Item129 Ref="265" Component="#Ref-48" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ©" />
    <Item130 Ref="266" Component="#Ref-38" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item131 Ref="267" Component="#Ref-44" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item132 Ref="268" Component="#Ref-44" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item133 Ref="269" Component="#Ref-44" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item134 Ref="270" Component="#Ref-46" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item135 Ref="271" Component="#Ref-46" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item136 Ref="272" Component="#Ref-46" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item137 Ref="273" Component="#Ref-46" Culture="Default" Path="Text" Data="Página" />
    <Item138 Ref="274" Component="#Ref-46" Culture="en" Path="Text" Data="Page" />
    <Item139 Ref="275" Component="#Ref-7" Culture="Default" Path="Description" Data="Plan" />
    <Item140 Ref="276" Component="#Ref-39" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item141 Ref="277" Component="#Ref-39" Culture="Default" Path="LocationFloat" Data="3.125,0" />
    <Item142 Ref="278" Component="#Ref-39" Culture="Default" Path="SizeF" Data="776.8752,20.6249866" />
    <Item143 Ref="279" Component="#Ref-39" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item144 Ref="280" Component="#Ref-39" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item145 Ref="281" Component="#Ref-39" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item146 Ref="282" Component="#Ref-28" Culture="Default" Path="HeightF" Data="110.375" />
    <Item147 Ref="283" Component="#Ref-52" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item148 Ref="284" Component="#Ref-52" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item149 Ref="285" Component="#Ref-103" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item150 Ref="286" Component="#Ref-103" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item151 Ref="287" Component="#Ref-124" Culture="Default" Path="LocationFloat" Data="3.53212745E-05,0" />
    <Item152 Ref="288" Component="#Ref-124" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item153 Ref="289" Component="#Ref-3" Culture="Default" Path="Description" Data="Fecha Inicio" />
    <Item154 Ref="290" Component="#Ref-128" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item155 Ref="291" Component="#Ref-128" Culture="Default" Path="LocationFloat" Data="1.04166663,33.0000229" />
    <Item156 Ref="292" Component="#Ref-128" Culture="Default" Path="SizeF" Data="779.999939,24.9999962" />
    <Item157 Ref="293" Component="#Ref-12" Culture="Default" Path="Font" Data="Tahoma, 9pt, charSet=0" />
    <Item158 Ref="294" Component="#Ref-12" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item159 Ref="295" Component="#Ref-12" Culture="Default" Path="SizeF" Data="780.000061,25" />
    <Item160 Ref="296" Component="#Ref-130" Culture="Default" Path="Text" Data="Dispositivo" />
    <Item161 Ref="297" Component="#Ref-130" Culture="en" Path="Text" Data="Device" />
    <Item162 Ref="298" Component="#Ref-130" Culture="Default" Path="Weight" Data="1" />
    <Item163 Ref="299" Component="#Ref-131" Culture="Default" Path="Text" Data="Usuario" />
    <Item164 Ref="300" Component="#Ref-131" Culture="en" Path="Text" Data="User" />
    <Item165 Ref="301" Component="#Ref-131" Culture="pt" Path="Text" Data="Do utilizador" />
    <Item166 Ref="302" Component="#Ref-131" Culture="Default" Path="Weight" Data="1" />
    <Item167 Ref="303" Component="#Ref-132" Culture="Default" Path="Text" Data="Plan" />
    <Item168 Ref="304" Component="#Ref-132" Culture="pt" Path="Text" Data="Plano" />
    <Item169 Ref="305" Component="#Ref-132" Culture="Default" Path="Weight" Data="1" />
    <Item170 Ref="306" Component="#Ref-133" Culture="Default" Path="Text" Data="Total(Mb)" />
    <Item171 Ref="307" Component="#Ref-133" Culture="Default" Path="Weight" Data="1" />
    <Item172 Ref="308" Component="#Ref-14" Culture="Default" Path="Text" Data="Column1" />
    <Item173 Ref="309" Component="#Ref-14" Culture="Default" Path="Weight" Data="1" />
    <Item174 Ref="310" Component="#Ref-17" Culture="Default" Path="Text" Data="Column2" />
    <Item175 Ref="311" Component="#Ref-17" Culture="Default" Path="Weight" Data="1" />
    <Item176 Ref="312" Component="#Ref-20" Culture="Default" Path="Text" Data="Column3" />
    <Item177 Ref="313" Component="#Ref-20" Culture="Default" Path="Weight" Data="1" />
    <Item178 Ref="314" Component="#Ref-23" Culture="Default" Path="Text" Data="tableCell8" />
    <Item179 Ref="315" Component="#Ref-23" Culture="Default" Path="Weight" Data="1" />
    <Item180 Ref="316" Component="#Ref-129" Culture="Default" Path="Weight" Data="1" />
    <Item181 Ref="317" Component="#Ref-13" Culture="Default" Path="Weight" Data="1" />
    <Item182 Ref="318" Component="#Ref-32" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item183 Ref="319" Component="#Ref-32" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item184 Ref="320" Component="#Ref-32" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item185 Ref="321" Component="#Ref-32" Culture="Default" Path="Text" Data="Información de gastos" />
    <Item186 Ref="322" Component="#Ref-32" Culture="en" Path="Text" Data="Expense information" />
    <Item187 Ref="323" Component="#Ref-32" Culture="pt" Path="Text" Data="Informações de despesas" />
    <Item188 Ref="324" Component="#Ref-10" Culture="Default" Path="HeightF" Data="30" />
    <Item189 Ref="325" Component="#Ref-30" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item190 Ref="326" Component="#Ref-30" Culture="Default" Path="LocationFloat" Data="20.666647,41.3333244" />
    <Item191 Ref="327" Component="#Ref-30" Culture="Default" Path="SizeF" Data="487.339935,23.0000038" />
    <Item192 Ref="328" Component="#Ref-30" Culture="Default" Path="Text" Data="AMDM" />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="Plan" ValueMember="plan_id" DisplayMember="plan_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="Currency" ValueMember="ID" DisplayMember="CURRENCY" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>'

-- Reporte resumen de tipos de tracking en los dispositivos
	EXEC [dbo].[METADATA_REPORT] @amdmReportTracking, N'AMDM_Report_trackingTypeByDevice', 16,
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="TrakingByDeviceHighMediumLow" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="DevicesByTracking" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" ValueInfo="es" Name="language" />
  </Parameters>
  <Bands>
    <Item1 Ref="4" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="5" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="6" ControlType="XRTable" Name="table2" Padding="2,2,0,0,96">
          <Rows>
            <Item1 Ref="7" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="8" ControlType="XRTableCell" Name="tableCell3" Multiline="true" TextAlignment="MiddleCenter">
                  <Summary Ref="9" Running="Group" />
                  <ExpressionBindings>
                    <Item1 Ref="10" EventName="BeforePrint" PropertyName="Text" Expression="[name]" />
                  </ExpressionBindings>
                  <StylePriority Ref="11" UseTextAlignment="false" />
                </Item1>
                <Item2 Ref="12" ControlType="XRTableCell" Name="tableCell4" Multiline="true" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="13" EventName="BeforePrint" PropertyName="Text" Expression="[TrackingId]" />
                  </ExpressionBindings>
                  <StylePriority Ref="14" UseTextAlignment="false" />
                </Item2>
              </Cells>
            </Item1>
          </Rows>
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="15" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="16" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="17" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="18" ControlType="XRLabel" Name="typeReport" Multiline="true" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Summary_descripcion">
          <StylePriority Ref="19" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="20" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="21" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="22" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="date">
          <StylePriority Ref="23" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="24" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="25" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="26" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="27" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="29" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="30" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="31" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="32" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="34" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="35" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="36" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="37" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="38" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="1">
      <Controls>
        <Item1 Ref="39" ControlType="XRChart" Name="chart4" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="40" AutoLayout="true" PaletteName="Red Orange">
            <DataContainer Ref="41" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="42" Name="Serie1" ArgumentDataMember="DeviceTypeTracking.TrackingId" ValueDataMembersSerializable="DeviceTypeTracking.numberDevices" LabelsVisibility="True">
                  <View Ref="43" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="44" Position="Inside" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{VP:0%} {A}">
                    <Border Ref="45" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="46" />
            <OptionsPrint Ref="47" ImageFormat="Metafile" />
          </Chart>
        </Item1>
        <Item2 Ref="48" ControlType="XRPanel" Name="panel2" Borders="All">
          <Controls>
            <Item1 Ref="49" ControlType="XRLabel" Name="label5" Multiline="true" ForeColor="DarkGray" Padding="2,2,0,0,100" Borders="None">
              <StylePriority Ref="50" UseFont="false" UseForeColor="false" UseBorders="false" />
            </Item1>
            <Item2 Ref="51" ControlType="XRLabel" Name="label6" Multiline="true" Padding="2,2,0,0,100" Borders="None" BorderWidth="1">
              <StylePriority Ref="52" UseFont="false" UseBorders="false" UseBorderWidth="false" />
            </Item2>
          </Controls>
          <StylePriority Ref="53" UseBorders="false" />
        </Item2>
        <Item3 Ref="54" ControlType="XRPanel" Name="panel1" Borders="All">
          <Controls>
            <Item1 Ref="55" ControlType="XRLabel" Name="label4" Multiline="true" ForeColor="DarkGray" Padding="2,2,0,0,100" Borders="None">
              <StylePriority Ref="56" UseFont="false" UseForeColor="false" UseBorders="false" />
            </Item1>
            <Item2 Ref="57" ControlType="XRLabel" Name="label8" Multiline="true" Padding="2,2,0,0,100" Borders="None" BorderWidth="1">
              <StylePriority Ref="58" UseFont="false" UseBorders="false" UseBorderWidth="false" />
            </Item2>
          </Controls>
          <StylePriority Ref="59" UseBorders="false" />
        </Item3>
        <Item4 Ref="60" ControlType="XRShape" Name="shape8" ForeColor="255,204,204,204">
          <StylePriority Ref="61" UseForeColor="false" />
        </Item4>
        <Item5 Ref="62" ControlType="XRLabel" Name="label7" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Summary_statuslist">
          <StylePriority Ref="63" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item6>
    <Item7 Ref="64" ControlType="GroupHeaderBand" Name="GroupHeader2">
      <Controls>
        <Item1 Ref="65" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="66" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="67" ControlType="XRTableCell" Name="tableCell1" BorderColor="White" Tag_type="System.String" Tag="Report_Policies_List_nombre">
                  <StylePriority Ref="68" UseBorderColor="false" />
                </Item1>
                <Item2 Ref="69" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Policies_List_estado" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="70" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="71" ControlType="XRShape" Name="shape1" ForeColor="255,204,204,204">
          <StylePriority Ref="72" UseForeColor="false" />
        </Item2>
      </Controls>
    </Item7>
  </Bands>
  <LocalizationItems>
    <Item1 Ref="73" Component="#Ref-15" Culture="Default" Path="HeightF" Data="40" />
    <Item2 Ref="74" Component="#Ref-39" Culture="Default" Path="LocationFloat" Data="10.0000067,35.6666565" />
    <Item3 Ref="75" Component="#Ref-39" Culture="Default" Path="SizeF" Data="425.833435,286.3749" />
    <Item4 Ref="76" Component="#Ref-24" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item5 Ref="77" Component="#Ref-24" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item6 Ref="78" Component="#Ref-24" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item7 Ref="79" Component="#Ref-22" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item8 Ref="80" Component="#Ref-22" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item9 Ref="81" Component="#Ref-22" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item10 Ref="82" Component="#Ref-22" Culture="Default" Path="Text" Data="Fecha:" />
    <Item11 Ref="83" Component="#Ref-22" Culture="en" Path="Text" Data="Date:" />
    <Item12 Ref="84" Component="#Ref-22" Culture="pt" Path="Text" Data="Data:" />
    <Item13 Ref="85" Component="#Ref-5" Culture="Default" Path="HeightF" Data="62.5" />
    <Item14 Ref="86" Component="#Ref-38" Culture="Default" Path="HeightF" Data="365.0833" />
    <Item15 Ref="87" Component="#Ref-64" Culture="Default" Path="HeightF" Data="62.5" />
    <Item16 Ref="88" Component="#Ref-17" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item17 Ref="89" Component="#Ref-17" Culture="Default" Path="SizeF" Data="257.530334,79.99999" />
    <Item18 Ref="90" Component="#Ref-55" Culture="Default" Path="Font" Data="Tahoma, 13.75pt, style=Bold, charSet=0" />
    <Item19 Ref="91" Component="#Ref-55" Culture="Default" Path="LocationFloat" Data="18.75,59.375" />
    <Item20 Ref="92" Component="#Ref-55" Culture="Default" Path="SizeF" Data="231.041718,23" />
    <Item21 Ref="93" Component="#Ref-55" Culture="Default" Path="Text" Data="[AllDevicesActive.numberDevices]" />
    <Item22 Ref="94" Component="#Ref-49" Culture="Default" Path="Font" Data="Tahoma, 13.75pt, style=Bold, charSet=0" />
    <Item23 Ref="95" Component="#Ref-49" Culture="Default" Path="LocationFloat" Data="18.75,59.375" />
    <Item24 Ref="96" Component="#Ref-49" Culture="Default" Path="SizeF" Data="231.041718,23" />
    <Item25 Ref="97" Component="#Ref-49" Culture="Default" Path="Text" Data="[DontFollowDevices.dontFollow]" />
    <Item26 Ref="98" Component="#Ref-51" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item27 Ref="99" Component="#Ref-51" Culture="Default" Path="LocationFloat" Data="17.7083435,15.625" />
    <Item28 Ref="100" Component="#Ref-51" Culture="Default" Path="SizeF" Data="260.4167,43.7499847" />
    <Item29 Ref="101" Component="#Ref-51" Culture="Default" Path="Text" Data="DISPOSITIVOS SIN SEGUIMIENTO" />
    <Item30 Ref="102" Component="#Ref-51" Culture="en" Path="Text" Data="DEVICES WITHOUT TRACKING" />
    <Item31 Ref="103" Component="#Ref-51" Culture="pt" Path="Text" Data="DISPOSITIVOS SEM RASTREAMENTO" />
    <Item32 Ref="104" Component="#Ref-62" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item33 Ref="105" Component="#Ref-62" Culture="Default" Path="LocationFloat" Data="0.0005086263,10.0000067" />
    <Item34 Ref="106" Component="#Ref-62" Culture="Default" Path="SizeF" Data="779.9998,20.9166832" />
    <Item35 Ref="107" Component="#Ref-62" Culture="Default" Path="Text" Data="Porcentaje de Dispositivos por tipo de seguimiento " />
    <Item36 Ref="108" Component="#Ref-62" Culture="en" Path="Text" Data="Percentage of Devices by type of tracking" />
    <Item37 Ref="109" Component="#Ref-62" Culture="pt" Path="Text" Data="Porcentagem de dispositivos por tipo de rastreamento" />
    <Item38 Ref="110" Component="#Ref-57" Culture="Default" Path="Font" Data="Tahoma, 14.75pt, style=Bold, charSet=0" />
    <Item39 Ref="111" Component="#Ref-57" Culture="Default" Path="LocationFloat" Data="17.7083435,15.625" />
    <Item40 Ref="112" Component="#Ref-57" Culture="Default" Path="SizeF" Data="260.4167,23" />
    <Item41 Ref="113" Component="#Ref-57" Culture="Default" Path="Text" Data="TOTAL DISPOSITIVOS" />
    <Item42 Ref="114" Component="#Ref-57" Culture="en" Path="Text" Data="TOTAL DEVICES" />
    <Item43 Ref="115" Component="#Ref-57" Culture="pt" Path="Text" Data="TOTAL DE DISPOSITIVOS" />
    <Item44 Ref="116" Component="#Ref-3" Culture="Default" Path="Description" Data="Idioma" />
    <Item45 Ref="117" Component="#Ref-30" Culture="Default" Path="LocationFloat" Data="3.125,20.6250515" />
    <Item46 Ref="118" Component="#Ref-30" Culture="Default" Path="SizeF" Data="773.88,14.66662" />
    <Item47 Ref="119" Component="#Ref-29" Culture="Default" Path="LocationFloat" Data="700.416748,35.2916756" />
    <Item48 Ref="120" Component="#Ref-29" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item49 Ref="121" Component="#Ref-36" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item50 Ref="122" Component="#Ref-36" Culture="Default" Path="LocationFloat" Data="143.935242,44.14584" />
    <Item51 Ref="123" Component="#Ref-36" Culture="Default" Path="SizeF" Data="556.4815,23.0000038" />
    <Item52 Ref="124" Component="#Ref-36" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ©" />
    <Item53 Ref="125" Component="#Ref-36" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ©" />
    <Item54 Ref="126" Component="#Ref-36" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ©" />
    <Item55 Ref="127" Component="#Ref-26" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item56 Ref="128" Component="#Ref-32" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item57 Ref="129" Component="#Ref-32" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item58 Ref="130" Component="#Ref-32" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item59 Ref="131" Component="#Ref-34" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item60 Ref="132" Component="#Ref-34" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item61 Ref="133" Component="#Ref-34" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item62 Ref="134" Component="#Ref-34" Culture="Default" Path="Text" Data="Página" />
    <Item63 Ref="135" Component="#Ref-34" Culture="en" Path="Text" Data="Page" />
    <Item64 Ref="136" Component="#Ref-54" Culture="Default" Path="LocationFloat" Data="450.6251,35.66667" />
    <Item65 Ref="137" Component="#Ref-54" Culture="Default" Path="SizeF" Data="312.500031,94.79167" />
    <Item66 Ref="138" Component="#Ref-48" Culture="Default" Path="LocationFloat" Data="450.6251,160.666672" />
    <Item67 Ref="139" Component="#Ref-48" Culture="Default" Path="SizeF" Data="312.500031,94.79167" />
    <Item68 Ref="140" Component="#Ref-27" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item69 Ref="141" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="3.125,0" />
    <Item70 Ref="142" Component="#Ref-27" Culture="Default" Path="SizeF" Data="773.8799,20.6249866" />
    <Item71 Ref="143" Component="#Ref-27" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item72 Ref="144" Component="#Ref-27" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item73 Ref="145" Component="#Ref-27" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item74 Ref="146" Component="#Ref-16" Culture="Default" Path="HeightF" Data="112.83326" />
    <Item75 Ref="147" Component="#Ref-71" Culture="Default" Path="LocationFloat" Data="0.000190734863,0" />
    <Item76 Ref="148" Component="#Ref-71" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item77 Ref="149" Component="#Ref-60" Culture="Default" Path="LocationFloat" Data="0.000190734863,0" />
    <Item78 Ref="150" Component="#Ref-60" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item79 Ref="151" Component="#Ref-65" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item80 Ref="152" Component="#Ref-65" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item81 Ref="153" Component="#Ref-65" Culture="Default" Path="SizeF" Data="780,62.5" />
    <Item82 Ref="154" Component="#Ref-6" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item83 Ref="155" Component="#Ref-6" Culture="Default" Path="SizeF" Data="780.0001,25" />
    <Item84 Ref="156" Component="#Ref-67" Culture="Default" Path="Text" Data="Dispositivo" />
    <Item85 Ref="157" Component="#Ref-67" Culture="en" Path="Text" Data="Device" />
    <Item86 Ref="158" Component="#Ref-67" Culture="Default" Path="Weight" Data="4.2322607681906828" />
    <Item87 Ref="159" Component="#Ref-69" Culture="Default" Path="Text" Data="Tipo de seguimiento" />
    <Item88 Ref="160" Component="#Ref-69" Culture="en" Path="Text" Data="Tracking Type" />
    <Item89 Ref="161" Component="#Ref-69" Culture="pt" Path="Text" Data="Tipo de Rastreamento" />
    <Item90 Ref="162" Component="#Ref-69" Culture="Default" Path="Weight" Data="4.6806162043919812" />
    <Item91 Ref="163" Component="#Ref-8" Culture="Default" Path="Text" Data="tableCell3" />
    <Item92 Ref="164" Component="#Ref-8" Culture="Default" Path="Weight" Data="1.4300350175586376" />
    <Item93 Ref="165" Component="#Ref-12" Culture="Default" Path="Text" Data="tableCell4" />
    <Item94 Ref="166" Component="#Ref-12" Culture="Default" Path="Weight" Data="1.5815297762162863" />
    <Item95 Ref="167" Component="#Ref-66" Culture="Default" Path="Weight" Data="1" />
    <Item96 Ref="168" Component="#Ref-7" Culture="Default" Path="Weight" Data="1" />
    <Item97 Ref="169" Component="#Ref-20" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item98 Ref="170" Component="#Ref-20" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item99 Ref="171" Component="#Ref-20" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item100 Ref="172" Component="#Ref-20" Culture="Default" Path="Text" Data="Resumen de seguimiento por tipo" />
    <Item101 Ref="173" Component="#Ref-20" Culture="en" Path="Text" Data="Tracking Summary by Type" />
    <Item102 Ref="174" Component="#Ref-20" Culture="pt" Path="Text" Data="Resumo de rastreamento por tipo" />
    <Item103 Ref="175" Component="#Ref-4" Culture="Default" Path="HeightF" Data="30" />
    <Item104 Ref="176" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item105 Ref="177" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item106 Ref="178" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item107 Ref="179" Component="#Ref-18" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item108 Ref="180" Component="#Ref-18" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item109 Ref="181" Component="#Ref-18" Culture="Default" Path="SizeF" Data="487.340057,23.0000038" />
    <Item110 Ref="182" Component="#Ref-18" Culture="Default" Path="Text" Data="Este informe muestra información consolidada de los dispositivos por tipo de seguimiento en MDM." />
    <Item111 Ref="183" Component="#Ref-18" Culture="en" Path="Text" Data="This report shows consolidated information for devices by type of tracking in MDM." />
    <Item112 Ref="184" Component="#Ref-18" Culture="pt" Path="Text" Data="Este relatório mostra informações consolidadas para dispositivos por tipo de rastreamento no MDM." />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
</XtraReportsLayoutSerializer>'

-- Reporte resumen de tipo de solicitud para llevar a cabo el tracking en los dispositivos
	EXEC [dbo].[METADATA_REPORT] @amdmReportTracking, N'AMDM_Report_trackingTypeBySendRequest', 17,
		'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="DevicesByTRackinSend" PageWidth="850" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="DevicesTrackingTypeCalendar" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" ValueInfo="es" Name="language" />
  </Parameters>
  <Bands>
    <Item1 Ref="4" ControlType="TopMarginBand" Name="TopMargin" />
    <Item2 Ref="5" ControlType="DetailBand" Name="Detail">
      <Controls>
        <Item1 Ref="6" ControlType="XRTable" Name="table2" Padding="2,2,0,0,96">
          <Rows>
            <Item1 Ref="7" ControlType="XRTableRow" Name="tableRow2">
              <Cells>
                <Item1 Ref="8" ControlType="XRTableCell" Name="tableCell3" Multiline="true" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="9" EventName="BeforePrint" PropertyName="Text" Expression="[name]" />
                  </ExpressionBindings>
                  <StylePriority Ref="10" UseTextAlignment="false" />
                </Item1>
                <Item2 Ref="11" ControlType="XRTableCell" Name="tableCell4" Multiline="true" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="12" EventName="BeforePrint" PropertyName="Text" Expression="[TrackingType]" />
                  </ExpressionBindings>
                  <StylePriority Ref="13" UseTextAlignment="false" />
                </Item2>
                <Item3 Ref="14" ControlType="XRTableCell" Name="tableCell5" Multiline="true" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="15" EventName="BeforePrint" PropertyName="Text" Expression="[initial]" />
                  </ExpressionBindings>
                  <StylePriority Ref="16" UseTextAlignment="false" />
                </Item3>
                <Item4 Ref="17" ControlType="XRTableCell" Name="tableCell6" Multiline="true" TextAlignment="MiddleCenter">
                  <ExpressionBindings>
                    <Item1 Ref="18" EventName="BeforePrint" PropertyName="Text" Expression="[final]" />
                  </ExpressionBindings>
                  <StylePriority Ref="19" UseTextAlignment="false" />
                </Item4>
              </Cells>
            </Item1>
          </Rows>
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="20" ControlType="BottomMarginBand" Name="BottomMargin" />
    <Item4 Ref="21" ControlType="ReportHeaderBand" Name="ReportHeader">
      <Controls>
        <Item1 Ref="22" ControlType="XRPictureBox" Name="imageLogo" ImageSource="img, " ImageAlignment="MiddleCenter" />
        <Item2 Ref="23" ControlType="XRLabel" Name="typeReport" Multiline="true" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Summary_descripcion">
          <StylePriority Ref="24" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="25" ControlType="XRLabel" Name="titleReport" ForeColor="255,0,161,198" Padding="2,2,0,0,100" BorderColor="Transparent" Tag_type="System.String" Tag="titulo">
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" UseBorderColor="false" />
        </Item3>
        <Item4 Ref="27" ControlType="XRLabel" Name="dateReport" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100" Tag_type="System.String" Tag="date">
          <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="29" ControlType="XRPageInfo" Name="dateInfoReport" PageInfo="DateTime" TextAlignment="MiddleLeft" ForeColor="255,102,102,102" Padding="2,2,0,0,100">
          <StylePriority Ref="30" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item4>
    <Item5 Ref="31" ControlType="PageFooterBand" Name="PageFooter">
      <Controls>
        <Item1 Ref="32" ControlType="XRLabel" Name="recycleMessage" TextAlignment="TopCenter" ForeColor="255,102,102,102" BackColor="Gainsboro" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_recycleMessage">
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="34" ControlType="XRPictureBox" Name="logoFooter" ImageSource="img,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAoCAYAAABpYH0BAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAQASURBVGhD7ZndbWIxEIVTAiVQQkpICZSAtKt9pgQqCB2Et7xSAi95pwRKoAT2fKOZq4Nz7ybKAsqufKQj2+O/8fHYlzgPHR0dHR0dHR0d/zReXl4exVkWOz6LFO4onsUT5azq+AgSa56iIV5xl9Udhefn55m4TA7HVGJtGvHgNqs7ChJtL56ThzQj4L4R7yD2e7CFiVdcY5dYWxMvbB2JHz9/PSUfJdixEfAk8vFYivf9cMihuXg2fstL1/zj+C5MvOJBnL++vi7e3t5W4l48iwfxdtEoh9bmXHGe1d8G5tuessR6EusuJAK32CTWTNymeM7od3XIoaM5V1xl9ShUPxM5TncTOv2CnxJCgu0aAeEiq68DOfNojjmHLxtQ2aP0YPk4GkoX4s7spyzHXaSU+n1yK3pbxhsWpjybsxEZg3o2eJV5OAiofI1bdfRh/LnEIhJPJh687lHWRDg6OGZ5OESX8mPHHGJnEWN1kAVxx071d8Z8Sls/WoaASl3UlsyLgMtGwCf6Xg05UU2KEB5dm2w2JSB9sXs0kWdhfi1Qbvszj/eDtOFacNtYuxLQfaXNUvT1LGmHaOL6FuJ55JzS5rt6jIaC8i4ATg4/E5Qniut4Em2I4Iujr/f3cTlu3u7iRGSz1q8SsOaseVmPb9xtfwdqAneeBbPw9ljUHeYCXPxppDLOM5bvvrMV0IVxO3nEGMrZrOYoewnI/U3kTc4bnW8BDc5FPTZpyxBL6cVCYxBBecZpv+Is6CISklX+ioDub0VcK9y7ebP79aHBuS988inW0Z4S0O8sFhD3jNL2aH5WwKkj7P4i4MVVI9ZJGd2Aq0OD+8XM8a1FFqsOcre4bUrAWIjYXgPtmH8SsP2isxGM59GGSN4P/5nXbfA2Ampgv0/gux+XsvlHgEVcLDSb0W7qd6STvt5/UsC0+dxjRMBW6DHeTECPkDiiLdo24qiAQGU/dsWLoyT6eB8JyH3n/aOP57NdOy9+uvi3EfAWkLMsmuN8td9aGouTwpiTfy6q7urz3h38AS+uxfjhCiZsvB5ji8jwskh7yFPVXIxrRan3X1GXxbZ/PJo2tn9DVDnKSwjPSxuxBOC9DhsvJCGCUl5OECEWppS21Icw2EXGgDxNRX22pZ55hr+OlGe82qjalLLBuz10/BXkKAIg2E7kfxWxqKwjH3cWqYgwLsJFpGQbiLAIWeLTDvtwZ2cZMne8HpkN3u9R9avASZGFhlCZEi0IRT4iLNtGfXRMqNwKyCZAjiIRV0fTxxsiOlPaVqSWD+EHtm8POUoE4vjwhqg8xxch3BZHPIsBlVn8YMsyJJJLFDapIprNqbxHcuRJRXyBw/3Z0dHR0dHR0fHf4+HhN7kWUPoCmAjMAAAAAElFTkSuQmCC" />
        <Item3 Ref="35" ControlType="XRLine" Name="lineFooter" ForeColor="255,0,161,198" BorderColor="Transparent" Borders="All">
          <StylePriority Ref="36" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
        </Item3>
        <Item4 Ref="37" ControlType="XRPageInfo" Name="pageInfoFooter" ForeColor="255,153,153,153" Padding="2,2,0,0,100">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="39" ControlType="XRLabel" Name="pagination" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_pageFooter">
          <StylePriority Ref="40" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="41" ControlType="XRLabel" Name="messageFooter" TextAlignment="TopRight" ForeColor="255,153,153,153" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_msjfooter">
          <StylePriority Ref="42" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item5>
    <Item6 Ref="43" ControlType="GroupHeaderBand" Name="GroupHeader1" Level="1">
      <Controls>
        <Item1 Ref="44" ControlType="XRChart" Name="chart4" DataSource="#Ref-0" BorderColor="Black" Borders="None">
          <Chart Ref="45" AutoLayout="true" PaletteName="Red Orange">
            <DataContainer Ref="46" DataMember="DevicesByTRackinSend" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="47" Name="Serie1" ArgumentDataMember="TrackingType" ValueDataMembersSerializable="numDevices" LabelsVisibility="True">
                  <View Ref="48" TypeNameSerializable="DoughnutSeriesView" />
                  <Label Ref="49" Position="Inside" TypeNameSerializable="DoughnutSeriesLabel" TextPattern="{VP:0%} {A}">
                    <Border Ref="50" Visibility="False" />
                  </Label>
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Legend Ref="51" />
            <OptionsPrint Ref="52" ImageFormat="Metafile" />
          </Chart>
        </Item1>
        <Item2 Ref="53" ControlType="XRPanel" Name="panel2" Borders="All">
          <Controls>
            <Item1 Ref="54" ControlType="XRLabel" Name="label5" Multiline="true" ForeColor="DarkGray" Padding="2,2,0,0,100" Borders="None">
              <StylePriority Ref="55" UseFont="false" UseForeColor="false" UseBorders="false" />
            </Item1>
            <Item2 Ref="56" ControlType="XRLabel" Name="label6" Multiline="true" Padding="2,2,0,0,100" Borders="None" BorderWidth="1">
              <StylePriority Ref="57" UseFont="false" UseBorders="false" UseBorderWidth="false" />
            </Item2>
          </Controls>
          <StylePriority Ref="58" UseBorders="false" />
        </Item2>
        <Item3 Ref="59" ControlType="XRPanel" Name="panel1" Borders="All">
          <Controls>
            <Item1 Ref="60" ControlType="XRLabel" Name="label4" Multiline="true" ForeColor="DarkGray" Padding="2,2,0,0,100" Borders="None">
              <StylePriority Ref="61" UseFont="false" UseForeColor="false" UseBorders="false" />
            </Item1>
            <Item2 Ref="62" ControlType="XRLabel" Name="label8" Multiline="true" Padding="2,2,0,0,100" Borders="None" BorderWidth="1">
              <StylePriority Ref="63" UseFont="false" UseBorders="false" UseBorderWidth="false" />
            </Item2>
          </Controls>
          <StylePriority Ref="64" UseBorders="false" />
        </Item3>
        <Item4 Ref="65" ControlType="XRShape" Name="shape8" ForeColor="255,204,204,204">
          <StylePriority Ref="66" UseForeColor="false" />
        </Item4>
        <Item5 Ref="67" ControlType="XRLabel" Name="label7" TextAlignment="MiddleCenter" ForeColor="255,0,161,198" Padding="2,2,0,0,100" Tag_type="System.String" Tag="Report_Policies_Summary_statuslist">
          <StylePriority Ref="68" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
      </Controls>
    </Item6>
    <Item7 Ref="69" ControlType="GroupHeaderBand" Name="GroupHeader2">
      <Controls>
        <Item1 Ref="70" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" ForeColor="White" BackColor="255,0,161,198" BorderColor="255,204,204,204" Borders="All">
          <Rows>
            <Item1 Ref="71" ControlType="XRTableRow" Name="tableRow1">
              <Cells>
                <Item1 Ref="72" ControlType="XRTableCell" Name="tableCell1" BorderColor="White" Tag_type="System.String" Tag="Report_Policies_List_nombre">
                  <StylePriority Ref="73" UseBorderColor="false" />
                </Item1>
                <Item2 Ref="74" ControlType="XRTableCell" Name="tableCell2" Tag_type="System.String" Tag="Report_Policies_List_estado" />
                <Item3 Ref="75" ControlType="XRTableCell" Name="tableCell7" Multiline="true" />
                <Item4 Ref="76" ControlType="XRTableCell" Name="tableCell8" Multiline="true" />
              </Cells>
            </Item1>
          </Rows>
          <StylePriority Ref="77" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="78" ControlType="XRShape" Name="shape1" ForeColor="255,204,204,204">
          <StylePriority Ref="79" UseForeColor="false" />
        </Item2>
      </Controls>
    </Item7>
  </Bands>
  <LocalizationItems>
    <Item1 Ref="80" Component="#Ref-20" Culture="Default" Path="HeightF" Data="40" />
    <Item2 Ref="81" Component="#Ref-44" Culture="Default" Path="LocationFloat" Data="10.0000067,35.6666565" />
    <Item3 Ref="82" Component="#Ref-44" Culture="Default" Path="SizeF" Data="425.833435,286.3749" />
    <Item4 Ref="83" Component="#Ref-29" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item5 Ref="84" Component="#Ref-29" Culture="Default" Path="LocationFloat" Data="77.95833,80" />
    <Item6 Ref="85" Component="#Ref-29" Culture="Default" Path="SizeF" Data="229.166687,22.9999847" />
    <Item7 Ref="86" Component="#Ref-27" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item8 Ref="87" Component="#Ref-27" Culture="Default" Path="LocationFloat" Data="20.6666622,80" />
    <Item9 Ref="88" Component="#Ref-27" Culture="Default" Path="SizeF" Data="57.2916641,22.9999847" />
    <Item10 Ref="89" Component="#Ref-27" Culture="Default" Path="Text" Data="Fecha:" />
    <Item11 Ref="90" Component="#Ref-27" Culture="en" Path="Text" Data="Date:" />
    <Item12 Ref="91" Component="#Ref-27" Culture="pt" Path="Text" Data="Data:" />
    <Item13 Ref="92" Component="#Ref-5" Culture="Default" Path="HeightF" Data="62.5" />
    <Item14 Ref="93" Component="#Ref-1" Culture="Default" Path="Bookmark" Data="Report_AMDM" />
    <Item15 Ref="94" Component="#Ref-1" Culture="Default" Path="Font" Data="Tahoma, 9.75pt, charSet=0" />
    <Item16 Ref="95" Component="#Ref-1" Culture="Default" Path="Margins" Data="40, 30, 30, 40" />
    <Item17 Ref="96" Component="#Ref-43" Culture="Default" Path="HeightF" Data="365.0833" />
    <Item18 Ref="97" Component="#Ref-69" Culture="Default" Path="HeightF" Data="62.5" />
    <Item19 Ref="98" Component="#Ref-22" Culture="Default" Path="LocationFloat" Data="522.47,0" />
    <Item20 Ref="99" Component="#Ref-22" Culture="Default" Path="SizeF" Data="257.530334,79.99999" />
    <Item21 Ref="100" Component="#Ref-60" Culture="Default" Path="Font" Data="Tahoma, 13.75pt, style=Bold, charSet=0" />
    <Item22 Ref="101" Component="#Ref-60" Culture="Default" Path="LocationFloat" Data="18.75,59.375" />
    <Item23 Ref="102" Component="#Ref-60" Culture="Default" Path="SizeF" Data="231.041718,23" />
    <Item24 Ref="103" Component="#Ref-60" Culture="Default" Path="Text" Data="[AllDevicesActive.numberDevices]" />
    <Item25 Ref="104" Component="#Ref-54" Culture="Default" Path="Font" Data="Tahoma, 13.75pt, style=Bold, charSet=0" />
    <Item26 Ref="105" Component="#Ref-54" Culture="Default" Path="LocationFloat" Data="18.75,59.375" />
    <Item27 Ref="106" Component="#Ref-54" Culture="Default" Path="SizeF" Data="231.041718,23" />
    <Item28 Ref="107" Component="#Ref-54" Culture="Default" Path="Text" Data="[DevicesWithoutPolicy.numDevices]" />
    <Item29 Ref="108" Component="#Ref-56" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item30 Ref="109" Component="#Ref-56" Culture="Default" Path="LocationFloat" Data="17.7083435,15.625" />
    <Item31 Ref="110" Component="#Ref-56" Culture="Default" Path="SizeF" Data="260.4167,43.7499847" />
    <Item32 Ref="111" Component="#Ref-56" Culture="Default" Path="Text" Data="DISPOSITIVOS SIN POLITICA" />
    <Item33 Ref="112" Component="#Ref-56" Culture="en" Path="Text" Data="DEVICES WITHOUT POLICY" />
    <Item34 Ref="113" Component="#Ref-56" Culture="pt" Path="Text" Data="DISPOSITIVOS SEM POLÍTICA" />
    <Item35 Ref="114" Component="#Ref-67" Culture="Default" Path="Font" Data="Tahoma, 11pt, style=Bold" />
    <Item36 Ref="115" Component="#Ref-67" Culture="Default" Path="LocationFloat" Data="0.0005086263,10.0000067" />
    <Item37 Ref="116" Component="#Ref-67" Culture="Default" Path="SizeF" Data="779.9998,20.9166832" />
    <Item38 Ref="117" Component="#Ref-67" Culture="Default" Path="Text" Data="Porcentaje de dispositivos con política de seguimiento" />
    <Item39 Ref="118" Component="#Ref-67" Culture="en" Path="Text" Data="Percentage of devices with tracking policy" />
    <Item40 Ref="119" Component="#Ref-67" Culture="pt" Path="Text" Data="Porcentagem de dispositivos com política de rastreamento" />
    <Item41 Ref="120" Component="#Ref-62" Culture="Default" Path="Font" Data="Tahoma, 14.75pt, style=Bold, charSet=0" />
    <Item42 Ref="121" Component="#Ref-62" Culture="Default" Path="LocationFloat" Data="17.7083435,15.625" />
    <Item43 Ref="122" Component="#Ref-62" Culture="Default" Path="SizeF" Data="260.4167,23" />
    <Item44 Ref="123" Component="#Ref-62" Culture="Default" Path="Text" Data="TOTAL DISPOSITIVOS" />
    <Item45 Ref="124" Component="#Ref-62" Culture="en" Path="Text" Data="TOTAL DEVICES" />
    <Item46 Ref="125" Component="#Ref-62" Culture="pt" Path="Text" Data="TOTAL DE DISPOSITIVOS" />
    <Item47 Ref="126" Component="#Ref-3" Culture="Default" Path="Description" Data="Idioma" />
    <Item48 Ref="127" Component="#Ref-35" Culture="Default" Path="LocationFloat" Data="3.125,20.6250515" />
    <Item49 Ref="128" Component="#Ref-35" Culture="Default" Path="SizeF" Data="773.88,14.66662" />
    <Item50 Ref="129" Component="#Ref-34" Culture="Default" Path="LocationFloat" Data="700.416748,35.2916756" />
    <Item51 Ref="130" Component="#Ref-34" Culture="Default" Path="SizeF" Data="79.5834961,40.7083473" />
    <Item52 Ref="131" Component="#Ref-41" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item53 Ref="132" Component="#Ref-41" Culture="Default" Path="LocationFloat" Data="143.935242,44.14584" />
    <Item54 Ref="133" Component="#Ref-41" Culture="Default" Path="SizeF" Data="556.4815,23.0000038" />
    <Item55 Ref="134" Component="#Ref-41" Culture="Default" Path="Text" Data="Aranda Software. Todos los derechos reservados ©" />
    <Item56 Ref="135" Component="#Ref-41" Culture="en" Path="Text" Data="Aranda Software. All rights reserved ©" />
    <Item57 Ref="136" Component="#Ref-41" Culture="pt" Path="Text" Data="Aranda Software. Todos os direitos reservados ©" />
    <Item58 Ref="137" Component="#Ref-31" Culture="Default" Path="HeightF" Data="76.00002" />
    <Item59 Ref="138" Component="#Ref-37" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item60 Ref="139" Component="#Ref-37" Culture="Default" Path="LocationFloat" Data="69.79163,44.14584" />
    <Item61 Ref="140" Component="#Ref-37" Culture="Default" Path="SizeF" Data="33.3333359,22.9999962" />
    <Item62 Ref="141" Component="#Ref-39" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item63 Ref="142" Component="#Ref-39" Culture="Default" Path="LocationFloat" Data="3.12497616,44.14584" />
    <Item64 Ref="143" Component="#Ref-39" Culture="Default" Path="SizeF" Data="66.6666641,22.9999962" />
    <Item65 Ref="144" Component="#Ref-39" Culture="Default" Path="Text" Data="Página" />
    <Item66 Ref="145" Component="#Ref-39" Culture="en" Path="Text" Data="Page" />
    <Item67 Ref="146" Component="#Ref-59" Culture="Default" Path="LocationFloat" Data="450.6251,35.66667" />
    <Item68 Ref="147" Component="#Ref-59" Culture="Default" Path="SizeF" Data="312.500031,94.79167" />
    <Item69 Ref="148" Component="#Ref-53" Culture="Default" Path="LocationFloat" Data="450.6251,160.666672" />
    <Item70 Ref="149" Component="#Ref-53" Culture="Default" Path="SizeF" Data="312.500031,94.79167" />
    <Item71 Ref="150" Component="#Ref-32" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item72 Ref="151" Component="#Ref-32" Culture="Default" Path="LocationFloat" Data="3.125,0" />
    <Item73 Ref="152" Component="#Ref-32" Culture="Default" Path="SizeF" Data="773.8799,20.6249866" />
    <Item74 Ref="153" Component="#Ref-32" Culture="Default" Path="Text" Data="Antes de imprimir este mensaje, asegúrese que sea necesario. Proteger el medio ambiente también está en sus manos." />
    <Item75 Ref="154" Component="#Ref-32" Culture="en" Path="Text" Data="Before printing this message, make sure it is necessary. Protecting the environment is also in your hands." />
    <Item76 Ref="155" Component="#Ref-32" Culture="pt" Path="Text" Data="Antes de imprimir esta mensagem, verifique se ela é necessária. Proteger o meio ambiente também está em suas mãos." />
    <Item77 Ref="156" Component="#Ref-21" Culture="Default" Path="HeightF" Data="112.83326" />
    <Item78 Ref="157" Component="#Ref-78" Culture="Default" Path="LocationFloat" Data="0.000190734863,0" />
    <Item79 Ref="158" Component="#Ref-78" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item80 Ref="159" Component="#Ref-65" Culture="Default" Path="LocationFloat" Data="0.000190734863,0" />
    <Item81 Ref="160" Component="#Ref-65" Culture="Default" Path="SizeF" Data="779.9998,2.45098114" />
    <Item82 Ref="161" Component="#Ref-70" Culture="Default" Path="Font" Data="Tahoma, 9pt" />
    <Item83 Ref="162" Component="#Ref-70" Culture="Default" Path="LocationFloat" Data="0,0" />
    <Item84 Ref="163" Component="#Ref-70" Culture="Default" Path="SizeF" Data="780,62.5" />
    <Item85 Ref="164" Component="#Ref-6" Culture="Default" Path="LocationFloat" Data="0,9.999998" />
    <Item86 Ref="165" Component="#Ref-6" Culture="Default" Path="SizeF" Data="780,25" />
    <Item87 Ref="166" Component="#Ref-72" Culture="Default" Path="Text" Data="Dispositivo" />
    <Item88 Ref="167" Component="#Ref-72" Culture="en" Path="Text" Data="Device" />
    <Item89 Ref="168" Component="#Ref-72" Culture="Default" Path="Weight" Data="2.2282192618497785" />
    <Item90 Ref="169" Component="#Ref-74" Culture="Default" Path="Text" Data="Tipo de seguimiento" />
    <Item91 Ref="170" Component="#Ref-74" Culture="en" Path="Text" Data="Tracking Type" />
    <Item92 Ref="171" Component="#Ref-74" Culture="pt" Path="Text" Data="Tipo de Rastreamento" />
    <Item93 Ref="172" Component="#Ref-74" Culture="Default" Path="Weight" Data="2.2282199218759624" />
    <Item94 Ref="173" Component="#Ref-8" Culture="Default" Path="Text" Data="tableCell3" />
    <Item95 Ref="174" Component="#Ref-8" Culture="Default" Path="Weight" Data="0.26315789473684209" />
    <Item96 Ref="175" Component="#Ref-11" Culture="Default" Path="Text" Data="tableCell4" />
    <Item97 Ref="176" Component="#Ref-11" Culture="Default" Path="Weight" Data="0.26315789473684209" />
    <Item98 Ref="177" Component="#Ref-14" Culture="Default" Path="Text" Data="tableCell5" />
    <Item99 Ref="178" Component="#Ref-14" Culture="Default" Path="Weight" Data="0.26315789473684209" />
    <Item100 Ref="179" Component="#Ref-17" Culture="Default" Path="Text" Data="tableCell6" />
    <Item101 Ref="180" Component="#Ref-17" Culture="Default" Path="Weight" Data="0.26315789473684209" />
    <Item102 Ref="181" Component="#Ref-75" Culture="Default" Path="Text" Data="Hora Inicial" />
    <Item103 Ref="182" Component="#Ref-75" Culture="en" Path="Text" Data="Start time" />
    <Item104 Ref="183" Component="#Ref-75" Culture="pt" Path="Text" Data="Hora de início" />
    <Item105 Ref="184" Component="#Ref-75" Culture="Default" Path="Weight" Data="2.2282199218759624" />
    <Item106 Ref="185" Component="#Ref-76" Culture="Default" Path="Text" Data="Hora Final&#xD;&#xA;" />
    <Item107 Ref="186" Component="#Ref-76" Culture="en" Path="Text" Data="Final hour" />
    <Item108 Ref="187" Component="#Ref-76" Culture="pt" Path="Text" Data="hora final" />
    <Item109 Ref="188" Component="#Ref-76" Culture="Default" Path="Weight" Data="2.2282199218759624" />
    <Item110 Ref="189" Component="#Ref-71" Culture="Default" Path="Weight" Data="1" />
    <Item111 Ref="190" Component="#Ref-7" Culture="Default" Path="Weight" Data="11.5" />
    <Item112 Ref="191" Component="#Ref-25" Culture="Default" Path="Font" Data="Tahoma, 12.75pt, style=Bold, charSet=0" />
    <Item113 Ref="192" Component="#Ref-25" Culture="Default" Path="LocationFloat" Data="20.6666546,10.0000181" />
    <Item114 Ref="193" Component="#Ref-25" Culture="Default" Path="SizeF" Data="487.34,31.33" />
    <Item115 Ref="194" Component="#Ref-25" Culture="Default" Path="Text" Data="Seguimiento por tipo de solicitud" />
    <Item116 Ref="195" Component="#Ref-25" Culture="en" Path="Text" Data="Follow-up by type of request" />
    <Item117 Ref="196" Component="#Ref-25" Culture="pt" Path="Text" Data="Acompanhamento por tipo de solicitação" />
    <Item118 Ref="197" Component="#Ref-4" Culture="Default" Path="HeightF" Data="30" />
    <Item119 Ref="198" Component="#Ref-23" Culture="Default" Path="Font" Data="Tahoma, 8pt" />
    <Item120 Ref="199" Component="#Ref-23" Culture="Default" Path="LocationFloat" Data="20.6666622,41.3333244" />
    <Item121 Ref="200" Component="#Ref-23" Culture="Default" Path="SizeF" Data="487.340057,23.0000038" />
    <Item122 Ref="201" Component="#Ref-23" Culture="Default" Path="Text" Data="Este informe muestra información consolidada de los dispositivos por tipo de solicitud de seguimiento en MDM." />
    <Item123 Ref="202" Component="#Ref-23" Culture="en" Path="Text" Data="This report shows consolidated device information by MDM tracking request type." />
    <Item124 Ref="203" Component="#Ref-23" Culture="pt" Path="Text" Data="Este relatório mostra informações consolidadas do dispositivo por tipo de solicitação de rastreamento MDM." />
  </LocalizationItems>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
</XtraReportsLayoutSerializer>'

COMMIT;

EXEC [dbo].[PRC_AMDM_FACTUPDATE_APPS]
EXEC [dbo].[PRC_AMDM_FACTUPDATE_DEVICES]
EXEC [dbo].[PRC_AMDM_FACTUPDATE_ENROLLMENT]
EXEC [dbo].[PRC_AMDM_FACTUPDATE_POLICIES]

GO

--Applications
--Endpoints de conexión para los móviles
DECLARE @v_id INT;
DECLARE @v_now DATETIME = GETUTCDATE();

EXEC [dbo].[MD_AMDM_APPSINFORMATION] 'com.arandasoft.mdm-agent', 4, @v_now, @v_now, 1, 1, 0, 0, 0, 1, 0, 0, 0, @v_id OUTPUT
EXEC [dbo].[MD_AMDM_APPSINFORMATIONDETAIL] @v_id, 'es', 'Aranda MDM Agent'
EXEC [dbo].[MD_AMDM_APPSINFORMATIONDETAIL] @v_id, 'en', 'Aranda MDM Agent'
EXEC [dbo].[MD_AMDM_APPSINFORMATIONDETAIL] @v_id, 'en', 'Aranda MDM Agent'
GO

--Templates
PRINT 'AMDM - Required params - TEMPLATES'
DECLARE @date    DATETIME = GETDATE()
EXEC METADATA_TEMPLATES 1, 1, N'AEMM_RuleTemplate', @date, N'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
   <title>Untitled Document</title>
   <style type="text/css">body,td,th{font-family:Verdana,Geneva,sans-serif;font-size:12px}.container{width:415px;margin:18px}</style>
   <div>
   <img src="../../App_Themes/AMDMUX/Image/Email/email_header.png">
   <div class="container">
      <p>
      <hr>
      <p><strong>{{TITLE}}</strong><br>
      <p>
      <hr>
      <p>{{CONTENT}}</p>
   </div>
   <div><img src="../../App_Themes/AMDMUX/Image/Email/email_footer.png"></div>
   <br>'
GO

/*
Post-Deployment Script Template							
--------------------------------------------------------------------------------------
 This file contains SQL statements that will be appended to the build script.		
 Use SQLCMD syntax to include a file in the post-deployment script.			
 Example:      :r .\myfile.sql								
 Use SQLCMD syntax to reference a variable in the post-deployment script.		
 Example:      :setvar TableName MyTable							
               SELECT * FROM [$(TableName)]					
--------------------------------------------------------------------------------------
*/

--   INITIALIZE DEPLOY
CREATE PROCEDURE METADATA_APPLICATION
(
    @Manufacturer    NVARCHAR(200) ,    
    @Acronym		 NVARCHAR(20)  ,
	@BuiltIn		 BIT,
    @Code			 INT           ,
    @Version		 NVARCHAR(100) ,    
    @Name			 NVARCHAR(255) ,
    @Suite			 BIT           ,
    @Enabled		 BIT           ,
    @ParentId		 INT           ,    
    @ID				 INT OUTPUT
)					 
AS
BEGIN
    SET @ID=NULL

    IF NOT EXISTS(SELECT * FROM AQM_APPLICATION WHERE [Acronym] =@Acronym AND  [Version]=@Version ) 
    BEGIN   

		BEGIN TRY
			BEGIN TRAN
				INSERT INTO AQM_APPLICATION ([Code],    [Manufacturer],  [Acronym], [BuiltIn],
											 [Version], [Name],			 [Suite],    [Enabled], [ParentId]) 
				VALUES                      (@Code,     @Manufacturer,   @Acronym,   @BuiltIn,   
											 @Version,  @Name,			 @Suite,     @Enabled,  @ParentId)

				SET @ID=@@IDENTITY

			COMMIT TRAN
		END TRY
		BEGIN CATCH
			ROLLBACK TRAN
		END CATCH
    END
    ELSE
    BEGIN

		BEGIN TRY
			BEGIN TRAN
			UPDATE AQM_APPLICATION SET
					[Code]			= @Code,
					[Manufacturer]	= @Manufacturer,
					[Name]			= @Name,
					[Suite]			= @Suite,
					[BuiltIn]		= @BuiltIn,				
					[ParentId]		= @ParentId
			WHERE   [Acronym]		= @Acronym 
			AND  	[Version]		= @Version

			-- Variable de salida del procedimiento
			SELECT TOP 1 @ID=Id FROM AQM_APPLICATION WHERE [Acronym] =@Acronym AND  [Version]=@Version 
			COMMIT TRAN
		END TRY
		BEGIN CATCH
			ROLLBACK TRAN
		END CATCH
    END
END
GO
CREATE PROCEDURE METADATA_FOLDER_HIERARCHY
(
	@i_operation NVARCHAR(20),
	@i_folderId   INT       
)
AS
BEGIN

    /*=========================================================================================================*/
	/* RELACION DE PADRES, DADO UN GRUPO DE ORIGEN DERIVAR SUS POSIBLES PARENTS                                */
	/*=========================================================================================================*/
	IF @i_operation = 'P'
	BEGIN
		--PARENTS
		WITH [RecursiveTree] AS
		(
			SELECT	[fold_id], 
					[fold_parent]
			FROM	[AFW_FOLDER] 
			WHERE	[fold_id] = @i_folderId
			UNION   ALL
			SELECT	[Parent].[fold_id],
					[Parent].[fold_parent]
			FROM	[AFW_FOLDER] AS [Parent] 
					JOIN [RecursiveTree] ON [Parent].[fold_id] = [RecursiveTree].[fold_parent]
		)
		SELECT [fold_id] FROM [RecursiveTree]
		
	END

	/*=========================================================================================================*/
	/* RELACION DE HIJOS, DADO UN GRUPO DE ORIGEN DERIVAR SUS POSIBLES DESCENDIENTES                           */
	/*=========================================================================================================*/
	IF @i_operation = 'C'
	BEGIN
			--CHILDS
			WITH [RecursiveTree] 
			AS (
				-- Anchor
				SELECT	[fold_id]
				FROM	[AFW_FOLDER]
				WHERE	[fold_id] = @i_folderId
				UNION ALL
				-- Recursive Member
				SELECT	[Child].[fold_id]
				FROM	[AFW_FOLDER] AS [Child]
						JOIN [RecursiveTree] AS [Parent] ON [Child].[fold_parent] = [Parent].[fold_id]
			)
			SELECT [fold_id] 
			FROM [RecursiveTree]

	END

END
GO
CREATE PROCEDURE METADATA_FOLDER_SETTING
(
	@folderId				INT,
	@ApplicationId			INT,
	@IconClass				NVARCHAR(255),
	@BuiltIn				BIT
)
AS
BEGIN
		IF EXISTS (SELECT * FROM AQM_FOLDER_SETTING WHERE FolderId=@folderId)
		BEGIN
			UPDATE  AQM_FOLDER_SETTING SET
					ApplicationId  = @ApplicationId,
					IconClass	   = @IconClass,
					BuiltIn        = @BuiltIn
			WHERE	FolderId	   = @folderId	
		END
		ELSE
		BEGIN
			INSERT INTO AQM_FOLDER_SETTING	(FolderId,	 ApplicationId,	    IconClass, BuiltIn)
			VALUES							(@folderId,	 @ApplicationId,	@IconClass,@BuiltIn)	 		
		END 
END
GO

-- SCRIPTS
PRINT '001_AFW_FOLDER'
/*=========================================================================================================*/
/*  Inserta las carpetas de Query Manager                                                                  */
/*=========================================================================================================*/
DECLARE @aqmFolderId	    INT
DECLARE @Date				DATETIME   
DECLARE @Description        NVARCHAR(500)
DECLARE @folderId		    INT 
DECLARE @IsPublic           BIT        
DECLARE @UserIdCreate       INT        
DECLARE @UserIdModified     INT

SET     @Date               = GETDATE()
SET     @Description        = NULL
SET     @IsPublic           = 0   
SET     @UserIdCreate       = 1	
SET     @UserIdModified     = 1	

-- Crea o actualiza las carpetas de aqm
--                      @folderId	         @name	          @parentId	    @creationDate    @modifiedDate @userIdCreate   @userIdModified   @description 	@applicationId	@order	@isPublic
EXEC METADATA_FOLDER    @aqmFolderId OUTPUT ,'AQM',           NULL,          @Date,          @Date,        @UserIdCreate,  @UserIdModified,  @Description,  29,             1,      @IsPublic
EXEC METADATA_FOLDER    @folderId    OUTPUT ,'DashBoards',    @aqmFolderId,  @Date,          @Date,        @UserIdCreate,  @UserIdModified,  @Description,  29,             2,      @IsPublic
EXEC METADATA_FOLDER    @folderId    OUTPUT ,'Reports',       @aqmFolderId,  @Date,          @Date,        @UserIdCreate,  @UserIdModified,  @Description,  29,             3,      @IsPublic
EXEC METADATA_FOLDER    @folderId    OUTPUT ,'Favorites',     @folderId,     @Date,          @Date,        @UserIdCreate,  @UserIdModified,  @Description,  29,             5,      @IsPublic
EXEC METADATA_FOLDER    @folderId    OUTPUT ,'Pivot',         @aqmFolderId,  @Date,          @Date,        @UserIdCreate,  @UserIdModified,  @Description,  29,             4,      @IsPublic

SET     @IsPublic           = 1  
SET     @Description        = 'Carpeta para guardar dise�os personalizados para los pivotes'
EXEC METADATA_FOLDER    @folderId    OUTPUT ,'PivotLayouts',  @aqmFolderId,  @Date,          @Date,        @UserIdCreate,  @UserIdModified,  @Description,  29,             5,      @IsPublic

GO
PRINT '002_AFW_ROLES'

DECLARE @roleId INT

--                    @name              @description	                                            @is_active	  @is_builtin  @application_id  @concept_id	   @id				
EXEC [METADATA_ROLES] 'AQMAdmin',		 'Administrador del sistema Query Manager',					1,            1,           29,              NULL,          NULL
EXEC [METADATA_ROLES] 'AQMUser',		 'Usuario de Query Manager',								1,            1,           29,              NULL,          NULL
EXEC [METADATA_ROLES] 'AQMSpecialist',   'Especialista para edicion y publicacion de documentos',	1,            1,           29,              NULL,          NULL
GO
PRINT '003_AFW_ROLE_ACCESS'

DECLARE @groupId           INT
DECLARE @adminRoleId	   INT 

-- Grupo administradores por defecto de aranda
SELECT TOP 1 
        @groupId              = [grou_id]	
FROM    [AFW_GROUPS]	      
WHERE   [grou_name]           = 'Administrators' 
AND     [grou_definition_ldap] IS NULL
AND     [grou_guid_ldap]       IS NULL

-- Rol de administradores de aqm
SELECT TOP 1 
       @adminRoleId          = [role_id] 
FROM   [AFW_ROLES]    
WHERE  [role_name]           = 'AQMAdmin'
AND    [role_application_id] = 29

-- Asigna el rol de administrador de aqm al grupo Administradores de Aranda
EXEC METADATA_ROLE_ACCESS   @grou_id            = @groupId,	
							@role_id            = @adminRoleId,
							@proj_id            = NULL,			
							@user_id            = NULL,			
							@roac_proj_deny     = 0,
							@roac_id			= NULL
GO
PRINT '004_AFW_ROLE_PERMISSION'

DECLARE @idRoleAQMAdmin			INT
DECLARE @idRoleAQMUser			INT
DECLARE @idRoleAQMSpecialist	INT

SELECT @idRoleAQMAdmin		= role_id FROM [AFW_ROLES] WHERE [role_name] = 'AQMAdmin'         AND role_application_id=29
SELECT @idRoleAQMUser		= role_id FROM [AFW_ROLES] WHERE [role_name] = 'AQMUser'		  AND role_application_id=29
SELECT @idRoleAQMSpecialist = role_id FROM [AFW_ROLES] WHERE [role_name] = 'AQMSpecialist'	  AND role_application_id=29


--METADATA ADMINISTRADOR AQM

--ManageUser
EXEC [METADATA_ROLE_PERMISSION] 2,  @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 3,  @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 4,  @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 5,  @idRoleAQMAdmin, 1

--ManageGroup
EXEC [METADATA_ROLE_PERMISSION] 7,  @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 8,  @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 9,  @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 10, @idRoleAQMAdmin, 1

-- Roles
EXEC [METADATA_ROLE_PERMISSION] 20, @idRoleAQMAdmin, 1

-- CreateAuthorization
EXEC [METADATA_ROLE_PERMISSION] 22, @idRoleAQMAdmin, 1

-- DeleteAuthorization
EXEC [METADATA_ROLE_PERMISSION] 23, @idRoleAQMAdmin, 1

--ManageAuthProvider
EXEC [METADATA_ROLE_PERMISSION] 24, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 25, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 27, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 28, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 29, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 30, @idRoleAQMAdmin, 1

--ManageConfigLDAP
EXEC [METADATA_ROLE_PERMISSION] 32, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 33, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 34, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 35, @idRoleAQMAdmin, 1

--ManageDocument
EXEC [METADATA_ROLE_PERMISSION] 37, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 39, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @idRoleAQMAdmin, 1

---ManageFolder
EXEC [METADATA_ROLE_PERMISSION] 42, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 43, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 44, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 45, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 46, @idRoleAQMAdmin, 1

--ManageMail
EXEC [METADATA_ROLE_PERMISSION] 48, @idRoleAQMAdmin, 1

---ManageMailAccount
EXEC [METADATA_ROLE_PERMISSION] 50, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 51, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 52, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 53, @idRoleAQMAdmin, 1

--ManageMailTemplate
EXEC [METADATA_ROLE_PERMISSION] 55, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 56, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 57, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 58, @idRoleAQMAdmin, 1

--ManageReport
EXEC [METADATA_ROLE_PERMISSION] 60, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 61, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 62, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 63, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 64, @idRoleAQMAdmin, 1

--ManageDashBoard
EXEC [METADATA_ROLE_PERMISSION] 71, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 72, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 73, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 74, @idRoleAQMAdmin, 1

---ManageCategory
EXEC [METADATA_ROLE_PERMISSION] 76, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 77, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 78, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 79, @idRoleAQMAdmin, 1

---Document publisher
EXEC [METADATA_ROLE_PERMISSION] 37, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 39, @idRoleAQMAdmin, 1

---Folder Publisher
EXEC [METADATA_ROLE_PERMISSION] 42, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 43, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 44, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 46, @idRoleAQMAdmin, 1

---Manage Template
EXEC [METADATA_ROLE_PERMISSION] 89, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 90, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 91, @idRoleAQMAdmin, 1
EXEC [METADATA_ROLE_PERMISSION] 92, @idRoleAQMAdmin, 1


--METADATA USUARIO AQM

--ManageUser
EXEC [METADATA_ROLE_PERMISSION] 5, @idRoleAQMUser, 1

--ManageGroup
EXEC [METADATA_ROLE_PERMISSION] 9, @idRoleAQMUser, 1


--ManageMail
EXEC [METADATA_ROLE_PERMISSION] 48, @idRoleAQMUser, 1

---ManageMailAccount
EXEC [METADATA_ROLE_PERMISSION] 52, @idRoleAQMUser, 1

--ManageMailTemplate
EXEC [METADATA_ROLE_PERMISSION] 57, @idRoleAQMUser, 1

--ManageReport
EXEC [METADATA_ROLE_PERMISSION] 62, @idRoleAQMUser, 1
EXEC [METADATA_ROLE_PERMISSION] 64, @idRoleAQMUser, 1

--ManageDashBoard
EXEC [METADATA_ROLE_PERMISSION] 73, @idRoleAQMUser, 1

---ManageCategory
EXEC [METADATA_ROLE_PERMISSION] 78, @idRoleAQMUser, 1

---Manage Template
EXEC [METADATA_ROLE_PERMISSION] 92, @idRoleAQMUser, 1

---Manage ROLE
EXEC [METADATA_ROLE_PERMISSION] 20, @idRoleAQMUser, 1


--METADATA ESPECIALISTA AQM

-- Get User
EXEC [METADATA_ROLE_PERMISSION] 5,  @idRoleAQMSpecialist, 1
--GetMailTemplate

EXEC [METADATA_ROLE_PERMISSION] 57,  @idRoleAQMSpecialist, 1
--Get Roles
EXEC [METADATA_ROLE_PERMISSION] 9,  @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 20, @idRoleAQMSpecialist, 1

--ManageAuthProvider
EXEC [METADATA_ROLE_PERMISSION] 24, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 25, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 27, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 28, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 29, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 30, @idRoleAQMSpecialist, 1

--ManageDocument
EXEC [METADATA_ROLE_PERMISSION] 37, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 39, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @idRoleAQMSpecialist, 1

---ManageFolder
EXEC [METADATA_ROLE_PERMISSION] 42, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 43, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 44, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 45, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 46, @idRoleAQMSpecialist, 1

--ManageMail
EXEC [METADATA_ROLE_PERMISSION] 48, @idRoleAQMSpecialist, 1

---ManageMailAccount
EXEC [METADATA_ROLE_PERMISSION] 52, @idRoleAQMSpecialist, 1

--ManageReport
EXEC [METADATA_ROLE_PERMISSION] 60, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 61, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 62, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 63, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 64, @idRoleAQMSpecialist, 1

--ManageDashBoard
EXEC [METADATA_ROLE_PERMISSION] 71, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 72, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 73, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 74, @idRoleAQMSpecialist, 1

---ManageCategory
EXEC [METADATA_ROLE_PERMISSION] 76, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 77, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 78, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 79, @idRoleAQMSpecialist, 1

---Document publisher
EXEC [METADATA_ROLE_PERMISSION] 37, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 39, @idRoleAQMSpecialist, 1

---Folder Publisher
EXEC [METADATA_ROLE_PERMISSION] 42, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 43, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 44, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 46, @idRoleAQMSpecialist, 1

---Manage Template
EXEC [METADATA_ROLE_PERMISSION] 89, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 90, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 91, @idRoleAQMSpecialist, 1
EXEC [METADATA_ROLE_PERMISSION] 92, @idRoleAQMSpecialist, 1
GO
PRINT '005_AFW_TASK'
EXEC [METADATA_TASK] 29001, 'Sending Reports', 'Aranda.AQM.Tasks.SendReportTask', 'Aranda.AQM.dll', 1
EXEC [METADATA_TASK] 29002, 'Install Store Items', 'Aranda.AQM.Tasks.InstallStoreItemTask', 'Aranda.AQM.dll', 1
EXEC [METADATA_TASK] 29003, 'Publish Reports', 'Aranda.AQM.Tasks.PublishReportTask', 'Aranda.AQM.dll', 1
EXEC [METADATA_TASK] 29004, 'Export Documents', 'Aranda.AQM.Tasks.ExportDocumentsTask', 'Aranda.AQM.dll', 1
EXEC [METADATA_TASK] 29005, 'Import Documents', 'Aranda.AQM.Tasks.ImportDocumentsTask', 'Aranda.AQM.dll', 1
GO
PRINT '006_AFW_MAIL_TEMPLATE'
--                             mate_name                        project_id  category_id  subject                            format  default     sender      senderName   body
EXEC [METADATA_MAIL_TEMPLATE] 'AQMNewReportAttachment',         0,          NULL,		'AQM - Tienes un reporte',			0,      0,          NULL,       NULL,       '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="format-detection" content="telephone=no" /> <!-- disable auto telephone linking in iOS --> <title>Respmail is a response HTML email designed to work on all major email platforms and smartphones</title> <style type="text/css"> /* RESET STYLES */ html { background-color:#E1E1E1; margin:0; padding:0; } body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0; width:100% !important;font-family:Helvetica, Arial, "Lucida Grande", sans-serif;} table{border-collapse:collapse;} table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important;color:#7A7A7A;font-weight:normal;} img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;} a {text-decoration:none !important;border-bottom: 1px solid;} h1, h2, h3, h4, h5, h6{color:#5F5F5F; font-weight:normal; font-family:Helvetica; font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;} /* CLIENT-SPECIFIC STYLES */ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail/Outlook.com to display emails at full width. */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;} /* Force Hotmail/Outlook.com to display line heights normally. */ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up. */ #outlook a{padding:0;} /* Force Outlook 2007 and up to provide a "view in browser" message. */ img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* Force IE to smoothly render resized images. */ body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;} /* Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. */ .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} /* Force hotmail to push 2-grid sub headers down */ /* /\/\/\/\/\/\/\/\/ TEMPLATE STYLES /\/\/\/\/\/\/\/\/ */ /* ========== Page Styles ========== */ h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;} h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;} h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;} h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;} .flexibleImage{height:auto;} .linkRemoveBorder{border-bottom:0 !important;} table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;} body, #bodyTable{background-color:#E1E1E1;} #emailHeader{background-color:#E1E1E1;} #emailBody{background-color:#FFFFFF;} #emailFooter{background-color:#E1E1E1;} .nestedContainer{background-color:#F8F8F8; border:1px solid #CCCCCC;} .emailButton{background-color:#205478; border-collapse:separate;} .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;} .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;} .emailCalendar{background-color:#FFFFFF; border:1px solid #CCCCCC;} .emailCalendarMonth{background-color:#205478; color:#FFFFFF; font-family:Helvetica, Arial, sans-serif; font-size:16px; font-weight:bold; padding-top:10px; padding-bottom:10px; text-align:center;} .emailCalendarDay{color:#205478; font-family:Helvetica, Arial, sans-serif; font-size:60px; font-weight:bold; line-height:100%; padding-top:20px; padding-bottom:20px; text-align:center;} .imageContentText {margin-top: 10px;line-height:0;} .imageContentText a {line-height:0;} #invisibleIntroduction {display:none !important;} /* Removing the introduction text from the view */ /*FRAMEWORK HACKS & OVERRIDES */ span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* Remove all link colors in IOS (below are duplicates based on the color preference) */ span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;} span[class=ios-color-hack3] a {color:#8B8B8B!important;text-decoration:none!important;} /* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers that look like, but are not phone numbers.  Use these two blocks of code to "unstyle" any numbers that may be linked.  The second block gives you a class to apply with a span tag to the numbers you would like linked and styled. Inspired by Campaign Monitors article on using phone numbers in email: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/. */ .a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;} .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;} /* MOBILE STYLES */ @media only screen and (max-width: 480px){ /*////// CLIENT-SPECIFIC STYLES //////*/ body{width:100% !important; min-width:100% !important;} /* Force iOS Mail to render the email at full width. */ /* FRAMEWORK STYLES */ /* CSS selectors are written in attribute selector format to prevent Yahoo Mail from rendering media query styles on desktop. */ /*td[class="textContent"], td[class="flexibleContainerCell"] { width: 100%; padding-left: 10px !important; padding-right: 10px !important; }*/ table[id="emailHeader"], table[id="emailBody"], table[id="emailFooter"], table[class="flexibleContainer"], td[class="flexibleContainerCell"] {width:100% !important;} td[class="flexibleContainerBox"], td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;} /* The following style rule makes any image classed with flexibleImage fluid when the query activates. Make sure you add an inline max-width to those images to prevent them from blowing out. */ td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; } img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;} img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;} /* Create top space for every second element in a block */ table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;} /* Make buttons in the email span the full width of their container, allowing for left- or right-handed ease of use. */ table[class="emailButton"]{width:100% !important;} td[class="buttonContent"]{padding:0 !important;} td[class="buttonContent"] a{padding:15px !important;} } /*  CONDITIONS FOR ANDROID DEVICES ONLY *   http://developer.android.com/guide/webapps/targeting.html *   http://pugetworks.com/2011/04/css-media-queries-for-targeting-different-mobile-devices/ ; =====================================================*/ @media only screen and (-webkit-device-pixel-ratio:.75){ /* Put CSS for low density (ldpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1){ /* Put CSS for medium density (mdpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1.5){ /* Put CSS for high density (hdpi) Android layouts in here */ } /* end Android targeting */ /* CONDITIONS FOR IOS DEVICES ONLY =====================================================*/ @media only screen and (min-device-width : 320px) and (max-device-width:568px) { } /* end IOS targeting */ </style> <!-- Outlook Conditional CSS These two style blocks target Outlook 2007 & 2010 specifically, forcing columns into a single vertical stack as on mobile clients. This is primarily done to avoid the page break bug and is optional. More information here: http://templates.mailchimp.com/development/css/outlook-conditional-css --> <!--[if mso 12]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} </style> <![endif]--> <!--[if mso 14]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} .auto-style1 { font-family: Helvetica, Arial, sans-serif; font-size: 15px; } </style> <![endif]--> </head> <body bgcolor="#E1E1E1" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">  <!-- CENTER THE EMAIL // --> <!-- 1.  The center tag should normally put all the content in the middle of the email page. I added "table-layout: fixed;" style to force yahoomail which by default put the content left. 2.  For hotmail and yahoomail, the contents of the email starts from this center, so we try to apply necessary styling e.g. background-color. --> <center style="background-color:#E1E1E1;"> <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;"> <tr> <td align="center" valign="top" id="bodyCell">   <!-- EMAIL BODY // --> <!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --> <table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="500" id="emailBody">  <!-- MODULE ROW // --> <!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <!-- The centering table keeps the content tables centered in the emailBody table, in case its width is set to 100%. --> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#FFFFFF;" bgcolor="#3498db"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <!-- The flexible container has a set width that gets overridden by the media query. Most content tables within can then be given 100% widths. --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell">  <!-- CONTENT TABLE // --> <!-- The content table is the first element thats entirely separate from the structural framework of the email. --> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td align="center" valign="top" class="textContent"> <h1 style="color:#FFFFFF;line-height:100%;font-family:Helvetica,Arial,sans-serif;font-size:35px;font-weight:normal;margin-bottom:5px;text-align:center;">Aranda Query Manager</h1> <h2 style="text-align:center;font-weight:normal;font-family:Helvetica,Arial,sans-serif;font-size:23px;margin-bottom:10px;color:#205478;line-height:135%;"></h2> <div style="text-align:center;margin-bottom:0;line-height:135%;" class="auto-style1">Has recibido un reporte</div> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <!--  The "mc:hideable" is a feature for MailChimp which allows you to disable certain row. It works perfectly for our row structure. http://kb.mailchimp.com/article/template-language-creating-editable-content-areas/ --> <tr mc:hideable> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"> <tr></tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#F8F8F8"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell"> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td align="center" valign="top">  <!-- CONTENT TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="textContent"> <!-- The "mc:edit" is a feature for MailChimp which allows you to edit certain row. It makes it easy for you to quickly edit row sections. http://kb.mailchimp.com/templates/code/create-editable-content-areas-with-mailchimps-template-language --> <h3 mc:edit="header" style="color:#5F5F5F;line-height:125%;font-family:Helvetica,Arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">{{Title}}</h3> <div mc:edit="body" style="text-align:left;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">{{Description}}</div> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr style="padding-top:0;"> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td style="padding-top:0;" align="center" valign="top" width="500" class="flexibleContainerCell">  <!-- CONTENT TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="50%" class="emailButton" style="background-color: #3498DB;"> <tr> <td align="center" valign="middle" class="buttonContent" style="padding-top:15px;padding-bottom:15px;padding-right:15px;padding-left:15px;"> <a style="color:#FFFFFF;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:20px;line-height:135%;" href="{{Url}}" target="_blank">Ir al reporte</a> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --><!-- EMAIL FOOTER // --> <!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --> <table bgcolor="#E1E1E1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailFooter">  <!-- FOOTER ROW // --> <!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell"> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td valign="top" bgcolor="#E1E1E1">  <div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;"> <div>Copyright &#169; 2017 <a href="http://www.arandasoft.com" target="_blank" style="text-decoration:none;color:#828282;"><span style="color:#828282;">Aranda Software</span></a>. Todos&nbsp;los&nbsp;derechos&nbsp;reservados.</div> </div>  </td> </tr> </table> </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr>  </table> <!-- // END -->  </td> </tr> </table> </center> </body> </html>'
EXEC [METADATA_MAIL_TEMPLATE] 'AQMNewReportLinkToDownload',     0,          NULL,		'AQM - Tienes un reporte',			0,      0,          NULL,       NULL,       '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="format-detection" content="telephone=no" /> <!-- disable auto telephone linking in iOS --> <title>Respmail is a response HTML email designed to work on all major email platforms and smartphones</title> <style type="text/css"> /* RESET STYLES */ html { background-color:#E1E1E1; margin:0; padding:0; } body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0; width:100% !important;font-family:Helvetica, Arial, "Lucida Grande", sans-serif;} table{border-collapse:collapse;} table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important;color:#7A7A7A;font-weight:normal;} img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;} a {text-decoration:none !important;border-bottom: 1px solid;} h1, h2, h3, h4, h5, h6{color:#5F5F5F; font-weight:normal; font-family:Helvetica; font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;} /* CLIENT-SPECIFIC STYLES */ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail/Outlook.com to display emails at full width. */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;} /* Force Hotmail/Outlook.com to display line heights normally. */ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up. */ #outlook a{padding:0;} /* Force Outlook 2007 and up to provide a "view in browser" message. */ img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* Force IE to smoothly render resized images. */ body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;} /* Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. */ .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} /* Force hotmail to push 2-grid sub headers down */ /* /\/\/\/\/\/\/\/\/ TEMPLATE STYLES /\/\/\/\/\/\/\/\/ */ /* ========== Page Styles ========== */ h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;} h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;} h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;} h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;} .flexibleImage{height:auto;} .linkRemoveBorder{border-bottom:0 !important;} table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;} body, #bodyTable{background-color:#E1E1E1;} #emailHeader{background-color:#E1E1E1;} #emailBody{background-color:#FFFFFF;} #emailFooter{background-color:#E1E1E1;} .nestedContainer{background-color:#F8F8F8; border:1px solid #CCCCCC;} .emailButton{background-color:#205478; border-collapse:separate;} .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;} .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;} .emailCalendar{background-color:#FFFFFF; border:1px solid #CCCCCC;} .emailCalendarMonth{background-color:#205478; color:#FFFFFF; font-family:Helvetica, Arial, sans-serif; font-size:16px; font-weight:bold; padding-top:10px; padding-bottom:10px; text-align:center;} .emailCalendarDay{color:#205478; font-family:Helvetica, Arial, sans-serif; font-size:60px; font-weight:bold; line-height:100%; padding-top:20px; padding-bottom:20px; text-align:center;} .imageContentText {margin-top: 10px;line-height:0;} .imageContentText a {line-height:0;} #invisibleIntroduction {display:none !important;} /* Removing the introduction text from the view */ /*FRAMEWORK HACKS & OVERRIDES */ span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* Remove all link colors in IOS (below are duplicates based on the color preference) */ span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;} span[class=ios-color-hack3] a {color:#8B8B8B!important;text-decoration:none!important;} /* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers that look like, but are not phone numbers.  Use these two blocks of code to "unstyle" any numbers that may be linked.  The second block gives you a class to apply with a span tag to the numbers you would like linked and styled. Inspired by Campaign Monitors article on using phone numbers in email: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/. */ .a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;} .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;} /* MOBILE STYLES */ @media only screen and (max-width: 480px){ /*////// CLIENT-SPECIFIC STYLES //////*/ body{width:100% !important; min-width:100% !important;} /* Force iOS Mail to render the email at full width. */ /* FRAMEWORK STYLES */ /* CSS selectors are written in attribute selector format to prevent Yahoo Mail from rendering media query styles on desktop. */ /*td[class="textContent"], td[class="flexibleContainerCell"] { width: 100%; padding-left: 10px !important; padding-right: 10px !important; }*/ table[id="emailHeader"], table[id="emailBody"], table[id="emailFooter"], table[class="flexibleContainer"], td[class="flexibleContainerCell"] {width:100% !important;} td[class="flexibleContainerBox"], td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;} /* The following style rule makes any image classed with flexibleImage fluid when the query activates. Make sure you add an inline max-width to those images to prevent them from blowing out. */ td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; } img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;} img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;} /* Create top space for every second element in a block */ table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;} /* Make buttons in the email span the full width of their container, allowing for left- or right-handed ease of use. */ table[class="emailButton"]{width:100% !important;} td[class="buttonContent"]{padding:0 !important;} td[class="buttonContent"] a{padding:15px !important;} } /*  CONDITIONS FOR ANDROID DEVICES ONLY *   http://developer.android.com/guide/webapps/targeting.html *   http://pugetworks.com/2011/04/css-media-queries-for-targeting-different-mobile-devices/ ; =====================================================*/ @media only screen and (-webkit-device-pixel-ratio:.75){ /* Put CSS for low density (ldpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1){ /* Put CSS for medium density (mdpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1.5){ /* Put CSS for high density (hdpi) Android layouts in here */ } /* end Android targeting */ /* CONDITIONS FOR IOS DEVICES ONLY =====================================================*/ @media only screen and (min-device-width : 320px) and (max-device-width:568px) { } /* end IOS targeting */ </style> <!-- Outlook Conditional CSS These two style blocks target Outlook 2007 & 2010 specifically, forcing columns into a single vertical stack as on mobile clients. This is primarily done to avoid the page break bug and is optional. More information here: http://templates.mailchimp.com/development/css/outlook-conditional-css --> <!--[if mso 12]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} </style> <![endif]--> <!--[if mso 14]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} .auto-style1 { font-family: Helvetica, Arial, sans-serif; font-size: 15px; } </style> <![endif]--> </head> <body bgcolor="#E1E1E1" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">  <!-- CENTER THE EMAIL // --> <!-- 1.  The center tag should normally put all the content in the middle of the email page. I added "table-layout: fixed;" style to force yahoomail which by default put the content left. 2.  For hotmail and yahoomail, the contents of the email starts from this center, so we try to apply necessary styling e.g. background-color. --> <center style="background-color:#E1E1E1;"> <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;"> <tr> <td align="center" valign="top" id="bodyCell">   <!-- EMAIL BODY // --> <!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --> <table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="500" id="emailBody">  <!-- MODULE ROW // --> <!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <!-- The centering table keeps the content tables centered in the emailBody table, in case its width is set to 100%. --> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#FFFFFF;" bgcolor="#3498db"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <!-- The flexible container has a set width that gets overridden by the media query. Most content tables within can then be given 100% widths. --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell">  <!-- CONTENT TABLE // --> <!-- The content table is the first element thats entirely separate from the structural framework of the email. --> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td align="center" valign="top" class="textContent"> <h1 style="color:#FFFFFF;line-height:100%;font-family:Helvetica,Arial,sans-serif;font-size:35px;font-weight:normal;margin-bottom:5px;text-align:center;">Aranda Query Manager</h1> <h2 style="text-align:center;font-weight:normal;font-family:Helvetica,Arial,sans-serif;font-size:23px;margin-bottom:10px;color:#205478;line-height:135%;"></h2> <div style="text-align:center;margin-bottom:0;line-height:135%;" class="auto-style1">Has recibido un reporte</div> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <!--  The "mc:hideable" is a feature for MailChimp which allows you to disable certain row. It works perfectly for our row structure. http://kb.mailchimp.com/article/template-language-creating-editable-content-areas/ --> <tr mc:hideable> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"> <tr></tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#F8F8F8"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell"> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td align="center" valign="top">  <!-- CONTENT TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="textContent"> <!-- The "mc:edit" is a feature for MailChimp which allows you to edit certain row. It makes it easy for you to quickly edit row sections. http://kb.mailchimp.com/templates/code/create-editable-content-areas-with-mailchimps-template-language --> <h3 mc:edit="header" style="color:#5F5F5F;line-height:125%;font-family:Helvetica,Arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">{{Title}}</h3> <div mc:edit="body" style="text-align:left;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">{{Description}}</div> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr style="padding-top:0;"> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td style="padding-top:0;" align="center" valign="top" width="500" class="flexibleContainerCell">  <!-- CONTENT TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="50%" class="emailButton" style="background-color: #3498DB;"> <tr> <td align="center" valign="middle" class="buttonContent" style="padding-top:15px;padding-bottom:15px;padding-right:15px;padding-left:15px;"> <a style="color:#FFFFFF;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:20px;line-height:135%;" href="{{Url}}" target="_blank">Descargar</a> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- EMAIL FOOTER // --> <!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --> <table bgcolor="#E1E1E1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailFooter">  <!-- FOOTER ROW // --> <!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell"> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td valign="top" bgcolor="#E1E1E1">  <div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;"> <div>Copyright &#169; 2017 <a href="http://www.arandasoft.com" target="_blank" style="text-decoration:none;color:#828282;"><span style="color:#828282;">Aranda Software</span></a>. Todos&nbsp;los&nbsp;derechos&nbsp;reservados.</div> </div>  </td> </tr> </table> </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr>  </table> <!-- // END -->  </td> </tr> </table> </center> </body> </html>'
EXEC [METADATA_MAIL_TEMPLATE] 'AQMActivationAccountStore',      0,          NULL,		'AQM - Activa la tienda',			0,      0,          NULL,       NULL,       '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="format-detection" content="telephone=no" /> <!-- disable auto telephone linking in iOS --> <title>Respmail is a response HTML email designed to work on all major email platforms and smartphones</title> <style type="text/css"> /* RESET STYLES */ html { background-color:#E1E1E1; margin:0; padding:0; } body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0; width:100% !important;font-family:Helvetica, Arial, "Lucida Grande", sans-serif;} table{border-collapse:collapse;} table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important;color:#7A7A7A;font-weight:normal;} img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;} a {text-decoration:none !important;border-bottom: 1px solid;} h1, h2, h3, h4, h5, h6{color:#5F5F5F; font-weight:normal; font-family:Helvetica; font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;} /* CLIENT-SPECIFIC STYLES */ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail/Outlook.com to display emails at full width. */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;} /* Force Hotmail/Outlook.com to display line heights normally. */ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up. */ #outlook a{padding:0;} /* Force Outlook 2007 and up to provide a "view in browser" message. */ img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* Force IE to smoothly render resized images. */ body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;} /* Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. */ .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} /* Force hotmail to push 2-grid sub headers down */ /* /\/\/\/\/\/\/\/\/ TEMPLATE STYLES /\/\/\/\/\/\/\/\/ */ /* ========== Page Styles ========== */ h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;} h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;} h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;} h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;} .flexibleImage{height:auto;} .linkRemoveBorder{border-bottom:0 !important;} table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;} body, #bodyTable{background-color:#E1E1E1;} #emailHeader{background-color:#E1E1E1;} #emailBody{background-color:#FFFFFF;} #emailFooter{background-color:#E1E1E1;} .nestedContainer{background-color:#F8F8F8; border:1px solid #CCCCCC;} .emailButton{background-color:#205478; border-collapse:separate;} .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;} .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;} .emailCalendar{background-color:#FFFFFF; border:1px solid #CCCCCC;} .emailCalendarMonth{background-color:#205478; color:#FFFFFF; font-family:Helvetica, Arial, sans-serif; font-size:16px; font-weight:bold; padding-top:10px; padding-bottom:10px; text-align:center;} .emailCalendarDay{color:#205478; font-family:Helvetica, Arial, sans-serif; font-size:60px; font-weight:bold; line-height:100%; padding-top:20px; padding-bottom:20px; text-align:center;} .imageContentText {margin-top: 10px;line-height:0;} .imageContentText a {line-height:0;} #invisibleIntroduction {display:none !important;} /* Removing the introduction text from the view */ /*FRAMEWORK HACKS & OVERRIDES */ span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* Remove all link colors in IOS (below are duplicates based on the color preference) */ span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;} span[class=ios-color-hack3] a {color:#8B8B8B!important;text-decoration:none!important;} /* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers that look like, but are not phone numbers.  Use these two blocks of code to "unstyle" any numbers that may be linked.  The second block gives you a class to apply with a span tag to the numbers you would like linked and styled. Inspired by Campaign Monitors article on using phone numbers in email: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/. */ .a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;} .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;} /* MOBILE STYLES */ @media only screen and (max-width: 480px){ /*////// CLIENT-SPECIFIC STYLES //////*/ body{width:100% !important; min-width:100% !important;} /* Force iOS Mail to render the email at full width. */ /* FRAMEWORK STYLES */ /* CSS selectors are written in attribute selector format to prevent Yahoo Mail from rendering media query styles on desktop. */ /*td[class="textContent"], td[class="flexibleContainerCell"] { width: 100%; padding-left: 10px !important; padding-right: 10px !important; }*/ table[id="emailHeader"], table[id="emailBody"], table[id="emailFooter"], table[class="flexibleContainer"], td[class="flexibleContainerCell"] {width:100% !important;} td[class="flexibleContainerBox"], td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;} /* The following style rule makes any image classed with flexibleImage fluid when the query activates. Make sure you add an inline max-width to those images to prevent them from blowing out. */ td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; } img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;} img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;} /* Create top space for every second element in a block */ table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;} /* Make buttons in the email span the full width of their container, allowing for left- or right-handed ease of use. */ table[class="emailButton"]{width:100% !important;} td[class="buttonContent"]{padding:0 !important;} td[class="buttonContent"] a{padding:15px !important;} } /*  CONDITIONS FOR ANDROID DEVICES ONLY *   http://developer.android.com/guide/webapps/targeting.html *   http://pugetworks.com/2011/04/css-media-queries-for-targeting-different-mobile-devices/ ; =====================================================*/ @media only screen and (-webkit-device-pixel-ratio:.75){ /* Put CSS for low density (ldpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1){ /* Put CSS for medium density (mdpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1.5){ /* Put CSS for high density (hdpi) Android layouts in here */ } /* end Android targeting */ /* CONDITIONS FOR IOS DEVICES ONLY =====================================================*/ @media only screen and (min-device-width : 320px) and (max-device-width:568px) { } /* end IOS targeting */ </style> <!-- Outlook Conditional CSS These two style blocks target Outlook 2007 & 2010 specifically, forcing columns into a single vertical stack as on mobile clients. This is primarily done to avoid the page break bug and is optional. More information here: http://templates.mailchimp.com/development/css/outlook-conditional-css --> <!--[if mso 12]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} </style> <![endif]--> <!--[if mso 14]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} .auto-style1 { font-family: Helvetica, Arial, sans-serif; font-size: 15px; } .auto-style2 { height: 48px; } </style> <![endif]--> </head> <body bgcolor="#E1E1E1" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">  <!-- CENTER THE EMAIL // --> <!-- 1.  The center tag should normally put all the content in the middle of the email page. I added "table-layout: fixed;" style to force yahoomail which by default put the content left. 2.  For hotmail and yahoomail, the contents of the email starts from this center, so we try to apply necessary styling e.g. background-color. --> <center style="background-color:#E1E1E1;"> <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;"> <tr> <td align="center" valign="top" id="bodyCell">   <!-- EMAIL BODY // --> <!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --> <table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="500" id="emailBody">  <!-- MODULE ROW // --> <!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <!-- The centering table keeps the content tables centered in the emailBody table, in case its width is set to 100%. --> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#FFFFFF;" bgcolor="#3498db"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <!-- The flexible container has a set width that gets overridden by the media query. Most content tables within can then be given 100% widths. --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell">  <!-- CONTENT TABLE // --> <!-- The content table is the first element thats entirely separate from the structural framework of the email. --> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td align="center" valign="top" class="textContent"> <h1 style="color:#FFFFFF;line-height:100%;font-family:Helvetica,Arial,sans-serif;font-size:35px;font-weight:normal;margin-bottom:5px;text-align:center;">Aranda Query Manager</h1> <h2 style="text-align:center;font-weight:normal;font-family:Helvetica,Arial,sans-serif;font-size:23px;margin-bottom:10px;color:#205478;line-height:135%;"></h2> <div style="text-align:center;margin-bottom:0;line-height:135%;" class="auto-style1">Has recibido un código para activar la tienda de reportes</div> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <!--  The "mc:hideable" is a feature for MailChimp which allows you to disable certain row. It works perfectly for our row structure. http://kb.mailchimp.com/article/template-language-creating-editable-content-areas/ --> <tr mc:hideable=mc:hideable> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"> <tr></tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#F8F8F8"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell"> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td align="center" valign="top">  <!-- CONTENT TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="auto-style2"> <!-- The "mc:edit" is a feature for MailChimp which allows you to edit certain row. It makes it easy for you to quickly edit row sections. http://kb.mailchimp.com/templates/code/create-editable-content-areas-with-mailchimps-template-language --> <h3 mc:edit="header" style="color:#5F5F5F;line-height:125%;font-family:Helvetica,Arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">Código de activación</h3> <div mc:edit="body" style="text-align:left;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">Introduce este código en la tienda. Con esto podras acceder al contenido publicado por Aranda en temas de reportes y dashboard.</div> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr style="padding-top:0;"> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td style="padding-top:0;" align="center" valign="top" width="500" class="flexibleContainerCell">  <!-- CONTENT TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="emailButton" style="background-color: #3498DB;"> <tr> <td align="center" valign="middle" class="buttonContent" style="padding-top:15px;padding-bottom:15px;padding-right:15px;padding-left:15px;"> <div style="color:#FFFFFF;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:20px;line-height:135%;">{{Code}}</div> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- EMAIL FOOTER // --> <!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --> <table bgcolor="#E1E1E1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailFooter">  <!-- FOOTER ROW // --> <!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell"> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td valign="top" bgcolor="#E1E1E1">  <div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;"> <div>Copyright &#169; 2017 <a href="http://www.arandasoft.com" target="_blank" style="text-decoration:none;color:#828282;"><span style="color:#828282;">Aranda Software</span></a>. Todos&nbsp;los&nbsp;derechos&nbsp;reservados.</div> </div>  </td> </tr> </table> </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr>  </table> <!-- // END -->  </table>  </td> </tr> </table> </center> </body> </html>'
EXEC [METADATA_MAIL_TEMPLATE] 'AQMNewReportShare',              0,          NULL,		'AQM - Tienes un reporte',			0,      0,          NULL,       NULL,       '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="format-detection" content="telephone=no" /> <!-- disable auto telephone linking in iOS --> <title>Respmail is a response HTML email designed to work on all major email platforms and smartphones</title> <style type="text/css"> /* RESET STYLES */ html { background-color:#E1E1E1; margin:0; padding:0; } body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0; width:100% !important;font-family:Helvetica, Arial, "Lucida Grande", sans-serif;} table{border-collapse:collapse;} table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important;color:#7A7A7A;font-weight:normal;} img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;} a {text-decoration:none !important;border-bottom: 1px solid;} h1, h2, h3, h4, h5, h6{color:#5F5F5F; font-weight:normal; font-family:Helvetica; font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;} /* CLIENT-SPECIFIC STYLES */ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail/Outlook.com to display emails at full width. */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;} /* Force Hotmail/Outlook.com to display line heights normally. */ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up. */ #outlook a{padding:0;} /* Force Outlook 2007 and up to provide a "view in browser" message. */ img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* Force IE to smoothly render resized images. */ body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;} /* Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. */ .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} /* Force hotmail to push 2-grid sub headers down */ /* /\/\/\/\/\/\/\/\/ TEMPLATE STYLES /\/\/\/\/\/\/\/\/ */ /* ========== Page Styles ========== */ h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;} h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;} h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;} h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;} .flexibleImage{height:auto;} .linkRemoveBorder{border-bottom:0 !important;} table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;} body, #bodyTable{background-color:#E1E1E1;} #emailHeader{background-color:#E1E1E1;} #emailBody{background-color:#FFFFFF;} #emailFooter{background-color:#E1E1E1;} .nestedContainer{background-color:#F8F8F8; border:1px solid #CCCCCC;} .emailButton{background-color:#205478; border-collapse:separate;} .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;} .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;} .emailCalendar{background-color:#FFFFFF; border:1px solid #CCCCCC;} .emailCalendarMonth{background-color:#205478; color:#FFFFFF; font-family:Helvetica, Arial, sans-serif; font-size:16px; font-weight:bold; padding-top:10px; padding-bottom:10px; text-align:center;} .emailCalendarDay{color:#205478; font-family:Helvetica, Arial, sans-serif; font-size:60px; font-weight:bold; line-height:100%; padding-top:20px; padding-bottom:20px; text-align:center;} .imageContentText {margin-top: 10px;line-height:0;} .imageContentText a {line-height:0;} #invisibleIntroduction {display:none !important;} /* Removing the introduction text from the view */ /*FRAMEWORK HACKS & OVERRIDES */ span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* Remove all link colors in IOS (below are duplicates based on the color preference) */ span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;} span[class=ios-color-hack3] a {color:#8B8B8B!important;text-decoration:none!important;} /* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers that look like, but are not phone numbers.  Use these two blocks of code to "unstyle" any numbers that may be linked.  The second block gives you a class to apply with a span tag to the numbers you would like linked and styled. Inspired by Campaign Monitors article on using phone numbers in email: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/. */ .a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;} .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;} /* MOBILE STYLES */ @media only screen and (max-width: 480px){ /*////// CLIENT-SPECIFIC STYLES //////*/ body{width:100% !important; min-width:100% !important;} /* Force iOS Mail to render the email at full width. */ /* FRAMEWORK STYLES */ /* CSS selectors are written in attribute selector format to prevent Yahoo Mail from rendering media query styles on desktop. */ /*td[class="textContent"], td[class="flexibleContainerCell"] { width: 100%; padding-left: 10px !important; padding-right: 10px !important; }*/ table[id="emailHeader"], table[id="emailBody"], table[id="emailFooter"], table[class="flexibleContainer"], td[class="flexibleContainerCell"] {width:100% !important;} td[class="flexibleContainerBox"], td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;} /* The following style rule makes any image classed with flexibleImage fluid when the query activates. Make sure you add an inline max-width to those images to prevent them from blowing out. */ td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; } img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;} img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;} /* Create top space for every second element in a block */ table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;} /* Make buttons in the email span the full width of their container, allowing for left- or right-handed ease of use. */ table[class="emailButton"]{width:100% !important;} td[class="buttonContent"]{padding:0 !important;} td[class="buttonContent"] a{padding:15px !important;} } /*  CONDITIONS FOR ANDROID DEVICES ONLY *   http://developer.android.com/guide/webapps/targeting.html *   http://pugetworks.com/2011/04/css-media-queries-for-targeting-different-mobile-devices/ ; =====================================================*/ @media only screen and (-webkit-device-pixel-ratio:.75){ /* Put CSS for low density (ldpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1){ /* Put CSS for medium density (mdpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1.5){ /* Put CSS for high density (hdpi) Android layouts in here */ } /* end Android targeting */ /* CONDITIONS FOR IOS DEVICES ONLY =====================================================*/ @media only screen and (min-device-width : 320px) and (max-device-width:568px) { } /* end IOS targeting */ </style> <!-- Outlook Conditional CSS These two style blocks target Outlook 2007 & 2010 specifically, forcing columns into a single vertical stack as on mobile clients. This is primarily done to avoid the page break bug and is optional. More information here: http://templates.mailchimp.com/development/css/outlook-conditional-css --> <!--[if mso 12]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} </style> <![endif]--> <!--[if mso 14]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} .auto-style1 { font-family: Helvetica, Arial, sans-serif; font-size: 15px; } </style> <![endif]--> </head> <body bgcolor="#E1E1E1" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">  <!-- CENTER THE EMAIL // --> <!-- 1.  The center tag should normally put all the content in the middle of the email page. I added "table-layout: fixed;" style to force yahoomail which by default put the content left. 2.  For hotmail and yahoomail, the contents of the email starts from this center, so we try to apply necessary styling e.g. background-color. --> <center style="background-color:#E1E1E1;"> <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;"> <tr> <td align="center" valign="top" id="bodyCell">   <!-- EMAIL BODY // --> <!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --> <table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="500" id="emailBody">  <!-- MODULE ROW // --> <!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <!-- The centering table keeps the content tables centered in the emailBody table, in case its width is set to 100%. --> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#FFFFFF;" bgcolor="#3498db"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <!-- The flexible container has a set width that gets overridden by the media query. Most content tables within can then be given 100% widths. --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell">  <!-- CONTENT TABLE // --> <!-- The content table is the first element thats entirely separate from the structural framework of the email. --> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td align="center" valign="top" class="textContent"> <h1 style="color:#FFFFFF;line-height:100%;font-family:Helvetica,Arial,sans-serif;font-size:35px;font-weight:normal;margin-bottom:5px;text-align:center;">Aranda Query Manager</h1> <h2 style="text-align:center;font-weight:normal;font-family:Helvetica,Arial,sans-serif;font-size:23px;margin-bottom:10px;color:#205478;line-height:135%;"></h2> <div style="text-align:center;margin-bottom:0;line-height:135%;" class="auto-style1">Has recibido un reporte</div> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <!--  The "mc:hideable" is a feature for MailChimp which allows you to disable certain row. It works perfectly for our row structure. http://kb.mailchimp.com/article/template-language-creating-editable-content-areas/ --> <tr mc:hideable> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"> <tr></tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#F8F8F8"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell"> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td align="center" valign="top">  <!-- CONTENT TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="textContent"> <!-- The "mc:edit" is a feature for MailChimp which allows you to edit certain row. It makes it easy for you to quickly edit row sections. http://kb.mailchimp.com/templates/code/create-editable-content-areas-with-mailchimps-template-language --> <h3 mc:edit="header" style="color:#5F5F5F;line-height:125%;font-family:Helvetica,Arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">{{Title}}</h3> <div mc:edit="body" style="text-align:left;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">{{Description}}</div> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --> <!-- MODULE ROW // --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr style="padding-top:0;"> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td style="padding-top:0;" align="center" valign="top" width="500" class="flexibleContainerCell">  <!-- CONTENT TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="50%" class="" style=""> <tr> <td align="center" valign="middle" class="" style=""> <img src="cid:{{Qr}}" height="150" width="150"></img> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --><!-- MODULE ROW // --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr style="padding-top:0;"> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td style="padding-top:0;" align="center" valign="top" width="500" class="flexibleContainerCell">  <!-- CONTENT TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="50%" class="emailButton" style="background-color: #3498DB;"> <tr> <td align="center" valign="middle" class="buttonContent" style="padding-top:15px;padding-bottom:15px;padding-right:15px;padding-left:15px;"> <a style="color:#FFFFFF;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:20px;line-height:135%;" href="{{Url}}" target="_blank">Ir al reporte</a> </td> </tr> </table> <!-- // CONTENT TABLE -->  </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr> <!-- // MODULE ROW --><!-- EMAIL FOOTER // --> <!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --> <table bgcolor="#E1E1E1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailFooter">  <!-- FOOTER ROW // --> <!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --> <tr> <td align="center" valign="top"> <!-- CENTERING TABLE // --> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top"> <!-- FLEXIBLE CONTAINER // --> <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"> <tr> <td align="center" valign="top" width="500" class="flexibleContainerCell"> <table border="0" cellpadding="30" cellspacing="0" width="100%"> <tr> <td valign="top" bgcolor="#E1E1E1">  <div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;"> <div>Copyright &#169; 2017 <a href="http://www.arandasoft.com" target="_blank" style="text-decoration:none;color:#828282;"><span style="color:#828282;">Aranda Software</span></a>. Todos&nbsp;los&nbsp;derechos&nbsp;reservados.</div> </div>  </td> </tr> </table> </td> </tr> </table> <!-- // FLEXIBLE CONTAINER --> </td> </tr> </table> <!-- // CENTERING TABLE --> </td> </tr>  </table> <!-- // END -->  </td> </tr> </table> </center> </body> </html>'
EXEC [METADATA_MAIL_TEMPLATE] 'AQMPasswordRecovery',            0,          NULL,		'AQM - Restablecer Contraseña',		0,      0,          NULL,       NULL,       '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><meta name="format-detection" content="telephone=no" /><!-- disable auto telephone linking in iOS --><title>Respmail is a response HTML email designed to work on all major email platforms and smartphones</title><style type="text/css"> /* RESET STYLES */ html { background-color:#E1E1E1; margin:0; padding:0; } body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0; width:100% !important;font-family:Helvetica, Arial, "Lucida Grande", sans-serif;} table{border-collapse:collapse;} table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important;color:#7A7A7A;font-weight:normal;} img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;} a {text-decoration:none !important;border-bottom: 1px solid;} h1, h2, h3, h4, h5, h6{color:#5F5F5F; font-weight:normal; font-family:Helvetica; font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;} /* CLIENT-SPECIFIC STYLES */ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail/Outlook.com to display emails at full width. */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;} /* Force Hotmail/Outlook.com to display line heights normally. */ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up. */ #outlook a{padding:0;} /* Force Outlook 2007 and up to provide a "view in browser" message. */ img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* Force IE to smoothly render resized images. */ body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;} /* Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. */ .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} /* Force hotmail to push 2-grid sub headers down */ /* /\/\/\/\/\/\/\/\/ TEMPLATE STYLES /\/\/\/\/\/\/\/\/ */ /* ========== Page Styles ========== */ h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;} h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;} h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;} h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;} .flexibleImage{height:auto;} .linkRemoveBorder{border-bottom:0 !important;} table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;} body, #bodyTable{background-color:#E1E1E1;} #emailHeader{background-color:#E1E1E1;} #emailBody{background-color:#FFFFFF;} #emailFooter{background-color:#E1E1E1;} .nestedContainer{background-color:#F8F8F8; border:1px solid #CCCCCC;} .emailButton{background-color:#205478; border-collapse:separate;} .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;} .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;} .emailCalendar{background-color:#FFFFFF; border:1px solid #CCCCCC;} .emailCalendarMonth{background-color:#205478; color:#FFFFFF; font-family:Helvetica, Arial, sans-serif; font-size:16px; font-weight:bold; padding-top:10px; padding-bottom:10px; text-align:center;} .emailCalendarDay{color:#205478; font-family:Helvetica, Arial, sans-serif; font-size:60px; font-weight:bold; line-height:100%; padding-top:20px; padding-bottom:20px; text-align:center;} .imageContentText {margin-top: 10px;line-height:0;} .imageContentText a {line-height:0;} #invisibleIntroduction {display:none !important;} /* Removing the introduction text from the view */ /*FRAMEWORK HACKS & OVERRIDES */ span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* Remove all link colors in IOS (below are duplicates based on the color preference) */ span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;} span[class=ios-color-hack3] a {color:#8B8B8B!important;text-decoration:none!important;} /* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers that look like, but are not phone numbers.  Use these two blocks of code to "unstyle" any numbers that may be linked.  The second block gives you a class to apply with a span tag to the numbers you would like linked and styled. Inspired by Campaign Monitors article on using phone numbers in email: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/. */ .a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;} .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;} /* MOBILE STYLES */ @media only screen and (max-width: 480px){ /*////// CLIENT-SPECIFIC STYLES //////*/ body{width:100% !important; min-width:100% !important;} /* Force iOS Mail to render the email at full width. */ /* FRAMEWORK STYLES */ /* CSS selectors are written in attribute selector format to prevent Yahoo Mail from rendering media query styles on desktop. */ /*td[class="textContent"], td[class="flexibleContainerCell"] { width: 100%; padding-left: 10px !important; padding-right: 10px !important; }*/ table[id="emailHeader"], table[id="emailBody"], table[id="emailFooter"], table[class="flexibleContainer"], td[class="flexibleContainerCell"] {width:100% !important;} td[class="flexibleContainerBox"], td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;} /* The following style rule makes any image classed with flexibleImage fluid when the query activates. Make sure you add an inline max-width to those images to prevent them from blowing out. */ td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; } img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;} img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;} /* Create top space for every second element in a block */ table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;} /* Make buttons in the email span the full width of their container, allowing for left- or right-handed ease of use. */ table[class="emailButton"]{width:100% !important;} td[class="buttonContent"]{padding:0 !important;} td[class="buttonContent"] a{padding:15px !important;} } /*  CONDITIONS FOR ANDROID DEVICES ONLY *   http://developer.android.com/guide/webapps/targeting.html *   http://pugetworks.com/2011/04/css-media-queries-for-targeting-different-mobile-devices/ ; =====================================================*/ @media only screen and (-webkit-device-pixel-ratio:.75){ /* Put CSS for low density (ldpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1){ /* Put CSS for medium density (mdpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1.5){ /* Put CSS for high density (hdpi) Android layouts in here */ } /* end Android targeting */ /* CONDITIONS FOR IOS DEVICES ONLY =====================================================*/ @media only screen and (min-device-width : 320px) and (max-device-width:568px) { } /* end IOS targeting */ </style><!-- Outlook Conditional CSS These two style blocks target Outlook 2007 & 2010 specifically, forcing columns into a single vertical stack as on mobile clients. This is primarily done to avoid the page break bug and is optional. More information here: http://templates.mailchimp.com/development/css/outlook-conditional-css --><!--[if mso 12]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} </style> <![endif]--><!--[if mso 14]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} .auto-style1 { font-family: Helvetica, Arial, sans-serif; font-size: 15px; } .auto-style2 { height: 48px; } </style> <![endif]--></head><body bgcolor="#E1E1E1" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"><!-- CENTER THE EMAIL // --><!-- 1.  The center tag should normally put all the content in the middle of the email page. I added "table-layout: fixed;" style to force yahoomail which by default put the content left. 2.  For hotmail and yahoomail, the contents of the email starts from this center, so we try to apply necessary styling e.g. background-color. --><center style="background-color:#E1E1E1;"><table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;"><tr><td align="center" valign="top" id="bodyCell"><!-- EMAIL BODY // --><!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --><table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="500" id="emailBody"><!-- MODULE ROW // --><!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><!-- The centering table keeps the content tables centered in the emailBody table, in case its width is set to 100%. --><table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#FFFFFF;" bgcolor="#3498db"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><!-- The flexible container has a set width that gets overridden by the media query. Most content tables within can then be given 100% widths. --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><!-- CONTENT TABLE // --><!-- The content table is the first element thats entirely separate from the structural framework of the email. --><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td align="center" valign="top" class="textContent"><h1 style="color:#FFFFFF;line-height:100%;font-family:Helvetica,Arial,sans-serif;font-size:35px;font-weight:normal;margin-bottom:5px;text-align:center;">Aranda Query Manager</h1><h2 style="text-align:center;font-weight:normal;font-family:Helvetica,Arial,sans-serif;font-size:23px;margin-bottom:10px;color:#205478;line-height:135%;"/><div style="text-align:center;margin-bottom:0;line-height:135%;" class="auto-style1">Restablecimiento de Contraseña</div></td></tr></table><!-- // CONTENT TABLE --></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- MODULE ROW // --><!--  The "mc:hideable" is a feature for MailChimp which allows you to disable certain row. It works perfectly for our row structure. http://kb.mailchimp.com/article/template-language-creating-editable-content-areas/ --><tr mc:hideable=mc:hideable><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"><tr/></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- MODULE ROW // --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#F8F8F8"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- CONTENT TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top" class="auto-style2"><!-- The "mc:edit" is a feature for MailChimp which allows you to edit certain row. It makes it easy for you to quickly edit row sections. http://kb.mailchimp.com/templates/code/create-editable-content-areas-with-mailchimps-template-language --><h3 mc:edit="header" style="color:#5F5F5F;line-height:125%;font-family:Helvetica,Arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">{{USER_FULLNAME}}</h3><br>                                                                                   <div mc:edit="body" style="text-align:left;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">Fecha solicitud: {{REQUEST_DATE}}<br>Has click en el siguiente enlace.</div></td></tr></table><!-- // CONTENT TABLE --></td></tr></table></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- MODULE ROW // --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="padding-top:0;"><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"><tr><td style="padding-top:0;" align="center" valign="top" width="500" class="flexibleContainerCell"><!-- CONTENT TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%" class="emailButton" style="background-color: #3498DB;"><tr><td align="center" valign="middle" class="buttonContent" style="padding-top:15px;padding-bottom:15px;padding-right:15px;padding-left:15px;"><div style="color:#FFFFFF;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:20px;line-height:135%;"><a href="{{RECOVERY_URL}}">Entrar</a>                                                                     </div></td></tr></table><!-- // CONTENT TABLE --></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- EMAIL FOOTER // --><!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --><table bgcolor="#E1E1E1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailFooter"><!-- FOOTER ROW // --><!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td valign="top" bgcolor="#E1E1E1"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;"><div>Copyright &#169; 2017 <a href="http://www.arandasoft.com" target="_blank" style="text-decoration:none;color:#828282;"><span style="color:#828282;">Aranda Software</span></a>. Todos&nbsp;los&nbsp;derechos&nbsp;reservados.</div></div></td></tr></table></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr></table><!-- // END --></table></td></tr></table></center></body></html>'
EXEC [METADATA_MAIL_TEMPLATE] 'AQMExportDocuments',             0,          NULL,		'AQM - Exportacion de documentos',	0,      0,          NULL,       NULL,       '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><meta name="format-detection" content="telephone=no" /><!-- disable auto telephone linking in iOS --><title>Respmail is a response HTML email designed to work on all major email platforms and smartphones</title><style type="text/css"> /* RESET STYLES */ html { background-color:#E1E1E1; margin:0; padding:0; } body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0; width:100% !important;font-family:Helvetica, Arial, "Lucida Grande", sans-serif;} table{border-collapse:collapse;} table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important;color:#7A7A7A;font-weight:normal;} img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;} a {text-decoration:none !important;border-bottom: 1px solid;} h1, h2, h3, h4, h5, h6{color:#5F5F5F; font-weight:normal; font-family:Helvetica; font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;} /* CLIENT-SPECIFIC STYLES */ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail/Outlook.com to display emails at full width. */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;} /* Force Hotmail/Outlook.com to display line heights normally. */ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up. */ #outlook a{padding:0;} /* Force Outlook 2007 and up to provide a "view in browser" message. */ img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* Force IE to smoothly render resized images. */ body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;} /* Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. */ .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} /* Force hotmail to push 2-grid sub headers down */ /* /\/\/\/\/\/\/\/\/ TEMPLATE STYLES /\/\/\/\/\/\/\/\/ */ /* ========== Page Styles ========== */ h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;} h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;} h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;} h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;} .flexibleImage{height:auto;} .linkRemoveBorder{border-bottom:0 !important;} table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;} body, #bodyTable{background-color:#E1E1E1;} #emailHeader{background-color:#E1E1E1;} #emailBody{background-color:#FFFFFF;} #emailFooter{background-color:#E1E1E1;} .nestedContainer{background-color:#F8F8F8; border:1px solid #CCCCCC;} .emailButton{background-color:#205478; border-collapse:separate;} .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;} .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;} .emailCalendar{background-color:#FFFFFF; border:1px solid #CCCCCC;} .emailCalendarMonth{background-color:#205478; color:#FFFFFF; font-family:Helvetica, Arial, sans-serif; font-size:16px; font-weight:bold; padding-top:10px; padding-bottom:10px; text-align:center;} .emailCalendarDay{color:#205478; font-family:Helvetica, Arial, sans-serif; font-size:60px; font-weight:bold; line-height:100%; padding-top:20px; padding-bottom:20px; text-align:center;} .imageContentText {margin-top: 10px;line-height:0;} .imageContentText a {line-height:0;} #invisibleIntroduction {display:none !important;} /* Removing the introduction text from the view */ /*FRAMEWORK HACKS & OVERRIDES */ span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* Remove all link colors in IOS (below are duplicates based on the color preference) */ span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;} span[class=ios-color-hack3] a {color:#8B8B8B!important;text-decoration:none!important;} /* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers that look like, but are not phone numbers.  Use these two blocks of code to "unstyle" any numbers that may be linked.  The second block gives you a class to apply with a span tag to the numbers you would like linked and styled. Inspired by Campaign Monitors article on using phone numbers in email: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/. */ .a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;} .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;} /* MOBILE STYLES */ @media only screen and (max-width: 480px){ /*////// CLIENT-SPECIFIC STYLES //////*/ body{width:100% !important; min-width:100% !important;} /* Force iOS Mail to render the email at full width. */ /* FRAMEWORK STYLES */ /* CSS selectors are written in attribute selector format to prevent Yahoo Mail from rendering media query styles on desktop. */ /*td[class="textContent"], td[class="flexibleContainerCell"] { width: 100%; padding-left: 10px !important; padding-right: 10px !important; }*/ table[id="emailHeader"], table[id="emailBody"], table[id="emailFooter"], table[class="flexibleContainer"], td[class="flexibleContainerCell"] {width:100% !important;} td[class="flexibleContainerBox"], td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;} /* The following style rule makes any image classed with flexibleImage fluid when the query activates. Make sure you add an inline max-width to those images to prevent them from blowing out. */ td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; } img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;} img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;} /* Create top space for every second element in a block */ table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;} /* Make buttons in the email span the full width of their container, allowing for left- or right-handed ease of use. */ table[class="emailButton"]{width:100% !important;} td[class="buttonContent"]{padding:0 !important;} td[class="buttonContent"] a{padding:15px !important;} } /*  CONDITIONS FOR ANDROID DEVICES ONLY *   http://developer.android.com/guide/webapps/targeting.html *   http://pugetworks.com/2011/04/css-media-queries-for-targeting-different-mobile-devices/ ; =====================================================*/ @media only screen and (-webkit-device-pixel-ratio:.75){ /* Put CSS for low density (ldpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1){ /* Put CSS for medium density (mdpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1.5){ /* Put CSS for high density (hdpi) Android layouts in here */ } /* end Android targeting */ /* CONDITIONS FOR IOS DEVICES ONLY =====================================================*/ @media only screen and (min-device-width : 320px) and (max-device-width:568px) { } /* end IOS targeting */ </style><!-- Outlook Conditional CSS These two style blocks target Outlook 2007 & 2010 specifically, forcing columns into a single vertical stack as on mobile clients. This is primarily done to avoid the page break bug and is optional. More information here: http://templates.mailchimp.com/development/css/outlook-conditional-css --><!--[if mso 12]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} </style> <![endif]--><!--[if mso 14]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} .auto-style1 { font-family: Helvetica, Arial, sans-serif; font-size: 15px; } .auto-style2 { height: 48px; } </style> <![endif]--></head><body bgcolor="#E1E1E1" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"><!-- CENTER THE EMAIL // --><!-- 1.  The center tag should normally put all the content in the middle of the email page. I added "table-layout: fixed;" style to force yahoomail which by default put the content left. 2.  For hotmail and yahoomail, the contents of the email starts from this center, so we try to apply necessary styling e.g. background-color. --><center style="background-color:#E1E1E1;"><table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;"><tr><td align="center" valign="top" id="bodyCell"><!-- EMAIL BODY // --><!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --><table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="500" id="emailBody"><!-- MODULE ROW // --><!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><!-- The centering table keeps the content tables centered in the emailBody table, in case its width is set to 100%. --><table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#FFFFFF;" bgcolor="#3498db"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><!-- The flexible container has a set width that gets overridden by the media query. Most content tables within can then be given 100% widths. --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><!-- CONTENT TABLE // --><!-- The content table is the first element thats entirely separate from the structural framework of the email. --><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td align="center" valign="top" class="textContent"><h1 style="color:#FFFFFF;line-height:100%;font-family:Helvetica,Arial,sans-serif;font-size:35px;font-weight:normal;margin-bottom:5px;text-align:center;">Aranda Query Manager</h1><h2 style="text-align:center;font-weight:normal;font-family:Helvetica,Arial,sans-serif;font-size:23px;margin-bottom:10px;color:#205478;line-height:135%;"/><div style="text-align:center;margin-bottom:0;line-height:135%;" class="auto-style1">Descarga de documentos</div></td></tr></table><!-- // CONTENT TABLE --></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- MODULE ROW // --><!--  The "mc:hideable" is a feature for MailChimp which allows you to disable certain row. It works perfectly for our row structure. http://kb.mailchimp.com/article/template-language-creating-editable-content-areas/ --><tr mc:hideable=mc:hideable><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"><tr/></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- MODULE ROW // --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#F8F8F8"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- CONTENT TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top" class="auto-style2"><!-- The "mc:edit" is a feature for MailChimp which allows you to edit certain row. It makes it easy for you to quickly edit row sections. http://kb.mailchimp.com/templates/code/create-editable-content-areas-with-mailchimps-template-language --><h3 mc:edit="header" style="color:#5F5F5F;line-height:125%;font-family:Helvetica,Arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;"></h3><br><div mc:edit="body" style="text-align:left;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">Fecha solicitud: {{REQUEST_DATE}}<br>Los documentos han sido exportados, estan adjuntos en este correo</div></td></tr></table><!-- // CONTENT TABLE --></td></tr></table></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr>                                  <!-- // MODULE ROW --><!-- EMAIL FOOTER // --><!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --><table bgcolor="#E1E1E1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailFooter"><!-- FOOTER ROW // --><!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td valign="top" bgcolor="#E1E1E1"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;"><div>Copyright &#169; 2017 <a href="http://www.arandasoft.com" target="_blank" style="text-decoration:none;color:#828282;"><span style="color:#828282;">Aranda Software</span></a>. Todos&nbsp;los&nbsp;derechos&nbsp;reservados.</div></div></td></tr></table></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr></table><!-- // END --></table></td></tr></table></center></body></html>'
EXEC [METADATA_MAIL_TEMPLATE] 'AQMImportDocuments',             0,          NULL,		'AQM - Importacion de documentos',	0,      0,          NULL,       NULL,       '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><meta name="format-detection" content="telephone=no" /><!-- disable auto telephone linking in iOS --><title>Respmail is a response HTML email designed to work on all major email platforms and smartphones</title><style type="text/css"> /* RESET STYLES */ html { background-color:#E1E1E1; margin:0; padding:0; } body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0; width:100% !important;font-family:Helvetica, Arial, "Lucida Grande", sans-serif;} table{border-collapse:collapse;} table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important;color:#7A7A7A;font-weight:normal;} img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;} a {text-decoration:none !important;border-bottom: 1px solid;} h1, h2, h3, h4, h5, h6{color:#5F5F5F; font-weight:normal; font-family:Helvetica; font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;} /* CLIENT-SPECIFIC STYLES */ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail/Outlook.com to display emails at full width. */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;} /* Force Hotmail/Outlook.com to display line heights normally. */ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up. */ #outlook a{padding:0;} /* Force Outlook 2007 and up to provide a "view in browser" message. */ img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* Force IE to smoothly render resized images. */ body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;} /* Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. */ .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} /* Force hotmail to push 2-grid sub headers down */ /* /\/\/\/\/\/\/\/\/ TEMPLATE STYLES /\/\/\/\/\/\/\/\/ */ /* ========== Page Styles ========== */ h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;} h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;} h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;} h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;} .flexibleImage{height:auto;} .linkRemoveBorder{border-bottom:0 !important;} table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;} body, #bodyTable{background-color:#E1E1E1;} #emailHeader{background-color:#E1E1E1;} #emailBody{background-color:#FFFFFF;} #emailFooter{background-color:#E1E1E1;} .nestedContainer{background-color:#F8F8F8; border:1px solid #CCCCCC;} .emailButton{background-color:#205478; border-collapse:separate;} .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;} .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;} .emailCalendar{background-color:#FFFFFF; border:1px solid #CCCCCC;} .emailCalendarMonth{background-color:#205478; color:#FFFFFF; font-family:Helvetica, Arial, sans-serif; font-size:16px; font-weight:bold; padding-top:10px; padding-bottom:10px; text-align:center;} .emailCalendarDay{color:#205478; font-family:Helvetica, Arial, sans-serif; font-size:60px; font-weight:bold; line-height:100%; padding-top:20px; padding-bottom:20px; text-align:center;} .imageContentText {margin-top: 10px;line-height:0;} .imageContentText a {line-height:0;} #invisibleIntroduction {display:none !important;} /* Removing the introduction text from the view */ /*FRAMEWORK HACKS & OVERRIDES */ span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* Remove all link colors in IOS (below are duplicates based on the color preference) */ span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;} span[class=ios-color-hack3] a {color:#8B8B8B!important;text-decoration:none!important;} /* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers that look like, but are not phone numbers.  Use these two blocks of code to "unstyle" any numbers that may be linked.  The second block gives you a class to apply with a span tag to the numbers you would like linked and styled. Inspired by Campaign Monitors article on using phone numbers in email: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/. */ .a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;} .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;} /* MOBILE STYLES */ @media only screen and (max-width: 480px){ /*////// CLIENT-SPECIFIC STYLES //////*/ body{width:100% !important; min-width:100% !important;} /* Force iOS Mail to render the email at full width. */ /* FRAMEWORK STYLES */ /* CSS selectors are written in attribute selector format to prevent Yahoo Mail from rendering media query styles on desktop. */ /*td[class="textContent"], td[class="flexibleContainerCell"] { width: 100%; padding-left: 10px !important; padding-right: 10px !important; }*/ table[id="emailHeader"], table[id="emailBody"], table[id="emailFooter"], table[class="flexibleContainer"], td[class="flexibleContainerCell"] {width:100% !important;} td[class="flexibleContainerBox"], td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;} /* The following style rule makes any image classed with flexibleImage fluid when the query activates. Make sure you add an inline max-width to those images to prevent them from blowing out. */ td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; } img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;} img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;} /* Create top space for every second element in a block */ table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;} /* Make buttons in the email span the full width of their container, allowing for left- or right-handed ease of use. */ table[class="emailButton"]{width:100% !important;} td[class="buttonContent"]{padding:0 !important;} td[class="buttonContent"] a{padding:15px !important;} } /*  CONDITIONS FOR ANDROID DEVICES ONLY *   http://developer.android.com/guide/webapps/targeting.html *   http://pugetworks.com/2011/04/css-media-queries-for-targeting-different-mobile-devices/ ; =====================================================*/ @media only screen and (-webkit-device-pixel-ratio:.75){ /* Put CSS for low density (ldpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1){ /* Put CSS for medium density (mdpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1.5){ /* Put CSS for high density (hdpi) Android layouts in here */ } /* end Android targeting */ /* CONDITIONS FOR IOS DEVICES ONLY =====================================================*/ @media only screen and (min-device-width : 320px) and (max-device-width:568px) { } /* end IOS targeting */ </style><!-- Outlook Conditional CSS These two style blocks target Outlook 2007 & 2010 specifically, forcing columns into a single vertical stack as on mobile clients. This is primarily done to avoid the page break bug and is optional. More information here: http://templates.mailchimp.com/development/css/outlook-conditional-css --><!--[if mso 12]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} </style> <![endif]--><!--[if mso 14]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} .auto-style1 { font-family: Helvetica, Arial, sans-serif; font-size: 15px; } .auto-style2 { height: 48px; } </style> <![endif]--></head><body bgcolor="#E1E1E1" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"><!-- CENTER THE EMAIL // --><!-- 1.  The center tag should normally put all the content in the middle of the email page. I added "table-layout: fixed;" style to force yahoomail which by default put the content left. 2.  For hotmail and yahoomail, the contents of the email starts from this center, so we try to apply necessary styling e.g. background-color. --><center style="background-color:#E1E1E1;"><table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;"><tr><td align="center" valign="top" id="bodyCell"><!-- EMAIL BODY // --><!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --><table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="500" id="emailBody"><!-- MODULE ROW // --><!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><!-- The centering table keeps the content tables centered in the emailBody table, in case its width is set to 100%. --><table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#FFFFFF;" bgcolor="#3498db"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><!-- The flexible container has a set width that gets overridden by the media query. Most content tables within can then be given 100% widths. --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><!-- CONTENT TABLE // --><!-- The content table is the first element thats entirely separate from the structural framework of the email. --><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td align="center" valign="top" class="textContent"><h1 style="color:#FFFFFF;line-height:100%;font-family:Helvetica,Arial,sans-serif;font-size:35px;font-weight:normal;margin-bottom:5px;text-align:center;">Aranda Query Manager</h1><h2 style="text-align:center;font-weight:normal;font-family:Helvetica,Arial,sans-serif;font-size:23px;margin-bottom:10px;color:#205478;line-height:135%;"/><div style="text-align:center;margin-bottom:0;line-height:135%;" class="auto-style1">Carga de documentos</div></td></tr></table><!-- // CONTENT TABLE --></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- MODULE ROW // --><!--  The "mc:hideable" is a feature for MailChimp which allows you to disable certain row. It works perfectly for our row structure. http://kb.mailchimp.com/article/template-language-creating-editable-content-areas/ --><tr mc:hideable=mc:hideable><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"><tr/></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- MODULE ROW // --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#F8F8F8"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- CONTENT TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top" class="auto-style2"><!-- The "mc:edit" is a feature for MailChimp which allows you to edit certain row. It makes it easy for you to quickly edit row sections. http://kb.mailchimp.com/templates/code/create-editable-content-areas-with-mailchimps-template-language --><h3 mc:edit="header" style="color:#5F5F5F;line-height:125%;font-family:Helvetica,Arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;"></h3><br><div mc:edit="body" style="text-align:left;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">Fecha solicitud: {{REQUEST_DATE}}<br>{{LOG}}</div></td></tr>                                                                                 </table><!-- // CONTENT TABLE --></td></tr></table></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr>                                  <!-- // MODULE ROW --><!-- EMAIL FOOTER // --><!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --><table bgcolor="#E1E1E1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailFooter"><!-- FOOTER ROW // --><!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td valign="top" bgcolor="#E1E1E1"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;"><div>Copyright &#169; 2017 <a href="http://www.arandasoft.com" target="_blank" style="text-decoration:none;color:#828282;"><span style="color:#828282;">Aranda Software</span></a>. Todos&nbsp;los&nbsp;derechos&nbsp;reservados.</div></div></td></tr></table></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr></table><!-- // END --></table></td></tr></table></center></body></html>'
EXEC [METADATA_MAIL_TEMPLATE] 'AQMEmailReport',			        0,			NULL,		'AQM - {{ReportObtained}}',	        0,		0,			NULL,		NULL,		'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <title>Aranda Query Manager</title> </head> <body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;"> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1" style="vertical-align:middle;"> <tr> <td style="width:auto">&nbsp;</td> <td>&nbsp;</td> <td style="width:auto">&nbsp;</td> </tr> <tr> <td style="width:auto">&nbsp;</td> <td> <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td height="62px" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;"> <table width="700" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <img src="https://docs.arandasoft.com/resources/logoaqm.png" width="200" alt="Aranda AQM"/> </td> <td style="font-family:Tahoma; font-size: 13px; color:#5D9AFC; text-align: right;"> {{ReportReceiver}} </td> </tr> </table> </td> </tr> <tr> <td colspan="3" style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba; display: {{WithBody}};"> <span style="font-family:Tahoma; font-size:20px; color: #8395A7;">{{Title}}</span> </td> </tr> <tr> <td colspan="3" valign="top" style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897; display: {{WithBody}};">{{Description}}</p> <br> <br> </td> </tr> <tr> <td o-btn style="width: 700px; font-family: Tahoma; margin: auto;text-align: center; padding-top: 20px; display: {{ShowButton}};"> <a href="{{Url}}" target="_blank"> <span style="font-size: 14px;color: #5D9AFC; border-radius: 5px; border: 1px solid #5D9AFC; background: transparent; padding: 8px; display: inline-flex;">{{DownloadReport}}</span> </a> <br> <br> </td> </tr> <tr> <td footer style="width: 700px; font-family: Tahoma;background-color: #819afc2d; margin: auto;text-align: center;"> <p> <span style="font-size: 11px; color: #819afc;">Copyright Aranda Software</span> </p> </td> </tr> </table> </td> </tr> </table> </body> </html>'
EXEC [METADATA_MAIL_TEMPLATE] 'AQMEmailExceptionNotification',  0,			NULL,		'AQM - Notificacion Tarea',			0,		0,			NULL,		NULL,		'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><title>AQM Detalle de Error Técnico</title></head><body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;"><table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1" style="vertical-align:middle;"><tr><td style="width:auto">&nbsp;</td><td>&nbsp;</td><td style="width:auto">&nbsp;</td></tr><tr><td style="width:auto">&nbsp;</td><td><table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr><td height="62px" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;"><table width="700" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="https://docs.arandasoft.com/resources/logoaqm.png" width="200" height="50" alt="Aranda Query Manager"/></td><td style="font-family:Tahoma; font-size: 13px; color:#5D9AFF; text-align: right;">Reportes y Dashboards </td></tr></table></td></tr><tr><td colspan="3" style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;"><span style="font-family:Tahoma; font-size:24px; color: #8395A7;">Notificación Reporte Programado</span></td></tr><tr><td colspan="3" valign="top" style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;"><strong/>Esta es la información correspondiente al reporte enviado.<br/><br/><span style="color:#8395A7; font-size: 15px; font-weight:bold;">{{DocumentInfo}}</span>.</td></tr><tr><td width="83" align="right" valign="top"><span style="font-size:12px; color: #5D9AFF;"><br/><br/><img src="https://docs.arandasoft.com/resources/report.png" width="105" height="111" alt="Caso"/></span></td><td width="230" valign="top" style="font-family:Tahoma; font-size:14px; color: #979897; padding: 10px; border-right:dashed 1px;"><p><span style="font-size:12px; color: #5D9AFF;">Fecha de ejecución</span><br/>{{Date}}</p><p><span style="font-size:12px; color: #5D9AFF;">Zona horaria</span><br/>{{Timezone}}</p><p><span style="font-size:12px; color: #5D9AFF;">Tamaño del reporte</span><br/>{{DocumentSize}}</p><p><span style="font-size:12px; color: #5D9AFF;">Código de la excepción</span><br/>{{Code}}</p><p><span style="font-size:12px; color: #5D9AFF;">Tenant del Cliente</span><br/>{{Tenant}}</p><p><span style="font-size:12px; color: #5D9AFF;">Usuario afectado</span><br/>{{UserName}}</p></td><td valign="top" style="padding: 10px; font-family:Tahoma; font-size: 14px; color: #979897;"><p><span style="font-size:12px; color: #5D9AFF;">Detalles</span><br/>{{StackTrace}}</p><p>&nbsp;</p><p><span style="font-size:12px; color: #5D9AFF;">Mensaje</span><br/>{{Message}}</p><p>&nbsp;</p><p>Recuerde que puede consultar la documentación técnica haciendo <a href="{{Url}}" target="_blank" style="color: #5D9AFF;">clic aquí</a></p></td></tr><tr><td style="padding: 10px; font-family:Tahoma; font-size: 12px; color: #979897;">&nbsp;</td><td>&nbsp;</td><td style="padding: 10px; font-family:Tahoma; font-size: 12px; color: #979897;"><p>&nbsp;</td></tr></table></td><td style="width:auto">&nbsp;</td></tr><tr><td style="width:auto">&nbsp;</td><td>&nbsp;</td><td style="width:auto">&nbsp;</td></tr></table></body></html>'
EXEC [METADATA_MAIL_TEMPLATE] 'AQMMailTest',					0,			NULL,		'AQM - Prueba',						0,		0,			NULL,		NULL,		'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><title>AQM Mensaje Correo</title> </head> <body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;"> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1" style="vertical-align:middle;"> <tr> <td style="width:auto">&nbsp;</td> <td>&nbsp;</td> <td style="width:auto">&nbsp;</td> </tr> <tr> <td style="width:auto">&nbsp;</td> <td> <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td height="62px" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;"> <table width="700" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="https://docs.arandasoft.com/resources/logoaqm.png"width="200" height="50" alt="Aranda Query Manager" /></td> <td style="font-family:Tahoma; font-size: 13px; color:#5D9AFF; text-align: right;"> Reportes y Dashboards </td> </tr> </table> </td> </tr> <tr> <td colspan="3" style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;"> <span style="font-family:Tahoma; font-size:24px; color: #8395A7;">Correo de prueba</span></td> </tr> <tr> <td colspan="3" valign="top" style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;"> <br/><br/> </td> </tr> </table> </body> </html>';
GO
PRINT '007_AQM_CONTENTMANAGER'

/* Aplica solo para instalaciones nuevas                                  */
/* Inserta una configuracion para el content manager si no existe ninguna */
/* La configuracion permite que se use  la base de datos local            */
IF (NOT EXISTS
        (
            SELECT * FROM AFW_SETTINGS 
            WHERE sett_key          ='ContentManagerConfiguration'   AND 
            sett_application_id     = 0                              AND 
            sett_project_id IS NULL
        )
)
BEGIN

        -- Insertar solo si NO hay esta configuracion en la bd
        EXEC METADATA_AFW_SETTINGS
            @sett_key                = 'ContentManagerConfiguration'           ,
            @sett_application_id     = 0                                       ,
            @sett_value              = '{"DataType":2,"Properties":"{}"}'      ,
            @sett_description        = 'Configuracion del content manager'     ,
            @sett_project_id         = NULL 
END
GO
PRINT '008_AQM_APPLICATIONS'

DECLARE @ApplicationId INT
DECLARE @SuiteId       INT
                        -- @Manufacturer   @Acronym	    @BuiltIn   @Code    @Version   @Name						@Suite  @Enabled,		@ParentId     out @ID
EXEC METADATA_APPLICATION 'Aranda Software', 'ADM',       1,		   32,     '9',		   'Device Management',         1 ,     1,				NULL,         @SuiteId        OUTPUT 
EXEC METADATA_APPLICATION 'Aranda Software', 'AAM',       1,		   1,      '9',		   'Asset Management',          0 ,     1,				@SuiteId,     @ApplicationId  OUTPUT 
EXEC METADATA_APPLICATION 'Aranda Software', 'ASM',       1,		   6,      '9',		   'Software Metrix',           0 ,     1,				@SuiteId,     @ApplicationId  OUTPUT     
EXEC METADATA_APPLICATION 'Aranda Software', 'ASD',       1,		   8,      '9',		   'Software Delivery',         0 ,     1,				@SuiteId,     @ApplicationId  OUTPUT 
EXEC METADATA_APPLICATION 'Aranda Software', 'APM',       1,		   28,     '9',		   'Patch Management',          0 ,     1,				@SuiteId,     @ApplicationId  OUTPUT 
EXEC METADATA_APPLICATION 'Aranda Software', 'APWM',      1,		   31,     '9',		   'Power Management',          0 ,     1,				@SuiteId,     @ApplicationId  OUTPUT     
EXEC METADATA_APPLICATION 'Aranda Software', 'ASDK',      1,		   13,     '9',		   'Service Desk',              0 ,     1,				NULL,         @ApplicationId  OUTPUT 
EXEC METADATA_APPLICATION 'Aranda Software', 'CMDB',      1,		   21,     '9',		   'CMDB',                      0 ,     1,				NULL,         @ApplicationId  OUTPUT     
EXEC METADATA_APPLICATION 'Aranda Software', 'AMDM',      1,		   33,     '9',		   'Mobile Device Management',  0 ,     1,				NULL,         @ApplicationId  OUTPUT 
EXEC METADATA_APPLICATION 'Aranda Software', 'AFLS',      1,		   34,     '9',		   'Field Service',             0 ,     1,				NULL,         @ApplicationId  OUTPUT   
EXEC METADATA_APPLICATION 'Aranda Software', 'A360',      1,		   35,     '9',		   'Aranda 360',                0 ,     1,				NULL,         @ApplicationId  OUTPUT       
EXEC METADATA_APPLICATION 'Aranda Software', 'AQM',       1,		   29,     '9',		   'Query Manager',             0 ,     1,				NULL,         @ApplicationId  OUTPUT       
EXEC METADATA_APPLICATION 'Aranda Software', 'ASDKOLAP',  1,		   130,    '9',		   'Service Desk OLAP',         0 ,     1,				NULL,         @ApplicationId  OUTPUT
EXEC METADATA_APPLICATION 'Aranda Software', 'CMDBOLAP',  1,		   210,    '9',		   'CMDB OLAP',                 0 ,     1,				NULL,         @ApplicationId  OUTPUT
													    							   
EXEC METADATA_APPLICATION 'Aranda Software', 'ADM',       1,		   32,     '8',		   'Device Management',         1 ,     1,				NULL,         @SuiteId	      OUTPUT
EXEC METADATA_APPLICATION 'Aranda Software', 'AAM',       1,		   1,      '8',		   'Asset Management',          0 ,     1,				@SuiteId,     @ApplicationId  OUTPUT
EXEC METADATA_APPLICATION 'Aranda Software', 'ASM',       1,		   6,      '8',		   'Software Metrix',           0 ,     1,				@SuiteId,     @ApplicationId  OUTPUT
EXEC METADATA_APPLICATION 'Aranda Software', 'ASD',       1,		   8,      '8',		   'Software Delivery',         0 ,     1,				@SuiteId,     @ApplicationId  OUTPUT
EXEC METADATA_APPLICATION 'Aranda Software', 'APM',       1,		   28,     '8',		   'Patch Management',          0 ,     1,				@SuiteId,     @ApplicationId  OUTPUT
EXEC METADATA_APPLICATION 'Aranda Software', 'APWM',      1,		   31,     '8',		   'Power Management',          0 ,     1,				@SuiteId,     @ApplicationId  OUTPUT
EXEC METADATA_APPLICATION 'Aranda Software', 'ASDK',      1,		   13,     '8',		   'Service Desk',              0 ,     1,				NULL,         @ApplicationId  OUTPUT
EXEC METADATA_APPLICATION 'Aranda Software', 'CMDB',      1,		   21,     '8',		   'CMDB',                      0 ,     1,				NULL,         @ApplicationId  OUTPUT
GO
PRINT '009_AQM_APPLICATION_FOLDER'

DECLARE @ApplicationName    NVARCHAR(20)
DECLARE @AppId              INT
DECLARE @AppName            NVARCHAR(20)
DECLARE @AppParentId        INT
DECLARE @Date               DATETIME   
DECLARE @Description        NVARCHAR(500)
DECLARE @FolderDashboardId  INT
DECLARE @FolderId           INT
DECLARE @FolderPivotId      INT
DECLARE @FolderReportId     INT
DECLARE @Icon               NVARCHAR(20)
DECLARE @IsPublic           BIT        
DECLARE @SuiteName          NVARCHAR(200)
DECLARE @UserIdCreate       INT        
DECLARE @UserIdModified     INT
DECLARE @Version            NVARCHAR(20)

Print 'AFW_FOLDER METADATA ADD FOLDER APP BEGIN!!'
DECLARE @aqmRootFolderId    INT
DECLARE @ApplicationSuiteId INT

-- Carpeta raiz de aqm
SELECT  @aqmRootFolderId = fold_id 
FROM    AFW_FOLDER 
WHERE   fold_name    = 'AQM' 
AND     fold_parent IS NULL
AND     fold_application_id = 29


SELECT @FolderDashboardId   = fold_id FROM AFW_FOLDER WHERE fold_parent = @aqmRootFolderId  AND fold_application_id = 29 AND fold_name='Dashboards'
SELECT @FolderReportId      = fold_id FROM AFW_FOLDER WHERE fold_parent = @aqmRootFolderId  AND fold_application_id = 29 AND fold_name='Reports'
SELECT @FolderPivotId       = fold_id FROM AFW_FOLDER WHERE fold_parent = @aqmRootFolderId  AND fold_application_id = 29 AND fold_name='Pivot'

-- Ajuste de settings para carpetas raices
EXEC METADATA_FOLDER_SETTING  @aqmRootFolderId,   NULL,  'icon-aqm', 1
EXEC METADATA_FOLDER_SETTING  @FolderDashboardId, NULL,  'icon-aqm', 1
EXEC METADATA_FOLDER_SETTING  @FolderReportId,    NULL,  'icon-aqm', 1
EXEC METADATA_FOLDER_SETTING  @FolderPivotId,     NULL,  'icon-aqm', 1

-- Listador de aplicaciones de aqm
DECLARE curApplication CURSOR FOR
SELECT   [id],
         [Name],
         [version],
         [ParentId]
FROM     AQM_APPLICATION
ORDER BY Suite DESC

SET     @IsPublic           = 0   
SET     @Date               = GETDATE()
SET     @UserIdCreate       = 1	
SET     @UserIdModified     = 1	
SET     @Date               = GETDATE()
SET     @Description        = NULL

OPEN curApplication  
FETCH NEXT FROM curApplication INTO @AppId,@ApplicationName,@Version,@AppParentId

WHILE @@FETCH_STATUS = 0 
BEGIN

        SET @AppName    = @ApplicationName+' '+@Version
        SET @Icon       = 'icon-'+ LOWER(@ApplicationName )

        -- Si el la aplicacion pertenece a una suite
        IF (ISNULL(@AppParentId,0)>0)
        BEGIN        
            --Nombre de la suite
            SELECT @SuiteName = AQM_APPLICATION.[Acronym]+' '+AQM_APPLICATION.[Version] FROM AQM_APPLICATION WHERE Id=@AppParentId

            --Folder de la suite
            SELECT @FolderDashboardId   = fold_id FROM AFW_FOLDER WHERE fold_parent = @FolderDashboardId  AND fold_name =@SuiteName    AND fold_application_id = 29
            SELECT @FolderReportId      = fold_id FROM AFW_FOLDER WHERE fold_parent = @FolderReportId     AND fold_name =@SuiteName    AND fold_application_id = 29
            SELECT @FolderPivotId       = fold_id FROM AFW_FOLDER WHERE fold_parent = @FolderPivotId      AND fold_name =@SuiteName    AND fold_application_id = 29
        END     
		ELSE
		BEGIN
			--Folder del producto
			SELECT  @FolderDashboardId  = fold_id FROM AFW_FOLDER WHERE fold_parent = @aqmRootFolderId        AND fold_name ='DashBoards'  AND fold_application_id = 29
			SELECT  @FolderReportId     = fold_id FROM AFW_FOLDER WHERE fold_parent = @aqmRootFolderId        AND fold_name ='Reports'     AND fold_application_id = 29
			SELECT  @FolderPivotId      = fold_id FROM AFW_FOLDER WHERE fold_parent = @aqmRootFolderId        AND fold_name ='Pivot'       AND fold_application_id = 29			
		END		
            
       /*============================================================================================================================================*/
       /* Carpeta para Tableros                                                                                                                      */
       /*============================================================================================================================================*/
       EXEC METADATA_FOLDER          @FolderId OUTPUT    ,   @AppName            ,   @FolderDashboardId  ,
                                     @Date               ,   @Date               ,   @UserIdCreate       ,
                                     @UserIdModified     ,   @Description        ,   29                  ,
                                     1                   ,   @IsPublic

       EXEC METADATA_FOLDER_SETTING  @FolderId,  @AppId,  @Icon, 0

       /*============================================================================================================================================*/
       /* Carpeta para Reportes                                                                                                                      */
       /*============================================================================================================================================*/
       EXEC METADATA_FOLDER          @FolderId OUTPUT    ,   @AppName            ,   @FolderReportId     ,
                                     @Date               ,   @Date               ,   @UserIdCreate       ,
                                     @UserIdModified     ,   @Description        ,   29                  ,
                                     2                   ,   @IsPublic
       
	   EXEC METADATA_FOLDER_SETTING  @FolderId,  @AppId,  @Icon, 0

       /*============================================================================================================================================*/
       /* Carpeta para Pivot                                                                                                                         */
       /*============================================================================================================================================*/  
       EXEC METADATA_FOLDER          @FolderId OUTPUT    ,   @AppName            ,   @FolderPivotId      ,
                                     @Date               ,   @Date               ,   @UserIdCreate       ,
                                     @UserIdModified     ,   @Description        ,   29                  ,
                                     3                   ,   @IsPublic
       
	   EXEC METADATA_FOLDER_SETTING  @FolderId,  @AppId,  @Icon, 0

       FETCH NEXT FROM curApplication INTO @AppId,@ApplicationName,@Version,@AppParentId
END

CLOSE      curApplication
DEALLOCATE curApplication
GO

PRINT '010_AFW_ROLE_ACCESS_OBJECT'

--METADATA
DECLARE  @DATE DATETIME
SET      @DATE= GETDATE()

-- Rol de Content Manager 
DECLARE @CMManagerRoleId INT
SELECT  @CMManagerRoleId = role_id 
FROM    [AFW_ROLES] 
WHERE   [role_name] = 'CMManager'

-- Grupo Administradores
DECLARE @AdministratorGroupId INT
SELECT  @AdministratorGroupId = grou_id 
FROM    [AFW_GROUPS] 
WHERE   [grou_name] = 'Administrators'

DECLARE @AdminGroupAccessId INT
SELECT  @AdminGroupAccessId = roac_id  
FROM    [AFW_ROLE_ACCESS] 
WHERE   [roac_grou_id] = @AdministratorGroupId 
AND     [roac_role_id] = @CMManagerRoleId

-- Usuario de Servicios
DECLARE @ServiceUserId INT
SELECT  @ServiceUserId = [user_id] 
FROM    [AFW_USERS] 
WHERE   [user_name] = 'ARANDA SERVICES USER'

DECLARE @ServiceUserAccessId INT
SELECT  @ServiceUserAccessId    = roac_id  
FROM    [AFW_ROLE_ACCESS] 
WHERE   [roac_user_id] = @ServiceUserId 
AND     [roac_role_id] = @CMManagerRoleId


DECLARE @aqmFolderId INT
DECLARE @hierarchy TABLE(ID INT )

-- Carpeta raiz de aqm
    SELECT  @aqmFolderId = fold_id 
    FROM    AFW_FOLDER 
    WHERE   fold_name    = 'AQM' 
    AND     fold_parent IS NULL
    AND     fold_application_id = 29

IF (@aqmFolderId IS NOT NULL)
BEGIN
    -- Identificadores del arbol de aqm
    INSERT INTO @hierarchy EXEC [METADATA_FOLDER_HIERARCHY] 'C',@aqmFolderId    
END

-- Selecciona todos los folderes de Query Manager
DECLARE cur_object CURSOR FOR
SELECT  [fold_id] 
FROM    [AFW_FOLDER] 
WHERE   [fold_id] IN (select id from @hierarchy)

DECLARE @object_Id INT
OPEN    cur_object
FETCH NEXT FROM  cur_object INTO @object_Id

-- Inserta todos los roles de Acceso para todos los objetos de query Manager 
-- (Tipo de objeto Folder)
WHILE @@FETCH_STATUS=0
BEGIN


    EXEC [METADATA_ROLE_ACCESS_OBJECT] @AdminGroupAccessId,   1, @object_Id
    EXEC [METADATA_ROLE_ACCESS_OBJECT] @ServiceUserAccessId,  1, @object_Id

    -- Todos los roles de acceso para query manager
    DECLARE cur_aqm_access CURSOR FOR
    SELECT  roac_id  
    FROM    [AFW_ROLE_ACCESS] 
    JOIN    AFW_ROLES ON AFW_ROLES.role_id  = [AFW_ROLE_ACCESS].roac_role_id 
    WHERE   AFW_ROLES.role_name IN ('AQMAdmin','AQMUser','AQMSpecialist')

    DECLARE @aqm_accessId INT
    OPEN    cur_aqm_access
    FETCH NEXT FROM  cur_aqm_access INTO @aqm_accessId

    WHILE @@FETCH_STATUS = 0    
    BEGIN
        -- Coloca el rol de acceso sobre el objeto especificado
        EXEC [METADATA_ROLE_ACCESS_OBJECT] @aqm_accessId,   1, @object_Id
        FETCH NEXT FROM  cur_aqm_access INTO @aqm_accessId
    END

    CLOSE       cur_aqm_access
    DEALLOCATE  cur_aqm_access

    FETCH NEXT FROM cur_object INTO @object_Id
END

CLOSE       cur_object
DEALLOCATE  cur_object
GO
PRINT '011_AQM_SETPRIVATE_DOCUMENTS'

DECLARE @aqmFolderId INT
DECLARE @hierarchy TABLE(ID INT )

/*============================================================================================================================*/
/*  INICIO DEL SCRIPT                                                                                                         */
/*============================================================================================================================*/
PRINT 'SET PRIVATE DOCUMENTS BEGIN'
DECLARE @conceptId                         INT
DECLARE @contentManagerAccessId            INT

-- Obtiene el roleaccessid para el rol Reader del content manager para el grupo administradores
SELECT  @contentManagerAccessId        = roac_id 
FROM    AFW_ROLE_ACCESS 
JOIN    AFW_ROLES ON AFW_ROLES.role_id = AFW_ROLE_ACCESS.roac_role_id
WHERE   AFW_ROLES.role_application_id  = 0 
AND     AFW_ROLES.role_name            = 'CMManager'
AND     AFW_ROLE_ACCESS.roac_grou_id   =1

--  Consultar la Carpeta raiz de aqm
SELECT  @aqmFolderId = fold_id 
FROM    AFW_FOLDER 
WHERE   fold_name   = 'AQM' 
AND     fold_parent IS NULL
AND     fold_application_id=29

IF (@aqmFolderId IS NOT NULL)
BEGIN
    -- Identificadores del arbol de aqm
    INSERT INTO @hierarchy EXEC [METADATA_FOLDER_HIERARCHY] 'C',@aqmFolderId    

    -- Selecciona todos los documentos de query manager
    DECLARE cur_document CURSOR FOR
    SELECT  [docu_id] 
    FROM    [AFW_DOCUMENT] 
    WHERE   [docu_parent_id] IN (select id from @hierarchy)

    -- Concepto Documento
    SELECT TOP 1 @conceptId = AFW_CONCEPT.id 
    FROM         AFW_CONCEPT 
    WHERE [NAME] ='DOCUMENT'

    DECLARE @documentId INT
    OPEN    cur_document
    FETCH NEXT FROM  cur_document INTO @documentId

    WHILE @@FETCH_STATUS=0
    BEGIN

        -- Configurar  documento como privado
        UPDATE AFW_DOCUMENT SET docu_public =0 WHERE docu_id = @documentId

        -- Colocar los permisos para la carpeta para el Content Manager Reader
        EXEC [METADATA_ROLE_ACCESS_OBJECT] @contentManagerAccessId, @conceptId, @documentId
    
        FETCH NEXT FROM  cur_document INTO @documentId
    END
    CLOSE       cur_document
    DEALLOCATE  cur_document
END
GO
PRINT '012_AQM_SETPRIVATE_FOLDERS'

DECLARE @conceptId                         INT
DECLARE @contentManagerAccessId            INT

-- Obtiene el roleaccessid para el rol Reader del content manager para el grupo administradores
SELECT  @contentManagerAccessId        = roac_id 
FROM    AFW_ROLE_ACCESS 
JOIN    AFW_ROLES ON AFW_ROLES.role_id = AFW_ROLE_ACCESS.roac_role_id
WHERE   AFW_ROLES.role_application_id  = 0 
AND     AFW_ROLES.role_name            = 'CMManager'
AND     AFW_ROLE_ACCESS.roac_grou_id   =1

DECLARE @aqmFolderId INT
DECLARE @hierarchy TABLE(ID INT )

--  Consultar la Carpeta raiz de aqm
SELECT  @aqmFolderId = fold_id 
FROM    AFW_FOLDER 
WHERE   fold_name   ='AQM' 
AND     fold_parent IS NULL
AND     fold_application_id=29

IF (@aqmFolderId IS NOT NULL)
BEGIN
    -- Identificadores del arbol de aqm
    INSERT INTO @hierarchy EXEC [METADATA_FOLDER_HIERARCHY] 'C',@aqmFolderId

    -- Selecciona todos las carpetas de Query Manager
    DECLARE cur_folder CURSOR FOR
    SELECT  [fold_id] 
    FROM    [AFW_FOLDER] 
    WHERE   [fold_id] IN (SELECT id FROM @hierarchy)

    -- Concepto carpeta
    SELECT TOP 1 @conceptId =AFW_CONCEPT.id 
    FROM         AFW_CONCEPT 
    WHERE [NAME] ='FOLDER'

    DECLARE @folderId INT
    OPEN    cur_folder
    FETCH NEXT FROM  cur_folder INTO @folderId

    --  Colocar carpetas como privadas
    WHILE @@FETCH_STATUS=0
    BEGIN

        -- Volver la carpeta como privada
        UPDATE AFW_FOLDER SET fold_public =0 WHERE fold_id = @folderId

        -- Colocar los permisos para la carpeta para el Content Manager Reader
        EXEC [METADATA_ROLE_ACCESS_OBJECT] @contentManagerAccessId, @conceptId, @folderId   
    
        FETCH NEXT FROM cur_folder INTO @folderId
    END

    CLOSE       cur_folder
    DEALLOCATE  cur_folder
END

PRINT 'SET PRIVATE FOLDERS END'

/*============================================================================================================================*/
-- Dejar la carpeta de reportes como publica para el caso de la asignacion de permisos para documentos de tipo plantillas

DECLARE @reportFolderId INT

-- Buscar la carpeta de Reports
SELECT @reportFolderId = fold_id 
FROM AFW_FOLDER
WHERE fold_parent = (SELECT fold_id FROM AFW_FOLDER WHERE fold_name='AQM' AND fold_parent IS NULL AND fold_application_id=29)

UPDATE AFW_FOLDER 
SET    fold_public = 1
WHERE  fold_id             = @reportFolderId AND 
       fold_application_id = 29
GO
PRINT '013_AFW_SETTINGS'

/* Ubicacion del servicio de tienda por defecto*/
EXEC METADATA_AFW_SETTINGS
	@sett_key                = 'UriStore',
	@sett_application_id     = 29,
	@sett_value              = 'http://store.arandasoft.com:29000/StoreService/',
	@sett_description        = 'Ubicacion del servicio de tienda de aqm',
	@sett_project_id         = NULL;


/* Ubicacion para los previews de documentos de la tienda*/
EXEC METADATA_AFW_SETTINGS
	@sett_key                = 'RemoteHost',
	@sett_application_id     = 29,
	@sett_value              = 'https://store.arandasoft.com/AQMV9/',
	@sett_description        = 'Direccion para las imagenes y previews de documentos publicos',
	@sett_project_id         = NULL;

/* Paleta de colores para los dashboard */
EXEC METADATA_AFW_SETTINGS
	@sett_key                = 'PaletteDash',
	@sett_application_id     = 29,
	@sett_value              = '["#4EABC0","#A3DB94","#F26D4D","#8AB4F3","#FBE28B","#BB90F8","#5CC5DD","#8FC980","#FA6F4D","#72A8FA","#FA9900","#D0AFFF","#409DB2","#60B14B","#FA623D","#C6DCFF","#FAC300","#A773EF","#37BAD8","#9AD38B","#F53E14","#A2B6D6","#F5CF4A","#9875C9"]',
	@sett_description        = 'Paleta de colores para los dashboard',
	@sett_project_id         = NULL;


/* Tamaño limite para el envio de correo*/
EXEC METADATA_AFW_SETTINGS
	@sett_key                = 'EmailSize',
	@sett_application_id     = 29,
	@sett_value              = '10',
	@sett_description        = 'Tamaño limite para el envio de correo',
	@sett_project_id         = NULL;

/* API Key para el framework de mapas */
EXEC METADATA_AFW_SETTINGS
	@sett_key                = 'APIKeyGoogle',
	@sett_application_id     = 29,
	@sett_value              = '',
	@sett_description        = 'API Key para el framework de mapas',
	@sett_project_id         = NULL;

/* Parametro para deshabilitar el login */
EXEC METADATA_AFW_SETTINGS
	@sett_key                = 'HideLoginForm',
	@sett_application_id     = 29,
	@sett_value              = 'false',
	@sett_description        = 'Oculta la pantalla de login, true para ocutarla',
	@sett_project_id         = NULL;

/* Configuracion de autorotacion de tabs */
EXEC METADATA_AFW_SETTINGS
	@sett_key                = 'TabChangeTime',
	@sett_application_id     = 29,
	@sett_value              = '0',
	@sett_description        = 'Tiempo en segundos para cambiar automaticamente los tableros con tabs',
	@sett_project_id         = NULL;
GO

/* Configuracion del cache de reporteria */
EXEC METADATA_AFW_SETTINGS
	@sett_key                = 'CacheConfiguration',
	@sett_application_id     = 29,
	@sett_value              = '1',
	@sett_description        = 'Modo de operacion del cache de reporteria',
	@sett_project_id         = NULL;
GO

EXEC METADATA_AFW_SETTINGS
	@sett_key                = 'UriWebStore',
	@sett_application_id     = 29,
	@sett_value              = 'https://tienda.arandasoft.com/aqm/',
	@sett_description        = 'URL para el catálogo de informes de AQM',
	@sett_project_id         = NULL;
GO
BEGIN TRAN MD_DMM_DATASET
	EXEC MD_DMM_DATASET 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', 'dbo.ADW_DIM_DATE', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '06E2F78C-900A-4EEB-B300-8623A3E7D14C', 'dbo.AFW_GROUPS', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'dbo.AFW_USERS', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '4209FF43-32CF-4687-A071-0CD3D848E7C1', 'dbo.ASDK_CATEGORY', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '21489084-3B7D-41C1-8180-109D5C719723', 'adw.ASDK_IMPACT', 'DIM', 'V', 0;
	EXEC MD_DMM_DATASET '172457D5-A596-4C45-95FD-442A385CADEE', 'dbo.ASDK_MODEL_COST_PRICE', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '86C6D9AE-9274-4249-8FB4-2240D66D483D', 'adw.ASDK_OLA', 'DIM', 'V', 0;
	EXEC MD_DMM_DATASET '6BDE4EBA-91A6-4174-BE2B-09A5FE47A1D3', 'adw.ASDK_PRIORITY', 'DIM', 'V', 0;
	EXEC MD_DMM_DATASET '07863B77-B3AF-48AF-803C-54BCA9CBBD90', 'adw.ASDK_REGISTRY_TYPE', 'DIM', 'V', 0;
	EXEC MD_DMM_DATASET '40B611B2-2260-434D-BEB6-144233B05C1B', 'dbo.ASDK_SERVICE', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '05C660C0-C5A6-4E00-B511-9CB676BD8213', 'adw.ASDK_SLA', 'DIM', 'V', 0;
	EXEC MD_DMM_DATASET '3E89932E-4E2F-475B-9F99-22B8B9160C8A', 'adw.ASDK_UC', 'DIM', 'V', 0;
	EXEC MD_DMM_DATASET '98CF5177-28C8-4B8B-8BC6-E3D01D197671', 'adw.ASDK_URGENCY', 'DIM', 'V', 0;
	EXEC MD_DMM_DATASET 'DF4D7750-8FA6-4819-A065-BD00870F1218', 'dbo.ASMS_COMPANY', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '18F1714C-9F68-4219-8B6C-1860234CBE27', 'dbo.ASMS_CONTRACT', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '81DA3797-ED0F-48A6-B96F-191CDE2390A1', 'dbo.ASMS_COST_CENTER', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '25FE877C-2E5C-4837-8101-1B2461903795', 'dbo.ASMS_INTEGRATIONS', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '277564D1-1AB8-4474-9B6D-42FF98B29D40', 'dbo.ASMS_INTERFACE', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D', 'dbo.ASMS_LOCATION', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3', 'dbo.ASMS_MODEL', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '561C0C56-D12A-4902-87F6-6CD260074121', 'dbo.ASMS_PROJECTS', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '4A851F60-C945-4FEF-81B8-0266B4DFD6B8', 'dbo.ASMS_STATUS_REASON', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET 'C375B828-D6CE-4EA8-98D0-D978C5A61FC1', 'dbo.ASMS_TYPES', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '7CE89EF1-3821-4E57-84AF-FCEB734B51BA', 'dbo.CMDB_CI', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C', 'adw.V_ASDK_STATUS_BEHAVIOR', 'DIM', 'V', 0;
	EXEC MD_DMM_DATASET '743B3412-79BE-49B7-B76B-488CAD1D87CF', 'dbo.AFW_SURVEY', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET 'FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1', 'dbo.AFW_SURVEY_QUESTION', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '35A78D01-F32A-44BA-9210-CE0B3756B282', 'dbo.AFW_SURVEY_QUESTION_TYPE', 'DIM', 'U', 0;
	EXEC MD_DMM_DATASET '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'adw.V_FACT_ASDK_ITEM', 'FACT', 'V', 0;
	EXEC MD_DMM_DATASET 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'adw.V_FACT_ASDK_ITEM_REVISION', 'FACT', 'V', 0;
	EXEC MD_DMM_DATASET '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', 'adw.V_FACT_ASDK_TASK_REVISION',  'FACT', 'V', 0;
	EXEC MD_DMM_DATASET '97DB752F-D6E1-4ADC-86C7-4FA595D62082', 'adw.V_FACT_ASDK_USER_SURVEY', 'FACT', 'V', 0;
	EXEC MD_DMM_DATASET 'C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA', 'adw.V_FACT_ASDK_USER_SURVEY_SENT', 'FACT', 'V', 0;
	EXEC MD_DMM_DATASET 'C265AF16-85E7-4425-9AE7-3308DB0FCB13', 'adw.FUN_ASMS_FIELD_VALUE', 'DIM', 'IF', 1;
	EXEC MD_DMM_DATASET '07435893-924A-428C-AF33-FECB3675DDD6', 'adw.ASMS_FIELDS_NAMES', 'DIM', 'V', 1;
COMMIT TRAN MD_DMM_DATASET
GO
BEGIN TRAN CMDB_CI
    EXEC MD_DMM_COLUMN '02AC2416-A589-4AD7-9A69-0B32E540CB4F', 'id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '81469F3E-FA77-4CCE-AF02-F8672CFC72D0', 'barcode', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'B3471462-1460-4E15-994F-CFBC5F67C2F6', 'rfid', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'B251F562-99AB-4956-BAC4-7A39D7C93F16', 'name', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '1960B318-1DE1-46CE-9CD6-375091A5D6B8', 'state_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '67797101-977B-427F-B61E-E79C74C9086A', 'model_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '937BFD4F-CE38-429F-A8FF-47B76544EA19', 'serial', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '40C2B62D-1A31-4322-9BEA-E87304EA8F94', 'asset_tag', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'B49DDB30-A050-492F-9D0C-29E26094099A', 'price', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '63805E01-75C5-4332-8C21-A1280E01F2D8', 'impact_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '2CD5E58D-8869-4EC2-AB70-A07419B0162F', 'description', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '0E0D1C7A-F2D2-4EB0-83A3-33DD13394992', 'category_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'FB97CB62-B022-4C70-B470-298970CF2B0E', 'brand_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '73092E38-3576-416D-9A86-18B0A93E48FA', 'manufacturer_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'EA747986-0FEB-4BA1-8797-E4DC78D4A994', 'provider_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '8EDED45F-F791-48B7-B45F-70B191F0255A', 'unit_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '2CF7B55F-5649-4541-B710-680D217FEC75', 'unit_size', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'D78DC237-8CAD-46FD-B9F3-34E0D83FCA15', 'installation_date', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'C0E505EF-D890-4E6B-B4A4-FC362026A34C', 'responsible_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '51B60C07-3D34-47B4-BD97-42E6C5A6A210', 'reponsible_date', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'D9D72300-5D31-4B9F-9B81-BCC9D6101667', 'checkin_date', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '8C85DBC2-48B5-47AB-AD35-02F809E5A467', 'accept_date', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'FBA71137-0AD9-4A31-85A2-B2DEE9690F90', 'license_number', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '0B5A8972-DD8C-4B84-A22A-C6984B131538', 'useful_life', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'D3E5C689-1E15-4646-8085-7B50F91637F5', 'depreciation_method', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '805365BF-B261-4EFA-A119-5772BC7A671B', 'residual_value', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '1E507C76-3F56-41D8-8BEA-E16B36BF6C82', 'checkout_date', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '62076B78-9132-4DC3-B036-DEA2E9CF5691', 'image_file_name', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'CFF5DC12-E993-4E37-B53E-EB3531121C12', 'costcenter_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '5AF8FEDF-4434-45D8-AEF7-CC142657055B', 'created_date', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '57EBA56E-3BCB-48C5-8BEA-8370109B535C', 'modified_date', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'BB3BE690-2525-42F6-BDEB-417B2307B62B', 'modifier_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '87982812-0202-442E-A879-97B804E69516', 'author_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'C9467E8B-29CC-4C1D-8EBA-3F9D42788DFC', 'version', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '6E787EE7-01AA-401B-8C8E-545CF9BB9985', 'interface_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '0536140E-52BC-4ACE-B614-6E1759D73934', 'type_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '0A222244-A26D-4097-B0B8-6300C902B4D5', 'reason_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '25D9CFEC-B851-408C-8AC0-D517CF7069F2', 'closed_date', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '9FCBDDD0-9504-4F34-ADF7-9E56F2C4DEAE', 'previous_status_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'ABB72884-46A3-49B0-A71B-63FF05370006', 'risk_level', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'BC2044B0-8F47-4E89-846D-373F62211464', 'integration_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN '35789854-207D-4985-835D-4FA5ACEA3620', 'location_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
    EXEC MD_DMM_COLUMN 'BDEB3D6F-EB80-422C-B46E-25499E780BDC', 'file_id', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA';
COMMIT TRAN CMDB_CI
GO

BEGIN TRAN ASMS_TYPES
    EXEC MD_DMM_COLUMN '112521FE-0E07-496A-A164-C69984ED7FD1', 'id', 'C375B828-D6CE-4EA8-98D0-D978C5A61FC1';
    EXEC MD_DMM_COLUMN 'EEDCD330-E670-422C-9A8C-79223AA01884', 'name', 'C375B828-D6CE-4EA8-98D0-D978C5A61FC1';
COMMIT TRAN ASMS_TYPES
GO

BEGIN TRAN ASMS_STATUS_REASON
    EXEC MD_DMM_COLUMN '6122035E-FDBF-44ED-92D4-7E706921A8BE', 'reas_id', '4A851F60-C945-4FEF-81B8-0266B4DFD6B8';
    EXEC MD_DMM_COLUMN '70181CD7-3012-4399-B189-C9ABF184F505', 'reas_description', '4A851F60-C945-4FEF-81B8-0266B4DFD6B8';
    EXEC MD_DMM_COLUMN 'F59DB710-50FA-4537-9C17-6CD8BBCB86F6', 'reas_transition_id', '4A851F60-C945-4FEF-81B8-0266B4DFD6B8';
    EXEC MD_DMM_COLUMN '42FA313F-2BA8-4B47-AC5C-FB724603F2F2', 'reas_delete', '4A851F60-C945-4FEF-81B8-0266B4DFD6B8';
    EXEC MD_DMM_COLUMN 'E57C29B9-9D67-4DCF-A0DD-9F49BB387F66', 'guid', '4A851F60-C945-4FEF-81B8-0266B4DFD6B8';
COMMIT TRAN ASMS_STATUS_REASON
GO

BEGIN TRAN V_ASMS_STATUS_BEHAVIOR
    EXEC MD_DMM_COLUMN '34EB576D-8FC6-43D7-96AE-0CA8F29577A8', 'stat_id', 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C';
    EXEC MD_DMM_COLUMN '88CC306A-1674-48CA-A380-E92EF335272E', 'status_name', 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C';
    EXEC MD_DMM_COLUMN '5D60D8A0-8D5B-4363-8C9A-83243F563D0C', 'status_behavior', 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C';
    EXEC MD_DMM_COLUMN 'ABE5820D-AFD9-4E8F-A190-9FA15B672889', 'status_stage', 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C';

COMMIT TRAN V_ASMS_STATUS_BEHAVIOR;
GO

BEGIN TRAN AFW_USERS
    EXEC MD_DMM_COLUMN 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15', 'user_id', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'A5029538-6128-4BA7-8B5C-6FE5EB563743', 'user_name', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'E94AD072-81C4-49C5-B7A8-EFB0AA3A32BC', 'user_nick_name', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '5D7750CE-FE47-4690-88B1-9C65F584A2A9', 'user_codperfil', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'ABC7CC72-BB4F-4255-8DFF-030FABF9C3F3', 'user_department_code', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '4E7334B6-5483-48FA-BE07-B82B1A86E2B1', 'user_address1', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '038E4F9D-28AA-42B2-9BC4-5A693A263745', 'user_address2', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'B18D2873-DD06-4087-B62A-2D5992FF4B1E', 'user_address3', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '7D810F7F-CF34-4BBD-991C-4E50A4FD1736', 'user_phone1', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'F983D2D0-BC2F-4173-9B0A-B0ED8513EF09', 'user_phone2', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'F59EF371-A370-4436-BE66-886BC7A60135', 'user_phone3', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'A9EAF530-227B-46C9-A602-070C26D5F9AE', 'user_ext', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'B8BB07BA-96A3-46A7-ABC3-65EDA5A8AF1F', 'user_fax', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '0518AF6F-DAB6-4E70-9A57-5178810B9BA3', 'user_mobile', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '14589C32-57AE-432F-9DE3-B129747EBB92', 'user_email', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'F15FAC53-B2FC-4063-935F-D11B2739404B', 'user_chief', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'B8109A08-522B-41F0-B767-7BD79B09BA7A', 'user_level_knowledge', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'C7D11A22-5A9E-49CA-8352-F210D2BB4DBD', 'user_title_id', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'C49A1923-138E-4DEE-93C2-F19ADEAE68FB', 'user_comments', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'D98A6531-C1D4-4BC4-BAB4-28D7D39413C9', 'user_level', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'FC0EFE8A-1FC8-4EE6-B439-5E76CE0E3BC4', 'user_country_id', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '7BC1C070-8697-4FA8-A595-9930344F59BB', 'user_city_id', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '2030B43D-A17A-4BBB-8064-DC0A65B5C1B1', 'user_site_id', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '58DB5AC2-C892-4CA8-A475-3B65ACBD0CDD', 'user_building_id', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'C0698A85-75F4-4CD9-8740-B92514D0311A', 'user_floor_id', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '4E2B78ED-E6EF-41F5-869B-2240A6196F03', 'user_company_id', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '099C8ECE-95DB-4AA0-9BDF-64A6B8987403', 'user_numberdepid', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'C6BDFDD3-83AA-42A8-9A75-C7951088E7DA', 'user_active', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '690A6DAF-40CB-4AFC-8342-1BBEB267F8D9', 'user_birthdate', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '549C5BCE-80F0-41F9-A871-3EDAC864B772', 'user_picture', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '25E64BD7-3B55-4869-A920-5DFA14CEB074', 'user_language', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'D062FB47-FEC5-48FB-90EC-C4047B16E0A1', 'user_identity_type', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'A91BD7E2-D6C0-41CF-873A-934304C1DDF4', 'user_identity_number', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'C9EBF816-8366-41F4-8FB1-842DA751F9C7', 'user_builtin', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'CBAC7954-7ECA-4CB5-871E-3E9D86F5AD56', 'user_creation_date', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '4AF9C959-1AC8-441D-ADE6-AA4A6B39D19B', 'user_zone', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'A2B0C31B-77C0-4D1A-86DF-342D800229ED', 'user_authentication_id', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'BFD56E43-094F-4468-A7E2-4829A70ED889', 'user_guid_ldap', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'BDC68C00-CB61-4746-9B97-A151B7827681', 'user_path_ldap', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '8A4D09F8-54D9-4FAC-B506-A7D0C458F18F', 'user_last_login_date', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN '641859F5-AE7C-4218-AC67-535F66A7B2A7', 'update_date', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
    EXEC MD_DMM_COLUMN 'C239958B-9A29-4D56-B1A8-D80932FF7390', 'identity_type_id', '34FC32B4-E924-4EAA-B56E-90EF239D59B8';
COMMIT TRAN AFW_USERS
GO

BEGIN TRAN ASMS_COMPANY
    EXEC MD_DMM_COLUMN '217A6A2C-E119-4C23-B4F9-43C104532453', 'id', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '89BB1D49-D651-4824-9B11-AFE60CD0832E', 'name', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN 'E5C67AFE-5292-4FA7-B589-C7FA38656CC3', 'contact', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '409F4D50-24A2-4CF9-9192-CFD993FA09E0', 'owner', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '9940AF11-7E1A-4A4E-A25C-DDEF7BFF46D2', 'address1', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN 'D2D4AF22-B574-41A3-8D1F-D3C7A7524ADA', 'address2', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '3E6EC805-3D94-416F-B220-D306648FE22E', 'address3', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '17424618-A454-4CA4-AA76-C9B1050CD6DD', 'phone1', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '1330FEBD-442B-4720-BBA8-F82F437D86EF', 'phone2', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN 'D2130BE3-A8FF-430F-B174-13D93593600B', 'phone3', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN 'C3865637-17FE-4A8E-8570-AAB2F8FA7254', 'ext', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '8BD0A6E8-E9B0-45B8-A823-F4BBA592985D', 'fax', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '69630E6E-A0A5-4DA0-BA13-FD66AF6DC1D6', 'mobil', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '8CD879BB-1F6A-4DC6-BBB0-DCCD2915C9AE', 'description', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '4974A016-8EF6-43A9-A4C1-18466250136F', 'email', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '91F517B6-6989-4B23-A5A3-EEA516629CB9', 'website', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '72B13B15-D609-4CE5-8C22-90EEE498F9F9', 'nit', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN 'E1BED25F-E7B0-4D7E-90FE-70B2E0A58203', 'countryid', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '412C2BF0-3C34-41DB-9A84-4E1542F1FBA0', 'cityid', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '1252524A-3107-4E38-BF86-31F211ECBDC6', 'location', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '64A18CD4-2F72-4B71-8D32-F779ECD29857', 'vendor_status', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '493B2F94-9208-4089-9DFF-6A915E063396', 'creationdate', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '0F7C3DBC-254E-47F6-8E72-7FD50D613817', 'modificationdate', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '9C1F457E-ACD9-42FF-BF9D-84709ACAC5BC', 'createdby', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN '39ED0855-34FE-447B-8392-08D4B359C550', 'modifiedby', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
    EXEC MD_DMM_COLUMN 'EC0A235F-8F66-4A19-82C2-C648085815D1', 'locationid', 'DF4D7750-8FA6-4819-A065-BD00870F1218';
COMMIT TRAN ASMS_COMPANY
GO

BEGIN TRAN ASMS_PROJECTS
    EXEC MD_DMM_COLUMN '63EAB8C6-77AF-4DAC-9FAC-C75E71E496BD', 'proj_id', '561C0C56-D12A-4902-87F6-6CD260074121';
    EXEC MD_DMM_COLUMN 'A3DD49A7-5514-4D15-91DD-7CC102185DDB', 'proj_name', '561C0C56-D12A-4902-87F6-6CD260074121';
    EXEC MD_DMM_COLUMN '0D77A4DA-51AE-4FB9-96C6-049B323D77AA', 'proj_owner_id', '561C0C56-D12A-4902-87F6-6CD260074121';
    EXEC MD_DMM_COLUMN 'B52B8277-8980-47E5-AB12-27FE026AE1DD', 'proj_state', '561C0C56-D12A-4902-87F6-6CD260074121';
    EXEC MD_DMM_COLUMN 'C93F76C7-4F7F-40F9-84A3-3FD2CFF47DB2', 'proj_description', '561C0C56-D12A-4902-87F6-6CD260074121';
    EXEC MD_DMM_COLUMN '5693C985-2D2C-4F75-93F6-7B3A9477261E', 'proj_image', '561C0C56-D12A-4902-87F6-6CD260074121';
    EXEC MD_DMM_COLUMN '716A3B65-5147-4932-A97F-48BF68D9AD65', 'proj_image_id', '561C0C56-D12A-4902-87F6-6CD260074121';
    EXEC MD_DMM_COLUMN 'CB9CAD05-FBD3-4570-8D12-844EEC785F64', 'proj_is_delete', '561C0C56-D12A-4902-87F6-6CD260074121';
    EXEC MD_DMM_COLUMN '39A5F70F-CB3C-48B1-AF83-FDDCFCD0D9C7', 'proj_guid', '561C0C56-D12A-4902-87F6-6CD260074121';
COMMIT TRAN ASMS_PROJECTS
GO

BEGIN TRAN ASMS_COST_CENTER
    EXEC MD_DMM_COLUMN '61FF0B5A-329B-4074-9E03-E0FA2CE17EC6', 'id', '81DA3797-ED0F-48A6-B96F-191CDE2390A1';
    EXEC MD_DMM_COLUMN 'C7B01CF6-79B6-40C2-9F89-B9307954FA5E', 'name', '81DA3797-ED0F-48A6-B96F-191CDE2390A1';
    EXEC MD_DMM_COLUMN '45F2AFAB-90EF-4450-9024-F92B4C16F4B2', 'description', '81DA3797-ED0F-48A6-B96F-191CDE2390A1';
    EXEC MD_DMM_COLUMN 'EE620F84-662B-4BAA-AB4B-2D20D82908AD', 'code', '81DA3797-ED0F-48A6-B96F-191CDE2390A1';
    EXEC MD_DMM_COLUMN 'E8F5DBDB-10D1-476D-B0E3-3F3433EB8E15', 'type', '81DA3797-ED0F-48A6-B96F-191CDE2390A1';
    EXEC MD_DMM_COLUMN '8B3E74CF-2FE2-4273-804B-3999ACDED54B', 'parent_id', '81DA3797-ED0F-48A6-B96F-191CDE2390A1';
    EXEC MD_DMM_COLUMN 'FF6E443E-D45A-4004-BD19-4F1BA9E49208', 'guid', '81DA3797-ED0F-48A6-B96F-191CDE2390A1';
COMMIT TRAN ASMS_COST_CENTER
GO

BEGIN TRAN AFW_GROUPS
    EXEC MD_DMM_COLUMN '5D563054-5A64-4666-9EE7-09168686627D', 'grou_id', '06E2F78C-900A-4EEB-B300-8623A3E7D14C';
    EXEC MD_DMM_COLUMN 'A5AEDDE6-1FBB-4980-A84C-352E6F409D69', 'grou_name', '06E2F78C-900A-4EEB-B300-8623A3E7D14C';
    EXEC MD_DMM_COLUMN '9AD83C48-42C1-4A27-99E6-ACD928B6C7F6', 'grou_user_id', '06E2F78C-900A-4EEB-B300-8623A3E7D14C';
    EXEC MD_DMM_COLUMN 'F053CCBD-6CF0-43FA-A668-3D744D55C09D', 'grou_is_active', '06E2F78C-900A-4EEB-B300-8623A3E7D14C';
    EXEC MD_DMM_COLUMN '927D323F-DECD-4C49-9EC8-699964B6FE93', 'grou_definition_ldap', '06E2F78C-900A-4EEB-B300-8623A3E7D14C';
    EXEC MD_DMM_COLUMN 'B2A6407A-6CFF-47BA-AE1C-E0EE5F9187FF', 'grou_description', '06E2F78C-900A-4EEB-B300-8623A3E7D14C';
    EXEC MD_DMM_COLUMN '9FC530E7-1254-4413-9EA0-2FFA86651EDF', 'grou_parent', '06E2F78C-900A-4EEB-B300-8623A3E7D14C';
    EXEC MD_DMM_COLUMN '5C511189-F04A-42D5-BDE8-75C18767A227', 'grou_guid_ldap', '06E2F78C-900A-4EEB-B300-8623A3E7D14C';
    EXEC MD_DMM_COLUMN '3F2B760F-4F08-4C6C-AB4D-E9EE0240A4D8', 'grou_class_type_ldap', '06E2F78C-900A-4EEB-B300-8623A3E7D14C';
    EXEC MD_DMM_COLUMN 'B65F30B0-D8CD-4CB0-BAD5-9990C281F5C7', 'grou_authentication_id', '06E2F78C-900A-4EEB-B300-8623A3E7D14C';
COMMIT TRAN AFW_GROUPS
GO

BEGIN TRAN ASMS_MODEL
    EXEC MD_DMM_COLUMN '5839EB15-0277-4EC6-A3E5-EB64AD436AB3', 'id', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN 'C7138C59-62DD-498A-B88E-A623DE533123', 'name', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN 'C3F9FCD4-DB35-4A6B-AEA3-4044485DD1D4', 'description', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN 'ED94ECC9-AC62-4AAB-9CC0-BED40E9C2DD4', 'item_type_id', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN '3F20D1E9-24B4-4C2E-BF63-247F9FE3BE17', 'script', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN 'E6FF8926-4E6C-4C5A-A494-FEA4E0543018', 'builtin', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN 'E13A6EE7-3C79-4CFF-A070-DD46626A8666', 'active', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN 'AB8924BF-0B03-4BCF-9FF4-976122006172', 'default_time_id', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN 'A0F3F45F-5A19-416C-B263-8A11C1CE3DAA', 'default_profile_id', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN 'F2A75791-A79A-4637-BCB1-1E2FC628AFFD', 'instructions', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN '11933B42-AB5A-4E47-897F-752F020EA448', 'is_delete', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
    EXEC MD_DMM_COLUMN 'DBF8B5B8-DDE7-4EE8-BD75-17B1C02AA9AA', 'guid', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3';
COMMIT TRAN ASMS_MODEL
GO

BEGIN TRAN ASMS_LOCATION
    EXEC MD_DMM_COLUMN '795D6E96-BFBE-4CB7-8C9B-4BE19BD4D876', 'id', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN '79973DFE-1A1A-4638-A122-7DCA31EB0356', 'project_id', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN 'BFF3289D-B119-44E1-A7B3-1B7C00650F71', 'name', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN 'B09EAB5E-1702-472A-BF10-85C63E0004CA', 'description', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN '1F2D7B1E-AE38-4DE3-939F-3D07CB42AC09', 'department_id', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN '2A9A59CB-1B52-4F1A-BFAC-3FBE66A3916A', 'numberdep_id', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN '6D96DB35-9B85-4112-9ED0-994B7174FFB7', 'country_id', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN 'DC0DE2B1-893D-496A-86D4-A4179BBDE50C', 'city_id', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN 'CA17F218-0FC3-48DF-8609-CBB891A7E64B', 'site_id', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN 'D654A45B-402E-48FE-8840-0C35807826A4', 'building_id', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN '3E3ECC9A-F579-43C4-862D-9CC5E3901567', 'floor_id', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN '6DCCA5B0-2356-4A01-A708-F38F11DF06C6', 'company_id', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN 'B351428A-80B9-4F23-8D01-9D56B35D464A', 'address', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN '4EDCC4A0-49F3-4DBD-878F-BEA3D5D5EE50', 'phone', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
    EXEC MD_DMM_COLUMN '8055E880-5B95-47F1-91C3-5141C4992EC0', 'guid', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D';
COMMIT TRAN ASMS_LOCATION
GO

BEGIN TRAN ASMS_INTERFACE
    EXEC MD_DMM_COLUMN 'A340B88D-DAB3-4699-BC41-AA93408D69AC', 'id', '277564D1-1AB8-4474-9B6D-42FF98B29D40';
    EXEC MD_DMM_COLUMN '0316EC86-6ACF-4C95-B0DD-CBBC2BE90C71', 'builtin_id', '277564D1-1AB8-4474-9B6D-42FF98B29D40';
    EXEC MD_DMM_COLUMN '919B968F-112B-4D83-ACB6-5761558A08D6', 'label', '277564D1-1AB8-4474-9B6D-42FF98B29D40';
    EXEC MD_DMM_COLUMN 'EB0145B1-2554-4613-A2A1-B1E5E3D6A72F', 'model_id', '277564D1-1AB8-4474-9B6D-42FF98B29D40';
    EXEC MD_DMM_COLUMN '7005B8E9-9652-48AE-B7D3-A011D13C82AF', 'project_id', '277564D1-1AB8-4474-9B6D-42FF98B29D40';
    EXEC MD_DMM_COLUMN '3748EF1A-94E0-4B71-B816-711C75FA8749', 'item_type_id', '277564D1-1AB8-4474-9B6D-42FF98B29D40';
    EXEC MD_DMM_COLUMN 'AF26EBF8-E8F9-46DA-88D2-E74501860FA9', 'guid', '277564D1-1AB8-4474-9B6D-42FF98B29D40';
COMMIT TRAN ASMS_INTERFACE
GO

BEGIN TRAN ASMS_CONTRACT
    EXEC MD_DMM_COLUMN '58041B21-07EA-4015-8309-ECBB478E4CCD', 'contractid', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '8CEAAB21-A4AE-4DC7-98C0-FCBD1E38D3F7', 'numbercontract', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN 'CD41884F-CC8D-401B-B9B8-59951C1CC14D', 'contractini', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN 'CDDE4114-E1B1-434A-8674-06AE6F666B6E', 'contractfin', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '43BFF75B-415E-4704-83CE-6383881C739B', 'contractvalue', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '235F9B7A-DBCA-46DB-97B2-6F7215E6413A', 'vendorid', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '2C8F00BC-453C-4E38-B966-FB3FD907D000', 'fl_str_description', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN 'E5E038A2-2E48-49C1-BC88-59A0F786AE49', 'fl_str_contract_type', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN 'B0226297-98BB-4750-8F8B-57ECFA0AFD19', 'fl_int_has_alarm', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN 'D7878FB7-3A0F-4686-BEEA-81C70ABD4D94', 'fl_int_limitdays', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN 'DBF714EE-1D0B-480A-BBE2-72DEB02C6860', 'fl_str_statuscontract', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '0FA8FA79-A06E-408E-AE65-C6C133BEE42B', 'fl_int_user_id', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN 'D9C29096-45C4-4004-BE99-3C3E9B982F40', 'type_id', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN 'C076659D-315B-4574-BB77-8715B29D3830', 'class_id', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN 'B075B957-72D9-4593-938C-F8BC56586E88', 'template_id', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '7DE751ED-22A7-4F5B-BFE2-5C7552755FE1', 'con_modified_date', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN 'B15BA1DF-1917-4AF6-9583-4994CDFF3479', 'con_modifier_id', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '63BB304C-1B18-4F36-9FF6-F6D55C20397E', 'schedule_flag', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '2FE63D3D-F81A-4197-9313-66B42E917617', 'vendor_id_contract', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '8F0547E0-9B92-47D4-AFDE-3E10375FB2A2', 'area_id', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '19033CD7-32CF-4E22-9D93-8538D4368F1E', 'area_id_contract', '18F1714C-9F68-4219-8B6C-1860234CBE27';
    EXEC MD_DMM_COLUMN '23B566ED-4927-4AE3-998D-52101132690D', 'days_warranty', '18F1714C-9F68-4219-8B6C-1860234CBE27';
COMMIT TRAN ASMS_CONTRACT
GO

BEGIN TRAN ASMS_INTEGRATIONS
    EXEC MD_DMM_COLUMN '01DE5601-0030-4646-8636-086830732F74', 'id', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN 'CAD9BD9C-CD53-4F12-9832-6AAB225FC233', 'name', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN '1AF8628F-0C73-40EB-A170-09761C56C295', 'description', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN 'F6DE7FA2-2301-45DB-A04E-24F0A2FFB6AF', 'webservice_url', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN '521A2793-7793-4F86-B234-5B94B691A77F', 'webservice_user', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN 'C49369B7-4B62-4EEE-9C50-51C26399AE01', 'webservice_password', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN '1C8F4994-8DAB-42AF-B483-F97479104C6A', 'gui_url', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN '86C26199-7CBD-47F7-9C49-FC37C034ABC9', 'gui_user', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN 'BDC7E42B-D156-45D4-A3DB-6398315AB9CE', 'gui_password', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN '61C8B379-87DC-44F0-BBEB-EAA1D9452E34', 'item_type_id', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN '65A88AEE-3E69-40B8-AE48-FF966892F601', 'user_id', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN 'D6B421DB-E471-483E-9FB8-31E892B966B1', 'active', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN '00DA8F9E-6FAE-4EA9-88AE-56422E4E7B09', 'project_id', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN '8904A161-222A-439D-B953-2360A64A4687', 'responsible_id', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN '313AC1FA-B034-4AF0-BFC3-2B9C06E9C17A', 'default_path_url', '25FE877C-2E5C-4837-8101-1B2461903795';
    EXEC MD_DMM_COLUMN '02C3E5AE-FA81-4182-B05C-82D0A1B1C3A8', 'token', '25FE877C-2E5C-4837-8101-1B2461903795';
COMMIT TRAN ASMS_INTEGRATIONS
GO

BEGIN TRAN ASDK_URGENCY
    EXEC MD_DMM_COLUMN '0823609C-C462-4215-8B28-411C323FF19E', 'urgency_id', '98CF5177-28C8-4B8B-8BC6-E3D01D197671';
    EXEC MD_DMM_COLUMN 'D51855D3-5AAE-4183-AC2E-5F3495A048EC', 'urgency_name', '98CF5177-28C8-4B8B-8BC6-E3D01D197671';
COMMIT TRAN ASDK_URGENCY
GO

BEGIN TRAN ASDK_UC
    EXEC MD_DMM_COLUMN '8F5BFA5B-608C-41B3-939C-F803337DCAD2', 'uc_id', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN '34F9A26F-C812-4ECF-886D-AEAC6ED2202A', 'guid', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN 'D5BE2501-2B90-4345-B02D-928195177382', 'name', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN 'B2E5D086-43E9-4E80-A857-18551EE2022D', 'descripcion', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN '4A253BBD-3055-4635-9FB0-97D633601E8D', 'date_start', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN '1738375F-A1DE-4C6B-927D-0D7AF842D631', 'date_finish', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN '90668B51-2D0E-4CF9-94BA-C0ADAC66FADF', 'uc_date_review', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN 'F27E2E82-BDAE-414C-A7DB-0832A29E2CB8', 'uc_date_open', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN '52EBBE0C-D9FA-45FB-8D23-FF451C258637', 'uc_date_close', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN '1103A6EF-EE35-4AA2-8143-C8CB7E545F39', 'previous_status_id', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN '9C3E9852-DF0C-475D-9D79-7497822679A2', 'uc_modified_date', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN 'C6640D4A-2230-4FD9-A166-93409BC578CF', 'uc_modifier_id', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN '987C08C3-F7C4-4B8C-9AF9-35D2FDAE35E7', 'proj_id', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN 'FFBFA693-EDDA-4786-A04D-BDFE6F8AFF2F', 'reason_id', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN 'DFF303D8-DC26-449A-A48F-C4EF2A8A1F36', 'calendar_id', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
    EXEC MD_DMM_COLUMN 'C6E8E325-7457-4F9F-A157-9E673195C153', 'is_delete', '3E89932E-4E2F-475B-9F99-22B8B9160C8A';
COMMIT TRAN ASDK_UC
GO

BEGIN TRAN ASDK_SLA
    EXEC MD_DMM_COLUMN '9AA512D5-CB72-4A10-8C18-9ABC1FA22EE4', 'sla_id', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '307D08E1-05EB-48CB-8192-F9DBFAEC57F0', 'guid', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '996C5443-7729-412B-A11C-A459FDCED853', 'name', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '456FD4EE-8DDA-4494-A721-68D72827D512', 'descripcion', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '7FD5A349-419D-428C-8A8A-2941C86B5B4B', 'date_start', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '7E1309F7-437D-4941-997C-2D926B8A5284', 'date_finish', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '102A9567-F5F3-4550-9B55-584BF02A0A98', 'sla_date_review', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN 'A0A8C2EA-B97C-47C7-8EAE-687E824C018E', 'sla_date_open', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN 'DDF29A16-3ACE-4B9B-88D0-2D73D6336945', 'sla_date_close', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '540B93C6-CE1F-4B13-B11D-C27C1023FD10', 'previous_status_id', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '74FBDFB6-09A6-4F1B-9FA7-0A35546D4928', 'sla_modified_date', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '1DC2C8D1-9D49-41AB-AD57-D4D27493F02F', 'sla_modifier_id', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '75C371A6-45E4-46E3-86F5-A2B5561ADE04', 'proj_id', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN 'B55F40D6-EB4B-43FB-B53B-647F66398EF5', 'reason_id', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '7BA0BF4B-AC0B-47AD-862B-47F6B4983A75', 'calendar_id', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
    EXEC MD_DMM_COLUMN '7A6ECBC4-FC04-4A1D-97D9-0090709449CC', 'is_delete', '05C660C0-C5A6-4E00-B511-9CB676BD8213';
COMMIT TRAN ASDK_SLA
GO

BEGIN TRAN ASDK_SERVICE
    EXEC MD_DMM_COLUMN 'D13B0C78-C5AD-4172-8985-B868093CF9A1', 'id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN 'A6679144-D904-4E60-A2A1-2BD2CE14EC2D', 'name', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '654043B9-721C-408C-B864-E510FD498F09', 'description', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN 'E8857E78-99DA-4DFF-B286-662E41231C08', 'responsible_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN 'C5DD0BEC-B69B-4052-A79A-757E2FF32377', 'impact_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '2B87712F-3C50-4F64-B5D3-6732D41A83FC', 'group_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN 'E639F52D-6F10-4CAF-A09A-F8875472D213', 'project_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '1A7FAAD7-1A59-4FF5-8C2B-DCC2BBA3F7D7', 'sla_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '62BD68A7-9B49-420B-B1AE-F3651D6C8FA1', 'uc_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN 'A9D49596-D0EC-4677-84AD-F8685F279580', 'ola_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '87917608-D2AD-492A-A5DB-3310B0173E47', 'state_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '93B75116-0D7D-4FAC-A50E-248C93D1BB9A', 'author_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN 'DEF359D4-1033-45FD-98E5-DBE81EEA64C2', 'type_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '99E8E991-CCE7-41AB-888D-5D3721883CC8', 'opened_date', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '031740DD-708D-40DE-B630-0EDA1FFB2D83', 'reason_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN 'C7509D07-0368-4B9E-B87A-D349643F544A', 'closed_date', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '5B8AE69F-C97A-4145-ACF0-E1C05172DFE4', 'previous_state_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '49DEF214-F5CC-460F-B40F-32319F7244F2', 'modified_date', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '4ADEE190-481C-463A-B10F-34FF1C6DFF9D', 'modifier_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '2FCD6FF2-47E1-406B-B7B4-DFF978525F51', 'cost_center_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '5C58CE25-041D-4564-9D3A-61BF82DE3E1E', 'income_center_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '98BD4A7A-DE34-4766-A06A-CB86E1488DFE', 'image_name', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN 'B05CF4DF-EF52-45B9-B5A4-A7EA31F41015', 'image_id', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN '0D7C7F5E-EED7-439A-B03D-3993FF000B5C', 'priority_sla', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN 'FD789534-743D-434D-8BD0-D699B6647F9C', 'is_delete', '40B611B2-2260-434D-BEB6-144233B05C1B';
    EXEC MD_DMM_COLUMN 'A0AB37C4-F4D5-44BA-9300-F3522DEC3CEB', 'guid', '40B611B2-2260-434D-BEB6-144233B05C1B';
COMMIT TRAN ASDK_SERVICE
GO

BEGIN TRAN ASDK_REGISTRY_TYPE
    EXEC MD_DMM_COLUMN '5C1C4ECF-E2B3-4342-BD36-9C65822259FA', 'registry_type_id', '07863B77-B3AF-48AF-803C-54BCA9CBBD90';
    EXEC MD_DMM_COLUMN '5E674CFE-4CDC-4015-B28E-2850299CE1B1', 'registry_type_name', '07863B77-B3AF-48AF-803C-54BCA9CBBD90';
COMMIT TRAN ASDK_REGISTRY_TYPE
GO

BEGIN TRAN ASDK_PRIORITY
    EXEC MD_DMM_COLUMN 'E064E7DE-FAFA-479F-A2F4-95E39A90A727', 'priority_id', '6BDE4EBA-91A6-4174-BE2B-09A5FE47A1D3';
    EXEC MD_DMM_COLUMN '3E2B0916-81FE-4B53-BF46-9CA8D39E6A54', 'priority_name', '6BDE4EBA-91A6-4174-BE2B-09A5FE47A1D3';
COMMIT TRAN ASDK_PRIORITY
GO

BEGIN TRAN ASDK_OLA
    EXEC MD_DMM_COLUMN '726DB5FB-906E-40AB-ABC1-37A618F9A83E', 'ola_id', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN '6DC09920-CC9D-42F9-9E38-07E6F33837DB', 'guid', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN '7500041A-CEBF-4029-A80D-4909A3D7FFD1', 'name', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN 'F7D1C94B-146C-4799-AE6B-724EA4D11CF7', 'descripcion', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN 'DF490823-6016-457B-8C1D-84582252D3CE', 'date_start', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN 'FA126E5C-82D1-441E-B031-E5908799BEE2', 'date_finish', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN '54D9B6C6-E825-4F52-9261-E56E7E6F4AC7', 'ola_date_review', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN '7373B102-B0A0-4223-99E0-2F28F9A3302C', 'ola_date_open', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN 'C9E5C490-F285-4B16-B031-F0D015A9497B', 'ola_date_close', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN '44332B05-CC42-4B34-985E-FE15772BEEDC', 'ola_modified_date', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN '0AF463A7-E00D-42B6-B268-D07449078497', 'ola_modifier_id', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN '84970080-D882-431B-8BDD-C5CA373E342D', 'proj_id', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN '430393E5-BA3B-4AE2-A42B-A397EDD0DFA8', 'reason_id', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN '7E5759A3-5F21-4A58-ACC2-54BD65374396', 'calendar_id', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
    EXEC MD_DMM_COLUMN 'EA969010-B428-4385-B6C0-F4036C7058F3', 'is_delete', '86C6D9AE-9274-4249-8FB4-2240D66D483D';
COMMIT TRAN ASDK_OLA
GO

BEGIN TRAN ASDK_MODEL_COST_PRICE
    EXEC MD_DMM_COLUMN '5148EAF3-05B9-4481-B186-35E981B09BD2', 'mod_id', '172457D5-A596-4C45-95FD-442A385CADEE';
    EXEC MD_DMM_COLUMN 'AC468078-B84F-4AE6-9744-5E91E3EAEF21', 'mod_name', '172457D5-A596-4C45-95FD-442A385CADEE';
    EXEC MD_DMM_COLUMN '0EAC7909-F75C-4CBE-9A19-733987BCE32F', 'description', '172457D5-A596-4C45-95FD-442A385CADEE';
    EXEC MD_DMM_COLUMN 'CCE5483B-62F7-4981-ADC8-E92337AE7864', 'proyect_id', '172457D5-A596-4C45-95FD-442A385CADEE';
    EXEC MD_DMM_COLUMN '7C14E331-1D4E-41A3-9B26-E78BC55E88B3', 'guid', '172457D5-A596-4C45-95FD-442A385CADEE';
COMMIT TRAN ASDK_MODEL_COST_PRICE
GO

BEGIN TRAN ASDK_IMPACT;
    EXEC MD_DMM_COLUMN 'E32C921D-54C3-4779-8B0E-F99A971DE4D0', 'impact_id', '21489084-3B7D-41C1-8180-109D5C719723';
    EXEC MD_DMM_COLUMN '4FEC6C14-EC3E-4508-87FA-478B4954D831', 'impact_name', '21489084-3B7D-41C1-8180-109D5C719723';
COMMIT TRAN ASDK_IMPACT;
GO

BEGIN TRAN ASDK_CATEGORY;
    EXEC MD_DMM_COLUMN 'D69B29D2-BE59-4248-81B0-043043531697', 'ctg_index', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
    EXEC MD_DMM_COLUMN 'AFAC357D-D041-4BA5-9AFF-B4EF532553B3', 'ctg_caption', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
    EXEC MD_DMM_COLUMN 'FB616A8D-9836-4B2B-9D5E-44FFE622B027', 'ctg_parent', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
    EXEC MD_DMM_COLUMN 'C90BB3B2-EB1F-4BF2-845E-F8FDD7980268', 'ctg_imageindex', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
    EXEC MD_DMM_COLUMN 'F208BCD7-BBB7-4CFD-A4B3-8C175CEF17DC', 'fl_str_hierarchy', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
    EXEC MD_DMM_COLUMN 'DF2EC325-9CF1-4B27-9C9B-C7C4A8E2547F', 'fl_int_status_id', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
    EXEC MD_DMM_COLUMN '6CD03978-8756-4FBA-B3BA-30A624FDBA8C', 'fl_str_description', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
    EXEC MD_DMM_COLUMN 'CF4B6700-5533-4E2C-9214-9E816DCFFF7B', 'fl_str_image', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
    EXEC MD_DMM_COLUMN 'B7A55F0F-AA4B-468B-AAEC-12BA342032E3', 'fl_int_image_id', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
    EXEC MD_DMM_COLUMN '182BD292-50DE-4F4D-99CC-5ABEAA12E46D', 'is_delete', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
    EXEC MD_DMM_COLUMN 'B3D46ADD-C2FE-40D6-B376-E382CB6A21D4', 'guid', '4209FF43-32CF-4687-A071-0CD3D848E7C1';
COMMIT TRAN ASDK_CATEGORY;
GO

BEGIN TRAN DIM_DATE;
    EXEC MD_DMM_COLUMN '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3', 'id', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN '0E0E49FA-E513-4A45-B175-4AEB928AE723', 'value', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN '24DE8282-E52A-404E-BF34-C4EE7DB5C33E', 'year', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN '3F1C40F5-9820-4FC6-9484-160408B48878', 'semester', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN '751FC206-DE60-4D60-9837-301780E8B34F', 'quarter', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN 'E3E45F36-A1A2-4E9E-816B-B7DED7D2BA16', 'month', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN 'BD0EC26D-B6DB-457A-AB6E-F799CFDC82A3', 'week', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN 'D9AC6754-E733-40FB-BD96-0E0E3BE9DA83', 'month_name_spanish', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN 'CE9F100E-4E66-4DF6-A5F9-80FF0E407EF2', 'month_name_english', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN '2367739B-9E63-4F47-978A-E1BCF4B7F06A', 'month_name_portuguese', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN 'C806BF56-E223-424B-87CE-38D4981C574D', 'month_day', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN 'CE20A74F-870D-4097-A056-EF9722D7D253', 'week_day', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN '84E157B0-36AE-491F-8E78-1BDC7FF04084', 'week_day_name_spanish', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN '66B15A8F-4B90-4877-8133-8E0A9FF50A5F', 'week_day_name_english', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
    EXEC MD_DMM_COLUMN '26AB0FD1-0C6E-4F5C-BACF-E90B40E24645', 'week_day_name_portuguese', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4';
COMMIT TRAN DIM_DATE;
GO

BEGIN TRAN V_FACT_ASDK_ITEM;
    EXEC MD_DMM_COLUMN '1AA9D84D-A2F8-4E2B-B672-1F1E17C69FEE', 'id', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2' , 1;
    EXEC MD_DMM_COLUMN '734756BC-251A-4A02-ACEF-6716EDBDC3F1', 'id_by_project', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '62F07BF6-59CD-422B-B51A-66A46038C02B', 'modified_date', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '498FE6CD-57B2-46F6-AED5-ACA23E600DFA', 'item_type_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'D27DF1E8-7D40-43A6-9F72-A79D7355DFF0', 'status_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'C0E3F613-3DDE-4095-A88D-A5C387AEFB11', 'project_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '609B6874-FF75-48A4-9264-93E3E832DEE0', 'reason_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '8F636DA3-6F9F-42F8-BC09-2FF89CCC5387', 'category_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '355884C8-243F-4F68-A4D3-DEB93EDB8368', 'service_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '2534E060-FB42-491B-A0D1-F7B392740D2D', 'impact_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'E03EEE92-F1D1-407F-B32E-0BF90C8E3A01', 'previous_specialist_group_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '2E9ABF44-1C04-411B-9F67-FCC0D5226890', 'previous_specialist_user_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '9C62493D-F83C-4DCD-B66A-6D5F20158B93', 'urgency_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'B3055E5F-CEFD-4ADF-AC68-E80FEBB4C3A0', 'priority_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'FE124D0E-230E-4F0D-97ED-80F385B82C9F', 'registry_type_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '3D7E74ED-8599-4C23-A627-7E11BA8CA960', 'specialist_group_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'DF808BC7-704A-4AEE-99DE-FA8FE7B29562', 'specialist_user_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'F010AB70-2C2B-4426-B01F-E20D6E389D65', 'customer_user_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'B4C74BC8-75C5-4715-8A41-94B10D6EC6BF', 'author_user_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '8ADEC568-1FFF-4E05-B13C-807D639D5304', 'company_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'BAAFA61E-3705-4C12-9841-6041B425075C', 'ci_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'BC5C094B-11B5-4D98-A7BA-8EDE78322DE6', 'modifier_user_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'F9B5FF18-6E9E-4428-9B06-4FE0045DC69B', 'receptor_user_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '8382E9BA-D79F-48B0-9005-CC20DB3E9A38', 'integration_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'BEA8F45F-791E-4CF2-AB36-50234E36A2DE', 'calendar_sla_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '3D63F88C-FE49-443C-A0A0-C9CD55BC4F56', 'calendar_uc_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '1AC09DD2-D736-41FB-A0D7-36827BDE3965', 'calendar_ola_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '6F65CA63-B930-47EB-8F45-9D36E09B4981', 'model_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '7B345D80-24D1-4BE8-938C-10CCD25ED0F6', 'sla_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '56FC6BF9-106F-49DE-8057-3161D165DB14', 'uc_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'EAB65F53-125D-4AFE-B0B5-56081BA80284', 'ola_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '82CAD25B-505D-420E-B757-DFB400B41EBA', 'provider_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'E97E0987-2BEC-42C4-AE7A-501C517026A7', 'unit_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'A9C82E75-3EF9-48A3-B072-CD65F133AAD0', 'previous_status_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'F98C128E-BC8E-4CFF-8A11-0F2A0F48C724', 'cost_model_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '35466CF8-9DE9-4ABD-883B-CEB424446226', 'profit_center_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'DAC13E84-059F-42C9-8176-31900BCB88C0', 'cost_center_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '3EA9D891-2C45-4809-8720-ADD2B841A161', 'interface_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'FE7045D4-A9D3-4B6E-8DAD-393A8C67F981', 'state_initial', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '81590478-3FE8-414B-AC3D-16D1D0A0C9FA', 'state_final', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '0E96B934-47AE-41AB-BE1E-BCEEA8223C1F', 'location_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '832035AD-A295-41DF-B500-E60C77218149', 'contract_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'E59A800D-F7F5-48FD-B7DB-BD31D011E607', 'applicant_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'BB5998B6-07AA-485C-9B79-BAD366871A11', 'estimated_date', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '12CCCF43-F3CD-4749-88B0-2D35C1324FC0', 'estimated_date_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '69AD677A-7BB2-4FA3-A620-FF0685236CF9', 'current_progress', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '498E7058-C537-4718-B68F-0DDEEAF8BE1A', 'current_time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '93419234-0F7A-4EF2-A3A3-5814B9FF09BC', 'current_time_formatted', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'CD3D1EEE-BCD7-47D3-B496-A141A2FD771F', 'price', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '1514D93B-AB4F-444E-8874-CAFC749FBEAC', 'cost', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '1E363CE8-8B84-4EFB-8D79-47F385FCDD88', 'effort', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'D74083A0-F63A-4512-8435-1A3708E46BDC', 'available_cost', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'D8BADD55-5524-437B-B9F4-88A3E1F7834D', 'available_effort', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '8244171E-581F-4857-A43A-ED0F06727DAC', 'available_price', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '6ED6A4D1-8D64-4198-9C79-8893E5F6B500', 'available_count', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'E417AEDD-9E82-4A51-96C5-F6F14F3A55F1', 'time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'E033D168-540F-4F38-ABFC-8E69B5D730B7', 'time_formatted', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '09BF79ED-63D0-4588-A94E-C1CA069F6244', 'created_date', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '3D8B29A9-7BFA-4EF8-AE9C-A91C2FF866EE', 'created_date_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'FAA5818C-261F-44F3-B6D9-4B2AD66EE09D', 'opened_date', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'A6C30D6C-3ACE-4CCD-865D-371A6B851132', 'open_date_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'DE172623-BD0D-45B3-8C57-1581DFE92470', 'closed_date', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '4675B8CE-C4E3-4A53-8936-16D14FBC82F6', 'close_date_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '60F641B5-8BAE-427E-AD9C-117D0E37D16C', 'default_time_real_date', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '17116B03-A8C1-471A-B072-A7EBB3FBA80D', 'default_time_real_date_sk', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '859C5B5D-951E-4ABC-869E-08393518BDE6', 'estimated_time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '607A11BA-E8BA-4585-9B99-43BBA9E95EB3', 'solution_date', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'D794987E-5BC9-4963-87CD-D0A12FE39F6F', 'solution_time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '8E254678-FE91-4102-85DC-8FE306CA10D2', 'attention_date_key', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'D13512A3-C809-43A4-AB37-0CE902E36BB2', 'rev', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'EDDE0360-6149-4C2E-89B6-67F9BBF1886F', 'note_count', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'F78EC243-7D4C-4E55-B954-FA0BA82D33C2', 'private_note_count', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '47EDF284-DE18-43F1-9728-1191C84A58F9', 'public_note_count', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'BD9D5DA7-C783-4C3D-9469-06A7B570C00E', 'attention_date', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '59998A4C-D77D-4D64-8C49-5D99739B1271', 'attention_time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'E9FE5658-E802-4691-BFA5-64F1F34CE647', 'wait_time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'D120800F-71C6-4B2B-9591-F68E50A02156', 'specialist_wait_time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '479518C9-1096-44CE-9A1F-5B99F4F8D623', 'first_assignment_time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '2A8A9290-72C5-405F-B4A6-E3291A0757D3', 'first_reply_time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '733D150E-5F1A-4E9A-A0A3-B1E77465A473', 'first_reply_date', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '520F8D3A-BECF-4EB9-BFB4-3284671D65C4', 'f_assign_to_resolution_time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2' ;
    EXEC MD_DMM_COLUMN '084891E4-4DFF-4E99-9FD8-E27A38960E45', 'last_assign_solve_time', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2' ;
    EXEC MD_DMM_COLUMN '963A1754-3C55-4429-BA88-77FF6F2632E4', 'case', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2' ;
    EXEC MD_DMM_COLUMN '6F59E5E6-9927-4774-ADC9-877B53DBDD41', 'change', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2' ;
    EXEC MD_DMM_COLUMN '2E648CFE-62F3-465E-9AD2-A4DD9BA3F136', 'incident', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2' ;
    EXEC MD_DMM_COLUMN '2D5CDFD4-C472-4B73-A543-E04C8C44B4F5', 'problem', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2' ;
    EXEC MD_DMM_COLUMN 'DA5A114F-C469-4475-A2F4-536054175DEC', 'release', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2' ;
    EXEC MD_DMM_COLUMN '2C8D0100-750E-480E-9828-F59BD809A30B', 'requirement', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2' ;
    EXEC MD_DMM_COLUMN 'C539D355-C3DF-4E9D-A38B-39B351F07D1E', 'new_case', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'E2973691-4168-4366-8B5F-59EDD00F0BB2', 'new_change', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '739EA3A6-8287-4C05-8272-2D55D119E09A', 'new_incident', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '575E7523-6ADF-491B-9A4C-3FC75A4DCD8C', 'new_problem', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '17EE478B-623D-4C11-8C78-1C78196979CC', 'new_requirement', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '8E62FA5E-5CAE-456C-A223-5D73807C9F58', 'case_onhold', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'ADE8B6C1-8E7A-4961-9C93-F45666B68290', 'case_pending', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'D81FE469-C93F-4B38-A55D-CD0362B24C13', 'case_pending_unassigned', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '4934C384-B840-4880-A913-0D341B9C63A0', 'case_unanswered', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '78F7857B-09D1-4130-923B-B2014B7D47D2', 'case_solved', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'B089B77C-52C7-41F5-A197-85C7D986A1DA', 'solved_current_week', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'BBC0C343-551E-4256-B281-76D3AD8921FC', 'solved_current_month', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '3332F008-E97B-468C-B444-9084DB251FCF', 'solved_same_month_last_year', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '80F2219E-F4CA-4996-88BF-A1337BCDACD2', 'solved_current_quarter', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '8E793D3C-A698-4D6D-8A66-765EE206EB22', 'solved_same_quarter_last_year', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '852E566E-8E70-4971-8E59-3F830AE5E6AD', 'solved_current_year', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '9A69618B-E5F5-424E-89B1-1466CA59EDD3', 'solved_last_year', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'FBDE1613-6560-47D9-907F-3D2F232B9B8A', 'solved_non_interventions', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '5B2195AD-F88E-4583-8E58-20FD09FA31C0', 'solved_one_intervention', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'F00297E8-8A46-4A91-BA57-74EEEBAE1056', 'solved_multiple_interventions', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN 'D293CCB4-550D-4124-A574-C19DA899191D', 'solved_within_sla', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
    EXEC MD_DMM_COLUMN '1CA3B6BF-2A50-49CA-ABFA-9503C6E3C09E', 'solved_outside_sla', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2';
COMMIT TRAN V_FACT_ASDK_ITEM;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION;
    EXEC MD_DMM_COLUMN 'D2DE6CD2-4A7F-405F-81F7-42BBAF2BD2BA', 'id', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E',1;
    EXEC MD_DMM_COLUMN 'E895E9B5-3E70-40EE-801E-8B6EF725D7B9', 'id_by_project', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '667C71CF-DB8D-4DDE-9F09-2A01C68943C5', 'modified_date', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E',1;
    EXEC MD_DMM_COLUMN '457F313A-0CBF-40A2-A167-EE5D5AAD06DC', 'date_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'E8FB4D1B-F1CF-46CF-95DE-911BAFA55A96', 'rev', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '371AAF4C-C285-469E-9F9D-EA2C4F18B955', 'item_type_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '3351FC7A-870A-4775-B72D-8D4FFA2B5B22', 'status_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'DC31A718-B3AB-44AD-8AEF-A9561A3BCC11', 'project_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'BFE82D77-9AB8-4E57-9B97-9F5242AAC818', 'reason_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '114EA889-3B72-4792-8947-2DA1B5A87EA6', 'category_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'EF9D68E6-CD8E-4733-A0F5-A18D4B1E3DA2', 'service_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'F083244D-4279-4931-8C79-99BF2CE2DECC', 'impact_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '6EFADFC9-667F-40FB-B5AF-A14BAEF2BF21', 'urgency_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '308479B0-86B8-4EA0-AC82-1084E6E4A78C', 'priority_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '1664F0E5-9B64-4B4D-9C1F-2430E26416C2', 'previous_specialist_group_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '2406A255-AA98-4A3A-9F46-15F6AA52DA0D', 'previous_specialist_user_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '69EF15D2-2E04-4F55-8F27-564EE4C60CE2', 'registry_type_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '216C7873-6B95-40A4-97AF-D24ED401A9E8', 'specialist_group_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'D4695E1F-2A64-43A9-8D32-ED4A5900E0A6', 'specialist_user_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'C8F53856-FEC8-41A2-9A85-F80B3E683FB2', 'customer_user_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'F671E12D-B0B8-46C7-AFC8-D858FF967C98', 'author_user_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '9AD140F8-055A-4661-932B-CFFE1B71D298', 'company_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '1D7E4AC1-A2E3-49ED-9A38-AF57480B2183', 'ci_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'ADF1C08A-0EC5-4F68-8B67-3BB802106C19', 'modifier_user_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '72D952BD-DBF4-44BF-B5BC-8403A3134E7F', 'receptor_user_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '689290B6-3474-4A23-A9D1-8908CF350907', 'integration_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '0E177C33-B0FC-4ADB-86C0-862CEC769A76', 'interface_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'E5A6C13C-7CF9-4265-8A3C-25A86B59A7F2', 'calendar_sla_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'A4A0CCF6-71AB-433F-80C9-0A8DE27DB81D', 'calendar_uc_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '070F05A0-F333-4BB3-91B4-EC32E7831274', 'calendar_ola_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'CEBC1C96-C79B-4D78-953B-5F2B86B8A763', 'model_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '1845E230-8C80-408F-8BD6-7A48C38A51C6', 'sla_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'C8797D66-55F6-445D-9D56-3672CF1ECFF2', 'uc_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '431EE4E8-AE19-4290-B188-BE0B334852BE', 'ola_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'D768DFF0-91BB-45FE-AE93-FF1D4F5ED98C', 'provider_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '1AB8B57A-E187-48DB-AB89-6CA29589D019', 'unit_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'BAE95889-722E-47B6-ACD9-561B2113E61D', 'previous_status_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '2AA684ED-3B43-4F11-9612-B33A06E74D44', 'cost_model_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'E5592433-D9E5-4256-9D07-ADA023A14EF4', 'profit_center_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '618D45EF-A7E7-49AB-BEF2-29E7149FFF4C', 'cost_center_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'D09F83B3-1BBE-4A97-9A6C-D7567DD2A538', 'location_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'F7E7CF6A-B5B2-4485-B148-DAF428167E4E', 'contract_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '4A73EB50-F350-4176-8C5B-BCBF43A458D6', 'applicant_sk', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '7F946762-E849-40DE-A2A1-3B79B8D2B321', 'estimated_date', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '8073A114-288B-49CD-99FC-B9760271F1CB', 'current_progress', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'EA27EE58-CB28-4BE0-B0C7-10F66B3F38F4', 'current_time', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '60075B97-D489-4C14-9972-AB675E008247', 'current_time_formatted', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '98EA6AB2-88D2-4540-860D-3701FABB13E5', 'current_cost', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '49573B54-438A-4321-A951-7A8E57DA816D', 'current_effort', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '6D8A22B7-BBF0-4724-A0BD-50A91B7FACC3', 'current_price', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'B5F53136-DC7C-449F-8D5A-BF88E6CC08BB', 'time', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '2AB640AE-E92E-4145-AEC7-D66D37A229AE', 'time_formatted', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '4E772BED-EAF3-4FB5-934A-AA841F05DEBC', 'note_count', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'E978B79B-23D4-4F2B-B8A0-AA582C79BFDC', 'private_note_count', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '02698765-86F7-4457-89FB-40C098FEC2E7', 'public_note_count', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'FCF4247D-6460-47A4-AEFA-A18B5F82F9EC', 'updates', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '0E904F15-11C9-476E-9DA9-5C491AE1A73F', 'specialists_updates', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '865D8C55-EFDF-4782-8452-B083FB28F554', 'users_updates', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'AD00FF2A-C9BA-429B-A5AA-C41B0625E4B5', 'commentaries', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '6EE77C3C-06CE-4D38-85C6-8DB5053F38DC', 'public_commentaries', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'FD89E5BD-784C-4446-B75F-9E283C1F1AEC', 'private_commentaries', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '6B09AAD1-B8FE-4BDC-A1E4-918C49E52221', 'assigned_agent_reassignments', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '055BE455-F09E-46AB-8658-BBC47AC42F0D', 'group_reassignments', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'F98AEA24-15DF-43E1-9CBB-76AE3E870B28', 'field_change_time_min', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '5ECAC9BE-E2C3-496F-8A31-285F3A98E848', 'new_state_time_min', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '3F3BB29D-B963-4DCA-A219-664612228139', 'in_progress_time_min', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '8D76F0F9-8F1E-416B-A556-87230E0A7397', 'on_hold_time_min', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '729BE0FD-A23C-4397-B193-5735785B3D86', 'scheduled_state_time_min', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'C73EF7FD-CF58-49F2-A2C6-A9C68774997A', 'field_change_time_h', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'EB5F9F9F-DFDA-40A5-9569-4FC6F5FEF893', 'new_state_time_h', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'AB487803-0489-4B4F-B532-C8DFA0DADC05', 'in_progress_time_h', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'FEDA0F29-AA92-4951-AB58-62A5EF4C3F95', 'on_hold_time_h', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '6DDCED92-9F07-4F72-B95C-411A00188132', 'scheduled_state_time_h', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '9C462EF8-39E4-4D6B-889F-AAD4C10C2AD5', 'field_change_time_days', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'E8F489D3-CC76-4417-B5E6-C5C317CB7756', 'new_state_time_days', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN '0CFF16D6-C158-41D3-99C1-34D721D38497', 'in_progress_time_days', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'D0595020-9179-4144-9E49-287798EE01DF', 'on_hold_time_days', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
    EXEC MD_DMM_COLUMN 'E0BEA4EE-E45D-4CFA-8994-568537244996', 'scheduled_state_time_days', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E';
COMMIT TRAN V_FACT_ASDK_ITEM_REVISION;
GO

BEGIN TRAN V_FACT_ASDK_TASK_REVISION;
    EXEC MD_DMM_COLUMN '5866E0DB-6B18-4E61-9F27-C7F5D066FC9B', 'id', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647',1;
    EXEC MD_DMM_COLUMN 'A3B5D44F-D239-4863-AC4F-64CFD93142D2', 'id_by_project', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '9BADB3A8-6DBF-4323-92DF-548CEAF68004', 'modified_date', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647',1;
    EXEC MD_DMM_COLUMN 'A8D11928-F64A-465A-A1DE-86B9E51F0967', 'date_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '189698DE-DAC0-4CAC-9138-49C2C5D958B1', 'rev', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '396295D9-1DCA-4CEF-B7BE-CADDA96E8516', 'status_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '2F2D424A-8AE1-4CF4-AC74-FF224CE10006', 'project_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '6DE3E73F-85B4-4F90-BBFD-9F7F66CEAE71', 'reason_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'B5C0A3E7-4E7E-450B-BFF2-DBA4A4B255A4', 'category_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '2AECDAC0-F0F5-4203-9970-43096084FC60', 'service_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '08A28BA5-8B1B-44E2-8A11-2179CFB821A1', 'specialist_group_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '463E31D9-D5B6-4C27-9031-AE2D73AD00CB', 'specialist_user_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'CD3B25EA-D7F8-4470-853C-B24D97E463A6', 'previous_specialist_user_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '5F454B39-3428-4E90-AAFE-691E5C870019', 'previous_specialist_group_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '32798E2B-3DEC-48E4-869B-C5C2BCA39299', 'author_user_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '11A8A57F-3962-4A30-9CD7-5CEBFA907B43', 'modifier_user_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '31917557-515D-41F8-9260-B93369336E08', 'receptor_user_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '997ED351-BAD1-48BB-822F-5EAB17FD8C57', 'integration_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'E16EAF7F-A66C-4F6D-94CA-89E493CE1D6F', 'calendar_sla_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'FE5BA7E7-C51B-4C03-ADD3-2509FB004DCD', 'model_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '2B40DB8B-F12E-46C9-AE69-7639AFD87095', 'previous_status_sk', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '0DC9E522-B8BA-4A6E-A221-808D1B4B784D', 'estimated_date', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'B22F5F5C-BA2F-402C-A2D7-8DD59357BE25', 'current_progress', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '594740F2-93D1-44C9-9E5A-00CAF1F06D70', 'current_duration', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '75705769-969D-4064-B32E-2E00C7FB08F3', 'current_duration_formatted', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '3889892E-C8FC-4DC2-A7ED-61255E6AAFEF', 'current_cost', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'C855F066-3FB2-4642-807E-3BF37CE667C9', 'current_effort', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'E171E7C9-58FF-44AE-8E2E-B70D96E8392C', 'current_price', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '72B9D7A6-6A93-46AF-8AD2-AD7889B463E3', 'duration', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'CBCB0FB1-4216-4794-B919-07D7EAB507C3', 'duration_formatted', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '00C649CB-CB04-46B3-8C8F-C8DCD7DDC052', 'note_count', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'BF01F576-2750-4143-8153-BAC2EF5EB1DE', 'private_note_count', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '5CD1ABCF-D077-4984-8714-98BB7F7D82D4', 'public_note_count', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'B3C610E7-C4EC-4CF9-8BDD-55A2E68973B9', 'task_subtype', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'B0E29520-271A-4DD5-8E9A-0C7DAA627E49', 'specialist_reassigned', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'DE38D753-F537-4AE0-8ECB-F0B6C02AC054', 'specialist_group_reassigned', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '771DC226-A709-4B60-BC49-731E35C534E3', 'task', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '03359064-F1A0-4080-AD00-F96069485AAB', 'task_created_current_week', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '220D6BF8-10E4-4B83-BB6A-8ECBF324A52E', 'task_created_current_month', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'A2F2A6CB-7948-4B97-9F93-8F0FB94DD9D5', 'task_created_same_mth_last_yr', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '5DCC3B8E-EE67-447C-B1A6-751124A6B733', 'task_created_current_quarter', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '69B85D34-4349-41F8-9BED-B216C921E410', 'task_created_same_qtr_last_yr', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '0B2A677F-B51C-44FD-AD98-FEF5F057E426', 'task_created_current_year', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '2035CB84-7632-44A0-AF7F-C9AC55EEEC0A', 'task_created_last_year', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '653A714F-3A6C-4F48-8530-484C96726220', 'task_open', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '6A051810-F4A9-4EC7-A2E3-5E584ABF776B', 'task_closed', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'DB913588-F865-47B6-887E-2A8375911D18', 'task_closed_current_week', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '4B32A855-0072-4932-BE2C-CE8F0528EAB3', 'task_closed_current_month', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '1F359072-C3B9-4AD6-A5D0-B002924969E2', 'task_closed_same_mth_last_yr', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'B8BEE6AA-AF31-4711-9184-5BE2C01CCAEA', 'task_closed_current_quarter', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '8D10C875-C01B-4D22-A148-8F4F4F554571', 'task_closed_same_qtr_last_yr', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'A1F210BB-4AB2-438F-A105-A948D1F834DC', 'task_closed_current_year', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '79AE1787-E4D2-4076-AE92-59331F42436D', 'task_closed_last_year', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'F3A4E2A6-CA5E-4316-AFD0-7D5DA21A0367', 'task_closed_in_est_date', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'C13995CF-8EC4-4C89-A79A-B22FF2A0EF9B', 'task_closed_out_est_date', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '8873FC1E-C1CA-43CA-86B9-B114623B7E65', 'parent_change', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '2D62A732-48FF-4A85-8EC0-AA847B0AB8BB', 'parent_incident', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '4AA3D14D-8C83-4513-801B-4CA2F67CF03B', 'parent_problem', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN '4DF01BDE-6214-4EFD-9E69-D88723E6823C', 'parent_release', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
    EXEC MD_DMM_COLUMN 'EE360BB6-C93F-4A4E-BD74-CFD8E53DA3A0', 'parent_requirement', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647';
COMMIT TRAN V_FACT_ASDK_TASK_REVISION;
GO

BEGIN TRAN AFW_SURVEY;
    EXEC MD_DMM_COLUMN 'C5E2FD57-988B-411C-B4BD-1866F30B021B', 'Id','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '3E2B4D78-864D-43D8-B6A3-9BEF48804326', 'CompanyId','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '9BA85A42-67E6-4FF1-99B4-05D2C85A9373', 'ApplicationId','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '75C39C9C-D005-4659-A74B-1BCD25A26D5C', 'ProjectId','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN 'BBEBE3E9-04AA-44CB-9FEE-A21B2D45F606', 'CategoryId','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '14DF117F-0969-4DC0-91B1-23ADC2249F1B', 'ConceptId','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '24F01C8F-3D95-4075-B555-11565CBC0F4C', 'Title','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN 'D232CA66-1D70-4E1A-919B-0BE5E14C0C6D', 'Name','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN 'C64C197C-22D9-41B6-9348-3366EDFC6147', 'Description','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '21ED87F4-F1E3-40C3-AAC4-DB839592276E', 'StartDate','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '994CDFAF-F811-42C2-B415-46FB7C8BA665', 'EndDate','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN 'ECE9A389-3930-4B3C-A66E-DCBA4975B393', 'Status','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '065B2246-86DB-49DF-BEFA-3FE735D97E04', 'ExitPage','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN 'E7301723-E42C-4E99-BE17-7E3E8678CC6A', 'Observations','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '237F1443-DF61-43E6-8A8D-6C0EEDFBDC65', 'CreatedBy','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN 'DF615929-2AF6-4FE3-AFCF-744ED1B29635', 'ModifiedBy','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '37B8E778-4F8D-4E1E-9FF7-2AAD8AD2D119', 'CreationDate','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN '6C9F1D6C-48F3-45F2-A231-B494B82B8E64', 'ModificationDate','743B3412-79BE-49B7-B76B-488CAD1D87CF';
    EXEC MD_DMM_COLUMN 'A3A866CE-8FDE-4526-BE27-CD350F3C8CEB', 'IsDeleted','743B3412-79BE-49B7-B76B-488CAD1D87CF';
COMMIT TRAN AFW_SURVEY;
GO

BEGIN TRAN AFW_SURVEY_QUESTION;
    EXEC MD_DMM_COLUMN '7C1D13C2-458F-42B8-B397-694EE7893C2A', 'Id','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN 'F5A38D42-08D1-4172-96FD-7098577633A8', 'QuestionTypeId','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN 'CC52B9E6-6264-461A-A480-A34048728A51', 'SurveyId','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN '08A5701B-E396-467C-87AD-2D5FA1B89C2E', 'Title','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN '3B86EF33-DD39-4932-8B86-AFC55718490B', 'HelpText','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN 'D747B5CD-4963-42C1-9F80-1E8F017D91AA', 'Mandatory','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN 'FDF7AE6C-0267-4D8C-AC63-A16263F21949', 'QuestionOrder','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN '3CD84E14-8513-4047-8DA3-809C9C9DB595', 'IncludedToReport','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN '81B10182-5C04-43B8-83A3-C7EB9E110B3A', 'MaxValue','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN '4F5803FB-E8F0-4281-91FB-85FC976C693F', 'JustificationRequired','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN '4AD025F9-1843-46F9-B83B-6AFB8676090C', 'JustificationLabel','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN '7BB64540-2232-43D0-85AF-BB93EDCD7D71', 'JustificationMandatory','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN '8221AF23-6250-4DE8-BC5B-223107A97D2A', 'ChoiceMandatory','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN 'BB10FF39-30B4-46BC-9505-A6AD4A1C2E4F', 'CreatedBy','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN 'AD899CF8-16E5-4A43-8C12-B675720541E4', 'CreationDate','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN '78E512CA-EA49-4EC1-8278-8508AE71838E', 'ModifiedBy','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN '6E404689-0568-4CD3-BC3E-FDFE3AF152A7', 'ModificationDate','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
    EXEC MD_DMM_COLUMN 'D6EB7B4D-64C0-48C0-8EFE-E068C9BD38AA', 'IsDeleted','FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1';
COMMIT TRAN AFW_SURVEY_QUESTION;
GO

BEGIN TRAN AFW_SURVEY_QUESTION_TYPE;
    EXEC MD_DMM_COLUMN '5B87FCBD-FA39-4E7E-991A-7F2C79E48776', 'Id','35A78D01-F32A-44BA-9210-CE0B3756B282';
    EXEC MD_DMM_COLUMN 'F230B04F-5311-40D7-ADF3-2B0DF5F5E353', 'Name','35A78D01-F32A-44BA-9210-CE0B3756B282';
COMMIT TRAN AFW_SURVEY_QUESTION_TYPE;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY;
    EXEC MD_DMM_COLUMN '0BB2B8AB-06D5-4247-A7D1-DB50FCD3C986', 'id','97DB752F-D6E1-4ADC-86C7-4FA595D62082',1;
    EXEC MD_DMM_COLUMN 'CE0739DF-8F16-4587-BF68-3EE5F064A54C', 'survey_sk','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '6E3957DF-4A65-4C4C-9548-260BA7984F71', 'question_sk','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '966D8E5E-E4BF-4FB5-B4B4-D4EB7F531ECA', 'question_type_sk','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN 'D050D5C9-25CD-4B5B-A980-59D1B4768078', 'response_date_sk','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '818DBFD2-596D-4287-AD65-500BD32E76E3', 'response_date','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '4EAED294-D156-4073-BD56-225231B9C218', 'creation_date_sk','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '266ED85F-CC54-4AD5-BC96-09BD8282F4B3', 'creation_date','97DB752F-D6E1-4ADC-86C7-4FA595D62082',1;
    EXEC MD_DMM_COLUMN '50DDB002-14D7-40AD-9AAD-09A3DF1FE097', 'survey_sent','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '4028306C-D28D-49E0-9036-6EF051D76D11', 'invitation_sent_email','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '32815D4F-3B1C-4C6A-9864-3E0FDE85CF35', 'survey_answered','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '798CEA43-4C2C-41CC-BE0F-C9D4F5C2C9E0', 'survey_unanswered','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '604237DF-60E8-4B50-86BC-04F1E0CC3302', 'rating','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '32088D34-A05B-4A6D-B3AC-8C1FC1A55C60', 'survey_rating_max','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '6A0576E5-D185-4C0E-8A3E-5A4853A4B9CB', 'survey_rating_min','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '43631548-DF03-449E-AE1E-B56AFBF13B5F', 'incident_survey_answered','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN 'D0B34D67-FDB6-4F85-A33A-6AAC0CC22339', 'change_survey_answered','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
    EXEC MD_DMM_COLUMN '0BAA11F2-8A9B-4305-9427-E3091C96CB93', 'service_call_survey_answered','97DB752F-D6E1-4ADC-86C7-4FA595D62082';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_SENT;
	EXEC MD_DMM_COLUMN 'B3106C22-DC3B-49F2-A560-521B77FEB810', 'id','C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA',1;
	EXEC MD_DMM_COLUMN '00C64D56-D6D3-4CD3-8669-4813E1F02DAB', 'survey_sk','C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA';
	EXEC MD_DMM_COLUMN 'EA5CCB71-5117-4939-B113-52913369B4F8', 'creation_date_sk','C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA';
	EXEC MD_DMM_COLUMN 'EFE7EF1F-F2BC-4C0B-880C-FBAFC3345DDA', 'creation_date','C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA',1;
	EXEC MD_DMM_COLUMN 'C6502C53-1D44-4D36-9A09-9C475A4BA407', 'survey_sent','C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA';
	EXEC MD_DMM_COLUMN '76AA6292-19D6-4DDF-BFE9-A42A5364B2C0', 'invitation_sent_email','C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_SENT;
GO

BEGIN TRAN FUN_ASMS_FIELD_VALUE
    EXEC MD_DMM_COLUMN '5B031190-42E8-4972-92E3-FAF520BA6F8F', 'field_id', 'C265AF16-85E7-4425-9AE7-3308DB0FCB13';
    EXEC MD_DMM_COLUMN 'B5876F14-3F02-4DAD-B387-BA9A8DA00C4C', 'field_value', 'C265AF16-85E7-4425-9AE7-3308DB0FCB13';
COMMIT TRAN FUN_ASMS_FIELD_VALUE;
GO

BEGIN TRAN ASMS_FIELDS;
    EXEC MD_DMM_COLUMN '12EADC33-51AF-4451-BB9A-7F5FF77F2B12', 'name', '07435893-924A-428C-AF33-FECB3675DDD6';
COMMIT  TRAN ASMS_FIELDS;
GO
BEGIN TRAN CMDB_CI;
	EXEC MD_DMM_ATTRIBUTE '15B1F96E-E74A-4761-A7E9-5CBAE74921DE', 'COLUMN', '81469F3E-FA77-4CCE-AF02-F8672CFC72D0';
	EXEC MD_DMM_ATTRIBUTE 'F977B8D5-7569-4E2B-87C6-45AFD262B8D4', 'COLUMN', 'B3471462-1460-4E15-994F-CFBC5F67C2F6';
	EXEC MD_DMM_ATTRIBUTE '4BAFE14F-4116-41BA-961F-C3D6F7FB9BD7', 'COLUMN', 'B251F562-99AB-4956-BAC4-7A39D7C93F16', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '27269F08-BF45-485D-8A5D-6CA3F0D7CB64', 'COLUMN', '937BFD4F-CE38-429F-A8FF-47B76544EA19';
	EXEC MD_DMM_ATTRIBUTE 'FB2DF8F0-B3D7-4594-BE9C-8490E92ECE54', 'COLUMN', '40C2B62D-1A31-4322-9BEA-E87304EA8F94';
	EXEC MD_DMM_ATTRIBUTE 'FC73004A-1AEF-4420-A39C-EF873D1904A0', 'COLUMN', 'B49DDB30-A050-492F-9D0C-29E26094099A';
	EXEC MD_DMM_ATTRIBUTE '58F45D56-19FE-4D4E-829E-6A25A5DD2E83', 'COLUMN', 'D78DC237-8CAD-46FD-B9F3-34E0D83FCA15';
	EXEC MD_DMM_ATTRIBUTE '9866272F-C376-48D8-9358-84275EF78292', 'COLUMN', '51B60C07-3D34-47B4-BD97-42E6C5A6A210';
	EXEC MD_DMM_ATTRIBUTE 'C0364057-E434-4A5E-BBEF-F3AC0DCF612B', 'COLUMN', 'D9D72300-5D31-4B9F-9B81-BCC9D6101667';
	EXEC MD_DMM_ATTRIBUTE '8475BCAE-D6E1-46E2-8EF6-0C36FBCDF520', 'COLUMN', '8C85DBC2-48B5-47AB-AD35-02F809E5A467';
	EXEC MD_DMM_ATTRIBUTE '1EB4851B-8B99-4771-9FAA-902FA4E23585', 'COLUMN', '805365BF-B261-4EFA-A119-5772BC7A671B';
	EXEC MD_DMM_ATTRIBUTE '6D67D538-6F5B-49CD-B9C3-CB340FF8C974', 'COLUMN', '1E507C76-3F56-41D8-8BEA-E16B36BF6C82';
	EXEC MD_DMM_ATTRIBUTE '2FB68212-EAC6-4A8B-B607-3F60803AAEE1', 'COLUMN', '5AF8FEDF-4434-45D8-AEF7-CC142657055B';
	EXEC MD_DMM_ATTRIBUTE 'F3BC6573-A93D-4A25-B7B9-1064C1A096FE', 'COLUMN', '57EBA56E-3BCB-48C5-8BEA-8370109B535C';
	EXEC MD_DMM_ATTRIBUTE '7E6D18F1-DE60-4171-B8BE-5772183ED914', 'COLUMN', 'C9467E8B-29CC-4C1D-8EBA-3F9D42788DFC';
	EXEC MD_DMM_ATTRIBUTE '3935F646-B27B-4EF0-96FA-8ED5FDDC8E56', 'COLUMN', '25D9CFEC-B851-408C-8AC0-D517CF7069F2';
COMMIT TRAN CMDB_CI;
GO

BEGIN TRAN ASMS_TYPES;
	EXEC MD_DMM_ATTRIBUTE '6626BA5D-5F6E-41D8-AE7A-A04CEA775222', 'COLUMN', 'EEDCD330-E670-422C-9A8C-79223AA01884', 0, 1;
COMMIT TRAN ASMS_TYPES;
GO

BEGIN TRAN ASMS_STATUS_REASON;
	EXEC MD_DMM_ATTRIBUTE 'FA64FE54-E643-415A-8F1D-F5A86DB012D7', 'COLUMN', '70181CD7-3012-4399-B189-C9ABF184F505', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '0C49151D-6ECA-4ECC-A2BA-F6D94F51FB8E', 'COLUMN', '42FA313F-2BA8-4B47-AC5C-FB724603F2F2';
COMMIT TRAN ASMS_STATUS_REASON;
GO

BEGIN TRAN V_ASDK_STATUS_BEHAVIOR;
	EXEC MD_DMM_ATTRIBUTE '06286622-A383-4095-9F84-1F827D8D97E2', 'COLUMN', '88CC306A-1674-48CA-A380-E92EF335272E', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '43BA88D6-8F3E-4CB0-92D4-4026A89513E2', 'COLUMN', '5D60D8A0-8D5B-4363-8C9A-83243F563D0C', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'BE866971-40F4-4005-81F6-CC61686B8429', 'COLUMN', 'ABE5820D-AFD9-4E8F-A190-9FA15B672889', 0, 1;
COMMIT TRAN V_ASDK_STATUS_BEHAVIOR;
GO

BEGIN TRAN AFW_USERS;
	EXEC MD_DMM_ATTRIBUTE 'BAC96493-8728-4B2E-B5DE-7679CB1D23A5', 'COLUMN', 'A5029538-6128-4BA7-8B5C-6FE5EB563743', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '37CE48A9-BAA8-48E7-82D3-D0EA972D94E0', 'COLUMN', 'E94AD072-81C4-49C5-B7A8-EFB0AA3A32BC', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '2FC9BC83-ECF4-41E9-84E0-BDD18443234E', 'COLUMN', '14589C32-57AE-432F-9DE3-B129747EBB92';
	EXEC MD_DMM_ATTRIBUTE '1B823990-DCB2-4691-AD9F-0BD35D64010E', 'COLUMN', '641859F5-AE7C-4218-AC67-535F66A7B2A7';
COMMIT TRAN AFW_USERS;
GO

BEGIN TRAN ASMS_COMPANY;
	EXEC MD_DMM_ATTRIBUTE '85E5F982-8507-414C-B564-E820A315768F', 'COLUMN', '89BB1D49-D651-4824-9B11-AFE60CD0832E', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'C861D752-447D-40D9-85F6-EF743491CA6A', 'COLUMN', '4974A016-8EF6-43A9-A4C1-18466250136F';
	EXEC MD_DMM_ATTRIBUTE '0278447E-CA94-4149-8B78-34BDFE4C6566', 'COLUMN', '72B13B15-D609-4CE5-8C22-90EEE498F9F9';
	EXEC MD_DMM_ATTRIBUTE 'C434D7BA-5B51-4F53-892F-61A8FFDBC569', 'COLUMN', '493B2F94-9208-4089-9DFF-6A915E063396';
	EXEC MD_DMM_ATTRIBUTE '93770C59-E42D-4805-8F44-C8C3A84FF633', 'COLUMN', '0F7C3DBC-254E-47F6-8E72-7FD50D613817';
COMMIT TRAN ASMS_COMPANY;
GO

BEGIN TRAN ASMS_PROJECTS;
	EXEC MD_DMM_ATTRIBUTE '53FEC50C-B133-4C91-872A-08FD74A94CC4', 'COLUMN', 'A3DD49A7-5514-4D15-91DD-7CC102185DDB', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '6755DC2F-D6B9-4B73-AB14-87FBD0290857', 'COLUMN', 'B52B8277-8980-47E5-AB12-27FE026AE1DD';
	EXEC MD_DMM_ATTRIBUTE 'A8BB2293-C0CE-4805-9BE5-1EB15E3512BE', 'COLUMN', 'CB9CAD05-FBD3-4570-8D12-844EEC785F64';
COMMIT TRAN ASMS_PROJECTS;
GO

BEGIN TRAN ASMS_COST_CENTER;
	EXEC MD_DMM_ATTRIBUTE '327B284F-3F19-4FD2-B955-795CF8E15C22', 'COLUMN', 'EE620F84-662B-4BAA-AB4B-2D20D82908AD';
	EXEC MD_DMM_ATTRIBUTE '42926BD4-42E3-49C6-A647-36DCF6690F01', 'COLUMN', 'C7B01CF6-79B6-40C2-9F89-B9307954FA5E', 0, 1;
COMMIT TRAN ASMS_COST_CENTER;
GO

BEGIN TRAN AFW_GROUPS;
	EXEC MD_DMM_ATTRIBUTE '480F71F6-08D1-448C-9FE8-1406495BCB19', 'COLUMN', 'A5AEDDE6-1FBB-4980-A84C-352E6F409D69', 0, 1;
COMMIT TRAN AFW_GROUPS;
GO

BEGIN TRAN ASMS_MODEL;
	EXEC MD_DMM_ATTRIBUTE 'B0EB9F51-65E0-4C68-B975-1C7B9736AAC8', 'COLUMN', 'C7138C59-62DD-498A-B88E-A623DE533123', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'DD15BA24-FBF0-4A72-AF78-64D424A9FD54', 'COLUMN', 'E13A6EE7-3C79-4CFF-A070-DD46626A8666';
	EXEC MD_DMM_ATTRIBUTE '8ADE5227-2569-4C93-AE26-CEC162D118AA', 'COLUMN', 'E6FF8926-4E6C-4C5A-A494-FEA4E0543018';
	EXEC MD_DMM_ATTRIBUTE '50313276-3092-4F2E-B46F-9664EDCD93FA', 'COLUMN', '11933B42-AB5A-4E47-897F-752F020EA448';
COMMIT TRAN ASMS_MODEL;
GO

BEGIN TRAN ASMS_LOCATION;
	EXEC MD_DMM_ATTRIBUTE '84E92168-66B1-4A15-8802-BE8B7B7D9C56', 'COLUMN', 'BFF3289D-B119-44E1-A7B3-1B7C00650F71', 0, 1;
COMMIT TRAN ASMS_LOCATION;
GO

BEGIN TRAN ASMS_CONTRACT;
	EXEC MD_DMM_ATTRIBUTE '761BC549-CC7A-45C9-BE70-15AC10F74F2F', 'COLUMN', '8CEAAB21-A4AE-4DC7-98C0-FCBD1E38D3F7';
	EXEC MD_DMM_ATTRIBUTE '3386A9E5-1966-4117-A043-8E5363A1C39B', 'COLUMN', 'CD41884F-CC8D-401B-B9B8-59951C1CC14D';
	EXEC MD_DMM_ATTRIBUTE 'F3CB6927-4998-40CC-ADFE-524C442EE157', 'COLUMN', 'CDDE4114-E1B1-434A-8674-06AE6F666B6E';
COMMIT TRAN ASMS_CONTRACT;
GO

BEGIN TRAN ASMS_INTEGRATIONS;
	EXEC MD_DMM_ATTRIBUTE '5B55E948-D081-478A-8B2A-ED33771FF5AF', 'COLUMN', 'CAD9BD9C-CD53-4F12-9832-6AAB225FC233', 0, 1;
COMMIT TRAN ASMS_INTEGRATIONS;
GO

BEGIN TRAN ASDK_URGENCY;
	EXEC MD_DMM_ATTRIBUTE '992932E0-C727-4A86-92EF-45E70B331CB4', 'COLUMN', 'D51855D3-5AAE-4183-AC2E-5F3495A048EC', 0, 1;
COMMIT TRAN ASDK_URGENCY;
GO

BEGIN TRAN ASDK_UC;
	EXEC MD_DMM_ATTRIBUTE 'D6E458BC-DAD1-4459-999A-222898E3B24D', 'COLUMN', 'D5BE2501-2B90-4345-B02D-928195177382', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '51511AE4-A396-4E4A-9259-D63553F462F0', 'COLUMN', '4A253BBD-3055-4635-9FB0-97D633601E8D';
	EXEC MD_DMM_ATTRIBUTE 'FFAB6351-1229-459F-9BC3-B93BCB2E92F9', 'COLUMN', '1738375F-A1DE-4C6B-927D-0D7AF842D631';
	EXEC MD_DMM_ATTRIBUTE '71DDF2D5-7F75-4C69-8FE4-73300CE1C129', 'COLUMN', '90668B51-2D0E-4CF9-94BA-C0ADAC66FADF';
	EXEC MD_DMM_ATTRIBUTE '25C7801A-1AFC-4D4E-A830-9DCE580958BF', 'COLUMN', 'F27E2E82-BDAE-414C-A7DB-0832A29E2CB8';
	EXEC MD_DMM_ATTRIBUTE '49737994-D6EC-404B-8B46-35CD41203A12', 'COLUMN', '52EBBE0C-D9FA-45FB-8D23-FF451C258637';
	EXEC MD_DMM_ATTRIBUTE 'C4F2AC8A-2608-4286-B741-6E79F7F83F32', 'COLUMN', '9C3E9852-DF0C-475D-9D79-7497822679A2';
	EXEC MD_DMM_ATTRIBUTE '686627D0-E821-476C-B7CD-51778956852B', 'COLUMN', 'C6E8E325-7457-4F9F-A157-9E673195C153';
COMMIT TRAN ASDK_UC;
GO

BEGIN TRAN ASDK_SLA;
	EXEC MD_DMM_ATTRIBUTE '4AF481A7-CBB1-4EF3-A657-ECF028191FDA', 'COLUMN', '996C5443-7729-412B-A11C-A459FDCED853', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'E6FEC33E-DD2E-4557-BF8E-7C910BB72F7E', 'COLUMN', '7FD5A349-419D-428C-8A8A-2941C86B5B4B';
	EXEC MD_DMM_ATTRIBUTE 'E86D9B52-730F-417C-8194-B50935F6BB82', 'COLUMN', '7E1309F7-437D-4941-997C-2D926B8A5284';
	EXEC MD_DMM_ATTRIBUTE 'FFEC96E0-4974-4091-B0A4-69E1E389A1C8', 'COLUMN', '102A9567-F5F3-4550-9B55-584BF02A0A98';
	EXEC MD_DMM_ATTRIBUTE '3CE7CB3E-B8FD-4E99-A30B-58A69C9AE060', 'COLUMN', 'A0A8C2EA-B97C-47C7-8EAE-687E824C018E';
	EXEC MD_DMM_ATTRIBUTE '72C7543A-8A5F-42D9-BD2A-CB3749ADE976', 'COLUMN', 'DDF29A16-3ACE-4B9B-88D0-2D73D6336945';
	EXEC MD_DMM_ATTRIBUTE '519A457E-4956-48C5-80D6-B48F4E00910A', 'COLUMN', '74FBDFB6-09A6-4F1B-9FA7-0A35546D4928';
	EXEC MD_DMM_ATTRIBUTE '72859D86-E087-4660-9862-4CB2C3F0D9C3', 'COLUMN', '7A6ECBC4-FC04-4A1D-97D9-0090709449CC';
COMMIT TRAN ASDK_SLA;
GO

BEGIN TRAN  ASDK_SERVICE;
	EXEC MD_DMM_ATTRIBUTE '90FF2754-8191-4BCC-A9A4-52D3379DACCB', 'COLUMN', 'A6679144-D904-4E60-A2A1-2BD2CE14EC2D', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'BB664401-4313-49E3-93E8-03838F3CB445', 'COLUMN', '99E8E991-CCE7-41AB-888D-5D3721883CC8';
	EXEC MD_DMM_ATTRIBUTE '21DA97E5-0DBE-41FA-BC71-3391BE002E49', 'COLUMN', 'C7509D07-0368-4B9E-B87A-D349643F544A';
	EXEC MD_DMM_ATTRIBUTE '5350C47C-40C7-46BB-A2AA-1CC12E5C06DE', 'COLUMN', '49DEF214-F5CC-460F-B40F-32319F7244F2';
	EXEC MD_DMM_ATTRIBUTE 'D079F990-073B-40B9-8131-9AF0D4C19C46', 'COLUMN', 'FD789534-743D-434D-8BD0-D699B6647F9C';
COMMIT TRAN ASDK_SERVICE;
GO

BEGIN TRAN ASDK_REGISTRY_TYPE;
	EXEC MD_DMM_ATTRIBUTE 'CBFA3075-F58E-4524-8E95-4B2CEADAB5DF', 'COLUMN', '5E674CFE-4CDC-4015-B28E-2850299CE1B1', 0, 1;
COMMIT TRAN ASDK_REGISTRY_TYPE;
GO

BEGIN TRAN  ASDK_PRIORITY;
	EXEC MD_DMM_ATTRIBUTE '39CCEADA-C654-43B7-BCF3-E0A726B6F659', 'COLUMN', '3E2B0916-81FE-4B53-BF46-9CA8D39E6A54', 0, 1;
COMMIT TRAN ASDK_PRIORITY;
GO

BEGIN TRAN ASDK_OLA;
	EXEC MD_DMM_ATTRIBUTE '4F4F5C20-A66B-408E-B3AB-8DE7A6A082D2', 'COLUMN', '7500041A-CEBF-4029-A80D-4909A3D7FFD1', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '5FD52C06-3077-4F09-97E8-332345FA88AA', 'COLUMN', 'DF490823-6016-457B-8C1D-84582252D3CE';
	EXEC MD_DMM_ATTRIBUTE '86D5E129-496F-4CD2-BC6A-E65720F78408', 'COLUMN', 'FA126E5C-82D1-441E-B031-E5908799BEE2';
	EXEC MD_DMM_ATTRIBUTE '0BB1EA35-2531-47F2-AD53-5F5F55270DE9', 'COLUMN', '54D9B6C6-E825-4F52-9261-E56E7E6F4AC7';
	EXEC MD_DMM_ATTRIBUTE '62AE0B39-6207-41A4-8E05-F108678F4755', 'COLUMN', '7373B102-B0A0-4223-99E0-2F28F9A3302C';
	EXEC MD_DMM_ATTRIBUTE 'B14A5006-E43D-4DBF-BC35-03268851C72C', 'COLUMN', 'C9E5C490-F285-4B16-B031-F0D015A9497B';
	EXEC MD_DMM_ATTRIBUTE 'C4A75AA4-1244-4FCC-AFC4-3AF7F2A122FA', 'COLUMN', '44332B05-CC42-4B34-985E-FE15772BEEDC';
	EXEC MD_DMM_ATTRIBUTE '9BE342EF-3AE3-4612-85E4-F492B1B4BD1A', 'COLUMN', 'EA969010-B428-4385-B6C0-F4036C7058F3';
COMMIT TRAN ASDK_OLA;
GO

BEGIN TRAN ASDK_MODEL_COST_PRICE;
	EXEC MD_DMM_ATTRIBUTE '655FF707-9837-4134-ADD4-5C37DA3A7012', 'COLUMN', 'AC468078-B84F-4AE6-9744-5E91E3EAEF21', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'AA0B21C4-2522-4F66-9E68-D1A04BF98242', 'COLUMN', '0EAC7909-F75C-4CBE-9A19-733987BCE32F';
COMMIT TRAN ASDK_MODEL_COST_PRICE;
GO

BEGIN TRAN ASDK_IMPACT ;
	EXEC MD_DMM_ATTRIBUTE 'AFEA1DBF-76A3-460F-A107-8E6953E42DF1', 'COLUMN', '4FEC6C14-EC3E-4508-87FA-478B4954D831', 0, 1;
COMMIT TRAN ASDK_IMPACT;
GO

BEGIN TRAN ASDK_CATEGORY;
	EXEC MD_DMM_ATTRIBUTE '48EF94B1-F034-40B9-AA59-ED408A5E30B0', 'COLUMN', 'AFAC357D-D041-4BA5-9AFF-B4EF532553B3', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'E612F8AF-9A35-4D9D-89F8-E117151CA2B7', 'COLUMN', 'F208BCD7-BBB7-4CFD-A4B3-8C175CEF17DC';
COMMIT TRAN ASDK_CATEGORY;
GO

BEGIN TRAN DIM_DATE;
	EXEC MD_DMM_ATTRIBUTE 'BBCFF598-49D3-4204-B065-10EFB65CF5FB', 'COLUMN', '0E0E49FA-E513-4A45-B175-4AEB928AE723', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'C949A6CA-64B9-4AB4-B4BC-4F6DEF0A0D49', 'COLUMN', '24DE8282-E52A-404E-BF34-C4EE7DB5C33E', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '4608D8E7-7143-453F-88C9-E23FA8AA5430', 'COLUMN', '3F1C40F5-9820-4FC6-9484-160408B48878', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '6A1590BA-0D08-40C2-95E0-8E7C7C8D9E08', 'COLUMN', '751FC206-DE60-4D60-9837-301780E8B34F', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '6573E54A-E119-4088-94D3-4323CE681A22', 'COLUMN', 'E3E45F36-A1A2-4E9E-816B-B7DED7D2BA16', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'DB1B1E95-CA0C-49FF-A2E8-725740B08D38', 'COLUMN', 'BD0EC26D-B6DB-457A-AB6E-F799CFDC82A3', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'BB775585-368F-42D0-BE8F-120B175ADD4A', 'COLUMN', 'D9AC6754-E733-40FB-BD96-0E0E3BE9DA83', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '7315DF45-B221-4C0D-97FA-781380CD6E36', 'COLUMN', 'CE9F100E-4E66-4DF6-A5F9-80FF0E407EF2', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'C33B06B0-9848-4DE4-8EC4-DB01DC846635', 'COLUMN', '2367739B-9E63-4F47-978A-E1BCF4B7F06A', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '7A414024-C630-40C8-94EF-84FB10742A0F', 'COLUMN', 'C806BF56-E223-424B-87CE-38D4981C574D', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '850441CE-C92F-469E-AAEF-98AD456DA0CB', 'COLUMN', 'CE20A74F-870D-4097-A056-EF9722D7D253', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '1F6BD334-1763-4A55-9B93-7DDE1F2C0057', 'COLUMN', '84E157B0-36AE-491F-8E78-1BDC7FF04084', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'A4E238C1-78C5-4789-8C86-EB4C742BD08F', 'COLUMN', '66B15A8F-4B90-4877-8133-8E0A9FF50A5F', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'E2675026-5C01-4091-A1C3-DA05F73D4AFA', 'COLUMN', '26AB0FD1-0C6E-4F5C-BACF-E90B40E24645', 0, 1;
COMMIT TRAN DIM_DATE;
GO

BEGIN TRAN V_FACT_ASDK_ITEM;
	EXEC MD_DMM_ATTRIBUTE '2CF29EFF-0B36-4D18-AA66-61BC422EBF67', 'COLUMN', '1AA9D84D-A2F8-4E2B-B672-1F1E17C69FEE', 1; 
 	EXEC MD_DMM_ATTRIBUTE 'BF64FB99-86A9-4447-890D-6890474EA8FB', 'COLUMN', '734756BC-251A-4A02-ACEF-6716EDBDC3F1'; 
	EXEC MD_DMM_ATTRIBUTE '6687F7A7-3560-4CA6-81E9-DA13CB899512', 'COLUMN', '62F07BF6-59CD-422B-B51A-66A46038C02B', 0, 1;
	EXEC MD_DMM_ATTRIBUTE 'FCB279AE-A8F9-4395-B51C-8D538B7BC357', 'COLUMN', 'BB5998B6-07AA-485C-9B79-BAD366871A11';
	EXEC MD_DMM_ATTRIBUTE '112C0E6F-8E39-4C59-B918-DA08DAFC7F5B', 'MEASURE', '69AD677A-7BB2-4FA3-A620-FF0685236CF9';
	EXEC MD_DMM_ATTRIBUTE 'AC32F371-04D8-4754-8DEF-7B55D1252A71', 'MEASURE', '498E7058-C537-4718-B68F-0DDEEAF8BE1A';
	EXEC MD_DMM_ATTRIBUTE 'DC097C03-644A-4BF4-82A8-7E404AC4D47C', 'MEASURE', '93419234-0F7A-4EF2-A3A3-5814B9FF09BC';
	EXEC MD_DMM_ATTRIBUTE '2C42B855-5FC4-4662-A13F-7ECEA8BD3A08', 'MEASURE', 'CD3D1EEE-BCD7-47D3-B496-A141A2FD771F';
	EXEC MD_DMM_ATTRIBUTE 'C54DC785-2665-4FA2-BACD-84AD4605D620', 'MEASURE', '1514D93B-AB4F-444E-8874-CAFC749FBEAC';
	EXEC MD_DMM_ATTRIBUTE '4EBE2FA9-9523-405B-BE6F-3DE2755C7D5A', 'MEASURE', '1E363CE8-8B84-4EFB-8D79-47F385FCDD88';
	EXEC MD_DMM_ATTRIBUTE 'B8C52259-FB18-4B17-B484-61C539DD96B7', 'MEASURE', 'D74083A0-F63A-4512-8435-1A3708E46BDC';
	EXEC MD_DMM_ATTRIBUTE '403E97A3-B8AC-45BA-872F-8A32EEE1653A', 'MEASURE', 'D8BADD55-5524-437B-B9F4-88A3E1F7834D';
	EXEC MD_DMM_ATTRIBUTE '66B76855-1A1E-419F-8679-F1B84355726B', 'MEASURE', '8244171E-581F-4857-A43A-ED0F06727DAC';
	EXEC MD_DMM_ATTRIBUTE '7AE35709-94D1-48D5-9395-7DEBEB2E5E3A', 'MEASURE', '6ED6A4D1-8D64-4198-9C79-8893E5F6B500';
	EXEC MD_DMM_ATTRIBUTE '122DDE4F-BF87-4C95-8B09-DA6EED600354', 'MEASURE', 'E417AEDD-9E82-4A51-96C5-F6F14F3A55F1';
	EXEC MD_DMM_ATTRIBUTE 'B32894EF-091E-467E-82A3-31B6F4DECAF5', 'MEASURE', 'E033D168-540F-4F38-ABFC-8E69B5D730B7';
	EXEC MD_DMM_ATTRIBUTE '13BFB20C-82AA-480C-9E0B-45DE768D940A', 'COLUMN', '09BF79ED-63D0-4588-A94E-C1CA069F6244', 1, 1;
	EXEC MD_DMM_ATTRIBUTE '41726291-E0CD-40E9-B179-DB9E2A670228', 'COLUMN', 'FAA5818C-261F-44F3-B6D9-4B2AD66EE09D';
	EXEC MD_DMM_ATTRIBUTE '52922C7A-AFF6-428E-80E5-C23C7586E793', 'COLUMN', 'DE172623-BD0D-45B3-8C57-1581DFE92470', 1, 1;
	EXEC MD_DMM_ATTRIBUTE '4B666823-559C-451E-88DE-A75B93366980', 'COLUMN', '60F641B5-8BAE-427E-AD9C-117D0E37D16C';
	EXEC MD_DMM_ATTRIBUTE 'BE67A3E0-27B7-4A0F-8CFE-02998270A18C', 'MEASURE', '859C5B5D-951E-4ABC-869E-08393518BDE6';
	EXEC MD_DMM_ATTRIBUTE 'E1B7592C-7ADE-461B-997B-A73481BAEDC7', 'COLUMN', '607A11BA-E8BA-4585-9B99-43BBA9E95EB3';
	EXEC MD_DMM_ATTRIBUTE 'EF9F308C-53ED-4B03-8397-440CC84AE05E', 'MEASURE', 'D794987E-5BC9-4963-87CD-D0A12FE39F6F';
	EXEC MD_DMM_ATTRIBUTE '5CA1F9E4-36A3-4E68-94BF-3013A666CEA4', 'COLUMN', 'D13512A3-C809-43A4-AB37-0CE902E36BB2';
	EXEC MD_DMM_ATTRIBUTE 'C63BD20C-34AF-481E-BB67-30E7CFC8DE71', 'MEASURE', 'EDDE0360-6149-4C2E-89B6-67F9BBF1886F';
	EXEC MD_DMM_ATTRIBUTE 'D605AB1F-2A32-416D-B8CB-6D7E5CC2D1AB', 'MEASURE', 'F78EC243-7D4C-4E55-B954-FA0BA82D33C2';
	EXEC MD_DMM_ATTRIBUTE '8F478B6B-6AEF-4981-BE65-3512E9AEF7F5', 'MEASURE', '47EDF284-DE18-43F1-9728-1191C84A58F9';
	EXEC MD_DMM_ATTRIBUTE 'E1ABDAD7-BE62-4D6C-823B-D8DD54056414', 'COLUMN', 'BD9D5DA7-C783-4C3D-9469-06A7B570C00E';
	EXEC MD_DMM_ATTRIBUTE 'D2AE0847-71F7-4C77-ACB9-69DD7736713F', 'MEASURE', '59998A4C-D77D-4D64-8C49-5D99739B1271';
	EXEC MD_DMM_ATTRIBUTE 'A447A55A-5400-4277-9235-EEF8C4CA44C1', 'MEASURE', 'E9FE5658-E802-4691-BFA5-64F1F34CE647';
	EXEC MD_DMM_ATTRIBUTE '997FCC2A-7A09-42C9-8D05-56C8FAFFE0F3', 'MEASURE', 'D120800F-71C6-4B2B-9591-F68E50A02156';
	EXEC MD_DMM_ATTRIBUTE '77B51663-B6F7-4BEC-99DC-0B2B06F84446', 'MEASURE', '479518C9-1096-44CE-9A1F-5B99F4F8D623';
	EXEC MD_DMM_ATTRIBUTE '22442DC1-2605-4287-9649-454C4B2A662D', 'MEASURE', '2A8A9290-72C5-405F-B4A6-E3291A0757D3';
	EXEC MD_DMM_ATTRIBUTE '8F15E3A9-E95C-4FDC-8021-DCDC1F7AD8E8', 'COLUMN', '733D150E-5F1A-4E9A-A0A3-B1E77465A473';
	EXEC MD_DMM_ATTRIBUTE '42F93CAB-76C1-4DFE-86A3-8A19EE991468', 'MEASURE', '520F8D3A-BECF-4EB9-BFB4-3284671D65C4';
	EXEC MD_DMM_ATTRIBUTE 'D39B8C32-8D25-4F3A-9ED0-B36C38C218BC', 'MEASURE', '084891E4-4DFF-4E99-9FD8-E27A38960E45';
	EXEC MD_DMM_ATTRIBUTE '647EE729-780E-4B3F-9C93-B1B060BF7318', 'MEASURE', '963A1754-3C55-4429-BA88-77FF6F2632E4';
	EXEC MD_DMM_ATTRIBUTE 'A1880945-3B5A-44FD-A4C6-61D0081502C2', 'MEASURE', '6F59E5E6-9927-4774-ADC9-877B53DBDD41';
	EXEC MD_DMM_ATTRIBUTE '8A0CBD51-CF2F-4367-A529-A1ABBEAB74E1', 'MEASURE', '2E648CFE-62F3-465E-9AD2-A4DD9BA3F136';
	EXEC MD_DMM_ATTRIBUTE '5ADC3BE2-5455-45C9-A30E-BA06C09A52CE', 'MEASURE', '2D5CDFD4-C472-4B73-A543-E04C8C44B4F5';
	EXEC MD_DMM_ATTRIBUTE 'A0DD1E05-4604-4364-BF2E-13CD5DC7324C', 'MEASURE', 'DA5A114F-C469-4475-A2F4-536054175DEC';
	EXEC MD_DMM_ATTRIBUTE 'F5E73561-FDFC-4E05-B08B-F59229F5EDE4', 'MEASURE', '2C8D0100-750E-480E-9828-F59BD809A30B';
	EXEC MD_DMM_ATTRIBUTE '4394D421-D3B7-41E1-8FC1-6F4ADFB26DB8', 'MEASURE', 'C539D355-C3DF-4E9D-A38B-39B351F07D1E';
	EXEC MD_DMM_ATTRIBUTE '77B15AEA-5F5A-4D45-BA07-638738BFDEBE', 'MEASURE', 'E2973691-4168-4366-8B5F-59EDD00F0BB2';
	EXEC MD_DMM_ATTRIBUTE '297A9BC0-A549-40D9-B0BF-24A24CF65FC5', 'MEASURE', '739EA3A6-8287-4C05-8272-2D55D119E09A';
	EXEC MD_DMM_ATTRIBUTE '9F80FB0C-CEF4-4CBA-BBD6-D253D8F7F16F', 'MEASURE', '575E7523-6ADF-491B-9A4C-3FC75A4DCD8C';
	EXEC MD_DMM_ATTRIBUTE '12923717-15E5-44F7-9C64-EC3376EDF06A', 'MEASURE', '17EE478B-623D-4C11-8C78-1C78196979CC';
	EXEC MD_DMM_ATTRIBUTE '5276C00D-DC7A-41F9-AD44-901210A3319A', 'MEASURE', '8E62FA5E-5CAE-456C-A223-5D73807C9F58';
	EXEC MD_DMM_ATTRIBUTE '96554162-9FD5-4E7E-A814-C4EF1BEA0E5F', 'MEASURE', 'ADE8B6C1-8E7A-4961-9C93-F45666B68290';
	EXEC MD_DMM_ATTRIBUTE 'A03283EB-1665-4895-B4B5-A1F8FD1CDCA0', 'MEASURE', 'D81FE469-C93F-4B38-A55D-CD0362B24C13';
	EXEC MD_DMM_ATTRIBUTE '55B2A333-3BA5-4BC4-A35D-1EDD3B2D6939', 'MEASURE', '4934C384-B840-4880-A913-0D341B9C63A0';
	EXEC MD_DMM_ATTRIBUTE '3D7EC245-8B24-45C3-8529-3DCA7F344D9D', 'MEASURE', '78F7857B-09D1-4130-923B-B2014B7D47D2';
	EXEC MD_DMM_ATTRIBUTE 'FBAA636C-93CB-441D-A2D8-C62E6B47288C', 'MEASURE', 'B089B77C-52C7-41F5-A197-85C7D986A1DA';
	EXEC MD_DMM_ATTRIBUTE '2866F2E1-9527-4872-926C-FCBE0E74EE92', 'MEASURE', 'BBC0C343-551E-4256-B281-76D3AD8921FC';
	EXEC MD_DMM_ATTRIBUTE '31BE421C-A890-4BFD-93E3-4205038785EB', 'MEASURE', '3332F008-E97B-468C-B444-9084DB251FCF';
	EXEC MD_DMM_ATTRIBUTE '6105DD1E-EC97-4BF7-8319-18C0395CCAC3', 'MEASURE', '80F2219E-F4CA-4996-88BF-A1337BCDACD2';
	EXEC MD_DMM_ATTRIBUTE 'B0B799B9-74B4-4747-B95A-62623BEE4970', 'MEASURE', '8E793D3C-A698-4D6D-8A66-765EE206EB22';
	EXEC MD_DMM_ATTRIBUTE 'F34199F6-A154-4308-9F2B-C46BFF7546CD', 'MEASURE', '852E566E-8E70-4971-8E59-3F830AE5E6AD';
	EXEC MD_DMM_ATTRIBUTE '6BAF4AB4-7F70-4A04-A025-9548DADAE8BC', 'MEASURE', '9A69618B-E5F5-424E-89B1-1466CA59EDD3';
	EXEC MD_DMM_ATTRIBUTE '2156DF02-FA08-49A6-8898-E901CEE6656D', 'MEASURE', 'FBDE1613-6560-47D9-907F-3D2F232B9B8A';
	EXEC MD_DMM_ATTRIBUTE '1034DDB9-E44E-4938-92A4-E6206D7B39DF', 'MEASURE', '5B2195AD-F88E-4583-8E58-20FD09FA31C0';
	EXEC MD_DMM_ATTRIBUTE '248789D8-EAD8-49F0-970A-C5812B9FB573', 'MEASURE', 'F00297E8-8A46-4A91-BA57-74EEEBAE1056';
	EXEC MD_DMM_ATTRIBUTE 'D224E391-F8C3-4685-B469-559B755A649C', 'MEASURE', 'D293CCB4-550D-4124-A574-C19DA899191D';
	EXEC MD_DMM_ATTRIBUTE 'B6CF29A5-284A-4856-91D1-37815BD84ADF', 'MEASURE', '1CA3B6BF-2A50-49CA-ABFA-9503C6E3C09E';
COMMIT TRAN V_FACT_ASDK_ITEM;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION;
	EXEC MD_DMM_ATTRIBUTE '48AB4BF6-0BF9-454D-A7D5-A6BAFDF9C067', 'COLUMN', 'D2DE6CD2-4A7F-405F-81F7-42BBAF2BD2BA', 1;
	EXEC MD_DMM_ATTRIBUTE '4A63B974-C9EF-4907-B059-7CBAF099DECF', 'COLUMN', 'E895E9B5-3E70-40EE-801E-8B6EF725D7B9';
	EXEC MD_DMM_ATTRIBUTE '08164FC2-11CE-41D3-8383-C23F113C1B20', 'COLUMN', '667C71CF-DB8D-4DDE-9F09-2A01C68943C5', 1, 1;
	EXEC MD_DMM_ATTRIBUTE '40F7372C-7FCD-4FED-925F-5602D7E54014', 'COLUMN', 'E8FB4D1B-F1CF-46CF-95DE-911BAFA55A96';
	EXEC MD_DMM_ATTRIBUTE '2BB41033-0407-4711-9EB7-56613926C4E3', 'COLUMN', '7F946762-E849-40DE-A2A1-3B79B8D2B321';
	EXEC MD_DMM_ATTRIBUTE '8D861CFC-1E8A-4476-8E57-58C79C00D255', 'COLUMN', '8073A114-288B-49CD-99FC-B9760271F1CB';
	EXEC MD_DMM_ATTRIBUTE 'C97F385A-B6B9-404C-B1E2-D4B6FDBDD801', 'COLUMN', 'EA27EE58-CB28-4BE0-B0C7-10F66B3F38F4';
	EXEC MD_DMM_ATTRIBUTE '1C366E18-3F70-4B8D-9BAE-752E18481F6B', 'COLUMN', '60075B97-D489-4C14-9972-AB675E008247';
	EXEC MD_DMM_ATTRIBUTE '63E70D7C-B97B-4093-87C3-9E90AF4B573B', 'COLUMN', '98EA6AB2-88D2-4540-860D-3701FABB13E5';
	EXEC MD_DMM_ATTRIBUTE 'DC28CBF1-2907-4FC8-B8F6-E129474FA234', 'COLUMN', '49573B54-438A-4321-A951-7A8E57DA816D';
	EXEC MD_DMM_ATTRIBUTE 'E62A1D95-16CE-4F44-A9F9-ACF0227C7409', 'COLUMN', '6D8A22B7-BBF0-4724-A0BD-50A91B7FACC3';
	EXEC MD_DMM_ATTRIBUTE '24DC3979-D839-45D1-96E0-622AA97C3C60', 'COLUMN', 'B5F53136-DC7C-449F-8D5A-BF88E6CC08BB';
	EXEC MD_DMM_ATTRIBUTE '01389FE5-09B6-4062-91E5-CE499B24F3C2', 'COLUMN', '2AB640AE-E92E-4145-AEC7-D66D37A229AE';
	EXEC MD_DMM_ATTRIBUTE '3D6D49FD-783B-4B09-BE02-A9A4CF85C46C', 'COLUMN', '4E772BED-EAF3-4FB5-934A-AA841F05DEBC';
	EXEC MD_DMM_ATTRIBUTE '0AD50FB2-B8DF-412F-9868-E28A7342273F', 'COLUMN', 'E978B79B-23D4-4F2B-B8A0-AA582C79BFDC';
	EXEC MD_DMM_ATTRIBUTE '77F7CD95-657C-4772-B259-E5ACD125A47C', 'MEASURE', '02698765-86F7-4457-89FB-40C098FEC2E7';

	EXEC MD_DMM_ATTRIBUTE 'F64815F5-29F7-4D98-B602-515D238CBB1C', 'MEASURE', '6B09AAD1-B8FE-4BDC-A1E4-918C49E52221';
	EXEC MD_DMM_ATTRIBUTE '94884BF2-3DE4-4F0F-8349-A12706180D44', 'MEASURE', '055BE455-F09E-46AB-8658-BBC47AC42F0D';
	EXEC MD_DMM_ATTRIBUTE '8B628BBC-E89D-4502-870E-6D83A402B561', 'MEASURE', 'FCF4247D-6460-47A4-AEFA-A18B5F82F9EC';
	EXEC MD_DMM_ATTRIBUTE 'B8A559FA-646F-4AC8-BEC4-A2D609214307', 'MEASURE', '0E904F15-11C9-476E-9DA9-5C491AE1A73F';
	EXEC MD_DMM_ATTRIBUTE 'A728A3A7-15DF-40A2-AD7F-9C54635EED2D', 'MEASURE', '865D8C55-EFDF-4782-8452-B083FB28F554';
	EXEC MD_DMM_ATTRIBUTE 'ADBF650F-C3DA-43E5-B07B-73E3C5D20275', 'MEASURE', 'AD00FF2A-C9BA-429B-A5AA-C41B0625E4B5';
	EXEC MD_DMM_ATTRIBUTE '4EF9F454-3D2C-4BC7-9942-1AE942B0B349', 'MEASURE', '6EE77C3C-06CE-4D38-85C6-8DB5053F38DC';
	EXEC MD_DMM_ATTRIBUTE '39CE4DF8-4A24-4482-B4A3-AF8AC3FDB36B', 'MEASURE', 'FD89E5BD-784C-4446-B75F-9E283C1F1AEC';
	EXEC MD_DMM_ATTRIBUTE 'FC9FF8EF-66AE-479B-9C81-630C9F60D769', 'MEASURE', 'F98AEA24-15DF-43E1-9CBB-76AE3E870B28';
	EXEC MD_DMM_ATTRIBUTE '23251E8E-2F07-45A4-AC5F-A3D1ABD7832A', 'MEASURE', '5ECAC9BE-E2C3-496F-8A31-285F3A98E848';
	EXEC MD_DMM_ATTRIBUTE 'EC2787E6-394F-495D-B8E2-B6874BAE400A', 'MEASURE', '3F3BB29D-B963-4DCA-A219-664612228139';
	EXEC MD_DMM_ATTRIBUTE '97A696FA-ACA4-42EB-A90E-482AFCE553DE', 'MEASURE', '8D76F0F9-8F1E-416B-A556-87230E0A7397';
	EXEC MD_DMM_ATTRIBUTE '5CE8A49B-743E-4DF2-855B-D93CD3F019E6', 'MEASURE', '729BE0FD-A23C-4397-B193-5735785B3D86';
	EXEC MD_DMM_ATTRIBUTE '559C6437-FAB5-44B0-A2AC-3F436D1BF64E', 'MEASURE', 'C73EF7FD-CF58-49F2-A2C6-A9C68774997A';
	EXEC MD_DMM_ATTRIBUTE '4339016C-931C-40B7-B03F-DF0F23C228E1', 'MEASURE', 'EB5F9F9F-DFDA-40A5-9569-4FC6F5FEF893';
	EXEC MD_DMM_ATTRIBUTE '646CA33C-5C92-40CE-87FD-1EC8A289A58F', 'MEASURE', 'AB487803-0489-4B4F-B532-C8DFA0DADC05';
	EXEC MD_DMM_ATTRIBUTE '932DD340-F970-46FC-B253-66B4DA930A04', 'MEASURE', 'FEDA0F29-AA92-4951-AB58-62A5EF4C3F95';
	EXEC MD_DMM_ATTRIBUTE '92E540AE-5BE8-48F3-8641-3CD47F1AED79', 'MEASURE', '6DDCED92-9F07-4F72-B95C-411A00188132';
	EXEC MD_DMM_ATTRIBUTE 'F4214A3D-406C-47B9-BC87-038DCA2398B7', 'MEASURE', '9C462EF8-39E4-4D6B-889F-AAD4C10C2AD5';
	EXEC MD_DMM_ATTRIBUTE '0C0EE6B0-D4CE-4E65-BD99-B071A5AD757C', 'MEASURE', 'E8F489D3-CC76-4417-B5E6-C5C317CB7756';
	EXEC MD_DMM_ATTRIBUTE '5FB5F25E-B541-48CC-9827-139DFD5C16E0', 'MEASURE', '0CFF16D6-C158-41D3-99C1-34D721D38497';
	EXEC MD_DMM_ATTRIBUTE 'B0749DB4-138A-49DD-B043-23E6614FCF94', 'MEASURE', 'D0595020-9179-4144-9E49-287798EE01DF';
	EXEC MD_DMM_ATTRIBUTE '91DED5D2-B744-47FD-8AF1-F0DBB9593D0D', 'MEASURE', 'E0BEA4EE-E45D-4CFA-8994-568537244996';

COMMIT TRAN V_FACT_ASDK_ITEM_REVISION;
GO

BEGIN TRAN V_FACT_ASDK_TASK_REVISION;
	EXEC MD_DMM_ATTRIBUTE '2DF9ECAA-4D10-4882-90EA-C617D0ABB61D', 'COLUMN', '5866E0DB-6B18-4E61-9F27-C7F5D066FC9B', 1;
	EXEC MD_DMM_ATTRIBUTE 'CAA555E1-7DF0-43FB-86AD-8054F7FE668B', 'COLUMN', 'A3B5D44F-D239-4863-AC4F-64CFD93142D2';
	EXEC MD_DMM_ATTRIBUTE '783599ED-2398-4D1B-AAEF-CB036C6F668E', 'COLUMN', '9BADB3A8-6DBF-4323-92DF-548CEAF68004', 1, 1;
	EXEC MD_DMM_ATTRIBUTE 'F95D7CB6-46C3-4A6B-A588-B11A3704AD50', 'COLUMN', '189698DE-DAC0-4CAC-9138-49C2C5D958B1';
	EXEC MD_DMM_ATTRIBUTE 'EDF69100-FAB1-4D74-A939-8E8781FC2025', 'COLUMN', '0DC9E522-B8BA-4A6E-A221-808D1B4B784D';
	EXEC MD_DMM_ATTRIBUTE 'E545FC8D-ACAB-433D-8141-5F812C9D85D4', 'MEASURE', 'B22F5F5C-BA2F-402C-A2D7-8DD59357BE25';
	EXEC MD_DMM_ATTRIBUTE '6C0C63B2-05C4-45B7-9560-94C6E1F5C55A', 'MEASURE', '594740F2-93D1-44C9-9E5A-00CAF1F06D70';
	EXEC MD_DMM_ATTRIBUTE '3737E643-AE8D-4D14-B758-F1CC79AFCB1F', 'MEASURE', '75705769-969D-4064-B32E-2E00C7FB08F3';
	EXEC MD_DMM_ATTRIBUTE '2F5FCC02-2C35-42CD-BCBC-23FB92917E9B', 'MEASURE', '3889892E-C8FC-4DC2-A7ED-61255E6AAFEF';
	EXEC MD_DMM_ATTRIBUTE '466DCD0F-378D-4E63-AA3A-C9AFE73EA408', 'MEASURE', 'C855F066-3FB2-4642-807E-3BF37CE667C9';
	EXEC MD_DMM_ATTRIBUTE '4BED49C0-5438-4D20-829D-2D6A84914F0E', 'MEASURE', 'E171E7C9-58FF-44AE-8E2E-B70D96E8392C';
	EXEC MD_DMM_ATTRIBUTE '27899F65-497B-4B42-8E30-6124730455A6', 'MEASURE', '72B9D7A6-6A93-46AF-8AD2-AD7889B463E3';
	EXEC MD_DMM_ATTRIBUTE '19CCF09E-ABB3-45B7-B259-E6C944629A1C', 'MEASURE', 'CBCB0FB1-4216-4794-B919-07D7EAB507C3';
	EXEC MD_DMM_ATTRIBUTE '1400D5B3-ACB2-4770-A07E-4229325C22F6', 'MEASURE', '00C649CB-CB04-46B3-8C8F-C8DCD7DDC052';
	EXEC MD_DMM_ATTRIBUTE '1E816461-8BCF-4A2C-BF1A-FC617A4F8B46', 'MEASURE', 'BF01F576-2750-4143-8153-BAC2EF5EB1DE';
	EXEC MD_DMM_ATTRIBUTE 'E3023C67-F8FE-4929-9D02-28C882ECF61E', 'MEASURE', '5CD1ABCF-D077-4984-8714-98BB7F7D82D4';
	EXEC MD_DMM_ATTRIBUTE '58EF92C4-DB35-4A1F-9869-43CF55B2304B', 'COLUMN', 'B3C610E7-C4EC-4CF9-8BDD-55A2E68973B9';
	EXEC MD_DMM_ATTRIBUTE '5ABAE06C-05CC-4A3D-BDCE-495D45A25571', 'MEASURE', 'B0E29520-271A-4DD5-8E9A-0C7DAA627E49';
	EXEC MD_DMM_ATTRIBUTE '889B9CAA-C1CB-4FE9-82A2-3A57AF4238E8', 'MEASURE', 'DE38D753-F537-4AE0-8ECB-F0B6C02AC054';
	EXEC MD_DMM_ATTRIBUTE 'E2489960-3AF6-4C74-9B72-07FA41AE1FA4', 'MEASURE', '771DC226-A709-4B60-BC49-731E35C534E3';
	EXEC MD_DMM_ATTRIBUTE '03AFBE28-19DD-4C94-AC0C-8F1D7593A252', 'MEASURE', '03359064-F1A0-4080-AD00-F96069485AAB';
	EXEC MD_DMM_ATTRIBUTE '52AB3F5B-3D64-4327-9B52-7FFDA0D0D55C', 'MEASURE', '220D6BF8-10E4-4B83-BB6A-8ECBF324A52E';
	EXEC MD_DMM_ATTRIBUTE 'B4AA6A9A-2F43-44A0-95DD-3011F005BC57', 'MEASURE', 'A2F2A6CB-7948-4B97-9F93-8F0FB94DD9D5';
	EXEC MD_DMM_ATTRIBUTE 'E636B662-D4D5-4335-8459-B615A8198798', 'MEASURE', '5DCC3B8E-EE67-447C-B1A6-751124A6B733';
	EXEC MD_DMM_ATTRIBUTE '65FFA936-ED55-4096-B440-8AB039726B77', 'MEASURE', '69B85D34-4349-41F8-9BED-B216C921E410';
	EXEC MD_DMM_ATTRIBUTE '99ADCE71-46FB-49EB-A02B-5B0511521CF5', 'MEASURE', '0B2A677F-B51C-44FD-AD98-FEF5F057E426';
	EXEC MD_DMM_ATTRIBUTE 'DD7B5840-6A0F-4AAF-AB42-361A395412D2', 'MEASURE', '2035CB84-7632-44A0-AF7F-C9AC55EEEC0A';
	EXEC MD_DMM_ATTRIBUTE '1A624600-6DDF-4423-9B89-A480687DFA8B', 'MEASURE', '653A714F-3A6C-4F48-8530-484C96726220';
	EXEC MD_DMM_ATTRIBUTE '3FFD1A9D-B31A-4828-A1B9-CEF89CEAA3FC', 'MEASURE', '6A051810-F4A9-4EC7-A2E3-5E584ABF776B';
	EXEC MD_DMM_ATTRIBUTE '159757A2-7D70-4748-9BB8-7BDDF540911D', 'MEASURE', 'DB913588-F865-47B6-887E-2A8375911D18';
	EXEC MD_DMM_ATTRIBUTE '44CCA474-058B-4371-8FE5-77168BF97E00', 'MEASURE', '4B32A855-0072-4932-BE2C-CE8F0528EAB3';
	EXEC MD_DMM_ATTRIBUTE '51C6CCA0-3BC3-444D-BDC1-A3CDD9A2CF48', 'MEASURE', '1F359072-C3B9-4AD6-A5D0-B002924969E2';
	EXEC MD_DMM_ATTRIBUTE 'B8C61AA7-446B-4E8A-8A6E-40C40C21FC6E', 'MEASURE', 'B8BEE6AA-AF31-4711-9184-5BE2C01CCAEA';
	EXEC MD_DMM_ATTRIBUTE 'CD109880-971B-48AF-A647-A726B3128282', 'MEASURE', '8D10C875-C01B-4D22-A148-8F4F4F554571';
	EXEC MD_DMM_ATTRIBUTE 'AEB1F2D4-FBF0-43C2-87DA-8305532AB747', 'MEASURE', 'A1F210BB-4AB2-438F-A105-A948D1F834DC';
	EXEC MD_DMM_ATTRIBUTE '3C808E68-A9C8-465B-8081-C1C7830D47B6', 'MEASURE', '79AE1787-E4D2-4076-AE92-59331F42436D';
	EXEC MD_DMM_ATTRIBUTE '7DA5E0D0-79D0-4AB2-B81A-84E5A93EBB23', 'MEASURE', 'F3A4E2A6-CA5E-4316-AFD0-7D5DA21A0367';
	EXEC MD_DMM_ATTRIBUTE '2320EECE-2D12-4AB8-B3C3-02CEFC0BB6C6', 'MEASURE', 'C13995CF-8EC4-4C89-A79A-B22FF2A0EF9B';
	EXEC MD_DMM_ATTRIBUTE '981E2DF7-E2CC-476D-B26A-8E699941FBB2', 'MEASURE', '8873FC1E-C1CA-43CA-86B9-B114623B7E65';
	EXEC MD_DMM_ATTRIBUTE '5EC73A7E-F1B0-4BCC-9283-E87E2A989E4A', 'MEASURE', '2D62A732-48FF-4A85-8EC0-AA847B0AB8BB';
	EXEC MD_DMM_ATTRIBUTE 'CFC10F88-B546-49FE-AC83-71087DFB30D7', 'MEASURE', '4AA3D14D-8C83-4513-801B-4CA2F67CF03B';
	EXEC MD_DMM_ATTRIBUTE '6F3FEC1A-C6F5-42DF-98DA-0F61FA9E9C43', 'MEASURE', '4DF01BDE-6214-4EFD-9E69-D88723E6823C';
	EXEC MD_DMM_ATTRIBUTE '4E237F11-164C-4085-A0EE-72B40F1B68FB', 'MEASURE', 'EE360BB6-C93F-4A4E-BD74-CFD8E53DA3A0';
COMMIT TRAN V_FACT_ASDK_TASK_REVISION;
GO

BEGIN TRAN AFW_SURVEY;
	EXEC MD_DMM_ATTRIBUTE 'DFD3B1F6-5EBD-42F5-BC9F-23A27179A8B2', 'COLUMN', 'D232CA66-1D70-4E1A-919B-0BE5E14C0C6D', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '10A38DBC-E844-403D-8F0B-6A50F1161866', 'COLUMN', '21ED87F4-F1E3-40C3-AAC4-DB839592276E';
	EXEC MD_DMM_ATTRIBUTE '24AD0FF3-5701-4B2D-AE76-FF0FFEFE6D6B', 'COLUMN', '994CDFAF-F811-42C2-B415-46FB7C8BA665';
	EXEC MD_DMM_ATTRIBUTE '16E1A950-2158-4DB7-B17D-96509718376B', 'COLUMN', 'ECE9A389-3930-4B3C-A66E-DCBA4975B393';
	EXEC MD_DMM_ATTRIBUTE '039F2088-1A48-4AFC-A4E1-79E59F4ED1FB', 'COLUMN', '37B8E778-4F8D-4E1E-9FF7-2AAD8AD2D119';
	EXEC MD_DMM_ATTRIBUTE 'FAA141E7-D148-4486-8235-E2F0169B5883', 'COLUMN', '6C9F1D6C-48F3-45F2-A231-B494B82B8E64';
	EXEC MD_DMM_ATTRIBUTE 'D075E21B-33E9-47E2-88EA-A25F3DEB50E3', 'COLUMN', 'A3A866CE-8FDE-4526-BE27-CD350F3C8CEB';
COMMIT TRAN AFW_SURVEY;
GO

BEGIN TRAN AFW_SURVEY_QUESTION;
	EXEC MD_DMM_ATTRIBUTE '31DD6D75-387A-459E-B9EF-ADB5362F89A5', 'COLUMN', '08A5701B-E396-467C-87AD-2D5FA1B89C2E';
	EXEC MD_DMM_ATTRIBUTE '42B717A1-3C76-4002-ACB4-BD4DE5FEF098', 'COLUMN', 'D747B5CD-4963-42C1-9F80-1E8F017D91AA';
	EXEC MD_DMM_ATTRIBUTE '0B79CD90-AF59-4AC8-B734-1B5DF7AACEDF', 'COLUMN', '81B10182-5C04-43B8-83A3-C7EB9E110B3A';
	EXEC MD_DMM_ATTRIBUTE '5A8B6C10-6FEB-483C-8464-1689E78588D3', 'COLUMN', 'AD899CF8-16E5-4A43-8C12-B675720541E4';
	EXEC MD_DMM_ATTRIBUTE 'E4903C4D-5239-4138-9F2F-D898A7F9DD91', 'COLUMN', '6E404689-0568-4CD3-BC3E-FDFE3AF152A7';
	EXEC MD_DMM_ATTRIBUTE '73AB35A7-6FC6-4879-8D07-407690A66942', 'COLUMN', 'D6EB7B4D-64C0-48C0-8EFE-E068C9BD38AA';
COMMIT TRAN AFW_SURVEY_QUESTION;
GO

BEGIN TRAN AFW_SURVEY_QUESTION_TYPE;
	EXEC MD_DMM_ATTRIBUTE '84DF1C6D-0401-4333-9316-4E4873FAE074', 'COLUMN', 'F230B04F-5311-40D7-ADF3-2B0DF5F5E353', 0, 1;
COMMIT TRAN AFW_SURVEY_QUESTION_TYPE;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY;
	EXEC MD_DMM_ATTRIBUTE 'BF43085A-C910-480C-AE85-1048BAEDD52E', 'COLUMN', '0BB2B8AB-06D5-4247-A7D1-DB50FCD3C986', 1;
	EXEC MD_DMM_ATTRIBUTE '8B88FBE6-DEA7-4388-8AE5-B33BD1059CED', 'COLUMN', '818DBFD2-596D-4287-AD65-500BD32E76E3', 0, 1;
	EXEC MD_DMM_ATTRIBUTE '8765BDCD-8822-4801-8DD5-0C86158DD737', 'COLUMN', '266ED85F-CC54-4AD5-BC96-09BD8282F4B3', 1, 1;
	EXEC MD_DMM_ATTRIBUTE '2F6FAFA0-1F60-4BCF-9D72-EEF1B54E40A1', 'MEASURE', '50DDB002-14D7-40AD-9AAD-09A3DF1FE097';
	EXEC MD_DMM_ATTRIBUTE '7DCF4B47-EACC-462E-873A-F9760B8789AD', 'MEASURE', '4028306C-D28D-49E0-9036-6EF051D76D11';
	EXEC MD_DMM_ATTRIBUTE 'EE869B2F-8B6D-438A-94E4-67318ED582BE', 'MEASURE', '32815D4F-3B1C-4C6A-9864-3E0FDE85CF35';
	EXEC MD_DMM_ATTRIBUTE '0511022E-84B4-4A08-8397-3FA363251BE2', 'MEASURE', '798CEA43-4C2C-41CC-BE0F-C9D4F5C2C9E0';
	EXEC MD_DMM_ATTRIBUTE 'ED208E20-B626-448C-96A4-9EB84EA002A3', 'MEASURE', '604237DF-60E8-4B50-86BC-04F1E0CC3302';
	EXEC MD_DMM_ATTRIBUTE '1B4DBFA2-BDF0-40EA-8956-CC356F019A08', 'MEASURE', '32088D34-A05B-4A6D-B3AC-8C1FC1A55C60';
	EXEC MD_DMM_ATTRIBUTE '782A754F-D0BE-4E42-ACB3-6D0BB623361D', 'MEASURE', '6A0576E5-D185-4C0E-8A3E-5A4853A4B9CB';
	EXEC MD_DMM_ATTRIBUTE '113AF4B2-ADA8-453F-9023-5C15ADD047DD', 'MEASURE', '43631548-DF03-449E-AE1E-B56AFBF13B5F';
	EXEC MD_DMM_ATTRIBUTE '9354104A-3FB3-4783-A5C3-878DA618D096', 'MEASURE', 'D0B34D67-FDB6-4F85-A33A-6AAC0CC22339';
	EXEC MD_DMM_ATTRIBUTE '4FB36732-6A1D-4037-AB3B-815141FD67A5', 'MEASURE', '0BAA11F2-8A9B-4305-9427-E3091C96CB93';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_SENT;
	EXEC MD_DMM_ATTRIBUTE '6717BF87-CA96-4937-8F23-AEF278E9E414', 'COLUMN', 'B3106C22-DC3B-49F2-A560-521B77FEB810', 1;
	EXEC MD_DMM_ATTRIBUTE '9381F150-2801-45A6-80C0-3F6D5132A769', 'COLUMN', 'EFE7EF1F-F2BC-4C0B-880C-FBAFC3345DDA', 1, 1;
	EXEC MD_DMM_ATTRIBUTE '35FC5398-6FC6-421F-AC68-52F5E8D4C7AC', 'MEASURE', 'C6502C53-1D44-4D36-9A09-9C475A4BA407';
	EXEC MD_DMM_ATTRIBUTE '40534556-630C-42EB-BA25-823921923EED', 'MEASURE', '76AA6292-19D6-4DDF-BFE9-A42A5364B2C0';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_SENT;
GO

BEGIN TRAN
	EXEC MD_DMM_ATTRIBUTE '62F111D9-73E7-488F-A91F-401567C3BD78', 'COLUMN', 'B5876F14-3F02-4DAD-B387-BA9A8DA00C4C';
COMMIT TRAN;
GO
BEGIN TRAN V_FACT_ASDK_ITEM;
    EXEC [dbo].[MD_DMM_RELATIONSHIP] '5C7E06A5-4B8C-4C82-AF4A-07A97E8EEDC4', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '1AA9D84D-A2F8-4E2B-B672-1F1E17C69FEE', '1AA9D84D-A2F8-4E2B-B672-1F1E17C69FEE';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '39D4295A-1F63-4652-AF10-5D9A5D6CE8F3', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '4209FF43-32CF-4687-A071-0CD3D848E7C1', '8F636DA3-6F9F-42F8-BC09-2FF89CCC5387', 'D69B29D2-BE59-4248-81B0-043043531697';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '6F7AD2D2-5A94-45C0-A4F4-0D1F7C3B4E62', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '25FE877C-2E5C-4837-8101-1B2461903795', '8382E9BA-D79F-48B0-9005-CC20DB3E9A38', '01DE5601-0030-4646-8636-086830732F74';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '8C7F74AB-2D15-4EEB-AD59-7C1E8F8B71E5', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '06E2F78C-900A-4EEB-B300-8623A3E7D14C', 'E03EEE92-F1D1-407F-B32E-0BF90C8E3A01', '5D563054-5A64-4666-9EE7-09168686627D';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '1E58A407-48EE-42CB-97CC-2C5D8B193621', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '06E2F78C-900A-4EEB-B300-8623A3E7D14C', 'E97E0987-2BEC-42C4-AE7A-501C517026A7', '5D563054-5A64-4666-9EE7-09168686627D';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '941F1CE2-59E3-4A2B-BEDA-8E2A4038B934', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA', 'BAAFA61E-3705-4C12-9841-6041B425075C', '02AC2416-A589-4AD7-9A69-0B32E540CB4F';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '0B1FA5E1-F51A-4E9A-97F9-19E5E17F32C3', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C', 'D27DF1E8-7D40-43A6-9F72-A79D7355DFF0', '34EB576D-8FC6-43D7-96AE-0CA8F29577A8';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '8B82E16D-3A67-4D78-BFAF-51F8C73AB7B7', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C', 'A9C82E75-3EF9-48A3-B072-CD65F133AAD0', '34EB576D-8FC6-43D7-96AE-0CA8F29577A8';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '7D94F530-1A9F-45B3-AC8E-BAF8B5117E5F', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '172457D5-A596-4C45-95FD-442A385CADEE', 'F98C128E-BC8E-4CFF-8A11-0F2A0F48C724', '5148EAF3-05B9-4481-B186-35E981B09BD2';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'EFA7D3B2-2531-4A9B-83C1-13C9A9EE0C18', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '86C6D9AE-9274-4249-8FB4-2240D66D483D', 'EAB65F53-125D-4AFE-B0B5-56081BA80284', '726DB5FB-906E-40AB-ABC1-37A618F9A83E';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '91E7D02A-5BA5-4E24-A5BE-76A6D3B78AFB', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '86C6D9AE-9274-4249-8FB4-2240D66D483D', '1AC09DD2-D736-41FB-A0D7-36827BDE3965', '726DB5FB-906E-40AB-ABC1-37A618F9A83E';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '8B8C4907-37D9-42A7-901E-DB4B9E871AE4', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '98CF5177-28C8-4B8B-8BC6-E3D01D197671', '9C62493D-F83C-4DCD-B66A-6D5F20158B93', '0823609C-C462-4215-8B28-411C323FF19E';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '52EE86B0-3325-47D7-9986-6715A4A8A564', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'DF4D7750-8FA6-4819-A065-BD00870F1218', '82CAD25B-505D-420E-B757-DFB400B41EBA', '217A6A2C-E119-4C23-B4F9-43C104532453';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '9D1AA583-54E3-4950-847E-016E8F456214', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'DF4D7750-8FA6-4819-A065-BD00870F1218', '8ADEC568-1FFF-4E05-B13C-807D639D5304', '217A6A2C-E119-4C23-B4F9-43C104532453';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '14EBACAB-5E52-4E58-8D1F-097B3A8EAB7D', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'F9B5FF18-6E9E-4428-9B06-4FE0045DC69B', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '2A7E5C5F-6E41-4E6A-8B8E-2E6F7E1E12D8', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'BC5C094B-11B5-4D98-A7BA-8EDE78322DE6', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '3FECBE36-0E5B-4A15-90E8-83B5C98D5B21', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'E59A800D-F7F5-48FD-B7DB-BD31D011E607', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '5D31CB07-4C9F-4A5E-8D27-5B5E785E8419', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'DF808BC7-704A-4AEE-99DE-FA8FE7B29562', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '6B7E1E8E-1F35-4F5A-83E1-27E9F8E7B91D', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'F010AB70-2C2B-4426-B01F-E20D6E389D65', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '7C1E3F8D-4A25-41A8-89AE-52A9C6D8F7C1', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'B4C74BC8-75C5-4715-8A41-94B10D6EC6BF', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '8E6A2E4D-9C75-456E-9A7C-8E1B2D3E4A6F', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', '2E9ABF44-1C04-411B-9F67-FCC0D5226890', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '49EB9E43-8C7D-48B3-B512-6D6EFAE6C3F5', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '06E2F78C-900A-4EEB-B300-8623A3E7D14C', '3D7E74ED-8599-4C23-A627-7E11BA8CA960', '5D563054-5A64-4666-9EE7-09168686627D';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '9A4F1E3D-7B5E-496F-89E1-1C4B5D8E9F0A', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D', '0E96B934-47AE-41AB-BE1E-BCEEA8223C1F', '795D6E96-BFBE-4CB7-8C9B-4BE19BD4D876';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'A3D5C2E1-5A7B-4F8D-83C2-4D9E6A1F2B5C', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '4A851F60-C945-4FEF-81B8-0266B4DFD6B8', '609B6874-FF75-48A4-9264-93E3E832DEE0', '6122035E-FDBF-44ED-92D4-7E706921A8BE';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'B4E2A6D3-1F7E-45C9-8E1D-5B7A3F9C6E2A', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '6BDE4EBA-91A6-4174-BE2B-09A5FE47A1D3', 'B3055E5F-CEFD-4ADF-AC68-E80FEBB4C3A0', 'E064E7DE-FAFA-479F-A2F4-95E39A90A727';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'C5F8B1E7-3D9A-49A5-8A4B-6E1D5C7A2F9E', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', '3D8B29A9-7BFA-4EF8-AE9C-A91C2FF866EE', '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'D6E1C7F2-4B9E-41A8-A5C6-2D7B3E9F1A4C', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', 'A6C30D6C-3ACE-4CCD-865D-371A6B851132', '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'E7B3A4D9-5C8E-42F7-8D3B-7A1E9C2F6B5D', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', '4675B8CE-C4E3-4A53-8936-16D14FBC82F6', '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'F8C2D5E1-6A9B-4F7E-9A8C-1E3D5B7C2F6A', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', '17116B03-A8C1-471A-B072-A7EBB3FBA80D', '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '0123A4B5-C6D7-489E-8F0A-1B2C3D4E5F60', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', '12CCCF43-F3CD-4749-88B0-2D35C1324FC0', '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '13E7D5B9-6A2C-43F8-9E7D-1B5C2F8A4E9D', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '05C660C0-C5A6-4E00-B511-9CB676BD8213', '7B345D80-24D1-4BE8-938C-10CCD25ED0F6', '9AA512D5-CB72-4A10-8C18-9ABC1FA22EE4';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '24F8E1C3-7B4D-4A5E-8C9A-2E6D1F7B3C9E', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '05C660C0-C5A6-4E00-B511-9CB676BD8213', 'BEA8F45F-791E-4CF2-AB36-50234E36A2DE', '9AA512D5-CB72-4A10-8C18-9ABC1FA22EE4';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '35A9F2E4-8C5B-4D7E-9A8C-3F1D2B6E4A7C', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '07863B77-B3AF-48AF-803C-54BCA9CBBD90', 'FE124D0E-230E-4F0D-97ED-80F385B82C9F', '5C1C4ECF-E2B3-4342-BD36-9C65822259FA';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '46B1E3D5-9A6C-4E8F-8D7A-4C3B5E7F9A6D', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '277564D1-1AB8-4474-9B6D-42FF98B29D40', '3EA9D891-2C45-4809-8720-ADD2B841A161', 'A340B88D-DAB3-4699-BC41-AA93408D69AC';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '57C2F4E6-A7D8-41F9-8B6C-5D4A6E8B7F9E', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '40B611B2-2260-434D-BEB6-144233B05C1B', '355884C8-243F-4F68-A4D3-DEB93EDB8368', 'D13B0C78-C5AD-4172-8985-B868093CF9A1';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '68D3A5F7-B8E9-42A1-9C7D-6E5B7F9C8A1D', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'C375B828-D6CE-4EA8-98D0-D978C5A61FC1', '498FE6CD-57B2-46F6-AED5-ACA23E600DFA', '112521FE-0E07-496A-A164-C69984ED7FD1';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '79E4B6A8-C9F1-43B2-8D8E-7F6C8A1B9D2E', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '561C0C56-D12A-4902-87F6-6CD260074121', 'C0E3F613-3DDE-4095-A88D-A5C387AEFB11', '63EAB8C6-77AF-4DAC-9FAC-C75E71E496BD';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '8AF5C7B9-D0A2-44C3-9E9F-8A7D9B2C0E3F', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '81DA3797-ED0F-48A6-B96F-191CDE2390A1', '35466CF8-9DE9-4ABD-883B-CEB424446226', '61FF0B5A-329B-4074-9E03-E0FA2CE17EC6';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '9B06D8C0-E1B3-45D4-8FA0-9B8E0C3D1F4A', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '81DA3797-ED0F-48A6-B96F-191CDE2390A1', 'DAC13E84-059F-42C9-8176-31900BCB88C0', '61FF0B5A-329B-4074-9E03-E0FA2CE17EC6';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'AC17E9D1-F2C4-46E5-9AB1-0C9F1D4E2A5B', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3', '6F65CA63-B930-47EB-8F45-9D36E09B4981', '5839EB15-0277-4EC6-A3E5-EB64AD436AB3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'BD28F0E2-03D5-47F6-8BC2-1D0E2F5A3B6C', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '18F1714C-9F68-4219-8B6C-1860234CBE27', '832035AD-A295-41DF-B500-E60C77218149', '58041B21-07EA-4015-8309-ECBB478E4CCD';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'CE39A1F3-14E6-48A7-9CD3-2E1F3A6B4C7D', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '3E89932E-4E2F-475B-9F99-22B8B9160C8A', '56FC6BF9-106F-49DE-8057-3161D165DB14', '8F5BFA5B-608C-41B3-939C-F803337DCAD2';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'DF4AB2E4-25F7-49B8-8DE4-3F2A4B7C5D8E', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '3E89932E-4E2F-475B-9F99-22B8B9160C8A', '3D63F88C-FE49-443C-A0A0-C9CD55BC4F56', '8F5BFA5B-608C-41B3-939C-F803337DCAD2';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'E05BC3F5-36A8-4AC9-9EF5-4A3B5C8D6E9F', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '21489084-3B7D-41C1-8180-109D5C719723', '2534E060-FB42-491B-A0D1-F7B392740D2D', 'E32C921D-54C3-4779-8B0E-F99A971DE4D0';
COMMIT TRAN V_FACT_ASDK_ITEM;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION;
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'C3D08E3E-2F9F-4F53-9C0D-F3ED27B99A55', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'D2DE6CD2-4A7F-405F-81F7-42BBAF2BD2BA', 'D2DE6CD2-4A7F-405F-81F7-42BBAF2BD2BA';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'CDB72B0E-42C8-4C28-9A86-FD79CB1DF55A', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '4209FF43-32CF-4687-A071-0CD3D848E7C1', '114EA889-3B72-4792-8947-2DA1B5A87EA6', 'D69B29D2-BE59-4248-81B0-043043531697';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '87BB38F3-71B5-4657-A6B0-2EDC71B9B7DB', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '06E2F78C-900A-4EEB-B300-8623A3E7D14C', '1664F0E5-9B64-4B4D-9C1F-2430E26416C2', '5D563054-5A64-4666-9EE7-09168686627D';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '7094F7F4-0B3D-48B5-B4B2-1546A366422D', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '7CE89EF1-3821-4E57-84AF-FCEB734B51BA', '1D7E4AC1-A2E3-49ED-9A38-AF57480B2183', '02AC2416-A589-4AD7-9A69-0B32E540CB4F';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '05731AC3-8941-48D5-BCB7-78C5EB5FF55D', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C', '3351FC7A-870A-4775-B72D-8D4FFA2B5B22', '34EB576D-8FC6-43D7-96AE-0CA8F29577A8';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'A948F9C9-2C74-4C31-967C-F56C5A35A527', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '98CF5177-28C8-4B8B-8BC6-E3D01D197671', '6EFADFC9-667F-40FB-B5AF-A14BAEF2BF21', '0823609C-C462-4215-8B28-411C323FF19E';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'C3E9B4C8-9B8B-4DB8-9DFB-45DA28CDDDB3', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'DF4D7750-8FA6-4819-A065-BD00870F1218', '9AD140F8-055A-4661-932B-CFFE1B71D298', '217A6A2C-E119-4C23-B4F9-43C104532453';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '3FF9E54E-26DE-4F03-B1E2-57F2C3F3A2F2', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', '216C7873-6B95-40A4-97AF-D24ED401A9E8', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '7D92E7E8-5147-43F8-8A15-7CB10C0D5242', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'D4695E1F-2A64-43A9-8D32-ED4A5900E0A6', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'DB2A52E7-2D4A-4667-87FC-86185ACB648A', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'C8F53856-FEC8-41A2-9A85-F80B3E683FB2', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '29F0DB9E-F6A5-4A8B-AEA5-2A0F68A7F315', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'F671E12D-B0B8-46C7-AFC8-D858FF967C98', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '6CB3DB13-8175-4E1A-A2A8-3D77A564A2B2', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', '2406A255-AA98-4A3A-9F46-15F6AA52DA0D', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '92E48E58-D4E0-4B9C-95FF-5ED9C72707F8', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '4A851F60-C945-4FEF-81B8-0266B4DFD6B8', 'BFE82D77-9AB8-4E57-9B97-9F5242AAC818', '6122035E-FDBF-44ED-92D4-7E706921A8BE';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'F23CC4B2-63C9-4232-B8DE-F2F78E04F5A0', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '6BDE4EBA-91A6-4174-BE2B-09A5FE47A1D3', '308479B0-86B8-4EA0-AC82-1084E6E4A78C', 'E064E7DE-FAFA-479F-A2F4-95E39A90A727';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '932DA3A7-C07D-43B5-BC70-413A28598A2C', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '07863B77-B3AF-48AF-803C-54BCA9CBBD90', '69EF15D2-2E04-4F55-8F27-564EE4C60CE2', '5C1C4ECF-E2B3-4342-BD36-9C65822259FA';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '33DAEE1D-6D40-4DA9-A30E-D76E4E37A888', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '40B611B2-2260-434D-BEB6-144233B05C1B', 'EF9D68E6-CD8E-4733-A0F5-A18D4B1E3DA2', 'D13B0C78-C5AD-4172-8985-B868093CF9A1';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'EEA58B04-5CB9-4AF6-A289-58E57A0D23E1', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'C375B828-D6CE-4EA8-98D0-D978C5A61FC1', '371AAF4C-C285-469E-9F9D-EA2C4F18B955', '112521FE-0E07-496A-A164-C69984ED7FD1';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '3A12B2A3-55D2-4665-8F17-28160B1C030E', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '561C0C56-D12A-4902-87F6-6CD260074121', 'DC31A718-B3AB-44AD-8AEF-A9561A3BCC11', '63EAB8C6-77AF-4DAC-9FAC-C75E71E496BD';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '94A918A1-2F93-42A9-8B75-F2C6F3D61CB5', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '21489084-3B7D-41C1-8180-109D5C719723', 'F083244D-4279-4931-8C79-99BF2CE2DECC', 'E32C921D-54C3-4779-8B0E-F99A971DE4D0';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '7D42B8A8-1729-4866-A8B3-10A3569A8B19', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', '457F313A-0CBF-40A2-A167-EE5D5AAD06DC', '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '1F0AD67B-F431-4D09-A0ED-B5DFC6EF3A4E', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'ADF1C08A-0EC5-4F68-8B67-3BB802106C19', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '3D13B321-ECF3-4B89-BB2D-C60462A01E4C', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', '72D952BD-DBF4-44BF-B5BC-8403A3134E7F', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'C8DF623B-4492-41A5-9A49-DFC05B09182D', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '25FE877C-2E5C-4837-8101-1B2461903795', '689290B6-3474-4A23-A9D1-8908CF350907', '01DE5601-0030-4646-8636-086830732F74';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '7CF4A983-74DF-4659-B2E8-1F45D7D6EF1D', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '277564D1-1AB8-4474-9B6D-42FF98B29D40', '0E177C33-B0FC-4ADB-86C0-862CEC769A76', 'A340B88D-DAB3-4699-BC41-AA93408D69AC';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '9DB4DE5B-2E86-44F8-AAB9-71A3C66B3428', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '05C660C0-C5A6-4E00-B511-9CB676BD8213', 'E5A6C13C-7CF9-4265-8A3C-25A86B59A7F2', '9AA512D5-CB72-4A10-8C18-9ABC1FA22EE4';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '5CB24942-03EE-4D5F-A424-F7A2CB5E45BC', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '3E89932E-4E2F-475B-9F99-22B8B9160C8A', 'A4A0CCF6-71AB-433F-80C9-0A8DE27DB81D', '8F5BFA5B-608C-41B3-939C-F803337DCAD2';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '0A78D3FD-D580-4A6B-A6C4-632E928A1D23', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '86C6D9AE-9274-4249-8FB4-2240D66D483D', '070F05A0-F333-4BB3-91B4-EC32E7831274', '726DB5FB-906E-40AB-ABC1-37A618F9A83E';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '6CCF33DE-D67F-4865-B633-12E5562E0A5A', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3', 'CEBC1C96-C79B-4D78-953B-5F2B86B8A763', '5839EB15-0277-4EC6-A3E5-EB64AD436AB3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'AEEFCB92-D3A0-4E3E-900C-9985D78C61A7', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '05C660C0-C5A6-4E00-B511-9CB676BD8213', '1845E230-8C80-408F-8BD6-7A48C38A51C6', '9AA512D5-CB72-4A10-8C18-9ABC1FA22EE4';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '5E72C09F-73A1-4CF1-A329-7F3C22C4B1FA', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '3E89932E-4E2F-475B-9F99-22B8B9160C8A', 'C8797D66-55F6-445D-9D56-3672CF1ECFF2', '8F5BFA5B-608C-41B3-939C-F803337DCAD2';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'DBA463C1-FC3B-40B8-B417-5B3B63F65D8E', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '86C6D9AE-9274-4249-8FB4-2240D66D483D', '431EE4E8-AE19-4290-B188-BE0B334852BE', '726DB5FB-906E-40AB-ABC1-37A618F9A83E';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'BD7DE126-F03C-4793-A2C0-180C8B73EF56', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'DF4D7750-8FA6-4819-A065-BD00870F1218', 'D768DFF0-91BB-45FE-AE93-FF1D4F5ED98C', '217A6A2C-E119-4C23-B4F9-43C104532453';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'E01982D2-13BC-44CE-93E8-74C76C50930A', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '06E2F78C-900A-4EEB-B300-8623A3E7D14C', '1AB8B57A-E187-48DB-AB89-6CA29589D019', '5D563054-5A64-4666-9EE7-09168686627D';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '3E40D2DA-CB7D-4A7C-B1B2-4514CB9A7E7B', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C', 'BAE95889-722E-47B6-ACD9-561B2113E61D', '34EB576D-8FC6-43D7-96AE-0CA8F29577A8';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'B4621E54-0C39-4A3B-86B2-134FDC327ABC', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '172457D5-A596-4C45-95FD-442A385CADEE', '2AA684ED-3B43-4F11-9612-B33A06E74D44', '5148EAF3-05B9-4481-B186-35E981B09BD2';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '63D2EE22-24B5-47A4-8A6B-DF6E7FF73B4C', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '81DA3797-ED0F-48A6-B96F-191CDE2390A1', 'E5592433-D9E5-4256-9D07-ADA023A14EF4', '61FF0B5A-329B-4074-9E03-E0FA2CE17EC6';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '29BB4B42-C2D7-4B2C-9E52-19DFDB4E5A1E', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '81DA3797-ED0F-48A6-B96F-191CDE2390A1', '618D45EF-A7E7-49AB-BEF2-29E7149FFF4C', '61FF0B5A-329B-4074-9E03-E0FA2CE17EC6';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '2A7D3B22-B3F5-4DE8-9491-C32554FF5C2A', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '590EDAA1-8E77-4B31-9ED9-07DBC8142C1D', 'D09F83B3-1BBE-4A97-9A6C-D7567DD2A538', '795D6E96-BFBE-4CB7-8C9B-4BE19BD4D876';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'F22E5D11-9132-4F62-B36E-320B5A92B55E', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '18F1714C-9F68-4219-8B6C-1860234CBE27', 'F7E7CF6A-B5B2-4485-B148-DAF428167E4E', '58041B21-07EA-4015-8309-ECBB478E4CCD';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '5E946D3D-0A1F-4D5C-B8A8-986594BD78E4', 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', '4A73EB50-F350-4176-8C5B-BCBF43A458D6', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
COMMIT TRAN V_FACT_ASDK_ITEM_REVISION;
GO

BEGIN TRAN V_FACT_ASDK_TASK_REVISION;
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '4FEF6B72-0D11-46DF-91C5-2603EF3A54BC', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '5866E0DB-6B18-4E61-9F27-C7F5D066FC9B', '5866E0DB-6B18-4E61-9F27-C7F5D066FC9B';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'F9C3BC8D-DCA3-42A7-8588-7B47E7C51119', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', '457F313A-0CBF-40A2-A167-EE5D5AAD06DC', '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '4CC45B8B-8DE4-49C2-B4E9-1E0D839ED9F9', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C', '396295D9-1DCA-4CEF-B7BE-CADDA96E8516', '34EB576D-8FC6-43D7-96AE-0CA8F29577A8';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '29E2F932-64A7-4C2B-A268-BB4513A2E511', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '561C0C56-D12A-4902-87F6-6CD260074121', '2F2D424A-8AE1-4CF4-AC74-FF224CE10006', '63EAB8C6-77AF-4DAC-9FAC-C75E71E496BD';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'A238F4B6-7CB3-43C5-AAC5-BD41F18BB5B2', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '4A851F60-C945-4FEF-81B8-0266B4DFD6B8', '6DE3E73F-85B4-4F90-BBFD-9F7F66CEAE71', '6122035E-FDBF-44ED-92D4-7E706921A8BE';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'C3B2E16D-B682-4A6F-B918-5EE6F563F2A4', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '4209FF43-32CF-4687-A071-0CD3D848E7C1', 'B5C0A3E7-4E7E-450B-BFF2-DBA4A4B255A4', 'D69B29D2-BE59-4248-81B0-043043531697';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '0E53CD4F-2C2C-43E2-B0CB-2B32C524B981', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '40B611B2-2260-434D-BEB6-144233B05C1B', '2AECDAC0-F0F5-4203-9970-43096084FC60', 'D13B0C78-C5AD-4172-8985-B868093CF9A1';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '2FBB7A42-CDA1-4B57-B39E-36E1A1D44B77', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', '08A28BA5-8B1B-44E2-8A11-2179CFB821A1', '5D563054-5A64-4666-9EE7-09168686627D';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '7D92BCB4-9D2F-47E2-904B-C3947B2A14A3', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', '463E31D9-D5B6-4C27-9031-AE2D73AD00CB', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '3B42DE8F-510C-4E92-AE27-B6177D5EF1D6', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '06E2F78C-900A-4EEB-B300-8623A3E7D14C', '5F454B39-3428-4E90-AAFE-691E5C870019', '5D563054-5A64-4666-9EE7-09168686627D';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'DE9FD673-312A-4204-BBB3-77D818132BD9', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', 'CD3B25EA-D7F8-4470-853C-B24D97E463A6', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'FE2C55A7-6572-4768-A3EF-47AFBA37AB35', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', '32798E2B-3DEC-48E4-869B-C5C2BCA39299', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'F99B2A7F-343A-45B7-B512-228CB71DB8A2', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', '11A8A57F-3962-4A30-9CD7-5CEBFA907B43', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '46ABBD78-203C-40F7-B06E-D0A2B38A4D3A', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '34FC32B4-E924-4EAA-B56E-90EF239D59B8', '31917557-515D-41F8-9260-B93369336E08', 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '924E54D8-D8EB-4F64-A836-91D8FDA33402', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '25FE877C-2E5C-4837-8101-1B2461903795', '997ED351-BAD1-48BB-822F-5EAB17FD8C57', '01DE5601-0030-4646-8636-086830732F74';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '3BDA2644-C01F-4021-84BB-DC172249B25B', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', '05C660C0-C5A6-4E00-B511-9CB676BD8213', 'E16EAF7F-A66C-4F6D-94CA-89E493CE1D6F', '9AA512D5-CB72-4A10-8C18-9ABC1FA22EE4';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '1C0E48DF-9988-4D7F-B15B-9DF9D6A6A5A1', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', 'CDC1EEBB-9934-4ECC-A790-EDFD7C95ECB3', 'FE5BA7E7-C51B-4C03-ADD3-2509FB004DCD', '5839EB15-0277-4EC6-A3E5-EB64AD436AB3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '0D08A7DC-B530-41CF-B18D-BC3D8FDA5A63', '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', 'E1067225-26BE-4FA3-A4ED-62D12EDB8B6C', '2B40DB8B-F12E-46C9-AE69-7639AFD87095', '34EB576D-8FC6-43D7-96AE-0CA8F29577A8';
COMMIT TRAN V_FACT_ASDK_TASK_REVISION;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY;
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '4BD546E5-0BF7-4B47-B63B-E5D5EDDB8702', '97DB752F-D6E1-4ADC-86C7-4FA595D62082', '97DB752F-D6E1-4ADC-86C7-4FA595D62082', '0BB2B8AB-06D5-4247-A7D1-DB50FCD3C986', '0BB2B8AB-06D5-4247-A7D1-DB50FCD3C986';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '5FC8E1CD-2547-4BAB-B7AC-E0C6DC4FCEF8', '97DB752F-D6E1-4ADC-86C7-4FA595D62082', '743B3412-79BE-49B7-B76B-488CAD1D87CF', 'CE0739DF-8F16-4587-BF68-3EE5F064A54C', 'C5E2FD57-988B-411C-B4BD-1866F30B021B';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '66037149-332C-4077-A162-923DD5C57ED8', '97DB752F-D6E1-4ADC-86C7-4FA595D62082', 'FCF7A47F-BE03-4EC3-9EB4-0FB7035F02D1', '6E3957DF-4A65-4C4C-9548-260BA7984F71', '7C1D13C2-458F-42B8-B397-694EE7893C2A';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '7708D512-2EEA-4556-A086-AFC432BB3387', '97DB752F-D6E1-4ADC-86C7-4FA595D62082', '35A78D01-F32A-44BA-9210-CE0B3756B282', '966D8E5E-E4BF-4FB5-B4B4-D4EB7F531ECA', '5B87FCBD-FA39-4E7E-991A-7F2C79E48776';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'A43B37B6-484C-4AA5-889A-9290CB048A7F', '97DB752F-D6E1-4ADC-86C7-4FA595D62082', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', 'D050D5C9-25CD-4B5B-A980-59D1B4768078', '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '643B2BCA-D81C-406E-B7DB-108488E9B0E6', '97DB752F-D6E1-4ADC-86C7-4FA595D62082', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', '4EAED294-D156-4073-BD56-225231B9C218', '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_SENT;
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '4402E516-68C9-4052-924D-4512CE4D7B36', 'C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA', 'C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA', 'B3106C22-DC3B-49F2-A560-521B77FEB810', 'B3106C22-DC3B-49F2-A560-521B77FEB810';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '0A7D5474-D71E-47C2-9558-4C58F7417205', 'C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA', '743B3412-79BE-49B7-B76B-488CAD1D87CF', '00C64D56-D6D3-4CD3-8669-4813E1F02DAB', 'C5E2FD57-988B-411C-B4BD-1866F30B021B';
	EXEC [dbo].[MD_DMM_RELATIONSHIP] 'A541973C-4EED-475B-8240-30DDC6BA3448', 'C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA', 'ADEB6F5B-27FE-4411-B952-5AA9349D81D4', 'EA5CCB71-5117-4939-B113-52913369B4F8', '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_SENT;
GO

BEGIN TRAN FUN_ASMS_FIELD_VALUE;
	EXEC [dbo].[MD_DMM_RELATIONSHIP] '42AA8B54-0068-4F86-AD19-966B5E8770BA', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'C265AF16-85E7-4425-9AE7-3308DB0FCB13', '1AA9D84D-A2F8-4E2B-B672-1F1E17C69FEE', '5B031190-42E8-4972-92E3-FAF520BA6F8F';
COMMIT TRAN FUN_ASMS_FIELD_VALUE;
GO
	EXEC MD_DMM_AGGREGATE 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'Count';
	EXEC MD_DMM_AGGREGATE 'FDCEEE44-22D2-4D3D-BC05-A3BEBDC2D643', 'Distinct count';
	EXEC MD_DMM_AGGREGATE 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', 'Sum';
	EXEC MD_DMM_AGGREGATE '9EC0CE65-0BBD-490E-AEB7-F0233986E219', 'Max';
	EXEC MD_DMM_AGGREGATE '4FB5A2EB-174E-4E59-87D6-BE80C8728F4E', 'Min';
	EXEC MD_DMM_AGGREGATE '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', 'Avg';
GO
BEGIN TRAN V_FACT_ASDK_ITEM;
	--COUNT
	EXEC MD_DMM_METRIC '5F220648-53F4-4919-B9FA-59E9F6B2B8C1', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'A0DD1E05-4604-4364-BF2E-13CD5DC7324C';
	EXEC MD_DMM_METRIC 'EE268D6C-A4EF-468A-B877-65E61414BF4F', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '6105DD1E-EC97-4BF7-8319-18C0395CCAC3';
	EXEC MD_DMM_METRIC '976DA460-437B-4B88-A062-1F593E488B4B', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '55B2A333-3BA5-4BC4-A35D-1EDD3B2D6939';
	EXEC MD_DMM_METRIC '30D64DA1-3A9D-4D28-AD0B-244479DB4505', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '297A9BC0-A549-40D9-B0BF-24A24CF65FC5';
	EXEC MD_DMM_METRIC 'C8FD200C-0355-4231-8AE0-DA1175D000D2', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'B6CF29A5-284A-4856-91D1-37815BD84ADF';
	EXEC MD_DMM_METRIC 'A0969EF6-EB64-43E6-AAE4-6033A98E8EF0', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '3D7EC245-8B24-45C3-8529-3DCA7F344D9D';
	EXEC MD_DMM_METRIC 'E0564E3F-F7B1-417D-85A0-420C24D6D507', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '31BE421C-A890-4BFD-93E3-4205038785EB';
	EXEC MD_DMM_METRIC 'D4859790-9C2D-4C3A-B446-B50A3D63D71C', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'D224E391-F8C3-4685-B469-559B755A649C';
	EXEC MD_DMM_METRIC '6C98A42F-9616-4CE2-AAE5-4E63866BCCA0', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'A1880945-3B5A-44FD-A4C6-61D0081502C2';
	EXEC MD_DMM_METRIC 'F300EC29-ECD4-4DEE-A144-9760123C01FA', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'B0B799B9-74B4-4747-B95A-62623BEE4970';
	EXEC MD_DMM_METRIC '38BACB88-F159-4660-8F51-D8C30D7CA58E', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '77B15AEA-5F5A-4D45-BA07-638738BFDEBE';
	EXEC MD_DMM_METRIC '04E8A46A-CA4A-4A99-BA41-6AE500CF52B9', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '4394D421-D3B7-41E1-8FC1-6F4ADFB26DB8';
	EXEC MD_DMM_METRIC 'CB01EDD6-947F-4400-8AD6-A8A4B7122477', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '5276C00D-DC7A-41F9-AD44-901210A3319A';
	EXEC MD_DMM_METRIC '84D5CF34-7564-4F08-8373-D2957F69CA91', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '6BAF4AB4-7F70-4A04-A025-9548DADAE8BC';
	EXEC MD_DMM_METRIC 'EBC7CAD5-C3C4-4A96-B964-6C29A2CA388F', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '8A0CBD51-CF2F-4367-A529-A1ABBEAB74E1';
	EXEC MD_DMM_METRIC '9CB26C05-47F2-4E6C-A82E-BF324FA65311', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'A03283EB-1665-4895-B4B5-A1F8FD1CDCA0';
	EXEC MD_DMM_METRIC '428B30C3-1FCE-4D7E-896E-47F33B3778A0', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '647EE729-780E-4B3F-9C93-B1B060BF7318';
	EXEC MD_DMM_METRIC '6EE68A49-D9EB-4CF4-BFD0-6B3FAE0551B5', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '5ADC3BE2-5455-45C9-A30E-BA06C09A52CE';
	EXEC MD_DMM_METRIC '48D558D0-2FA2-4116-AC41-AAF140D8F64F', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'F34199F6-A154-4308-9F2B-C46BFF7546CD';
	EXEC MD_DMM_METRIC '3B172F63-6587-464D-8591-051624F194D8', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '96554162-9FD5-4E7E-A814-C4EF1BEA0E5F';
	EXEC MD_DMM_METRIC 'FD986B1B-EE0A-4114-B303-1DE62BE2DCFD', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '248789D8-EAD8-49F0-970A-C5812B9FB573';
	EXEC MD_DMM_METRIC '82A317E8-3F50-4E2B-B830-06ECDDBCCB98', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'FBAA636C-93CB-441D-A2D8-C62E6B47288C';
	EXEC MD_DMM_METRIC '231FAD4D-DCFC-49F3-9C48-5752F616EEA9', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '9F80FB0C-CEF4-4CBA-BBD6-D253D8F7F16F';
	EXEC MD_DMM_METRIC '140B6739-1410-4D34-B625-6698933DDC93', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '1034DDB9-E44E-4938-92A4-E6206D7B39DF';
	EXEC MD_DMM_METRIC '11B12F55-8935-49C8-87E5-74D84AA00C89', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '2156DF02-FA08-49A6-8898-E901CEE6656D';
	EXEC MD_DMM_METRIC 'AEE91037-9492-43CC-A8AA-BB0C9C13D09F', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '12923717-15E5-44F7-9C64-EC3376EDF06A';
	EXEC MD_DMM_METRIC '512C59E5-B97E-4616-90D1-ED187F637741', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'F5E73561-FDFC-4E05-B08B-F59229F5EDE4';
	EXEC MD_DMM_METRIC '107655AB-4620-4AB8-B955-41BF3737B2FF', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '2866F2E1-9527-4872-926C-FCBE0E74EE92';
	EXEC MD_DMM_METRIC '651C6973-68D3-41AA-8814-1843ECD966B5', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'F64815F5-29F7-4D98-B602-515D238CBB1C';
	EXEC MD_DMM_METRIC '04F34308-1A40-4787-914A-690088E4D5F3', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '94884BF2-3DE4-4F0F-8349-A12706180D44';
	EXEC MD_DMM_METRIC '0DC9D3D4-C857-48F9-827A-7B1CD7F3340F', 'BD3C2618-99B0-454F-B059-B4FF723F0620', '8B628BBC-E89D-4502-870E-6D83A402B561';
	EXEC MD_DMM_METRIC 'EEA05D18-4BB8-49AA-B0EE-F66C4D9553AA', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'B8A559FA-646F-4AC8-BEC4-A2D609214307';
	EXEC MD_DMM_METRIC '32F23404-6455-4584-9C11-A90971543DBE', 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'A728A3A7-15DF-40A2-AD7F-9C54635EED2D';


	--SUM
	EXEC MD_DMM_METRIC '43DBBA40-65FA-46D8-85E9-A540D0316F74', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', 'C63BD20C-34AF-481E-BB67-30E7CFC8DE71';
	EXEC MD_DMM_METRIC '05F1D318-1ADA-45DF-88CA-C64381D695A9', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '8F478B6B-6AEF-4981-BE65-3512E9AEF7F5';
	EXEC MD_DMM_METRIC 'B12AC3B0-A721-4447-B9C7-317A294747C0', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', 'D605AB1F-2A32-416D-B8CB-6D7E5CC2D1AB';
	EXEC MD_DMM_METRIC '2BA2FF61-1973-439F-A3BC-734F22069D9B', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '122DDE4F-BF87-4C95-8B09-DA6EED600354';

	--MAX
	EXEC MD_DMM_METRIC '7E77886F-E05E-4793-932A-5F99389E42EB', '9EC0CE65-0BBD-490E-AEB7-F0233986E219', 'ADBF650F-C3DA-43E5-B07B-73E3C5D20275';
	EXEC MD_DMM_METRIC '4CFB91FA-4ABA-417B-B35D-BD06A5DDA1F4', '9EC0CE65-0BBD-490E-AEB7-F0233986E219', '4EF9F454-3D2C-4BC7-9942-1AE942B0B349';
	EXEC MD_DMM_METRIC '14DDAFE0-0D45-41E3-BB25-EE2C01EC8F92', '9EC0CE65-0BBD-490E-AEB7-F0233986E219', '39CE4DF8-4A24-4482-B4A3-AF8AC3FDB36B';

	--AVG
	EXEC MD_DMM_METRIC '1B2F9446-11CA-4834-B708-AFEEE7BAD733', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', '77B51663-B6F7-4BEC-99DC-0B2B06F84446';
	EXEC MD_DMM_METRIC 'CCB35A3F-8505-41C4-B3A0-4077392C1015', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', '4EBE2FA9-9523-405B-BE6F-3DE2755C7D5A';
	EXEC MD_DMM_METRIC 'C12433FE-BA0B-48C0-8EBE-89A79D535217', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', 'EF9F308C-53ED-4B03-8397-440CC84AE05E';
	EXEC MD_DMM_METRIC '36738440-94FD-43C2-B21C-6A4ADB4D466A', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', '22442DC1-2605-4287-9649-454C4B2A662D';
	EXEC MD_DMM_METRIC '6C15C3F5-98B7-4A1F-9806-71DD7E2ABC81', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', '997FCC2A-7A09-42C9-8D05-56C8FAFFE0F3';
	EXEC MD_DMM_METRIC '444947DD-5A8A-43E8-8A45-166B79D2D93A', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', 'D2AE0847-71F7-4C77-ACB9-69DD7736713F';
	EXEC MD_DMM_METRIC '18F30741-FA8D-41FB-8891-C7DCCD561C6A', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', 'AC32F371-04D8-4754-8DEF-7B55D1252A71';
	EXEC MD_DMM_METRIC '7DA463C3-7001-4300-96D9-D766A68BF2B0', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', '2C42B855-5FC4-4662-A13F-7ECEA8BD3A08';
	EXEC MD_DMM_METRIC 'C03104D7-C075-4C0F-97A7-0B3766AF2EDA', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', 'C54DC785-2665-4FA2-BACD-84AD4605D620';
	EXEC MD_DMM_METRIC '61CAABCF-97C7-437B-BE92-708BCAB678EB', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', '42F93CAB-76C1-4DFE-86A3-8A19EE991468';
	EXEC MD_DMM_METRIC 'CEEE6F87-E9F6-47AD-8367-90FDD31E12AD', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', 'D39B8C32-8D25-4F3A-9ED0-B36C38C218BC';
	EXEC MD_DMM_METRIC 'AD6E90A8-B334-447C-AB9F-1C0120CA0204', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', '112C0E6F-8E39-4C59-B918-DA08DAFC7F5B';
	EXEC MD_DMM_METRIC '59EF9D48-C036-4535-AA69-D3D2D66857E9', '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', 'A447A55A-5400-4277-9235-EEF8C4CA44C1';

	EXEC MD_DMM_METRIC '0C76109B-2A8F-41E3-A6E5-5B030734E872', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', 'FC9FF8EF-66AE-479B-9C81-630C9F60D769';
	EXEC MD_DMM_METRIC '43CBC6C4-2D8E-46B6-92D2-EA2971A28009', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '23251E8E-2F07-45A4-AC5F-A3D1ABD7832A';
	EXEC MD_DMM_METRIC '40C1182D-B7CB-4320-96A2-F03B33BDF673', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', 'EC2787E6-394F-495D-B8E2-B6874BAE400A';
	EXEC MD_DMM_METRIC 'C8953C53-051D-45FA-A31F-C1ABE02AF87B', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '97A696FA-ACA4-42EB-A90E-482AFCE553DE';
	EXEC MD_DMM_METRIC '641132B8-D036-4961-A7D2-6074D5B99BB3', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '5CE8A49B-743E-4DF2-855B-D93CD3F019E6';
	EXEC MD_DMM_METRIC '9B28A281-57B7-4D26-87E1-0FDD1B5922BB', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '559C6437-FAB5-44B0-A2AC-3F436D1BF64E';
	EXEC MD_DMM_METRIC '1B539F77-8CCB-4272-86C5-546E5854AAD9', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '4339016C-931C-40B7-B03F-DF0F23C228E1';
	EXEC MD_DMM_METRIC 'A8A09919-23CE-4296-9FBE-04506E911CAA', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '646CA33C-5C92-40CE-87FD-1EC8A289A58F';
	EXEC MD_DMM_METRIC '411A22E5-F2DB-43A1-A22A-B19D5859ADF8', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '932DD340-F970-46FC-B253-66B4DA930A04';
	EXEC MD_DMM_METRIC '8FABFA19-B853-4BA8-8CDE-73F01408A5E7', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '92E540AE-5BE8-48F3-8641-3CD47F1AED79';
	EXEC MD_DMM_METRIC '7A70A620-69A5-4DA3-AD8E-49B2A1C43CF9', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', 'F4214A3D-406C-47B9-BC87-038DCA2398B7';
	EXEC MD_DMM_METRIC '7513DDF5-AA5C-43D6-B3F2-2E98C0DBE99C', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '0C0EE6B0-D4CE-4E65-BD99-B071A5AD757C';
	EXEC MD_DMM_METRIC 'F50BC947-2445-4314-BE54-2B8CEEC1B508', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '5FB5F25E-B541-48CC-9827-139DFD5C16E0';
	EXEC MD_DMM_METRIC '230C93D7-DCB8-4F5C-86B4-A07B19455B69', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', 'B0749DB4-138A-49DD-B043-23E6614FCF94';
	EXEC MD_DMM_METRIC '2481A68C-DA9D-4752-8BC7-8BC0DFE6644B', 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', '91DED5D2-B744-47FD-8AF1-F0DBB9593D0D';
COMMIT TRAN V_FACT_ASDK_ITEM;
GO
BEGIN TRAN MD_DMM_DATASET_TRANSLATION_ES	
	EXEC MD_DMM_DATASET_TRANSLATION '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'es', 'Casos';
	EXEC MD_DMM_DATASET_TRANSLATION 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'es', 'Revisión de casos';
	EXEC MD_DMM_DATASET_TRANSLATION '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', 'es', 'Revisión de tareas';
	EXEC MD_DMM_DATASET_TRANSLATION 'C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA', 'es', 'Encuestas enviadas';
	EXEC MD_DMM_DATASET_TRANSLATION '97DB752F-D6E1-4ADC-86C7-4FA595D62082', 'es', 'Encuestas';
COMMIT TRAN MD_DMM_DATASET_TRANSLATION_ES
GO

BEGIN TRAN MD_DMM_DATASET_TRANSLATION_EN
	EXEC MD_DMM_DATASET_TRANSLATION '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'en', 'Cases';
	EXEC MD_DMM_DATASET_TRANSLATION 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'en', 'Cases revision';
	EXEC MD_DMM_DATASET_TRANSLATION '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', 'en', 'Task revision';
	EXEC MD_DMM_DATASET_TRANSLATION 'C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA', 'en', 'Surveys sent';
	EXEC MD_DMM_DATASET_TRANSLATION '97DB752F-D6E1-4ADC-86C7-4FA595D62082', 'en', 'Surveys';
COMMIT TRAN MD_DMM_DATASET_TRANSLATION_EN
GO

BEGIN TRAN MD_DMM_DATASET_TRANSLATION_PT
	EXEC MD_DMM_DATASET_TRANSLATION '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', 'pt', 'Casos';
	EXEC MD_DMM_DATASET_TRANSLATION 'A9A68ED6-BAAD-4A7C-B9B2-D0E79A199A5E', 'pt', 'Revisão de casos';
	EXEC MD_DMM_DATASET_TRANSLATION '4C564F0A-A738-4B76-8FA8-7CEF8F3FE647', 'pt', 'Revisão de tarefas';
	EXEC MD_DMM_DATASET_TRANSLATION 'C06CCEFF-1DDF-4691-81CC-B5BD9D30D0CA', 'pt', 'Pesquisas enviadas';
	EXEC MD_DMM_DATASET_TRANSLATION '97DB752F-D6E1-4ADC-86C7-4FA595D62082', 'pt', 'Pesquisas';
COMMIT TRAN MD_DMM_DATASET_TRANSLATION_PT
GO
BEGIN TRAN CMDB_CI_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '15B1F96E-E74A-4761-A7E9-5CBAE74921DE', 'es', 'Código de barras';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F977B8D5-7569-4E2B-87C6-45AFD262B8D4', 'es', 'RFID';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4BAFE14F-4116-41BA-961F-C3D6F7FB9BD7', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '27269F08-BF45-485D-8A5D-6CA3F0D7CB64', 'es', 'Serial';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FB2DF8F0-B3D7-4594-BE9C-8490E92ECE54', 'es', 'Etiqueta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FC73004A-1AEF-4420-A39C-EF873D1904A0', 'es', 'Precio';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '58F45D56-19FE-4D4E-829E-6A25A5DD2E83', 'es', 'Fecha de instalación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9866272F-C376-48D8-9358-84275EF78292', 'es', 'Fecha inicio de responsabilidad';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C0364057-E434-4A5E-BBEF-F3AC0DCF612B', 'es', 'Fecha de ingreso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8475BCAE-D6E1-46E2-8EF6-0C36FBCDF520', 'es', 'Fecha de aceptación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1EB4851B-8B99-4771-9FAA-902FA4E23585', 'es', 'Valor residual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6D67D538-6F5B-49CD-B9C3-CB340FF8C974', 'es', 'Fecha de salida';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2FB68212-EAC6-4A8B-B607-3F60803AAEE1', 'es', 'Fecha de creación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F3BC6573-A93D-4A25-B7B9-1064C1A096FE', 'es', 'Fecha de modificación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7E6D18F1-DE60-4171-B8BE-5772183ED914', 'es', 'Versión';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3935F646-B27B-4EF0-96FA-8ED5FDDC8E56', 'es', 'Fecha de cierre';
COMMIT TRAN CMDB_CI_ES;
GO

BEGIN TRAN ASMS_TYPES_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6626BA5D-5F6E-41D8-AE7A-A04CEA775222', 'es', 'Nombre';
COMMIT TRAN ASMS_TYPES_ES;
GO

BEGIN TRAN ASMS_STATUS_REASON_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0C49151D-6ECA-4ECC-A2BA-F6D94F51FB8E', 'es', 'Eliminado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FA64FE54-E643-415A-8F1D-F5A86DB012D7', 'es', 'Nombre';
COMMIT TRAN ASMS_STATUS_REASON_ES;
GO

BEGIN TRAN V_ASDK_STATUS_BEHAVIOR_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '06286622-A383-4095-9F84-1F827D8D97E2', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '43BA88D6-8F3E-4CB0-92D4-4026A89513E2', 'es', 'Comportamiento';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BE866971-40F4-4005-81F6-CC61686B8429', 'es', 'Etapa';
COMMIT TRAN V_ASDK_STATUS_BEHAVIOR_ES;
GO

BEGIN TRAN AFW_USERS_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BAC96493-8728-4B2E-B5DE-7679CB1D23A5', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '37CE48A9-BAA8-48E7-82D3-D0EA972D94E0', 'es', 'Alias';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2FC9BC83-ECF4-41E9-84E0-BDD18443234E', 'es', 'Correo electrónico';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1B823990-DCB2-4691-AD9F-0BD35D64010E', 'es', 'Fecha última actualización';
COMMIT TRAN AFW_USERS_ES;
GO

BEGIN TRAN ASMS_COMPANY_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '85E5F982-8507-414C-B564-E820A315768F', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C861D752-447D-40D9-85F6-EF743491CA6A', 'es', 'Correo electrónico';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0278447E-CA94-4149-8B78-34BDFE4C6566', 'es', 'Nit';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C434D7BA-5B51-4F53-892F-61A8FFDBC569', 'es', 'Fecha de creación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '93770C59-E42D-4805-8F44-C8C3A84FF633', 'es', 'Fecha de modificación';
COMMIT TRAN ASMS_COMPANY_ES;
GO

BEGIN TRAN ASMS_PROJECTS_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '53FEC50C-B133-4C91-872A-08FD74A94CC4', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6755DC2F-D6B9-4B73-AB14-87FBD0290857', 'es', 'Estado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A8BB2293-C0CE-4805-9BE5-1EB15E3512BE', 'es', 'Eliminado';
COMMIT TRAN ASMS_PROJECTS_ES;
GO

BEGIN TRAN ASMS_COST_CENTER_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '327B284F-3F19-4FD2-B955-795CF8E15C22', 'es', 'Código';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '42926BD4-42E3-49C6-A647-36DCF6690F01', 'es', 'Nombre';
COMMIT TRAN ASMS_COST_CENTER_ES;
GO

BEGIN TRAN AFW_GROUPS_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '480F71F6-08D1-448C-9FE8-1406495BCB19', 'es', 'Nombre';
COMMIT TRAN AFW_GROUPS_ES;
GO

BEGIN TRAN ASMS_MODEL_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B0EB9F51-65E0-4C68-B975-1C7B9736AAC8', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DD15BA24-FBF0-4A72-AF78-64D424A9FD54', 'es', 'Activo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8ADE5227-2569-4C93-AE26-CEC162D118AA', 'es', 'Predefinido';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '50313276-3092-4F2E-B46F-9664EDCD93FA', 'es', 'Eliminado';
COMMIT TRAN ASMS_MODEL_ES;
GO

BEGIN TRAN ASMS_LOCATION_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '84E92168-66B1-4A15-8802-BE8B7B7D9C56', 'es', 'Nombre';
COMMIT TRAN ASMS_LOCATION_ES;
GO

BEGIN TRAN ASMS_CONTRACT_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '761BC549-CC7A-45C9-BE70-15AC10F74F2F', 'es', 'Número';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3386A9E5-1966-4117-A043-8E5363A1C39B', 'es', 'Fecha inicio';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F3CB6927-4998-40CC-ADFE-524C442EE157', 'es', 'Fecha finalización';
COMMIT TRAN ASMS_CONTRACT_ES;
GO

BEGIN TRAN ASMS_INTEGRATIONS_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5B55E948-D081-478A-8B2A-ED33771FF5AF', 'es', 'Nombre';
COMMIT TRAN ASMS_INTEGRATIONS_ES;
GO

BEGIN TRAN ASDK_URGENCY_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '992932E0-C727-4A86-92EF-45E70B331CB4', 'es', 'Nombre';
COMMIT TRAN ASDK_URGENCY_ES;
GO

BEGIN TRAN ASDK_UC_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D6E458BC-DAD1-4459-999A-222898E3B24D', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '51511AE4-A396-4E4A-9259-D63553F462F0', 'es', 'Fecha de inicio';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FFAB6351-1229-459F-9BC3-B93BCB2E92F9', 'es', 'Fecha de finalización';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '71DDF2D5-7F75-4C69-8FE4-73300CE1C129', 'es', 'Fecha de revisión';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '25C7801A-1AFC-4D4E-A830-9DCE580958BF', 'es', 'Fecha de creación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '49737994-D6EC-404B-8B46-35CD41203A12', 'es', 'Fecha de cierre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C4F2AC8A-2608-4286-B741-6E79F7F83F32', 'es', 'Fecha de modificación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '686627D0-E821-476C-B7CD-51778956852B', 'es', 'Eliminado';
COMMIT TRAN ASDK_UC_ES;
GO

BEGIN TRAN ASDK_SLA_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4AF481A7-CBB1-4EF3-A657-ECF028191FDA', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E6FEC33E-DD2E-4557-BF8E-7C910BB72F7E', 'es', 'Fecha de inicio';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E86D9B52-730F-417C-8194-B50935F6BB82', 'es', 'Fecha de finalización';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FFEC96E0-4974-4091-B0A4-69E1E389A1C8', 'es', 'Fecha de revisión';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3CE7CB3E-B8FD-4E99-A30B-58A69C9AE060', 'es', 'Fecha de creación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '72C7543A-8A5F-42D9-BD2A-CB3749ADE976', 'es', 'Fecha de cierre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '519A457E-4956-48C5-80D6-B48F4E00910A', 'es', 'Fecha de modificación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '72859D86-E087-4660-9862-4CB2C3F0D9C3', 'es', 'Eliminado';
COMMIT TRAN ASDK_SLA_ES;
GO

BEGIN TRAN  ASDK_SERVICE_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '90FF2754-8191-4BCC-A9A4-52D3379DACCB', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BB664401-4313-49E3-93E8-03838F3CB445', 'es', 'Fecha de apertura';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '21DA97E5-0DBE-41FA-BC71-3391BE002E49', 'es', 'Fecha de cierre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5350C47C-40C7-46BB-A2AA-1CC12E5C06DE', 'es', 'Fecha de modificación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D079F990-073B-40B9-8131-9AF0D4C19C46', 'es', 'Eliminado';
COMMIT TRAN ASDK_SERVICE_ES;
GO

BEGIN TRAN ASDK_REGISTRY_TYPE_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CBFA3075-F58E-4524-8E95-4B2CEADAB5DF', 'es', 'Nombre';
COMMIT TRAN ASDK_REGISTRY_TYPE_ES;
GO

BEGIN TRAN  ASDK_PRIORITY_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '39CCEADA-C654-43B7-BCF3-E0A726B6F659', 'es', 'Nombre';
COMMIT TRAN ASDK_PRIORITY_ES;
GO

BEGIN TRAN ASDK_OLA_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4F4F5C20-A66B-408E-B3AB-8DE7A6A082D2', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5FD52C06-3077-4F09-97E8-332345FA88AA', 'es', 'Fecha de inicio';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '86D5E129-496F-4CD2-BC6A-E65720F78408', 'es', 'Fecha de finalización';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0BB1EA35-2531-47F2-AD53-5F5F55270DE9', 'es', 'Fecha de revisión';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '62AE0B39-6207-41A4-8E05-F108678F4755', 'es', 'Fecha de creación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B14A5006-E43D-4DBF-BC35-03268851C72C', 'es', 'Fecha de cierre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C4A75AA4-1244-4FCC-AFC4-3AF7F2A122FA', 'es', 'Fecha de modificación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9BE342EF-3AE3-4612-85E4-F492B1B4BD1A', 'es', 'Eliminado';
COMMIT TRAN ASDK_OLA_ES;
GO

BEGIN TRAN ASDK_MODEL_COST_PRICE_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '655FF707-9837-4134-ADD4-5C37DA3A7012', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AA0B21C4-2522-4F66-9E68-D1A04BF98242', 'es', 'Descripción';
COMMIT TRAN ASDK_MODEL_COST_PRICE_ES;
GO

BEGIN TRAN ASDK_IMPACT_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AFEA1DBF-76A3-460F-A107-8E6953E42DF1', 'es', 'Nombre';
COMMIT TRAN ASDK_IMPACT_ES;
GO

BEGIN TRAN ASDK_CATEGORY_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '48EF94B1-F034-40B9-AA59-ED408A5E30B0', 'es', 'Nombre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E612F8AF-9A35-4D9D-89F8-E117151CA2B7', 'es', 'Jerarquía';
COMMIT TRAN ASDK_CATEGORY_ES;
GO

BEGIN TRAN DIM_DATE_ES;
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BBCFF598-49D3-4204-B065-10EFB65CF5FB', 'es', 'Fecha';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C949A6CA-64B9-4AB4-B4BC-4F6DEF0A0D49', 'es', 'Año';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4608D8E7-7143-453F-88C9-E23FA8AA5430', 'es', 'Semestre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6A1590BA-0D08-40C2-95E0-8E7C7C8D9E08', 'es', 'Trimestre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6573E54A-E119-4088-94D3-4323CE681A22', 'es', 'Mes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DB1B1E95-CA0C-49FF-A2E8-725740B08D38', 'es', 'Semana';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BB775585-368F-42D0-BE8F-120B175ADD4A', 'es', 'Mes (ES)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7315DF45-B221-4C0D-97FA-781380CD6E36', 'es', 'Mes (EN)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C33B06B0-9848-4DE4-8EC4-DB01DC846635', 'es', 'Mes (PT)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7A414024-C630-40C8-94EF-84FB10742A0F', 'es', 'Dia del mes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '850441CE-C92F-469E-AAEF-98AD456DA0CB', 'es', 'Dia de la semana';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1F6BD334-1763-4A55-9B93-7DDE1F2C0057', 'es', 'Dia (ES)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A4E238C1-78C5-4789-8C86-EB4C742BD08F', 'es', 'Dia (EN)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E2675026-5C01-4091-A1C3-DA05F73D4AFA', 'es', 'Dia (PT)';
COMMIT TRAN DIM_DATE_ES;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2CF29EFF-0B36-4D18-AA66-61BC422EBF67', 'es', 'Identificador del caso';
 	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BF64FB99-86A9-4447-890D-6890474EA8FB', 'es', 'Identificador por proyecto';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6687F7A7-3560-4CA6-81E9-DA13CB899512', 'es', 'Fecha de modificación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FCB279AE-A8F9-4395-B51C-8D538B7BC357', 'es', 'Fecha estimada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '112C0E6F-8E39-4C59-B918-DA08DAFC7F5B', 'es', 'Progreso actual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AC32F371-04D8-4754-8DEF-7B55D1252A71', 'es', 'Tiempo acumulado actual en minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DC097C03-644A-4BF4-82A8-7E404AC4D47C', 'es', 'Tiempo acumulado actual en formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2C42B855-5FC4-4662-A13F-7ECEA8BD3A08', 'es', 'Precio';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C54DC785-2665-4FA2-BACD-84AD4605D620', 'es', 'Costo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4EBE2FA9-9523-405B-BE6F-3DE2755C7D5A', 'es', 'Esfuerzo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B8C52259-FB18-4B17-B484-61C539DD96B7', 'es', 'Costo disponible';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '403E97A3-B8AC-45BA-872F-8A32EEE1653A', 'es', 'Esfuerzo disponible';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '66B76855-1A1E-419F-8679-F1B84355726B', 'es', 'Precio disponible';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7AE35709-94D1-48D5-9395-7DEBEB2E5E3A', 'es', 'Cantidad disponible';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '122DDE4F-BF87-4C95-8B09-DA6EED600354', 'es', 'Tiempo en minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B32894EF-091E-467E-82A3-31B6F4DECAF5', 'es', 'Tiempo en formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '13BFB20C-82AA-480C-9E0B-45DE768D940A', 'es', 'Fecha de creación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '41726291-E0CD-40E9-B179-DB9E2A670228', 'es', 'Fecha de apertura';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '52922C7A-AFF6-428E-80E5-C23C7586E793', 'es', 'Fecha de Cierre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4B666823-559C-451E-88DE-A75B93366980', 'es', 'Fecha real';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BE67A3E0-27B7-4A0F-8CFE-02998270A18C', 'es', 'Tiempo estimado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E1B7592C-7ADE-461B-997B-A73481BAEDC7', 'es', 'Fecha de solución';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EF9F308C-53ED-4B03-8397-440CC84AE05E', 'es', 'Tiempo solución';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5CA1F9E4-36A3-4E68-94BF-3013A666CEA4', 'es', 'Revisión';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C63BD20C-34AF-481E-BB67-30E7CFC8DE71', 'es', 'Notas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D605AB1F-2A32-416D-B8CB-6D7E5CC2D1AB', 'es', 'Notas privadas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8F478B6B-6AEF-4981-BE65-3512E9AEF7F5', 'es', 'Notas públicas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E1ABDAD7-BE62-4D6C-823B-D8DD54056414', 'es', 'Fecha de atención';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D2AE0847-71F7-4C77-ACB9-69DD7736713F', 'es', 'Tiempo de atención';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A447A55A-5400-4277-9235-EEF8C4CA44C1', 'es', 'Tiempo de espera';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '997FCC2A-7A09-42C9-8D05-56C8FAFFE0F3', 'es', 'Tiempo de espera del especialista';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '77B51663-B6F7-4BEC-99DC-0B2B06F84446', 'es', 'Tiempo de la primera asignación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '22442DC1-2605-4287-9649-454C4B2A662D', 'es', 'Tiempo de la primera respuesta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8F15E3A9-E95C-4FDC-8021-DCDC1F7AD8E8', 'es', 'Fecha de la primera respuesta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '42F93CAB-76C1-4DFE-86A3-8A19EE991468', 'es', 'Tiempo desde la primera asignación a la solución';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D39B8C32-8D25-4F3A-9ED0-B36C38C218BC', 'es', 'Tiempo desde la última asignación a la solución';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '647EE729-780E-4B3F-9C93-B1B060BF7318', 'es', 'Caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A1880945-3B5A-44FD-A4C6-61D0081502C2', 'es', 'Cambio';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8A0CBD51-CF2F-4367-A529-A1ABBEAB74E1', 'es', 'Incidente';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5ADC3BE2-5455-45C9-A30E-BA06C09A52CE', 'es', 'Problema';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A0DD1E05-4604-4364-BF2E-13CD5DC7324C', 'es', 'Liberación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F5E73561-FDFC-4E05-B08B-F59229F5EDE4', 'es', 'Requerimiento';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4394D421-D3B7-41E1-8FC1-6F4ADFB26DB8', 'es', 'Caso nuevo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '77B15AEA-5F5A-4D45-BA07-638738BFDEBE', 'es', 'Cambio nuevo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '297A9BC0-A549-40D9-B0BF-24A24CF65FC5', 'es', 'Incidente nuevo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9F80FB0C-CEF4-4CBA-BBD6-D253D8F7F16F', 'es', 'Problema nuevo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '12923717-15E5-44F7-9C64-EC3376EDF06A', 'es', 'Requerimiento nuevo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5276C00D-DC7A-41F9-AD44-901210A3319A', 'es', 'Caso en espera';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '96554162-9FD5-4E7E-A814-C4EF1BEA0E5F', 'es', 'Caso pendiente';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A03283EB-1665-4895-B4B5-A1F8FD1CDCA0', 'es', 'Caso pendiente sin asignar';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '55B2A333-3BA5-4BC4-A35D-1EDD3B2D6939', 'es', 'Caso sin respuesta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3D7EC245-8B24-45C3-8529-3DCA7F344D9D', 'es', 'Caso resuelto';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FBAA636C-93CB-441D-A2D8-C62E6B47288C', 'es', 'Caso resuelto esta semana';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2866F2E1-9527-4872-926C-FCBE0E74EE92', 'es', 'Caso resuelto este mes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '31BE421C-A890-4BFD-93E3-4205038785EB', 'es', 'Caso resuelto este mes año anterior';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6105DD1E-EC97-4BF7-8319-18C0395CCAC3', 'es', 'Caso resuelto este Q';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B0B799B9-74B4-4747-B95A-62623BEE4970', 'es', 'Caso resuelto este Q año anterior';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F34199F6-A154-4308-9F2B-C46BFF7546CD', 'es', 'Caso resuelto este año';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6BAF4AB4-7F70-4A04-A025-9548DADAE8BC', 'es', 'Caso resuelto el año anterior';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2156DF02-FA08-49A6-8898-E901CEE6656D', 'es', 'Caso resuelto sin intervenciones';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1034DDB9-E44E-4938-92A4-E6206D7B39DF', 'es', 'Caso resuelto con una intervención';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '248789D8-EAD8-49F0-970A-C5812B9FB573', 'es', 'Caso resuelto con más de una intervención';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D224E391-F8C3-4685-B469-559B755A649C', 'es', 'Caso resuelto dentro del SLA';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B6CF29A5-284A-4856-91D1-37815BD84ADF', 'es', 'Caso resuelto fuera del SLA';
COMMIT TRAN V_FACT_ASDK_ITEM_ES;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '48AB4BF6-0BF9-454D-A7D5-A6BAFDF9C067', 'es', 'Identificador del caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4A63B974-C9EF-4907-B059-7CBAF099DECF', 'es', 'Identificador por proyecto';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '08164FC2-11CE-41D3-8383-C23F113C1B20', 'es', 'Fecha de modificación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '40F7372C-7FCD-4FED-925F-5602D7E54014', 'es', 'Revisión';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2BB41033-0407-4711-9EB7-56613926C4E3', 'es', 'Fecha estimada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8D861CFC-1E8A-4476-8E57-58C79C00D255', 'es', 'Progreso actual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C97F385A-B6B9-404C-B1E2-D4B6FDBDD801', 'es', 'Tiempo acumulado actual en minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1C366E18-3F70-4B8D-9BAE-752E18481F6B', 'es', 'Tiempo acumulado actual en formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '63E70D7C-B97B-4093-87C3-9E90AF4B573B', 'es', 'Costo actual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DC28CBF1-2907-4FC8-B8F6-E129474FA234', 'es', 'Esfuerzo actual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E62A1D95-16CE-4F44-A9F9-ACF0227C7409', 'es', 'Precio actual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '24DC3979-D839-45D1-96E0-622AA97C3C60', 'es', 'Tiempo en minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '01389FE5-09B6-4062-91E5-CE499B24F3C2', 'es', 'Tiempo en minutos en formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3D6D49FD-783B-4B09-BE02-A9A4CF85C46C', 'es', 'Notas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0AD50FB2-B8DF-412F-9868-E28A7342273F', 'es', 'Notas privadas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '77F7CD95-657C-4772-B259-E5ACD125A47C', 'es', 'Notas públicas';

	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F64815F5-29F7-4D98-B602-515D238CBB1C', 'es', 'Reasignación a especialista';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '94884BF2-3DE4-4F0F-8349-A12706180D44', 'es', 'Reasignación de grupo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8B628BBC-E89D-4502-870E-6D83A402B561', 'es', 'Actualización';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B8A559FA-646F-4AC8-BEC4-A2D609214307', 'es', 'Actualización por especialista';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A728A3A7-15DF-40A2-AD7F-9C54635EED2D', 'es', 'Actualización por usuario final';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'ADBF650F-C3DA-43E5-B07B-73E3C5D20275', 'es', 'Comentarios';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4EF9F454-3D2C-4BC7-9942-1AE942B0B349', 'es', 'Comentarios públicos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '39CE4DF8-4A24-4482-B4A3-AF8AC3FDB36B', 'es', 'Comentarios privados';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FC9FF8EF-66AE-479B-9C81-630C9F60D769', 'es', 'Tiempo de cambio de campo (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '23251E8E-2F07-45A4-AC5F-A3D1ABD7832A', 'es', 'Tiempo en estado nuevo (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EC2787E6-394F-495D-B8E2-B6874BAE400A', 'es', 'Tiempo en progreso (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '97A696FA-ACA4-42EB-A90E-482AFCE553DE', 'es', 'Tiempo en pausado (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5CE8A49B-743E-4DF2-855B-D93CD3F019E6', 'es', 'Tiempo en estado programado (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '559C6437-FAB5-44B0-A2AC-3F436D1BF64E', 'es', 'Tiempo de cambio de campo (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4339016C-931C-40B7-B03F-DF0F23C228E1', 'es', 'Tiempo en estado nuevo (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '646CA33C-5C92-40CE-87FD-1EC8A289A58F', 'es', 'Tiempo en progreso (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '932DD340-F970-46FC-B253-66B4DA930A04', 'es', 'Tiempo en pausado (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '92E540AE-5BE8-48F3-8641-3CD47F1AED79', 'es', 'Tiempo en estado programado (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F4214A3D-406C-47B9-BC87-038DCA2398B7', 'es', 'Tiempo de cambio de campo (días)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0C0EE6B0-D4CE-4E65-BD99-B071A5AD757C', 'es', 'Tiempo en estado nuevo (días)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5FB5F25E-B541-48CC-9827-139DFD5C16E0', 'es', 'Tiempo en progreso (días)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B0749DB4-138A-49DD-B043-23E6614FCF94', 'es', 'Tiempo en pausado (días)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '91DED5D2-B744-47FD-8AF1-F0DBB9593D0D', 'es', 'Tiempo en estado programado (días)';
COMMIT TRAN V_FACT_ASDK_ITEM_REVISION_ES;
GO

BEGIN TRAN V_FACT_ASDK_TASK_REVISION_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2DF9ECAA-4D10-4882-90EA-C617D0ABB61D', 'es', 'Identificador del caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CAA555E1-7DF0-43FB-86AD-8054F7FE668B', 'es', 'Identificador por proyecto';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '783599ED-2398-4D1B-AAEF-CB036C6F668E', 'es', 'Fecha de modificación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F95D7CB6-46C3-4A6B-A588-B11A3704AD50', 'es', 'Revisión';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EDF69100-FAB1-4D74-A939-8E8781FC2025', 'es', 'Fecha estimada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E545FC8D-ACAB-433D-8141-5F812C9D85D4', 'es', 'Progreso actual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6C0C63B2-05C4-45B7-9560-94C6E1F5C55A', 'es', 'Duración actual de la tarea en minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3737E643-AE8D-4D14-B758-F1CC79AFCB1F', 'es', 'Duración actual de la tarea en formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2F5FCC02-2C35-42CD-BCBC-23FB92917E9B', 'es', 'Costo actual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '466DCD0F-378D-4E63-AA3A-C9AFE73EA408', 'es', 'Esfuerzo actual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4BED49C0-5438-4D20-829D-2D6A84914F0E', 'es', 'Precio actual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '27899F65-497B-4B42-8E30-6124730455A6', 'es', 'Duración en minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '19CCF09E-ABB3-45B7-B259-E6C944629A1C', 'es', 'Duración en formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1400D5B3-ACB2-4770-A07E-4229325C22F6', 'es', 'Notas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1E816461-8BCF-4A2C-BF1A-FC617A4F8B46', 'es', 'Notas privadas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E3023C67-F8FE-4929-9D02-28C882ECF61E', 'es', 'Notas públicas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '58EF92C4-DB35-4A1F-9869-43CF55B2304B', 'es', 'Subtipo de tarea';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5ABAE06C-05CC-4A3D-BDCE-495D45A25571', 'es', 'Reasignación de especialista';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '889B9CAA-C1CB-4FE9-82A2-3A57AF4238E8', 'es', 'Reasignación de grupo de especialistas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E2489960-3AF6-4C74-9B72-07FA41AE1FA4', 'es', 'Tarea';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '03AFBE28-19DD-4C94-AC0C-8F1D7593A252', 'es', 'Tarea creada esta semana';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '52AB3F5B-3D64-4327-9B52-7FFDA0D0D55C', 'es', 'Tarea creada este mes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B4AA6A9A-2F43-44A0-95DD-3011F005BC57', 'es', 'Tarea creada este mes año anterior';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E636B662-D4D5-4335-8459-B615A8198798', 'es', 'Tarea creada este Q';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '65FFA936-ED55-4096-B440-8AB039726B77', 'es', 'Tarea creada este Q año anterior';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '99ADCE71-46FB-49EB-A02B-5B0511521CF5', 'es', 'Tarea creada este año';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DD7B5840-6A0F-4AAF-AB42-361A395412D2', 'es', 'Tarea creada el año anterior';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1A624600-6DDF-4423-9B89-A480687DFA8B', 'es', 'Tarea abierta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3FFD1A9D-B31A-4828-A1B9-CEF89CEAA3FC', 'es', 'Tarea cerrada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '159757A2-7D70-4748-9BB8-7BDDF540911D', 'es', 'Tarea cerrada esta semana';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '44CCA474-058B-4371-8FE5-77168BF97E00', 'es', 'Tarea cerrada este mes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '51C6CCA0-3BC3-444D-BDC1-A3CDD9A2CF48', 'es', 'Tarea cerrada este mes año anterior';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B8C61AA7-446B-4E8A-8A6E-40C40C21FC6E', 'es', 'Tarea cerrada este Q';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CD109880-971B-48AF-A647-A726B3128282', 'es', 'Tarea cerrada este Q año anterior';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AEB1F2D4-FBF0-43C2-87DA-8305532AB747', 'es', 'Tarea cerrada este año';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3C808E68-A9C8-465B-8081-C1C7830D47B6', 'es', 'Tarea cerrada el año anterior';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7DA5E0D0-79D0-4AB2-B81A-84E5A93EBB23', 'es', 'Tarea cerrada dentro de la fecha estimada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2320EECE-2D12-4AB8-B3C3-02CEFC0BB6C6', 'es', 'Tarea cerrada fuera de la fecha estimada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '981E2DF7-E2CC-476D-B26A-8E699941FBB2', 'es', 'Tarea con caso padre tipo cambio';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5EC73A7E-F1B0-4BCC-9283-E87E2A989E4A', 'es', 'Tarea con caso padre tipo incidente';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CFC10F88-B546-49FE-AC83-71087DFB30D7', 'es', 'Tarea con caso padre tipo problema';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6F3FEC1A-C6F5-42DF-98DA-0F61FA9E9C43', 'es', 'Tarea con caso padre tipo liberación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4E237F11-164C-4085-A0EE-72B40F1B68FB', 'es', 'Tarea con caso padre tipo requerimiento';
COMMIT TRAN V_FACT_ASDK_TASK_REVISION_ES;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_SENT_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6717BF87-CA96-4937-8F23-AEF278E9E414', 'es', 'Caso' ;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9381F150-2801-45A6-80C0-3F6D5132A769', 'es', 'Fecha invitación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '35FC5398-6FC6-421F-AC68-52F5E8D4C7AC', 'es', 'Encuesta enviada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '40534556-630C-42EB-BA25-823921923EED', 'es', 'Encuesta enviada por correo electrónico';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_SENT_ES;
GO

BEGIN TRAN AFW_SURVEY_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DFD3B1F6-5EBD-42F5-BC9F-23A27179A8B2', 'es', 'Nombre de encuesta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '10A38DBC-E844-403D-8F0B-6A50F1161866', 'es', 'Fecha de inicio';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '24AD0FF3-5701-4B2D-AE76-FF0FFEFE6D6B', 'es', 'Fecha de finalización';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '16E1A950-2158-4DB7-B17D-96509718376B', 'es', 'Estado de publicación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '039F2088-1A48-4AFC-A4E1-79E59F4ED1FB', 'es', 'Fecha de creación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FAA141E7-D148-4486-8235-E2F0169B5883', 'es', 'Fecha de actualización';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D075E21B-33E9-47E2-88EA-A25F3DEB50E3', 'es', 'Plantilla eliminada';
COMMIT TRAN AFW_SURVEY_ES;
GO

BEGIN TRAN AFW_SURVEY_QUESTION_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '31DD6D75-387A-459E-B9EF-ADB5362F89A5', 'es', 'Contenido de la pregunta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '42B717A1-3C76-4002-ACB4-BD4DE5FEF098', 'es', 'Pregunta obligatoria';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0B79CD90-AF59-4AC8-B734-1B5DF7AACEDF', 'es', 'Calificación máxima';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5A8B6C10-6FEB-483C-8464-1689E78588D3', 'es', 'Fecha de creación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E4903C4D-5239-4138-9F2F-D898A7F9DD91', 'es', 'Fecha de actualización';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '73AB35A7-6FC6-4879-8D07-407690A66942', 'es', 'Pregunta eliminada';
COMMIT TRAN AFW_SURVEY_QUESTION_ES;
GO

BEGIN TRAN AFW_SURVEY_QUESTION_TYPE_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '84DF1C6D-0401-4333-9316-4E4873FAE074', 'es', 'Tipo de pregunta';
COMMIT TRAN AFW_SURVEY_QUESTION_TYPE_ES;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BF43085A-C910-480C-AE85-1048BAEDD52E', 'es', 'Caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8B88FBE6-DEA7-4388-8AE5-B33BD1059CED', 'es', 'Fecha respuesta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8765BDCD-8822-4801-8DD5-0C86158DD737', 'es', 'Fecha invitación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2F6FAFA0-1F60-4BCF-9D72-EEF1B54E40A1', 'es', 'Encuesta enviada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7DCF4B47-EACC-462E-873A-F9760B8789AD', 'es', 'Encuesta enviada por correo electrónico';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EE869B2F-8B6D-438A-94E4-67318ED582BE', 'es', 'Encuesta respondida';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0511022E-84B4-4A08-8397-3FA363251BE2', 'es', 'Encuesta sin responder';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'ED208E20-B626-448C-96A4-9EB84EA002A3', 'es', 'Calificación';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1B4DBFA2-BDF0-40EA-8956-CC356F019A08', 'es', 'Calificación máxima';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '782A754F-D0BE-4E42-ACB3-6D0BB623361D', 'es', 'Calificación mínima';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '113AF4B2-ADA8-453F-9023-5C15ADD047DD', 'es', 'Incidentes con encuesta respondida';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9354104A-3FB3-4783-A5C3-878DA618D096', 'es', 'Cambios con encuesta respondida';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4FB36732-6A1D-4037-AB3B-815141FD67A5', 'es', 'Requerimientos con encuesta respondida';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_ES;
GO

---------------------------------------------------------------------------------EN-------------------------------------------------------------------------------------------------
BEGIN TRAN CMDB_CI_EN;
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '15B1F96E-E74A-4761-A7E9-5CBAE74921DE', 'en', 'Barcode';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F977B8D5-7569-4E2B-87C6-45AFD262B8D4', 'en', 'RFID';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4BAFE14F-4116-41BA-961F-C3D6F7FB9BD7', 'en', 'Name';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '27269F08-BF45-485D-8A5D-6CA3F0D7CB64', 'en', 'Serial';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FB2DF8F0-B3D7-4594-BE9C-8490E92ECE54', 'en', 'Asset tag';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FC73004A-1AEF-4420-A39C-EF873D1904A0', 'en', 'Price';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '58F45D56-19FE-4D4E-829E-6A25A5DD2E83', 'en', 'Installation date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9866272F-C376-48D8-9358-84275EF78292', 'en', 'Reponsible date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C0364057-E434-4A5E-BBEF-F3AC0DCF612B', 'en', 'Checkin date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8475BCAE-D6E1-46E2-8EF6-0C36FBCDF520', 'en', 'Accept date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1EB4851B-8B99-4771-9FAA-902FA4E23585', 'en', 'Residual value';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6D67D538-6F5B-49CD-B9C3-CB340FF8C974', 'en', 'Checkout date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2FB68212-EAC6-4A8B-B607-3F60803AAEE1', 'en', 'Created date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F3BC6573-A93D-4A25-B7B9-1064C1A096FE', 'en', 'Modified date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7E6D18F1-DE60-4171-B8BE-5772183ED914', 'en', 'Version';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3935F646-B27B-4EF0-96FA-8ED5FDDC8E56', 'en', 'Closed date';
COMMIT TRAN CMDB_CI_EN;
GO

BEGIN TRAN ASMS_TYPES_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6626BA5D-5F6E-41D8-AE7A-A04CEA775222', 'en', 'Name';
COMMIT TRAN ASMS_TYPES_EN;
GO

BEGIN TRAN ASMS_STATUS_REASON_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FA64FE54-E643-415A-8F1D-F5A86DB012D7', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0C49151D-6ECA-4ECC-A2BA-F6D94F51FB8E', 'en', 'Deleted';
COMMIT TRAN ASMS_STATUS_REASON_EN;
GO

BEGIN TRAN V_ASDK_STATUS_BEHAVIOR_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '06286622-A383-4095-9F84-1F827D8D97E2', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '43BA88D6-8F3E-4CB0-92D4-4026A89513E2', 'en', 'Behavior';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BE866971-40F4-4005-81F6-CC61686B8429', 'en', 'Stage';
COMMIT TRAN V_ASDK_STATUS_BEHAVIOR_EN;
GO

BEGIN TRAN AFW_USERS_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BAC96493-8728-4B2E-B5DE-7679CB1D23A5', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '37CE48A9-BAA8-48E7-82D3-D0EA972D94E0', 'en', 'Alias';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2FC9BC83-ECF4-41E9-84E0-BDD18443234E', 'en', 'Email';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1B823990-DCB2-4691-AD9F-0BD35D64010E', 'en', 'last update date';
COMMIT TRAN AFW_USERS_EN;
GO

BEGIN TRAN ASMS_COMPANY_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '85E5F982-8507-414C-B564-E820A315768F', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C861D752-447D-40D9-85F6-EF743491CA6A', 'en', 'Email';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0278447E-CA94-4149-8B78-34BDFE4C6566', 'en', 'Nit';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C434D7BA-5B51-4F53-892F-61A8FFDBC569', 'en', 'Created date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '93770C59-E42D-4805-8F44-C8C3A84FF633', 'en', 'Modified date';
COMMIT TRAN ASMS_COMPANY_EN;
GO

BEGIN TRAN ASMS_PROJECTS_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '53FEC50C-B133-4C91-872A-08FD74A94CC4', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6755DC2F-D6B9-4B73-AB14-87FBD0290857', 'en', 'Status';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A8BB2293-C0CE-4805-9BE5-1EB15E3512BE', 'en', 'Deleted';
COMMIT TRAN ASMS_PROJECTS_EN;
GO

BEGIN TRAN ASMS_COST_CENTER_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '327B284F-3F19-4FD2-B955-795CF8E15C22', 'en', 'Code';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '42926BD4-42E3-49C6-A647-36DCF6690F01', 'en', 'Name';
COMMIT TRAN ASMS_COST_CENTER_EN;
GO

BEGIN TRAN AFW_GROUPS_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '480F71F6-08D1-448C-9FE8-1406495BCB19', 'en', 'Name';
COMMIT TRAN AFW_GROUPS_EN;
GO

BEGIN TRAN ASMS_MODEL_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B0EB9F51-65E0-4C68-B975-1C7B9736AAC8', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DD15BA24-FBF0-4A72-AF78-64D424A9FD54', 'en', 'Active';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8ADE5227-2569-4C93-AE26-CEC162D118AA', 'en', 'Predefined';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '50313276-3092-4F2E-B46F-9664EDCD93FA', 'en', 'Deleted';
COMMIT TRAN ASMS_MODEL_EN;
GO

BEGIN TRAN ASMS_LOCATION_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '84E92168-66B1-4A15-8802-BE8B7B7D9C56', 'en', 'Name';
COMMIT TRAN ASMS_LOCATION_EN;
GO

BEGIN TRAN ASMS_CONTRACT_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '761BC549-CC7A-45C9-BE70-15AC10F74F2F', 'en', 'Number contract';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3386A9E5-1966-4117-A043-8E5363A1C39B', 'en', 'Start date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F3CB6927-4998-40CC-ADFE-524C442EE157', 'en', 'End date';
COMMIT TRAN ASMS_CONTRACT_EN;
GO

BEGIN TRAN ASMS_INTEGRATIONS_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5B55E948-D081-478A-8B2A-ED33771FF5AF', 'en', 'Name';
COMMIT TRAN ASMS_INTEGRATIONS_EN;
GO

BEGIN TRAN ASDK_URGENCY_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '992932E0-C727-4A86-92EF-45E70B331CB4', 'en', 'Name';
COMMIT TRAN ASDK_URGENCY_EN;
GO

BEGIN TRAN ASDK_UC_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D6E458BC-DAD1-4459-999A-222898E3B24D', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '51511AE4-A396-4E4A-9259-D63553F462F0', 'en', 'Start date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FFAB6351-1229-459F-9BC3-B93BCB2E92F9', 'en', 'End date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '71DDF2D5-7F75-4C69-8FE4-73300CE1C129', 'en', 'Date review';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '25C7801A-1AFC-4D4E-A830-9DCE580958BF', 'en', 'Created date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '49737994-D6EC-404B-8B46-35CD41203A12', 'en', 'Closed date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C4F2AC8A-2608-4286-B741-6E79F7F83F32', 'en', 'Modified date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '686627D0-E821-476C-B7CD-51778956852B', 'en', 'Deleted';
COMMIT TRAN ASDK_UC_EN;
GO

BEGIN TRAN ASDK_SLA_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4AF481A7-CBB1-4EF3-A657-ECF028191FDA', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E6FEC33E-DD2E-4557-BF8E-7C910BB72F7E', 'en', 'Start date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E86D9B52-730F-417C-8194-B50935F6BB82', 'en', 'End date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FFEC96E0-4974-4091-B0A4-69E1E389A1C8', 'en', 'Date review';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3CE7CB3E-B8FD-4E99-A30B-58A69C9AE060', 'en', 'Created date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '72C7543A-8A5F-42D9-BD2A-CB3749ADE976', 'en', 'Closed date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '519A457E-4956-48C5-80D6-B48F4E00910A', 'en', 'Modified date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '72859D86-E087-4660-9862-4CB2C3F0D9C3', 'en', 'Deleted';
COMMIT TRAN ASDK_SLA_EN;
GO

BEGIN TRAN  ASDK_SERVICE_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '90FF2754-8191-4BCC-A9A4-52D3379DACCB', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BB664401-4313-49E3-93E8-03838F3CB445', 'en', 'Opened date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '21DA97E5-0DBE-41FA-BC71-3391BE002E49', 'en', 'Closed date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5350C47C-40C7-46BB-A2AA-1CC12E5C06DE', 'en', 'Modified date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D079F990-073B-40B9-8131-9AF0D4C19C46', 'en', 'Deleted';
COMMIT TRAN ASDK_SERVICE_EN;
GO

BEGIN TRAN ASDK_REGISTRY_TYPE_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CBFA3075-F58E-4524-8E95-4B2CEADAB5DF', 'en', 'Name';
COMMIT TRAN ASDK_REGISTRY_TYPE_EN;
GO

BEGIN TRAN  ASDK_PRIORITY_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '39CCEADA-C654-43B7-BCF3-E0A726B6F659', 'en', 'Name';
COMMIT TRAN ASDK_PRIORITY_EN;
GO

BEGIN TRAN ASDK_OLA_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4F4F5C20-A66B-408E-B3AB-8DE7A6A082D2', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5FD52C06-3077-4F09-97E8-332345FA88AA', 'en', 'Start date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '86D5E129-496F-4CD2-BC6A-E65720F78408', 'en', 'End date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0BB1EA35-2531-47F2-AD53-5F5F55270DE9', 'en', 'Date review';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '62AE0B39-6207-41A4-8E05-F108678F4755', 'en', 'Created date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B14A5006-E43D-4DBF-BC35-03268851C72C', 'en', 'Closed date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C4A75AA4-1244-4FCC-AFC4-3AF7F2A122FA', 'en', 'Modified date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9BE342EF-3AE3-4612-85E4-F492B1B4BD1A', 'en', 'Deleted';
COMMIT TRAN ASDK_OLA_EN;
GO

BEGIN TRAN ASDK_MODEL_COST_PRICE_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '655FF707-9837-4134-ADD4-5C37DA3A7012', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AA0B21C4-2522-4F66-9E68-D1A04BF98242', 'en', 'Description';
COMMIT TRAN ASDK_MODEL_COST_PRICE_EN;
GO

BEGIN TRAN ASDK_IMPACT_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AFEA1DBF-76A3-460F-A107-8E6953E42DF1', 'en', 'Name';
COMMIT TRAN ASDK_IMPACT_EN;
GO

BEGIN TRAN ASDK_CATEGORY_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '48EF94B1-F034-40B9-AA59-ED408A5E30B0', 'en', 'Name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E612F8AF-9A35-4D9D-89F8-E117151CA2B7', 'en', 'Hierarchy';
COMMIT TRAN ASDK_CATEGORY_EN;
GO

BEGIN TRAN DIM_DATE_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BBCFF598-49D3-4204-B065-10EFB65CF5FB', 'en', 'Date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C949A6CA-64B9-4AB4-B4BC-4F6DEF0A0D49', 'en', 'Year';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4608D8E7-7143-453F-88C9-E23FA8AA5430', 'en', 'Semester';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6A1590BA-0D08-40C2-95E0-8E7C7C8D9E08', 'en', 'Quarter';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6573E54A-E119-4088-94D3-4323CE681A22', 'en', 'Month';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DB1B1E95-CA0C-49FF-A2E8-725740B08D38', 'en', 'Week';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BB775585-368F-42D0-BE8F-120B175ADD4A', 'en', 'Month (ES)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7315DF45-B221-4C0D-97FA-781380CD6E36', 'en', 'Month (EN)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C33B06B0-9848-4DE4-8EC4-DB01DC846635', 'en', 'Month (PT)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7A414024-C630-40C8-94EF-84FB10742A0F', 'en', 'Month day';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '850441CE-C92F-469E-AAEF-98AD456DA0CB', 'en', 'Week day';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1F6BD334-1763-4A55-9B93-7DDE1F2C0057', 'en', 'Day (ES)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A4E238C1-78C5-4789-8C86-EB4C742BD08F', 'en', 'Day (EN)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E2675026-5C01-4091-A1C3-DA05F73D4AFA', 'en', 'Day (PT)';
COMMIT TRAN DIM_DATE_EN;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2CF29EFF-0B36-4D18-AA66-61BC422EBF67', 'en', 'Case identifier';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BF64FB99-86A9-4447-890D-6890474EA8FB', 'en', 'Project identifier';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6687F7A7-3560-4CA6-81E9-DA13CB899512', 'en', 'Modified date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FCB279AE-A8F9-4395-B51C-8D538B7BC357', 'en', 'Estimated date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '112C0E6F-8E39-4C59-B918-DA08DAFC7F5B', 'en', 'Current progress';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AC32F371-04D8-4754-8DEF-7B55D1252A71', 'en', 'Current accumulated time in minutes';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DC097C03-644A-4BF4-82A8-7E404AC4D47C', 'en', 'Current accumulated time in HH:MM:SS format';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2C42B855-5FC4-4662-A13F-7ECEA8BD3A08', 'en', 'Price';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C54DC785-2665-4FA2-BACD-84AD4605D620', 'en', 'Cost';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4EBE2FA9-9523-405B-BE6F-3DE2755C7D5A', 'en', 'Effort';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B8C52259-FB18-4B17-B484-61C539DD96B7', 'en', 'Available cost';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '403E97A3-B8AC-45BA-872F-8A32EEE1653A', 'en', 'Available effort';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '66B76855-1A1E-419F-8679-F1B84355726B', 'en', 'Available price';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7AE35709-94D1-48D5-9395-7DEBEB2E5E3A', 'en', 'Available count';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '122DDE4F-BF87-4C95-8B09-DA6EED600354', 'en', 'Time in minutes';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B32894EF-091E-467E-82A3-31B6F4DECAF5', 'en', 'Time in HH:MM:SS format';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '13BFB20C-82AA-480C-9E0B-45DE768D940A', 'en', 'Created date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '41726291-E0CD-40E9-B179-DB9E2A670228', 'en', 'Opened date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '52922C7A-AFF6-428E-80E5-C23C7586E793', 'en', 'Closed date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4B666823-559C-451E-88DE-A75B93366980', 'en', 'Default time real date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BE67A3E0-27B7-4A0F-8CFE-02998270A18C', 'en', 'Estimated time';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E1B7592C-7ADE-461B-997B-A73481BAEDC7', 'en', 'Solution date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EF9F308C-53ED-4B03-8397-440CC84AE05E', 'en', 'Solution time';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5CA1F9E4-36A3-4E68-94BF-3013A666CEA4', 'en', 'Review';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C63BD20C-34AF-481E-BB67-30E7CFC8DE71', 'en', 'Notes';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D605AB1F-2A32-416D-B8CB-6D7E5CC2D1AB', 'en', 'Private notes';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8F478B6B-6AEF-4981-BE65-3512E9AEF7F5', 'en', 'Public notes';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E1ABDAD7-BE62-4D6C-823B-D8DD54056414', 'en', 'Attention date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D2AE0847-71F7-4C77-ACB9-69DD7736713F', 'en', 'Attention time';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A447A55A-5400-4277-9235-EEF8C4CA44C1', 'en', 'Wait time';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '997FCC2A-7A09-42C9-8D05-56C8FAFFE0F3', 'en', 'Specialist wait time';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '77B51663-B6F7-4BEC-99DC-0B2B06F84446', 'en', 'First assignment time';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '22442DC1-2605-4287-9649-454C4B2A662D', 'en', 'First reply time';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8F15E3A9-E95C-4FDC-8021-DCDC1F7AD8E8', 'en', 'First reply date';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '42F93CAB-76C1-4DFE-86A3-8A19EE991468', 'en', 'Time from first assignment to solution';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D39B8C32-8D25-4F3A-9ED0-B36C38C218BC', 'en', 'Time from last assignment to solution';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '647EE729-780E-4B3F-9C93-B1B060BF7318', 'en', 'Case';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A1880945-3B5A-44FD-A4C6-61D0081502C2', 'en', 'Change';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8A0CBD51-CF2F-4367-A529-A1ABBEAB74E1', 'en', 'Incident';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5ADC3BE2-5455-45C9-A30E-BA06C09A52CE', 'en', 'Problem';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A0DD1E05-4604-4364-BF2E-13CD5DC7324C', 'en', 'Release';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F5E73561-FDFC-4E05-B08B-F59229F5EDE4', 'en', 'Requirement';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4394D421-D3B7-41E1-8FC1-6F4ADFB26DB8', 'en', 'New case';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '77B15AEA-5F5A-4D45-BA07-638738BFDEBE', 'en', 'New change';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '297A9BC0-A549-40D9-B0BF-24A24CF65FC5', 'en', 'New incident';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9F80FB0C-CEF4-4CBA-BBD6-D253D8F7F16F', 'en', 'New problem';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '12923717-15E5-44F7-9C64-EC3376EDF06A', 'en', 'New requirement';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5276C00D-DC7A-41F9-AD44-901210A3319A', 'en', 'Case on hold';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '96554162-9FD5-4E7E-A814-C4EF1BEA0E5F', 'en', 'Pending case';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A03283EB-1665-4895-B4B5-A1F8FD1CDCA0', 'en', 'Unassigned pending case';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '55B2A333-3BA5-4BC4-A35D-1EDD3B2D6939', 'en', 'Unanswered case';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3D7EC245-8B24-45C3-8529-3DCA7F344D9D', 'en', 'Solved case';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FBAA636C-93CB-441D-A2D8-C62E6B47288C', 'en', 'Case solved current week';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2866F2E1-9527-4872-926C-FCBE0E74EE92', 'en', 'Case solved current month';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '31BE421C-A890-4BFD-93E3-4205038785EB', 'en', 'Case solved current month last year';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6105DD1E-EC97-4BF7-8319-18C0395CCAC3', 'en', 'Case solved current quarter';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B0B799B9-74B4-4747-B95A-62623BEE4970', 'en', 'Case solved current quarter last year';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F34199F6-A154-4308-9F2B-C46BFF7546CD', 'en', 'Case solved current year';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6BAF4AB4-7F70-4A04-A025-9548DADAE8BC', 'en', 'Case solved last year';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2156DF02-FA08-49A6-8898-E901CEE6656D', 'en', 'Case solved without interventions';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1034DDB9-E44E-4938-92A4-E6206D7B39DF', 'en', 'Case solved with one intervention';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION '248789D8-EAD8-49F0-970A-C5812B9FB573', 'en', 'Case solved with more than one intervention';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D224E391-F8C3-4685-B469-559B755A649C', 'en', 'Case solved within SLA';
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B6CF29A5-284A-4856-91D1-37815BD84ADF', 'en', 'Case solved outside SLA';
COMMIT TRAN V_FACT_ASDK_ITEM_EN;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '48AB4BF6-0BF9-454D-A7D5-A6BAFDF9C067', 'en', 'Case identifier';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4A63B974-C9EF-4907-B059-7CBAF099DECF', 'en', 'Project identifier';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '08164FC2-11CE-41D3-8383-C23F113C1B20', 'en', 'Modified date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '40F7372C-7FCD-4FED-925F-5602D7E54014', 'en', 'Review';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2BB41033-0407-4711-9EB7-56613926C4E3', 'en', 'Estimated date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8D861CFC-1E8A-4476-8E57-58C79C00D255', 'en', 'Current progress';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C97F385A-B6B9-404C-B1E2-D4B6FDBDD801', 'en', 'Current time';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1C366E18-3F70-4B8D-9BAE-752E18481F6B', 'en', 'Current time in HH:MM:SS format';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '63E70D7C-B97B-4093-87C3-9E90AF4B573B', 'en', 'Current cost';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DC28CBF1-2907-4FC8-B8F6-E129474FA234', 'en', 'Current effort';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E62A1D95-16CE-4F44-A9F9-ACF0227C7409', 'en', 'Current price';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '24DC3979-D839-45D1-96E0-622AA97C3C60', 'en', 'Time in minutes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '01389FE5-09B6-4062-91E5-CE499B24F3C2', 'en', 'Time in minutes in HH:MM:SS format';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3D6D49FD-783B-4B09-BE02-A9A4CF85C46C', 'en', 'Notes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0AD50FB2-B8DF-412F-9868-E28A7342273F', 'en', 'Private notes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '77F7CD95-657C-4772-B259-E5ACD125A47C', 'en', 'Public notes';

	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F64815F5-29F7-4D98-B602-515D238CBB1C', 'en', 'Reassignment to assigned agent';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '94884BF2-3DE4-4F0F-8349-A12706180D44', 'en', 'Group reassignment';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8B628BBC-E89D-4502-870E-6D83A402B561', 'en', 'Update';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B8A559FA-646F-4AC8-BEC4-A2D609214307', 'en', 'Update by specialist';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A728A3A7-15DF-40A2-AD7F-9C54635EED2D', 'en', 'Update by end user';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'ADBF650F-C3DA-43E5-B07B-73E3C5D20275', 'en', 'Comments';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4EF9F454-3D2C-4BC7-9942-1AE942B0B349', 'en', 'Public comments';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '39CE4DF8-4A24-4482-B4A3-AF8AC3FDB36B', 'en', 'Private comments';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FC9FF8EF-66AE-479B-9C81-630C9F60D769', 'en', 'Field change time (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '23251E8E-2F07-45A4-AC5F-A3D1ABD7832A', 'en', 'Time in new state (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EC2787E6-394F-495D-B8E2-B6874BAE400A', 'en', 'Time in progress (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '97A696FA-ACA4-42EB-A90E-482AFCE553DE', 'en', 'Time in paused state (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5CE8A49B-743E-4DF2-855B-D93CD3F019E6', 'en', 'Time in scheduled state (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '559C6437-FAB5-44B0-A2AC-3F436D1BF64E', 'en', 'Field change time (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4339016C-931C-40B7-B03F-DF0F23C228E1', 'en', 'Time in new state (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '646CA33C-5C92-40CE-87FD-1EC8A289A58F', 'en', 'Time in progress (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '932DD340-F970-46FC-B253-66B4DA930A04', 'en', 'Time in paused state (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '92E540AE-5BE8-48F3-8641-3CD47F1AED79', 'en', 'Time in scheduled state (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F4214A3D-406C-47B9-BC87-038DCA2398B7', 'en', 'Field change time (days)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0C0EE6B0-D4CE-4E65-BD99-B071A5AD757C', 'en', 'Time in new state (days)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5FB5F25E-B541-48CC-9827-139DFD5C16E0', 'en', 'Time in progress (days)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B0749DB4-138A-49DD-B043-23E6614FCF94', 'en', 'Time in paused state (days)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '91DED5D2-B744-47FD-8AF1-F0DBB9593D0D', 'en', 'Time in scheduled state (days)';
COMMIT TRAN V_FACT_ASDK_ITEM_REVISION_EN;
GO

BEGIN TRAN V_FACT_ASDK_TASK_REVISION_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2DF9ECAA-4D10-4882-90EA-C617D0ABB61D', 'en', 'Case identifier';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CAA555E1-7DF0-43FB-86AD-8054F7FE668B', 'en', 'Project identifier';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '783599ED-2398-4D1B-AAEF-CB036C6F668E', 'en', 'Modified date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F95D7CB6-46C3-4A6B-A588-B11A3704AD50', 'en', 'Review';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EDF69100-FAB1-4D74-A939-8E8781FC2025', 'en', 'Estimated date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E545FC8D-ACAB-433D-8141-5F812C9D85D4', 'en', 'Current progress';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6C0C63B2-05C4-45B7-9560-94C6E1F5C55A', 'en', 'Current task duration in minutes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3737E643-AE8D-4D14-B758-F1CC79AFCB1F', 'en', 'Current task duration in HH:MM:SS format';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2F5FCC02-2C35-42CD-BCBC-23FB92917E9B', 'en', 'Current cost';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '466DCD0F-378D-4E63-AA3A-C9AFE73EA408', 'en', 'Current effort';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4BED49C0-5438-4D20-829D-2D6A84914F0E', 'en', 'Current price';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '27899F65-497B-4B42-8E30-6124730455A6', 'en', 'Duration in minutes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '19CCF09E-ABB3-45B7-B259-E6C944629A1C', 'en', 'Duration in HH:MM:SS format';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1400D5B3-ACB2-4770-A07E-4229325C22F6', 'en', 'Notes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1E816461-8BCF-4A2C-BF1A-FC617A4F8B46', 'en', 'Private notes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E3023C67-F8FE-4929-9D02-28C882ECF61E', 'en', 'Public notes';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '58EF92C4-DB35-4A1F-9869-43CF55B2304B', 'en', 'Task subtype';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5ABAE06C-05CC-4A3D-BDCE-495D45A25571', 'en', 'Specialist reassigned';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '889B9CAA-C1CB-4FE9-82A2-3A57AF4238E8', 'en', 'Specialist group reassigned';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E2489960-3AF6-4C74-9B72-07FA41AE1FA4', 'en', 'Task';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '03AFBE28-19DD-4C94-AC0C-8F1D7593A252', 'en', 'Task created current week';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '52AB3F5B-3D64-4327-9B52-7FFDA0D0D55C', 'en', 'Task created current month';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B4AA6A9A-2F43-44A0-95DD-3011F005BC57', 'en', 'Task created current month last year';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E636B662-D4D5-4335-8459-B615A8198798', 'en', 'Task created current quarter';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '65FFA936-ED55-4096-B440-8AB039726B77', 'en', 'Task created current quarter last year';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '99ADCE71-46FB-49EB-A02B-5B0511521CF5', 'en', 'Task created current year';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DD7B5840-6A0F-4AAF-AB42-361A395412D2', 'en', 'Task created last year';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1A624600-6DDF-4423-9B89-A480687DFA8B', 'en', 'Task opened';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3FFD1A9D-B31A-4828-A1B9-CEF89CEAA3FC', 'en', 'Task closed';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '159757A2-7D70-4748-9BB8-7BDDF540911D', 'en', 'Task closed current week';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '44CCA474-058B-4371-8FE5-77168BF97E00', 'en', 'Task closed current month';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '51C6CCA0-3BC3-444D-BDC1-A3CDD9A2CF48', 'en', 'Task closed current month last year';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B8C61AA7-446B-4E8A-8A6E-40C40C21FC6E', 'en', 'Task closed current quarter';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CD109880-971B-48AF-A647-A726B3128282', 'en', 'Task closed current quarter last year';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AEB1F2D4-FBF0-43C2-87DA-8305532AB747', 'en', 'Task closed current year';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3C808E68-A9C8-465B-8081-C1C7830D47B6', 'en', 'Task closed last year';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7DA5E0D0-79D0-4AB2-B81A-84E5A93EBB23', 'en', 'Task closed within estimated date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2320EECE-2D12-4AB8-B3C3-02CEFC0BB6C6', 'en', 'Task closed outside estimated date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '981E2DF7-E2CC-476D-B26A-8E699941FBB2', 'en', 'Task with parent case type change';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5EC73A7E-F1B0-4BCC-9283-E87E2A989E4A', 'en', 'Task with parent case type incident';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CFC10F88-B546-49FE-AC83-71087DFB30D7', 'en', 'Task with parent case type problem';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6F3FEC1A-C6F5-42DF-98DA-0F61FA9E9C43', 'en', 'Task with parent case type release';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4E237F11-164C-4085-A0EE-72B40F1B68FB', 'en', 'Task with parent case type requirement';
COMMIT TRAN V_FACT_ASDK_TASK_REVISION_EN;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_SENT_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6717BF87-CA96-4937-8F23-AEF278E9E414', 'en', 'Case';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9381F150-2801-45A6-80C0-3F6D5132A769', 'en', 'Invitation date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '35FC5398-6FC6-421F-AC68-52F5E8D4C7AC', 'en', 'Survey sent';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '40534556-630C-42EB-BA25-823921923EED', 'en', 'Survey sent by email';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_SENT_EN;
GO

BEGIN TRAN AFW_SURVEY_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DFD3B1F6-5EBD-42F5-BC9F-23A27179A8B2', 'en', 'Survey name';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '10A38DBC-E844-403D-8F0B-6A50F1161866', 'en', 'Start date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '24AD0FF3-5701-4B2D-AE76-FF0FFEFE6D6B', 'en', 'End date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '16E1A950-2158-4DB7-B17D-96509718376B', 'en', 'Publication status';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '039F2088-1A48-4AFC-A4E1-79E59F4ED1FB', 'en', 'Creation date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FAA141E7-D148-4486-8235-E2F0169B5883', 'en', 'Update date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D075E21B-33E9-47E2-88EA-A25F3DEB50E3', 'en', 'Template deleted';
COMMIT TRAN AFW_SURVEY_EN;
GO

BEGIN TRAN AFW_SURVEY_QUESTION_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '31DD6D75-387A-459E-B9EF-ADB5362F89A5', 'en', 'Question content';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '42B717A1-3C76-4002-ACB4-BD4DE5FEF098', 'en', 'Required question';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0B79CD90-AF59-4AC8-B734-1B5DF7AACEDF', 'en', 'Maximum score';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5A8B6C10-6FEB-483C-8464-1689E78588D3', 'en', 'Creation date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E4903C4D-5239-4138-9F2F-D898A7F9DD91', 'en', 'Update date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '73AB35A7-6FC6-4879-8D07-407690A66942', 'en', 'Removed question';
COMMIT TRAN AFW_SURVEY_QUESTION_EN;
GO

BEGIN TRAN AFW_SURVEY_QUESTION_TYPE_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '84DF1C6D-0401-4333-9316-4E4873FAE074', 'en', 'Type of question';
COMMIT TRAN AFW_SURVEY_QUESTION_TYPE_EN;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_EN;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BF43085A-C910-480C-AE85-1048BAEDD52E', 'en', 'Case';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8B88FBE6-DEA7-4388-8AE5-B33BD1059CED', 'en', 'Response date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8765BDCD-8822-4801-8DD5-0C86158DD737', 'en', 'Invitation date';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2F6FAFA0-1F60-4BCF-9D72-EEF1B54E40A1', 'en', 'Survey sent';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7DCF4B47-EACC-462E-873A-F9760B8789AD', 'en', 'Survey sent by email';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EE869B2F-8B6D-438A-94E4-67318ED582BE', 'en', 'Survey answered';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0511022E-84B4-4A08-8397-3FA363251BE2', 'en', 'Survey not answered';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'ED208E20-B626-448C-96A4-9EB84EA002A3', 'en', 'Rating';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1B4DBFA2-BDF0-40EA-8956-CC356F019A08', 'en', 'Highest rating';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '782A754F-D0BE-4E42-ACB3-6D0BB623361D', 'en', 'Lowest rating';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '113AF4B2-ADA8-453F-9023-5C15ADD047DD', 'en', 'Incidents with answered survey';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9354104A-3FB3-4783-A5C3-878DA618D096', 'en', 'Changes with answered survey';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4FB36732-6A1D-4037-AB3B-815141FD67A5', 'en', 'Requests with answered survey';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_EN;
GO

----------------------------------------------------------------------------PT------------------------------------------------------------------------------

BEGIN TRAN CMDB_CI_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '15B1F96E-E74A-4761-A7E9-5CBAE74921DE', 'pt', 'Código de barras';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F977B8D5-7569-4E2B-87C6-45AFD262B8D4', 'pt', 'RFID';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4BAFE14F-4116-41BA-961F-C3D6F7FB9BD7', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '27269F08-BF45-485D-8A5D-6CA3F0D7CB64', 'pt', 'Número de série';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FB2DF8F0-B3D7-4594-BE9C-8490E92ECE54', 'pt', 'Etiqueta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FC73004A-1AEF-4420-A39C-EF873D1904A0', 'pt', 'Preço';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '58F45D56-19FE-4D4E-829E-6A25A5DD2E83', 'pt', 'Data de instalação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9866272F-C376-48D8-9358-84275EF78292', 'pt', 'Data de início da responsabilidade';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C0364057-E434-4A5E-BBEF-F3AC0DCF612B', 'pt', 'Data de entrada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8475BCAE-D6E1-46E2-8EF6-0C36FBCDF520', 'pt', 'Data de aceitação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1EB4851B-8B99-4771-9FAA-902FA4E23585', 'pt', 'Valor residual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6D67D538-6F5B-49CD-B9C3-CB340FF8C974', 'pt', 'Data de saída';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2FB68212-EAC6-4A8B-B607-3F60803AAEE1', 'pt', 'Data de criação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F3BC6573-A93D-4A25-B7B9-1064C1A096FE', 'pt', 'Data de modificação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7E6D18F1-DE60-4171-B8BE-5772183ED914', 'pt', 'Versão';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3935F646-B27B-4EF0-96FA-8ED5FDDC8E56', 'pt', 'Data de encerramento';
COMMIT TRAN CMDB_CI_PT;
GO

BEGIN TRAN ASMS_TYPES_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6626BA5D-5F6E-41D8-AE7A-A04CEA775222', 'pt', 'Nome';
COMMIT TRAN ASMS_TYPES_PT;
GO

BEGIN TRAN ASMS_STATUS_REASON_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FA64FE54-E643-415A-8F1D-F5A86DB012D7', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0C49151D-6ECA-4ECC-A2BA-F6D94F51FB8E', 'pt', 'Excluído';
COMMIT TRAN ASMS_STATUS_REASON_PT;
GO

BEGIN TRAN V_ASDK_STATUS_BEHAVIOR_ES;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '06286622-A383-4095-9F84-1F827D8D97E2', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '43BA88D6-8F3E-4CB0-92D4-4026A89513E2', 'pt', 'Comportamento';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BE866971-40F4-4005-81F6-CC61686B8429', 'pt', 'Estágio';
COMMIT TRAN V_ASDK_STATUS_BEHAVIOR_ES;
GO

BEGIN TRAN AFW_USERS_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BAC96493-8728-4B2E-B5DE-7679CB1D23A5', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '37CE48A9-BAA8-48E7-82D3-D0EA972D94E0', 'pt', 'Apelido';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2FC9BC83-ECF4-41E9-84E0-BDD18443234E', 'pt', 'Correio eletrônico';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1B823990-DCB2-4691-AD9F-0BD35D64010E', 'pt', 'Data da última atualização';
COMMIT TRAN AFW_USERS_PT;
GO

BEGIN TRAN ASMS_COMPANY_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '85E5F982-8507-414C-B564-E820A315768F', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C861D752-447D-40D9-85F6-EF743491CA6A', 'pt', 'Correio eletrônico';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0278447E-CA94-4149-8B78-34BDFE4C6566', 'pt', 'Nit';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C434D7BA-5B51-4F53-892F-61A8FFDBC569', 'pt', 'Data de criação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '93770C59-E42D-4805-8F44-C8C3A84FF633', 'pt', 'Data de modificação';
COMMIT TRAN ASMS_COMPANY_PT;
GO

BEGIN TRAN ASMS_PROJECTS_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '53FEC50C-B133-4C91-872A-08FD74A94CC4', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6755DC2F-D6B9-4B73-AB14-87FBD0290857', 'pt', 'Status';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A8BB2293-C0CE-4805-9BE5-1EB15E3512BE', 'pt', 'Excluído';
COMMIT TRAN ASMS_PROJECTS_PT;
GO

BEGIN TRAN ASMS_COST_CENTER_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '327B284F-3F19-4FD2-B955-795CF8E15C22', 'pt', 'Código';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '42926BD4-42E3-49C6-A647-36DCF6690F01', 'pt', 'Nome';
COMMIT TRAN ASMS_COST_CENTER_PT;
GO

BEGIN TRAN AFW_GROUPS_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '480F71F6-08D1-448C-9FE8-1406495BCB19', 'pt', 'Nome';
COMMIT TRAN AFW_GROUPS_PT;
GO

BEGIN TRAN ASMS_MODEL_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B0EB9F51-65E0-4C68-B975-1C7B9736AAC8', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DD15BA24-FBF0-4A72-AF78-64D424A9FD54', 'pt', 'Ativo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8ADE5227-2569-4C93-AE26-CEC162D118AA', 'pt', 'Padrão';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '50313276-3092-4F2E-B46F-9664EDCD93FA', 'pt', 'Excluído';
COMMIT TRAN ASMS_MODEL_PT;
GO

BEGIN TRAN ASMS_LOCATION_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '84E92168-66B1-4A15-8802-BE8B7B7D9C56', 'pt', 'Nome';
COMMIT TRAN ASMS_LOCATION_PT;
GO

BEGIN TRAN ASMS_CONTRACT_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '761BC549-CC7A-45C9-BE70-15AC10F74F2F', 'pt', 'Número';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3386A9E5-1966-4117-A043-8E5363A1C39B', 'pt', 'Data de início';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F3CB6927-4998-40CC-ADFE-524C442EE157', 'pt', 'Data de término';
COMMIT TRAN ASMS_CONTRACT_PT;
GO

BEGIN TRAN ASMS_INTEGRATIONS_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5B55E948-D081-478A-8B2A-ED33771FF5AF', 'pt', 'Nome';
COMMIT TRAN ASMS_INTEGRATIONS_PT;
GO

BEGIN TRAN ASDK_URGENCY_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '992932E0-C727-4A86-92EF-45E70B331CB4', 'pt', 'Nome';
COMMIT TRAN ASDK_URGENCY_PT;
GO

BEGIN TRAN ASDK_UC_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D6E458BC-DAD1-4459-999A-222898E3B24D', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '51511AE4-A396-4E4A-9259-D63553F462F0', 'pt', 'Data de início';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FFAB6351-1229-459F-9BC3-B93BCB2E92F9', 'pt', 'Data de término';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '71DDF2D5-7F75-4C69-8FE4-73300CE1C129', 'pt', 'Data de revisão';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '25C7801A-1AFC-4D4E-A830-9DCE580958BF', 'pt', 'Data de criação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '49737994-D6EC-404B-8B46-35CD41203A12', 'pt', 'Data de encerramento';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C4F2AC8A-2608-4286-B741-6E79F7F83F32', 'pt', 'Data de modificação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '686627D0-E821-476C-B7CD-51778956852B', 'pt', 'Excluído';
COMMIT TRAN ASDK_UC_PT;
GO

BEGIN TRAN ASDK_SLA_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4AF481A7-CBB1-4EF3-A657-ECF028191FDA', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E6FEC33E-DD2E-4557-BF8E-7C910BB72F7E', 'pt', 'Data de início';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E86D9B52-730F-417C-8194-B50935F6BB82', 'pt', 'Data de término';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FFEC96E0-4974-4091-B0A4-69E1E389A1C8', 'pt', 'Data de revisão';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3CE7CB3E-B8FD-4E99-A30B-58A69C9AE060', 'pt', 'Data de criação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '72C7543A-8A5F-42D9-BD2A-CB3749ADE976', 'pt', 'Data de encerramento';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '519A457E-4956-48C5-80D6-B48F4E00910A', 'pt', 'Data de modificação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '72859D86-E087-4660-9862-4CB2C3F0D9C3', 'pt', 'Excluído';
COMMIT TRAN ASDK_SLA_PT;
GO

BEGIN TRAN  ASDK_SERVICE_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '90FF2754-8191-4BCC-A9A4-52D3379DACCB', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BB664401-4313-49E3-93E8-03838F3CB445', 'pt', 'Data de abertura';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '21DA97E5-0DBE-41FA-BC71-3391BE002E49', 'pt', 'Data de encerramento';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5350C47C-40C7-46BB-A2AA-1CC12E5C06DE', 'pt', 'Data de modificação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D079F990-073B-40B9-8131-9AF0D4C19C46', 'pt', 'Excluído';
COMMIT TRAN ASDK_SERVICE_PT;
GO

BEGIN TRAN ASDK_REGISTRY_TYPE_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CBFA3075-F58E-4524-8E95-4B2CEADAB5DF', 'pt', 'Nome';
COMMIT TRAN ASDK_REGISTRY_TYPE_PT;
GO

BEGIN TRAN  ASDK_PRIORITY_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '39CCEADA-C654-43B7-BCF3-E0A726B6F659', 'pt', 'Nome';
COMMIT TRAN ASDK_PRIORITY_PT;
GO

BEGIN TRAN ASDK_OLA_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4F4F5C20-A66B-408E-B3AB-8DE7A6A082D2', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5FD52C06-3077-4F09-97E8-332345FA88AA', 'pt', 'Data de início';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '86D5E129-496F-4CD2-BC6A-E65720F78408', 'pt', 'Data de término';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0BB1EA35-2531-47F2-AD53-5F5F55270DE9', 'pt', 'Data de revisão';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '62AE0B39-6207-41A4-8E05-F108678F4755', 'pt', 'Data de criação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B14A5006-E43D-4DBF-BC35-03268851C72C', 'pt', 'Data de encerramento';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C4A75AA4-1244-4FCC-AFC4-3AF7F2A122FA', 'pt', 'Data de modificação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9BE342EF-3AE3-4612-85E4-F492B1B4BD1A', 'pt', 'Excluído';
COMMIT TRAN ASDK_OLA_PT;
GO

BEGIN TRAN ASDK_MODEL_COST_PRICE_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '655FF707-9837-4134-ADD4-5C37DA3A7012', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AA0B21C4-2522-4F66-9E68-D1A04BF98242', 'pt', 'Descrição';
COMMIT TRAN ASDK_MODEL_COST_PRICE_PT;
GO

BEGIN TRAN ASDK_IMPACT_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AFEA1DBF-76A3-460F-A107-8E6953E42DF1', 'pt', 'Nome';
COMMIT TRAN ASDK_IMPACT_PT;
GO

BEGIN TRAN ASDK_CATEGORY_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '48EF94B1-F034-40B9-AA59-ED408A5E30B0', 'pt', 'Nome';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E612F8AF-9A35-4D9D-89F8-E117151CA2B7', 'pt', 'Hierarquia';
COMMIT TRAN ASDK_CATEGORY_PT;
GO

BEGIN TRAN DIM_DATE_PT;
    EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BBCFF598-49D3-4204-B065-10EFB65CF5FB', 'pt', 'Data';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C949A6CA-64B9-4AB4-B4BC-4F6DEF0A0D49', 'pt', 'Ano';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4608D8E7-7143-453F-88C9-E23FA8AA5430', 'pt', 'Semestre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6A1590BA-0D08-40C2-95E0-8E7C7C8D9E08', 'pt', 'Trimestre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6573E54A-E119-4088-94D3-4323CE681A22', 'pt', 'Mês';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DB1B1E95-CA0C-49FF-A2E8-725740B08D38', 'pt', 'Semana';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BB775585-368F-42D0-BE8F-120B175ADD4A', 'pt', 'Mês (ES)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7315DF45-B221-4C0D-97FA-781380CD6E36', 'pt', 'Mês (EN)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C33B06B0-9848-4DE4-8EC4-DB01DC846635', 'pt', 'Mês (PT)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7A414024-C630-40C8-94EF-84FB10742A0F', 'pt', 'Dia do mês';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '850441CE-C92F-469E-AAEF-98AD456DA0CB', 'pt', 'Dia da semana';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1F6BD334-1763-4A55-9B93-7DDE1F2C0057', 'pt', 'Dia (ES)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A4E238C1-78C5-4789-8C86-EB4C742BD08F', 'pt', 'Dia (EN)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E2675026-5C01-4091-A1C3-DA05F73D4AFA', 'pt', 'Dia (PT)';
COMMIT TRAN DIM_DATE_PT;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2CF29EFF-0B36-4D18-AA66-61BC422EBF67', 'pt', 'Identificador do caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BF64FB99-86A9-4447-890D-6890474EA8FB', 'pt', 'Identificador do projeto';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6687F7A7-3560-4CA6-81E9-DA13CB899512', 'pt', 'Data de modificação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FCB279AE-A8F9-4395-B51C-8D538B7BC357', 'pt', 'Data estimada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '112C0E6F-8E39-4C59-B918-DA08DAFC7F5B', 'pt', 'Progresso atual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AC32F371-04D8-4754-8DEF-7B55D1252A71', 'pt', 'Tempo acumulado atual em minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DC097C03-644A-4BF4-82A8-7E404AC4D47C', 'pt', 'Tempo acumulado atual no formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2C42B855-5FC4-4662-A13F-7ECEA8BD3A08', 'pt', 'Preço';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C54DC785-2665-4FA2-BACD-84AD4605D620', 'pt', 'Custo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4EBE2FA9-9523-405B-BE6F-3DE2755C7D5A', 'pt', 'Esforço';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B8C52259-FB18-4B17-B484-61C539DD96B7', 'pt', 'Custo disponível';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '403E97A3-B8AC-45BA-872F-8A32EEE1653A', 'pt', 'Esforço disponível';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '66B76855-1A1E-419F-8679-F1B84355726B', 'pt', 'Preço disponível';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7AE35709-94D1-48D5-9395-7DEBEB2E5E3A', 'pt', 'Quantidade disponível';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '122DDE4F-BF87-4C95-8B09-DA6EED600354', 'pt', 'Tempo em minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B32894EF-091E-467E-82A3-31B6F4DECAF5', 'pt', 'Tempo no formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '13BFB20C-82AA-480C-9E0B-45DE768D940A', 'pt', 'Data de criação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '41726291-E0CD-40E9-B179-DB9E2A670228', 'pt', 'Data de abertura';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '52922C7A-AFF6-428E-80E5-C23C7586E793', 'pt', 'Data de encerramento';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4B666823-559C-451E-88DE-A75B93366980', 'pt', 'Data real';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BE67A3E0-27B7-4A0F-8CFE-02998270A18C', 'pt', 'Tempo rstimado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E1B7592C-7ADE-461B-997B-A73481BAEDC7', 'pt', 'Data de resolução';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EF9F308C-53ED-4B03-8397-440CC84AE05E', 'pt', 'Hora da resolução';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5CA1F9E4-36A3-4E68-94BF-3013A666CEA4', 'pt', 'Revisão';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C63BD20C-34AF-481E-BB67-30E7CFC8DE71', 'pt', 'Notas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D605AB1F-2A32-416D-B8CB-6D7E5CC2D1AB', 'pt', 'Notas particulares';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8F478B6B-6AEF-4981-BE65-3512E9AEF7F5', 'pt', 'Notas públicas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E1ABDAD7-BE62-4D6C-823B-D8DD54056414', 'pt', 'Data da prestação do serviço';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D2AE0847-71F7-4C77-ACB9-69DD7736713F', 'pt', 'Horário do serviço';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A447A55A-5400-4277-9235-EEF8C4CA44C1', 'pt', 'Tempo de espera';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '997FCC2A-7A09-42C9-8D05-56C8FAFFE0F3', 'pt', 'Tempo de espera do especialista';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '77B51663-B6F7-4BEC-99DC-0B2B06F84446', 'pt', 'Tempo até a primeira atribuição';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '22442DC1-2605-4287-9649-454C4B2A662D', 'pt', 'Tempo até a primeira resposta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8F15E3A9-E95C-4FDC-8021-DCDC1F7AD8E8', 'pt', 'Data da primeira resposta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '42F93CAB-76C1-4DFE-86A3-8A19EE991468', 'pt', 'Tempo desde a primeira atribuição até a solução';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D39B8C32-8D25-4F3A-9ED0-B36C38C218BC', 'pt', 'Tempo desde a última atribuição até a solução';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '647EE729-780E-4B3F-9C93-B1B060BF7318', 'pt', 'Caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A1880945-3B5A-44FD-A4C6-61D0081502C2', 'pt', 'Alteração';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8A0CBD51-CF2F-4367-A529-A1ABBEAB74E1', 'pt', 'Incidente';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5ADC3BE2-5455-45C9-A30E-BA06C09A52CE', 'pt', 'Problema';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A0DD1E05-4604-4364-BF2E-13CD5DC7324C', 'pt', 'Liberação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F5E73561-FDFC-4E05-B08B-F59229F5EDE4', 'pt', 'Requisito';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4394D421-D3B7-41E1-8FC1-6F4ADFB26DB8', 'pt', 'Novo caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '77B15AEA-5F5A-4D45-BA07-638738BFDEBE', 'pt', 'Nova alteração';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '297A9BC0-A549-40D9-B0BF-24A24CF65FC5', 'pt', 'Novo incidente';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9F80FB0C-CEF4-4CBA-BBD6-D253D8F7F16F', 'pt', 'Novo problema';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '12923717-15E5-44F7-9C64-EC3376EDF06A', 'pt', 'Novo requisito';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5276C00D-DC7A-41F9-AD44-901210A3319A', 'pt', 'Caso em espera';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '96554162-9FD5-4E7E-A814-C4EF1BEA0E5F', 'pt', 'Caso pendente';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A03283EB-1665-4895-B4B5-A1F8FD1CDCA0', 'pt', 'Caso pendente sem atribuição';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '55B2A333-3BA5-4BC4-A35D-1EDD3B2D6939', 'pt', 'Caso sem resposta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3D7EC245-8B24-45C3-8529-3DCA7F344D9D', 'pt', 'Caso resolvido';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FBAA636C-93CB-441D-A2D8-C62E6B47288C', 'pt', 'Caso resolvido esta semana';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2866F2E1-9527-4872-926C-FCBE0E74EE92', 'pt', 'Caso resolvido este mês';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '31BE421C-A890-4BFD-93E3-4205038785EB', 'pt', 'Caso resolvido neste mês do ano passado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6105DD1E-EC97-4BF7-8319-18C0395CCAC3', 'pt', 'Caso resolvido neste trimestre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B0B799B9-74B4-4747-B95A-62623BEE4970', 'pt', 'Caso resolvido neste trimestre do ano passado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F34199F6-A154-4308-9F2B-C46BFF7546CD', 'pt', 'Caso resolvido este ano';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6BAF4AB4-7F70-4A04-A025-9548DADAE8BC', 'pt', 'Caso resolvido no ano passado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2156DF02-FA08-49A6-8898-E901CEE6656D', 'pt', 'Caso resolvido sem intervenções';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1034DDB9-E44E-4938-92A4-E6206D7B39DF', 'pt', 'Caso resolvido com uma intervenção';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '248789D8-EAD8-49F0-970A-C5812B9FB573', 'pt', 'Caso resolvido com mais de uma intervenção';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D224E391-F8C3-4685-B469-559B755A649C', 'pt', 'Caso resolvido dentro do SLA';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B6CF29A5-284A-4856-91D1-37815BD84ADF', 'pt', 'Caso resolvido fora do SLA';
COMMIT TRAN V_FACT_ASDK_ITEM_PT;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '48AB4BF6-0BF9-454D-A7D5-A6BAFDF9C067', 'pt', 'Identificador do caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4A63B974-C9EF-4907-B059-7CBAF099DECF', 'pt', 'Identificador do projeto';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '08164FC2-11CE-41D3-8383-C23F113C1B20', 'pt', 'Data da modificação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '40F7372C-7FCD-4FED-925F-5602D7E54014', 'pt', 'Revisão';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2BB41033-0407-4711-9EB7-56613926C4E3', 'pt', 'Data estimada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8D861CFC-1E8A-4476-8E57-58C79C00D255', 'pt', 'Progresso atual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'C97F385A-B6B9-404C-B1E2-D4B6FDBDD801', 'pt', 'Tempo acumulado atual em minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1C366E18-3F70-4B8D-9BAE-752E18481F6B', 'pt', 'Tempo acumulado atual no formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '63E70D7C-B97B-4093-87C3-9E90AF4B573B', 'pt', 'Custo atual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DC28CBF1-2907-4FC8-B8F6-E129474FA234', 'pt', 'Esforço atual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E62A1D95-16CE-4F44-A9F9-ACF0227C7409', 'pt', 'Preço atual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '24DC3979-D839-45D1-96E0-622AA97C3C60', 'pt', 'Tempo em minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '01389FE5-09B6-4062-91E5-CE499B24F3C2', 'pt', 'Tempo em minutos no formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3D6D49FD-783B-4B09-BE02-A9A4CF85C46C', 'pt', 'Notas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0AD50FB2-B8DF-412F-9868-E28A7342273F', 'pt', 'Notas privadas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '77F7CD95-657C-4772-B259-E5ACD125A47C', 'pt', 'Notas públicas';

	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F64815F5-29F7-4D98-B602-515D238CBB1C', 'pt', 'Reatribuição para agente designado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '94884BF2-3DE4-4F0F-8349-A12706180D44', 'pt', 'Reatribuição de grupo';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8B628BBC-E89D-4502-870E-6D83A402B561', 'pt', 'Atualização';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B8A559FA-646F-4AC8-BEC4-A2D609214307', 'pt', 'Atualização por especialista';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'A728A3A7-15DF-40A2-AD7F-9C54635EED2D', 'pt', 'Atualização por usuário final';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'ADBF650F-C3DA-43E5-B07B-73E3C5D20275', 'pt', 'Comentários';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4EF9F454-3D2C-4BC7-9942-1AE942B0B349', 'pt', 'Comentários públicos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '39CE4DF8-4A24-4482-B4A3-AF8AC3FDB36B', 'pt', 'Comentários privados';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FC9FF8EF-66AE-479B-9C81-630C9F60D769', 'pt', 'Tempo de alteração de campo (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '23251E8E-2F07-45A4-AC5F-A3D1ABD7832A', 'pt', 'Tempo no estado novo (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EC2787E6-394F-495D-B8E2-B6874BAE400A', 'pt', 'Tempo em progresso (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '97A696FA-ACA4-42EB-A90E-482AFCE553DE', 'pt', 'Tempo em pausa (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5CE8A49B-743E-4DF2-855B-D93CD3F019E6', 'pt', 'Tempo no estado agendado (min)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '559C6437-FAB5-44B0-A2AC-3F436D1BF64E', 'pt', 'Tempo de alteração de campo (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4339016C-931C-40B7-B03F-DF0F23C228E1', 'pt', 'Tempo no estado novo (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '646CA33C-5C92-40CE-87FD-1EC8A289A58F', 'pt', 'Tempo em progresso (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '932DD340-F970-46FC-B253-66B4DA930A04', 'pt', 'Tempo em pausa (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '92E540AE-5BE8-48F3-8641-3CD47F1AED79', 'pt', 'Tempo no estado agendado (h)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F4214A3D-406C-47B9-BC87-038DCA2398B7', 'pt', 'Tempo de alteração de campo (dias)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0C0EE6B0-D4CE-4E65-BD99-B071A5AD757C', 'pt', 'Tempo no estado novo (dias)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5FB5F25E-B541-48CC-9827-139DFD5C16E0', 'pt', 'Tempo em progresso (dias)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B0749DB4-138A-49DD-B043-23E6614FCF94', 'pt', 'Tempo em pausa (dias)';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '91DED5D2-B744-47FD-8AF1-F0DBB9593D0D', 'pt', 'Tempo no estado agendado (dias)';
COMMIT TRAN V_FACT_ASDK_ITEM_REVISION_PT;
GO

BEGIN TRAN V_FACT_ASDK_TASK_REVISION_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2DF9ECAA-4D10-4882-90EA-C617D0ABB61D', 'pt', 'Identificador do caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CAA555E1-7DF0-43FB-86AD-8054F7FE668B', 'pt', 'Identificador do projeto';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '783599ED-2398-4D1B-AAEF-CB036C6F668E', 'pt', 'Data da modificação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'F95D7CB6-46C3-4A6B-A588-B11A3704AD50', 'pt', 'Revisão';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EDF69100-FAB1-4D74-A939-8E8781FC2025', 'pt', 'Data estimada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E545FC8D-ACAB-433D-8141-5F812C9D85D4', 'pt', 'Progresso atual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6C0C63B2-05C4-45B7-9560-94C6E1F5C55A', 'pt', 'Duração atual da tarefa em minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3737E643-AE8D-4D14-B758-F1CC79AFCB1F', 'pt', 'Duração atual da tarefa no formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2F5FCC02-2C35-42CD-BCBC-23FB92917E9B', 'pt', 'Custo atual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '466DCD0F-378D-4E63-AA3A-C9AFE73EA408', 'pt', 'Esforço atual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4BED49C0-5438-4D20-829D-2D6A84914F0E', 'pt', 'Preço atual';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '27899F65-497B-4B42-8E30-6124730455A6', 'pt', 'Duração em minutos';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '19CCF09E-ABB3-45B7-B259-E6C944629A1C', 'pt', 'Duração no formato HH:MM:SS';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1400D5B3-ACB2-4770-A07E-4229325C22F6', 'pt', 'Notas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1E816461-8BCF-4A2C-BF1A-FC617A4F8B46', 'pt', 'Notas privadas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E3023C67-F8FE-4929-9D02-28C882ECF61E', 'pt', 'Notas públicas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '58EF92C4-DB35-4A1F-9869-43CF55B2304B', 'pt', 'Subtipo da tarefa';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5ABAE06C-05CC-4A3D-BDCE-495D45A25571', 'pt', 'Reatribuição de especialista';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '889B9CAA-C1CB-4FE9-82A2-3A57AF4238E8', 'pt', 'Reatribuição de grupo de especialistas';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E2489960-3AF6-4C74-9B72-07FA41AE1FA4', 'pt', 'Tarefa';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '03AFBE28-19DD-4C94-AC0C-8F1D7593A252', 'pt', 'Tarefa criada esta semana';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '52AB3F5B-3D64-4327-9B52-7FFDA0D0D55C', 'pt', 'Tarefa criada este mês';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B4AA6A9A-2F43-44A0-95DD-3011F005BC57', 'pt', 'Tarefa criada neste mês do ano passado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E636B662-D4D5-4335-8459-B615A8198798', 'pt', 'Tarefa criada neste trimestre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '65FFA936-ED55-4096-B440-8AB039726B77', 'pt', 'Tarefa criada neste trimestre do ano passado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '99ADCE71-46FB-49EB-A02B-5B0511521CF5', 'pt', 'Tarefa criada este ano';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DD7B5840-6A0F-4AAF-AB42-361A395412D2', 'pt', 'Tarefa criada no ano passado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1A624600-6DDF-4423-9B89-A480687DFA8B', 'pt', 'Tarefa aberta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3FFD1A9D-B31A-4828-A1B9-CEF89CEAA3FC', 'pt', 'Tarefa fechada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '159757A2-7D70-4748-9BB8-7BDDF540911D', 'pt', 'Tarefa fechada esta semana';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '44CCA474-058B-4371-8FE5-77168BF97E00', 'pt', 'Tarefa fechada este mês';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '51C6CCA0-3BC3-444D-BDC1-A3CDD9A2CF48', 'pt', 'Tarefa fechada este mês do ano passado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'B8C61AA7-446B-4E8A-8A6E-40C40C21FC6E', 'pt', 'Tarefa fechada este trimestre';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CD109880-971B-48AF-A647-A726B3128282', 'pt', 'Tarefa fechada este trimestre do ano passado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'AEB1F2D4-FBF0-43C2-87DA-8305532AB747', 'pt', 'Tarefa fechada este ano';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '3C808E68-A9C8-465B-8081-C1C7830D47B6', 'pt', 'Tarefa fechada no ano passado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7DA5E0D0-79D0-4AB2-B81A-84E5A93EBB23', 'pt', 'Tarefa fechada dentro do prazo estimado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2320EECE-2D12-4AB8-B3C3-02CEFC0BB6C6', 'pt', 'Tarefa fechada após o prazo estimado';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '981E2DF7-E2CC-476D-B26A-8E699941FBB2', 'pt', 'Tarefa com tipo de caso principal alteração';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5EC73A7E-F1B0-4BCC-9283-E87E2A989E4A', 'pt', 'Tarefa com tipo de caso principal incidente';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'CFC10F88-B546-49FE-AC83-71087DFB30D7', 'pt', 'Tarefa com tipo de caso principal problema';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6F3FEC1A-C6F5-42DF-98DA-0F61FA9E9C43', 'pt', 'Tarefa com tipo de caso principal liberação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4E237F11-164C-4085-A0EE-72B40F1B68FB', 'pt', 'Tarefa com tipo de caso principal requisito';
COMMIT TRAN V_FACT_ASDK_TASK_REVISION_PT;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_SENT_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '6717BF87-CA96-4937-8F23-AEF278E9E414', 'pt', 'Caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9381F150-2801-45A6-80C0-3F6D5132A769', 'pt', 'Data do convite';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '35FC5398-6FC6-421F-AC68-52F5E8D4C7AC', 'pt', 'Pesquisa enviada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '40534556-630C-42EB-BA25-823921923EED', 'pt', 'Pesquisa enviada por correio eletrônico';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_SENT_PT;
GO

BEGIN TRAN AFW_SURVEY_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'DFD3B1F6-5EBD-42F5-BC9F-23A27179A8B2', 'pt', 'Nome da pesquisa';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '10A38DBC-E844-403D-8F0B-6A50F1161866', 'pt', 'Data de início';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '24AD0FF3-5701-4B2D-AE76-FF0FFEFE6D6B', 'pt', 'Data de término';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '16E1A950-2158-4DB7-B17D-96509718376B', 'pt', 'Status da publicação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '039F2088-1A48-4AFC-A4E1-79E59F4ED1FB', 'pt', 'Data de criação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'FAA141E7-D148-4486-8235-E2F0169B5883', 'pt', 'Data de atualização';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'D075E21B-33E9-47E2-88EA-A25F3DEB50E3', 'pt', 'Modelo excluído';
COMMIT TRAN AFW_SURVEY_PT;
GO

BEGIN TRAN AFW_SURVEY_QUESTION_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '31DD6D75-387A-459E-B9EF-ADB5362F89A5', 'pt', 'Conteúdo da pergunta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '42B717A1-3C76-4002-ACB4-BD4DE5FEF098', 'pt', 'Pergunta obrigatória';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0B79CD90-AF59-4AC8-B734-1B5DF7AACEDF', 'pt', 'Pontuação máxima';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '5A8B6C10-6FEB-483C-8464-1689E78588D3', 'pt', 'Data de criação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'E4903C4D-5239-4138-9F2F-D898A7F9DD91', 'pt', 'Data de atualização';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '73AB35A7-6FC6-4879-8D07-407690A66942', 'pt', 'Pergunta removida';
COMMIT TRAN AFW_SURVEY_QUESTION_PT;
GO

BEGIN TRAN AFW_SURVEY_QUESTION_TYPE_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '84DF1C6D-0401-4333-9316-4E4873FAE074', 'pt', 'Tipo de pergunta';
COMMIT TRAN AFW_SURVEY_QUESTION_TYPE_PT;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_PT;
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'BF43085A-C910-480C-AE85-1048BAEDD52E', 'pt', 'Caso';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8B88FBE6-DEA7-4388-8AE5-B33BD1059CED', 'pt', 'Data da resposta';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '8765BDCD-8822-4801-8DD5-0C86158DD737', 'pt', 'Data do convite';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '2F6FAFA0-1F60-4BCF-9D72-EEF1B54E40A1', 'pt', 'Pesquisa enviada';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '7DCF4B47-EACC-462E-873A-F9760B8789AD', 'pt', 'Pesquisa enviada por correio eletrônico';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'EE869B2F-8B6D-438A-94E4-67318ED582BE', 'pt', 'Pesquisa respondida';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '0511022E-84B4-4A08-8397-3FA363251BE2', 'pt', 'Pesquisa não respondida';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION 'ED208E20-B626-448C-96A4-9EB84EA002A3', 'pt', 'Avaliação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '1B4DBFA2-BDF0-40EA-8956-CC356F019A08', 'pt', 'Melhor avaliação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '782A754F-D0BE-4E42-ACB3-6D0BB623361D', 'pt', 'Pior avaliação';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '113AF4B2-ADA8-453F-9023-5C15ADD047DD', 'pt', 'Problemas com a pesquisa respondida';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '9354104A-3FB3-4783-A5C3-878DA618D096', 'pt', 'Alterações na pesquisa respondida';
	EXEC MD_DMM_ATTRIBUTE_TRANSLATION '4FB36732-6A1D-4037-AB3B-815141FD67A5', 'pt', 'Solicitações na pesquisa respondida';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_PT;
GO
BEGIN TRAN DMM_AGGREGATE_TRANSLATION_ES;
	EXEC MD_DMM_AGGREGATE_TRANSLATION 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'es', 'Conteo';
	EXEC MD_DMM_AGGREGATE_TRANSLATION 'FDCEEE44-22D2-4D3D-BC05-A3BEBDC2D643', 'es', 'Conteo distinto';
	EXEC MD_DMM_AGGREGATE_TRANSLATION 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', 'es', 'Suma';
	EXEC MD_DMM_AGGREGATE_TRANSLATION '9EC0CE65-0BBD-490E-AEB7-F0233986E219', 'es', 'Máximo';
	EXEC MD_DMM_AGGREGATE_TRANSLATION '4FB5A2EB-174E-4E59-87D6-BE80C8728F4E', 'es', 'Mínimo';
	EXEC MD_DMM_AGGREGATE_TRANSLATION '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', 'es', 'Promedio';
COMMIT TRAN DMM_AGGREGATE_TRANSLATION_ES;
GO

BEGIN TRAN DMM_AGGREGATE_TRANSLATION_EN;
    EXEC MD_DMM_AGGREGATE_TRANSLATION 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'en', 'Count';
    EXEC MD_DMM_AGGREGATE_TRANSLATION 'FDCEEE44-22D2-4D3D-BC05-A3BEBDC2D643', 'en', 'Distinct count';
    EXEC MD_DMM_AGGREGATE_TRANSLATION 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', 'en', 'Sum';
    EXEC MD_DMM_AGGREGATE_TRANSLATION '9EC0CE65-0BBD-490E-AEB7-F0233986E219', 'en', 'Maximum';
    EXEC MD_DMM_AGGREGATE_TRANSLATION '4FB5A2EB-174E-4E59-87D6-BE80C8728F4E', 'en', 'Minimum';
    EXEC MD_DMM_AGGREGATE_TRANSLATION '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', 'en', 'Average';
COMMIT TRAN DMM_AGGREGATE_TRANSLATION_EN;
GO

BEGIN TRAN DMM_AGGREGATE_TRANSLATION_PT;
    EXEC MD_DMM_AGGREGATE_TRANSLATION 'BD3C2618-99B0-454F-B059-B4FF723F0620', 'pt', 'Contagem';
    EXEC MD_DMM_AGGREGATE_TRANSLATION 'FDCEEE44-22D2-4D3D-BC05-A3BEBDC2D643', 'pt', 'Contagem distinta';
    EXEC MD_DMM_AGGREGATE_TRANSLATION 'C4FACD6C-0ED5-49F5-8D02-5C076A8A210C', 'pt', 'Soma';
    EXEC MD_DMM_AGGREGATE_TRANSLATION '9EC0CE65-0BBD-490E-AEB7-F0233986E219', 'pt', 'Máximo';
    EXEC MD_DMM_AGGREGATE_TRANSLATION '4FB5A2EB-174E-4E59-87D6-BE80C8728F4E', 'pt', 'Mínimo';
    EXEC MD_DMM_AGGREGATE_TRANSLATION '6AF2897E-1FFD-4E9C-914D-8EDE646B51A7', 'pt', 'Média';
COMMIT TRAN DMM_AGGREGATE_TRANSLATION_PT;
GO
BEGIN TRAN V_FACT_ASDK_ITEM_ES;
	--COUNT
	EXEC MD_DMM_METRIC_TRANSLATION '3B172F63-6587-464D-8591-051624F194D8', 'es', 'Casos pendientes';
	EXEC MD_DMM_METRIC_TRANSLATION '82A317E8-3F50-4E2B-B830-06ECDDBCCB98', 'es', 'Casos resueltos esta semana';
	EXEC MD_DMM_METRIC_TRANSLATION 'FD986B1B-EE0A-4114-B303-1DE62BE2DCFD', 'es', 'Casos resueltos con más de una intervención';
	EXEC MD_DMM_METRIC_TRANSLATION '976DA460-437B-4B88-A062-1F593E488B4B', 'es', 'Casos sin respuesta';
	EXEC MD_DMM_METRIC_TRANSLATION '30D64DA1-3A9D-4D28-AD0B-244479DB4505', 'es', 'Incidentes nuevos';
	EXEC MD_DMM_METRIC_TRANSLATION '107655AB-4620-4AB8-B955-41BF3737B2FF', 'es', 'Casos resueltos este mes';
	EXEC MD_DMM_METRIC_TRANSLATION 'E0564E3F-F7B1-417D-85A0-420C24D6D507', 'es', 'Casos resueltos este mes año anterior';
	EXEC MD_DMM_METRIC_TRANSLATION '428B30C3-1FCE-4D7E-896E-47F33B3778A0', 'es', 'Casos';
	EXEC MD_DMM_METRIC_TRANSLATION '6C98A42F-9616-4CE2-AAE5-4E63866BCCA0', 'es', 'Cambios';
	EXEC MD_DMM_METRIC_TRANSLATION '231FAD4D-DCFC-49F3-9C48-5752F616EEA9', 'es', 'Problemas nuevos';
	EXEC MD_DMM_METRIC_TRANSLATION '5F220648-53F4-4919-B9FA-59E9F6B2B8C1', 'es', 'Liberaciones';
	EXEC MD_DMM_METRIC_TRANSLATION 'A0969EF6-EB64-43E6-AAE4-6033A98E8EF0', 'es', 'Casos resueltos';
	EXEC MD_DMM_METRIC_TRANSLATION 'EE268D6C-A4EF-468A-B877-65E61414BF4F', 'es', 'Casos resueltos este Q';
	EXEC MD_DMM_METRIC_TRANSLATION '140B6739-1410-4D34-B625-6698933DDC93', 'es', 'Casos resueltos con una intervención';
	EXEC MD_DMM_METRIC_TRANSLATION '04E8A46A-CA4A-4A99-BA41-6AE500CF52B9', 'es', 'Casos nuevos';
	EXEC MD_DMM_METRIC_TRANSLATION '6EE68A49-D9EB-4CF4-BFD0-6B3FAE0551B5', 'es', 'Problemas';
	EXEC MD_DMM_METRIC_TRANSLATION 'EBC7CAD5-C3C4-4A96-B964-6C29A2CA388F', 'es', 'Incidentes';
	EXEC MD_DMM_METRIC_TRANSLATION '11B12F55-8935-49C8-87E5-74D84AA00C89', 'es', 'Casos resueltos sin intervenciones';
	EXEC MD_DMM_METRIC_TRANSLATION 'F300EC29-ECD4-4DEE-A144-9760123C01FA', 'es', 'Casos resueltos este Q año anterior';
	EXEC MD_DMM_METRIC_TRANSLATION 'CB01EDD6-947F-4400-8AD6-A8A4B7122477', 'es', 'Casos en espera';
	EXEC MD_DMM_METRIC_TRANSLATION '48D558D0-2FA2-4116-AC41-AAF140D8F64F', 'es', 'Casos resueltos este año';
	EXEC MD_DMM_METRIC_TRANSLATION 'D4859790-9C2D-4C3A-B446-B50A3D63D71C', 'es', 'Casos resueltos dentro del SLA';
	EXEC MD_DMM_METRIC_TRANSLATION 'AEE91037-9492-43CC-A8AA-BB0C9C13D09F', 'es', 'Requerimientos nuevos';
	EXEC MD_DMM_METRIC_TRANSLATION '9CB26C05-47F2-4E6C-A82E-BF324FA65311', 'es', 'Casos pendientes sin asignar';
	EXEC MD_DMM_METRIC_TRANSLATION '84D5CF34-7564-4F08-8373-D2957F69CA91', 'es', 'Casos resueltos el año anterior';
	EXEC MD_DMM_METRIC_TRANSLATION '38BACB88-F159-4660-8F51-D8C30D7CA58E', 'es', 'Cambios nuevos';
	EXEC MD_DMM_METRIC_TRANSLATION 'C8FD200C-0355-4231-8AE0-DA1175D000D2', 'es', 'Casos resueltos fuera del SLA';
	EXEC MD_DMM_METRIC_TRANSLATION '512C59E5-B97E-4616-90D1-ED187F637741', 'es', 'Requerimientos';

	--SUM
	EXEC MD_DMM_METRIC_TRANSLATION 'B12AC3B0-A721-4447-B9C7-317A294747C0', 'es', 'Notas privadas';
	EXEC MD_DMM_METRIC_TRANSLATION '2BA2FF61-1973-439F-A3BC-734F22069D9B', 'es', 'Tiempo total';
	EXEC MD_DMM_METRIC_TRANSLATION '43DBBA40-65FA-46D8-85E9-A540D0316F74', 'es', 'Notas';
	EXEC MD_DMM_METRIC_TRANSLATION '05F1D318-1ADA-45DF-88CA-C64381D695A9', 'es', 'Notas públicas';

    --AVG
	EXEC MD_DMM_METRIC_TRANSLATION 'C03104D7-C075-4C0F-97A7-0B3766AF2EDA', 'es', 'Costo promedio';
	EXEC MD_DMM_METRIC_TRANSLATION '444947DD-5A8A-43E8-8A45-166B79D2D93A', 'es', 'Tiempo promedio de atención';
	EXEC MD_DMM_METRIC_TRANSLATION 'AD6E90A8-B334-447C-AB9F-1C0120CA0204', 'es', 'Progreso promedio';
	EXEC MD_DMM_METRIC_TRANSLATION 'CCB35A3F-8505-41C4-B3A0-4077392C1015', 'es', 'Esfuerzo promedio';
	EXEC MD_DMM_METRIC_TRANSLATION '36738440-94FD-43C2-B21C-6A4ADB4D466A', 'es', 'Tiempo promedio de respuesta';
	EXEC MD_DMM_METRIC_TRANSLATION '61CAABCF-97C7-437B-BE92-708BCAB678EB', 'es', 'Tiempo promedio primera asignación - solución';
	EXEC MD_DMM_METRIC_TRANSLATION '6C15C3F5-98B7-4A1F-9806-71DD7E2ABC81', 'es', 'Tiempo promedio de espera del especialista';
	EXEC MD_DMM_METRIC_TRANSLATION 'C12433FE-BA0B-48C0-8EBE-89A79D535217', 'es', 'Tiempo promedio de solución ';
	EXEC MD_DMM_METRIC_TRANSLATION 'CEEE6F87-E9F6-47AD-8367-90FDD31E12AD', 'es', 'Tiempo promedio última asignación - solución';
	EXEC MD_DMM_METRIC_TRANSLATION '1B2F9446-11CA-4834-B708-AFEEE7BAD733', 'es', 'Tiempo promedio de asignación';
	EXEC MD_DMM_METRIC_TRANSLATION '18F30741-FA8D-41FB-8891-C7DCCD561C6A', 'es', 'Tiempo promedio';
	EXEC MD_DMM_METRIC_TRANSLATION '59EF9D48-C036-4535-AA69-D3D2D66857E9', 'es', 'Tiempo promedio de espera';
	EXEC MD_DMM_METRIC_TRANSLATION '7DA463C3-7001-4300-96D9-D766A68BF2B0', 'es', 'Precio promedio';
COMMIT TRAN V_FACT_ASDK_ITEM_ES;
GO

--Traducido con IA
BEGIN TRAN V_FACT_ASDK_ITEM_EN;
    --COUNT
    EXEC MD_DMM_METRIC_TRANSLATION '3B172F63-6587-464D-8591-051624F194D8', 'en', 'Pending cases';
    EXEC MD_DMM_METRIC_TRANSLATION '82A317E8-3F50-4E2B-B830-06ECDDBCCB98', 'en', 'Cases resolved this week';
    EXEC MD_DMM_METRIC_TRANSLATION 'FD986B1B-EE0A-4114-B303-1DE62BE2DCFD', 'en', 'Cases resolved with more than one intervention';
    EXEC MD_DMM_METRIC_TRANSLATION '976DA460-437B-4B88-A062-1F593E488B4B', 'en', 'Unanswered cases';
    EXEC MD_DMM_METRIC_TRANSLATION '30D64DA1-3A9D-4D28-AD0B-244479DB4505', 'en', 'New incidents';
    EXEC MD_DMM_METRIC_TRANSLATION '107655AB-4620-4AB8-B955-41BF3737B2FF', 'en', 'Cases resolved this month';
    EXEC MD_DMM_METRIC_TRANSLATION 'E0564E3F-F7B1-417D-85A0-420C24D6D507', 'en', 'Cases resolved this month last year';
    EXEC MD_DMM_METRIC_TRANSLATION '428B30C3-1FCE-4D7E-896E-47F33B3778A0', 'en', 'Cases';
    EXEC MD_DMM_METRIC_TRANSLATION '6C98A42F-9616-4CE2-AAE5-4E63866BCCA0', 'en', 'Changes';
    EXEC MD_DMM_METRIC_TRANSLATION '231FAD4D-DCFC-49F3-9C48-5752F616EEA9', 'en', 'New problems';
    EXEC MD_DMM_METRIC_TRANSLATION '5F220648-53F4-4919-B9FA-59E9F6B2B8C1', 'en', 'Releases';
    EXEC MD_DMM_METRIC_TRANSLATION 'A0969EF6-EB64-43E6-AAE4-6033A98E8EF0', 'en', 'Resolved cases';
    EXEC MD_DMM_METRIC_TRANSLATION 'EE268D6C-A4EF-468A-B877-65E61414BF4F', 'en', 'Cases resolved this quarter';
    EXEC MD_DMM_METRIC_TRANSLATION '140B6739-1410-4D34-B625-6698933DDC93', 'en', 'Cases resolved with one intervention';
    EXEC MD_DMM_METRIC_TRANSLATION '04E8A46A-CA4A-4A99-BA41-6AE500CF52B9', 'en', 'New cases';
    EXEC MD_DMM_METRIC_TRANSLATION '6EE68A49-D9EB-4CF4-BFD0-6B3FAE0551B5', 'en', 'Problems';
    EXEC MD_DMM_METRIC_TRANSLATION 'EBC7CAD5-C3C4-4A96-B964-6C29A2CA388F', 'en', 'Incidents';
    EXEC MD_DMM_METRIC_TRANSLATION '11B12F55-8935-49C8-87E5-74D84AA00C89', 'en', 'Cases resolved without interventions';
    EXEC MD_DMM_METRIC_TRANSLATION 'F300EC29-ECD4-4DEE-A144-9760123C01FA', 'en', 'Cases resolved this quarter last year';
    EXEC MD_DMM_METRIC_TRANSLATION 'CB01EDD6-947F-4400-8AD6-A8A4B7122477', 'en', 'Cases on hold';
    EXEC MD_DMM_METRIC_TRANSLATION '48D558D0-2FA2-4116-AC41-AAF140D8F64F', 'en', 'Cases resolved this year';
    EXEC MD_DMM_METRIC_TRANSLATION 'D4859790-9C2D-4C3A-B446-B50A3D63D71C', 'en', 'Cases resolved within SLA';
    EXEC MD_DMM_METRIC_TRANSLATION 'AEE91037-9492-43CC-A8AA-BB0C9C13D09F', 'en', 'New requests';
    EXEC MD_DMM_METRIC_TRANSLATION '9CB26C05-47F2-4E6C-A82E-BF324FA65311', 'en', 'Unassigned pending cases';
    EXEC MD_DMM_METRIC_TRANSLATION '84D5CF34-7564-4F08-8373-D2957F69CA91', 'en', 'Cases resolved last year';
    EXEC MD_DMM_METRIC_TRANSLATION '38BACB88-F159-4660-8F51-D8C30D7CA58E', 'en', 'New changes';
    EXEC MD_DMM_METRIC_TRANSLATION 'C8FD200C-0355-4231-8AE0-DA1175D000D2', 'en', 'Cases resolved outside SLA';
    EXEC MD_DMM_METRIC_TRANSLATION '512C59E5-B97E-4616-90D1-ED187F637741', 'en', 'Requests';

    --SUM
    EXEC MD_DMM_METRIC_TRANSLATION 'B12AC3B0-A721-4447-B9C7-317A294747C0', 'en', 'Private notes';
    EXEC MD_DMM_METRIC_TRANSLATION '2BA2FF61-1973-439F-A3BC-734F22069D9B', 'en', 'Total time';
    EXEC MD_DMM_METRIC_TRANSLATION '43DBBA40-65FA-46D8-85E9-A540D0316F74', 'en', 'Notes';
    EXEC MD_DMM_METRIC_TRANSLATION '05F1D318-1ADA-45DF-88CA-C64381D695A9', 'en', 'Public notes';

    --AVG
    EXEC MD_DMM_METRIC_TRANSLATION 'C03104D7-C075-4C0F-97A7-0B3766AF2EDA', 'en', 'Average cost';
    EXEC MD_DMM_METRIC_TRANSLATION '444947DD-5A8A-43E8-8A45-166B79D2D93A', 'en', 'Average handling time';
    EXEC MD_DMM_METRIC_TRANSLATION 'AD6E90A8-B334-447C-AB9F-1C0120CA0204', 'en', 'Average progress';
    EXEC MD_DMM_METRIC_TRANSLATION 'CCB35A3F-8505-41C4-B3A0-4077392C1015', 'en', 'Average effort';
    EXEC MD_DMM_METRIC_TRANSLATION '36738440-94FD-43C2-B21C-6A4ADB4D466A', 'en', 'Average response time';
    EXEC MD_DMM_METRIC_TRANSLATION '61CAABCF-97C7-437B-BE92-708BCAB678EB', 'en', 'Average time first assignment - resolution';
    EXEC MD_DMM_METRIC_TRANSLATION '6C15C3F5-98B7-4A1F-9806-71DD7E2ABC81', 'en', 'Average specialist wait time';
    EXEC MD_DMM_METRIC_TRANSLATION 'C12433FE-BA0B-48C0-8EBE-89A79D535217', 'en', 'Average resolution time';
    EXEC MD_DMM_METRIC_TRANSLATION 'CEEE6F87-E9F6-47AD-8367-90FDD31E12AD', 'en', 'Average time last assignment - resolution';
    EXEC MD_DMM_METRIC_TRANSLATION '1B2F9446-11CA-4834-B708-AFEEE7BAD733', 'en', 'Average assignment time';
    EXEC MD_DMM_METRIC_TRANSLATION '18F30741-FA8D-41FB-8891-C7DCCD561C6A', 'en', 'Average time';
    EXEC MD_DMM_METRIC_TRANSLATION '59EF9D48-C036-4535-AA69-D3D2D66857E9', 'en', 'Average wait time';
    EXEC MD_DMM_METRIC_TRANSLATION '7DA463C3-7001-4300-96D9-D766A68BF2B0', 'en', 'Average price';
COMMIT TRAN V_FACT_ASDK_ITEM_EN;
GO

--Traducido con IA
BEGIN TRAN V_FACT_ASDK_ITEM_PT;
    --COUNT
    EXEC MD_DMM_METRIC_TRANSLATION '3B172F63-6587-464D-8591-051624F194D8', 'pt', 'Casos pendentes';
    EXEC MD_DMM_METRIC_TRANSLATION '82A317E8-3F50-4E2B-B830-06ECDDBCCB98', 'pt', 'Casos resolvidos esta semana';
    EXEC MD_DMM_METRIC_TRANSLATION 'FD986B1B-EE0A-4114-B303-1DE62BE2DCFD', 'pt', 'Casos resolvidos com mais de uma intervenção';
    EXEC MD_DMM_METRIC_TRANSLATION '976DA460-437B-4B88-A062-1F593E488B4B', 'pt', 'Casos sem resposta';
    EXEC MD_DMM_METRIC_TRANSLATION '30D64DA1-3A9D-4D28-AD0B-244479DB4505', 'pt', 'Incidentes novos';
    EXEC MD_DMM_METRIC_TRANSLATION '107655AB-4620-4AB8-B955-41BF3737B2FF', 'pt', 'Casos resolvidos neste mês';
    EXEC MD_DMM_METRIC_TRANSLATION 'E0564E3F-F7B1-417D-85A0-420C24D6D507', 'pt', 'Casos resolvidos neste mês no ano anterior';
    EXEC MD_DMM_METRIC_TRANSLATION '428B30C3-1FCE-4D7E-896E-47F33B3778A0', 'pt', 'Casos';
    EXEC MD_DMM_METRIC_TRANSLATION '6C98A42F-9616-4CE2-AAE5-4E63866BCCA0', 'pt', 'Mudanças';
    EXEC MD_DMM_METRIC_TRANSLATION '231FAD4D-DCFC-49F3-9C48-5752F616EEA9', 'pt', 'Novos problemas';
    EXEC MD_DMM_METRIC_TRANSLATION '5F220648-53F4-4919-B9FA-59E9F6B2B8C1', 'pt', 'Liberações';
    EXEC MD_DMM_METRIC_TRANSLATION 'A0969EF6-EB64-43E6-AAE4-6033A98E8EF0', 'pt', 'Casos resolvidos';
    EXEC MD_DMM_METRIC_TRANSLATION 'EE268D6C-A4EF-468A-B877-65E61414BF4F', 'pt', 'Casos resolvidos neste trimestre';
    EXEC MD_DMM_METRIC_TRANSLATION '140B6739-1410-4D34-B625-6698933DDC93', 'pt', 'Casos resolvidos com uma intervenção';
    EXEC MD_DMM_METRIC_TRANSLATION '04E8A46A-CA4A-4A99-BA41-6AE500CF52B9', 'pt', 'Novos casos';
    EXEC MD_DMM_METRIC_TRANSLATION '6EE68A49-D9EB-4CF4-BFD0-6B3FAE0551B5', 'pt', 'Problemas';
    EXEC MD_DMM_METRIC_TRANSLATION 'EBC7CAD5-C3C4-4A96-B964-6C29A2CA388F', 'pt', 'Incidentes';
    EXEC MD_DMM_METRIC_TRANSLATION '11B12F55-8935-49C8-87E5-74D84AA00C89', 'pt', 'Casos resolvidos sem intervenções';
    EXEC MD_DMM_METRIC_TRANSLATION 'F300EC29-ECD4-4DEE-A144-9760123C01FA', 'pt', 'Casos resolvidos neste trimestre no ano anterior';
    EXEC MD_DMM_METRIC_TRANSLATION 'CB01EDD6-947F-4400-8AD6-A8A4B7122477', 'pt', 'Casos em espera';
    EXEC MD_DMM_METRIC_TRANSLATION '48D558D0-2FA2-4116-AC41-AAF140D8F64F', 'pt', 'Casos resolvidos neste ano';
    EXEC MD_DMM_METRIC_TRANSLATION 'D4859790-9C2D-4C3A-B446-B50A3D63D71C', 'pt', 'Casos resolvidos dentro do SLA';
    EXEC MD_DMM_METRIC_TRANSLATION 'AEE91037-9492-43CC-A8AA-BB0C9C13D09F', 'pt', 'Novas solicitações';
    EXEC MD_DMM_METRIC_TRANSLATION '9CB26C05-47F2-4E6C-A82E-BF324FA65311', 'pt', 'Casos pendentes não atribuídos';
    EXEC MD_DMM_METRIC_TRANSLATION '84D5CF34-7564-4F08-8373-D2957F69CA91', 'pt', 'Casos resolvidos no ano anterior';
    EXEC MD_DMM_METRIC_TRANSLATION '38BACB88-F159-4660-8F51-D8C30D7CA58E', 'pt', 'Novas mudanças';
    EXEC MD_DMM_METRIC_TRANSLATION 'C8FD200C-0355-4231-8AE0-DA1175D000D2', 'pt', 'Casos resolvidos fora do SLA';
    EXEC MD_DMM_METRIC_TRANSLATION '512C59E5-B97E-4616-90D1-ED187F637741', 'pt', 'Solicitações';

    --SUM
    EXEC MD_DMM_METRIC_TRANSLATION 'B12AC3B0-A721-4447-B9C7-317A294747C0', 'pt', 'Notas privadas';
    EXEC MD_DMM_METRIC_TRANSLATION '2BA2FF61-1973-439F-A3BC-734F22069D9B', 'pt', 'Tempo total';
    EXEC MD_DMM_METRIC_TRANSLATION '43DBBA40-65FA-46D8-85E9-A540D0316F74', 'pt', 'Notas';
    EXEC MD_DMM_METRIC_TRANSLATION '05F1D318-1ADA-45DF-88CA-C64381D695A9', 'pt', 'Notas públicas';

    --AVG
    EXEC MD_DMM_METRIC_TRANSLATION 'C03104D7-C075-4C0F-97A7-0B3766AF2EDA', 'pt', 'Custo médio';
    EXEC MD_DMM_METRIC_TRANSLATION '444947DD-5A8A-43E8-8A45-166B79D2D93A', 'pt', 'Tempo médio de atendimento';
    EXEC MD_DMM_METRIC_TRANSLATION 'AD6E90A8-B334-447C-AB9F-1C0120CA0204', 'pt', 'Progresso médio';
    EXEC MD_DMM_METRIC_TRANSLATION 'CCB35A3F-8505-41C4-B3A0-4077392C1015', 'pt', 'Esforço médio';
    EXEC MD_DMM_METRIC_TRANSLATION '36738440-94FD-43C2-B21C-6A4ADB4D466A', 'pt', 'Tempo médio de resposta';
    EXEC MD_DMM_METRIC_TRANSLATION '61CAABCF-97C7-437B-BE92-708BCAB678EB', 'pt', 'Tempo médio da primeira atribuição - solução';
    EXEC MD_DMM_METRIC_TRANSLATION '6C15C3F5-98B7-4A1F-9806-71DD7E2ABC81', 'pt', 'Tempo médio de espera do especialista';
    EXEC MD_DMM_METRIC_TRANSLATION 'C12433FE-BA0B-48C0-8EBE-89A79D535217', 'pt', 'Tempo médio de solução';
    EXEC MD_DMM_METRIC_TRANSLATION 'CEEE6F87-E9F6-47AD-8367-90FDD31E12AD', 'pt', 'Tempo médio da última atribuição - solução';
    EXEC MD_DMM_METRIC_TRANSLATION '1B2F9446-11CA-4834-B708-AFEEE7BAD733', 'pt', 'Tempo médio de atribuição';
    EXEC MD_DMM_METRIC_TRANSLATION '18F30741-FA8D-41FB-8891-C7DCCD561C6A', 'pt', 'Tempo médio';
    EXEC MD_DMM_METRIC_TRANSLATION '59EF9D48-C036-4535-AA69-D3D2D66857E9', 'pt', 'Tempo médio de espera';
    EXEC MD_DMM_METRIC_TRANSLATION '7DA463C3-7001-4300-96D9-D766A68BF2B0', 'pt', 'Preço médio';

COMMIT TRAN V_FACT_ASDK_ITEM_PT;
GO


BEGIN TRAN V_FACT_ASDK_ITEM_REVISION_ES
    --COUNT
    EXEC MD_DMM_METRIC_TRANSLATION '651C6973-68D3-41AA-8814-1843ECD966B5', 'es', 'Reasignaciones a agente asignado';
    EXEC MD_DMM_METRIC_TRANSLATION '04F34308-1A40-4787-914A-690088E4D5F3', 'es', 'Reasignaciones de grupo';
    EXEC MD_DMM_METRIC_TRANSLATION '0DC9D3D4-C857-48F9-827A-7B1CD7F3340F', 'es', 'Actualizaciones';
    EXEC MD_DMM_METRIC_TRANSLATION 'EEA05D18-4BB8-49AA-B0EE-F66C4D9553AA', 'es', 'Actualizaciones por especialistas';
    
    --SUM
    EXEC MD_DMM_METRIC_TRANSLATION '32F23404-6455-4584-9C11-A90971543DBE', 'es', 'Actualizaciones por usuarios finales';
    EXEC MD_DMM_METRIC_TRANSLATION '0C76109B-2A8F-41E3-A6E5-5B030734E872', 'es', 'Tiempo total de cambios de campo (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '43CBC6C4-2D8E-46B6-92D2-EA2971A28009', 'es', 'Tiempo total en estado nuevo (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '40C1182D-B7CB-4320-96A2-F03B33BDF673', 'es', 'Tiempo total en progreso (min)';
    EXEC MD_DMM_METRIC_TRANSLATION 'C8953C53-051D-45FA-A31F-C1ABE02AF87B', 'es', 'Tiempo total en pausado (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '641132B8-D036-4961-A7D2-6074D5B99BB3', 'es', 'Tiempo total en estado programado (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '9B28A281-57B7-4D26-87E1-0FDD1B5922BB', 'es', 'Tiempo total de cambios de campo (h)';
    EXEC MD_DMM_METRIC_TRANSLATION '1B539F77-8CCB-4272-86C5-546E5854AAD9', 'es', 'Tiempo total en estado nuevo (h)';
    EXEC MD_DMM_METRIC_TRANSLATION 'A8A09919-23CE-4296-9FBE-04506E911CAA', 'es', 'Tiempo total en progreso (h)';
    EXEC MD_DMM_METRIC_TRANSLATION '411A22E5-F2DB-43A1-A22A-B19D5859ADF8', 'es', 'Tiempo total en pausado (h)';
    EXEC MD_DMM_METRIC_TRANSLATION '8FABFA19-B853-4BA8-8CDE-73F01408A5E7', 'es', 'Tiempo total en estado programado (h)';
    EXEC MD_DMM_METRIC_TRANSLATION '7A70A620-69A5-4DA3-AD8E-49B2A1C43CF9', 'es', 'Tiempo total de cambios de campo (días)';
    EXEC MD_DMM_METRIC_TRANSLATION '7513DDF5-AA5C-43D6-B3F2-2E98C0DBE99C', 'es', 'Tiempo total en estado nuevo (días)';
    EXEC MD_DMM_METRIC_TRANSLATION 'F50BC947-2445-4314-BE54-2B8CEEC1B508', 'es', 'Tiempo total en progreso (días)';
    EXEC MD_DMM_METRIC_TRANSLATION '230C93D7-DCB8-4F5C-86B4-A07B19455B69', 'es', 'Tiempo total en pausado (días)';
    EXEC MD_DMM_METRIC_TRANSLATION '2481A68C-DA9D-4752-8BC7-8BC0DFE6644B', 'es', 'Tiempo total en estado programado (días)';

    --MAX
    EXEC MD_DMM_METRIC_TRANSLATION '7E77886F-E05E-4793-932A-5F99389E42EB', 'es', 'Comentarios';
    EXEC MD_DMM_METRIC_TRANSLATION '4CFB91FA-4ABA-417B-B35D-BD06A5DDA1F4', 'es', 'Comentarios públicos';
    EXEC MD_DMM_METRIC_TRANSLATION '14DDAFE0-0D45-41E3-BB25-EE2C01EC8F92', 'es', 'Comentarios privados';

COMMIT TRAN V_FACT_ASDK_ITEM_REVISION_ES;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION_EN
    --COUNT
    EXEC MD_DMM_METRIC_TRANSLATION '651C6973-68D3-41AA-8814-1843ECD966B5', 'en', 'Reassignments to assigned agent';
    EXEC MD_DMM_METRIC_TRANSLATION '04F34308-1A40-4787-914A-690088E4D5F3', 'en', 'Group reassignments';
    EXEC MD_DMM_METRIC_TRANSLATION '0DC9D3D4-C857-48F9-827A-7B1CD7F3340F', 'en', 'Updates';
    EXEC MD_DMM_METRIC_TRANSLATION 'EEA05D18-4BB8-49AA-B0EE-F66C4D9553AA', 'en', 'Updates by specialists';
    
    --SUM
    EXEC MD_DMM_METRIC_TRANSLATION '32F23404-6455-4584-9C11-A90971543DBE', 'en', 'Updates by end users';
    EXEC MD_DMM_METRIC_TRANSLATION '0C76109B-2A8F-41E3-A6E5-5B030734E872', 'en', 'Total time of field changes (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '43CBC6C4-2D8E-46B6-92D2-EA2971A28009', 'en', 'Total time in new status (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '40C1182D-B7CB-4320-96A2-F03B33BDF673', 'en', 'Total time in progress (min)';
    EXEC MD_DMM_METRIC_TRANSLATION 'C8953C53-051D-45FA-A31F-C1ABE02AF87B', 'en', 'Total time in paused status (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '641132B8-D036-4961-A7D2-6074D5B99BB3', 'en', 'Total time in scheduled status (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '9B28A281-57B7-4D26-87E1-0FDD1B5922BB', 'en', 'Total time of field changes (h)';
    EXEC MD_DMM_METRIC_TRANSLATION '1B539F77-8CCB-4272-86C5-546E5854AAD9', 'en', 'Total time in new status (h)';
    EXEC MD_DMM_METRIC_TRANSLATION 'A8A09919-23CE-4296-9FBE-04506E911CAA', 'en', 'Total time in progress (h)';
    EXEC MD_DMM_METRIC_TRANSLATION '411A22E5-F2DB-43A1-A22A-B19D5859ADF8', 'en', 'Total time in paused status (h)';
    EXEC MD_DMM_METRIC_TRANSLATION '8FABFA19-B853-4BA8-8CDE-73F01408A5E7', 'en', 'Total time in scheduled status (h)';

    --MAX
    EXEC MD_DMM_METRIC_TRANSLATION '7E77886F-E05E-4793-932A-5F99389E42EB', 'en', 'Comments';
    EXEC MD_DMM_METRIC_TRANSLATION '4CFB91FA-4ABA-417B-B35D-BD06A5DDA1F4', 'en', 'Public comments';
    EXEC MD_DMM_METRIC_TRANSLATION '14DDAFE0-0D45-41E3-BB25-EE2C01EC8F92', 'en', 'Private comments';

COMMIT TRAN V_FACT_ASDK_ITEM_REVISION_EN;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION_PT
    --COUNT
    EXEC MD_DMM_METRIC_TRANSLATION '651C6973-68D3-41AA-8814-1843ECD966B5', 'pt', 'Reatribuições para agente atribuído';
    EXEC MD_DMM_METRIC_TRANSLATION '04F34308-1A40-4787-914A-690088E4D5F3', 'pt', 'Reatribuições de grupo';
    EXEC MD_DMM_METRIC_TRANSLATION '0DC9D3D4-C857-48F9-827A-7B1CD7F3340F', 'pt', 'Atualizações';
    EXEC MD_DMM_METRIC_TRANSLATION 'EEA05D18-4BB8-49AA-B0EE-F66C4D9553AA', 'pt', 'Atualizações por especialistas';
    
    --SUM
    EXEC MD_DMM_METRIC_TRANSLATION '32F23404-6455-4584-9C11-A90971543DBE', 'pt', 'Atualizações por usuários finais';
    EXEC MD_DMM_METRIC_TRANSLATION '0C76109B-2A8F-41E3-A6E5-5B030734E872', 'pt', 'Tempo total de mudanças de campo (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '43CBC6C4-2D8E-46B6-92D2-EA2971A28009', 'pt', 'Tempo total em status novo (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '40C1182D-B7CB-4320-96A2-F03B33BDF673', 'pt', 'Tempo total em andamento (min)';
    EXEC MD_DMM_METRIC_TRANSLATION 'C8953C53-051D-45FA-A31F-C1ABE02AF87B', 'pt', 'Tempo total em status pausado (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '641132B8-D036-4961-A7D2-6074D5B99BB3', 'pt', 'Tempo total em status programado (min)';
    EXEC MD_DMM_METRIC_TRANSLATION '9B28A281-57B7-4D26-87E1-0FDD1B5922BB', 'pt', 'Tempo total de mudanças de campo (h)';
    EXEC MD_DMM_METRIC_TRANSLATION '1B539F77-8CCB-4272-86C5-546E5854AAD9', 'pt', 'Tempo total em status novo (h)';
    EXEC MD_DMM_METRIC_TRANSLATION 'A8A09919-23CE-4296-9FBE-04506E911CAA', 'pt', 'Tempo total em andamento (h)';
    EXEC MD_DMM_METRIC_TRANSLATION '411A22E5-F2DB-43A1-A22A-B19D5859ADF8', 'pt', 'Tempo total em status pausado (h)';
    EXEC MD_DMM_METRIC_TRANSLATION '8FABFA19-B853-4BA8-8CDE-73F01408A5E7', 'pt', 'Tempo total em status programado (h)';

    --MAX
    EXEC MD_DMM_METRIC_TRANSLATION '7E77886F-E05E-4793-932A-5F99389E42EB', 'pt', 'Comentários';
    EXEC MD_DMM_METRIC_TRANSLATION '4CFB91FA-4ABA-417B-B35D-BD06A5DDA1F4', 'pt', 'Comentários públicos';
    EXEC MD_DMM_METRIC_TRANSLATION '14DDAFE0-0D45-41E3-BB25-EE2C01EC8F92', 'pt', 'Comentários privados';

COMMIT TRAN V_FACT_ASDK_ITEM_REVISION_PT;
GO
BEGIN TRAN V_FACT_ASDK_ITEM_ES;
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5C7E06A5-4B8C-4C82-AF4A-07A97E8EEDC4', 'es', 'Casos';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '39D4295A-1F63-4652-AF10-5D9A5D6CE8F3', 'es', 'Categoría';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6F7AD2D2-5A94-45C0-A4F4-0D1F7C3B4E62', 'es', 'Integración';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8C7F74AB-2D15-4EEB-AD59-7C1E8F8B71E5', 'es', 'Grupo especialista anterior';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '1E58A407-48EE-42CB-97CC-2C5D8B193621', 'es', 'Área';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '941F1CE2-59E3-4A2B-BEDA-8E2A4038B934', 'es', 'CI';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0B1FA5E1-F51A-4E9A-97F9-19E5E17F32C3', 'es', 'Estado';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8B82E16D-3A67-4D78-BFAF-51F8C73AB7B7', 'es', 'Estado anterior';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D94F530-1A9F-45B3-AC8E-BAF8B5117E5F', 'es', 'Modelo de costos';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'EFA7D3B2-2531-4A9B-83C1-13C9A9EE0C18', 'es', 'OLA';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '91E7D02A-5BA5-4E24-A5BE-76A6D3B78AFB', 'es', 'Calendario OLA';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8B8C4907-37D9-42A7-901E-DB4B9E871AE4', 'es', 'Urgencia';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '52EE86B0-3325-47D7-9986-6715A4A8A564', 'es', 'Proveedor';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9D1AA583-54E3-4950-847E-016E8F456214', 'es', 'Compañía';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '14EBACAB-5E52-4E58-8D1F-097B3A8EAB7D', 'es', 'Primer especialista';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '2A7E5C5F-6E41-4E6A-8B8E-2E6F7E1E12D8', 'es', 'Usuario modificador';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3FECBE36-0E5B-4A15-90E8-83B5C98D5B21', 'es', 'Solicitante';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '49EB9E43-8C7D-48B3-B512-6D6EFAE6C3F5', 'es', 'Grupo especialista';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5D31CB07-4C9F-4A5E-8D27-5B5E785E8419', 'es', 'Especialista';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6B7E1E8E-1F35-4F5A-83E1-27E9F8E7B91D', 'es', 'Cliente';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7C1E3F8D-4A25-41A8-89AE-52A9C6D8F7C1', 'es', 'Autor';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8E6A2E4D-9C75-456E-9A7C-8E1B2D3E4A6F', 'es', 'Especialista anterior';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9A4F1E3D-7B5E-496F-89E1-1C4B5D8E9F0A', 'es', 'Ubicación';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A3D5C2E1-5A7B-4F8D-83C2-4D9E6A1F2B5C', 'es', 'Razón';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'B4E2A6D3-1F7E-45C9-8E1D-5B7A3F9C6E2A', 'es', 'Prioridad';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C5F8B1E7-3D9A-49A5-8A4B-6E1D5C7A2F9E', 'es', 'Fecha de creación';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'D6E1C7F2-4B9E-41A8-A5C6-2D7B3E9F1A4C', 'es', 'Fecha de registro';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'E7B3A4D9-5C8E-42F7-8D3B-7A1E9C2F6B5D', 'es', 'Fecha de cierre';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F8C2D5E1-6A9B-4F7E-9A8C-1E3D5B7C2F6A', 'es', 'Fecha real (por defecto)';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0123A4B5-C6D7-489E-8F0A-1B2C3D4E5F60', 'es', 'Fecha estimada';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '13E7D5B9-6A2C-43F8-9E7D-1B5C2F8A4E9D', 'es', 'ANS';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '24F8E1C3-7B4D-4A5E-8C9A-2E6D1F7B3C9E', 'es', 'Calendario SLA';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '35A9F2E4-8C5B-4D7E-9A8C-3F1D2B6E4A7C', 'es', 'Canal de registro';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '46B1E3D5-9A6C-4E8F-8D7A-4C3B5E7F9A6D', 'es', 'Interface';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '57C2F4E6-A7D8-41F9-8B6C-5D4A6E8B7F9E', 'es', 'Servicio';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '68D3A5F7-B8E9-42A1-9C7D-6E5B7F9C8A1D', 'es', 'Tipo de caso';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '79E4B6A8-C9F1-43B2-8D8E-7F6C8A1B9D2E', 'es', 'Proyecto';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8AF5C7B9-D0A2-44C3-9E9F-8A7D9B2C0E3F', 'es', 'Centro de ingresos';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9B06D8C0-E1B3-45D4-8FA0-9B8E0C3D1F4A', 'es', 'Centro de costos';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'AC17E9D1-F2C4-46E5-9AB1-0C9F1D4E2A5B', 'es', 'Modelo';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'BD28F0E2-03D5-47F6-8BC2-1D0E2F5A3B6C', 'es', 'Contrato';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'CE39A1F3-14E6-48A7-9CD3-2E1F3A6B4C7D', 'es', 'UC';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DF4AB2E4-25F7-49B8-8DE4-3F2A4B7C5D8E', 'es', 'Calendario UC';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'E05BC3F5-36A8-4AC9-9EF5-4A3B5C8D6E9F', 'es', 'Impacto';
COMMIT TRAN V_FACT_ASDK_ITEM_ES;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION_ES;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C3D08E3E-2F9F-4F53-9C0D-F3ED27B99A55', 'es', 'Revisión de Casos';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'CDB72B0E-42C8-4C28-9A86-FD79CB1DF55A', 'es', 'Categoría';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '87BB38F3-71B5-4657-A6B0-2EDC71B9B7DB', 'es', 'Grupo especialista anterior';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7094F7F4-0B3D-48B5-B4B2-1546A366422D', 'es', 'CI';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '05731AC3-8941-48D5-BCB7-78C5EB5FF55D', 'es', 'Estado';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A948F9C9-2C74-4C31-967C-F56C5A35A527', 'es', 'Urgencia';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C3E9B4C8-9B8B-4DB8-9DFB-45DA28CDDDB3', 'es', 'Compañía';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3FF9E54E-26DE-4F03-B1E2-57F2C3F3A2F2', 'es', 'Grupo especialista';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D92E7E8-5147-43F8-8A15-7CB10C0D5242', 'es', 'Especialista';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DB2A52E7-2D4A-4667-87FC-86185ACB648A', 'es', 'Cliente';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '29F0DB9E-F6A5-4A8B-AEA5-2A0F68A7F315', 'es', 'Autor';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6CB3DB13-8175-4E1A-A2A8-3D77A564A2B2', 'es', 'Especialista anterior';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '92E48E58-D4E0-4B9C-95FF-5ED9C72707F8', 'es', 'Razón';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F23CC4B2-63C9-4232-B8DE-F2F78E04F5A0', 'es', 'Prioridad';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '932DA3A7-C07D-43B5-BC70-413A28598A2C', 'es', 'Canal de registro';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '33DAEE1D-6D40-4DA9-A30E-D76E4E37A888', 'es', 'Servicio';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'EEA58B04-5CB9-4AF6-A289-58E57A0D23E1', 'es', 'Tipo de caso';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3A12B2A3-55D2-4665-8F17-28160B1C030E', 'es', 'Proyecto';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '94A918A1-2F93-42A9-8B75-F2C6F3D61CB5', 'es', 'Impacto';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D42B8A8-1729-4866-A8B3-10A3569A8B19', 'es', 'Fecha de modificación';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '1F0AD67B-F431-4D09-A0ED-B5DFC6EF3A4E', 'es', 'Usuario modificador';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3D13B321-ECF3-4B89-BB2D-C60462A01E4C', 'es', 'Primer especialista';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C8DF623B-4492-41A5-9A49-DFC05B09182D', 'es', 'Integración';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7CF4A983-74DF-4659-B2E8-1F45D7D6EF1D', 'es', 'Interface';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9DB4DE5B-2E86-44F8-AAB9-71A3C66B3428', 'es', 'Calendario SLA';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5CB24942-03EE-4D5F-A424-F7A2CB5E45BC', 'es', 'Calendario UC';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0A78D3FD-D580-4A6B-A6C4-632E928A1D23', 'es', 'Calendario OLA';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6CCF33DE-D67F-4865-B633-12E5562E0A5A', 'es', 'Modelo';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'AEEFCB92-D3A0-4E3E-900C-9985D78C61A7', 'es', 'ANS';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5E72C09F-73A1-4CF1-A329-7F3C22C4B1FA', 'es', 'UC';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DBA463C1-FC3B-40B8-B417-5B3B63F65D8E', 'es', 'OLA';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'BD7DE126-F03C-4793-A2C0-180C8B73EF56', 'es', 'Proveedor';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'E01982D2-13BC-44CE-93E8-74C76C50930A', 'es', 'Área';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3E40D2DA-CB7D-4A7C-B1B2-4514CB9A7E7B', 'es', 'Estado anterior';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'B4621E54-0C39-4A3B-86B2-134FDC327ABC', 'es', 'Modelo de costos';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '63D2EE22-24B5-47A4-8A6B-DF6E7FF73B4C', 'es', 'Centro de ingresos';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '29BB4B42-C2D7-4B2C-9E52-19DFDB4E5A1E', 'es', 'Centro de costos';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '2A7D3B22-B3F5-4DE8-9491-C32554FF5C2A', 'es', 'Ubicación';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F22E5D11-9132-4F62-B36E-320B5A92B55E', 'es', 'Contrato';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5E946D3D-0A1F-4D5C-B8A8-986594BD78E4', 'es', 'Solicitante';
COMMIT TRAN V_FACT_ASDK_ITEM_REVISION_ES;
GO

BEGIN TRAN V_FACT_ASDK_TASK_REVISION_ES;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4FEF6B72-0D11-46DF-91C5-2603EF3A54BC', 'es', 'Revisión de Tareas';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F9C3BC8D-DCA3-42A7-8588-7B47E7C51119', 'es', 'Fecha de modificación';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4CC45B8B-8DE4-49C2-B4E9-1E0D839ED9F9', 'es', 'Estado';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '29E2F932-64A7-4C2B-A268-BB4513A2E511', 'es', 'Proyecto';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A238F4B6-7CB3-43C5-AAC5-BD41F18BB5B2', 'es', 'Razón';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C3B2E16D-B682-4A6F-B918-5EE6F563F2A4', 'es', 'Categoría';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0E53CD4F-2C2C-43E2-B0CB-2B32C524B981', 'es', 'Servicio';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '2FBB7A42-CDA1-4B57-B39E-36E1A1D44B77', 'es', 'Grupo especialista';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D92BCB4-9D2F-47E2-904B-C3947B2A14A3', 'es', 'Especialista';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3B42DE8F-510C-4E92-AE27-B6177D5EF1D6', 'es', 'Grupo especialista anterior';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DE9FD673-312A-4204-BBB3-77D818132BD9', 'es', 'Especialista anterior';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'FE2C55A7-6572-4768-A3EF-47AFBA37AB35', 'es', 'Autor';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F99B2A7F-343A-45B7-B512-228CB71DB8A2', 'es', 'Usuario modificador';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '46ABBD78-203C-40F7-B06E-D0A2B38A4D3A', 'es', 'Primer especialista';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '924E54D8-D8EB-4F64-A836-91D8FDA33402', 'es', 'Integración';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3BDA2644-C01F-4021-84BB-DC172249B25B', 'es', 'Calendario SLA';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '1C0E48DF-9988-4D7F-B15B-9DF9D6A6A5A1', 'es', 'Modelo';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0D08A7DC-B530-41CF-B18D-BC3D8FDA5A63', 'es', 'Estado anterior';
COMMIT TRAN V_FACT_ASDK_TASK_REVISION_ES;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_SENT_ES;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4402E516-68C9-4052-924D-4512CE4D7B36', 'es', 'Caso con encuesta' ;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0A7D5474-D71E-47C2-9558-4C58F7417205', 'es', 'Encuesta' ;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A541973C-4EED-475B-8240-30DDC6BA3448', 'es', 'Fecha de invitación';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_SENT_ES;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_ES;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4BD546E5-0BF7-4B47-B63B-E5D5EDDB8702', 'es', 'Caso con encuesta';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5FC8E1CD-2547-4BAB-B7AC-E0C6DC4FCEF8', 'es', 'Encuesta';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '66037149-332C-4077-A162-923DD5C57ED8', 'es', 'Pregunta';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7708D512-2EEA-4556-A086-AFC432BB3387', 'es', 'Tipo de pregunta';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A43B37B6-484C-4AA5-889A-9290CB048A7F', 'es', 'Fecha de respuesta';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '643B2BCA-D81C-406E-B7DB-108488E9B0E6', 'es', 'Fecha de invitación';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_ES;
GO

-------------------------------------------------------------------------------------EN-------------------------------------------------------------------------------
BEGIN TRAN V_FACT_ASDK_ITEM_EN;
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5C7E06A5-4B8C-4C82-AF4A-07A97E8EEDC4', 'en', 'Cases';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '39D4295A-1F63-4652-AF10-5D9A5D6CE8F3', 'en', 'Category';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6F7AD2D2-5A94-45C0-A4F4-0D1F7C3B4E62', 'en', 'Integration';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8C7F74AB-2D15-4EEB-AD59-7C1E8F8B71E5', 'en', 'Previous specialist group';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '1E58A407-48EE-42CB-97CC-2C5D8B193621', 'en', 'Area';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '941F1CE2-59E3-4A2B-BEDA-8E2A4038B934', 'en', 'CI';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0B1FA5E1-F51A-4E9A-97F9-19E5E17F32C3', 'en', 'Status';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8B82E16D-3A67-4D78-BFAF-51F8C73AB7B7', 'en', 'Previous status';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D94F530-1A9F-45B3-AC8E-BAF8B5117E5F', 'en', 'Cost model';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'EFA7D3B2-2531-4A9B-83C1-13C9A9EE0C18', 'en', 'OLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '91E7D02A-5BA5-4E24-A5BE-76A6D3B78AFB', 'en', 'OLA calendar';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8B8C4907-37D9-42A7-901E-DB4B9E871AE4', 'en', 'Urgency';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '52EE86B0-3325-47D7-9986-6715A4A8A564', 'en', 'Provider';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9D1AA583-54E3-4950-847E-016E8F456214', 'en', 'Company';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '14EBACAB-5E52-4E58-8D1F-097B3A8EAB7D', 'en', 'First specialist';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '2A7E5C5F-6E41-4E6A-8B8E-2E6F7E1E12D8', 'en', 'Modifier user';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3FECBE36-0E5B-4A15-90E8-83B5C98D5B21', 'en', 'applicant';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '49EB9E43-8C7D-48B3-B512-6D6EFAE6C3F5', 'en', 'Specialist group';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5D31CB07-4C9F-4A5E-8D27-5B5E785E8419', 'en', 'Specialist';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6B7E1E8E-1F35-4F5A-83E1-27E9F8E7B91D', 'en', 'Customer';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7C1E3F8D-4A25-41A8-89AE-52A9C6D8F7C1', 'en', 'Author';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8E6A2E4D-9C75-456E-9A7C-8E1B2D3E4A6F', 'en', 'Previous specialist';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9A4F1E3D-7B5E-496F-89E1-1C4B5D8E9F0A', 'en', 'Location';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A3D5C2E1-5A7B-4F8D-83C2-4D9E6A1F2B5C', 'en', 'Reason';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'B4E2A6D3-1F7E-45C9-8E1D-5B7A3F9C6E2A', 'en', 'Priority';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C5F8B1E7-3D9A-49A5-8A4B-6E1D5C7A2F9E', 'en', 'Creation date';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'D6E1C7F2-4B9E-41A8-A5C6-2D7B3E9F1A4C', 'en', 'Registration date';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'E7B3A4D9-5C8E-42F7-8D3B-7A1E9C2F6B5D', 'en', 'Closed date';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F8C2D5E1-6A9B-4F7E-9A8C-1E3D5B7C2F6A', 'en', 'Actual date (default)';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0123A4B5-C6D7-489E-8F0A-1B2C3D4E5F60', 'en', 'Estimated date';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '13E7D5B9-6A2C-43F8-9E7D-1B5C2F8A4E9D', 'en', 'SLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '24F8E1C3-7B4D-4A5E-8C9A-2E6D1F7B3C9E', 'en', 'SLA calendar';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '35A9F2E4-8C5B-4D7E-9A8C-3F1D2B6E4A7C', 'en', 'Registration channel';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '46B1E3D5-9A6C-4E8F-8D7A-4C3B5E7F9A6D', 'en', 'Interface';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '57C2F4E6-A7D8-41F9-8B6C-5D4A6E8B7F9E', 'en', 'Service';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '68D3A5F7-B8E9-42A1-9C7D-6E5B7F9C8A1D', 'en', 'Case type';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '79E4B6A8-C9F1-43B2-8D8E-7F6C8A1B9D2E', 'en', 'Project';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8AF5C7B9-D0A2-44C3-9E9F-8A7D9B2C0E3F', 'en', 'Revenue center';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9B06D8C0-E1B3-45D4-8FA0-9B8E0C3D1F4A', 'en', 'Cost center';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'AC17E9D1-F2C4-46E5-9AB1-0C9F1D4E2A5B', 'en', 'Model';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'BD28F0E2-03D5-47F6-8BC2-1D0E2F5A3B6C', 'en', 'Contract';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'CE39A1F3-14E6-48A7-9CD3-2E1F3A6B4C7D', 'en', 'UC';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DF4AB2E4-25F7-49B8-8DE4-3F2A4B7C5D8E', 'en', 'UC calendar';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'E05BC3F5-36A8-4AC9-9EF5-4A3B5C8D6E9F', 'en', 'Impact';
COMMIT TRAN V_FACT_ASDK_ITEM_EN;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION_EN;
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C3D08E3E-2F9F-4F53-9C0D-F3ED27B99A55', 'en', 'Case review';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'CDB72B0E-42C8-4C28-9A86-FD79CB1DF55A', 'en', 'Category';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '87BB38F3-71B5-4657-A6B0-2EDC71B9B7DB', 'en', 'Previous specialist group';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7094F7F4-0B3D-48B5-B4B2-1546A366422D', 'en', 'CI';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '05731AC3-8941-48D5-BCB7-78C5EB5FF55D', 'en', 'Status';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A948F9C9-2C74-4C31-967C-F56C5A35A527', 'en', 'Urgency';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C3E9B4C8-9B8B-4DB8-9DFB-45DA28CDDDB3', 'en', 'Company';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3FF9E54E-26DE-4F03-B1E2-57F2C3F3A2F2', 'en', 'Specialist group';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D92E7E8-5147-43F8-8A15-7CB10C0D5242', 'en', 'Specialist';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DB2A52E7-2D4A-4667-87FC-86185ACB648A', 'en', 'Customer';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '29F0DB9E-F6A5-4A8B-AEA5-2A0F68A7F315', 'en', 'Author';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6CB3DB13-8175-4E1A-A2A8-3D77A564A2B2', 'en', 'Previous specialist';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '92E48E58-D4E0-4B9C-95FF-5ED9C72707F8', 'en', 'Reason';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F23CC4B2-63C9-4232-B8DE-F2F78E04F5A0', 'en', 'Priority';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '932DA3A7-C07D-43B5-BC70-413A28598A2C', 'en', 'Registration channel';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '33DAEE1D-6D40-4DA9-A30E-D76E4E37A888', 'en', 'Service';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'EEA58B04-5CB9-4AF6-A289-58E57A0D23E1', 'en', 'Case type';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3A12B2A3-55D2-4665-8F17-28160B1C030E', 'en', 'Project';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '94A918A1-2F93-42A9-8B75-F2C6F3D61CB5', 'en', 'Impact';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D42B8A8-1729-4866-A8B3-10A3569A8B19', 'en', 'Modification date';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '1F0AD67B-F431-4D09-A0ED-B5DFC6EF3A4E', 'en', 'Modifier user';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3D13B321-ECF3-4B89-BB2D-C60462A01E4C', 'en', 'First specialist';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C8DF623B-4492-41A5-9A49-DFC05B09182D', 'en', 'Integration';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7CF4A983-74DF-4659-B2E8-1F45D7D6EF1D', 'en', 'Interface';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9DB4DE5B-2E86-44F8-AAB9-71A3C66B3428', 'en', 'SLA calendar';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5CB24942-03EE-4D5F-A424-F7A2CB5E45BC', 'en', 'UC calendar';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0A78D3FD-D580-4A6B-A6C4-632E928A1D23', 'en', 'OLA calendar';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6CCF33DE-D67F-4865-B633-12E5562E0A5A', 'en', 'Model';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'AEEFCB92-D3A0-4E3E-900C-9985D78C61A7', 'en', 'SLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5E72C09F-73A1-4CF1-A329-7F3C22C4B1FA', 'en', 'UC';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DBA463C1-FC3B-40B8-B417-5B3B63F65D8E', 'en', 'OLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'BD7DE126-F03C-4793-A2C0-180C8B73EF56', 'en', 'Provider';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'E01982D2-13BC-44CE-93E8-74C76C50930A', 'en', 'Area';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3E40D2DA-CB7D-4A7C-B1B2-4514CB9A7E7B', 'en', 'Previous status';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'B4621E54-0C39-4A3B-86B2-134FDC327ABC', 'en', 'Cost model';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '63D2EE22-24B5-47A4-8A6B-DF6E7FF73B4C', 'en', 'Revenue center';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '29BB4B42-C2D7-4B2C-9E52-19DFDB4E5A1E', 'en', 'Cost center';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '2A7D3B22-B3F5-4DE8-9491-C32554FF5C2A', 'en', 'Location';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F22E5D11-9132-4F62-B36E-320B5A92B55E', 'en', 'Contract';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5E946D3D-0A1F-4D5C-B8A8-986594BD78E4', 'en', 'Requester';
COMMIT TRAN V_FACT_ASDK_ITEM_REVISION_EN;
GO

BEGIN TRAN V_FACT_ASDK_TASK_REVISION_ES;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4FEF6B72-0D11-46DF-91C5-2603EF3A54BC', 'en', 'Task Review';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F9C3BC8D-DCA3-42A7-8588-7B47E7C51119', 'en', 'Modified date';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4CC45B8B-8DE4-49C2-B4E9-1E0D839ED9F9', 'en', 'Status';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '29E2F932-64A7-4C2B-A268-BB4513A2E511', 'en', 'Project';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A238F4B6-7CB3-43C5-AAC5-BD41F18BB5B2', 'en', 'Reason';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C3B2E16D-B682-4A6F-B918-5EE6F563F2A4', 'en', 'Category';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0E53CD4F-2C2C-43E2-B0CB-2B32C524B981', 'en', 'Service';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '2FBB7A42-CDA1-4B57-B39E-36E1A1D44B77', 'en', 'Specialist group';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D92BCB4-9D2F-47E2-904B-C3947B2A14A3', 'en', 'Specialist';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3B42DE8F-510C-4E92-AE27-B6177D5EF1D6', 'en', 'Previous specialist group';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DE9FD673-312A-4204-BBB3-77D818132BD9', 'en', 'Previous specialist';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'FE2C55A7-6572-4768-A3EF-47AFBA37AB35', 'en', 'Author';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F99B2A7F-343A-45B7-B512-228CB71DB8A2', 'en', 'Modifier user';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '46ABBD78-203C-40F7-B06E-D0A2B38A4D3A', 'en', 'First specialist';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '924E54D8-D8EB-4F64-A836-91D8FDA33402', 'en', 'Integration';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3BDA2644-C01F-4021-84BB-DC172249B25B', 'en', 'SLA calendar';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '1C0E48DF-9988-4D7F-B15B-9DF9D6A6A5A1', 'en', 'Model';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0D08A7DC-B530-41CF-B18D-BC3D8FDA5A63', 'en', 'Previous status';
COMMIT TRAN V_FACT_ASDK_TASK_REVISION_ES;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_SENT_EN;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4402E516-68C9-4052-924D-4512CE4D7B36', 'en', 'Case with survey';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0A7D5474-D71E-47C2-9558-4C58F7417205', 'en', 'Survey';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A541973C-4EED-475B-8240-30DDC6BA3448', 'en', 'Invitation date';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_SENT_EN;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_EN;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4BD546E5-0BF7-4B47-B63B-E5D5EDDB8702', 'en', 'Case with survey';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5FC8E1CD-2547-4BAB-B7AC-E0C6DC4FCEF8', 'en', 'Survey';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '66037149-332C-4077-A162-923DD5C57ED8', 'en', 'Question';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7708D512-2EEA-4556-A086-AFC432BB3387', 'en', 'Question type';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A43B37B6-484C-4AA5-889A-9290CB048A7F', 'en', 'Response date';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '643B2BCA-D81C-406E-B7DB-108488E9B0E6', 'en', 'Invitation date';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_EN;
GO

-------------------------------------------------------------------------------------PT-------------------------------------------------------------------------------

BEGIN TRAN V_FACT_ASDK_ITEM_PT;
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5C7E06A5-4B8C-4C82-AF4A-07A97E8EEDC4', 'pt', 'Casos';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '39D4295A-1F63-4652-AF10-5D9A5D6CE8F3', 'pt', 'Categoria';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6F7AD2D2-5A94-45C0-A4F4-0D1F7C3B4E62', 'pt', 'Integração';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8C7F74AB-2D15-4EEB-AD59-7C1E8F8B71E5', 'pt', 'Grupo especialista anterior';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '1E58A407-48EE-42CB-97CC-2C5D8B193621', 'pt', 'Área';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '941F1CE2-59E3-4A2B-BEDA-8E2A4038B934', 'pt', 'CI';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0B1FA5E1-F51A-4E9A-97F9-19E5E17F32C3', 'pt', 'Estado';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8B82E16D-3A67-4D78-BFAF-51F8C73AB7B7', 'pt', 'Estado anterior';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D94F530-1A9F-45B3-AC8E-BAF8B5117E5F', 'pt', 'Modelo de custo';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'EFA7D3B2-2531-4A9B-83C1-13C9A9EE0C18', 'pt', 'OLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '91E7D02A-5BA5-4E24-A5BE-76A6D3B78AFB', 'pt', 'Calendário OLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8B8C4907-37D9-42A7-901E-DB4B9E871AE4', 'pt', 'Urgência';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '52EE86B0-3325-47D7-9986-6715A4A8A564', 'pt', 'Fornecedor';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9D1AA583-54E3-4950-847E-016E8F456214', 'pt', 'Empresa';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '14EBACAB-5E52-4E58-8D1F-097B3A8EAB7D', 'pt', 'Primeiro especialista';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '2A7E5C5F-6E41-4E6A-8B8E-2E6F7E1E12D8', 'pt', 'Usuário modificador';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3FECBE36-0E5B-4A15-90E8-83B5C98D5B21', 'pt', 'Solicitante';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '49EB9E43-8C7D-48B3-B512-6D6EFAE6C3F5', 'pt', 'Grupo especialista';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5D31CB07-4C9F-4A5E-8D27-5B5E785E8419', 'pt', 'Especialista';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6B7E1E8E-1F35-4F5A-83E1-27E9F8E7B91D', 'pt', 'Cliente';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7C1E3F8D-4A25-41A8-89AE-52A9C6D8F7C1', 'pt', 'Autor';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8E6A2E4D-9C75-456E-9A7C-8E1B2D3E4A6F', 'pt', 'Especialista anterior';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9A4F1E3D-7B5E-496F-89E1-1C4B5D8E9F0A', 'pt', 'Localização';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A3D5C2E1-5A7B-4F8D-83C2-4D9E6A1F2B5C', 'pt', 'razão';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'B4E2A6D3-1F7E-45C9-8E1D-5B7A3F9C6E2A', 'pt', 'Prioridade';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C5F8B1E7-3D9A-49A5-8A4B-6E1D5C7A2F9E', 'pt', 'Data de criação';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'D6E1C7F2-4B9E-41A8-A5C6-2D7B3E9F1A4C', 'pt', 'Data de registro';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'E7B3A4D9-5C8E-42F7-8D3B-7A1E9C2F6B5D', 'pt', 'Data de encerramento';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F8C2D5E1-6A9B-4F7E-9A8C-1E3D5B7C2F6A', 'pt', 'Data real (padrão)';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0123A4B5-C6D7-489E-8F0A-1B2C3D4E5F60', 'pt', 'Data estimada' ;
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '13E7D5B9-6A2C-43F8-9E7D-1B5C2F8A4E9D', 'pt', 'SLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '24F8E1C3-7B4D-4A5E-8C9A-2E6D1F7B3C9E', 'pt', 'Calendário de SLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '35A9F2E4-8C5B-4D7E-9A8C-3F1D2B6E4A7C', 'pt', 'Canal de registro';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '46B1E3D5-9A6C-4E8F-8D7A-4C3B5E7F9A6D', 'pt', 'Interface';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '57C2F4E6-A7D8-41F9-8B6C-5D4A6E8B7F9E', 'pt', 'Serviço';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '68D3A5F7-B8E9-42A1-9C7D-6E5B7F9C8A1D', 'pt', 'Tipo de caso';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '79E4B6A8-C9F1-43B2-8D8E-7F6C8A1B9D2E', 'pt', 'Projeto';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '8AF5C7B9-D0A2-44C3-9E9F-8A7D9B2C0E3F', 'pt', 'Centro de receita';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9B06D8C0-E1B3-45D4-8FA0-9B8E0C3D1F4A', 'pt', 'Centro de custo';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'AC17E9D1-F2C4-46E5-9AB1-0C9F1D4E2A5B', 'pt', 'Modelo';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'BD28F0E2-03D5-47F6-8BC2-1D0E2F5A3B6C', 'pt', 'Contrato';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'CE39A1F3-14E6-48A7-9CD3-2E1F3A6B4C7D', 'pt', 'UC';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DF4AB2E4-25F7-49B8-8DE4-3F2A4B7C5D8E', 'pt', 'Calendário de UC';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'E05BC3F5-36A8-4AC9-9EF5-4A3B5C8D6E9F', 'pt', 'Impacto';
COMMIT TRAN V_FACT_ASDK_ITEM_PT;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION_PT;
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C3D08E3E-2F9F-4F53-9C0D-F3ED27B99A55', 'pt', 'Revisão de casos';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'CDB72B0E-42C8-4C28-9A86-FD79CB1DF55A', 'pt', 'Categoría';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '87BB38F3-71B5-4657-A6B0-2EDC71B9B7DB', 'pt', 'Grupo especialista anterior';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7094F7F4-0B3D-48B5-B4B2-1546A366422D', 'pt', 'CI';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '05731AC3-8941-48D5-BCB7-78C5EB5FF55D', 'pt', 'Estado';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A948F9C9-2C74-4C31-967C-F56C5A35A527', 'pt', 'Urgência';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C3E9B4C8-9B8B-4DB8-9DFB-45DA28CDDDB3', 'pt', 'Empresa';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3FF9E54E-26DE-4F03-B1E2-57F2C3F3A2F2', 'pt', 'Grupo especialista';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D92E7E8-5147-43F8-8A15-7CB10C0D5242', 'pt', 'Especialista';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DB2A52E7-2D4A-4667-87FC-86185ACB648A', 'pt', 'Cliente';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '29F0DB9E-F6A5-4A8B-AEA5-2A0F68A7F315', 'pt', 'Autor';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6CB3DB13-8175-4E1A-A2A8-3D77A564A2B2', 'pt', 'Especialista anterior';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '92E48E58-D4E0-4B9C-95FF-5ED9C72707F8', 'pt', 'razão';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F23CC4B2-63C9-4232-B8DE-F2F78E04F5A0', 'pt', 'Prioridade';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '932DA3A7-C07D-43B5-BC70-413A28598A2C', 'pt', 'Canal de registro';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '33DAEE1D-6D40-4DA9-A30E-D76E4E37A888', 'pt', 'Serviço';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'EEA58B04-5CB9-4AF6-A289-58E57A0D23E1', 'pt', 'Tipo de caso';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3A12B2A3-55D2-4665-8F17-28160B1C030E', 'pt', 'Projeto';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '94A918A1-2F93-42A9-8B75-F2C6F3D61CB5', 'pt', 'Impacto';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D42B8A8-1729-4866-A8B3-10A3569A8B19', 'pt', 'Data da modificação';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '1F0AD67B-F431-4D09-A0ED-B5DFC6EF3A4E', 'pt', 'Usuário modificador';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3D13B321-ECF3-4B89-BB2D-C60462A01E4C', 'pt', 'Primeiro especialista';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C8DF623B-4492-41A5-9A49-DFC05B09182D', 'pt', 'Integração';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7CF4A983-74DF-4659-B2E8-1F45D7D6EF1D', 'pt', 'Interface';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '9DB4DE5B-2E86-44F8-AAB9-71A3C66B3428', 'pt', 'Calendário SLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5CB24942-03EE-4D5F-A424-F7A2CB5E45BC', 'pt', 'Calendário de UC';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0A78D3FD-D580-4A6B-A6C4-632E928A1D23', 'pt', 'Calendário de OLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '6CCF33DE-D67F-4865-B633-12E5562E0A5A', 'pt', 'Modelo';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'AEEFCB92-D3A0-4E3E-900C-9985D78C61A7', 'pt', 'ANS';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5E72C09F-73A1-4CF1-A329-7F3C22C4B1FA', 'pt', 'UC';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DBA463C1-FC3B-40B8-B417-5B3B63F65D8E', 'pt', 'OLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'BD7DE126-F03C-4793-A2C0-180C8B73EF56', 'pt', 'Fornecedor';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'E01982D2-13BC-44CE-93E8-74C76C50930A', 'pt', 'Área';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3E40D2DA-CB7D-4A7C-B1B2-4514CB9A7E7B', 'pt', 'Estado anterior';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'B4621E54-0C39-4A3B-86B2-134FDC327ABC', 'pt', 'Modelo de custo';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '63D2EE22-24B5-47A4-8A6B-DF6E7FF73B4C', 'pt', 'Centro de receita';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '29BB4B42-C2D7-4B2C-9E52-19DFDB4E5A1E', 'pt', 'Centro de custo';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '2A7D3B22-B3F5-4DE8-9491-C32554FF5C2A', 'pt', 'Localização';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F22E5D11-9132-4F62-B36E-320B5A92B55E', 'pt', 'Contrato';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5E946D3D-0A1F-4D5C-B8A8-986594BD78E4', 'pt', 'Solicitante';
COMMIT TRAN V_FACT_ASDK_ITEM_REVISION_PT;
GO

BEGIN TRAN V_FACT_ASDK_TASK_REVISION_PT;
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4FEF6B72-0D11-46DF-91C5-2603EF3A54BC', 'pt', 'Revisão da tarefa';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F9C3BC8D-DCA3-42A7-8588-7B47E7C51119', 'pt', 'Data da modificação';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4CC45B8B-8DE4-49C2-B4E9-1E0D839ED9F9', 'pt', 'Status';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '29E2F932-64A7-4C2B-A268-BB4513A2E511', 'pt', 'Projeto';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A238F4B6-7CB3-43C5-AAC5-BD41F18BB5B2', 'pt', 'razão';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'C3B2E16D-B682-4A6F-B918-5EE6F563F2A4', 'pt', 'Categoria';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0E53CD4F-2C2C-43E2-B0CB-2B32C524B981', 'pt', 'Serviço';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '2FBB7A42-CDA1-4B57-B39E-36E1A1D44B77', 'pt', 'Grupo especialista';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7D92BCB4-9D2F-47E2-904B-C3947B2A14A3', 'pt', 'Especialista';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3B42DE8F-510C-4E92-AE27-B6177D5EF1D6', 'pt', 'Grupo de especialistas anterior';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'DE9FD673-312A-4204-BBB3-77D818132BD9', 'pt', 'Especialista anterior';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'FE2C55A7-6572-4768-A3EF-47AFBA37AB35', 'pt', 'Autor';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'F99B2A7F-343A-45B7-B512-228CB71DB8A2', 'pt', 'Usuário modificador';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '46ABBD78-203C-40F7-B06E-D0A2B38A4D3A', 'pt', 'Primeiro especialista';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '924E54D8-D8EB-4F64-A836-91D8FDA33402', 'pt', 'Integração';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '3BDA2644-C01F-4021-84BB-DC172249B25B', 'pt', 'Calendário de SLA';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '1C0E48DF-9988-4D7F-B15B-9DF9D6A6A5A1', 'pt', 'Modelo';
    EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0D08A7DC-B530-41CF-B18D-BC3D8FDA5A63', 'pt', 'Estado anterior';
COMMIT TRAN V_FACT_ASDK_TASK_REVISION_PT;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_SENT_PT;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4402E516-68C9-4052-924D-4512CE4D7B36', 'pt', 'Caso com pesquisa';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '0A7D5474-D71E-47C2-9558-4C58F7417205', 'pt', 'Pesquisa';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A541973C-4EED-475B-8240-30DDC6BA3448', 'pt', 'Data do convite';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_SENT_PT;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_PT;
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '4BD546E5-0BF7-4B47-B63B-E5D5EDDB8702', 'pt', 'Caso com pesquisa';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '5FC8E1CD-2547-4BAB-B7AC-E0C6DC4FCEF8', 'pt', 'Pesquisa';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '66037149-332C-4077-A162-923DD5C57ED8', 'pt', 'Pergunta';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '7708D512-2EEA-4556-A086-AFC432BB3387', 'pt', 'Tipo de pergunta';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] 'A43B37B6-484C-4AA5-889A-9290CB048A7F', 'pt', 'Data de resposta';
	EXEC [dbo].[MD_DMM_RELATIONSHIP_TRANSLATION] '643B2BCA-D81C-406E-B7DB-108488E9B0E6', 'pt', 'Data do convite';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_PT;
GO

BEGIN TRAN MD_FUN_ASMS_FIELD_VALUE;
	EXEC [MD_DMM_RELATIONSHIP_TRANSLATION] '42AA8B54-0068-4F86-AD19-966B5E8770BA', 'es', 'Adicionales';
	EXEC [MD_DMM_RELATIONSHIP_TRANSLATION] '42AA8B54-0068-4F86-AD19-966B5E8770BA', 'en', 'Additional';
	EXEC [MD_DMM_RELATIONSHIP_TRANSLATION] '42AA8B54-0068-4F86-AD19-966B5E8770BA', 'pt', 'Adicionais';
COMMIT TRAN MD_FUN_ASMS_FIELD_VALUE;
GO
/*Comments will be fixed in future versions*/

EXEC MD_DMM_DATA_TYPE '34', 'image';
EXEC MD_DMM_DATA_TYPE '35', 'text';
EXEC MD_DMM_DATA_TYPE '36', 'uniqueidentifier';
EXEC MD_DMM_DATA_TYPE '40', 'date';
EXEC MD_DMM_DATA_TYPE '41', 'time';
EXEC MD_DMM_DATA_TYPE '42', 'datetime2';
EXEC MD_DMM_DATA_TYPE '43', 'datetimeoffset';
EXEC MD_DMM_DATA_TYPE '48', 'tinyint';
EXEC MD_DMM_DATA_TYPE '52', 'smallint';
EXEC MD_DMM_DATA_TYPE '56', 'int';
EXEC MD_DMM_DATA_TYPE '58', 'smalldatetime';
EXEC MD_DMM_DATA_TYPE '59', 'real';
EXEC MD_DMM_DATA_TYPE '60', 'money';
EXEC MD_DMM_DATA_TYPE '61', 'datetime';
EXEC MD_DMM_DATA_TYPE '62', 'float';
EXEC MD_DMM_DATA_TYPE '98', 'sql_variant';
EXEC MD_DMM_DATA_TYPE '99', 'ntext';
EXEC MD_DMM_DATA_TYPE '104', 'bit';
EXEC MD_DMM_DATA_TYPE '106', 'decimal';
EXEC MD_DMM_DATA_TYPE '108', 'numeric';
EXEC MD_DMM_DATA_TYPE '122', 'smallmoney';
EXEC MD_DMM_DATA_TYPE '127', 'bigint';
--EXEC MD_DMM_DATA_TYPE '165', 'vector';
--EXEC MD_DMM_DATA_TYPE '165', 'varbinary';
EXEC MD_DMM_DATA_TYPE '167', 'varchar';
EXEC MD_DMM_DATA_TYPE '173', 'binary';
EXEC MD_DMM_DATA_TYPE '175', 'char';
EXEC MD_DMM_DATA_TYPE '189', 'timestamp';
EXEC MD_DMM_DATA_TYPE '231', 'nvarchar';
--EXEC MD_DMM_DATA_TYPE '231', 'sysname';
EXEC MD_DMM_DATA_TYPE '239', 'nchar';
--EXEC MD_DMM_DATA_TYPE '240', 'hierarchyid';
--EXEC MD_DMM_DATA_TYPE '240', 'geometry';
--EXEC MD_DMM_DATA_TYPE '240', 'geography';
EXEC MD_DMM_DATA_TYPE '241', 'xml';
GO
BEGIN TRAN CMDB_CI
    EXEC MD_DMM_DATA_TYPE_COLUMN '02AC2416-A589-4AD7-9A69-0B32E540CB4F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '81469F3E-FA77-4CCE-AF02-F8672CFC72D0', '231', '200';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B3471462-1460-4E15-994F-CFBC5F67C2F6', '231', '200';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B251F562-99AB-4956-BAC4-7A39D7C93F16', '231', '200';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1960B318-1DE1-46CE-9CD6-375091A5D6B8', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '67797101-977B-427F-B61E-E79C74C9086A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '937BFD4F-CE38-429F-A8FF-47B76544EA19', '231', '80';
    EXEC MD_DMM_DATA_TYPE_COLUMN '40C2B62D-1A31-4322-9BEA-E87304EA8F94', '231', '200';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B49DDB30-A050-492F-9D0C-29E26094099A', '106', '17,2';
    EXEC MD_DMM_DATA_TYPE_COLUMN '63805E01-75C5-4332-8C21-A1280E01F2D8', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2CD5E58D-8869-4EC2-AB70-A07419B0162F', '231', '1000';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0E0D1C7A-F2D2-4EB0-83A3-33DD13394992', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FB97CB62-B022-4C70-B470-298970CF2B0E', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '73092E38-3576-416D-9A86-18B0A93E48FA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EA747986-0FEB-4BA1-8797-E4DC78D4A994', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8EDED45F-F791-48B7-B45F-70B191F0255A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2CF7B55F-5649-4541-B710-680D217FEC75', '231', '70';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D78DC237-8CAD-46FD-B9F3-34E0D83FCA15', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C0E505EF-D890-4E6B-B4A4-FC362026A34C', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '51B60C07-3D34-47B4-BD97-42E6C5A6A210', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D9D72300-5D31-4B9F-9B81-BCC9D6101667', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8C85DBC2-48B5-47AB-AD35-02F809E5A467', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FBA71137-0AD9-4A31-85A2-B2DEE9690F90', '231', '100';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0B5A8972-DD8C-4B84-A22A-C6984B131538', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D3E5C689-1E15-4646-8085-7B50F91637F5', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '805365BF-B261-4EFA-A119-5772BC7A671B', '106', '17,2';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1E507C76-3F56-41D8-8BEA-E16B36BF6C82', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '62076B78-9132-4DC3-B036-DEA2E9CF5691', '231', '500';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CFF5DC12-E993-4E37-B53E-EB3531121C12', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5AF8FEDF-4434-45D8-AEF7-CC142657055B', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '57EBA56E-3BCB-48C5-8BEA-8370109B535C', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BB3BE690-2525-42F6-BDEB-417B2307B62B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '87982812-0202-442E-A879-97B804E69516', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C9467E8B-29CC-4C1D-8EBA-3F9D42788DFC', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6E787EE7-01AA-401B-8C8E-545CF9BB9985', '231', '100';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0536140E-52BC-4ACE-B614-6E1759D73934', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0A222244-A26D-4097-B0B8-6300C902B4D5', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '25D9CFEC-B851-408C-8AC0-D517CF7069F2', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9FCBDDD0-9504-4F34-ADF7-9E56F2C4DEAE', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'ABB72884-46A3-49B0-A71B-63FF05370006', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BC2044B0-8F47-4E89-846D-373F62211464', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '35789854-207D-4985-835D-4FA5ACEA3620', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BDEB3D6F-EB80-422C-B46E-25499E780BDC', '56';
COMMIT TRAN CMDB_CI
GO

BEGIN TRAN ASMS_TYPES
    EXEC MD_DMM_DATA_TYPE_COLUMN '112521FE-0E07-496A-A164-C69984ED7FD1', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EEDCD330-E670-422C-9A8C-79223AA01884', '231', '50';
COMMIT TRAN ASMS_TYPES
GO

BEGIN TRAN ASMS_STATUS_REASON
    EXEC MD_DMM_DATA_TYPE_COLUMN '6122035E-FDBF-44ED-92D4-7E706921A8BE', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '70181CD7-3012-4399-B189-C9ABF184F505', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F59DB710-50FA-4537-9C17-6CD8BBCB86F6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '42FA313F-2BA8-4B47-AC5C-FB724603F2F2', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E57C29B9-9D67-4DCF-A0DD-9F49BB387F66', '231', '36';
    EXEC MD_DMM_DATA_TYPE_COLUMN '34EB576D-8FC6-43D7-96AE-0CA8F29577A8', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '88CC306A-1674-48CA-A380-E92EF335272E', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5D60D8A0-8D5B-4363-8C9A-83243F563D0C', '167', '11';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'ABE5820D-AFD9-4E8F-A190-9FA15B672889', '231', '18';
COMMIT TRAN ASMS_STATUS_REASON
GO

BEGIN TRAN AFW_USERS
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C45B07CD-7486-4FAA-A5D6-4A8791BD1F15', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A5029538-6128-4BA7-8B5C-6FE5EB563743', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E94AD072-81C4-49C5-B7A8-EFB0AA3A32BC', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5D7750CE-FE47-4690-88B1-9C65F584A2A9', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'ABC7CC72-BB4F-4255-8DFF-030FABF9C3F3', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4E7334B6-5483-48FA-BE07-B82B1A86E2B1', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '038E4F9D-28AA-42B2-9BC4-5A693A263745', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B18D2873-DD06-4087-B62A-2D5992FF4B1E', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7D810F7F-CF34-4BBD-991C-4E50A4FD1736', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F983D2D0-BC2F-4173-9B0A-B0ED8513EF09', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F59EF371-A370-4436-BE66-886BC7A60135', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A9EAF530-227B-46C9-A602-070C26D5F9AE', '231', '20';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B8BB07BA-96A3-46A7-ABC3-65EDA5A8AF1F', '231', '20';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0518AF6F-DAB6-4E70-9A57-5178810B9BA3', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '14589C32-57AE-432F-9DE3-B129747EBB92', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F15FAC53-B2FC-4063-935F-D11B2739404B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B8109A08-522B-41F0-B767-7BD79B09BA7A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C7D11A22-5A9E-49CA-8352-F210D2BB4DBD', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C49A1923-138E-4DEE-93C2-F19ADEAE68FB', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D98A6531-C1D4-4BC4-BAB4-28D7D39413C9', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FC0EFE8A-1FC8-4EE6-B439-5E76CE0E3BC4', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7BC1C070-8697-4FA8-A595-9930344F59BB', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2030B43D-A17A-4BBB-8064-DC0A65B5C1B1', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '58DB5AC2-C892-4CA8-A475-3B65ACBD0CDD', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C0698A85-75F4-4CD9-8740-B92514D0311A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4E2B78ED-E6EF-41F5-869B-2240A6196F03', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '099C8ECE-95DB-4AA0-9BDF-64A6B8987403', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C6BDFDD3-83AA-42A8-9A75-C7951088E7DA', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN '690A6DAF-40CB-4AFC-8342-1BBEB267F8D9', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '549C5BCE-80F0-41F9-A871-3EDAC864B772', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '25E64BD7-3B55-4869-A920-5DFA14CEB074', '231', '5';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D062FB47-FEC5-48FB-90EC-C4047B16E0A1', '231', '20';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A91BD7E2-D6C0-41CF-873A-934304C1DDF4', '231', '14';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C9EBF816-8366-41F4-8FB1-842DA751F9C7', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CBAC7954-7ECA-4CB5-871E-3E9D86F5AD56', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4AF9C959-1AC8-441D-ADE6-AA4A6B39D19B', '231', '256';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A2B0C31B-77C0-4D1A-86DF-342D800229ED', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BFD56E43-094F-4468-A7E2-4829A70ED889', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BDC68C00-CB61-4746-9B97-A151B7827681', '231', '1024';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8A4D09F8-54D9-4FAC-B506-A7D0C458F18F', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '641859F5-AE7C-4218-AC67-535F66A7B2A7', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C239958B-9A29-4D56-B1A8-D80932FF7390', '56';
COMMIT TRAN AFW_USERS
GO

BEGIN TRAN ASMS_COMPANY
    EXEC MD_DMM_DATA_TYPE_COLUMN '217A6A2C-E119-4C23-B4F9-43C104532453', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '89BB1D49-D651-4824-9B11-AFE60CD0832E', '231', '200';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E5C67AFE-5292-4FA7-B589-C7FA38656CC3', '167', '100';
    EXEC MD_DMM_DATA_TYPE_COLUMN '409F4D50-24A2-4CF9-9192-CFD993FA09E0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9940AF11-7E1A-4A4E-A25C-DDEF7BFF46D2', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D2D4AF22-B574-41A3-8D1F-D3C7A7524ADA', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3E6EC805-3D94-416F-B220-D306648FE22E', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '17424618-A454-4CA4-AA76-C9B1050CD6DD', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1330FEBD-442B-4720-BBA8-F82F437D86EF', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D2130BE3-A8FF-430F-B174-13D93593600B', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C3865637-17FE-4A8E-8570-AAB2F8FA7254', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8BD0A6E8-E9B0-45B8-A823-F4BBA592985D', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN '69630E6E-A0A5-4DA0-BA13-FD66AF6DC1D6', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8CD879BB-1F6A-4DC6-BBB0-DCCD2915C9AE', '231', '1000';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4974A016-8EF6-43A9-A4C1-18466250136F', '231', '100';
    EXEC MD_DMM_DATA_TYPE_COLUMN '91F517B6-6989-4B23-A5A3-EEA516629CB9', '231', '250';
    EXEC MD_DMM_DATA_TYPE_COLUMN '72B13B15-D609-4CE5-8C22-90EEE498F9F9', '231', '100';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E1BED25F-E7B0-4D7E-90FE-70B2E0A58203', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '412C2BF0-3C34-41DB-9A84-4E1542F1FBA0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1252524A-3107-4E38-BF86-31F211ECBDC6', '167', '300';
    EXEC MD_DMM_DATA_TYPE_COLUMN '64A18CD4-2F72-4B71-8D32-F779ECD29857', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '493B2F94-9208-4089-9DFF-6A915E063396', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0F7C3DBC-254E-47F6-8E72-7FD50D613817', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9C1F457E-ACD9-42FF-BF9D-84709ACAC5BC', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '39ED0855-34FE-447B-8392-08D4B359C550', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EC0A235F-8F66-4A19-82C2-C648085815D1', '56';
COMMIT TRAN ASMS_COMPANY
GO

BEGIN TRAN ASMS_PROJECTS
    EXEC MD_DMM_DATA_TYPE_COLUMN '63EAB8C6-77AF-4DAC-9FAC-C75E71E496BD', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A3DD49A7-5514-4D15-91DD-7CC102185DDB', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0D77A4DA-51AE-4FB9-96C6-049B323D77AA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B52B8277-8980-47E5-AB12-27FE026AE1DD', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C93F76C7-4F7F-40F9-84A3-3FD2CFF47DB2', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5693C985-2D2C-4F75-93F6-7B3A9477261E', '231', '-1';
    EXEC MD_DMM_DATA_TYPE_COLUMN '716A3B65-5147-4932-A97F-48BF68D9AD65', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CB9CAD05-FBD3-4570-8D12-844EEC785F64', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN '39A5F70F-CB3C-48B1-AF83-FDDCFCD0D9C7', '231', '36';
COMMIT TRAN ASMS_PROJECTS
GO

BEGIN TRAN ASMS_COST_CENTER
    EXEC MD_DMM_DATA_TYPE_COLUMN '61FF0B5A-329B-4074-9E03-E0FA2CE17EC6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FF6E443E-D45A-4004-BD19-4F1BA9E49208', '231', '36';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C7B01CF6-79B6-40C2-9F89-B9307954FA5E', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN '45F2AFAB-90EF-4450-9024-F92B4C16F4B2', '231', '250';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EE620F84-662B-4BAA-AB4B-2D20D82908AD', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8B3E74CF-2FE2-4273-804B-3999ACDED54B', '56';
COMMIT TRAN ASMS_COST_CENTER
GO

BEGIN TRAN AFW_GROUPS
    EXEC MD_DMM_DATA_TYPE_COLUMN '5D563054-5A64-4666-9EE7-09168686627D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A5AEDDE6-1FBB-4980-A84C-352E6F409D69', '231', '256';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9AD83C48-42C1-4A27-99E6-ACD928B6C7F6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F053CCBD-6CF0-43FA-A668-3D744D55C09D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '927D323F-DECD-4C49-9EC8-699964B6FE93', '231', '1000';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B2A6407A-6CFF-47BA-AE1C-E0EE5F9187FF', '231', '256';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9FC530E7-1254-4413-9EA0-2FFA86651EDF', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5C511189-F04A-42D5-BDE8-75C18767A227', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3F2B760F-4F08-4C6C-AB4D-E9EE0240A4D8', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B65F30B0-D8CD-4CB0-BAD5-9990C281F5C7', '56';
COMMIT TRAN AFW_GROUPS
GO

BEGIN TRAN ASMS_MODEL
    EXEC MD_DMM_DATA_TYPE_COLUMN '5839EB15-0277-4EC6-A3E5-EB64AD436AB3', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C7138C59-62DD-498A-B88E-A623DE533123', '231', '100';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C3F9FCD4-DB35-4A6B-AEA3-4044485DD1D4', '231', '250';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'ED94ECC9-AC62-4AAB-9CC0-BED40E9C2DD4', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3F20D1E9-24B4-4C2E-BF63-247F9FE3BE17', '231', '-1';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E6FF8926-4E6C-4C5A-A494-FEA4E0543018', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E13A6EE7-3C79-4CFF-A070-DD46626A8666', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'AB8924BF-0B03-4BCF-9FF4-976122006172', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A0F3F45F-5A19-416C-B263-8A11C1CE3DAA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F2A75791-A79A-4637-BCB1-1E2FC628AFFD', '231', '-1';
    EXEC MD_DMM_DATA_TYPE_COLUMN '11933B42-AB5A-4E47-897F-752F020EA448', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DBF8B5B8-DDE7-4EE8-BD75-17B1C02AA9AA', '231', '36';
COMMIT TRAN ASMS_MODEL
GO

BEGIN TRAN ASMS_LOCATION
    EXEC MD_DMM_DATA_TYPE_COLUMN '795D6E96-BFBE-4CB7-8C9B-4BE19BD4D876', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '79973DFE-1A1A-4638-A122-7DCA31EB0356', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BFF3289D-B119-44E1-A7B3-1B7C00650F71', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B09EAB5E-1702-472A-BF10-85C63E0004CA', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1F2D7B1E-AE38-4DE3-939F-3D07CB42AC09', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2A9A59CB-1B52-4F1A-BFAC-3FBE66A3916A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6D96DB35-9B85-4112-9ED0-994B7174FFB7', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DC0DE2B1-893D-496A-86D4-A4179BBDE50C', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CA17F218-0FC3-48DF-8609-CBB891A7E64B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D654A45B-402E-48FE-8840-0C35807826A4', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3E3ECC9A-F579-43C4-862D-9CC5E3901567', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6DCCA5B0-2356-4A01-A708-F38F11DF06C6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B351428A-80B9-4F23-8D01-9D56B35D464A', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4EDCC4A0-49F3-4DBD-878F-BEA3D5D5EE50', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8055E880-5B95-47F1-91C3-5141C4992EC0', '231', '36';
COMMIT TRAN ASMS_LOCATION
GO

BEGIN TRAN ASMS_INTERFACE
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A340B88D-DAB3-4699-BC41-AA93408D69AC', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0316EC86-6ACF-4C95-B0DD-CBBC2BE90C71', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '919B968F-112B-4D83-ACB6-5761558A08D6', '231', '-1';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EB0145B1-2554-4613-A2A1-B1E5E3D6A72F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7005B8E9-9652-48AE-B7D3-A011D13C82AF', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3748EF1A-94E0-4B71-B816-711C75FA8749', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'AF26EBF8-E8F9-46DA-88D2-E74501860FA9', '231', '36';
COMMIT TRAN ASMS_INTERFACE
GO

BEGIN TRAN ASMS_CONTRACT
    EXEC MD_DMM_DATA_TYPE_COLUMN '58041B21-07EA-4015-8309-ECBB478E4CCD', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8CEAAB21-A4AE-4DC7-98C0-FCBD1E38D3F7', '231', '60';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CD41884F-CC8D-401B-B9B8-59951C1CC14D', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CDDE4114-E1B1-434A-8674-06AE6F666B6E', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '43BFF75B-415E-4704-83CE-6383881C739B', '106', '17,2';
    EXEC MD_DMM_DATA_TYPE_COLUMN '235F9B7A-DBCA-46DB-97B2-6F7215E6413A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2C8F00BC-453C-4E38-B966-FB3FD907D000', '231', '500';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E5E038A2-2E48-49C1-BC88-59A0F786AE49', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B0226297-98BB-4750-8F8B-57ECFA0AFD19', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D7878FB7-3A0F-4686-BEEA-81C70ABD4D94', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DBF714EE-1D0B-480A-BBE2-72DEB02C6860', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0FA8FA79-A06E-408E-AE65-C6C133BEE42B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D9C29096-45C4-4004-BE99-3C3E9B982F40', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C076659D-315B-4574-BB77-8715B29D3830', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B075B957-72D9-4593-938C-F8BC56586E88', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7DE751ED-22A7-4F5B-BFE2-5C7552755FE1', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B15BA1DF-1917-4AF6-9583-4994CDFF3479', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '63BB304C-1B18-4F36-9FF6-F6D55C20397E', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2FE63D3D-F81A-4197-9313-66B42E917617', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8F0547E0-9B92-47D4-AFDE-3E10375FB2A2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '19033CD7-32CF-4E22-9D93-8538D4368F1E', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '23B566ED-4927-4AE3-998D-52101132690D', '56';
COMMIT TRAN ASMS_CONTRACT
GO

BEGIN TRAN ASMS_INTEGRATIONS
    EXEC MD_DMM_DATA_TYPE_COLUMN '01DE5601-0030-4646-8636-086830732F74', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CAD9BD9C-CD53-4F12-9832-6AAB225FC233', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1AF8628F-0C73-40EB-A170-09761C56C295', '231', '250';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F6DE7FA2-2301-45DB-A04E-24F0A2FFB6AF', '231', '-1';
    EXEC MD_DMM_DATA_TYPE_COLUMN '521A2793-7793-4F86-B234-5B94B691A77F', '231', '250';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C49369B7-4B62-4EEE-9C50-51C26399AE01', '231', '250';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1C8F4994-8DAB-42AF-B483-F97479104C6A', '231', '-1';
    EXEC MD_DMM_DATA_TYPE_COLUMN '86C26199-7CBD-47F7-9C49-FC37C034ABC9', '231', '250';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BDC7E42B-D156-45D4-A3DB-6398315AB9CE', '231', '250';
    EXEC MD_DMM_DATA_TYPE_COLUMN '61C8B379-87DC-44F0-BBEB-EAA1D9452E34', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '65A88AEE-3E69-40B8-AE48-FF966892F601', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D6B421DB-E471-483E-9FB8-31E892B966B1', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN '00DA8F9E-6FAE-4EA9-88AE-56422E4E7B09', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8904A161-222A-439D-B953-2360A64A4687', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '313AC1FA-B034-4AF0-BFC3-2B9C06E9C17A', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '02C3E5AE-FA81-4182-B05C-82D0A1B1C3A8', '231', '512';
COMMIT TRAN ASMS_INTEGRATIONS
GO

BEGIN TRAN ASDK_URGENCY
    EXEC MD_DMM_DATA_TYPE_COLUMN '0823609C-C462-4215-8B28-411C323FF19E', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D51855D3-5AAE-4183-AC2E-5F3495A048EC', '231', '500';
COMMIT TRAN ASDK_URGENCY
GO

BEGIN TRAN ASDK_UC
    EXEC MD_DMM_DATA_TYPE_COLUMN '8F5BFA5B-608C-41B3-939C-F803337DCAD2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '34F9A26F-C812-4ECF-886D-AEAC6ED2202A', '231', '36';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D5BE2501-2B90-4345-B02D-928195177382', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B2E5D086-43E9-4E80-A857-18551EE2022D', '231', '4000';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4A253BBD-3055-4635-9FB0-97D633601E8D', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1738375F-A1DE-4C6B-927D-0D7AF842D631', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '90668B51-2D0E-4CF9-94BA-C0ADAC66FADF', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F27E2E82-BDAE-414C-A7DB-0832A29E2CB8', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '52EBBE0C-D9FA-45FB-8D23-FF451C258637', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1103A6EF-EE35-4AA2-8143-C8CB7E545F39', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9C3E9852-DF0C-475D-9D79-7497822679A2', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C6640D4A-2230-4FD9-A166-93409BC578CF', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '987C08C3-F7C4-4B8C-9AF9-35D2FDAE35E7', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FFBFA693-EDDA-4786-A04D-BDFE6F8AFF2F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DFF303D8-DC26-449A-A48F-C4EF2A8A1F36', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C6E8E325-7457-4F9F-A157-9E673195C153', '104';
COMMIT TRAN ASDK_UC
GO

BEGIN TRAN ASDK_SLA
    EXEC MD_DMM_DATA_TYPE_COLUMN '9AA512D5-CB72-4A10-8C18-9ABC1FA22EE4', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '996C5443-7729-412B-A11C-A459FDCED853', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '456FD4EE-8DDA-4494-A721-68D72827D512', '231', '4000';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7FD5A349-419D-428C-8A8A-2941C86B5B4B', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7E1309F7-437D-4941-997C-2D926B8A5284', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '102A9567-F5F3-4550-9B55-584BF02A0A98', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '75C371A6-45E4-46E3-86F5-A2B5561ADE04', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B55F40D6-EB4B-43FB-B53B-647F66398EF5', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A0A8C2EA-B97C-47C7-8EAE-687E824C018E', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DDF29A16-3ACE-4B9B-88D0-2D73D6336945', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '540B93C6-CE1F-4B13-B11D-C27C1023FD10', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '74FBDFB6-09A6-4F1B-9FA7-0A35546D4928', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1DC2C8D1-9D49-41AB-AD57-D4D27493F02F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7BA0BF4B-AC0B-47AD-862B-47F6B4983A75', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7A6ECBC4-FC04-4A1D-97D9-0090709449CC', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN '307D08E1-05EB-48CB-8192-F9DBFAEC57F0', '231', '36';
COMMIT TRAN ASDK_SLA
GO

BEGIN TRAN ASDK_SERVICE
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D13B0C78-C5AD-4172-8985-B868093CF9A1', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A6679144-D904-4E60-A2A1-2BD2CE14EC2D', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN '654043B9-721C-408C-B864-E510FD498F09', '231', '4000';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E8857E78-99DA-4DFF-B286-662E41231C08', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C5DD0BEC-B69B-4052-A79A-757E2FF32377', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2B87712F-3C50-4F64-B5D3-6732D41A83FC', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E639F52D-6F10-4CAF-A09A-F8875472D213', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1A7FAAD7-1A59-4FF5-8C2B-DCC2BBA3F7D7', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '62BD68A7-9B49-420B-B1AE-F3651D6C8FA1', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A9D49596-D0EC-4677-84AD-F8685F279580', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '87917608-D2AD-492A-A5DB-3310B0173E47', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '93B75116-0D7D-4FAC-A50E-248C93D1BB9A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DEF359D4-1033-45FD-98E5-DBE81EEA64C2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '99E8E991-CCE7-41AB-888D-5D3721883CC8', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '031740DD-708D-40DE-B630-0EDA1FFB2D83', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C7509D07-0368-4B9E-B87A-D349643F544A', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5B8AE69F-C97A-4145-ACF0-E1C05172DFE4', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '49DEF214-F5CC-460F-B40F-32319F7244F2', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4ADEE190-481C-463A-B10F-34FF1C6DFF9D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2FCD6FF2-47E1-406B-B7B4-DFF978525F51', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5C58CE25-041D-4564-9D3A-61BF82DE3E1E', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '98BD4A7A-DE34-4766-A06A-CB86E1488DFE', '231', '-1';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B05CF4DF-EF52-45B9-B5A4-A7EA31F41015', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0D7C7F5E-EED7-439A-B03D-3993FF000B5C', '231', '40';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FD789534-743D-434D-8BD0-D699B6647F9C', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A0AB37C4-F4D5-44BA-9300-F3522DEC3CEB', '231', '36';
COMMIT TRAN ASDK_SERVICE
GO

BEGIN TRAN ASDK_REGISTRY_TYPE
    EXEC MD_DMM_DATA_TYPE_COLUMN '5C1C4ECF-E2B3-4342-BD36-9C65822259FA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5E674CFE-4CDC-4015-B28E-2850299CE1B1', '231', '500';
COMMIT TRAN ASDK_REGISTRY_TYPE
GO

BEGIN TRAN ASDK_PRIORITY
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E064E7DE-FAFA-479F-A2F4-95E39A90A727', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3E2B0916-81FE-4B53-BF46-9CA8D39E6A54', '231', '500';
COMMIT TRAN ASDK_PRIORITY
GO

BEGIN TRAN ASDK_OLA
    EXEC MD_DMM_DATA_TYPE_COLUMN '726DB5FB-906E-40AB-ABC1-37A618F9A83E', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6DC09920-CC9D-42F9-9E38-07E6F33837DB', '231', '36';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7500041A-CEBF-4029-A80D-4909A3D7FFD1', '231', '255';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F7D1C94B-146C-4799-AE6B-724EA4D11CF7', '231', '4000';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DF490823-6016-457B-8C1D-84582252D3CE', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FA126E5C-82D1-441E-B031-E5908799BEE2', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '54D9B6C6-E825-4F52-9261-E56E7E6F4AC7', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7373B102-B0A0-4223-99E0-2F28F9A3302C', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C9E5C490-F285-4B16-B031-F0D015A9497B', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '44332B05-CC42-4B34-985E-FE15772BEEDC', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0AF463A7-E00D-42B6-B268-D07449078497', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '84970080-D882-431B-8BDD-C5CA373E342D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '430393E5-BA3B-4AE2-A42B-A397EDD0DFA8', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7E5759A3-5F21-4A58-ACC2-54BD65374396', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EA969010-B428-4385-B6C0-F4036C7058F3', '104';
COMMIT TRAN ASDK_OLA
GO

BEGIN TRAN ASDK_MODEL_COST_PRICE
    EXEC MD_DMM_DATA_TYPE_COLUMN '5148EAF3-05B9-4481-B186-35E981B09BD2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'AC468078-B84F-4AE6-9744-5E91E3EAEF21', '231', '50';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0EAC7909-F75C-4CBE-9A19-733987BCE32F', '231', '250';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CCE5483B-62F7-4981-ADC8-E92337AE7864', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7C14E331-1D4E-41A3-9B26-E78BC55E88B3', '231', '36';
COMMIT TRAN ASDK_MODEL_COST_PRICE
GO

BEGIN TRAN ASDK_IMPACT;
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E32C921D-54C3-4779-8B0E-F99A971DE4D0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4FEC6C14-EC3E-4508-87FA-478B4954D831', '231', '500';
COMMIT TRAN ASDK_IMPACT;
GO

BEGIN TRAN ASDK_CATEGORY;
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D69B29D2-BE59-4248-81B0-043043531697', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'AFAC357D-D041-4BA5-9AFF-B4EF532553B3', '231', '100';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FB616A8D-9836-4B2B-9D5E-44FFE622B027', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C90BB3B2-EB1F-4BF2-845E-F8FDD7980268', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F208BCD7-BBB7-4CFD-A4B3-8C175CEF17DC', '231', '2000';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DF2EC325-9CF1-4B27-9C9B-C7C4A8E2547F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6CD03978-8756-4FBA-B3BA-30A624FDBA8C', '231', '-1';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CF4B6700-5533-4E2C-9214-9E816DCFFF7B', '231', '-1';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B7A55F0F-AA4B-468B-AAEC-12BA342032E3', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '182BD292-50DE-4F4D-99CC-5ABEAA12E46D', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B3D46ADD-C2FE-40D6-B376-E382CB6A21D4', '231', '36';
COMMIT TRAN ASDK_CATEGORY;
GO

BEGIN TRAN DIM_DATE;
    EXEC MD_DMM_DATA_TYPE_COLUMN '2FFE1FDC-745F-4C13-AA0D-9996E159D8A3', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0E0E49FA-E513-4A45-B175-4AEB928AE723', '40';
    EXEC MD_DMM_DATA_TYPE_COLUMN '24DE8282-E52A-404E-BF34-C4EE7DB5C33E', '52';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3F1C40F5-9820-4FC6-9484-160408B48878', '52';
    EXEC MD_DMM_DATA_TYPE_COLUMN '751FC206-DE60-4D60-9837-301780E8B34F', '48';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E3E45F36-A1A2-4E9E-816B-B7DED7D2BA16', '48';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BD0EC26D-B6DB-457A-AB6E-F799CFDC82A3', '48';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D9AC6754-E733-40FB-BD96-0E0E3BE9DA83', '231', '10';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CE9F100E-4E66-4DF6-A5F9-80FF0E407EF2', '231', '10';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2367739B-9E63-4F47-978A-E1BCF4B7F06A', '231', '10';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C806BF56-E223-424B-87CE-38D4981C574D', '48';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CE20A74F-870D-4097-A056-EF9722D7D253', '48';
    EXEC MD_DMM_DATA_TYPE_COLUMN '84E157B0-36AE-491F-8E78-1BDC7FF04084', '231', '20';
    EXEC MD_DMM_DATA_TYPE_COLUMN '66B15A8F-4B90-4877-8133-8E0A9FF50A5F', '231', '20';
    EXEC MD_DMM_DATA_TYPE_COLUMN '26AB0FD1-0C6E-4F5C-BACF-E90B40E24645', '231', '20';
COMMIT TRAN DIM_DATE;
GO

BEGIN TRAN V_FACT_ASDK_ITEM;
    EXEC MD_DMM_DATA_TYPE_COLUMN '1AA9D84D-A2F8-4E2B-B672-1F1E17C69FEE', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '734756BC-251A-4A02-ACEF-6716EDBDC3F1', '231', '256';
    EXEC MD_DMM_DATA_TYPE_COLUMN '62F07BF6-59CD-422B-B51A-66A46038C02B', '42';
    EXEC MD_DMM_DATA_TYPE_COLUMN '498FE6CD-57B2-46F6-AED5-ACA23E600DFA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D27DF1E8-7D40-43A6-9F72-A79D7355DFF0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C0E3F613-3DDE-4095-A88D-A5C387AEFB11', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '609B6874-FF75-48A4-9264-93E3E832DEE0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8F636DA3-6F9F-42F8-BC09-2FF89CCC5387', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '355884C8-243F-4F68-A4D3-DEB93EDB8368', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2534E060-FB42-491B-A0D1-F7B392740D2D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E03EEE92-F1D1-407F-B32E-0BF90C8E3A01', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2E9ABF44-1C04-411B-9F67-FCC0D5226890', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9C62493D-F83C-4DCD-B66A-6D5F20158B93', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B3055E5F-CEFD-4ADF-AC68-E80FEBB4C3A0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FE124D0E-230E-4F0D-97ED-80F385B82C9F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3D7E74ED-8599-4C23-A627-7E11BA8CA960', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DF808BC7-704A-4AEE-99DE-FA8FE7B29562', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F010AB70-2C2B-4426-B01F-E20D6E389D65', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B4C74BC8-75C5-4715-8A41-94B10D6EC6BF', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8ADEC568-1FFF-4E05-B13C-807D639D5304', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BAAFA61E-3705-4C12-9841-6041B425075C', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BC5C094B-11B5-4D98-A7BA-8EDE78322DE6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F9B5FF18-6E9E-4428-9B06-4FE0045DC69B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8382E9BA-D79F-48B0-9005-CC20DB3E9A38', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BEA8F45F-791E-4CF2-AB36-50234E36A2DE', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3D63F88C-FE49-443C-A0A0-C9CD55BC4F56', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1AC09DD2-D736-41FB-A0D7-36827BDE3965', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6F65CA63-B930-47EB-8F45-9D36E09B4981', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7B345D80-24D1-4BE8-938C-10CCD25ED0F6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '56FC6BF9-106F-49DE-8057-3161D165DB14', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EAB65F53-125D-4AFE-B0B5-56081BA80284', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '82CAD25B-505D-420E-B757-DFB400B41EBA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E97E0987-2BEC-42C4-AE7A-501C517026A7', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A9C82E75-3EF9-48A3-B072-CD65F133AAD0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F98C128E-BC8E-4CFF-8A11-0F2A0F48C724', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '35466CF8-9DE9-4ABD-883B-CEB424446226', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DAC13E84-059F-42C9-8176-31900BCB88C0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3EA9D891-2C45-4809-8720-ADD2B841A161', '231', '100';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FE7045D4-A9D3-4B6E-8DAD-393A8C67F981', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '81590478-3FE8-414B-AC3D-16D1D0A0C9FA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0E96B934-47AE-41AB-BE1E-BCEEA8223C1F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '832035AD-A295-41DF-B500-E60C77218149', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E59A800D-F7F5-48FD-B7DB-BD31D011E607', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BB5998B6-07AA-485C-9B79-BAD366871A11', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '12CCCF43-F3CD-4749-88B0-2D35C1324FC0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '69AD677A-7BB2-4FA3-A620-FF0685236CF9', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '498E7058-C537-4718-B68F-0DDEEAF8BE1A', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '93419234-0F7A-4EF2-A3A3-5814B9FF09BC', '167';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CD3D1EEE-BCD7-47D3-B496-A141A2FD771F', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1514D93B-AB4F-444E-8874-CAFC749FBEAC', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1E363CE8-8B84-4EFB-8D79-47F385FCDD88', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D74083A0-F63A-4512-8435-1A3708E46BDC', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D8BADD55-5524-437B-B9F4-88A3E1F7834D', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8244171E-581F-4857-A43A-ED0F06727DAC', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6ED6A4D1-8D64-4198-9C79-8893E5F6B500', '104';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E417AEDD-9E82-4A51-96C5-F6F14F3A55F1', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E033D168-540F-4F38-ABFC-8E69B5D730B7', '167';
    EXEC MD_DMM_DATA_TYPE_COLUMN '09BF79ED-63D0-4588-A94E-C1CA069F6244', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3D8B29A9-7BFA-4EF8-AE9C-A91C2FF866EE', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FAA5818C-261F-44F3-B6D9-4B2AD66EE09D', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A6C30D6C-3ACE-4CCD-865D-371A6B851132', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DE172623-BD0D-45B3-8C57-1581DFE92470', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4675B8CE-C4E3-4A53-8936-16D14FBC82F6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '60F641B5-8BAE-427E-AD9C-117D0E37D16C', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '17116B03-A8C1-471A-B072-A7EBB3FBA80D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '859C5B5D-951E-4ABC-869E-08393518BDE6', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8E254678-FE91-4102-85DC-8FE306CA10D2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D13512A3-C809-43A4-AB37-0CE902E36BB2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EDDE0360-6149-4C2E-89B6-67F9BBF1886F', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F78EC243-7D4C-4E55-B954-FA0BA82D33C2', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '47EDF284-DE18-43F1-9728-1191C84A58F9', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BD9D5DA7-C783-4C3D-9469-06A7B570C00E', '42';
    EXEC MD_DMM_DATA_TYPE_COLUMN '59998A4C-D77D-4D64-8C49-5D99739B1271', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E9FE5658-E802-4691-BFA5-64F1F34CE647', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D120800F-71C6-4B2B-9591-F68E50A02156', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '479518C9-1096-44CE-9A1F-5B99F4F8D623', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2A8A9290-72C5-405F-B4A6-E3291A0757D3', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '733D150E-5F1A-4E9A-A0A3-B1E77465A473', '42';
    EXEC MD_DMM_DATA_TYPE_COLUMN '520F8D3A-BECF-4EB9-BFB4-3284671D65C4', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '084891E4-4DFF-4E99-9FD8-E27A38960E45', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D794987E-5BC9-4963-87CD-D0A12FE39F6F', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '607A11BA-E8BA-4585-9B99-43BBA9E95EB3', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '963A1754-3C55-4429-BA88-77FF6F2632E4', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6F59E5E6-9927-4774-ADC9-877B53DBDD41', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2E648CFE-62F3-465E-9AD2-A4DD9BA3F136', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2D5CDFD4-C472-4B73-A543-E04C8C44B4F5', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DA5A114F-C469-4475-A2F4-536054175DEC', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2C8D0100-750E-480E-9828-F59BD809A30B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C539D355-C3DF-4E9D-A38B-39B351F07D1E', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E2973691-4168-4366-8B5F-59EDD00F0BB2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '739EA3A6-8287-4C05-8272-2D55D119E09A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '575E7523-6ADF-491B-9A4C-3FC75A4DCD8C', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '17EE478B-623D-4C11-8C78-1C78196979CC', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8E62FA5E-5CAE-456C-A223-5D73807C9F58', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'ADE8B6C1-8E7A-4961-9C93-F45666B68290', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D81FE469-C93F-4B38-A55D-CD0362B24C13', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4934C384-B840-4880-A913-0D341B9C63A0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '78F7857B-09D1-4130-923B-B2014B7D47D2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B089B77C-52C7-41F5-A197-85C7D986A1DA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BBC0C343-551E-4256-B281-76D3AD8921FC', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3332F008-E97B-468C-B444-9084DB251FCF', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '80F2219E-F4CA-4996-88BF-A1337BCDACD2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8E793D3C-A698-4D6D-8A66-765EE206EB22', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '852E566E-8E70-4971-8E59-3F830AE5E6AD', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9A69618B-E5F5-424E-89B1-1466CA59EDD3', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FBDE1613-6560-47D9-907F-3D2F232B9B8A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5B2195AD-F88E-4583-8E58-20FD09FA31C0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F00297E8-8A46-4A91-BA57-74EEEBAE1056', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D293CCB4-550D-4124-A574-C19DA899191D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1CA3B6BF-2A50-49CA-ABFA-9503C6E3C09E', '56';
COMMIT TRAN V_FACT_ASDK_ITEM;
GO

BEGIN TRAN V_FACT_ASDK_ITEM_REVISION;
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D2DE6CD2-4A7F-405F-81F7-42BBAF2BD2BA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E895E9B5-3E70-40EE-801E-8B6EF725D7B9', '231', '256';
    EXEC MD_DMM_DATA_TYPE_COLUMN '667C71CF-DB8D-4DDE-9F09-2A01C68943C5', '42';
    EXEC MD_DMM_DATA_TYPE_COLUMN '457F313A-0CBF-40A2-A167-EE5D5AAD06DC', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E8FB4D1B-F1CF-46CF-95DE-911BAFA55A96', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '371AAF4C-C285-469E-9F9D-EA2C4F18B955', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3351FC7A-870A-4775-B72D-8D4FFA2B5B22', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DC31A718-B3AB-44AD-8AEF-A9561A3BCC11', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BFE82D77-9AB8-4E57-9B97-9F5242AAC818', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '114EA889-3B72-4792-8947-2DA1B5A87EA6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EF9D68E6-CD8E-4733-A0F5-A18D4B1E3DA2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F083244D-4279-4931-8C79-99BF2CE2DECC', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6EFADFC9-667F-40FB-B5AF-A14BAEF2BF21', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '308479B0-86B8-4EA0-AC82-1084E6E4A78C', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1664F0E5-9B64-4B4D-9C1F-2430E26416C2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2406A255-AA98-4A3A-9F46-15F6AA52DA0D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '69EF15D2-2E04-4F55-8F27-564EE4C60CE2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '216C7873-6B95-40A4-97AF-D24ED401A9E8', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D4695E1F-2A64-43A9-8D32-ED4A5900E0A6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C8F53856-FEC8-41A2-9A85-F80B3E683FB2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F671E12D-B0B8-46C7-AFC8-D858FF967C98', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9AD140F8-055A-4661-932B-CFFE1B71D298', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1D7E4AC1-A2E3-49ED-9A38-AF57480B2183', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'ADF1C08A-0EC5-4F68-8B67-3BB802106C19', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '72D952BD-DBF4-44BF-B5BC-8403A3134E7F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '689290B6-3474-4A23-A9D1-8908CF350907', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0E177C33-B0FC-4ADB-86C0-862CEC769A76', '231', '100';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E5A6C13C-7CF9-4265-8A3C-25A86B59A7F2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A4A0CCF6-71AB-433F-80C9-0A8DE27DB81D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '070F05A0-F333-4BB3-91B4-EC32E7831274', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CEBC1C96-C79B-4D78-953B-5F2B86B8A763', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1845E230-8C80-408F-8BD6-7A48C38A51C6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C8797D66-55F6-445D-9D56-3672CF1ECFF2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '431EE4E8-AE19-4290-B188-BE0B334852BE', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D768DFF0-91BB-45FE-AE93-FF1D4F5ED98C', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1AB8B57A-E187-48DB-AB89-6CA29589D019', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BAE95889-722E-47B6-ACD9-561B2113E61D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2AA684ED-3B43-4F11-9612-B33A06E74D44', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E5592433-D9E5-4256-9D07-ADA023A14EF4', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '618D45EF-A7E7-49AB-BEF2-29E7149FFF4C', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D09F83B3-1BBE-4A97-9A6C-D7567DD2A538', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F7E7CF6A-B5B2-4485-B148-DAF428167E4E', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4A73EB50-F350-4176-8C5B-BCBF43A458D6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7F946762-E849-40DE-A2A1-3B79B8D2B321', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8073A114-288B-49CD-99FC-B9760271F1CB', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EA27EE58-CB28-4BE0-B0C7-10F66B3F38F4', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '60075B97-D489-4C14-9972-AB675E008247', '167';
    EXEC MD_DMM_DATA_TYPE_COLUMN '98EA6AB2-88D2-4540-860D-3701FABB13E5', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '49573B54-438A-4321-A951-7A8E57DA816D', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6D8A22B7-BBF0-4724-A0BD-50A91B7FACC3', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B5F53136-DC7C-449F-8D5A-BF88E6CC08BB', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2AB640AE-E92E-4145-AEC7-D66D37A229AE', '167';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4E772BED-EAF3-4FB5-934A-AA841F05DEBC', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E978B79B-23D4-4F2B-B8A0-AA582C79BFDC', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '02698765-86F7-4457-89FB-40C098FEC2E7', '62';
COMMIT TRAN V_FACT_ASDK_ITEM_REVISION;
GO

BEGIN TRAN V_FACT_ASDK_TASK_REVISION;
    EXEC MD_DMM_DATA_TYPE_COLUMN '5866E0DB-6B18-4E61-9F27-C7F5D066FC9B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A3B5D44F-D239-4863-AC4F-64CFD93142D2', '231', '256';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9BADB3A8-6DBF-4323-92DF-548CEAF68004', '42';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A8D11928-F64A-465A-A1DE-86B9E51F0967', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '189698DE-DAC0-4CAC-9138-49C2C5D958B1', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '396295D9-1DCA-4CEF-B7BE-CADDA96E8516', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2F2D424A-8AE1-4CF4-AC74-FF224CE10006', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6DE3E73F-85B4-4F90-BBFD-9F7F66CEAE71', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B5C0A3E7-4E7E-450B-BFF2-DBA4A4B255A4', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2AECDAC0-F0F5-4203-9970-43096084FC60', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '08A28BA5-8B1B-44E2-8A11-2179CFB821A1', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '463E31D9-D5B6-4C27-9031-AE2D73AD00CB', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CD3B25EA-D7F8-4470-853C-B24D97E463A6', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5F454B39-3428-4E90-AAFE-691E5C870019', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '32798E2B-3DEC-48E4-869B-C5C2BCA39299', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '11A8A57F-3962-4A30-9CD7-5CEBFA907B43', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '31917557-515D-41F8-9260-B93369336E08', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '997ED351-BAD1-48BB-822F-5EAB17FD8C57', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E16EAF7F-A66C-4F6D-94CA-89E493CE1D6F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FE5BA7E7-C51B-4C03-ADD3-2509FB004DCD', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2B40DB8B-F12E-46C9-AE69-7639AFD87095', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0DC9E522-B8BA-4A6E-A221-808D1B4B784D', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B22F5F5C-BA2F-402C-A2D7-8DD59357BE25', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '594740F2-93D1-44C9-9E5A-00CAF1F06D70', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '75705769-969D-4064-B32E-2E00C7FB08F3', '167', '20';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3889892E-C8FC-4DC2-A7ED-61255E6AAFEF', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C855F066-3FB2-4642-807E-3BF37CE667C9', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E171E7C9-58FF-44AE-8E2E-B70D96E8392C', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '72B9D7A6-6A93-46AF-8AD2-AD7889B463E3', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CBCB0FB1-4216-4794-B919-07D7EAB507C3', '167', '20';
    EXEC MD_DMM_DATA_TYPE_COLUMN '00C649CB-CB04-46B3-8C8F-C8DCD7DDC052', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BF01F576-2750-4143-8153-BAC2EF5EB1DE', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5CD1ABCF-D077-4984-8714-98BB7F7D82D4', '62';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B3C610E7-C4EC-4CF9-8BDD-55A2E68973B9', '167', '10';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B0E29520-271A-4DD5-8E9A-0C7DAA627E49', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DE38D753-F537-4AE0-8ECB-F0B6C02AC054', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '771DC226-A709-4B60-BC49-731E35C534E3', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '03359064-F1A0-4080-AD00-F96069485AAB', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '220D6BF8-10E4-4B83-BB6A-8ECBF324A52E', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A2F2A6CB-7948-4B97-9F93-8F0FB94DD9D5', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5DCC3B8E-EE67-447C-B1A6-751124A6B733', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '69B85D34-4349-41F8-9BED-B216C921E410', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0B2A677F-B51C-44FD-AD98-FEF5F057E426', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2035CB84-7632-44A0-AF7F-C9AC55EEEC0A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '653A714F-3A6C-4F48-8530-484C96726220', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6A051810-F4A9-4EC7-A2E3-5E584ABF776B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DB913588-F865-47B6-887E-2A8375911D18', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4B32A855-0072-4932-BE2C-CE8F0528EAB3', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '1F359072-C3B9-4AD6-A5D0-B002924969E2', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B8BEE6AA-AF31-4711-9184-5BE2C01CCAEA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8D10C875-C01B-4D22-A148-8F4F4F554571', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A1F210BB-4AB2-438F-A105-A948D1F834DC', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '79AE1787-E4D2-4076-AE92-59331F42436D', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F3A4E2A6-CA5E-4316-AFD0-7D5DA21A0367', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C13995CF-8EC4-4C89-A79A-B22FF2A0EF9B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8873FC1E-C1CA-43CA-86B9-B114623B7E65', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '2D62A732-48FF-4A85-8EC0-AA847B0AB8BB', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4AA3D14D-8C83-4513-801B-4CA2F67CF03B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4DF01BDE-6214-4EFD-9E69-D88723E6823C', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EE360BB6-C93F-4A4E-BD74-CFD8E53DA3A0', '56';
COMMIT TRAN V_FACT_ASDK_TASK_REVISION;
GO

BEGIN TRAN AFW_SURVEY;
    EXEC MD_DMM_DATA_TYPE_COLUMN '37B8E778-4F8D-4E1E-9FF7-2AAD8AD2D119', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '21ED87F4-F1E3-40C3-AAC4-DB839592276E', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6C9F1D6C-48F3-45F2-A231-B494B82B8E64', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '994CDFAF-F811-42C2-B415-46FB7C8BA665', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C64C197C-22D9-41B6-9348-3366EDFC6147', '231', '2000';
    EXEC MD_DMM_DATA_TYPE_COLUMN '065B2246-86DB-49DF-BEFA-3FE735D97E04', '231', '500';
    EXEC MD_DMM_DATA_TYPE_COLUMN '14DF117F-0969-4DC0-91B1-23ADC2249F1B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '75C39C9C-D005-4659-A74B-1BCD25A26D5C', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '24F01C8F-3D95-4075-B555-11565CBC0F4C', '231', '1000';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C5E2FD57-988B-411C-B4BD-1866F30B021B', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'ECE9A389-3930-4B3C-A66E-DCBA4975B393', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'A3A866CE-8FDE-4526-BE27-CD350F3C8CEB', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D232CA66-1D70-4E1A-919B-0BE5E14C0C6D', '231', '1000';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3E2B4D78-864D-43D8-B6A3-9BEF48804326', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BBEBE3E9-04AA-44CB-9FEE-A21B2D45F606', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'E7301723-E42C-4E99-BE17-7E3E8678CC6A', '231', '100';
    EXEC MD_DMM_DATA_TYPE_COLUMN '237F1443-DF61-43E6-8A8D-6C0EEDFBDC65', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'DF615929-2AF6-4FE3-AFCF-744ED1B29635', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '9BA85A42-67E6-4FF1-99B4-05D2C85A9373', '56';
COMMIT TRAN AFW_SURVEY;
GO

BEGIN TRAN AFW_SURVEY_QUESTION;
    EXEC MD_DMM_DATA_TYPE_COLUMN '6E404689-0568-4CD3-BC3E-FDFE3AF152A7', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'AD899CF8-16E5-4A43-8C12-B675720541E4', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4AD025F9-1843-46F9-B83B-6AFB8676090C', '231', '200';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F5A38D42-08D1-4172-96FD-7098577633A8', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3CD84E14-8513-4047-8DA3-809C9C9DB595', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '78E512CA-EA49-4EC1-8278-8508AE71838E', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4F5803FB-E8F0-4281-91FB-85FC976C693F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'FDF7AE6C-0267-4D8C-AC63-A16263F21949', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CC52B9E6-6264-461A-A480-A34048728A51', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7C1D13C2-458F-42B8-B397-694EE7893C2A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D747B5CD-4963-42C1-9F80-1E8F017D91AA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '8221AF23-6250-4DE8-BC5B-223107A97D2A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '08A5701B-E396-467C-87AD-2D5FA1B89C2E', '231', '4000';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D6EB7B4D-64C0-48C0-8EFE-E068C9BD38AA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '81B10182-5C04-43B8-83A3-C7EB9E110B3A', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '7BB64540-2232-43D0-85AF-BB93EDCD7D71', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'BB10FF39-30B4-46BC-9505-A6AD4A1C2E4F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '3B86EF33-DD39-4932-8B86-AFC55718490B', '231', '200';
COMMIT TRAN AFW_SURVEY_QUESTION;
GO

BEGIN TRAN AFW_SURVEY_QUESTION_TYPE;
    EXEC MD_DMM_DATA_TYPE_COLUMN 'F230B04F-5311-40D7-ADF3-2B0DF5F5E353', '231', '70';
    EXEC MD_DMM_DATA_TYPE_COLUMN '5B87FCBD-FA39-4E7E-991A-7F2C79E48776', '56';
COMMIT TRAN AFW_SURVEY_QUESTION_TYPE;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY;
    EXEC MD_DMM_DATA_TYPE_COLUMN '818DBFD2-596D-4287-AD65-500BD32E76E3', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '266ED85F-CC54-4AD5-BC96-09BD8282F4B3', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN '32088D34-A05B-4A6D-B3AC-8C1FC1A55C60', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D0B34D67-FDB6-4F85-A33A-6AAC0CC22339', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4028306C-D28D-49E0-9036-6EF051D76D11', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'D050D5C9-25CD-4B5B-A980-59D1B4768078', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6A0576E5-D185-4C0E-8A3E-5A4853A4B9CB', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '4EAED294-D156-4073-BD56-225231B9C218', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '6E3957DF-4A65-4C4C-9548-260BA7984F71', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '32815D4F-3B1C-4C6A-9864-3E0FDE85CF35', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'CE0739DF-8F16-4587-BF68-3EE5F064A54C', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0BAA11F2-8A9B-4305-9427-E3091C96CB93', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '0BB2B8AB-06D5-4247-A7D1-DB50FCD3C986', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '798CEA43-4C2C-41CC-BE0F-C9D4F5C2C9E0', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '966D8E5E-E4BF-4FB5-B4B4-D4EB7F531ECA', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '43631548-DF03-449E-AE1E-B56AFBF13B5F', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '604237DF-60E8-4B50-86BC-04F1E0CC3302', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '50DDB002-14D7-40AD-9AAD-09A3DF1FE097', '56';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY;
GO

BEGIN TRAN V_FACT_ASDK_USER_SURVEY_SENT;
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EFE7EF1F-F2BC-4C0B-880C-FBAFC3345DDA', '61';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'B3106C22-DC3B-49F2-A560-521B77FEB810', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'EA5CCB71-5117-4939-B113-52913369B4F8', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '00C64D56-D6D3-4CD3-8669-4813E1F02DAB', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN 'C6502C53-1D44-4D36-9A09-9C475A4BA407', '56';
    EXEC MD_DMM_DATA_TYPE_COLUMN '76AA6292-19D6-4DDF-BFE9-A42A5364B2C0', '56';
COMMIT TRAN V_FACT_ASDK_USER_SURVEY_SENT;
GO
EXEC MD_DMM_DATASET_PARAMETERS '1F281886-139B-4CA8-8D1B-92FE5A3FD77B', 'C265AF16-85E7-4425-9AE7-3308DB0FCB13', 1;
EXEC MD_DMM_DATASET_PARAMETERS '4B88B921-B24B-4082-85FE-FB3F50F5C01B', 'C265AF16-85E7-4425-9AE7-3308DB0FCB13', 2;
EXEC MD_DMM_DATASET_PARAMETERS 'DA8001B5-14D3-49EB-B065-DE57D0654E85', 'C265AF16-85E7-4425-9AE7-3308DB0FCB13', 3;
GO
EXEC MD_DMM_DATASET_PARAMETERS_MAPPING '1F281886-139B-4CA8-8D1B-92FE5A3FD77B', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '498FE6CD-57B2-46F6-AED5-ACA23E600DFA';
EXEC MD_DMM_DATASET_PARAMETERS_MAPPING '4B88B921-B24B-4082-85FE-FB3F50F5C01B', '46E4A160-6F0B-4E4A-AD14-27F318FBF6C2', '1AA9D84D-A2F8-4E2B-B672-1F1E17C69FEE';
EXEC MD_DMM_DATASET_PARAMETERS_MAPPING 'DA8001B5-14D3-49EB-B065-DE57D0654E85', '07435893-924A-428C-AF33-FECB3675DDD6', '12EADC33-51AF-4451-BB9A-7F5FF77F2B12';
GO

/*
--------------------------------------------------------------------------------------
Metadata Para Componentes
--------------------------------------------------------------------------------------

*/

CREATE PROCEDURE [dbo].[MD_AFW_SURVEY_QUESTION_TYPE]
	@id				INT,
	@name			VARCHAR(70)
AS
BEGIN
		IF EXISTS (SELECT 1  FROM [AFW_SURVEY_QUESTION_TYPE] WHERE Id = @id)
		UPDATE [AFW_SURVEY_QUESTION_TYPE]
			SET [Id] = @id,
				[Name] = @name
			WHERE Id = @id
		ELSE
			INSERT INTO [AFW_SURVEY_QUESTION_TYPE](
				[Id], 
				[Name]
			)VALUES(
				@id,
				@name
			)
		
END
GO
--METADATA
EXEC [dbo].[MD_AFW_SURVEY_QUESTION_TYPE] 1,'Ranking'
EXEC [dbo].[MD_AFW_SURVEY_QUESTION_TYPE] 2,'Open'
EXEC [dbo].[MD_AFW_SURVEY_QUESTION_TYPE] 3,'MultipleChoice'
EXEC [dbo].[MD_AFW_SURVEY_QUESTION_TYPE] 4,'MultipleResponse'
EXEC [dbo].[MD_AFW_SURVEY_QUESTION_TYPE] 5,'Mixed'


Print 'AFW_SURVEY_QUESTION_TYPE DONE!!'
GO




--/*
----------------------------------------------------------------------------------------
--Metadata PARA ASDK			
----------------------------------------------------------------------------------------

--*/

--INITIALIZE DEPLOY

--/*
----------------------------------------------------------------------------------------
--Metadata PARA ASDK			
----------------------------------------------------------------------------------------

--*/

--INITIALIZE DEPLOY
CREATE PROCEDURE MD_ASMS_BRAND_CONSOLE (
	@i_id INT,
	@i_console_id INT,
	@i_colors NVARCHAR(MAX),
	@i_images NVARCHAR(MAX),
	@i_carrusel_images NVARCHAR(MAX),
	@i_is_bulitin BIT,
	@i_css_file VARCHAR(MAX),
	@i_html VARCHAR(MAX),
	@i_path VARCHAR(2000),
	@i_texts VARCHAR(MAX),
	@i_fonts VARCHAR(MAX)
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_BRAND_CONSOLE
	WHERE id = @i_id;
		
	IF @v_count = 0
	BEGIN

	    SET IDENTITY_INSERT ASMS_BRAND_CONSOLE ON;
		
		INSERT INTO ASMS_BRAND_CONSOLE (
			id, 
			console_id,
			colors,
			images,
			carrusel_images,
			is_bulitin,
			css_file,
			html,
			path,
			texts,
			fonts
		) VALUES (
			@i_id, 
			@i_console_id,
			@i_colors,
			@i_images,
			@i_carrusel_images,
			@i_is_bulitin,
			@i_css_file,
			@i_html,
			@i_path,
			@i_texts,
			@i_fonts
		);

	    SET IDENTITY_INSERT ASMS_BRAND_CONSOLE OFF;

	END;
	BEGIN

		UPDATE ASMS_BRAND_CONSOLE
		SET
			console_id = @i_console_id,
			colors = @i_colors,
			images = @i_images,
			carrusel_images = @i_carrusel_images,
			is_bulitin = @i_is_bulitin,
			css_file = @i_css_file,
			html = @i_html,
			path = @i_path,
			texts = @i_texts,
			fonts = @i_fonts
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_DISPLAY (
	@i_id INT,
	@i_application_id INT,
	@i_name NVARCHAR(400),
	@i_key_name NVARCHAR(400),
	@i_seq_order INT,
	@i_region INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT @v_count = COUNT (1)
	FROM ASMS_DISPLAY 
	WHERE id = @i_id;
	
	IF @v_count = 0
	BEGIN

		INSERT INTO ASMS_DISPLAY (
			id,
			application_id,
			name,
			key_name,
			seq_order,
			region
		) VALUES (
			@i_id,
			@i_application_id,
			@i_name,
			@i_key_name,
			@i_seq_order,
			@i_region
		);

	END;
END;
GO
CREATE PROCEDURE MD_ASMS_FIELDS_BUILTIN (
	@i_id INT,
	@i_name NVARCHAR(50),
	@i_caption NVARCHAR(50),
	@i_description NVARCHAR(250),
	@i_field_type_id INT, 
	@i_item_type_id INT,
	@i_catalog_id INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_FIELDS_BUILTIN
	WHERE id = @i_id;
		
	IF @v_count = 0
	BEGIN

	    SET IDENTITY_INSERT ASMS_FIELDS_BUILTIN ON;
		
		INSERT INTO ASMS_FIELDS_BUILTIN (
			id,
			name,
			caption,
			description,
			field_type_id, 
			item_type_id,
			catalog_id
		) VALUES (
			@i_id,
			@i_name,
			@i_caption,
			@i_description,
			@i_field_type_id, 
			@i_item_type_id,
			@i_catalog_id
		);

	    SET IDENTITY_INSERT ASMS_FIELDS_BUILTIN OFF;

	END;
	BEGIN

		UPDATE ASMS_FIELDS_BUILTIN
		SET
			name = @i_name,
			caption = @i_caption,
			description = @i_description,
			field_type_id = @i_field_type_id, 
			item_type_id = @i_item_type_id,
			catalog_id = @i_catalog_id
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_INTERFACE_BUILTIN (
	@i_id INT,
	@i_resource_name NVARCHAR(MAX),
	@i_member NVARCHAR(MAX),
	@i_field_type_id INT,
	@i_select_member NVARCHAR(MAX),
	@i_class_name  NVARCHAR(255)
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_INTERFACE_BUILTIN
	WHERE id = @i_id;
		
	IF @v_count = 0
	BEGIN

	    SET IDENTITY_INSERT ASMS_INTERFACE_BUILTIN ON;
		
		INSERT INTO ASMS_INTERFACE_BUILTIN (
			id,
			resource_name,
			member,
			field_type_id,
			select_member,
			class_name
		) VALUES (
			@i_id,
			@i_resource_name,
			@i_member,
			@i_field_type_id,
			@i_select_member,
			@i_class_name
		);

	    SET IDENTITY_INSERT ASMS_INTERFACE_BUILTIN OFF;

	END;
	BEGIN

		UPDATE ASMS_INTERFACE_BUILTIN
		SET
			resource_name = @i_resource_name,
			member = @i_member,
			field_type_id = @i_field_type_id,
			select_member = @i_select_member,
			class_name = @i_class_name
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_INTERFACE_CONSTANTS (
	@i_id INT,
	@i_name NVARCHAR(255),  
	@i_value NVARCHAR(255)
) AS
BEGIN

	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_INTERFACE_CONSTANTS
	WHERE name = @i_name;
	
	
	IF @v_count = 0
	BEGIN
	    
		SET IDENTITY_INSERT ASMS_INTERFACE_CONSTANTS ON;
		
		INSERT INTO ASMS_INTERFACE_CONSTANTS (
			id,
			name,
			value
		) VALUES (
			@i_id,
			@i_name,
			@i_value
		);	 

		SET IDENTITY_INSERT ASMS_INTERFACE_CONSTANTS OFF;
	END;
END;
GO
CREATE PROCEDURE MD_ASMS_INTERFACE_FUNCTIONS (
	@i_id INT,
	@i_field_type_id INT,
	@i_name NVARCHAR(255),
	@i_value NVARCHAR(255),
	@i_parameters  NVARCHAR(MAX)
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_INTERFACE_FUNCTIONS
	WHERE id = @i_id;
		
	IF @v_count = 0
	BEGIN

	    SET IDENTITY_INSERT ASMS_INTERFACE_FUNCTIONS ON;

		INSERT INTO ASMS_INTERFACE_FUNCTIONS (
			id,
			field_type_id,
			name,
			value,
			parameters
		) VALUES (
			@i_id,
			@i_field_type_id,
			@i_name,
			@i_value,
			@i_parameters
		);

	    SET IDENTITY_INSERT ASMS_INTERFACE_FUNCTIONS OFF;

	END;
	BEGIN

		UPDATE ASMS_INTERFACE_FUNCTIONS
		SET
			field_type_id = @i_field_type_id,
			name = @i_name,
			value = @i_value,
			parameters = @i_parameters
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_INTERFACE_OPERATORS (
	@i_id INT,
	@i_name NVARCHAR(255),
	@i_value NVARCHAR(255) 
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_INTERFACE_OPERATORS
	WHERE id = @i_id;
		
	IF @v_count = 0
	BEGIN

	    SET IDENTITY_INSERT ASMS_INTERFACE_OPERATORS ON;
		
		INSERT INTO ASMS_INTERFACE_OPERATORS (
			id,
			name,
			value 
		) VALUES (
			@i_id,
			@i_name, 
			@i_value
		);

	    SET IDENTITY_INSERT ASMS_INTERFACE_OPERATORS OFF;

	END;
	BEGIN

		UPDATE ASMS_INTERFACE_OPERATORS
		SET
			name = @i_name, 
			value = @i_value
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_INTERFACE_TYPE (
	@i_interface_id INT,
	@i_item_type_id	INT,
	@i_interface_type INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_INTERFACE_TYPE
	WHERE interface_id = @i_interface_id
	AND item_type_id = @i_item_type_id
	AND interface_type = @i_interface_type;
		
	IF @v_count = 0
	BEGIN
	    
		INSERT INTO ASMS_INTERFACE_TYPE (
			interface_id, 
			item_type_id,	
			interface_type
		) VALUES (
			@i_interface_id, 
			@i_item_type_id,	
			@i_interface_type
		);

	END;
END;
GO
CREATE PROCEDURE MD_ASMS_INTERFACE_TYPE_CONSTANTS (
	@i_constant_id INT,
	@i_field_type_id INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_INTERFACE_TYPE_CONSTANTS
	WHERE constant_id = @i_constant_id
	AND field_type_id =  @i_field_type_id;
	
	
	IF @v_count = 0
	BEGIN
	    
		INSERT INTO ASMS_INTERFACE_TYPE_CONSTANTS (
			constant_id,
			field_type_id 
		) VALUES (
			@i_constant_id,
			@i_field_type_id 
		);

	END;
END;
GO
CREATE PROCEDURE MD_ASMS_INTERFACE_TYPE_OPERATORS (
	@i_operator_id INT,
	@i_field_type_id INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_INTERFACE_TYPE_OPERATORS
	WHERE operator_id = @i_operator_id
	AND field_type_id =  @i_field_type_id;
	
	
	IF @v_count = 0
	BEGIN

		INSERT INTO ASMS_INTERFACE_TYPE_OPERATORS (
			operator_id,
			field_type_id 
		) VALUES (
			@i_operator_id,
			@i_field_type_id 
		);

	END;
END;
GO
CREATE PROCEDURE MD_ASMS_RELATION_CLASS (
	@i_source_type INT,
	@i_target_type INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_RELATION_CLASS
	WHERE source_type = @i_source_type
	AND target_type =  @i_target_type;
	
	
	IF @v_count = 0
	BEGIN

		INSERT INTO ASMS_RELATION_CLASS (
			source_type, 
			target_type 
		) VALUES (
			@i_source_type,
			@i_target_type
		) 	
	END;
END;
GO
CREATE PROCEDURE MD_ASMS_RELATION_TYPE (
	@i_id INT,
	@i_source_name NVARCHAR(50),
	@i_target_name NVARCHAR(50),
	@i_source_type INT,
	@i_target_type INT,
	@i_built_in BIT,
	@i_behavior_id INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT @v_count = COUNT (1)
	FROM ASMS_RELATION_TYPE
	WHERE 
		built_in = @i_built_in 
		AND source_name = @i_source_name
		AND target_name = @i_target_name
		AND source_type = @i_source_type
		AND target_type = @i_target_type;
	
	IF @v_count = 0
	BEGIN
		SET IDENTITY_INSERT dbo.ASMS_RELATION_TYPE ON;

		INSERT INTO ASMS_RELATION_TYPE (
			id,
			source_name,
			target_name,
			source_type,
			target_type,
			built_in,
			behavior_id
		) VALUES (
			@i_id,
			@i_source_name,
			@i_target_name,
			@i_source_type,
			@i_target_type,
			@i_built_in,
			@i_behavior_id
		) 	

		SET IDENTITY_INSERT dbo.ASMS_RELATION_TYPE OFF;
	END;
END;
GO
CREATE PROCEDURE MD_ASMS_MODEL (
	@i_id	INT,
	@i_name NVARCHAR (100),
	@i_description NVARCHAR (250),
	@i_item_type_id INT,
	@i_script NVARCHAR(MAX) = NULL,
	@i_builtin BIT = NULL,
	@i_active BIT = NULL,
	@i_default_time_id INT = NULL,
	@i_default_profile_id INT = NULL,
	@i_instructions NVARCHAR(MAX) = NULL,
	@i_is_delete BIT,
	@i_guid NVARCHAR(36) = NULL
) AS
BEGIN
	DECLARE @v_count INT;

	SELECT @v_count = COUNT (1)
	FROM ASMS_MODEL
	WHERE id = @i_id;
	
	IF @v_count = 0
	BEGIN
		SET IDENTITY_INSERT ASMS_MODEL ON;
		INSERT INTO ASMS_MODEL (
			id,
			name,
			description,
			item_type_id,
			script,
			builtin,
			active,
			default_time_id,
			default_profile_id,
			instructions
		) VALUES (
			@i_id,
			@i_name,
			@i_description,
			@i_item_type_id,
			@i_script,
			@i_builtin,
			@i_active,
			@i_default_time_id,
			@i_default_profile_id,
			@i_instructions
		);
		SET IDENTITY_INSERT ASMS_MODEL OFF;
	END;
	ELSE
	BEGIN
		UPDATE ASMS_MODEL
		SET
			name = @i_name,
			description = @i_description,
			item_type_id = @i_item_type_id,
			script = @i_script,
			builtin = @i_builtin,
			active = @i_active,
			default_time_id = @i_default_time_id,
			default_profile_id = @i_default_profile_id,
			instructions = @i_instructions
		WHERE id = @i_id;
	END;
END;
GO
CREATE PROCEDURE MD_ASMS_RULES_ACTIONS_TYPES (
	@i_action_type INT,
	@i_action_name NVARCHAR(250),
	@i_action_procedure NVARCHAR(250),
	@i_class INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_RULES_ACTIONS_TYPES
	WHERE action_type = @i_action_type;
	
	IF @v_count = 0
	BEGIN

		INSERT INTO ASMS_RULES_ACTIONS_TYPES (
			action_type,
			action_name,
			action_procedure,
			class
		) VALUES (
			@i_action_type,
			@i_action_name,
			@i_action_procedure,
			@i_class
		);

	END;
	ELSE
	BEGIN
		UPDATE ASMS_RULES_ACTIONS_TYPES
		SET
			action_name = @i_action_name,
			action_procedure = @i_action_procedure,
			class = @i_class
		WHERE action_type = @i_action_type;

	END;
END;
GO
CREATE PROCEDURE MD_ASMS_RULES_TYPE_ACTIONS (
	@i_table_id INT,
	@i_action_type INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_RULES_TYPE_ACTIONS
	WHERE table_id = @i_table_id
	AND action_type = @i_action_type;
	
	IF @v_count = 0
	BEGIN

		INSERT INTO ASMS_RULES_TYPE_ACTIONS (
			table_id,
			action_type
		) VALUES (
			@i_table_id,
			@i_action_type
		);

	END;
END;
GO
CREATE PROCEDURE MD_ASMS_STATUS_STAGE (
	@i_item_type_id INT,
	@i_name NVARCHAR (100) = NULL,
	@i_is_final BIT = NULL
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_STATUS_STAGE
	WHERE item_type_id = @i_item_type_id 
	AND name = @i_name 
	AND is_final = @i_is_final;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO ASMS_STATUS_STAGE (
			item_type_id,
			name,
			is_final
		) VALUES (
			@i_item_type_id,
			@i_name,
			@i_is_final
		);
	END;
END;
GO
CREATE PROCEDURE MD_ASMS_STATUS (
	@i_stat_id	INT,
	@i_stat_app_category INT = NULL,
	@i_stat_name NVARCHAR (50),
	@i_stat_description NVARCHAR (250),
	@i_stat_background_color_rgb NVARCHAR (12) = NULL,
	@i_stat_project INT = NULL,
	@i_stat_model_id INT = NULL,
	@i_stat_built_in INT,
	@i_stat_behavior INT= NULL,
	@i_stat_final INT= NULL,
	@i_stat_initial INT= NULL,
	@i_stat_stage_id INT= NULL
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_STATUS
	WHERE 
		(stat_app_category = @i_stat_app_category OR @i_stat_app_category IS NULL)
		AND (stat_project = @i_stat_project OR @i_stat_project IS NULL)
		AND (stat_model_id = @i_stat_model_id OR @i_stat_model_id IS NULL)
		AND stat_name = @i_stat_name;
	
	IF @v_count = 0
	BEGIN

		SET IDENTITY_INSERT ASMS_STATUS ON;

		INSERT INTO ASMS_STATUS (
			stat_id,
			stat_app_category,
			stat_name,
			stat_description,
			stat_background_color_rgb,
			stat_project,
			stat_model_id,
			stat_built_in,
			stat_behavior,
			stat_final,
			stat_initial,
			stat_stage_id
		) VALUES (
			@i_stat_id,
			@i_stat_app_category,
			@i_stat_name,
			@i_stat_description,
			@i_stat_background_color_rgb,
			@i_stat_project,
			@i_stat_model_id,
			@i_stat_built_in,
			@i_stat_behavior,
			@i_stat_final,
			@i_stat_initial,
			@i_stat_stage_id
		);

		SET IDENTITY_INSERT ASMS_STATUS OFF;

	END
	ELSE
	BEGIN
		UPDATE ASMS_STATUS
		SET
			stat_description = @i_stat_description,
			stat_background_color_rgb = @i_stat_background_color_rgb,
			stat_built_in = @i_stat_built_in,
			stat_behavior = @i_stat_behavior,
			stat_final = @i_stat_final,
			stat_initial = @i_stat_initial,
			stat_stage_id =  @i_stat_stage_id
		WHERE 
			stat_app_category = @i_stat_app_category 
			AND stat_project = @i_stat_project
			AND stat_model_id = @i_stat_model_id
			AND stat_name = @i_stat_name;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_TIMES_BUILTIN (
	@i_id INT,
	@i_name NVARCHAR (50) = NULL,
	@i_item_type_id INT = NULL,
	@i_type_agree INT = NULL,
	@i_is_default BIT = 0,
	@i_supress_nulls SMALLINT = 0
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_TIMES_BUILTIN
	WHERE id = @i_id;
	
	IF @v_count = 0
	BEGIN
		SET IDENTITY_INSERT ASMS_TIMES_BUILTIN ON;

		INSERT INTO ASMS_TIMES_BUILTIN (
			id,
			name,
			item_type_id,
			type_agree,
			is_default
		) VALUES (
			@i_id,
			@i_name,
			@i_item_type_id,
			@i_type_agree,
			@i_is_default
		);

		SET IDENTITY_INSERT ASMS_TIMES_BUILTIN OFF;

	END;
	ELSE
	BEGIN
		UPDATE ASMS_TIMES_BUILTIN
		SET
			name = @i_name,
			item_type_id = @i_item_type_id,
			type_agree = @i_type_agree
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_TYPES (
	@i_id INT,
	@i_name NVARCHAR (50)
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_TYPES
	WHERE id = @i_id;
	
	IF @v_count = 0
	BEGIN

		INSERT INTO ASMS_TYPES (
			id,
			name
		) VALUES (
			@i_id,
			@i_name
		);


	END;
	ELSE
	BEGIN
		UPDATE ASMS_TYPES
		SET
			name = @i_name
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_MAP_PROVIDERS (
	@i_name			NVARCHAR(50),
	@i_api_key		NVARCHAR(200),
	@i_client_key	NVARCHAR(200),
	@i_token		NVARCHAR(200),
	@i_is_default 	BIT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_MAP_PROVIDERS
	WHERE name = @i_name;
	
	IF @v_count = 0
	BEGIN
		INSERT ASMS_MAP_PROVIDERS (
			name, 
			[api_key], 
			[client_key], 
			[token], 
			[is_default]
		) VALUES (
			@i_name,	
			@i_api_key,
			@i_client_key,
			@i_token,
			@i_is_default
		);
	END;
END;
GO
CREATE PROCEDURE MD_ASMS_LAST_EXECUTE_TASK (
	@i_id int
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_LAST_EXECUTE_TASK
	WHERE task_id = @i_id 
	
	IF @v_count = 0
	BEGIN
		INSERT INTO ASMS_LAST_EXECUTE_TASK (
			task_id,
			last_execute
		) VALUES (
			@i_id,
			GETUTCDATE()
		);
	END;
END;
GO

CREATE PROCEDURE MD_ASMS_STATUS_TRANSITION (
	@i_sttr_id	INT,
	@i_sttr_code_ini INT = NULL,
	@i_sttr_code_fin INT = NULL,
	@i_sttr_category INT = NULL,
	@i_sttr_project INT = NULL,
	@i_sttr_model_id INT = NULL
) AS
BEGIN
	DECLARE @v_count INT;

	SELECT @v_count = COUNT (1)
	FROM ASMS_STATUS_TRANSITION
	WHERE 
		(sttr_code_ini = @i_sttr_code_ini OR @i_sttr_code_ini IS NULL) 
		AND (sttr_code_fin = @i_sttr_code_fin OR @i_sttr_code_fin IS NULL) 
		AND (sttr_category = @i_sttr_category OR @i_sttr_category IS NULL)
		AND (sttr_project = @i_sttr_project OR sttr_project IS NULL)
		AND (sttr_model_id = @i_sttr_model_id OR @i_sttr_model_id IS NULL)
	
	IF @v_count = 0
	BEGIN
		SET IDENTITY_INSERT ASMS_STATUS_TRANSITION ON;
		INSERT INTO ASMS_STATUS_TRANSITION (
			sttr_id,
			sttr_code_ini,
			sttr_code_fin,
			sttr_category,
			sttr_project,
			sttr_model_id
		) VALUES (
			@i_sttr_id,
			@i_sttr_code_ini,
			@i_sttr_code_fin,
			@i_sttr_category,
			@i_sttr_project,
			@i_sttr_model_id
		);
		SET IDENTITY_INSERT ASMS_STATUS_TRANSITION OFF;
	END;
END;
GO
CREATE PROCEDURE MD_ASMS_CATEGORY_RELATION (
	@i_relation_id INT,
	@i_source_category_id INT,
	@i_target_category_id INT,
	@i_builtin BIT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_CATEGORY_RELATION
	WHERE relation_id = @i_relation_id 
	AND source_category_id = @i_source_category_id 
	AND target_category_id = @i_target_category_id
	AND builtin = @i_builtin;
	
	IF @v_count = 0
	BEGIN
		INSERT INTO ASMS_CATEGORY_RELATION (
			relation_id,
			source_category_id,
			target_category_id,
			builtin
		) VALUES (
			@i_relation_id,
			@i_source_category_id,
			@i_target_category_id,
			@i_builtin
		);
	END;
END;
GO
CREATE PROCEDURE MD_ASMS_FIELDS (
	@i_id INT,
	@i_name VARCHAR(50),
	@i_caption VARCHAR(50) = NULL,
	@i_description VARCHAR(512),
	@i_field_type_id INT,
	@i_field_order INT = NULL,
	@i_model_id INT = NULL,
	@i_item_type_id INT,
	@i_project_id INT = NULL,
	@i_builtin_id INT = NULL,
	@i_catalog_id INT = NULL,
	@i_datasource_id INT = NULL,
	@i_is_delete BIT,
	@i_length INT = NULL,
	@i_restrict_level BIT = NULL
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_FIELDS
	WHERE id = @i_id;
		
	IF @v_count = 0
	BEGIN

	    SET IDENTITY_INSERT ASMS_FIELDS ON;
		
		INSERT INTO ASMS_FIELDS (
			id,
			name,
			caption,
			description,
			field_type_id,
			field_order,
			model_id,
			item_type_id,
			project_id,
			builtin_id,
			catalog_id,
			datasource_id,
			is_delete,
			length,
			restrict_level
		) VALUES (
			@i_id,
			@i_name,
			@i_caption,
			@i_description,
			@i_field_type_id,
			@i_field_order,
			@i_model_id,
			@i_item_type_id,
			@i_project_id,
			@i_builtin_id,
			@i_catalog_id,
			@i_datasource_id,
			@i_is_delete,
			@i_length,
			@i_restrict_level
		);

	    SET IDENTITY_INSERT ASMS_FIELDS OFF;

	END;
	BEGIN

		UPDATE ASMS_FIELDS
		SET
			name = @i_name,
			caption = @i_caption,
			description = @i_description,
			field_type_id = @i_field_type_id,
			field_order = @i_field_order,
			model_id = @i_model_id,
			item_type_id = @i_item_type_id,
			project_id = @i_project_id,
			builtin_id = @i_builtin_id,
			catalog_id = @i_catalog_id,
			datasource_id = @i_datasource_id,
			is_delete = @i_is_delete,
			length = @i_length,
			restrict_level = @i_restrict_level
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_FIELDS_STATUS (
	@i_field_id INT,
	@i_status_id INT,
	@i_console_id INT,
	@i_visible INT = NULL,
	@i_editable INT = NULL,
	@i_mandatory INT = NULL
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_FIELDS_STATUS
	WHERE field_id = @i_field_id AND status_id = @i_status_id AND console_id = @i_console_id;
		
	IF @v_count = 0
	BEGIN
		INSERT INTO ASMS_FIELDS_STATUS (
			field_id,
			status_id,
			console_id,
			visible,
			editable,
			mandatory
		)
		VALUES ( 
			@i_field_id,
			@i_status_id,
			@i_console_id,
			@i_visible,
			@i_editable,
			@i_mandatory
		)
	END
	ELSE
	BEGIN
		UPDATE ASMS_FIELDS_STATUS
		SET
			visible = @i_visible,
			editable = @i_editable,
			mandatory = @i_mandatory
		WHERE 
			field_id = @i_field_id 
			AND status_id = @i_status_id 
			AND console_id = @i_console_id;
	END;

END;
GO
CREATE PROCEDURE MD_ASMS_INTERFACE (
	@i_id INT,
	@i_builtin_id INT = NULL,
	@i_label NVARCHAR(MAX) = NULL,
	@i_model_id INT = NULL,
	@i_project_id INT = NULL,
	@i_item_type_id INT = NULL
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_INTERFACE
	WHERE id = @i_id;
		
	IF @v_count = 0
	BEGIN

	    SET IDENTITY_INSERT ASMS_INTERFACE ON;
		
		INSERT INTO ASMS_INTERFACE (
			id,
			builtin_id,
			label,
			model_id,
			project_id,
			item_type_id
		) VALUES (
			@i_id,
			@i_builtin_id,
			@i_label,
			@i_model_id,
			@i_project_id,
			@i_item_type_id
		);

	    SET IDENTITY_INSERT ASMS_INTERFACE OFF;

	END
	ELSE
	BEGIN

		UPDATE ASMS_INTERFACE
		SET
			builtin_id = @i_builtin_id,
			label = @i_label,
			model_id = @i_model_id,
			project_id = @i_project_id,
			item_type_id = @i_item_type_id
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_INTERFACE_STATUS (
	@i_interface_id INT,
	@i_status_id INT,
	@i_console_id INT,
	@i_visible INT = NULL,
	@i_editable INT = NULL,
	@i_mandatory INT = NULL
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_INTERFACE_STATUS
	WHERE interface_id = @i_interface_id AND status_id = @i_status_id AND console_id = @i_console_id;
		
	IF @v_count = 0
	BEGIN
		INSERT INTO ASMS_INTERFACE_STATUS (
			interface_id,
			status_id,
			console_id,
			visible,
			editable,
			mandatory
		)
		VALUES ( 
			@i_interface_id,
			@i_status_id,
			@i_console_id,
			@i_visible,
			@i_editable,
			@i_mandatory
		)
	END
	ELSE
	BEGIN
		UPDATE ASMS_INTERFACE_STATUS
		SET
			visible = @i_visible,
			editable = @i_editable,
			mandatory = @i_mandatory
		WHERE 
			interface_id = @i_interface_id
			AND status_id = @i_status_id
			AND console_id = @i_console_id;
	END;
END;
GO
CREATE PROCEDURE MD_AI_PROVIDER (
	@i_id INT,
	@i_name NVARCHAR(250)
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM AI_PROVIDER
	WHERE id = @i_id;
	
	IF @v_count = 0
	BEGIN

		INSERT INTO AI_PROVIDER (
			id,
			name
		) VALUES (
			@i_id,
			@i_name
		);		

	END;
	ELSE
	BEGIN

		UPDATE AI_PROVIDER
		SET
			name = @i_name			
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_AI_TASK (
	@i_id INT,
	@i_name NVARCHAR(250),
	@i_model_type INT,
	@i_translation NVARCHAR(MAX),
	@i_apply_multi_language BIT,
	@i_default_params NVARCHAR(MAX),
	@i_enabled BIT,
	@i_order INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM AI_TASK
	WHERE id = @i_id;
	
	IF @v_count = 0
	BEGIN

		INSERT INTO AI_TASK (
			id,
			name,
			model_type,
			translation,
			apply_multi_language,
			default_params,
			[enabled],
			[order]
		) VALUES (
			@i_id,
			@i_name,
			@i_model_type,
			@i_translation,
			@i_apply_multi_language,
			@i_default_params,
			@i_enabled,
			@i_order
		);

	END;
	ELSE
	BEGIN
		UPDATE AI_TASK
		SET
			name = @i_name,
			model_type = @i_model_type,
			translation = @i_translation,
			apply_multi_language = @i_apply_multi_language,
			default_params = @i_default_params,
			[enabled] = @i_enabled,
			[order] = @i_order
		WHERE id = @i_id;

	END;

END;
GO
CREATE PROCEDURE MD_ASMS_MAIL_TEMPLATE (
	@i_id			INT,
	@i_name			NVARCHAR(50),
	@i_subject		NVARCHAR(255),
	@i_body			NVARCHAR(MAX),
	@i_is_html		BIT,
	@i_project_id	INT,
	@i_type_id		INT,
	@i_model_id		INT,
	@i_is_default	BIT,
	@i_sender		NVARCHAR(1000),
	@i_sender_name	NVARCHAR(1000),
	@i_is_builtin	BIT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASMS_MAIL_TEMPLATE
	WHERE name = @i_name 
		AND (@i_project_id IS NULL OR project_id = @i_project_id) 
		AND type_id = @i_type_id 
		AND (@i_model_id IS NULL OR model_id = @i_model_id);
	
	IF @v_count = 0
	BEGIN

		INSERT INTO ASMS_MAIL_TEMPLATE (
			name,
			subject,
			body,
			is_html,
			project_id,
			type_id,
			model_id,
			is_default,
			sender,
			sender_name,
			is_builtin
		) VALUES (
			@i_name,
			@i_subject,
			@i_body,
			@i_is_html,
			@i_project_id,
			@i_type_id,
			@i_model_id,
			@i_is_default,
			@i_sender,
			@i_sender_name,
			@i_is_builtin
		);		

	END;
	ELSE
	BEGIN

		UPDATE ASMS_MAIL_TEMPLATE
		SET
			subject = @i_subject,
			body = @i_body,
			is_html = @i_is_html,
			is_default = @i_is_default,
			sender = @i_sender,
			sender_name = @i_sender_name,
			is_builtin = @i_is_builtin
		WHERE name = @i_name 
			AND (@i_project_id IS NULL OR project_id = @i_project_id) 
			AND type_id = @i_type_id 
			AND (@i_model_id IS NULL OR model_id = @i_model_id);

	END;

END;
GO
CREATE PROCEDURE MD_AI_TASK_APPLICATION (
    @i_task_id INT,
    @i_application_id INT
)
AS
BEGIN
    DECLARE @v_count INT;

    SELECT 
        @v_count = COUNT(1)
    FROM AI_TASK_APPLICATION
    WHERE task_id = @i_task_id 
        AND application_id = @i_application_id;

    IF @v_count = 0
    BEGIN
        INSERT INTO AI_TASK_APPLICATION (
            task_id,
            application_id
        ) VALUES (
            @i_task_id,
            @i_application_id
        );
    END
END;
GO

CREATE PROCEDURE MD_ASDK_VIEW (
	@i_fevi_id INT,
	@i_fevi_project INT,
	@i_fevi_name NVARCHAR(50),
	@i_fevi_description NVARCHAR(500),
	@i_fevi_select_clause NVARCHAR(3000),
	@i_fevi_where_clause NVARCHAR(1000),
	@i_fevi_appli_category INT,
	@i_model_id INT,
	@i_conditions NVARCHAR(1000),
	@i_builtin BIT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT
		@v_count = COUNT (1)
	FROM ASDK_VIEW
	WHERE fevi_id = @i_fevi_id;
		
	IF @v_count = 0
	BEGIN

	    SET IDENTITY_INSERT ASDK_VIEW ON;
		
		INSERT INTO ASDK_VIEW (
			fevi_id,
			fevi_project,
			fevi_name,
			fevi_description,
			fevi_select_clause,
			fevi_where_clause,
			fevi_appli_category,
			model_id,
			conditions,
			builtin		
		) VALUES (
			@i_fevi_id,
			@i_fevi_project,
			@i_fevi_name,
			@i_fevi_description,
			@i_fevi_select_clause,
			@i_fevi_where_clause,
			@i_fevi_appli_category,
			@i_model_id,
			@i_conditions,
			@i_builtin		
		);

	    SET IDENTITY_INSERT ASDK_VIEW OFF;

	END;

END;
GO



----METADATA
EXEC [METADATA_ALERT_CATEGORY] 13000, 5, NULL,	1, N'ASDK', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 13001, 5, 13000, 1, N'Incident', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 13002, 5, 13000, 1, N'Problem', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 13003, 5, 13000, 1, N'Change', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 13004, 5, 13000, 1, N'Service Call', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 13005, 5, 13000, 1, N'Service', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 13006, 5, 13000, 1, N'Task', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 13050, 5, 13000, 1, N'Event', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 21000, 5, NULL,  1, N'CMDB', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 21021, 5, 21000, 1, N'Ci', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 21048, 5, 21000, 1, N'Packages', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 21075, 5, 21000, 1, N'Mantainance', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 25000, 5, NULL, 1, N'ASS', NULL, 1
EXEC [METADATA_ALERT_CATEGORY] 25007, 5, 25000, 1, N'Article', NULL, 1
GO

PRINT 'METADATA_ALERT_CATEGORY DONE!!'

GO


EXEC [METADATA_CATALOG] N'CHARGES', N'N', 1, NULL, NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'COMPANY', N'N', 1, NULL, NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'COUNTRY', N'N', 1, NULL, NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'DEPARTAMENTNUMBER', N'N', 1, NULL, NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'FLOOR', N'N', 1, NULL, NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'SITE', N'N', 1, NULL, NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'IDENTIFICATIONTYPE', N'N', 1, NULL,NULL, NULL, NULL, 0, NULL, 1
EXEC [METADATA_CATALOG] N'BUILDING1', N'N', 1, N'', NULL, NULL, NULL, 0, NULL, 1
EXEC [METADATA_CATALOG] N'CITY', N'N', 1, NULL, NULL, NULL, NULL, 0, NULL, 1
EXEC [METADATA_CATALOG] N'DEPARTAMENT', N'N', 1, NULL, NULL, NULL, NULL, 0, NULL, 1
EXEC [METADATA_CATALOG] N'REGISTRY_TYPE', N'N', 1, NULL, NULL, NULL, NULL, 0, NULL, 1
EXEC [METADATA_CATALOG] N'BRAND', N'N', 1, N'', NULL, NULL, NULL, 0, NULL, 1
EXEC [METADATA_CATALOG] N'MEASURE_UNIT', N'N', 1, NULL, NULL, NULL, NULL, 0, NULL, 1
EXEC [METADATA_CATALOG] N'RELATION_TYPE', N'N', 1, NULL, NULL, NULL, NULL, 0, NULL, 1
EXEC [METADATA_CATALOG] N'MODEL', N'N', 1, NULL, NULL, NULL, NULL, 0, NULL, 1
EXEC [METADATA_CATALOG] N'COMPONENT_TYPE', N'N', 1, N'', NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'IMPACT', N'N', 1, N' ', NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'URGENCY', N'N', 1, N' ', NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'PRIORITY', N'N', 1, N'', NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'ROUTING_CAUSE', N'N', 1, N'', NULL, NULL, NULL, NULL, NULL, 1
EXEC [METADATA_CATALOG] N'RESOURCE_TYPE', N'N', 1, N'', NULL, NULL, NULL, NULL, NULL, 1
GO

PRINT 'METADATA_CATALOG DONE!!'
GO

DECLARE @asms_catalogId INT

SELECT @asms_catalogId = cata_id
FROM AFW_CATALOG
WHERE cata_name = 'IMPACT'

EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 1, N'LOW', N'LOW', NULL, 1, N'', NULL
EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 2, N'HIGH', N'HIGH', NULL, 1, N'', NULL
EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 3, N'CRITICAL', N'CRITICAL', NULL, 1, N'', NULL

SELECT @asms_catalogId = cata_id
FROM AFW_CATALOG
WHERE cata_name = 'URGENCY'

EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 1, N'LOW', N'LOW', NULL, 1, N'', NULL
EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 2, N'HIGH', N'HIGH', NULL, 1, N'', NULL
EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 3, N'CRITICAL', N'CRITICAL', NULL, 1, N'', NULL

SELECT @asms_catalogId = cata_id
FROM AFW_CATALOG
WHERE cata_name = 'PRIORITY'

EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 1, N'LOW', N'LOW', NULL, 1, N'', NULL
EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 2, N'MEDIUM', N'MEDIUM', NULL, 1, N'', NULL
EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 3, N'HIGH', N'HIGH', NULL, 1, N'', NULL
EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 4, N'CRITICAL', N'CRITICAL', NULL, 1, N'', NULL

SELECT @asms_catalogId = cata_id
FROM AFW_CATALOG
WHERE cata_name = 'REGISTRY_TYPE'

EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 1, N'Microsoft Teams', N'Microsoft Teams', NULL, 1, N'', NULL
EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 2, N'Load Massive', N'Load Massive', NULL, 1, N'', NULL
EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 3, N'WhatsApp', N'WhatsApp', NULL, 1, N'', NULL
EXEC [METADATA_CATALOG_CODE] @asms_catalogId, 4, N'App Movil', N'App Movil', NULL, 1, N'', NULL

PRINT 'METADATA_CATALOG_CODE DONE!!'
GO
DECLARE @folderId	    INT
DECLARE @date			DATETIME  
SET @date = GETDATE()
EXEC [METADATA_FOLDER]    @folderId OUTPUT, N'ServiceDesk', NULL, @date, NULL, 1, 1, N'ServiceDesk Root Directoy', 13, NULL, 1
EXEC [METADATA_FOLDER]    @folderId OUTPUT, N'CMDB', NULL, @date, NULL, 1, 1, N'CMDB Root Directoy', 21, NULL,  1
EXEC [METADATA_FOLDER]    @folderId OUTPUT, N'ASS', NULL, @date, NULL, 1, 1, N'Knowledge Root Directoy', 25, NULL, 1
GO

PRINT 'META_FOLDER DONE!!'
GO

EXEC [METADATA_PERMISSIONS] 12163, N'Contracts', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12164, N'Invoices', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12165, N'OtherDocuments', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12166, N'CostCenters', NULL, 1, 13902, NULL
EXEC [METADATA_PERMISSIONS] 12167, N'Budgets', NULL, 1, 13902, NULL
EXEC [METADATA_PERMISSIONS] 12168, N'Accounting', NULL, 1, 13902, NULL
EXEC [METADATA_PERMISSIONS] 12169, N'Contract.States', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12170, N'Contract.Additionals', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12171, N'CostCenters.List', NULL, 1, 13902, NULL
EXEC [METADATA_PERMISSIONS] 12172, N'CostCenters.GetObject', NULL, 1, 13902, NULL
EXEC [METADATA_PERMISSIONS] 12173, N'CostCenters.Update', NULL, 1, 13902, NULL
EXEC [METADATA_PERMISSIONS] 12174, N'CostCenters.Add', NULL, 1, 13902, NULL
EXEC [METADATA_PERMISSIONS] 12175, N'CostCenters.Delete', NULL, 1, 13902, NULL
EXEC [METADATA_PERMISSIONS] 12176, N'Contract.Models', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12177, N'Costs.GetObject', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 12178, N'ClientGroups', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12179, N'BusinessProcess', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 12180, N'BusinessProcess.List', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 12181, N'Specialists.Interface', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12182, N'Companys.Interface', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12183, N'Suppliers.Interface', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12184, N'Specialists.Additionals', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12185, N'Companys.Additionals', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12186, N'Suppliers.Additionals', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12187, N'Routings', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12188, N'Routings.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12189, N'Routings.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12190, N'Routings.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12191, N'Routings.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12192, N'Routings.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12193, N'Specialists.Surveys', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12194, N'EventLogs', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12195, N'Catalogs', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12196, N'Clients.MailTemplates', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12197, N'Specialists.MailTemplates', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12198, N'Specialist_Console', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12199, N'Client_Console', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12200, N'Forms.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12201, N'Forms.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12202, N'Forms.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12203, N'Forms.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12204, N'Forms.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12205, N'ServiceCall.Forms', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12206, N'Incident.Forms', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12207, N'Problem.Forms', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12208, N'Change.Forms', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12209, N'Release.Forms', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12210, N'Task.Forms', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12211, N'Links.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12212, N'Links.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12213, N'Links.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12214, N'Links.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12215, N'Links.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12216, N'Display.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12217, N'Display.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12218, N'SAML.VIEW', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12219, N'SAML.CREATE', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12220, N'SAML.UPDATE', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12221, N'SAML.DELETE', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12222, N'Locations', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12223, N'Locations.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12224, N'Locations.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12225, N'Locations.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12226, N'Settings Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12227, N'ChangeSet.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12228, N'ChangeSet', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12229, N'ChangeSet.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12230, N'ChangeSet.Close', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12231, N'ChangeSet.Import', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12232, N'Settings', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12233, N'Designer', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12234, N'Designer.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12235, N'Designer.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12236, N'Designer.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12237, N'Map Settings', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12238, N'Map.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12239, N'Map.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12240, N'Map.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12241, N'Integration Tokens', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12242, N'Token.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12243, N'Token.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12244, N'Chat Settings', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12245, N'Chat.Setup', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12246, N'Tariff Settings', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12247, N'Tariff.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12248, N'Tariff.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12249, N'Tariff.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12250, N'Model_Profile', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12251, N'Profile.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12252, N'Profile.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12253, N'Profile.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12254, N'Scheduled_notifications', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12255, N'Scheduled_notifications.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12256, N'Scheduled_notifications.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12257, N'Scheduled_notifications.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12258, N'Scheduled_cases_actions', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12259, N'Scheduled_cases_actions.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12260, N'Scheduled_cases_actions.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 12261, N'Scheduled_cases_actions.Delete', NULL, 1, 12, NULL

EXEC [METADATA_PERMISSIONS] 13001, N'Administrator_Console', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13002, N'ASDK-EDIT GENERAL PARAMETERS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13004, N'ASDK-VIEW SOLUTIONS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13005, N'Suppliers', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13006, N'Calendars', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13007, N'Clients.Surveys', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13008, N'Categorys', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13009, N'Groups', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13010, N'ASDK-WORK WITH SERVICE LEVEL AGREEMENTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13011, N'ASDK-WORK WITH USER LEVEL AGREEMENTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13012, N'Rules', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13013, N'Tasks', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13014, N'Templates', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13015, N'ASDK-DATABASE CONFIGURATION', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13016, N'Change Password', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13017, N'States', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13018, N'Licences', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13019, N'Licences.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13020, N'Projects', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13021, N'Companys', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13022, N'ASDK-VIEW USER COMPANY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13024, N'MailServers', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13025, N'Banners', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13026, N'News', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13027, N'Contracts.MailTemplates', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13028, N'Matrix', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13029, N'ASDK-VIEW FORMS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13030, N'ASDK-VIEW SCRIPTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13031, N'ASDK-VIEW SCRIPT PROJECTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13032, N'Clients', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13033, N'ASDK-VIEW CAUSES', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13034, N'ASDK-VIEW ULAS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13035, N'Projects.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13036, N'Projects.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13037, N'Projects.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13038, N'ASDK-FREE LICENSE', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13039, N'ASDK-LIBERATE INACTIVE LICENSE', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13040, N'States.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13041, N'States.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13042, N'States.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13052, N'Vendor.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13053, N'Vendor.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13054, N'Vendor.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13055, N'Vendor.AddProject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13056, N'Vendor.DeleteProject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13060, N'Surveys.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13061, N'Surveys.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13062, N'Surveys.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13063, N'ASDK-ASSOCIATE USER COMPANY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13064, N'ASDK-UNASSOCIATE USER COMPANY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13065, N'ASDK-ASSOCIATE COMPANY USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13066, N'ASDK-UNASSOCIATE COMPANY USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13067, N'Groups.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13068, N'Groups.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13069, N'Groups.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13070, N'ASDK-ASSOCIATE SPECIALIST USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13071, N'ASDK-UNASSOCIATE SPECIALIST USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13072, N'ASDK-ASSOCIATE PROFILE GROUP USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13073, N'ASDK-UNASSOCIATE PROFILE GROUP USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13074, N'Tasks.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13075, N'Tasks.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13076, N'Tasks.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13080, N'Templates.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13081, N'Templates.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13082, N'Templates.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13083, N'ASDK-NEW SOLUTION', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13084, N'ASDK-EDIT SOLUTION', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13087, N'MailServers.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13088, N'MailServers.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13089, N'MailServers.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13090, N'Banners.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13091, N'Banners.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13092, N'News.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13093, N'News.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13094, N'News.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13095, N'MailTemplates.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13096, N'MailTemplates.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13097, N'MailTemplates.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13098, N'Matrix.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13099, N'ASDK-DELETE SOLUTION', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13100, N'ASDK-NEW QUESTION', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13101, N'ASDK-NEW FORM', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13102, N'ASDK-EDIT FORMS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13103, N'ASDK-DELETE FORM', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13104, N'ASDK-EDIT QUESTION', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13105, N'ASDK-DELETE QUESTION', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13106, N'ASDK-NEW SCRIPT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13107, N'ASDK-EDIT SCRIPTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13108, N'ASDK-DELETE SCRIPT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13109, N'Categorys.Add', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13110, N'Categorys.List', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13111, N'Categorys.Delete', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13112, N'Categorys.Update', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13113, N'ASDK-ASSOCIATE SOLUTION CATEGORY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13114, N'ASDK-UNASSOCIATE SOLUTION CATEGORY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13115, N'ASDK-ASSOCIATE GROUP CATEGORY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13116, N'ASDK-UNASSOCIATE GROUP CATEGORY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13117, N'ASDK-ASSOCIATE SCRIPT CATEGORY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13118, N'ASDK-UNASSOCIATE SCRIPT CATEGORY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13119, N'ASDK-NEW ULA', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13120, N'ASDK-EDIT ULA', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13121, N'ASDK-DELETE ULA', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13122, N'Calendars.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13123, N'Calendars.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13124, N'Calendars.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13125, N'User.AddProject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13126, N'User.DeleteProject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13127, N'ASDK-NEW CAUSE', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13128, N'ASDK-EDIT CAUSES', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13129, N'ASDK-DELETE CAUSES', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13130, N'Rules.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13131, N'Rules.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13132, N'Rules.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13133, N'ASDK-COPY GROUPS PROJECTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13134, N'Areas', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13135, N'Groups.ListArea', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13138, N'Clients.Additionals', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13139, N'Additionals.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13140, N'Additionals.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13141, N'Additionals.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13145, N'Views', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13146, N'Views.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13147, N'Views.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13148, N'Views.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13159, N'ASDK-VIEW REASSIGNMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13160, N'ASDK-NEW REASSIGNMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13161, N'ASDK-EDIT REASSIGNMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13162, N'ASDK-DELETE REASSIGNMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13163, N'ASDK-VIEW AND MODIFY ALL PROJECTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13164, N'Relations', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13165, N'Relations.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13166, N'Relations.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13167, N'Relations.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13168, N'Models', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13169, N'Models.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13170, N'Models.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13171, N'Models.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13172, N'Clients.Interface', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13173, N'Interface.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13174, N'Times', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13175, N'Times.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13176, N'Times.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13177, N'Times.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13178, N'Approvals', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13179, N'Approvals.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13180, N'Approvals.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13181, N'Approvals.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13182, N'Risks', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13183, N'Risks.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13184, N'Risks.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13185, N'Risks.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13186, N'ASDK-VIEW CLOSED CASES', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13187, N'ASDK-EDIT CLOSED CASES', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13188, N'ASDK-VIEW DETAILS - CLIENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13189, N'ASDK-EDIT DETAILS - CLIENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13190, N'ASDK-VIEW CONNECTOR', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13191, N'ASDK-NEW CONNECTOR', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13192, N'ASDK-EDIT CONECTOR', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13193, N'ASDK-DELETE CONNECTOR', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13199, N'ASDK-EDIT NOTIFICATION OFSURVEYS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13201, N'ASDK-VIEW NOTIFICATION OF SURVEYS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13203, N'ASDK-EDIT CONFIGURE OF MONEY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13205, N'ASDK-VIEW CONFIGURE OF MONEY', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13206, N'ASDK-NEW ACTIONS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13207, N'ASDK-EDIT ACTIONS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13208, N'ASDK-DELETE ACTIONS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13209, N'ASDK-VIEW ACTIONS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13210, N'BusinessProcess.GetObject', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13211, N'BusinessProcess.Add', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13212, N'BusinessProcess.Update', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13213, N'BusinessProcess.Delete', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13214, N'Contracts.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13215, N'Contracts.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13216, N'Contracts.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13217, N'Contracts.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13218, N'Costs.Add', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13219, N'Costs.List', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13220, N'Costs.Update', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13221, N'Costs.Delete', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13222, N'CostModels.Add', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13223, N'CostModels.GetObject', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13224, N'CostModels.Update', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13225, N'CostModels.Delete', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13226, N'Projects.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13227, N'Projects.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13228, N'Groups.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13229, N'Groups.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13230, N'Groups.AddProject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13231, N'Groups.DeleteProject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13232, N'Vendor.ListCompany', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13233, N'Vendor.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13234, N'Vendor.ListProvider', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13235, N'User.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13236, N'User.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13237, N'User.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13238, N'User.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13239, N'User.ListClient', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13240, N'Specialists', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13241, N'User.ListSpecialist', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13242, N'Calendars.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13243, N'Calendars.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13244, N'Models.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13245, N'Models.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13246, N'Categorys.GetObject', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13247, N'States.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13248, N'States.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13249, N'Services', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13250, N'Services.Add', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13251, N'Services.Update', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13252, N'Services.Delete', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13253, N'Services.List', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13254, N'SLAs', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13255, N'SLAs.Add', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13256, N'SLAs.Update', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13257, N'SLAs.Delete', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13258, N'SLAs.List', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13259, N'Services.GetObject', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13260, N'SLAs.GetObject', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13261, N'UCs', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13262, N'SLAs.ListUC', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13263, N'OLAs', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13264, N'SLAs.ListOLA', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13265, N'Additionals.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13266, N'Additionals.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13267, N'Interface.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13268, N'Interface.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13269, N'Times.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13270, N'Times.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13271, N'Tasks.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13272, N'Tasks.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13273, N'Approvals.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13274, N'Approvals.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13275, N'Risks.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13276, N'Risks.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13278, N'Views.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13279, N'Views.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13280, N'Licences.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13281, N'Licences.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13282, N'Licences.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13283, N'Licences.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13284, N'Rules.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13285, N'Rules.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13286, N'Surveys.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13287, N'Surveys.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13288, N'Relations.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13289, N'Relations.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13290, N'Templates.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13291, N'Templates.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13292, N'MailTemplates.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13293, N'MailTemplates.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13294, N'MailServers.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13295, N'MailServers.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13296, N'Banners.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13297, N'Banners.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13298, N'Banners.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13299, N'News.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13300, N'News.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13301, N'Folders', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13302, N'Folders.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13303, N'Folders.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13304, N'Folders.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13305, N'Folders.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13606, N'Folders.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13607, N'Integrations.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13608, N'Integrations.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13609, N'Integrations.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13610, N'Integrations.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13611, N'Integrations.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13612, N'Service.States', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13613, N'Service.Additionals', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13614, N'Service.Approvals', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13615, N'Service.Folders', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13616, N'Service.Rules', NULL, 1, 13005, NULL
EXEC [METADATA_PERMISSIONS] 13617, N'Event.States', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13618, N'Event.Additionals', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13619, N'Event.Rules', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13620, N'Events', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13621, N'Events.GetObject', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13622, N'Events.Update', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13623, N'Events.List', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13624, N'Events.Add', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13625, N'Events.Delete', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13626, N'EventConnectors', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13627, N'EventConnectors.GetObject', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13628, N'EventConnectors.Update', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13629, N'EventConnectors.List', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13630, N'EventConnectors.Add', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13631, N'EventConnectors.Delete', NULL, 1, 13050, NULL
EXEC [METADATA_PERMISSIONS] 13632, N'Metrics', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13633, N'Metrics.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13634, N'Metrics.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13635, N'Metrics.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13636, N'Metrics.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13637, N'Metrics.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13638, N'CostModels', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13639, N'CostModels.List', NULL, 1, 13900, NULL
EXEC [METADATA_PERMISSIONS] 13640, N'Incident.Additionals', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13641, N'Incident.Models', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13642, N'Incident.States', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13643, N'Incident.Interface', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13644, N'Incidents', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13645, N'Problems', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13646, N'Changes', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13647, N'ServiceCalls', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13648, N'Releases', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13649, N'Items.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13650, N'Items.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13651, N'Items.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13652, N'Items.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13653, N'Items.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13654, N'Incident.Times', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13655, N'Incident.Tasks', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13656, N'Incident.Approvals', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13657, N'Incident.Risks', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13658, N'Incident.Views', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13659, N'Incident.Rules', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13660, N'Incident.Surveys', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13661, N'InboundServers', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13662, N'InboundServers.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13663, N'InboundServers.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13664, N'InboundServers.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13665, N'InboundServers.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13666, N'InboundServers.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13667, N'InboundTemplates', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13668, N'InboundTemplates.Add', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13669, N'InboundTemplates.Update', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13670, N'InboundTemplates.Delete', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13671, N'InboundTemplates.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13672, N'InboundTemplates.List', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13673, N'SLA.States', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13674, N'UC.States', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13675, N'OLA.States', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13676, N'SLA.Additionals', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13677, N'UC.Additionals', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13678, N'OLA.Additionals', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13679, N'SLA.Approvals', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13680, N'UC.Approvals', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13681, N'OLA.Approvals', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13682, N'Problem.Models', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13683, N'Change.Models', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13684, N'ServiceCall.Models', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13685, N'Release.Models', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13686, N'Task.Models', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13687, N'Problem.Tasks', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13688, N'Change.Tasks', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13689, N'ServiceCall.Tasks', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13690, N'Release.Tasks', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13691, N'Change.Approvals', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13692, N'ServiceCall.Approvals', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13693, N'Release.Approvals', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13694, N'Change.Risks', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13695, N'Release.Risks', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13696, N'Problem.Views', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13697, N'Change.Views', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13698, N'ServiceCall.Views', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13699, N'Release.Views', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13700, N'Problem.Rules', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13701, N'Change.Rules', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13702, N'ServiceCall.Rules', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13703, N'Release.Rules', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13704, N'Task.Rules', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13705, N'Problem.Surveys', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13706, N'Change.Surveys', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13707, N'ServiceCall.Surveys', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13708, N'Release.Surveys', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13709, N'Problem.Times', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13710, N'Change.Times', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13711, N'ServiceCall.Times', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13712, N'Release.Times', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13713, N'Problem.States', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13714, N'Change.States', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13715, N'ServiceCall.States', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13716, N'Release.States', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13717, N'Task.States', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13718, N'Problem.Interface', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13719, N'Change.Interface', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13720, N'ServiceCall.Interface', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13721, N'Release.Interface', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13722, N'Problem.Additionals', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13723, N'Change.Additionals', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13724, N'ServiceCall.Additionals', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13725, N'Release.Additionals', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13726, N'Task.Additionals', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13727, N'Service.MailTemplates', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13728, N'SLA.MailTemplates', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13729, N'UC.MailTemplates', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13730, N'OLA.MailTemplates', NULL, 1, 13901, NULL
EXEC [METADATA_PERMISSIONS] 13731, N'Incidents_All', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13732, N'Incidents_Project', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13733, N'Incidents_Group', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13734, N'Problem_All', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13735, N'Problem_Project', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13736, N'Problem_Group', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13737, N'Change_All', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13738, N'Change_Project', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13739, N'Change_Group', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13740, N'ServiceCall_All', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13741, N'ServiceCall_Project', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13742, N'ServiceCall_Group', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13743, N'Release_All', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13744, N'Release_Project', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13745, N'Release_Group', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13746, N'Maintenance_All', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 13747, N'Maintenance_Project', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 13748, N'Maintenance_Group', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 13750, N'Add_Closed_Incident_Files', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13751, N'Add_Closed_Problem_Files', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13752, N'Add_Closed_Change_Files', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13753, N'Add_Closed_ServiceCall_Files', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13754, N'Add_Closed_Release_Files', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13755, N'Add_Closed_Task_Files', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13756, N'New_Incident_Task', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13757, N'New_Problem_Task', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13758, N'New_Change_Task', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13759, N'New_ServiceCall_Task', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13760, N'New_Release_Task', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13761, N'Add_Incident_Note', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13762, N'Add_Problem_Note', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13763, N'Add_Change_Note', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13764, N'Add_ServiceCall_Note', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13765, N'Add_Release_Note', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13766, N'Add_Task_Note', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13767, N'New_Incident_Relation', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13768, N'New_Problem_Relation', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13769, N'New_Change_Relation', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13770, N'New_ServiceCall_Relation', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13771, N'New_Release_Relation', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13772, N'Add_Incident_Files', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13773, N'Add_Problem_Files', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13774, N'Add_Change_Files', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13775, N'Add_ServiceCall_Files', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13776, N'Add_Release_Files', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13777, N'Add_Task_Files', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13778, N'Close_Another_Specialist_Incident', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13779, N'Close_Another_Specialist_Problem', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13780, N'Close_Another_Specialist_Change', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13781, N'Close_Another_Specialist_ServiceCall', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13782, N'Close_Another_Specialist_Release', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13783, N'Close_Another_Specialist_Task', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13784, N'Close_Incident', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13785, N'Close_Problem', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13786, N'Close_Change', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13787, N'Close_ServiceCall', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13788, N'Close_Release', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13789, N'Close_Task', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13790, N'Convert_Incident', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13791, N'Convert_Problem', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13792, N'Convert_Change', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13793, N'Convert_ServiceCall', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13794, N'Convert_Release', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13795, N'Edit_Another_Users_Incident_Tasks', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13796, N'Edit_Another_Users_Problem_Tasks', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13797, N'Edit_Another_Users_Change_Tasks', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13798, N'Edit_Another_Users_ServiceCall_Tasks', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13799, N'Edit_Another_Users_Release_Tasks', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13800, N'Edit_Incident', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13801, N'Edit_Problem', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13802, N'Edit_Change', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13803, N'Edit_ServiceCall', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13804, N'Edit_Release', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13805, N'Edit_Task', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13806, N'New_Incident', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13807, N'New_Problem', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13808, N'New_Change', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13809, N'New_ServiceCall', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13810, N'New_Release', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13811, N'New_Solution', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13812, N'New_Template', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13813, N'Reassign_Cases', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13814, N'Remove_Incident_Task', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13815, N'Remove_Problem_Task', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13816, N'Remove_Change_Task', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13817, N'Remove_ServiceCall_Task', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13818, N'Remove_Release_Task', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13819, N'Task_Project', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13820, N'Task_Group', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13821, N'Unassociate_Solution', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13822, N'Remove_Incident_Files', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13823, N'Remove_Problem_Files', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13824, N'Remove_Change_Files', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13825, N'Remove_ServiceCall_Files', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13826, N'Remove_Release_Files', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13827, N'Remove_Task_Files', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13828, N'View_Associated_Solutions', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13829, N'View_Incident_Attached_Files', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13830, N'View_Problem_Attached_Files', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13831, N'View_Change_Attached_Files', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13832, N'View_ServiceCall_Attached_Files', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13833, N'View_Release_Attached_Files', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13834, N'View_Task_Attached_Files', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13835, N'View_Incident_Survey_Results', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13836, N'View_Problem_Survey_Results', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13837, N'View_Change_Survey_Results', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13838, N'View_ServiceCall_Survey_Results', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13839, N'View_Release_Survey_Results', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13840, N'View_Incident_Times', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13841, N'View_Problem_Times', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13842, N'View_Change_Times', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13843, N'View_ServiceCall_Times', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13844, N'View_Release_Times', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13845, N'View_Incident_Cost', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13846, N'View_Problem_Cost', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13847, N'View_Change_Cost', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13848, N'View_ServiceCall_Cost', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13849, N'View_Release_Cost', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13850, N'Delete_Incident_Relation', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13851, N'Delete_Problem_Relation', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13852, N'Delete_Change_Relation', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13853, N'Delete_ServiceCall_Relation', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13854, N'Delete_Release_Relation', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13855, N'Reopen_Incident', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13856, N'Reopen_Problem', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13857, N'Reopen_Change', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13858, N'Reopen_ServiceCall', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13859, N'Reopen_Release', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13860, N'Add_Closed_Incident_Note', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 13861, N'Add_Closed_Problem_Note', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 13862, N'Add_Closed_Change_Note', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 13863, N'Add_Closed_ServiceCall_Note', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 13864, N'Add_Closed_Release_Note', NULL, 1, 13013, NULL
EXEC [METADATA_PERMISSIONS] 13865, N'Add_Closed_Task_Note', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13866, N'TeamsManager', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13867, N'TeamsClient', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13868, N'ThirdPartyApproval', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13869, N'TeamsConfiguration', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13870, N'TeamsLogs', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13871, N'CustomerThirdPartyApproval', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13872, N'Recalculate_dates', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13873, N'Recalculate_dates_closed', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13874, N'SetupIA', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13875, N'SetupIA.AddConnectionPoint', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13876, N'SetupIA.DeleteConnectionPoint', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13877, N'SetupIA.UpdateConnectionPoint', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13878, N'SetupIA.UpdateTask', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13879, N'View_Board', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 13880, N'View_All_Filter', NULL, 1, 12, NULL

EXEC [METADATA_PERMISSIONS] 21004, N'VIEW COUNTABLE SUPPORTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21005, N'VIEW PROVIDERS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21008, N'VIEW CONTRATCS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21009, N'VIEW INVOICES', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21010, N'VIEW OTHER DOCUMENTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21012, N'Audits.List', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21022, N'Cis.Add', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21023, N'Cis.Update', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21024, N'INACTIVATE CI', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21025, N'CREATE CONTRATC', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21026, N'EDIT CONTRATC', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21027, N'DELETE CONTRATC', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21028, N'CREATE INVOICE', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21029, N'EDIT INVOICE', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21030, N'DELETE INVOICE', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21031, N'CREATE OTHER COUNTABLE DOCUMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21032, N'EDIT OTHER COUNTABLE DOCUMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21033, N'DELETE OTHER COUNTABLE DOCUMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21037, N'CREATE PROVIDER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21038, N'EDIT PROVIDER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21039, N'DELETE PROVIDER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21043, N'Contracts.GetObject', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21044, N'VIEW INVOICE DETAIL', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21048, N'Audits.Add', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21049, N'Audits.Update', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21050, N'Audits.Delete', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21052, N'VIEW DEPRECIATION AND COSTS', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21053, N'EXPORT AND IMPORT OF CIs FOR UPDATE', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21055, N'VIEW LOCATION OF CI', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21057, N'VIEW AND ADD LICENSES', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 21062, N'CI.States', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21063, N'CI.Additionals', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21064, N'CI.Approvals', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21065, N'CI.Rules', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21066, N'CI.Models', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21067, N'CI.Folders', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21068, N'Cis', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21069, N'Cis.Delete', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21070, N'Cis.GetObject', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21071, N'Cis.List', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21072, N'Maintenance.Times', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21073, N'Maintenance.Tasks', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21074, N'CI.Interface', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21075, N'CI.Risks', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21076, N'Audits', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21077, N'Packages', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21078, N'Maintenances', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21079, N'Maintenance.Surveys', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21080, N'CI.Integrations', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21081, N'Maintenance.Views', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21082, N'Audits.GetObject', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21083, N'Maintenance.States', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21084, N'Package.States', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21085, N'Package.Models', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21086, N'Maintenance.Models', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21087, N'Package.Additionals', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21088, N'Maintenance.Additionals', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21089, N'Package.Rules', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21090, N'Maintenance.Rules', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21091, N'Maintenance.Risks', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21093, N'Maintenance.Interface', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21094, N'Maintenance.Approvals', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21095, N'Audit.MailTemplates', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21096, N'Add_Maintenance_Note', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21097, N'Add_Maintenance_Files', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21098, N'Add_Closed_Maintenance_Note', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21099, N'Add_Closed_Maintenance_Files', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21100, N'New_Maintenance_Task', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21101, N'New_Maintenance_Relation', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21102, N'New_Maintenance', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21103, N'Reopen_Maintenance', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21104, N'Remove_Maintenance_Task', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21105, N'Remove_Maintenance_Files', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21106, N'View_Maintenance_Times', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21107, N'View_Maintenance_Survey_Results', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21108, N'View_Maintenance_Cost', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21109, N'View_Maintenance_Attached_Files', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21110, N'Edit_Maintenance',NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21111, N'Edit_Another_Users_Maintenance_Tasks', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21112, N'Delete_Maintenance_Relation', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21113, N'Close_Maintenance', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21114, N'Close_Another_Specialist_Maintenance',NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21115, N'CI.Views',NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21116, N'Scheduled_cmdb_actions', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21117, N'Scheduled_cmdb_actions.Add', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21118, N'Scheduled_cmdb_actions.Update', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 21119, N'Scheduled_cmdb_actions.Delete', NULL, 1, 21, NULL

EXEC [METADATA_PERMISSIONS] 25008, N'Articles.Add', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25009, N'Articles.Update', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25010, N'Articles', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25011, N'Articles.Delete', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25015, N'Article.States', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25027, N'ASSOCIATE SPECIALIST USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25028, N'UNASSOCIATE SPECIALIST USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25029, N'ASSOCIATE PROFILE GROUP USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25030, N'UNASSOCIATE PROFILE GROUP USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25031, N'VIEW USER PROJECTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25032, N'ASSOCIATE USER PROJECTS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25033, N'UNASSOCIATE USER PROJECTS ', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25034, N'LIST NAMED USERS', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25035, N'ADD NAMED USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25036, N'DELETE NAMED USER', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25037, N'Articles.GetObject', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25038, N'Articles.List', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25113, N'REASSIGN CASES', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25159, N'VIEW REASSIGNMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25160, N'CREATE REASSIGNMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25161, N'UPDATE REASSIGNMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25162, N'DELETE REASSIGNMENT', NULL, 1, 12, NULL
EXEC [METADATA_PERMISSIONS] 25163, N'DELETE IMAGES RELATED TO ARTICLES', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25164, N'Article.Additionals', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25165, N'Article.Approvals', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25166, N'Article.Rules', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25167, N'Article.Models', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25168, N'Article.Folders', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25169, N'Article.MailTemplates', NULL, 1, 25, NULL
EXEC [METADATA_PERMISSIONS] 25170, N'CI.MailTemplates', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 25171, N'Maintenance.MailTemplates', NULL, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 25172, N'Change.MailTemplates', NULL, 1, 13003, NULL
EXEC [METADATA_PERMISSIONS] 25173, N'Incident.MailTemplates', NULL, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 25174, N'Problem.MailTemplates', NULL, 1, 13002, NULL
EXEC [METADATA_PERMISSIONS] 25175, N'ServiceCall.MailTemplates', NULL, 1, 13004, NULL
EXEC [METADATA_PERMISSIONS] 25176, N'Release.MailTemplates', NULL, 1, 13013, NULL

EXEC [METADATA_PERMISSIONS] 25177, N'Change.AddApprovalVoter', null, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 25178, N'ServiceCalls.AddApprovalVoter', null, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 25179, N'Release.AddApprovalVoter', null, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 25180, N'Incident.AddApprovalVoter', null, 1, 13001, NULL
EXEC [METADATA_PERMISSIONS] 25181, N'CI.AddApprovalVoter', null, 1, 21, NULL
EXEC [METADATA_PERMISSIONS] 25182, N'Maintenance.AddApprovalVoter', null, 1, 21, NULL

PRINT 'METADATA_PERMISSIONS DONE!!'
GO
DECLARE @role_id_asms INT;
EXEC [METADATA_ROLES] N'Project Manager', N'Project Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'All Project Viewer', N'All Project Viewer', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Company Manager', N'Company Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Provider Manager', N'Provider Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Client Manager', N'Client Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Specialist Manager', N'Specialist Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Group Administrator', N'Group Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Area Administrator', N'Area Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Calendar Administrator', N'Calendar Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Category Administrator', N'Category Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Service Administrator', N'Service Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'SLA Administrator', N'SLA Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'UC Administrator', N'UC Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'OLA Administrator', N'OLA Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Model Administrator', N'Model Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Status Administrator', N'Status Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Client Interface Administrator', N'Client Interface Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Client Additionals Administrator', N'Client Additionals Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Time Administrator', N'Time Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Task Administrator', N'Task Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Aproval Administrator', N'Aproval Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Risk Administrator', N'Risk Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'View Administrator', N'View Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Rule Administrator', N'Rule Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Client Survey Administrator', N'Client Survey Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Banner Administrator', N'Banner Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'News Administrator', N'News Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Template Administrator', N'Template Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Contract Mail Template Administrator', N'Mail Template Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Mail Server Administrator', N'Mail Server Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Relation Administrator', N'Relation Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Licence Administrator', N'Licence Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Matrix Administrator', N'Matrix Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Forms ServiceCall Administrator', N'NULL', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Forms Incident Administrator', N'NULL', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Forms Problem Administrator', N'NULL', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Forms Change Administrator', N'NULL', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Forms Release Administrator', N'NULL', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Forms Task Administrator', N'NULL', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Links Administrator', N'NULL', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Display Administrator', N'NULL', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Article Manager', N'Article Manager', 1, 1, 25, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Client Role', N'Client Role', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Article Status Administrator', N'Article Status Administrator', 1, 1, 25, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Article Additionals Administrator', N'Article Additionals Administrator', 1, 1, 25, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Article Approvals Administrator', N'Article Approvals Administrator', 1, 1, 25, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Article Rules Administrator', N'Article Rules Administrator', 1, 1, 25, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Article Types Administrator', N'Article Types Administrator', 1, 1, 25, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Article Folders Administrator', N'Article Folders Administrator', 1, 1, 25, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Additionals Administrator', N'CI Additionals Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Approvals Administrator', N'CI Approvals Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Folders Administrator', N'CI Folders Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Manager', N'CI Manager', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Rules Administrator', N'CI Rules Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Status Administrator', N'CI Status Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Types Administrator', N'CI Types Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Interface Administrator', N'CI Interface Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Task Administrator', N'Maintenance Task Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Time Administrator', N'Maintenance Time Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Audits Administrator', N'Audits Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Packages Administrator', N'Packages Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Risk Administrator', N'CI Risk Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenances Manager', N'Maintenances Manager', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Survey Administrator', N'Maintenance Survey Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance View Administrator', N'Maintenance View Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Integrations Administrator', N'CI Integrations Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI View Administrator', N'CI View Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Service Status Administrator', N'Service Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Service Additionals Administrator', N'Service Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Service Approvals Administrator', N'Service Approvals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Service Folders Administrator', N'Service Folders Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Service Rules Administrator', N'Service Rules Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Event Manager', N'Event Manager', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Event Status Administrator', N'Event Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Event Additionals Administrator', N'Event Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Event Rules Administrator', N'Event Rules Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Event Connectors Administrator', N'Event Connectors Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Metrics Manager', N'Metrics Manager', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Cost Models Manager', N'Cost Models Manager', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Additionals Administrator', N'Incident Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Status Administrator', N'Incident Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Interface Administrator', N'Incident Interface Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Models Administrator', N'Incident Models Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incidents Manager', N'Incidents Manager', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problems Manager', N'Problems Manager', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Changes Manager', N'Changes Manager', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCalls Manager', N'ServiceCalls Manager', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Releases Manager', N'Releases Manager', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Times Administrator', N'Incident Times Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Tasks Administrator', N'Incident Tasks Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Approvals Administrator', N'Incident Approvals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Risks Administrator', N'Incident Risks Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Views Administrator', N'Incident Views Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Rules Administrator', N'Incident Rules Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Surveys Administrator', N'Incident Surveys Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Status Administrator', N'Maintenance Status Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Package Status Administrator', N'Package Status Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Models Administrator', N'Maintenance Models Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Package Types Administrator', N'Package Types Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Additionals Administrator', N'Maintenance Additionals Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Package Additionals Administrator', N'Package Additionals Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Rules Administrator', N'Maintenance Rules Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Package Rules Administrator', N'Package Rules Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Risk Administrator', N'Maintenance Risk Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Inbound Servers Administrator', N'Inbound Servers Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Inbound Templates Administrator', N'Inbound Templates Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'SLA Status Administrator', N'SLA Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'UC Status Administrator', N'UC Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'OLA Status Administrator', N'OLA Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'SLA Additionals Administrator', N'SLA Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'UC Additionals Administrator', N'UC Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'OLA Additionals Administrator', N'OLA Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'SLA Approvals Administrator', N'SLA Approvals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'UC Approvals Administrator', N'UC Approvals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'OLA Approvals Administrator', N'OLA Approvals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Models Administrator', N'Problem Models Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Models Administrator', N'Change Models Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Models Administrator', N'ServiceCall Models Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Models Administrator', N'Release Models Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Task Models Administrator', N'Task Models Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Times Administrator', N'Problem Times Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Times Administrator', N'Change Times Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Times Administrator', N'ServiceCall Times Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Times Administrator', N'Release Times Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Approvals Administrator', N'Change Approvals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Approvals Administrator', N'ServiceCall Approvals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Approvals Administrator', N'Release Approvals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Risks Administrator', N'Change Risks Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Risks Administrator', N'Release Risks Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Views Administrator', N'Problem Views Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Views Administrator', N'Change Views Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Views Administrator', N'ServiceCall Views Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Views Administrator', N'Release Views Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Rules Administrator', N'Problem Rules Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Rules Administrator', N'Change Rules Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Rules Administrator', N'ServiceCall Rules Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Rules Administrator', N'Release Rules Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Task Rules Administrator', N'Task Rules Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Surveys Administrator', N'Problem Surveys Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Surveys Administrator', N'Change Surveys Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Surveys Administrator', N'ServiceCall Surveys Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Surveys Administrator', N'Release Surveys Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Status Administrator', N'Problem Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Status Administrator', N'Change Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Status Administrator', N'ServiceCall Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Status Administrator', N'Release Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Task Status Administrator', N'Task Status Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Interface Administrator', N'Problem Interface Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Interface Administrator', N'Change Interface Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Interface Administrator', N'ServiceCall Interface Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Interface Administrator', N'Release Interface Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Interface Administrator', N'Maintenance Interface Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Additionals Administrator', N'Problem Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Additionals Administrator', N'Change Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Additionals Administrator', N'ServiceCall Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Additionals Administrator', N'Release Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Task Additionals Administrator', N'Task Additionals Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Tasks Administrator', N'Problem Tasks Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Tasks Administrator', N'Change Tasks Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Tasks Administrator', N'ServiceCall Tasks Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Tasks Administrator', N'Release Tasks Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Approvals Administrator', N'Maintenance Approvals Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Contract Status Administrator', N'Contract Status Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Contract Additionals Administrator', N'Contract Additionals Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Contracts Manager', N'Contracts Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Invoices Manager', N'Invoices Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'OtherDocuments Manager', N'OtherDocuments Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CostCenters Manager', N'CostCenters Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Budgets Manager', N'Budgets Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Accounting Manager', N'Accounting Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Contracts Models Administrator', N'Contracts Models Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Client Groups Administrator', N'Client Groups Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Business Process Administrator', N'Business Process Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Specialist Interface Administrator', N'Specialist Interface Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Company Interface Administrator', N'Company Interface Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Supplier Interface Administrator', N'Supplier Interface Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Specialist Additionals Administrator', N'Specialist Additionals Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Company Additionals Administrator', N'Company Additionals Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Supplier Additionals Administrator', N'Supplier Additionals Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Alert  Manager', N'Alert  Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Routing  Manager', N'Routing  Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Specialist Surveys Administrator', N'Specialist Surveys Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'LDAP Manager', N'LDAP Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'EventLog Manager', N'EventLog Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Catalogs Manager', N'Catalogs Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Roles Manager', N'Roles Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Article Mail Template Administrator', N'Article Mail Template Administrator', 1, 1, 25, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Mail Template Administrator', N'CI Mail Template Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Mail Template Administrator', N'Maintenance Mail Template Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Audits Mail Template Administrator', N'Audits Mail Template Administrator', 1, 1, 21, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Service Mail Template Administrator', N'Service Mail Template Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'SLA Mail Template Administrator', N'SLA Mail Template Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'UC Mail Template Administrator', N'UC Mail Template Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'OLA Mail Template Administrator', N'OLA Mail Template Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change  Mail Template Administrator', N'Change  Mail Template Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident  Mail Template Administrator', N'Incident  Mail Template Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Mail Template Administrator', N'Problem Mail Template Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Mail Template Administrator', N'Release Mail Template Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Mail Template Administrator', N'ServiceCall Mail Template Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Client Mail Template Administrator', N'Client Mail Template Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Specialist Mail Template Administrator', N'Specialist Mail Template Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'All Incidents Viewer', N'All Incidents Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Project Incidents Viewer', N'Project Incidents Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Group Incidents Viewer', N'Group Incidents Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'All Problem Viewer', N'All Problem Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Project Problem Viewer', N'Project Problem Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Group Problem Viewer', N'Group Problem Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'All Change Viewer', N'All Change Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Project Change Viewer', N'Project Change Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Group Change Viewer', N'Group Change Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'All ServiceCall Viewer', N'All ServiceCall Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Project ServiceCall Viewer', N'Project ServiceCall Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Group ServiceCall Viewer', N'Group ServiceCall Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'All Release Viewer', N'All Release Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Project Release Viewer', N'Project Release Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Group Release Viewer', N'Group Release Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'All Maintenance Viewer', N'All Maintenance Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Project Maintenance Viewer', N'Project Maintenance Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Group Maintenance Viewer', N'Group Maintenance Viewer', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Specialist Role', N'Specialist Role', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Administrator Role', N'Administrator Role', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Article Administrator Super User', N'Tiene permitida la administración completa de artículos. Incluyendo la gestión de estados, campos adicionales, aprobaciones, reglas, tipos, carpetas y plantillas de correo para artículos.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Change Administrator Super User', N'Tiene permitida la administración completa de cambios en la herramienta. Incluye la gestión de campos adicionales, tareas, modelos, tiempos, aprobaciones,riesgos, vistas, reglas, encuestas, estados, interfaces y plantillas de correo para cambios.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'CI Administrator Super User', N'Tiene permitida la administración completa de CIs. Incluye la gestión de campos adicionales, aprobaciones, carpetas, reglas, estados, tipos, interfaces, riesgos, integraciones y plantillas de correo para CIs.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Client Administrator Super User', N'Tiene permisos para realizar la administración de clientes. Incluye la gestión de interfaces, campos adicionales, encuestas, gurpos y plantillas de correo para clientes.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Company Administrator Super User', N'Tiene permisos para la administración de compañías. Incluye interfaces y campos adicionales para compañías.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Contract Administrator Super User', N'Tiene permitida la administración de contratos. Incluye la gestión de plantillas de correo, estados, campos adicionales y modelos para contratos.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Event Administrator Super User', N'Tiene permitida la administración de eventos. Incluyendo la gestión de estados, campos adicionales, reglas y conectores para mantenimientos.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Incident Administrator Super User', N'Tiene permisos para la administración completa de incidentes en la herramienta; gestión de campos adicionales, estados, interfaces, modelos, tiempos, tareas, aprobaciones, riesgos, vistas, reglas, encuestas y plantillas de correo para incidentes.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Maintenance Administrator Super USer', N'Tiene permisos para realizar la administración de mantenimientos. Incluye la gestión de estados, modelos, plantillas de correo, aprobaciones, interfaces, vistas, encuestas, tiempos, tareas, riesgos, reglas y campos adicionales para mantenimientos.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'OLA Administrator Super User', N'Tiene permitida la administración completa de OLAs (Acuerdos de Nivel Operativo). Incluye la gestión de plantillas de correo, estados, campos adicionales y aprobaciones para OLAs.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Package Administrator Super User', N'Tiene permititda la administración de paquetes. Incluye la gestión de estados, tipos, campos adicionales y reglas para paquetes.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Problem Administrator Super User', N'Puede realizar la administración completa de problemas.Incluye la gestión de plantillas de correo, campos adicionales, tareas, modelos, tiempos, vistas, reglas, encuestas, estados e interfaces para problemas.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Release Administrator Super User', N'Tiene permitida la administración completa de releases, incluyendo la gestión de plantillas de correo, campos adicionales, tareas, modelos, tiempos, aprobaciones, riesgos, vistas, reglas, encuestas, estados e interfaces para releases.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Service administrator Super User', N'Tiene permisos para realizar la administración de servicios. Incluye la gestión de plantillas de correo, estados, campos adicionales, aprobaciones, carpetas y reglas para servicios.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ServiceCall Administrator Super User', N'Tiene permisos para la administración completa de requerimientos de servicio; gestión de plantillas de correo, campos adicionales, tareas, modelos, tiempos, aprobaciones, vistas, reglas, encuestas, estados e interfaces para requerimientos de servicio.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'SLA Administrator Super User', N'Tiene permisos para la administración completa de SLAs (Acuerdos de Nivel de Servicio). Incluyendo la gestión de plantillas de correo, estados, campos adicionales y aprobaciones para SLAs.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Specialists Administrator Super User', N'Tiene permisos para la administración de especialistas. Incluye la gestión de campos adicionales, encuestas, platillas de correo e interfaces para especialistas.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Supplier Administrator Super User', N'Tiene permisos para realizar la administración de proveedores. Incluye la gestión de interfaces y campos adicionales para proveedores.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'UC Administrator Super User', N'Tiene permisos para la administración completa de UCs (Acuerdos con Proveedores Externos). Incluyendo la gestión de plantillas de correo, estados, campos adicionales y aprobaciones para UCs.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'UC Administrator Super User', N'Tiene permisos para la administración completa de UCs (Acuerdos con Proveedores Externos). Incluyendo la gestión de plantillas de correo, estados, campos adicionales y aprobaciones para UCs.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'TeamsClient', N'Teams Client', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'TeamsConfiguration', N'Teams Configuration', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Third Party Approval','Third Party Approval', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'SAML administrator Super User','SAML administrator Super User', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Locations Administrator','Tiene permitida la administración de ubicaciones.', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Settings Manager', N'Settings Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'ChangeSet Manager', N'ChangeSet Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Customer Third Party Approval','Customer Third Party Approval', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Recalculate dates','Recalculate dates', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'IA Manager', N'IA Manager', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Board Manager', N'Board Manager', 1, 1, 13, NULL, @role_id_asms

EXEC [METADATA_ROLES] N'Add Changes Ticket Approvers', N'Add Changes Ticket Approvers', 1, 1, 13, null, @role_id_asms
EXEC [METADATA_ROLES] N'Add ServiceCalls Ticket Approvers', N'Add ServiceCalls Ticket Approvers', 1, 1, 13, null, @role_id_asms
EXEC [METADATA_ROLES] N'Add Releases Ticket Approvers', N'Add Releases Ticket Approvers', 1, 1, 13, null, @role_id_asms
EXEC [METADATA_ROLES] N'Add Incidents Ticket Approvers', N'Add Incidents Ticket Approvers', 1, 1, 13, null, @role_id_asms
EXEC [METADATA_ROLES] N'Add CIs Ticket Approvers', N'Add CIs Ticket Approvers', 1, 1, 21, null, @role_id_asms
EXEC [METADATA_ROLES] N'Add Maintenance Ticket Approvers', N'Add Maintenance Ticket Approvers', 1, 1, 21, null, @role_id_asms
EXEC [METADATA_ROLES] N'Designer Administrator', N'Designer Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Map Administrator', N'Map Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Token Administrator', N'Token Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Chat Administrator', N'Chat Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Tariff Administrator', N'Tariff Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Service Profile Administrator', N'Service Profile Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Scheduled Notifications Administrator', N'Scheduled Notifications Administrator', 1, 1, 12, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Model Profile Administrator', N'Model Profile Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Scheduled Cases Actions Administrator', N'Scheduled Cases Actions Administrator', 1, 1, 13, NULL, @role_id_asms
EXEC [METADATA_ROLES] N'Scheduled CMDB Actions Administrator', N'Scheduled CMDB Actions Administrator', 1, 1, 21, NULL, @role_id_asms
GO

PRINT 'METADATA_ROLES DONE!!'
GO
DECLARE @role_id_asms_access INT

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Project Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'All Project Viewer' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Company Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Provider Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Client Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Specialist Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Group Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Area Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Calendar Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Category Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Service Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'SLA Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'UC Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'OLA Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Model Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Status Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Client Interface Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Client Additionals Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Time Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Task Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Aproval Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Risk Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'View Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Rule Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Client Survey Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Banner Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'News Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Template Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Contract Mail Template Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Mail Server Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Relation Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Licence Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Matrix Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Article Manager' AND [role_application_id] = 25

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Client Role' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Article Status Administrator' AND [role_application_id] = 25

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Article Additionals Administrator' AND [role_application_id] = 25

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Article Approvals Administrator' AND [role_application_id] = 25

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Article Rules Administrator' AND [role_application_id] = 25

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Article Types Administrator' AND [role_application_id] = 25

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Article Folders Administrator' AND [role_application_id] = 25

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Additionals Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Approvals Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Folders Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Manager' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Rules Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Status Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Types Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Interface Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Task Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Time Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Audits Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Packages Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Risk Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenances Manager' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Survey Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance View Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Integrations Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Service Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Service Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Service Approvals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Service Folders Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Service Rules Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Event Manager' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Event Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Event Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Event Rules Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Event Connectors Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Metrics Manager' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Cost Models Manager' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Interface Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Models Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incidents Manager' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problems Manager' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Changes Manager' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCalls Manager' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Releases Manager' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Times Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Tasks Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Approvals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Risks Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Views Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Rules Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Surveys Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Status Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Package Status Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Models Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Package Types Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Additionals Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Package Additionals Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Rules Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Package Rules Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Risk Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Inbound Servers Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Inbound Templates Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'SLA Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'UC Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'OLA Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'SLA Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'UC Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'OLA Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'SLA Approvals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'UC Approvals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'OLA Approvals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Models Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Models Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Models Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Models Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Task Models Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Times Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Times Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Times Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Times Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Approvals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Approvals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Approvals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Risks Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Risks Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Views Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Views Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Views Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Views Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Rules Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Rules Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Rules Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Rules Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Task Rules Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Surveys Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Surveys Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Surveys Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Surveys Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Task Status Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Interface Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Interface Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Interface Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Interface Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Interface Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Task Additionals Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Tasks Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Tasks Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Tasks Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Tasks Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Approvals Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Contract Status Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Contract Additionals Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Contracts Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Invoices Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'OtherDocuments Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CostCenters Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Budgets Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Accounting Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Contracts Models Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Client Groups Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Business Process Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Specialist Interface Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Company Interface Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Supplier Interface Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Specialist Additionals Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Company Additionals Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Supplier Additionals Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Routing  Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Specialist Surveys Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'EventLog Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Catalogs Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Article Mail Template Administrator' AND [role_application_id] = 25

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Mail Template Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Mail Template Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Audits Mail Template Administrator' AND [role_application_id] = 21

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Service Mail Template Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'SLA Mail Template Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'UC Mail Template Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'OLA Mail Template Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change  Mail Template Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident  Mail Template Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Mail Template Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Mail Template Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Mail Template Administrator' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Client Mail Template Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Specialist Mail Template Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'All Incidents Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Project Incidents Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Group Incidents Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'All Problem Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Project Problem Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Group Problem Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'All Change Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Project Change Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Group Change Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'All ServiceCall Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Project ServiceCall Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Group ServiceCall Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'All Release Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Project Release Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Group Release Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'All Maintenance Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Project Maintenance Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Group Maintenance Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Group Maintenance Viewer' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Specialist Role' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Administrator Role' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Article Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Change Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'CI Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Client Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Company Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Contract Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Event Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Incident Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Maintenance Administrator Super USer' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'OLA Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Package Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Problem Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Release Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Service administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ServiceCall Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'SLA Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Specialists Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Supplier Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'UC Administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Links Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Forms ServiceCall Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Forms Incident Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Forms Problem Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Forms Change Adminisrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Forms Release Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Forms Task Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Display Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL


SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Third Party Approval' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'SAML administrator Super User' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Locations Administrator' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Settings Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'ChangeSet Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Customer Third Party Approval' AND [role_application_id] = 13

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'Recalculate_dates' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE  [role_name] = 'IA Manager' AND [role_application_id] = 12

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Designer Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL;

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Map Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL;

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Token Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL;

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Chat Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL;

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Tariff Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL;

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Service Profile Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL;

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Scheduled Notifications Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL;

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Model Profile Administrator' AND [role_application_id] = 13;

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL;

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Scheduled Cases Actions Administrator' AND [role_application_id] = 13;

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL;

SELECT @role_id_asms_access = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Scheduled CMDB Actions Administrator' AND [role_application_id] = 21;

EXEC [METADATA_ROLE_ACCESS] NULL, @role_id_asms_access, NULL, 1, 0, NULL;

PRINT 'METADATA_ROLE_ACCESS DONE!!'
GO
DECLARE @role_id_asms_perm INT

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Project Manager'
    AND [role_application_id] =12

EXEC [METADATA_ROLE_PERMISSION] 13020, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13035, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13036, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13037, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13227, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'All Project Viewer'
    AND [role_application_id] =12

EXEC [METADATA_ROLE_PERMISSION] 13163, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Company Manager'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13021, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13052, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13053, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13054, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13055, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13056, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Provider Manager'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13005, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13052, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13053, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13054, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13055, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13056, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13234, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Client Manager'
    AND [role_application_id] =12



EXEC [METADATA_ROLE_PERMISSION] 1, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 2, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 3, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 4, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 5, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13032, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13125, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13126, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13235, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13237, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13238, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Specialist Manager'
    AND [role_application_id] =12



EXEC [METADATA_ROLE_PERMISSION] 1, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 2, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 3, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 4, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 5, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13235, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13237, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13238, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13240, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Group Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13009, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13067, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13068, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13069, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13230, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13231, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Area Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13067, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13068, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13069, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13134, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13135, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13230, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13231, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Calendar Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13006, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13122, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13123, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13124, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13242, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13243, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Category Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13008, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13109, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13111, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13112, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13246, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Service Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13249, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13250, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13251, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13252, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'SLA Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13254, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13256, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13257, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'UC Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13255, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13256, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13257, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13261, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'OLA Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13255, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13256, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13257, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13263, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Model Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13168, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Status Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13017, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Client Interface Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13172, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Client Additionals Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13138, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Time Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13174, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Task Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13013, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Aproval Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13178, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Risk Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13182, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'View Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13145, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Rule Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13012, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Client Survey Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13007, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Banner Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13025, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13090, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13091, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13296, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13297, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13298, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'News Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13026, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13092, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13093, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13094, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13299, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13300, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Template Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13014, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13080, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13081, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13082, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13290, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13291, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Contract Mail Template Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13027, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Mail Server Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13024, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13087, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13088, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13089, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13294, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13295, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Relation Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13164, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13165, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13166, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13167, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Licence Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13018, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13019, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13280, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13281, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13282, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13283, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Matrix Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13028, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13098, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Article Manager'
    AND [role_application_id] =25


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13135, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13227, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13234, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13246, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13295, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21070, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21071, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25008, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25009, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25010, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25011, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25037, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25038, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Client Role'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12199, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13138, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13178, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13235, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13299, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13644, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13646, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13647, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13860, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13862, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13863, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21070, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21071, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25037, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25038, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Article Status Administrator'
    AND [role_application_id] =25


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25015, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Article Additionals Administrator'
    AND [role_application_id] =25


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25164, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Article Approvals Administrator'
    AND [role_application_id] =25


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25165, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Article Rules Administrator'
    AND [role_application_id] =25


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25166, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Article Types Administrator'
    AND [role_application_id] =25


EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25167, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Article Folders Administrator'
    AND [role_application_id] =25


EXEC [METADATA_ROLE_PERMISSION] 13302, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13303, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13304, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13305, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13606, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25168, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Additionals Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21063, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Approvals Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21064, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Folders Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13302, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13303, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13304, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13305, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13606, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21067, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Manager'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13135, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13227, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13234, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13246, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13295, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21022, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21023, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21068, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21069, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21070, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21071, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21115, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Rules Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21065, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Status Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21062, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Types Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21066, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Interface Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21074, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Task Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21073, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Time Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21072, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Audits Administrator'
    AND [role_application_id] =21

EXEC [METADATA_ROLE_PERMISSION] 21012, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21048, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21049, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21050, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21082, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Packages Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 21077, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Risk Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21075, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenances Manager'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13135, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13227, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13234, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13246, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13295, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13755, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13766, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13777, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13783, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13789, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13805, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13811, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13812, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13813, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13821, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13827, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13828, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13834, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION]	13865, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21070, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21071, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21072, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21073, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21078, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21079, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21081, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21083, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21086, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21088, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21090, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21091, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21093, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21094, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21098, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21099, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21100, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21101, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21102, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21103, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21104, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21105, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21106, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21107, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21108, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21109, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21111, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21112, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21113, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21114, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13080, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13081, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13290, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13291, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Survey Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21079, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance View Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21081, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Integrations Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13607, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13608, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13609, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13610, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13611, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21080, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Service Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13612, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Service Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13613, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Service Approvals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13614, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Service Folders Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13302, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13303, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13304, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13305, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13606, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13615, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Service Rules Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13616, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Event Manager'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13135, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13227, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13234, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13246, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13620, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13621, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13622, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13623, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13624, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13625, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21070, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21071, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Event Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13617, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Event Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13618, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Event Rules Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13619, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Event Connectors Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13626, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13627, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13628, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13629, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13630, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13631, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Metrics Manager'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13632, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13633, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13634, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13635, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13636, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13637, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Cost Models Manager'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13222, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13223, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13224, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13225, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13638, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13639, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13640, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13642, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Interface Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13643, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Models Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13641, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incidents Manager'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13135, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13227, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13234, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13246, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13644, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13750, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13755, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13756, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13761, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13766, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13767, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13772, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13777, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13778, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13783, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13784, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13789, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13790, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13795, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13800, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13805, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13806, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13811, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13812, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13813, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13814, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13821, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13822, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13827, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13828, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13829, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13834, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13835, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13840, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13845, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13850, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13855, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13860, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13865, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13295, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21070, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21071, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13080, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13081, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13290, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13291, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problems Manager'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13135, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13227, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13234, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13246, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13645, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13751, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13755, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13757, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13762, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13766, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13768, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13773, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13777, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13779, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13783, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13785, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13789, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13791, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13796, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13801, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13805, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13807, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13811, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13812, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13813, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13815, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13821, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13823, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13827, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13828, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13830, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13834, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13836, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13841, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13846, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13851, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13856, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13861, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13865, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13295, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21070, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21071, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13080, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13081, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13290, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13291, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Changes Manager'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13135, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13227, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13234, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13246, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13646, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13752, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13755, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13758, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13763, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13766, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13769, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13774, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13777, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13780, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13783, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13786, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13789, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13792, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13797, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13802, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13805, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13808, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13811, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13812, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13813, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13816, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13821, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13824, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13827, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13828, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13831, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13834, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13837, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13842, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13847, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13852, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13857, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13862, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13865, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13295, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21070, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21071, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13080, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13081, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13290, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13291, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCalls Manager'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13135, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13227, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13234, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13246, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13647, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13753, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13755, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13759, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13764, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13766, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13770, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13775, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13777, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13781, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13783, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13787, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13789, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13793, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13798, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13803, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13805, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13809, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13811, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13812, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13813, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13817, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13821, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13825, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13827, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13828, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13832, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13834, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13838, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13843, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13848, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13853, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13858, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13863, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13865, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13295, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21070, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21071, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13080, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13081, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13290, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13291, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Releases Manager'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13135, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13226, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13227, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13232, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13233, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13234, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13246, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13289, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13648, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13754, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13755, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13760, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13765, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13766, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13771, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13776, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13777, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13782, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13783, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13788, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13789, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13794, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13799, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13804, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13805, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13810, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13811, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13812, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13813, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13818, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13821, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13826, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13827, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13828, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13833, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13834, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13839, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13844, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13849, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13854, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13859, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13864, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13865, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13295, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21070, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21071, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13080, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13081, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13290, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13291, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Times Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13654, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Tasks Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13655, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Approvals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13656, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Risks Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13657, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Views Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13658, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Rules Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13659, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Surveys Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13660, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Status Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21083, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Package Status Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21084, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Models Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21086, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Package Types Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21085, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Additionals Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21088, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Package Additionals Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21087, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Rules Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21090, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Package Rules Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21089, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Risk Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21091, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Inbound Servers Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13661, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13662, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13663, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13664, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13665, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13666, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Inbound Templates Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13667, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13668, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13669, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13670, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13671, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13672, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'SLA Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13673, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'UC Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13674, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'OLA Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13675, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'SLA Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13676, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'UC Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13677, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'OLA Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13678, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'SLA Approvals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13679, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'UC Approvals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13680, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'OLA Approvals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13681, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Models Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13682, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Models Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13683, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Models Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13684, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Models Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13685, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Task Models Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13686, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Times Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13709, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Times Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13710, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Times Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13711, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Times Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13712, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Approvals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13691, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Approvals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13692, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Approvals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13693, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Risks Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13694, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Risks Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13695, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Views Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13696, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Views Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13697, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Views Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13698, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Views Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13699, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Rules Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13700, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Rules Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13701, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Rules Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13702, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Rules Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13703, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Task Rules Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13704, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Surveys Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13705, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Surveys Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13706, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Surveys Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13707, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Surveys Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13708, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13713, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13714, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13715, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13716, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Task Status Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13717, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Interface Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13718, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Interface Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13719, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Interface Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13720, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Interface Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13721, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Interface Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21093, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13722, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13723, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13724, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13725, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Task Additionals Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13726, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Tasks Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13687, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Tasks Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13688, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Tasks Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13689, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Tasks Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13690, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Approvals Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21094, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Contract Status Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Contract Additionals Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Contracts Manager'
    AND [role_application_id] =12

EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12163, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13214, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13215, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13216, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13217, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21043, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Invoices Manager'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12164, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13214, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13215, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13216, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13217, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21043, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'OtherDocuments Manager'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12165, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13214, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13215, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13216, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13217, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21043, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CostCenters Manager'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12166, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12172, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12174, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12175, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Budgets Manager'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12167, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13218, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13219, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13220, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13221, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Accounting Manager'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12168, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13218, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13219, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13220, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13221, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Contracts Models Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Client Groups Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12178, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13067, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13068, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13069, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13230, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13231, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Business Process Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13210, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13211, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13212, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13213, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Specialist Interface Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Company Interface Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12182, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Supplier Interface Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Specialist Additionals Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Company Additionals Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Supplier Additionals Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12186, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Routing  Manager'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12187, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12188, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12189, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12190, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12191, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12192, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Specialist Surveys Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12193, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'EventLog Manager'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12194, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Catalogs Manager'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12195, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Article Mail Template Administrator'
    AND [role_application_id] =25


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25169, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Mail Template Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25170, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Mail Template Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25171, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Audits Mail Template Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21095, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Service Mail Template Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13727, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'SLA Mail Template Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13728, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'UC Mail Template Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13729, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'OLA Mail Template Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13730, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change  Mail Template Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25172, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident  Mail Template Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25173, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Mail Template Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25174, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Mail Template Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25176, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Mail Template Administrator'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25175, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Client Mail Template Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12196, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Specialist Mail Template Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12197, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'All Incidents Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13731, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Project Incidents Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13732, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13819, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Group Incidents Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13733, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13820, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'All Problem Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13734, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Project Problem Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13735, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13819, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Group Problem Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13736, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13820, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'All Change Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13737, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Project Change Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13738, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13819, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Group Change Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13739, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13820, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'All ServiceCall Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13740, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Project ServiceCall Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13741, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13819, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Group ServiceCall Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13742, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13820, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'All Release Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13743, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Project Release Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13744, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13819, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Group Release Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13745, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13820, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'All Maintenance Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13746, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Project Maintenance Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13747, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13819, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Group Maintenance Viewer'
    AND [role_application_id] =13


EXEC [METADATA_ROLE_PERMISSION] 13649, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13650, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13651, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13652, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13653, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13820, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13748, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Specialist Role'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12198, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Administrator Role'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13001, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Article Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13302, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13303, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13304, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13305, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13606, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25015, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25164, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25165, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25166, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25167, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25168, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25169, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Change Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13683, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13686, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13688, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13691, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13694, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13697, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13701, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13704, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13706, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13710, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13714, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13717, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13719, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13723, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13726, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25172, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13302, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13303, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13304, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13305, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13606, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13607, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13608, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13609, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13610, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13611, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21063, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21064, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21065, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21066, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21067, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21080, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21115, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Client Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12178, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12196, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13007, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13032, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13067, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13068, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13069, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13125, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13126, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13138, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13172, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13228, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13230, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13231, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13235, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13236, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13237, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13238, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13239, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'CI View Administrator'
    AND [role_application_id] =21


EXEC [METADATA_ROLE_PERMISSION] 21115, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1



SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Company Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12182, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Contract Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13027, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Event Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13617, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13618, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13619, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13626, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13627, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13628, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13629, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13630, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13631, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Incident Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13640, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13641, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13642, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13643, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13654, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13655, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13656, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13657, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13658, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13659, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13660, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13686, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13704, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13717, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13726, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25173, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Maintenance Administrator Super USer'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13686, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13704, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13717, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13726, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13755, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13766, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13777, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13783, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13789, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13805, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13811, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13812, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13813, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13820, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13821, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13827, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13828, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13834, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION]	13865, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21072, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21073, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21079, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21081, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21083, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21086, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21088, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21090, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21091, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21093, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21094, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21098, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21099, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21100, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21101, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21102, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21103, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21104, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21105, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21106, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21107, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21108, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21109, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21110, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21111, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21112, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21113, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21114, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25171, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'OLA Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13242, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13255, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13256, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13257, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13263, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13264, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13675, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13678, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13681, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13730, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Package Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21077, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21084, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21085, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21087, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 21089, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Problem Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13682, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13686, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13687, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13696, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13700, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13704, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13705, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13709, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13713, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13717, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13718, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13722, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13726, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25174, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Release Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13185, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13275, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13276, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13685, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13686, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13690, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13693, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13695, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13699, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13703, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13704, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13708, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13712, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13716, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13717, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13721, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13725, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13726, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25176, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Service administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13229, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13249, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13250, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13251, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13252, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13253, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13288, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13302, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13303, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13304, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13305, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13606, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13612, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13613, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13614, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13615, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13616, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13727, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ServiceCall Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13074, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13075, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13076, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13130, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13131, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13132, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13146, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13147, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13148, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13169, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13170, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13171, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13175, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13176, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13177, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13244, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13245, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13269, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13270, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13271, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13272, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13278, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13279, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13284, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13285, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13684, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13686, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13689, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13692, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13698, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13702, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13704, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13707, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13711, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13715, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13717, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13720, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13724, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13726, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 25175, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'SLA Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13242, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13254, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13255, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13256, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13257, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13258, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13673, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13676, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13679, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13728, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Specialists Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12184, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12193, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12197, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13060, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13061, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13062, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13286, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13287, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Supplier Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12183, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12186, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13173, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13267, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13268, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'UC Administrator Super User'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 25, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 37, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 38, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 40, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13040, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13041, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13042, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13095, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13096, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13097, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13139, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13140, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13141, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13179, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13180, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13181, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13242, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13247, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13248, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13255, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13256, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13257, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13259, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13260, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13261, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13262, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13265, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13266, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13273, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13274, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13292, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13293, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13674, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13677, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13680, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13729, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Links Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12211, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12212, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12213, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12214, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12215, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Forms ServiceCall Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12200, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12201, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12202, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12203, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12204, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12205, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Forms Incident Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12200, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12201, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12202, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12203, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12204, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12206, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Forms Problem Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12200, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12201, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12202, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12203, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12204, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12207, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Forms Change Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12200, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12201, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12202, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12203, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12204, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12208, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Forms Release Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12200, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12201, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12202, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12203, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12204, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12209, @role_id_asms_perm, 1


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Forms Task Administrator'
    AND [role_application_id] =12


EXEC [METADATA_ROLE_PERMISSION] 12200, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12201, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12202, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12203, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12204, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12210, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Display Administrator'
    AND [role_application_id] =12

EXEC [METADATA_ROLE_PERMISSION] 12216, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12217, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'TeamsClient'
    AND [role_application_id] =12

EXEC [METADATA_ROLE_PERMISSION] 12198, @role_id_asms_perm, 0
EXEC [METADATA_ROLE_PERMISSION] 13867, @role_id_asms_perm, 0

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'TeamsConfiguration'
    AND [role_application_id] =12

EXEC [METADATA_ROLE_PERMISSION] 13001, @role_id_asms_perm, 0
EXEC [METADATA_ROLE_PERMISSION] 13866, @role_id_asms_perm, 0
EXEC [METADATA_ROLE_PERMISSION] 13869, @role_id_asms_perm, 0
EXEC [METADATA_ROLE_PERMISSION] 13870, @role_id_asms_perm, 0

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Third Party Approval'
    AND [role_application_id] =13

EXEC [METADATA_ROLE_PERMISSION] 13868, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'SAML administrator Super User'
    AND [role_application_id] = 12

EXEC [METADATA_ROLE_PERMISSION] 12218, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12219, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12220, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12221, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Locations Administrator'
    AND [role_application_id] = 12

EXEC [METADATA_ROLE_PERMISSION] 12222, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12223, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12224, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 12225, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Settings Manager'
    AND [role_application_id] = 12

EXEC [METADATA_ROLE_PERMISSION] 12226, @role_id_asms_perm, 0
EXEC [METADATA_ROLE_PERMISSION] 12232, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'ChangeSet Manager'
    AND [role_application_id] = 12

EXEC [METADATA_ROLE_PERMISSION] 12227, @role_id_asms_perm, 0
EXEC [METADATA_ROLE_PERMISSION] 12228, @role_id_asms_perm, 0
EXEC [METADATA_ROLE_PERMISSION] 12229, @role_id_asms_perm, 0
EXEC [METADATA_ROLE_PERMISSION] 12230, @role_id_asms_perm, 0
EXEC [METADATA_ROLE_PERMISSION] 12231, @role_id_asms_perm, 0

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Customer Third Party Approval'
    AND [role_application_id] = 13

EXEC [METADATA_ROLE_PERMISSION] 13871, @role_id_asms_perm, 0

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Recalculate dates'
    AND [role_application_id] = 12

EXEC [METADATA_ROLE_PERMISSION] 13872, @role_id_asms_perm, 0
EXEC [METADATA_ROLE_PERMISSION] 13873, @role_id_asms_perm, 0


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'IA Manager'
    AND [role_application_id] =12

EXEC [METADATA_ROLE_PERMISSION] 13874, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13875, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13876, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13877, @role_id_asms_perm, 1
EXEC [METADATA_ROLE_PERMISSION] 13878, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Board Manager'
    AND [role_application_id] = 13

EXEC [METADATA_ROLE_PERMISSION] 13879, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Add Changes Ticket Approvers'
    AND [role_application_id] = 13

EXEC [METADATA_ROLE_PERMISSION] 25177, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Add ServiceCalls Ticket Approvers'
    AND [role_application_id] = 13

EXEC [METADATA_ROLE_PERMISSION] 25178, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Add Releases Ticket Approvers'
    AND [role_application_id] = 13

EXEC [METADATA_ROLE_PERMISSION] 25179, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Add Incidents Ticket Approvers'
    AND [role_application_id] = 13

EXEC [METADATA_ROLE_PERMISSION] 25180, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Add CIs Ticket Approvers'
    AND [role_application_id] = 21

EXEC [METADATA_ROLE_PERMISSION] 25181, @role_id_asms_perm, 1

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Add Maintenance Ticket Approvers'
    AND [role_application_id] = 21

EXEC [METADATA_ROLE_PERMISSION] 25182, @role_id_asms_perm, 1

PRINT 'METADATA_ROLE_PERMISSION DONE!!'

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Designer Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_PERMISSION] 12233, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12234, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12235, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12236, @role_id_asms_perm, 1;


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Map Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_PERMISSION] 12237, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12238, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12239, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12240, @role_id_asms_perm, 1;


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Token Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_PERMISSION] 12241, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12242, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12243, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 3,     @role_id_asms_perm, 1;


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Chat Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_PERMISSION] 12244, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12245, @role_id_asms_perm, 1;


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Tariff Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_PERMISSION] 12246, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12247, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12248, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12249, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 13241, @role_id_asms_perm, 1;


SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Service Profile Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_PERMISSION] 12250, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12251, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12252, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12253, @role_id_asms_perm, 1;

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Scheduled Notifications Administrator' AND [role_application_id] = 12;

EXEC [METADATA_ROLE_PERMISSION] 12254, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12255, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12256, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12257, @role_id_asms_perm, 1;

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Model Profile Administrator' AND [role_application_id] = 13;

EXEC [METADATA_ROLE_PERMISSION] 12250, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12251, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12252, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12253, @role_id_asms_perm, 1;

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Scheduled Cases Actions Administrator' AND [role_application_id] = 13;

EXEC [METADATA_ROLE_PERMISSION] 12258, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12259, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12260, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 12261, @role_id_asms_perm, 1;

SELECT @role_id_asms_perm = role_id
FROM [dbo].[AFW_ROLES]
WHERE [role_name] = 'Scheduled CMDB Actions Administrator' AND [role_application_id] = 21;

EXEC [METADATA_ROLE_PERMISSION] 21116, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 21117, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 21118, @role_id_asms_perm, 1;
EXEC [METADATA_ROLE_PERMISSION] 21119, @role_id_asms_perm, 1;

PRINT 'METADATA_ROLE_PERMISSION DONE!!'

EXEC [METADATA_RULE_CONTEXT] 13001, N'Aranda.ASMS.dll', N'Aranda.ASDK.Entities.ItemInfo', N'Id'
EXEC [METADATA_RULE_CONTEXT] 13004, N'Aranda.ASMS.dll', N'Aranda.ASDK.Entities.ServiceInfo', N'Id'
EXEC [METADATA_RULE_CONTEXT] 13005, N'Aranda.ASMS.dll', N'Aranda.ASDK.Entities.EventInfo', N'Id'
EXEC [METADATA_RULE_CONTEXT] 21003, N'Aranda.ASMS.dll', N'Aranda.CMDB.Entities.CIInfo', N'Id'
EXEC [METADATA_RULE_CONTEXT] 25002, N'Aranda.ASMS.dll', N'Aranda.ASS.Entities.ArticleInfo', N'Id'
GO

PRINT 'METADATA_RULE_CONTEXT DONE!!'
GO
EXEC [METADATA_RULE_ACTION] 12012, 13001, N'SendAlarm', N'Aranda.ASMS.Modules.AlarmAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 12013, 13001, N'InvokeWebService', N'Aranda.ASDK.Modules.WebServiceAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 12022, 25002, N'SendAlarm2', N'Aranda.ASMS.Modules.AlarmAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 12023, 25002, N'InvokeWebService2', N'Aranda.ASS.Modules.WebServiceAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 12032, 21003, N'SendAlarm3', N'Aranda.ASMS.Modules.AlarmAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 12033, 21003, N'InvokeWebService3', N'Aranda.CMDB.Modules.WebServiceAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 12052, 13004, N'SendAlarm4', N'Aranda.ASMS.Modules.AlarmAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 12062, 13005, N'SendAlarm5', N'Aranda.ASMS.Modules.AlarmAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13011, 13001, N'SendMail', N'Aranda.ASDK.Modules.MailAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13014, 13001, N'ModifyItem', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13015, 13001, N'ModifyRelatedItems', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13016, 13001, N'CreateItem', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13025, 25002, N'ModifyRelatedItems2', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13026, 25002, N'CreateItem2', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13035, 21003, N'ModifyRelatedItems3', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13036, 21003, N'CreateItem3', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13044, 13001, N'ModifyTask', N'Aranda.ASDK.Modules.TaskAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13048, 13001, N'CreateTask', N'Aranda.ASDK.Modules.TaskAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13049, 13001, N'ModifyRelatedTasks', N'Aranda.ASDK.Modules.TaskAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13051, 13004, N'SendMail4', N'Aranda.ASDK.Modules.MailAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13054, 13004, N'ModifyService', N'Aranda.ASDK.Modules.ServiceAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13055, 13004, N'ModifyRelatedItems4', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13056, 13004, N'CreateItem4', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13061, 13005, N'SendMail5', N'Aranda.ASDK.Modules.MailAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13064, 13005, N'ModifyEvent', N'Aranda.ASDK.Modules.EventAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13065, 13005, N'ModifyRelatedItems5', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13066, 13005, N'CreateItem5', N'Aranda.ASDK.Modules.ItemAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13068, 13005, N'CreateEvent', N'Aranda.ASDK.Modules.EventAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13069, 13005, N'ModifyRelatedEvents', N'Aranda.ASDK.Modules.EventAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13080, 21003, N'ModifyRelatedEvents2', N'Aranda.ASDK.Modules.EventAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13081, 13001, N'ModifyRelatedEvents3', N'Aranda.ASDK.Modules.EventAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13083, 21003, N'NotifySource3', N'Aranda.ASDK.Modules.WebServiceAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13084, 13001, N'AddSurcharge', N'Aranda.ASDK.Modules.AccountingAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13085, 13001, N'SendMailExternal', N'Aranda.ASDK.Modules.MailAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13086, 13001, N'CompiledActionItem', N'Aranda.ASDK.Modules.CompiledAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13087, 13001, N'NoteActionItem', N'Aranda.ASMS.Modules.NoteAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13088, 13004, N'NoteActionService', N'Aranda.ASMS.Modules.NoteAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13089, 13005, N'NoteActionEvent', N'Aranda.ASMS.Modules.NoteAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13090, 13004, N'CompiledActionService', N'Aranda.ASDK.Modules.CompiledAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13091, 13005, N'CompiledActionEvent', N'Aranda.ASDK.Modules.CompiledAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13092, 13001, N'SendNotification', N'Aranda.ASDK.Modules.NotificationAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13093, 13001, N'InvokeWebHook', N'Aranda.ASDK.Modules.WebHookAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 13094, 13001, N'SendNotificationPush', N'Aranda.ASDK.Modules.NotificationPushAction', N'Aranda.ASMS.dll', 0;
EXEC [METADATA_RULE_ACTION] 13095, 13001, N'SendNotificationWhatsApp', N'Aranda.ASDK.Modules.NotificationWhatsAppAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21019, 13001, N'ModifyRelatedCIs', N'Aranda.CMDB.Modules.CIAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21029, 25002, N'ModifyRelatedCIs2', N'Aranda.CMDB.Modules.CIAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21031, 21003, N'SendMail3', N'Aranda.CMDB.Modules.MailAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21034, 21003, N'ModifyCi', N'Aranda.CMDB.Modules.CIAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21039, 21003, N'ModifyRelatedCIs3', N'Aranda.CMDB.Modules.CIAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21071, 21003, N'CreateBaseline', N'Aranda.CMDB.Modules.BaseLineAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21072, 21003, N'RestoreBaseline', N'Aranda.CMDB.Modules.BaseLineAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21073, 13001, N'CreateBaselineCIs', N'Aranda.CMDB.Modules.BaseLineAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21074, 13001, N'RestoreBaselineCIs', N'Aranda.CMDB.Modules.BaseLineAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21075, 25002, N'CreateBaselineCIs2', N'Aranda.CMDB.Modules.BaseLineAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21076, 25002, N'RestoreBaselineCIs2', N'Aranda.CMDB.Modules.BaseLineAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21077, 21003, N'CreateBaselineCIs3', N'Aranda.CMDB.Modules.BaseLineAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21078, 21003, N'RestoreBaselineCIs3', N'Aranda.CMDB.Modules.BaseLineAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21079, 21003, N'NotifySource', N'Aranda.CMDB.Modules.WebServiceAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21080, 21003, N'CompiledActionCi', N'Aranda.CMDB.Modules.CompiledAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21081, 21003, N'NoteActionCi', N'Aranda.ASMS.Modules.NoteAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 21082, 21003, N'InvokeWebHook', N'Aranda.CMDB.Modules.WebHookAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25017, 13001, N'ModifyRelatedArticles', N'Aranda.ASS.Modules.ArticleAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25018, 13001, N'CreateArticle', N'Aranda.ASS.Modules.ArticleAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25021, 25002, N'SendMail2', N' Aranda.ASS.Modules.MailAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25024, 25002, N'ModifyArticle', N'Aranda.ASS.Modules.ArticleAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25027, 25002, N'ModifyRelatedArticles2', N'Aranda.ASS.Modules.ArticleAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25028, 25002, N'CreateArticle2', N'Aranda.ASS.Modules.ArticleAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25037, 21003, N'ModifyRelatedArticles3', N'Aranda.ASS.Modules.ArticleAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25038, 21003, N'CreateArticle3', N'Aranda.ASS.Modules.ArticleAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25082, 25002, N'NotifySource2', N'Aranda.ASS.Modules.WebServiceAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25083, 25002, N'CompiledActionArticle', N'Aranda.ASS.Modules.CompiledAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25084, 25002, N'NoteActionArticle', N'Aranda.ASMS.Modules.NoteAction', N'Aranda.ASMS.dll', 0
EXEC [METADATA_RULE_ACTION] 25085, 25002, N'InvokeWebHook', N'Aranda.ASS.Modules.WebHookAction', N'Aranda.ASMS.dll', 0
GO

PRINT 'METADATA_RULE_ACTION DONE!!'
GO
EXEC [METADATA_AFW_SETTINGS] N'PasswordUrl', 0, '', N'PasswordUrl', NULL
EXEC [METADATA_AFW_SETTINGS] N'SurveyUrl', 12, '', N'SurveyUrl', NULL
EXEC [METADATA_AFW_SETTINGS] N'APIUrl', 12, '', N'UrltoASDKRESTApi', NULL
EXEC [METADATA_AFW_SETTINGS] N'SpecialistURL', 12, '', N'Specialist URL', NULL
EXEC [METADATA_AFW_SETTINGS] N'AdministratorURL', 12, '', N'Administrator URL', NULL
EXEC [METADATA_AFW_SETTINGS] N'CustomerURL', 12, '', N'Customer URL', NULL
EXEC [METADATA_AFW_SETTINGS] N'FileMaxSize', 13, N'30', 'File maximum size ' , NULL
EXEC [METADATA_AFW_SETTINGS] N'DefaultProvider', 13, '', N'DefaultProvider', NULL
EXEC [METADATA_AFW_SETTINGS] N'DefaultMailAccount', 12, '', N'DefaultMailAccount', NULL
EXEC [METADATA_AFW_SETTINGS] N'ServiceDetailURL', 13, '', N'ServiceDetailURL', NULL
EXEC [METADATA_AFW_SETTINGS] N'SLADetailURL', 13, '',  N'SLADetailURL', NULL
EXEC [METADATA_AFW_SETTINGS] N'TeamsNotificationsUrl', 13, '',  N'TeamsNotificationsUrl', NULL
EXEC [METADATA_AFW_SETTINGS] N'AllowHiddenLoginforSaml', 13, 'False',  N'Oculta la sección de Login cuando  esta activa autenticación externa', NULL
EXEC [METADATA_AFW_SETTINGS] N'SurveyNotification', 13, 'False',  N'Activa notificaciones teams para encuestas.', NULL
EXEC [METADATA_AFW_SETTINGS] N'VotingNotification', 13, 'False',  N'Activa notificaciones teams para votaciones.', NULL
EXEC [METADATA_AFW_SETTINGS] N'ShowLoginNews', 13, 'False',  N'Permitir mostrar sección de noticias en la consola de clientes', NULL
EXEC [METADATA_AFW_SETTINGS] N'HideAssistant', 13, 'False',  N'Oculta el asistente personalizado en consolas', NULL
EXEC [METADATA_AFW_SETTINGS] N'SpecialistLogoutURL', 13, '',  N'Url para cierre de sesión', NULL
EXEC [METADATA_AFW_SETTINGS] N'CustomerLogoutURL', 13, '',  N'Url para cierre de sesión', NULL
EXEC [METADATA_AFW_SETTINGS] N'TranslationTemplatePassword', 13, 'Aranda',  N'Contraseña para las plantillas excel de traduccion', NULL
EXEC [METADATA_AFW_SETTINGS] N'CmdbUrl', 21, '',  N'url base para la consola de CMDB', NULL
EXEC [METADATA_AFW_SETTINGS] N'FilterCaseUser', 13, 'False',  N'Defina si la creacion de casos se hara teniendo en cuenta el usuario o el proyecto', NULL
EXEC [METADATA_AFW_SETTINGS] N'StorageQueue', 13, '',  N'Cadena de conexion para manejo de colas (Queues).', NULL
EXEC [METADATA_AFW_SETTINGS] N'APIUrlQr', 12, '',  N'url para visualizar la imagen del qr del api consola especialistas', NULL
EXEC [METADATA_AFW_SETTINGS] N'CustomerURLQr', 12, '',  N'url para visualizar la imagen del qr del api consola cliente', NULL
EXEC [METADATA_AFW_SETTINGS] N'UsersAPRURL', 12, '',  N'url para realizar el cambio de contraseña', NULL
EXEC [METADATA_AFW_SETTINGS] N'AllowExtAuthenticationInLogin', 12, 'False',  N'No permitir cargar las autenticaciones externas en consolas', NULL
EXEC [METADATA_AFW_SETTINGS] N'AdminAPRURL', 12, '',  N'url para administrar dominios', NULL
EXEC [METADATA_AFW_SETTINGS] N'StorageChangeSet', 13, '',  N'Cadena de conexión para el manejo de ChangeSets', NULL
EXEC [METADATA_AFW_SETTINGS] N'ParallelismLoadMassive', 13, '6',  N'Concurrencia cargue masivo de casos', NULL
EXEC [METADATA_AFW_SETTINGS] N'HideForgotPasswordCustomer', 12, 'False',  N'Oculta opción de olvido contraseña en consola cliente', NULL
EXEC [METADATA_AFW_SETTINGS] N'AQMUrl', 12, '',  N'Url para visor de AQM', NULL
EXEC [METADATA_AFW_SETTINGS] N'NewNavigate-calendars.aspx', 13, '../../Application/#/calendar/list/',  N'Nueva página de navegación para calendarios', NULL
EXEC [METADATA_AFW_SETTINGS] N'WhatsAppNotificationsUrl', 13, N'https://albiwsp.arandasoft.com/api/',  N'WhatsAppNotificationsUrl', NULL
EXEC [METADATA_AFW_SETTINGS] N'ArandaAIURL', 12, '', N'ArandaAI URL', NULL
EXEC [METADATA_AFW_SETTINGS] N'TokenApiAI', 12, '', N'Token integración AI', NULL
EXEC [METADATA_AFW_SETTINGS] N'NewNavigate-states.aspx', 13, '../../Application/#/state/',  N'Nueva página de navegación para estados', NULL
EXEC [METADATA_AFW_SETTINGS] N'NewNavigate-states.aspx?regtype=5', 13, '../../Application/#/state/regType/5',  N'Nueva página de navegación para estados', NULL
EXEC [METADATA_AFW_SETTINGS] N'NewNavigate-states.aspx?regtype=7', 13, '../../Application/#/state/regType/7',  N'Nueva página de navegación para estados', NULL
EXEC [METADATA_AFW_SETTINGS] N'NewNavigate-states.aspx?regtype=21', 13, '../../Application/#/state/regType/21',  N'Nueva página de navegación para estados', NULL
EXEC [METADATA_AFW_SETTINGS] N'NewNavigate-states.aspx?regtype=50', 13, '../../Application/#/state/regType/50',  N'Nueva página de navegación para estados', NULL
EXEC [METADATA_AFW_SETTINGS] N'NewNavigate-states.aspx?regtype=70', 13, '../../Application/#/state/regType/70',  N'Nueva página de navegación para estados', NULL
EXEC [METADATA_AFW_SETTINGS] N'HideBoards', 13, 'False', N'Oculta opción de tableros para la consulta de casos en consola especialista', NULL
EXEC [METADATA_AFW_SETTINGS] 'PushServer', 0, 'https://arandapush1.arandasoft.com/push', NULL, NULL
EXEC [METADATA_AFW_SETTINGS] 'AppCodePushAssistme', 12, '12010', NULL, NULL
EXEC [METADATA_AFW_SETTINGS] 'AppCodePushASMS', 12, '12011', NULL, NULL
EXEC [METADATA_AFW_SETTINGS] 'ShoppingCart', 13, '', 'Permite configurar el carrito de compras de casos', NULL
EXEC [METADATA_AFW_SETTINGS] N'ItemStorageConfiguration', 13, N'', 'Permite configurar el almacenamiento de los casos creados asíncronamente', NULL
EXEC [METADATA_AFW_SETTINGS] N'NotificationWhatsAppToken', 13, '', N'Token autenticación con api de WP', NULL
EXEC [METADATA_AFW_SETTINGS] N'AllowExternalChat', 13, 'False', N'Permitir Chat Externo', NULL
EXEC [METADATA_AFW_SETTINGS] N'BlockPastDatesTask', 13, 'False', N'Restringe la creación de tareas con fechas anteriores a la actual', NULL
EXEC [METADATA_AFW_SETTINGS] N'BlockTaskSolution', 13, 'False', N'Restringe la creación de tareas en estado solucionado', NULL
EXEC [METADATA_AFW_SETTINGS] N'NotificationTeamsToken', 13, '', N'Token autenticación con api de Teams', NULL
EXEC [METADATA_AFW_SETTINGS] N'ADMSelfServiceUrl', 12, '', N'Url para comsumir los servicios de ADM', NULL
EXEC [METADATA_AFW_SETTINGS] N'ADMSelfServiceKey', 12, '5rkjb51lHSVmgI0Obd/iAbFlDr9rxcin6XQHM0fq7wE=', N'', NULL
EXEC [METADATA_AFW_SETTINGS] N'NewNavigate-advanced-shift', 13, '../../Application/#/turns/list',  N'Página de configuración de turnos avanzados', NULL
EXEC [METADATA_AFW_SETTINGS] N'ArchivingPolicy', 13, '{"PreservingInfoPeriod":12,"TransferInfoPeriod":36}',  N'Períodos de retención de datos en producción y en el data lake', NULL
EXEC [METADATA_AFW_SETTINGS] N'ArchivingLastMigratedDate', 13, '',  N'Fecha hasta la cual el proceso de archiving ha migrado datos al data lake', NULL

GO

PRINT 'METADATA_AFW_SETTINGS DONE!!'
GO
EXEC [METADATA_TASK] 12005, N'Mail SMS', N'Aranda.ASMS.Modules.MailModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 12006, N'Contracts', N'Aranda.ASMS.Modules.ContractModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 12007, N'Clear conditions', N'Aranda.ASMS.Modules.ClearConditionsModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 12008, N'ItemWebHookASMS', N'Aranda.ASMS.Modules.ItemWebHookModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13002, N'Case Creator', N'Aranda.ASDK.Modules.CaseCreatorModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13003, N'Timer', N'Aranda.ASDK.Modules.TimeModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13004, N'Metrics', N'Aranda.ASDK.Modules.MetricsModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13006, N'Mail ASDK', N'Aranda.ASDK.Modules.MailModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13008, N'Survey ASDK', N'Aranda.ASDK.Modules.SurveyModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13009, N'EventLog', N'Aranda.ASDK.Modules.EventModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13010, N'Rountings', N'Aranda.ASDK.Modules.RoutingModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13011, N'WebService ASDK', N'Aranda.ASDK.Modules.WebServiceModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13012, N'ServiceAcccounting', N'Aranda.ASDK.Modules.ServiceAcccountingModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13013, N'Slas', N'Aranda.ASDK.Modules.SlaModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13014, N'Ldap Project Sync', N'Aranda.ASDK.Modules.LdapProjectModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13016, N'Import Service', N'Aranda.ASDK.Modules.ImportModule',N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13017, N'Notificaciones Programadas', N'Aranda.ASDK.Modules.NotificationModule',N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13018, N'Scheduled states', N'Aranda.ASDK.Modules.ScheduledStatusModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13019, N'Evaluate rules', N'Aranda.ASDK.Modules.RulesModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13020, N'FieldTask Service', N'Aranda.ASDK.Modules.AflsItemFieldTaksModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13021, N'ChangeSet Service', N'Aranda.ASDK.Modules.ChangeSetModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13022, N'Import Items', N'Aranda.ASDK.Modules.ImportItemsModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13023, N'Export concepts', N'Aranda.ASDK.Modules.ExportModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13024, N'Evaluate files repository records expired', N'Aranda.ASDK.Modules.FileRepositoryModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13025, N'ShoppingCart Service', N'Aranda.ASDK.Modules.ShoppingCartModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13026, N'Notifications Queue', N'Aranda.ASDK.Modules.NotificationsQueueModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13027, N'MigrationItemDw', N'Aranda.ASDK.Modules.MigrationItemDWModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13028, N'Scheduled Action', N'Aranda.ASDK.Modules.ScheduledActionModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13029, N'Reminder approvals', N'Aranda.ASDK.Modules.ReminderApprovalsModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13030, N'Close Chat Sessions', N'Aranda.ASDK.Modules.ChatSessionsModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 13031, N'Archiving ASMS', N'Aranda.ASDK.Modules.ArchivingModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 21007, N'Mail CMDB', N'Aranda.CMDB.Modules.MailModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 21008, N'Audit', N'Aranda.CMDB.Modules.AuditModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 21009, N'WebService CMDB', N'Aranda.CMDB.Modules.WebServiceModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 25001, N'WebService ASS', N'Aranda.ASS.Modules.WebServiceModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 12009, N'Sync Assistant', N'Aranda.ASMS.Modules.SyncAssistantModule', N'Aranda.ASMS.dll', 1
EXEC [METADATA_TASK] 12010, N'Item Workflow', N'Aranda.ASDK.Modules.ItemWorkflowModule', N'Aranda.ASMS.dll', 1

GO

PRINT 'METADATA_TASK DONE!!'
GO
EXEC [METADATA_SCHEDULER] N'Timer Schedule', NULL, N'Interval', 1, 0, 0, 0, 0, '20160809 00:00:00.000', 13003, 13, '20160809 00:00:00.000',	120
EXEC [METADATA_SCHEDULER] N'Routing Schedule', NULL, N'Interval', 1, 0, 0, 0, 0, '20160809 00:00:00.000', 13010, 13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'WebService CMDB', NULL, N'Interval', 1, 0, 0, 0, 0, '20160809 00:00:00.000', 21009, 21, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Service Acounting Schedule', NULL, N'Interval', 1, 0, 0, 0, 0, '20160809 00:00:00.000', 13012, 13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Audit Schedule', NULL, N'Interval', 1, 0, 0, 0, 0, '20160809 00:00:00.000', 21008, 21, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Sla Schedule', NULL, N'Interval', 1, 0, 0, 0, 0, '20160809 00:00:00.000', 13013, 13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Contact Schedule', NULL, N'Interval', 1, 0, 0, 0, 0, '20160809 00:00:00.000', 12006, 12, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'WebService ASDK', NULL, N'Interval', 1, 0, 0, 0, 0, '20160809 00:00:00.000', 13011, 21, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Scheduled states', NULL, N'Interval', 1, 0, 0, 0, 0, '20160809 00:00:00.000', 13018, 21, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'WebService ASS', NULL, N'Interval', 1, 0, 0, 0, 0, '20160809 00:00:00.000', 25001, 21, '20160809 00:00:00.000',	120
EXEC [METADATA_SCHEDULER] N'Import Schedule', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  13016,13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'AflsItemFieldTaks Schedule', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  13020,13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Evaluate rules', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  13019,13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Clear conditions', NULL, N'Daily',1,0,0,0,0, '20160809 00:00:00.000',  12007,12, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'ChangeSet Schedule', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  13021,13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Import Items Schedule', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  13022, 13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Export concepts Schedule', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  13023, 13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'ItemWebHookASMS', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  12008, 12, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'FileRepositoryExpired Schedule', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  13024, 13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Notifications Queue Schedule', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  13026, 13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'MigrationDw', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  13027, 13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Chat Sessions Schedule', NULL, N'Interval',1,0,0,0,0, '20160809 00:00:00.000',  13030, 13, '20160809 00:00:00.000', 120
EXEC [METADATA_SCHEDULER] N'Sync Assistant Schedule', NULL, N'Daily',1,0,0,0,0, '20240814 00:00:00.000', 12009, 12, '20240814 00:00:00.000', 120
GO

PRINT 'METADATA_SCHEDULER DONE!!'
GO


EXEC [MD_ASMS_BRAND_CONSOLE] 
1,
1,
N'{"color-primary":"#F5846F","color-contrast":"#434f56"}',
N'{"logo-img":"","login-img":""}',
N'{"img-0":"Resources/Images/login_back.jpg"}',
1,
':root {
  --color-primary: {{color-primary}};
  --color-contrast: {{color-contrast}};   
  --desk-title: ''{{desk-title}}'';
  --desk-subtitle: ''{{desk-subtitle}}'';
  --logo-img: url(''{{logo-img}}'');
 --loging-img: url(''{{login-img}}'');
 --main-font: ''{{main-font}}'';
{{carousel-images}}
{{secondary-colors}}
}',
'<div class="block-group theme_samples_inner">
   <div class="theme_panelbar block w20" style="width: 33%;">
      <span id="ctl00_ContentPlaceHolder3_Label5" class="label_title fcolorDefaultBlue">Menú</span>
      <div id="ctl00_ContentPlaceHolder3_RadPanelbar1" class="RadPanelBar RadPanelBar_Aranda panel-bar-helper panel-bar--designer" style="width: 130px; overflow: hidden;">
         <ul class="rpRootGroup">
            <li class="rpItem rpFirst">
               <a href="#" class="rpLink rpRootLink rpExpandable rpExpanded"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Configuración General</span></span></a>
               <div class="rpSlide" style="display: block; height: 217px;">
                  <ul class="rpGroup rpLevel1 " style="display: block; height: 217px; width: 100%;">
                     <li class="rpItem rpFirst"><a href="#" class="rpLink as-icon as-gear panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Proyectos</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniE686 panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Ajustes</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniEA0D panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Licencias</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-user-tie panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Roles</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniE6C7 panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Catálogos</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniE699 panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">LDAP</span></span></a></li>
                     <li class="rpItem rpLast"><a href="#" class="rpLink as-icon as-activity panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Registro de Eventos</span></span></a></li>
                  </ul>
               </div>
            </li>
            <li class="rpItem rpLast">
               <a href="#" class="rpLink rpRootLink rpExpandable"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Eventos</span></span></a>
               <div class="rpSlide">
                  <ul class="rpGroup rpLevel1 ">
                     <li class="rpItem rpFirst"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="http://localhost/Aranda.ASDK.Web.BlogikITIL/Resources/Images/ic_state_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Estados</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_additional_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Adicionales</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_rule_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Reglas</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_event_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Eventos</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_relation_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Relaciones</span></span></a></li>
                     <li class="rpItem rpLast"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_eventconnectorc_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Conector</span></span></a></li>
                  </ul>
               </div>
            </li>
         </ul>
         <input id="ctl00_ContentPlaceHolder3_RadPanelbar1_ClientState" name="ctl00_ContentPlaceHolder3_RadPanelbar1_ClientState" type="hidden" autocomplete="off" value="{&quot;expandedItems&quot;:[&quot;0&quot;],&quot;logEntries&quot;:[],&quot;selectedItems&quot;:[]}">
      </div>
   </div>
   <div class="theme_buttons block w20" style="width: 33%;">
      <span id="ctl00_ContentPlaceHolder3_Label4" class="label_title fcolorDefaultBlue">Botón Dropdown</span>
      <div class="btn-group">
         <button id="new-btn-1" class="btn-dropdown dropbtn actionNew" type="button" onclick="menuDropDown(''newDropdown'')">
         Nuevo</button>
         <ul id="newDropdown" class="dropdown-menu dropdown-content">
            <li>
               <input type="button" name="ctl00$ContentPlaceHolder3$Button1" value="Nuevo" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$Button1'','')" id="ctl00_ContentPlaceHolder3_Button1" class="dropdown-link">
            </li>
            <li>
               <input type="button" name="ctl00$ContentPlaceHolder3$btnNew2" value="Importar" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$btnNew2'','')" id="ctl00_ContentPlaceHolder3_btnNew2" class="dropdown-link">
            </li>
            <li>
               <input type="button" name="ctl00$ContentPlaceHolder3$btnNew3" value="Crear desde plantilla" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$btnNew3'','')" id="ctl00_ContentPlaceHolder3_btnNew3" class="dropdown-link">
            </li>
         </ul>
      </div>
      <span id="ctl00_ContentPlaceHolder3_Label6" class="label_title fcolorDefaultBlue">Botón</span>
      <input type="button" name="ctl00$ContentPlaceHolder3$Button2" value="Guardar" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$Button2'','')" id="ctl00_ContentPlaceHolder3_Button2" class="saveButton actionTrue designer-btn">
      <span id="ctl00_ContentPlaceHolder3_Label2" class="label_title fcolorDefaultBlue">Switch</span>
      <div class="onoffswitch">
         <input id="CheckBox1" type="checkbox" name="ctl00$ContentPlaceHolder3$CheckBox1">
         <label class="onoffswitch-label" for="CheckBox1">
            <div class="onoffswitch-inner" after="OFF" before="ON"></div>
            <div class="onoffswitch-switch"></div>
         </label>
      </div>
   </div>
   <div class="block w20" style="width: 33%;">
      <span id="ctl00_ContentPlaceHolder3_Label7" class="label_title fcolorDefaultBlue">Loader</span>
      <div class="modal-loading demo-loading">
         <div class="loading-bar"></div>
         <div class="loading-bar"></div>
         <div class="loading-bar"></div>
         <div class="loading-bar"></div>
      </div>
   </div>
</div>',
NULL,
'{"desk-title":"Aranda","desk-subtitle":"Service Desk"}',
'{"main-font":"Clear Sans"}'
EXEC [MD_ASMS_BRAND_CONSOLE] 
2,
2,	
N'{"color-primary":"#F5846F","color-contrast":"#434f56"}',
N'{"logo-img":"","login-img":"","banner-img":""}',
N'{"img-0":"Resources/Images/login_back.jpg"}',
1,
':root {
  --color-primary: {{color-primary}};
  --color-contrast: {{color-contrast}};   
  --desk-title: ''{{desk-title}}'';
  --desk-subtitle: ''{{desk-subtitle}}'';
  --logo-img: url(''{{logo-img}}'');
 --loging-img: url(''{{login-img}}'');
 --main-font: ''{{main-font}}'';
{{carousel-images}}
{{secondary-colors}}
}',
'<div class="block-group theme_samples_inner">
   <div class="theme_panelbar block w20" style="width: 33%;">
      <span id="ctl00_ContentPlaceHolder3_Label5" class="label_title fcolorDefaultBlue">Menú</span>
      <div id="ctl00_ContentPlaceHolder3_RadPanelbar1" class="RadPanelBar RadPanelBar_Aranda panel-bar-helper panel-bar--designer" style="width: 130px; overflow: hidden;">
         <ul class="rpRootGroup">
            <li class="rpItem rpFirst">
               <a href="#" class="rpLink rpRootLink rpExpandable rpExpanded"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Configuración General</span></span></a>
               <div class="rpSlide" style="display: block; height: 217px;">
                  <ul class="rpGroup rpLevel1 " style="display: block; height: 217px; width: 100%;">
                     <li class="rpItem rpFirst"><a href="#" class="rpLink as-icon as-gear panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Proyectos</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniE686 panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Ajustes</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniEA0D panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Licencias</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-user-tie panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Roles</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniE6C7 panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Catálogos</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniE699 panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">LDAP</span></span></a></li>
                     <li class="rpItem rpLast"><a href="#" class="rpLink as-icon as-activity panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Registro de Eventos</span></span></a></li>
                  </ul>
               </div>
            </li>
            <li class="rpItem rpLast">
               <a href="#" class="rpLink rpRootLink rpExpandable"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Eventos</span></span></a>
               <div class="rpSlide">
                  <ul class="rpGroup rpLevel1 ">
                     <li class="rpItem rpFirst"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="http://localhost/Aranda.ASDK.Web.BlogikITIL/Resources/Images/ic_state_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Estados</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_additional_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Adicionales</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_rule_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Reglas</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_event_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Eventos</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_relation_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Relaciones</span></span></a></li>
                     <li class="rpItem rpLast"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_eventconnectorc_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Conector</span></span></a></li>
                  </ul>
               </div>
            </li>
         </ul>
         <input id="ctl00_ContentPlaceHolder3_RadPanelbar1_ClientState" name="ctl00_ContentPlaceHolder3_RadPanelbar1_ClientState" type="hidden" autocomplete="off" value="{&quot;expandedItems&quot;:[&quot;0&quot;],&quot;logEntries&quot;:[],&quot;selectedItems&quot;:[]}">
      </div>
   </div>
   <div class="theme_buttons block w20" style="width: 33%;">
      <span id="ctl00_ContentPlaceHolder3_Label4" class="label_title fcolorDefaultBlue">Botón Dropdown</span>
      <div class="btn-group">
         <button id="new-btn-1" class="btn-dropdown dropbtn actionNew" type="button" onclick="menuDropDown(''newDropdown'')">
         Nuevo</button>
         <ul id="newDropdown" class="dropdown-menu dropdown-content">
            <li>
               <input type="button" name="ctl00$ContentPlaceHolder3$Button1" value="Nuevo" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$Button1'','')" id="ctl00_ContentPlaceHolder3_Button1" class="dropdown-link">
            </li>
            <li>
               <input type="button" name="ctl00$ContentPlaceHolder3$btnNew2" value="Importar" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$btnNew2'','')" id="ctl00_ContentPlaceHolder3_btnNew2" class="dropdown-link">
            </li>
            <li>
               <input type="button" name="ctl00$ContentPlaceHolder3$btnNew3" value="Crear desde plantilla" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$btnNew3'','')" id="ctl00_ContentPlaceHolder3_btnNew3" class="dropdown-link">
            </li>
         </ul>
      </div>
      <span id="ctl00_ContentPlaceHolder3_Label6" class="label_title fcolorDefaultBlue">Botón</span>
      <input type="button" name="ctl00$ContentPlaceHolder3$Button2" value="Guardar" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$Button2'','')" id="ctl00_ContentPlaceHolder3_Button2" class="saveButton actionTrue designer-btn">
      <span id="ctl00_ContentPlaceHolder3_Label2" class="label_title fcolorDefaultBlue">Switch</span>
      <div class="onoffswitch">
         <input id="CheckBox1" type="checkbox" name="ctl00$ContentPlaceHolder3$CheckBox1">
         <label class="onoffswitch-label" for="CheckBox1">
            <div class="onoffswitch-inner" after="OFF" before="ON"></div>
            <div class="onoffswitch-switch"></div>
         </label>
      </div>
   </div>
   <div class="block w20" style="width: 33%;">
      <span id="ctl00_ContentPlaceHolder3_Label7" class="label_title fcolorDefaultBlue">Loader</span>
      <div class="modal-loading demo-loading">
         <div class="loading-bar"></div>
         <div class="loading-bar"></div>
         <div class="loading-bar"></div>
         <div class="loading-bar"></div>
      </div>
   </div>
</div>',
NULL,
'{"desk-title":"Aranda","desk-subtitle":"Service Desk"}',
'{"main-font":"Clear Sans"}'
EXEC [MD_ASMS_BRAND_CONSOLE] 
3,
3,	
N'{"color-primary":"#F5846F","color-contrast":"#434f56"}',
N'{"logo-img":"../../Resources/Images/logored.png"}',
N'{"img-0":"Resources/Images/login_back.jpg"}',
1,
':root {
  --color-primary: {{color-primary}};
  --color-contrast: {{color-contrast}};   
  --desk-title: ''{{desk-title}}'';
  --desk-subtitle: ''{{desk-subtitle}}'';
  --logo-img: url(''{{logo-img}}'');
 --loging-img: url(''{{login-img}}'');
 --main-font: ''{{main-font}}'';
{{carousel-images}}
{{secondary-colors}}
}',
'<div class="block-group theme_samples_inner">
   <div class="theme_panelbar block w20" style="width: 33%;">
      <span id="ctl00_ContentPlaceHolder3_Label5" class="label_title fcolorDefaultBlue">Menú</span>
      <div id="ctl00_ContentPlaceHolder3_RadPanelbar1" class="RadPanelBar RadPanelBar_Aranda panel-bar-helper panel-bar--designer" style="width: 130px; overflow: hidden;">
         <ul class="rpRootGroup">
            <li class="rpItem rpFirst">
               <a href="#" class="rpLink rpRootLink rpExpandable rpExpanded"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Configuración General</span></span></a>
               <div class="rpSlide" style="display: block; height: 217px;">
                  <ul class="rpGroup rpLevel1 " style="display: block; height: 217px; width: 100%;">
                     <li class="rpItem rpFirst"><a href="#" class="rpLink as-icon as-gear panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Proyectos</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniE686 panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Ajustes</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniEA0D panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Licencias</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-user-tie panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Roles</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniE6C7 panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Catálogos</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink as-icon as-uniE699 panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">LDAP</span></span></a></li>
                     <li class="rpItem rpLast"><a href="#" class="rpLink as-icon as-activity panel-icon"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Registro de Eventos</span></span></a></li>
                  </ul>
               </div>
            </li>
            <li class="rpItem rpLast">
               <a href="#" class="rpLink rpRootLink rpExpandable"><span class="rpOut"><span class="rpExpandHandle"></span><span class="rpText">Eventos</span></span></a>
               <div class="rpSlide">
                  <ul class="rpGroup rpLevel1 ">
                     <li class="rpItem rpFirst"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="http://localhost/Aranda.ASDK.Web.BlogikITIL/Resources/Images/ic_state_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Estados</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_additional_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Adicionales</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_rule_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Reglas</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_event_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Eventos</span></span></a></li>
                     <li class="rpItem"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_relation_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Relaciones</span></span></a></li>
                     <li class="rpItem rpLast"><a href="#" class="rpLink"><span class="rpOut"><img alt="" src="../../Resources/Images/ic_eventconnectorc_1.png" class="rpImage" style="float:right;"><span class="rpExpandHandle"></span><span class="rpText">Conector</span></span></a></li>
                  </ul>
               </div>
            </li>
         </ul>
         <input id="ctl00_ContentPlaceHolder3_RadPanelbar1_ClientState" name="ctl00_ContentPlaceHolder3_RadPanelbar1_ClientState" type="hidden" autocomplete="off" value="{&quot;expandedItems&quot;:[&quot;0&quot;],&quot;logEntries&quot;:[],&quot;selectedItems&quot;:[]}">
      </div>
   </div>
   <div class="theme_buttons block w20" style="width: 33%;">
      <span id="ctl00_ContentPlaceHolder3_Label4" class="label_title fcolorDefaultBlue">Botón Dropdown</span>
      <div class="btn-group">
         <button id="new-btn-1" class="btn-dropdown dropbtn actionNew" type="button" onclick="menuDropDown(''newDropdown'')">
         Nuevo</button>
         <ul id="newDropdown" class="dropdown-menu dropdown-content">
            <li>
               <input type="button" name="ctl00$ContentPlaceHolder3$Button1" value="Nuevo" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$Button1'','')" id="ctl00_ContentPlaceHolder3_Button1" class="dropdown-link">
            </li>
            <li>
               <input type="button" name="ctl00$ContentPlaceHolder3$btnNew2" value="Importar" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$btnNew2'','')" id="ctl00_ContentPlaceHolder3_btnNew2" class="dropdown-link">
            </li>
            <li>
               <input type="button" name="ctl00$ContentPlaceHolder3$btnNew3" value="Crear desde plantilla" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$btnNew3'','')" id="ctl00_ContentPlaceHolder3_btnNew3" class="dropdown-link">
            </li>
         </ul>
      </div>
      <span id="ctl00_ContentPlaceHolder3_Label6" class="label_title fcolorDefaultBlue">Botón</span>
      <input type="button" name="ctl00$ContentPlaceHolder3$Button2" value="Guardar" onclick="javascript:__doPostBack(''ctl00$ContentPlaceHolder3$Button2'','')" id="ctl00_ContentPlaceHolder3_Button2" class="saveButton actionTrue designer-btn">
      <span id="ctl00_ContentPlaceHolder3_Label2" class="label_title fcolorDefaultBlue">Switch</span>
      <div class="onoffswitch">
         <input id="CheckBox1" type="checkbox" name="ctl00$ContentPlaceHolder3$CheckBox1">
         <label class="onoffswitch-label" for="CheckBox1">
            <div class="onoffswitch-inner" after="OFF" before="ON"></div>
            <div class="onoffswitch-switch"></div>
         </label>
      </div>
   </div>
   <div class="block w20" style="width: 33%;">
      <span id="ctl00_ContentPlaceHolder3_Label7" class="label_title fcolorDefaultBlue">Loader</span>
      <div class="modal-loading demo-loading">
         <div class="loading-bar"></div>
         <div class="loading-bar"></div>
         <div class="loading-bar"></div>
         <div class="loading-bar"></div>
      </div>
   </div>
</div>',
'Resources\Css\config.css',
'{"desk-title":"Aranda","desk-subtitle":"Service Desk"}',
'{"main-font":"Clear Sans"}'
GO

PRINT 'MD_ASMS_BRAND_CONSOLE DONE!!'
GO
EXEC [MD_ASMS_DISPLAY] 1,13,null,'TitleCaseManagement',0,1
EXEC [MD_ASMS_DISPLAY] 2,13,null,'CaseCategorization',1,0
EXEC [MD_ASMS_DISPLAY] 3,13,null,'CustomerInformation',2,0
EXEC [MD_ASMS_DISPLAY] 4,13,null,'BasicInformation',3,0
EXEC [MD_ASMS_DISPLAY] 5,13,null,'CaseDetails',4,0
EXEC [MD_ASMS_DISPLAY] 6,13,null,'AdditionalInformation',5,0
EXEC [MD_ASMS_DISPLAY] 7,13,null,'PriorityLevel',6,0
GO

PRINT 'MD_ASMS_DISPLAY DONE!!'
GO
EXEC [MD_ASMS_TYPES] 1, N'Incidents'
EXEC [MD_ASMS_TYPES] 2, N'Problem'
EXEC [MD_ASMS_TYPES] 3, N'Change'
EXEC [MD_ASMS_TYPES] 4, N'ServiceCall'
EXEC [MD_ASMS_TYPES] 5, N'Service'
EXEC [MD_ASMS_TYPES] 6, N'Task'
EXEC [MD_ASMS_TYPES] 7, N'Article'
EXEC [MD_ASMS_TYPES] 8, N'Photos'
EXEC [MD_ASMS_TYPES] 13, N'Release'
EXEC [MD_ASMS_TYPES] 14, N'SLA'
EXEC [MD_ASMS_TYPES] 16, N'KnownError'
EXEC [MD_ASMS_TYPES] 21, N'Ci'
EXEC [MD_ASMS_TYPES] 37, N'Client'
EXEC [MD_ASMS_TYPES] 38, N'Company'
EXEC [MD_ASMS_TYPES] 40, N'Unknown'
EXEC [MD_ASMS_TYPES] 48, N'Packages'
EXEC [MD_ASMS_TYPES] 49, N'Group'
EXEC [MD_ASMS_TYPES] 50, N'Events'
EXEC [MD_ASMS_TYPES] 51, N'Area'
EXEC [MD_ASMS_TYPES] 52, N'Provider'
EXEC [MD_ASMS_TYPES] 53, N'Specialist'
EXEC [MD_ASMS_TYPES] 54, N'UC'
EXEC [MD_ASMS_TYPES] 55, N'OLA'
EXEC [MD_ASMS_TYPES] 56, N'Model'
EXEC [MD_ASMS_TYPES] 58, N'Approvals'
EXEC [MD_ASMS_TYPES] 59, N'Time'
EXEC [MD_ASMS_TYPES] 60, N'MailServer'
EXEC [MD_ASMS_TYPES] 61, N'Interface'
EXEC [MD_ASMS_TYPES] 62, N'Additional'
EXEC [MD_ASMS_TYPES] 63, N'Survey'
EXEC [MD_ASMS_TYPES] 64, N'ClientGroup'
EXEC [MD_ASMS_TYPES] 65, N'Folder'
EXEC [MD_ASMS_TYPES] 66, N'Rule'
EXEC [MD_ASMS_TYPES] 67, N'View'
EXEC [MD_ASMS_TYPES] 68, N'License'
EXEC [MD_ASMS_TYPES] 69, N'Invoice'
EXEC [MD_ASMS_TYPES] 70, N'Contract'
EXEC [MD_ASMS_TYPES] 71, N'OtherDocument'
EXEC [MD_ASMS_TYPES] 72, N'BusinessProcess'
EXEC [MD_ASMS_TYPES] 73, N'CostCenter'
EXEC [MD_ASMS_TYPES] 74, N'Catalog'
EXEC [MD_ASMS_TYPES] 75, N'Maintenance'
EXEC [MD_ASMS_TYPES] 76, N'Audit'
EXEC [MD_ASMS_TYPES] 77, N'Alert'
EXEC [MD_ASMS_TYPES] 78, N'Project'
EXEC [MD_ASMS_TYPES] 79, N'Profile'
EXEC [MD_ASMS_TYPES] 80, N'Supervisor'
EXEC [MD_ASMS_TYPES] 81, N'MailTemplate'
EXEC [MD_ASMS_TYPES] 82, N'Chat'
EXEC [MD_ASMS_TYPES] 83, N'Category'
EXEC [MD_ASMS_TYPES] 84, N'ServicePhoto'
EXEC [MD_ASMS_TYPES] 85, N'Link'
EXEC [MD_ASMS_TYPES] 86, N'Status'
EXEC [MD_ASMS_TYPES] 87, N'Ldap'
EXEC [MD_ASMS_TYPES] 88, N'Reason'
EXEC [MD_ASMS_TYPES] 89, N'CatalogValue'
EXEC [MD_ASMS_TYPES] 90, N'FieldValue'
EXEC [MD_ASMS_TYPES] 91, N'News'
EXEC [MD_ASMS_TYPES] 92, N'Banner'
EXEC [MD_ASMS_TYPES] 93, N'Script'
EXEC [MD_ASMS_TYPES] 94, N'Location'
EXEC [MD_ASMS_TYPES] 95, N'AdditionalData'
EXEC [MD_ASMS_TYPES] 96, N'UserProject'
EXEC [MD_ASMS_TYPES] 97, N'Role'
EXEC [MD_ASMS_TYPES] 99, N'Matrix'
EXEC [MD_ASMS_TYPES] 100, N'Anonymous'
EXEC [MD_ASMS_TYPES] 101, N'History'
GO

PRINT 'MD_ASMS_TYPES DONE!!'
GO

EXEC [MD_ASMS_INTERFACE_BUILTIN] 1, N'Code', N'IdbyProject', 1, N'IdbyProject', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 2, N'Subject', N'Subject', 1, N'Subject', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 3, N'Type', N'Type', 6, N'Type', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 4, N'StatusName', N'StateId', 3, N'StateName', N'Aranda.ASMS.Business.Rules.Status'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 5, N'Reason', N'ReasonId', 3, N'ReasonName', N'Aranda.ASMS.Business.Rules.Status'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 6, N'Category', N'CategoryId', 7, N'CategoryName', N'Aranda.ASDK.Business.Rules.Category'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 7, N'Service', N'ServiceId', 3, N'ServiceName', N'Aranda.ASDK.Business.Rules.Service'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 8, N'Impact', N'ImpactId', 3, N'ImpactName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 9, N'Urgency', N'UrgencyId', 3, N'UrgencyName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 10, N'PriorityName', N'PriorityId', 3, N'PriorityName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 11, N'RegistryType', N'RegistryTypeId', 3, N'RegistryTypeName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 12, N'Description', N'Description', 4, N'Description', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 13, N'ResponsableGroup', N'GroupId', 3, N'GroupName', N'Aranda.ASMS.Business.Rules.Group'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 14, N'ResponsableName', N'ResponsibleId', 8, N'ResponsibleName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 15, N'Client', N'CustomerId', 8, N'CustomerName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 16, N'Author', N'AuthorId', 8, N'AuthorName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 17, N'companyName', N'CompanyId', 8, N'CompanyName', N'Aranda.ASMS.Business.Rules.Companies'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 18, N'CI', N'CiId', 8, N'CiName', N'Aranda.CMDB.Business.Rules.CI'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 19, N'Solution', N'Commentary', 1, N'Commentary', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 20, N'VendorName', N'ProviderId', 8, N'ProviderName', N'Aranda.ASMS.Business.Rules.Companies'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 21, N'BusinessArea', N'UnitId', 8, N'UnitName', N'Aranda.ASMS.Business.Rules.Group'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 22, N'KnownError', N'AddBool1', 5, N'AddBool1', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 23, N'MayorProblem', N'AddBool2', 5, N'AddBool2', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 24, N'Risk', N'AddInt1', 3, N'AddInt1', N'Aranda.ASMS.Business.Rules.Risk'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 25, N'Name', N'Name', 1, N'Name', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 26, N'UserName', N'UserName', 1, N'UserName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 27, N'Email', N'Email', 1, N'Email', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 28, N'Phone1', N'Phone1', 1, N'Phone1', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 29, N'Company', N'Name', 1, N'Name', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 30, N'Contact', N'Contact', 1, N'Contact', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 31, N'Address1', N'Address1', 1, N'Address1', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 32, N'Address2', N'Address2', 1, N'Address2', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 33, N'Address3', N'Address3', 1, N'Address3', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 34, N'Phone1', N'Phone1', 1, N'Phone1', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 35, N'Phone2', N'Phone2', 1, N'Phone2', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 36, N'Phone3', N'Phone3', 1, N'Phone3', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 37, N'Ext', N'Ext', 1, N'Ext', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 38, N'Fax', N'FaxNumber', 1, N'FaxNumber', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 39, N'CelPhone', N'Mobil', 1, N'Mobil', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 40, N'Description', N'Description', 1, N'Description', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 41, N'Email', N'Email', 1, N'Email', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 42, N'WebSite', N'WebSiteURL', 1, N'WebSiteURL', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 43, N'Id', N'Nit', 1, N'Nit', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 44, N'Country', N'CountryId', 3, N'CountryName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 45, N'City', N'CityId', 3, N'CityName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 46, N'Location', N'Location', 1, N'Location', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 47, N'Department', N'DepartmentCode', 3, N'DepartmentDescription', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 48, N'Address1', N'Address1', 1, N'Address1', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 49, N'Address2', N'Address2', 1, N'Address2', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 50, N'Address3', N'Address3', 1, N'Address3', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 51, N'Phone2', N'Phone2', 1, N'Phone2', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 52, N'Phone3', N'Phone3', 1, N'Phone3', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 53, N'Ext', N'Ext', 1, N'Ext', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 54, N'Fax', N'Fax', 1, N'Fax', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 55, N'CelPhone', N'Mobil', 1, N'Mobil', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 56, N'Charge', N'JobId', 3, N'ChargeDescription', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 57, N'Country', N'CountryId', 3, N'CountryDescription', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 58, N'City', N'CityId', 3, N'CityDescription', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 59, N'Branch', N'SiteId', 3, N'SiteDescription', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 60, N'TheBuilding', N'BuildingId', 3, N'BuildingDescription', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 61, N'Floor', N'FloorId', 3, N'FloorDescription', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 62, N'Subsidiary', N'CompanyId', 3, N'CompanyDescription', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 63, N'NoDpto', N'DepartmentNumber', 3, N'NumberDepartmentDescription', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 64, N'BornDate', N'BirthDate', 13, N'BirthDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 65, N'DocumentType', N'DocumentTypeId', 3, N'DocumentTypeDescription', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 66, N'IdentificationNumber', N'DocumentNumber', 1, N'DocumentNumber', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 67, N'Category', N'CategoryId', 1, N'CategoryName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 68, N'Version', N'Version', 6, N'Version', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 69, N'AcceptanceDate', N'AcceptDate', 13, N'AcceptDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 70, N'CheckinDate', N'CheckinDate', 13, N'CheckinDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 72, N'DateIniResponsability', N'ReponsibleDate', 13, N'ReponsibleDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 73, N'Reason', N'ReasonId', 3, N'ReasonName', N'Aranda.ASMS.Business.Rules.Status'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 74, N'State', N'StateId', 3, N'StateName', N'Aranda.ASMS.Business.Rules.Status'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 75, N'Id', N'Id', 6, N'Id', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 77, N'Impact', N'ImpactId', 3, N'ImpactName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 78, N'Manufacturer', N'ManufacturerId', 8, N'ManufacturerName', N'Aranda.ASMS.Business.Rules.Companies'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 80, N'VendorName', N'ProviderId', 8, N'ProviderName', N'Aranda.ASMS.Business.Rules.Companies'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 82, N'Responsible', N'ResponsibleId', 8, N'ResponsibleName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 83, N'Price', N'Price', 15, N'Price', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 84, N'AssetTag', N'AssetTag', 1, N'AssetTag', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 85, N'BarCode', N'BarCode', 1, N'BarCode', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 86, N'Brand', N'BrandId', 3, N'BrandName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 87, N'Name', N'Name', 1, N'Name', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 88, N'CostCenter', N'CostCenterId', 7, N'CostCenterName', N'Aranda.ASMS.Business.Rules.CostCenter'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 89, N'Description', N'Description', 1, N'Description', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 90, N'LicenceNumber', N'LicenseNumber', 1, N'LicenseNumber', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 91, N'SizeUnit', N'UnitSize', 1, N'UnitSize', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 92, N'MeasureUnit', N'UnitId', 3, N'UnitName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 93, N'Model', N'ModelId', 3, N'ModelName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 94, N'RFID', N'RFID', 1, N'RFID', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 95, N'Serial', N'Serial', 1, N'Serial', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 96, N'Id', N'Id', 6, N'Id', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 98, N'Created', N'OpenedDate', 2, N'OpenedDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 99, N'LastModified', N'ModifiedDate', 2, N'ModifiedDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 100, N'HitTotal', N'HitTotal', 6, N'HitTotal', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 101, N'RatingTotal', N'RatingTotal', 6, N'RatingTotal', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 102, N'Content', N'Content', 4, N'Content', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 103, N'State', N'StateId', 3, N'StateName', N'Aranda.ASMS.Business.Rules.Status'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 104, N'Id', N'StrId', 1, N'StrId', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 105, N'Keywords', N'Keyword', 1, N'Keyword', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 106, N'Url', N'Url', 1, N'Url', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 107, N'Description', N'Description', 1, N'Description', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 109, N'Class', N'ClassId', 3, N'ClassName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 110, N'Title', N'Title', 1, N'Title', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 111, N'Public', N'IsPublic', 5, N'Public', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 112, N'Author', N'AuthorId', 8, N'AuthorName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 113, N'Specialist', N'ResponsibleId', 8, N'ResponsibleName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 114, N'SpecialistGroup', N'GroupId', 3, N'GroupName', N'Aranda.ASMS.Business.Rules.Group'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 115, N'ModifierName', N'ModifierId', 8, N'ModifierName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 116, N'Reason', N'ReasonId', 3, N'ReasonName', N'Aranda.ASMS.Business.Rules.Status'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 118, N'SlaName', N'SlaId', 3, N'SlaName', N'Aranda.ASDK.Business.Rules.Sla'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 119, N'UcName', N'UcId', 3, N'UcName', N'Aranda.ASDK.Business.Rules.Sla'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 120, N'OlaName', N'OlaId', 3, N'OlaName', N'Aranda.ASDK.Business.Rules.Sla'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 121, N'Id', N'Id', 6, N'Id', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 122, N'Name', N'Name', 1, N'Name', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 123, N'Description', N'Description', 1, N'Description', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 124, N'Impact', N'ImpactId', 3, N'ImpactName', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 125, N'State', N'StateId', 3, N'StateName', N'Aranda.ASMS.Business.Rules.Status'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 126, N'Reason', N'ReasonId', 3, N'ReasonName', N'Aranda.ASMS.Business.Rules.Status'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 127, N'Responsible', N'ResponsibleId', 8, N'ResponsibleName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 128, N'DefectGroup', N'GroupId', 3, N'GroupName', N'Aranda.ASMS.Business.Rules.Group'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 129, N'DefaultSla', N'SlaId', 3, N'SlaName', N'Aranda.ASDK.Business.Rules.Sla'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 130, N'Calendar', N'CalendarId', 3, N'CalendarName', N'Aranda.ASMS.Business.Rules.Calendar'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 131, N'Stage', N'Stage', 3, N'Stage', N'Aranda.ASDK.Business.Rules.Service'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 132, N'TypeService', N'Type', 3, N'Type', N'Aranda.ASDK.Business.Rules.Service'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 133, N'DefaultCategory', N'CategoryId', 7, N'CategoryName', N'Aranda.ASDK.Business.Rules.Category'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 134, N'Id', N'Id', 6, N'Id', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 135, N'Author', N'AuthorId ', 8, N'AuthorName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 136, N'SpecialistGroup', N'GroupId', 3, N'GroupName', N'Aranda.ASMS.Business.Rules.Group'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 137, N'Specialist', N'ResponsibleId', 8, N'ResponsibleName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 138, N'Id', N'Identifier', 1, N'Identifier', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 139, N'Description', N'Description', 1, N'Description', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 140, N'PriorityName', N'PriorityId', 3, N'PriorityId', N'Aranda.ASMS.Business.Rules.Catalogs'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 141, N'Type', N'Type', 3, N'Type', N'Aranda.ASDK.Business.Rules.Events'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 142, N'State', N'StateId', 3, N'StateId', N'Aranda.ASMS.Business.Rules.Status'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 143, N'RecordId', N'RecordId', 1, N'RecordId', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 144, N'CI', N'CiId', 8, N'CiName', N'Aranda.CMDB.Business.Rules.CI'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 145, N'Recurrence', N'Recurrence', 6, N'Recurrence', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 146, N'Value', N'Value', 6, N'Value', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 147, N'Reason', N'ReasonId', 3, N'Reason', N'Aranda.ASMS.Business.Rules.Status'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 148, N'Category', N'SourceName', 1, N'SourceName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 149, N'MachineName', N'MachineName', 1, N'MachineName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 150, N'LogName', N'LogName', 1, N'LogName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 151, N'DateDiff', N'DateDiff', 6, N'DateDiff', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 152, N'Created', N'OpenedDate', 2, N'OpenedDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 153, N'Modified', N'ModifiedDate', 2, N'ModifiedDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 154, N'Closed', N'ClosedDate', 2, N'ClosedDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 155, N'Risk', N'RiskLevel', 3, N'RiskLevel', N'Aranda.CMDB.Business.Rules.CI'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 156, N'isImported', N'isImported', 5, N'isImported', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 157, N'isImported', N'isImported', 5, N'isImported', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 158, N'isImported', N'isImported', 5, N'isImported', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 159, N'Price', N'Price', 15, N'Price', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 160, N'Cost', N'Cost', 15, N'Cost', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 161, N'Effort', N'Effort', 9, N'Effort', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 162, N'LastNote', N'LastNote', 1, N'LastNote', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 163, N'InmediateBoss', N'ChiefId', 8, N'ChiefName', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 164, N'SurveyLink', N'SurveyLink', 1, N'SurveyLink', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 165, N'TasksList', N'TasksList', 1, N'TasksList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 166, N'CIsList', N'CIsList', 1, N'CIsList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 167, N'ArticlesList', N'ArticlesList', 1, N'ArticlesList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 168, N'IncidentsList', N'IncidentsList', 1, N'IncidentsList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 169, N'ProblemsList', N'ProblemsList', 1, N'ProblemsList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 170, N'ChangesList', N'ChangesList', 1, N'ChangesList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 171, N'ServiceCallsList', N'ServiceCallsList', 1, N'ServiceCallsList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 172, N'ReleasesList', N'ReleasesList', 1, N'ReleasesList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 173, N'MaintenancesList', N'MaintenancesList', 1, N'MaintenancesList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 174, N'FilesList', N'FilesList', 1, N'FilesList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 175, N'HasNewNote', N'HasNewNote', 5, N'HasNewNote', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 176, N'CC', N'CC', 1, N'CC', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 177, N'From', N'From', 1, N'From', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 178, N'Date', N'Date', 1, N'Date', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 179, N'Subject', N'Subject', 1, N'Subject', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 180, N'To', N'To', 1, N'To', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 181, N'MessageId', N'MessageId', 1, N'MessageId', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 182, N'Files', N'Files', 1, N'Files', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 183, N'Priority', N'Priority', 1, N'Priority', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 184, N'Body', N'Body', 1, N'Body', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 185, N'HasNewPrivateNote', N'HasNewPrivateNote', 5, N'HasNewPrivateNote', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 186, N'NoteAuthor', N'NoteAuthor', 8, N'NoteAuthor', N'Aranda.ASMS.Business.Rules.User'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 187, N'NoteText', N'NoteText', 1, N'NoteText', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 188, N'HasNewPublicNote', N'HasNewPublicNote', 5, N'HasNewPublicNote', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 189, N'Name', N'Name', 1, N'Name', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 190, N'Description', N'Description', 1, N'Description', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 191, N'Responsible', N'ResponsibleId', 1, N'ResponsibleName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 192, N'StartDate', N'InitialDate', 2, N'InitialDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 193, N'EndDate', N'FinalDate', 2, N'FinalDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 194, N'Name', N'Name', 1, N'Name', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 195, N'Description', N'Description', 1, N'Description', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 196, N'StartDate', N'StartDate', 2, N'StartDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 197, N'EndDate', N'FinishDate', 2, N'FinishDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 198, N'RevisionDate', N'ReviewDate', 2, N'ReviewDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 199, N'State', N'StateId', 1, N'StateName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 200, N'Reason', N'ReasonId', 1, N'ReasonName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 201, N'Calendar', N'CalendarId', 1, N'CalendarName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 202, N'ContractNumber', N'Name', 1, N'Name', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 203, N'Value', N'Value', 15, N'Value', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 204, N'VendorName', N'CompanyId', 8, N'CompanyName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 205, N'ResponsableName', N'UserId', 8, N'UserName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 206, N'State', N'StateId', 3, N'StateName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 207, N'Reason', N'ReasonId', 3, N'ReasonName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 208, N'StartDate', N'StartDate', 2, N'StartDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 209, N'EndDate', N'EndDate', 2, N'EndDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 210, N'Description', N'Description', 1, N'Description', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 211, N'LastPosition', N'LastPosition', 17, N'LastPosition', N'Aranda.ASMS.Business.Rules.GeoFences'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 212, N'VotingLink', N'VotingLink',	1,N'VotingLink', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 213, N'FilesPublicList', N'FilesPublicList', 1, N'FilesPublicList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 214, N'FilesPrivateList', N'FilesPrivateList', 1, N'FilesPrivateList', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 215, N'Progress', N'AddFloat1',9,N'AddFloat1', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 216, N'VotingLinkApprove', N'VotingLinkApprove',3,N'VotingLinkApprove', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 217, N'VotingLinkReject', N'VotingLinkReject',3,N'VotingLinkReject', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 218, N'VotingLinkInfo', N'VotingLinkInfo',3,N'VotingLinkInfo', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 219, N'AllTasksClosed', N'IsCloseTask',5,N'IsCloseTask', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 220, N'CreationDate', N'OpenedDate',2,N'OpenedDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 221, N'Reassign', N'AddInt2',6, N'AddInt2', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 222, N'Project', N'ProjectName', 4, N'ProjectName', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 223, N'CreationDate', N'CreatedDate', 13, N'CreatedDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 224, N'LastNotePublic', N'LastNotePublic', 1, N'LastNotePublic', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 225, N'Location', N'LocationId', 3, N'LocationName', 'Aranda.ASMS.Business.Rules.Location'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 226, N'NumberUsers', N'AddInt3', 6, N'AddInt3', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 227, N'NumberCis', N'AddInt4',6, N'AddInt4', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 228, N'ScheduledDate', N'ScheduledDate',13, N'ScheduledDate', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 229, N'DateWarranty', N'AddDate9',2, N'AddDate9', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 230, N'Applicant', N'ApplicantId',8, N'ApplicantName', 'Aranda.ASMS.Business.Rules.User'

EXEC [MD_ASMS_INTERFACE_BUILTIN] 231, N'Result', N'Result', 4, N'Result', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 232, N'CodeItem', N'IdbyProject', 1, N'CodeItem', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 233, N'ExpiredDateItem', N'RealDate', 13, N'RealDateItem', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 234, N'AttentionEstimatedDateItem', N'EstimatedDate', 13, N'EstimatedDateItem', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 235, N'LocationItem', N'LocationId', 1, N'LocationNameItem', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 236, N'SubjectItem', N'Subject', 1, N'SubjectItem', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 237, N'DescriptionItem', N'Description', 4, N'DescriptionItem', NULL

EXEC [MD_ASMS_INTERFACE_BUILTIN] 238, N'ContractName', N'ContractId', 3, N'ContractId', 'Aranda.ASMS.Business.Rules.Contract'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 239, N'LastNotePrivate', N'LastNotePrivate', 1, N'LastNotePrivate', NULL

EXEC [MD_ASMS_INTERFACE_BUILTIN] 240, N'HasNewPrivateFile', N'HasNewPrivateFile', 5, N'HasNewPrivateFile', NULL
EXEC [MD_ASMS_INTERFACE_BUILTIN] 241, N'HasNewPublicFile', N'HasNewPublicFile', 5, N'HasNewPublicFile', NULL

EXEC [MD_ASMS_INTERFACE_BUILTIN] 242, N'Contract', N'ContractName', 3, N'ContractName', N'Aranda.ASMS.Business.Rules.Contract'
EXEC [MD_ASMS_INTERFACE_BUILTIN] 243, N'VotingResult', N'VotingResult', 3, N'VotingResult', NULL

EXEC [MD_ASMS_INTERFACE_BUILTIN] 244, N'ResponsableGroup', N'GroupId', 8, N'GroupName', 'Aranda.ASMS.Business.Rules.Group'

EXEC [MD_ASMS_INTERFACE_BUILTIN] 245, N'Place', N'LocationId', 3, N'LocationName', 'Aranda.ASMS.Business.Rules.Location'
GO


PRINT 'MD_ASMS_INTERFACE_BUILTIN DONE!!'
GO

DECLARE @catalog_id INT
EXEC [MD_ASMS_FIELDS_BUILTIN] 1, N'Psa', N'PSA', N'PsaDescription', 10, 3, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 2, N'Scope', N'Scope', N'ScopeDescription', 4, 3, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 3, N'UsedApplications', N'UsedApplications', N'UsedApplicationsDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 4, N'DataSchema', N'DataSchema', N'DataSchemaDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 5, N'BusinessOwners', N'BusinessOwners', N'BusinessOwnersDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 6, N'BusinessUsers', N'BusinessUsers', N'BusinessUsersDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 7, N'ITOwners', N'ITOwners', N'ITOwnersDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 8, N'ServiceWarrantyLevel', N'ServiceWarrantyLevel', N'ServiceWarrantyLevelDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 9, N'SupportingResources', N'SupportingResources', N'SupportingResourcesDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 10, N'ServiceMetrics', N'ServiceMetrics', N'ServiceMetricsDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 11, N'EventAlertReq', N'EventAlertReq', N'EventAlertReqDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 12, N'ServiceRules', N'ServiceRules', N'ServiceRulesDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 13, N'ServiceCorrelations', N'ServiceCorrelations', N'ServiceCorrelationsDescription', 4, 5, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 14, N'Scope', N'Scope', N'ScopeDescription1', 4, 14, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 15, N'Contacts', N'Contacts', N'ContactsDescription', 4, 14, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 16, N'CapacityNeeds', N'CapacityNeeds', N'CapacityNeedsDescription', 4, 14, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 17, N'SecurityNeeds', N'SecurityNeeds', N'SecurityNeedsDescription', 4, 14, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 18, N'AvailabilityNeeds', N'AvailabilityNeeds', N'AvailabilityNeedsDescription', 4, 14, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 19, N'ServiceContinuityNeeds', N'ServiceContinuityNeeds', N'ServiceContinuityNeedsDescription', 4, 14, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 20, N'ClientResponsibilities', N'ClientResponsibilities', N'ClientResponsibilitiesDescription', 4, 14, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 21, N'Scope', N'Scope', N'ScopeDescription1', 4, 54, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 22, N'Contacts', N'Contacts', N'ContactsDescription', 4, 54, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 23, N'SupplierResponsibilities', N'SupplierResponsibilities', N'SupplierResponsibilitiesDescription', 4, 54, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 24, N'Scope', N'Scope', N'ScopeDescription1', 4, 55, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 25, N'Contacts', N'Contacts', N'ContactsDescription', 4, 55, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 26, N'AreaResponsibilities', N'AreaResponsibilities', N'AreaResponsibilitiesDescription', 4, 55, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 27, N'BackOutPlan', N'BackoutPlan', N'BackOutPlanDescription', 10, 3, NULL

SELECT @catalog_id = cata_id 
FROM afw_catalog
WHERE cata_builtin = 1 
AND cata_name = 'DEPARTAMENT' 

EXEC [MD_ASMS_FIELDS_BUILTIN] 28, N'Department', N'Department', N'Department', 11, 21, @catalog_id

SELECT @catalog_id = cata_id 
FROM afw_catalog
WHERE cata_builtin = 1 
AND cata_name = 'DEPARTAMENTNUMBER' 

EXEC [MD_ASMS_FIELDS_BUILTIN] 29, N'NoDpto', N'NoDpto', N'NoDpto', 11, 21, @catalog_id

SELECT @catalog_id = cata_id 
FROM afw_catalog
WHERE cata_builtin = 1  
AND cata_name = 'CITY' 

EXEC [MD_ASMS_FIELDS_BUILTIN] 30, N'City', N'City', N'City', 11, 21, @catalog_id

SELECT @catalog_id = cata_id 
FROM afw_catalog
WHERE cata_builtin = 1  
AND cata_name = 'COUNTRY' 

EXEC [MD_ASMS_FIELDS_BUILTIN] 31, N'Country', N'Country', N'Country', 11, 21, @catalog_id

SELECT @catalog_id = cata_id 
FROM afw_catalog
WHERE cata_builtin = 1 
AND cata_name = 'SITE' 

EXEC [MD_ASMS_FIELDS_BUILTIN] 32, N'Branch', N'Branch', N'Branch', 11, 21, @catalog_id

SELECT @catalog_id = cata_id 
FROM afw_catalog
WHERE cata_builtin = 1 
AND cata_name = 'BUILDING1' 

EXEC [MD_ASMS_FIELDS_BUILTIN] 33, N'TheBuilding', N'TheBuilding', N'TheBuilding', 11, 21, @catalog_id

SELECT @catalog_id = cata_id 
FROM afw_catalog
WHERE cata_builtin = 1  
AND cata_name = 'FLOOR' 

EXEC [MD_ASMS_FIELDS_BUILTIN] 34, N'Floor', N'Floor', N'Floor', 11, 21, @catalog_id

SELECT @catalog_id = cata_id 
FROM afw_catalog
WHERE cata_builtin = 1  
AND cata_name = 'COMPANY' 

EXEC [MD_ASMS_FIELDS_BUILTIN] 35, N'Subsidiary', N'Subsidiary', N'Subsidiary', 11, 21, @catalog_id

EXEC [MD_ASMS_FIELDS_BUILTIN] 36, N'Address1', N'Address1', N'Address1', 1, 21, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 37, N'File', N'File', N'File', 10, 21, NULL
EXEC [MD_ASMS_FIELDS_BUILTIN] 38, N'IsLaptop', N'IsLaptop', N'IsLaptop', 5, 21, NULL
GO

PRINT 'MD_ASMS_FIELDS_BUILTIN DONE!!'
GO

EXEC [MD_ASMS_INTERFACE_CONSTANTS] 1, N'Now', N'DateTime.Now'
EXEC [MD_ASMS_INTERFACE_CONSTANTS] 2, N'True', N'true'
EXEC [MD_ASMS_INTERFACE_CONSTANTS] 3, N'False', N'false'
EXEC [MD_ASMS_INTERFACE_CONSTANTS] 4, N'Today', N'DateTime.Today'
GO

PRINT 'MD_ASMS_INTERFACE_CONSTANTS DONE!!'
GO

EXEC [MD_ASMS_INTERFACE_FUNCTIONS] 1, 2, N'+ days', N'AddDays', N'[6]'
EXEC [MD_ASMS_INTERFACE_FUNCTIONS] 2, 2, N' +hours', N'AddHours', N'[6]'
EXEC [MD_ASMS_INTERFACE_FUNCTIONS] 3, 2, N'+ minutes', N'AddMinutes', N'[6]'
EXEC [MD_ASMS_INTERFACE_FUNCTIONS] 4, 13, N'+ days', N'AddDays', N'[6]'
EXEC [MD_ASMS_INTERFACE_FUNCTIONS] 5, 14, N' +hours', N'AddHours', N'[6]'
EXEC [MD_ASMS_INTERFACE_FUNCTIONS] 6, 14, N'+ minutes', N'AddMinutes', N'[6]'
GO

PRINT 'MD_ASMS_INTERFACE_FUNCTIONS DONE!!'
GO

EXEC [MD_ASMS_INTERFACE_OPERATORS] 1, N'>', N'>'
EXEC [MD_ASMS_INTERFACE_OPERATORS] 2, N'<', N'<'
EXEC [MD_ASMS_INTERFACE_OPERATORS] 3, N'>=', N'>='
EXEC [MD_ASMS_INTERFACE_OPERATORS] 4, N'<=', N'<='
EXEC [MD_ASMS_INTERFACE_OPERATORS] 5, N'=', N'=='
EXEC [MD_ASMS_INTERFACE_OPERATORS] 6, N'<>', N'!='
EXEC [MD_ASMS_INTERFACE_OPERATORS] 7, N'LIKE', N'LIKE'
EXEC [MD_ASMS_INTERFACE_OPERATORS] 8, N'Change', N'Change'
EXEC [MD_ASMS_INTERFACE_OPERATORS] 9, N'Inside', N'Inside'
EXEC [MD_ASMS_INTERFACE_OPERATORS] 10, N'Outside', N'Outside'
GO

PRINT 'MD_ASMS_INTERFACE_OPERATORS DONE!!'
GO

EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 12012, N'SendAlarm', N'AlarmActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 12013, N'InvokeWebService', N'WebServiceActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 12022, N'SendAlarm', N'AlarmActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 12023, N'InvokeWebService', N'WebServiceActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 12032, N'SendAlarm', N'AlarmActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 12033, N'InvokeWebService', N'WebServiceActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 12052, N'SendAlarm', N'AlarmActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 12062, N'SendAlarm', N'AlarmActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13011, N'SendMail', N'MailActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13014, N'ModifyItem', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13015, N'ModifyRelatedItems', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13016, N'CreateItem', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13025, N'ModifyRelatedItems', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13026, N'CreateItem', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13035, N'ModifyRelatedItems', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13036, N'CreateItem', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13044, N'ModifyTask', N'TaskActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13048, N'CreateTask', N'TaskActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13049, N'ModifyRelatedTasks', N'TaskActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13051, N'SendMail', N'MailActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13054, N'ModifyService', N'ServiceActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13055, N'ModifyRelatedItems', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13056, N'CreateItem', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13061, N'SendMail', N'MailActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13064, N'ModifyEvent', N'EventActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13065, N'ModifyRelatedItems', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13066, N'CreateItem', N'ItemActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13068, N'CreateEvent', N'EventActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13069, N'ModifyRelatedEvents', N'EventActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13080, N'ModifyRelatedEvents', N'EventActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13081, N'ModifyRelatedEvents', N'EventActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13083, N'NotifySource', N'WebServiceActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13084, N'AddSurcharge', N'AccountingActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13085, N'SendMailExternal', N'', 1
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13086, N'CompiledActionItem', N'CompiledActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13087, N'NoteActionItem', N'NoteActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13088, N'NoteActionService', N'NoteActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13089, N'NoteActionEvent', N'NoteActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13090, N'CompiledActionService', N'CompiledActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13091, N'CompiledActionEvent', N'CompiledActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13092, N'SendNotification', N'NotificationActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13093, N'Invoke WebHook', N'WebHookActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13094, N'Send notification push', N'NotificationPushActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 13095, N'SendNotificationWhatsApp', N'NotificationWhatsAppActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21019, N'ModifyRelatedCIs', N'CIActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21029, N'ModifyRelatedCIs', N'CIActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21031, N'SendMail', N'MailActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21034, N'ModifyCI', N'CIActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21039, N'ModifyRelatedCIs', N'CIActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21071, N'CreateBaseline', N'BaseLinesActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21072, N'RestoreBaseline', N'BaseLinesActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21073, N'CreateBaselineCIs', N'BaseLinesActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21074, N'RestoreBaselineCIs', N'BaseLinesActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21075, N'CreateBaselineCIs', N'BaseLinesActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21076, N'RestoreBaselineCIs', N'BaseLinesActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21077, N'CreateBaselineCIs', N'BaseLinesActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21078, N'RestoreBaselineCIs', N'BaseLinesActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21079, N'NotifySource', N'WebServiceActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21080, N'CompiledActionCi', N'CompiledActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21081, N'NoteActionCi', N'NoteActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 21082, N'Invoke WebHook', N'WebHookActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25017, N'ModifyRelatedArticles', N'ArticleActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25018, N'CreateArticle', N'ArticleActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25021, N'SendMail', N'MailActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25024, N'ModifyArticle', N'ArticleActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25027, N'ModifyRelatedArticles', N'ArticleActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25028, N'CreateArticle', N'ArticleActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25037, N'ModifyRelatedArticles', N'ArticleActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25038, N'CreateArticle', N'ArticleActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25082, N'NotifySource', N'WebServiceActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25083, N'CompiledActionArticle', N'CompiledActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25084, N'NoteActionArticle', N'NoteActionControl.ascx', 0
EXEC [MD_ASMS_RULES_ACTIONS_TYPES] 25085, N'Invoke WebHook', N'WebHookActionControl.ascx', 0

GO


PRINT 'MD_ASMS_RULES_ACTIONS_TYPES DONE!!'
GO

EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 12012
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 12013
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13011
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13014
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13015
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13016
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13048
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13049
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13081
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13083
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13084
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13086
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13087
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13092
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13093
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13094
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 13095
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 21019
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 21073
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 21074
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 25017
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  1, 25018
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 12012
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 12013
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13011
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13014
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13015
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13016
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13048
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13049
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13081
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13083
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13084
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13086
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13087
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13093
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 13094
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 21019
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 21073
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 21074
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 25017
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  2, 25018
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 12012
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 12013
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13011
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13014
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13015
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13016
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13048
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13049
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13081
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13083
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13084
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13086
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13087
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13092
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13093
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13094
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 13095
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 21019
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 21073
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 21074
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 25017
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  3, 25018
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 12012
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 12013
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13011
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13014
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13015
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13016
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13048
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13049
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13081
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13083
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13084
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13086
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13087
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13092
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13093
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13094
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 13095
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 21019
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 21073
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 21074
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 25017
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  4, 25018
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  5, 12052
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  5, 13051
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  5, 13054
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  5, 13055
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  5, 13056
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  5, 13088
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  5, 13090
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 12012
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 12013
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 13011
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 13015
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 13016
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 13044
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 13048
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 13049
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 13084
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 13086
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 13087
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  6, 13093
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 12022
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 12023
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 13025
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 13026
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 21029
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 21075
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 21076
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 25021
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 25024
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 25027
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 25028
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 25082
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 25083
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 25084
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  7, 25085
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 12012
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 12013
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13011
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13014
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13015
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13016
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13048
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13049
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13083
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13084
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13086
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13087
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13093
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 13094
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 21019
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 21073
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 21074
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 25017
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  13, 25018
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 12032
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 12033
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 13035
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 13036
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 13080
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21031
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21034
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21039
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21071
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21072
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21077
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21078
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21079
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21080
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21081
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 21082
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 25037
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  21, 25038
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 12032
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 12033
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 13035
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 13036
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 21031
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 21034
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 21039
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 21071
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 21072
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 21077
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  48, 21078
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  50, 12062
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  50, 13061
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  50, 13064
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  50, 13065
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  50, 13066
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  50, 13068
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  50, 13069
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  50, 13089
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  50, 13091
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 12012
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 12013
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13011
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13014
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13015
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13016
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13048
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13049
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13083
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13084
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13085
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13086
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13087
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 13093
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 21019
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 21073
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 21074
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 25017
EXEC [MD_ASMS_RULES_TYPE_ACTIONS]  75, 25018
GO

PRINT 'MD_ASMS_RULES_TYPE_ACTIONS DONE!!'
GO

EXEC [MD_ASMS_INTERFACE_TYPE] 1, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 1, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 2, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 3, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 4, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 5, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 6, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 7, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 8, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 9, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 10, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 11, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 12, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 13, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 14, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 15, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 16, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 17, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 18, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 19, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 20, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 21, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 22, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 22, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 22, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 22, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 23, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 23, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 23, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 23, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 24, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 25, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 25, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 25, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 25, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 25, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 25, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 25, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 25, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 26, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 26, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 26, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 26, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 26, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 26, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 26, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 26, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 27, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 27, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 27, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 27, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 27, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 27, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 27, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 27, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 28, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 28, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 28, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 28, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 28, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 28, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 28, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 28, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 29, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 29, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 29, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 29, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 29, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 29, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 29, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 29, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 30, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 30, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 30, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 30, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 30, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 30, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 30, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 30, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 31, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 31, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 31, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 31, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 31, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 31, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 31, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 31, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 32, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 32, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 32, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 32, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 32, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 32, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 32, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 32, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 33, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 33, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 33, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 33, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 33, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 33, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 33, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 33, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 34, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 34, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 34, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 34, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 34, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 34, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 34, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 34, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 35, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 35, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 35, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 35, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 35, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 35, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 35, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 35, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 36, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 36, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 36, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 36, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 36, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 36, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 36, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 36, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 37, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 37, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 37, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 37, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 37, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 37, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 37, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 37, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 38, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 38, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 38, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 38, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 38, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 38, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 38, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 38, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 39, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 39, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 39, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 39, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 39, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 39, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 39, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 39, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 40, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 40, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 40, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 40, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 40, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 40, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 40, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 40, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 41, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 41, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 41, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 41, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 41, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 41, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 41, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 41, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 42, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 42, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 42, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 42, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 42, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 42, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 42, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 42, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 43, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 43, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 43, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 43, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 43, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 43, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 43, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 43, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 44, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 44, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 44, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 44, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 44, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 44, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 44, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 44, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 45, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 45, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 45, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 45, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 45, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 45, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 45, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 45, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 46, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 46, 38, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 46, 38, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 46, 38, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 46, 52, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 46, 52, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 46, 52, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 46, 52, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 47, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 47, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 47, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 47, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 47, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 47, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 47, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 47, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 48, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 48, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 48, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 48, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 48, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 48, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 48, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 48, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 49, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 49, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 49, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 49, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 49, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 49, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 49, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 49, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 50, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 50, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 50, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 50, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 50, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 50, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 50, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 50, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 51, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 51, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 51, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 51, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 51, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 51, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 51, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 51, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 52, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 52, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 52, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 52, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 52, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 52, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 52, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 52, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 53, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 53, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 53, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 53, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 53, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 53, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 53, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 53, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 54, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 54, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 54, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 54, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 54, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 54, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 54, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 54, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 55, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 55, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 55, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 55, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 55, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 55, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 55, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 55, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 56, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 56, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 56, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 56, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 56, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 56, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 56, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 56, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 57, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 57, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 57, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 57, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 57, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 57, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 57, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 57, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 58, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 58, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 58, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 58, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 58, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 58, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 58, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 58, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 59, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 59, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 59, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 59, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 59, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 59, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 59, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 59, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 60, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 60, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 60, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 60, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 60, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 60, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 60, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 60, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 61, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 61, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 61, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 61, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 61, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 61, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 61, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 61, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 62, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 62, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 62, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 62, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 62, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 62, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 62, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 62, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 63, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 63, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 63, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 63, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 63, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 63, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 63, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 63, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 64, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 64, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 64, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 64, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 64, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 64, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 64, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 64, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 65, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 65, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 65, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 65, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 65, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 65, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 65, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 65, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 66, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 66, 37, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 66, 37, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 66, 37, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 66, 53, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 66, 53, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 66, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 66, 53, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 67, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 67, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 67, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 68, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 68, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 68, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 68, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 68, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 68, 48, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 68, 48, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 69, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 69, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 69, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 69, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 69, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 69, 48, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 69, 48, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 70, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 70, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 70, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 70, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 70, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 70, 48, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 70, 48, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 72, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 72, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 72, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 72, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 73, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 73, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 73, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 73, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 73, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 73, 48, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 73, 48, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 74, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 74, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 74, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 74, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 74, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 74, 48, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 74, 48, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 75, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 75, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 75, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 75, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 75, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 75, 48, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 75, 48, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 77, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 77, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 77, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 77, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 78, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 78, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 78, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 78, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 80, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 80, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 80, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 80, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 82, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 82, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 82, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 82, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 82, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 82, 48, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 82, 48, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 83, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 83, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 83, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 83, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 84, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 84, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 84, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 84, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 85, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 85, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 85, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 85, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 86, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 86, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 86, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 86, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 87, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 87, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 87, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 87, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 87, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 87, 48, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 87, 48, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 88, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 88, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 88, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 88, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 89, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 89, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 89, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 89, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 89, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 89, 48, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 89, 48, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 90, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 90, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 90, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 90, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 91, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 91, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 91, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 91, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 92, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 92, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 92, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 92, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 93, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 93, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 93, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 93, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 94, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 94, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 94, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 94, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 95, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 95, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 95, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 95, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 96, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 96, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 98, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 98, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 98, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 98, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 99, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 99, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 99, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 99, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 100, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 100, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 100, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 100, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 101, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 101, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 101, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 101, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 102, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 102, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 102, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 102, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 103, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 103, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 103, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 103, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 104, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 104, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 104, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 104, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 105, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 105, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 105, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 105, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 106, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 106, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 106, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 106, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 107, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 107, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 107, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 107, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 109, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 109, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 109, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 109, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 110, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 110, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 110, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 110, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 111, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 111, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 111, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 111, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 112, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 112, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 112, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 112, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 113, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 113, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 113, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 113, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 114, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 114, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 114, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 114, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 115, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 115, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 115, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 115, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 116, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 116, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 116, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 116, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 118, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 119, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 120, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 122, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 122, 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 123, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 123, 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 124, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 124, 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 125, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 125, 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 126, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 126, 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 127, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 127, 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 128, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 128, 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 129, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 129, 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 131, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 131, 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 132, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 132, 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 135, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 135, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 136, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 136, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 137, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 137, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 138, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 138, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 139, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 139, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 140, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 140, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 141, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 141, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 142, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 142, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 144, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 144, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 145, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 145, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 147, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 147, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 148, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 148, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 149, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 149, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 150, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 150, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 151, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 151, 50, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 152, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 153, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 154, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 155, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 155, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 155, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 155, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 156, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 156, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 156, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 156, 21, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 157, 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 157, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 157, 7, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 157, 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 158, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 6, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 6, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 159, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 6, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 6, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 160, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 6, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 6, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 75, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 161, 75, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 162, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 162, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 162, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 162, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 162, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 162, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 162, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 163, 53, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 163, 37, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 164, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 164, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 164, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 164, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 164, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 164, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 165, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 165, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 165, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 165, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 165, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 165, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 166, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 166, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 166, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 166, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 166, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 166, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 167, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 167, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 167, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 167, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 167, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 167, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 168, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 168, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 168, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 168, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 168, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 168, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 169, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 169, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 169, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 169, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 169, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 169, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 170, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 170, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 170, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 170, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 170, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 170, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 171, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 171, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 171, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 171, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 171, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 171, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 172, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 172, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 172, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 172, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 172, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 172, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 173, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 173, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 173, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 173, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 173, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 173, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 174, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 174, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 174, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 174, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 174, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 174, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 175, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 175, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 175, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 175, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 176, 81, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 177, 81, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 178, 81, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 179, 81, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 180, 81, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 181, 81, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 182, 81, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 183, 81, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 184, 81, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 185, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 185, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 185, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 185, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 185, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 185, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 185, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 186, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 7, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 50, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 187, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 188, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 188, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 188, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 188, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 188, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 188, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 188, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 189, 76, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 190, 76, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 191, 76, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 192, 76, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 193, 76, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 194, 14, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 194, 54, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 194, 55, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 195, 14, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 195, 54, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 195, 55, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 196, 14, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 196, 54, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 196, 55, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 197, 14, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 197, 54, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 197, 55, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 198, 14, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 198, 54, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 198, 55, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 199, 14, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 199, 54, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 199, 55, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 200, 14, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 200, 54, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 200, 55, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 201, 14, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 201, 54, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 201, 55, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 202, 70, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 203, 70, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 204, 70, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 205, 70, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 206, 70, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 207, 70, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 208, 70, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 209, 70, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 210, 70, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 211, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 212, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 212, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 212, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 212, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 212, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 212, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 213, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 213, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 213, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 213, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 213, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 213, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 214, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 214, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 214, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 214, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 214, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 214, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 215 ,6 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 216, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 216, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 216 ,4 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 216 ,13 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 217, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 217, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 217 ,4 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 217 ,13 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 218, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 218, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 218 ,4 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 218 ,13 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 219 ,1 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 219 ,2 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 219 ,3 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 219 ,4 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 219 ,13 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 219 ,75 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 220 ,6 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 221 ,1 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 221 ,2 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 221 ,3 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 221 ,4 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 221 ,13 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 221 ,75 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 222 ,1 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 222 ,2 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 222 ,3 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 222 ,4 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 222 ,6 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 222 ,13 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 222 ,75 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 223, 48, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 224, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 224, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 224, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 224, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 224, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 224, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 224, 75, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 2, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 225, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE] 226, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 226, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 226, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 226, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 226, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 226, 75, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 227, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 227, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 227, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 227, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 227, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 227, 75, 2

EXEC [MD_ASMS_INTERFACE_TYPE] 228 ,1 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 228 ,2 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 228 ,3 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 228 ,4 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 228 ,13 ,3

EXEC [MD_ASMS_INTERFACE_TYPE] 229 ,1 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 229 ,3 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 229 ,4 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 229 ,13,2

EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,1 ,1
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,3 ,1
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,4 ,1
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,13 ,1
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,75 ,1
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,1 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,3 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,4 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,13 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,75 ,2
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,1 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,3 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,4 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,13 ,3
EXEC [MD_ASMS_INTERFACE_TYPE] 230 ,75 ,3

EXEC [MD_ASMS_INTERFACE_TYPE] 231, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 232, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 233, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 234, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 235, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 236, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 237, 6, 3

EXEC [MD_ASMS_INTERFACE_TYPE] 238, 1, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 1, 4

EXEC [MD_ASMS_INTERFACE_TYPE] 238, 2, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 2, 4

EXEC [MD_ASMS_INTERFACE_TYPE] 238, 3, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 3, 4

EXEC [MD_ASMS_INTERFACE_TYPE] 238, 4, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 4, 4

EXEC [MD_ASMS_INTERFACE_TYPE] 238, 13, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 238, 13, 4

EXEC [MD_ASMS_INTERFACE_TYPE] 239, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 239, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 239, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 239, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 239, 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 239, 13, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 239, 75, 3

EXEC [MD_ASMS_INTERFACE_TYPE] 164, 53, 3

EXEC [MD_ASMS_INTERFACE_TYPE] 240, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 240, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 240, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 240, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 240, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 240, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 240, 75, 2

EXEC [MD_ASMS_INTERFACE_TYPE] 241, 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 241, 2, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 241, 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 241, 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 241, 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 241, 13, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 241, 75, 2

EXEC [MD_ASMS_INTERFACE_TYPE]  242, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE]  242, 2, 3
EXEC [MD_ASMS_INTERFACE_TYPE]  242, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE]  242, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE]  242, 13, 3

EXEC [MD_ASMS_INTERFACE_TYPE]  243, 1, 3
EXEC [MD_ASMS_INTERFACE_TYPE]  243, 3, 3
EXEC [MD_ASMS_INTERFACE_TYPE]  243, 4, 3
EXEC [MD_ASMS_INTERFACE_TYPE]  243, 13, 3

EXEC [MD_ASMS_INTERFACE_TYPE]  230, 1, 4
EXEC [MD_ASMS_INTERFACE_TYPE]  230, 3, 4
EXEC [MD_ASMS_INTERFACE_TYPE]  230, 4, 4
EXEC [MD_ASMS_INTERFACE_TYPE]  230, 13, 4
EXEC [MD_ASMS_INTERFACE_TYPE]  230, 75, 4

EXEC [MD_ASMS_INTERFACE_TYPE] 244, 21, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 244, 21, 2
EXEC [MD_ASMS_INTERFACE_TYPE] 244, 21, 3
EXEC [MD_ASMS_INTERFACE_TYPE] 244, 21, 4

EXEC [MD_ASMS_INTERFACE_TYPE] 245, 38, 1
EXEC [MD_ASMS_INTERFACE_TYPE] 245, 52, 1
GO

PRINT 'MD_ASMS_INTERFACE_TYPE DONE!!'
GO
EXEC [MD_ASMS_INTERFACE_TYPE_CONSTANTS] 1, 2
EXEC [MD_ASMS_INTERFACE_TYPE_CONSTANTS] 1, 14
EXEC [MD_ASMS_INTERFACE_TYPE_CONSTANTS] 2, 5
EXEC [MD_ASMS_INTERFACE_TYPE_CONSTANTS] 3, 5
EXEC [MD_ASMS_INTERFACE_TYPE_CONSTANTS] 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE_CONSTANTS] 4, 13
GO

PRINT 'MD_ASMS_INTERFACE_TYPE_CONSTANTS DONE!!'
GO

EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 1, 6
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 1, 9
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 1, 15
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 2, 6
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 2, 9
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 2, 15
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 3, 2
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 3, 6
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 3, 9
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 3, 13
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 3, 14
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 3, 15
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 4, 2
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 4, 6
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 4, 9
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 4, 13
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 4, 14
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 4, 15
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 1
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 2
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 3
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 4
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 5
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 6
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 7
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 8
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 9
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 10
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 11
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 12
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 13
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 14
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 15
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 16
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 1
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 2
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 3
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 4
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 6
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 7
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 8
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 9
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 10
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 11
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 12
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 13
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 14
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 15
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 6, 16
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 7, 1
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 7, 4
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 7, 10
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 7, 16
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 1
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 3
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 4
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 6
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 7
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 8
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 9
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 10
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 11
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 12
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 13
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 14
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 15
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 8, 16
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 9, 17
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 10, 17
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 5, 18
EXEC [MD_ASMS_INTERFACE_TYPE_OPERATORS] 7, 18
GO

PRINT 'MD_ASMS_INTERFACE_TYPE_OPERATORS DONE!!'
GO
EXEC [MD_ASMS_RELATION_CLASS] 1, 1
EXEC [MD_ASMS_RELATION_CLASS] 1, 2
EXEC [MD_ASMS_RELATION_CLASS] 1, 3
EXEC [MD_ASMS_RELATION_CLASS] 1, 4
EXEC [MD_ASMS_RELATION_CLASS] 1, 6
EXEC [MD_ASMS_RELATION_CLASS] 1, 7
EXEC [MD_ASMS_RELATION_CLASS] 1, 13
EXEC [MD_ASMS_RELATION_CLASS] 1, 21
EXEC [MD_ASMS_RELATION_CLASS] 1, 75
EXEC [MD_ASMS_RELATION_CLASS] 2, 1
EXEC [MD_ASMS_RELATION_CLASS] 2, 2
EXEC [MD_ASMS_RELATION_CLASS] 2, 3
EXEC [MD_ASMS_RELATION_CLASS] 2, 4
EXEC [MD_ASMS_RELATION_CLASS] 2, 6
EXEC [MD_ASMS_RELATION_CLASS] 2, 7
EXEC [MD_ASMS_RELATION_CLASS] 2, 13
EXEC [MD_ASMS_RELATION_CLASS] 2, 21
EXEC [MD_ASMS_RELATION_CLASS] 3, 1
EXEC [MD_ASMS_RELATION_CLASS] 3, 2
EXEC [MD_ASMS_RELATION_CLASS] 3, 3
EXEC [MD_ASMS_RELATION_CLASS] 3, 4
EXEC [MD_ASMS_RELATION_CLASS] 3, 6
EXEC [MD_ASMS_RELATION_CLASS] 3, 7
EXEC [MD_ASMS_RELATION_CLASS] 3, 13
EXEC [MD_ASMS_RELATION_CLASS] 3, 21
EXEC [MD_ASMS_RELATION_CLASS] 3, 75
EXEC [MD_ASMS_RELATION_CLASS] 4, 1
EXEC [MD_ASMS_RELATION_CLASS] 4, 2
EXEC [MD_ASMS_RELATION_CLASS] 4, 3
EXEC [MD_ASMS_RELATION_CLASS] 4, 4
EXEC [MD_ASMS_RELATION_CLASS] 4, 6
EXEC [MD_ASMS_RELATION_CLASS] 4, 7
EXEC [MD_ASMS_RELATION_CLASS] 4, 13
EXEC [MD_ASMS_RELATION_CLASS] 4, 21
EXEC [MD_ASMS_RELATION_CLASS] 4, 50
EXEC [MD_ASMS_RELATION_CLASS] 4, 75
EXEC [MD_ASMS_RELATION_CLASS] 5, 5
EXEC [MD_ASMS_RELATION_CLASS] 5, 72
EXEC [MD_ASMS_RELATION_CLASS] 6, 2
EXEC [MD_ASMS_RELATION_CLASS] 6, 6
EXEC [MD_ASMS_RELATION_CLASS] 6, 13
EXEC [MD_ASMS_RELATION_CLASS] 7, 1
EXEC [MD_ASMS_RELATION_CLASS] 7, 2
EXEC [MD_ASMS_RELATION_CLASS] 7, 7
EXEC [MD_ASMS_RELATION_CLASS] 7, 13
EXEC [MD_ASMS_RELATION_CLASS] 7, 75
EXEC [MD_ASMS_RELATION_CLASS] 13, 1
EXEC [MD_ASMS_RELATION_CLASS] 13, 2
EXEC [MD_ASMS_RELATION_CLASS] 13, 3
EXEC [MD_ASMS_RELATION_CLASS] 13, 6
EXEC [MD_ASMS_RELATION_CLASS] 13, 7
EXEC [MD_ASMS_RELATION_CLASS] 13, 13
EXEC [MD_ASMS_RELATION_CLASS] 13, 21
EXEC [MD_ASMS_RELATION_CLASS] 13, 48
EXEC [MD_ASMS_RELATION_CLASS] 13, 75
EXEC [MD_ASMS_RELATION_CLASS] 21, 1
EXEC [MD_ASMS_RELATION_CLASS] 21, 2
EXEC [MD_ASMS_RELATION_CLASS] 21, 7
EXEC [MD_ASMS_RELATION_CLASS] 21, 13
EXEC [MD_ASMS_RELATION_CLASS] 21, 21
EXEC [MD_ASMS_RELATION_CLASS] 21, 48
EXEC [MD_ASMS_RELATION_CLASS] 21, 75
EXEC [MD_ASMS_RELATION_CLASS] 48, 13
EXEC [MD_ASMS_RELATION_CLASS] 48, 48
EXEC [MD_ASMS_RELATION_CLASS] 50, 1
EXEC [MD_ASMS_RELATION_CLASS] 50, 2
EXEC [MD_ASMS_RELATION_CLASS] 50, 3
EXEC [MD_ASMS_RELATION_CLASS] 50, 21
EXEC [MD_ASMS_RELATION_CLASS] 50, 50
EXEC [MD_ASMS_RELATION_CLASS] 75, 1
EXEC [MD_ASMS_RELATION_CLASS] 75, 2
EXEC [MD_ASMS_RELATION_CLASS] 75, 6
EXEC [MD_ASMS_RELATION_CLASS] 75, 13
EXEC [MD_ASMS_RELATION_CLASS] 75, 50
EXEC [MD_ASMS_RELATION_CLASS] 75, 75
GO

PRINT 'MD_ASMS_RELATION_CLASS DONE!!'
GO

EXEC [MD_ASMS_RELATION_TYPE] 1, N'RelatedTo1', N'RelatedWith1', 1, 1, 1, 6
EXEC [MD_ASMS_RELATION_TYPE] 2, N'RelatedTo1', N'RelatedWith1', 1, 2, 1, 6
EXEC [MD_ASMS_RELATION_TYPE] 3, N'RelatedTo1', N'RelatedWith1', 1, 3, 1, 6
EXEC [MD_ASMS_RELATION_TYPE] 4, N'RelatedTo1', N'RelatedWith1', 1, 4, 1, 6
EXEC [MD_ASMS_RELATION_TYPE] 5, N'Caused1', N'Causes1', 1, 1, 1, 1
EXEC [MD_ASMS_RELATION_TYPE] 6, N'Caused1', N'Causes1', 1, 2, 1, 1
EXEC [MD_ASMS_RELATION_TYPE] 7, N'Caused1', N'Causes1', 1, 4, 1, 1
EXEC [MD_ASMS_RELATION_TYPE] 8, N'Solved1', N'Solves1', 1, 1, 1, 5
EXEC [MD_ASMS_RELATION_TYPE] 32, N'Produces1', N'ProducedBy1', 1, 7, 1, 1
EXEC [MD_ASMS_RELATION_TYPE] 33, N'Produces1', N'ProducedBy1', 2, 7, 1, 1
EXEC [MD_ASMS_RELATION_TYPE] 34, N'Produces1', N'ProducedBy1', 3, 7, 1, 1
EXEC [MD_ASMS_RELATION_TYPE] 35, N'Produces1', N'ProducedBy1', 4, 7, 1, 1
EXEC [MD_ASMS_RELATION_TYPE] 36, N'Solved1', N'Solves1', 1, 7, 1, 2
EXEC [MD_ASMS_RELATION_TYPE] 37, N'Solved1', N'Solves1', 2, 7, 1, 2
EXEC [MD_ASMS_RELATION_TYPE] 38, N'Solved1', N'Solves1', 3, 7, 1, 2
EXEC [MD_ASMS_RELATION_TYPE] 39, N'Solved1', N'Solves1', 4, 7, 1, 2
EXEC [MD_ASMS_RELATION_TYPE] 40, N'RelatedTo1', N'RelatedWith1', 1, 21, 1, 6
EXEC [MD_ASMS_RELATION_TYPE] 46, N'Receives1', N'MadeTo1', 21, 75, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 51, N'RelatedWith1', N'RelatedTo1', 7, 7, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 53, N'GeneratedBy1', N'Generates1', 7, 7, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 55, N'Generates1', N'GeneratedBy1', 1, 75, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 56, N'Generates1', N'GeneratedBy1', 3, 75, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 60, N'RelatedWith1', N'RelatedTo1', 75, 75, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 65, N'Caused1', N'Causes1', 1, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 66, N'RelatedWith1', N'RelatedTo1', 50, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 69, N'ContentIn1', N'Contains1', 21, 48, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 70, N'RelatedWith1', N'RelatedTo1', 48, 48, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 73, N'Automatic', N'Automatic', 1, 6, 1, 3
EXEC [MD_ASMS_RELATION_TYPE] 74, N'Automatic', N'Automatic', 75, 6, 1, 3
EXEC [MD_ASMS_RELATION_TYPE] 78, N'Predecessor', N'Successor', 6, 6, 1, 4
EXEC [MD_ASMS_RELATION_TYPE] 80, N'Automatic', N'Automatic', 3, 6, 1, 3
EXEC [MD_ASMS_RELATION_TYPE] 81, N'RelatedTo1', N'RelatedWith1', 3, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 84, N'RelatedWith1', N'RelatedTo1', 50, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 86, N'Automatic', N'Automatic', 4, 6, 1, 3
EXEC [MD_ASMS_RELATION_TYPE] 89, N'Generates1', N'GeneratedFrom1', 1, 2, 1, 5
EXEC [MD_ASMS_RELATION_TYPE] 92, N'RelatedTo1', N'RelatedWith1', 2, 2, 1, 6
EXEC [MD_ASMS_RELATION_TYPE] 93, N'Generates1', N'Caused1', 2, 2, 1, 1
EXEC [MD_ASMS_RELATION_TYPE] 94, N'Generates1', N'GeneratedFrom1', 1, 3, 1, 6
EXEC [MD_ASMS_RELATION_TYPE] 95, N'Generates1', N'GeneratedFrom1', 1, 4, 1, 1
EXEC [MD_ASMS_RELATION_TYPE] 96, N'GeneratedBy1', N'Generates1', 1, 13, 1, 1
EXEC [MD_ASMS_RELATION_TYPE] 97, N'GeneratedFrom1', N'Generates1', 1, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 98, N'RelatedWith1', N'RelatedTo1', 1, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 99, N'Produces1', N'OriginatedBy1', 2, 3, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 100, N'Relacionado con', N'RelatedTo1', 2, 3, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 101, N'RelatedTo1', N'RelatedTo1', 2, 4, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 103, N'GeneratedBy1', N'Generates1', 2, 13, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 104, N'Automatic', N'Automatic', 2, 6, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 105, N'Generates1', N'GeneratedBy1', 2, 75, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 106, N'RelatedTo1', N'RelatedWith1', 2, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 107, N'Caused1', N'Causes1', 2, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 108, N'GeneratedFrom1', N'Generates1', 2, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 109, N'RelatedWith1', N'RelatedTo1', 2, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 110, N'Generates1', N'GeneratedFrom1', 3, 3, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 111, N'RelatedWith1', N'RelatedTo1', 3, 3, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 112, N'Causes1', N'Caused1', 3, 4, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 113, N'RelatedWith1', N'RelatedTo1', 3, 4, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 114, N'ContentIn1', N'Contains1', 3, 13, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 115, N'RelatedWith1', N'RelatedTo1', 3, 13, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 116, N'Modifies1', N'ModifiedBy1', 3, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 117, N'GeneratedFrom1', N'Generates1', 3, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 118, N'RelatedWith1', N'RelatedTo1', 3, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 119, N'RelatedWith1', N'RelatedTo1', 4, 4, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 120, N'Generates1', N'GeneratedFrom1', 4, 4, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 121, N'RelatedWith1', N'RelatedTo1', 4, 13, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 122, N'GeneratedBy1', N'Generates1', 4, 13, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 123, N'Generates1', N'GeneratedBy1', 4, 75, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 124, N'RelatedTo1', N'RelatedWith1', 4, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 125, N'Modifies1', N'ModifiedBy1', 4, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 126, N'GeneratedFrom1', N'Generates1', 4, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 127, N'RelatedWith1', N'RelatedTo1', 4, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 128, N'RelatedWith1', N'RelatedTo1', 13, 13, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 129, N'Automatic', N'Automatic', 13, 6, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 130, N'RelatedWith1', N'RelatedTo1', 13, 75, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 131, N'RelatedTo1', N'RelatedWith1', 13, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 133, N'Modifies1', N'ModifiedBy1', 13, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 134, N'Contains1', N'ContentIn1', 13, 48, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 135, N'GeneratedFrom1', N'Generates1', 75, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 136, N'RelatedWith1', N'RelatedTo1', 75, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 137, N'RelatedTo1', N'RelatedWith1', 7, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 138, N'DocumentedBy1', N'Documents1', 13, 7, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 139, N'DocumentedBy1', N'Documents1', 21, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 140, N'CorrelatedWith1', N'CorrelatedTo1', 50, 50, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 141, N'RunsOn', N'Runs', 21, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 142, N'Groups', N'GroupedIn', 21, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 143, N'BelongsTo', N'Includes', 21, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 144, N'ConnectedTo', N'ConnectedTo', 21, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 145, N'Uses', N'InstalledIn', 21, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 146, N'UsedBy', N'Uses', 21, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 147, N'ResponsibilityFor', N'ResponsibleFor', 21, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 148, N'Contains', N'ContainedIn', 21, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 149, N'Virtualizes', N'VirtualizedBy', 21, 21, 1, NULL
EXEC [MD_ASMS_RELATION_TYPE] 150, N'Runs', N'RunsOn', 21, 21, 1, NULL
GO


PRINT 'MD_ASMS_RELATION_TYPE DONE!!'
GO

EXEC [MD_ASMS_MODEL] 1, 'Application', 'Application', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 2, 'Cluster', 'Cluster', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 3, 'Domain', 'Domain', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 4, 'Personal computer', 'Personal computer', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 5, 'AD Users group', 'AD Users group', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 6, 'Virtualization host', 'Virtualization host', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 7, 'Printer', 'Printer', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 8, 'Monitor', 'Monitor', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 9, 'Router', 'Router', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 10, 'Server', 'Server', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 11, 'Operating system', 'Operating system', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 12, 'Switch', 'Switch', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 13, 'Tablet', 'Tablet', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 14, 'Mobile phone', 'Mobile phone', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 15, 'Organizational unit', 'Organizational unit', 21, NULL, 1, 1, NULL, NULL, NULL, 1
EXEC [MD_ASMS_MODEL] 16, 'User', 'User', 21, NULL, 1, 1, NULL, NULL, NULL, 1
GO

PRINT 'MD_ASMS_MODEL DONE!!'
GO
EXEC [MD_ASMS_CATEGORY_RELATION] 141, 1, 4, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 141, 1, 10, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 141, 1, 14, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 141, 1, 13, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 142, 2, 6, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 142, 2, 10, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 143, 4, 3, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 143, 10, 3, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 143, 16, 15, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 143, 16, 5, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 144, 4, 8, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 145, 4, 11, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 145, 10, 11, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 145, 13, 11, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 145, 14, 11, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 146, 4, 16, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 146, 10, 16, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 147, 4, 16, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 147, 10, 16, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 147, 13, 16, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 147, 14, 16, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 148, 3, 5, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 148, 3, 15, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 149, 6, 10, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 150, 13, 1, 1
EXEC [MD_ASMS_CATEGORY_RELATION] 150, 14, 1, 1
GO


PRINT 'MD_ASMS_CATEGORY_RELATION DONE!!'
GO




EXEC [MD_ASMS_STATUS] 0, NULL, N'Inactive', N'Inactive', N'204.204.204', NULL, NULL, 1, NULL, 1, 1
EXEC [MD_ASMS_STATUS] 1, NULL, N'Active', N'Active', N'245.132.111', NULL, NULL, 1, NULL, 1, 1
EXEC [MD_ASMS_STATUS] 2, 21, N'Active', N'Active', N'0.0.0', NULL, 1, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 3, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 1, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 4, 21, N'Active', N'Active', N'0.0.0', NULL, 2, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 5, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 2, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 6, 21, N'Active', N'Active', N'0.0.0', NULL, 3, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 7, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 3, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 8, 21, N'Active', N'Active', N'0.0.0', NULL, 4, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 9, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 4, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 10, 21, N'Active', N'Active', N'0.0.0', NULL, 5, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 11, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 5, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 12, 21, N'Active', N'Active', N'0.0.0', NULL, 6, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 13, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 6, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 14, 21, N'Active', N'Active', N'0.0.0', NULL, 7, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 15, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 7, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 16, 21, N'Active', N'Active', N'0.0.0', NULL, 8, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 17, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 8, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 18, 21, N'Active', N'Active', N'0.0.0', NULL, 9, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 19, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 9, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 20, 21, N'Active', N'Active', N'0.0.0', NULL, 10, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 21, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 10, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 22, 21, N'Active', N'Active', N'0.0.0', NULL, 11, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 23, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 11, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 24, 21, N'Active', N'Active', N'0.0.0', NULL, 12, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 25, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 12, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 26, 21, N'Active', N'Active', N'0.0.0', NULL, 13, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 27, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 13, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 28, 21, N'Active', N'Active', N'0.0.0', NULL, 14, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 29, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 14, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 30, 21, N'Active', N'Active', N'0.0.0', NULL, 15, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 31, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 15, 0, NULL, 1, 0
EXEC [MD_ASMS_STATUS] 32, 21, N'Active', N'Active', N'0.0.0', NULL, 16, 0, NULL, 0, 1
EXEC [MD_ASMS_STATUS] 33, 21, N'Inactive', N'Inactive', N'0.0.0', NULL, 16, 0, NULL, 1, 0


GO

PRINT 'MD_ASMS_STATUS DONE!!'
GO

EXEC [MD_ASMS_STATUS_STAGE] 1, N'Annulled', 1
EXEC [MD_ASMS_STATUS_STAGE] 1, N'Solved', 0
EXEC [MD_ASMS_STATUS_STAGE] 1, N'InProgress', 0
EXEC [MD_ASMS_STATUS_STAGE] 1, N'OnHold', 0
EXEC [MD_ASMS_STATUS_STAGE] 1, N'Scheduled', 0
EXEC [MD_ASMS_STATUS_STAGE] 4, N'Annulled', 1
EXEC [MD_ASMS_STATUS_STAGE] 4, N'Solved', 0
EXEC [MD_ASMS_STATUS_STAGE] 4, N'InProgress', 0
EXEC [MD_ASMS_STATUS_STAGE] 4, N'OnHold', 0
EXEC [MD_ASMS_STATUS_STAGE] 4, N'Scheduled', 0
EXEC [MD_ASMS_STATUS_STAGE] 2, N'Solved', 0
EXEC [MD_ASMS_STATUS_STAGE] 2, N'Assess', 0
EXEC [MD_ASMS_STATUS_STAGE] 2, N'RootCauseAnalysis', 0
EXEC [MD_ASMS_STATUS_STAGE] 2, N'InProgress', 0
EXEC [MD_ASMS_STATUS_STAGE] 2, N'Scheduled', 0
EXEC [MD_ASMS_STATUS_STAGE] 3, N'Annulled', 1
EXEC [MD_ASMS_STATUS_STAGE] 3, N'Assess', 0
EXEC [MD_ASMS_STATUS_STAGE] 3, N'Approved', 0
EXEC [MD_ASMS_STATUS_STAGE] 3, N'InScheduled', 0
EXEC [MD_ASMS_STATUS_STAGE] 3, N'InBuilding', 0
EXEC [MD_ASMS_STATUS_STAGE] 3, N'Review', 0
EXEC [MD_ASMS_STATUS_STAGE] 3, N'Scheduled', 0
EXEC [MD_ASMS_STATUS_STAGE] 13, N'Approved', 0
EXEC [MD_ASMS_STATUS_STAGE] 13, N'Planning', 0
EXEC [MD_ASMS_STATUS_STAGE] 13, N'IncompleteClosed', 1
EXEC [MD_ASMS_STATUS_STAGE] 13, N'Scheduled', 0
EXEC [MD_ASMS_STATUS_STAGE] 2, N'Annulled', 1
EXEC [MD_ASMS_STATUS_STAGE] 21, N'Output Order', 1

EXEC [MD_ASMS_STATUS_STAGE] 1, N'ClosedByDefault', 1
EXEC [MD_ASMS_STATUS_STAGE] 2, N'ClosedByDefault', 1
EXEC [MD_ASMS_STATUS_STAGE] 3, N'ClosedByDefault', 1
EXEC [MD_ASMS_STATUS_STAGE] 4, N'ClosedByDefault', 1
EXEC [MD_ASMS_STATUS_STAGE] 13, N'ClosedByDefault', 1

GO

PRINT 'MD_ASMS_STATUS_STAGE DONE!!'
GO

EXEC [MD_ASMS_TIMES_BUILTIN] 1, N'Attention', 1, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 2, N'Solution', 1, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 3, N'Attention', 2, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 4, N'Solution', 2, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 5, N'RFC', 3, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 6, N'CAB', 3, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 7, N'Review', 3, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 8, N'Attention', 4, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 9, N'Solution', 4, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 11, N'Attention', 13, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 12, N'Solution', 13, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 13, N'Attention', 75, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 14, N'Solution', 75, 14
EXEC [MD_ASMS_TIMES_BUILTIN] 15, N'Attention', 6, 14, 1
GO

PRINT 'MD_ASMS_TIMES_BUILTIN DONE!!'
GO

EXEC [MD_ASMS_MAP_PROVIDERS] N'StandardPackage', NULL, NULL, NULL, 0
EXEC [MD_ASMS_MAP_PROVIDERS] N'GoogleMapsBasic', NULL, NULL, NULL, 0
EXEC [MD_ASMS_MAP_PROVIDERS] N'GoogleMapsPremium', NULL, NULL, NULL, 0
EXEC [MD_ASMS_MAP_PROVIDERS] N'OpenSource', NULL, NULL, NULL, 1
GO

PRINT 'MD_ASMS_MAP_PROVIDERS DONE!!'
GO
EXEC [MD_ASMS_LAST_EXECUTE_TASK] 13019

GO
EXEC [MD_ASMS_STATUS_TRANSITION] 1, 2, 3, 21, NULL, 1
EXEC [MD_ASMS_STATUS_TRANSITION] 2, 4, 5, 21, NULL, 2
EXEC [MD_ASMS_STATUS_TRANSITION] 3, 6, 7, 21, NULL, 3
EXEC [MD_ASMS_STATUS_TRANSITION] 4, 8, 9, 21, NULL, 4
EXEC [MD_ASMS_STATUS_TRANSITION] 5, 10, 11, 21, NULL, 5
EXEC [MD_ASMS_STATUS_TRANSITION] 6, 12, 13, 21, NULL, 6
EXEC [MD_ASMS_STATUS_TRANSITION] 7, 14, 15, 21, NULL, 7
EXEC [MD_ASMS_STATUS_TRANSITION] 8, 16, 17, 21, NULL, 8
EXEC [MD_ASMS_STATUS_TRANSITION] 9, 18, 19, 21, NULL, 9
EXEC [MD_ASMS_STATUS_TRANSITION] 10, 20, 21, 21, NULL, 10
EXEC [MD_ASMS_STATUS_TRANSITION] 11, 22, 23, 21, NULL, 11
EXEC [MD_ASMS_STATUS_TRANSITION] 12, 24, 25, 21, NULL, 12
EXEC [MD_ASMS_STATUS_TRANSITION] 13, 26, 27, 21, NULL, 13
EXEC [MD_ASMS_STATUS_TRANSITION] 14, 28, 29, 21, NULL, 14
EXEC [MD_ASMS_STATUS_TRANSITION] 15, 30, 31, 21, NULL, 15
EXEC [MD_ASMS_STATUS_TRANSITION] 16, 32, 33, 21, NULL, 16
DECLARE @name VARCHAR(50);
DECLARE @caption VARCHAR(50);
DECLARE @description VARCHAR(250);
DECLARE @field_type_id INT;
DECLARE @id INT;
DECLARE @catalog_id INT;

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 28;

EXEC [MD_ASMS_FIELDS] 1, @name, @caption, @description, @field_type_id, 1, 1, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 2, @name, @caption, @description, @field_type_id, 1, 2, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 3, @name, @caption, @description, @field_type_id, 1, 3, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 4, @name, @caption, @description, @field_type_id, 1, 4, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 5, @name, @caption, @description, @field_type_id, 1, 5, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 6, @name, @caption, @description, @field_type_id, 1, 6, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 7, @name, @caption, @description, @field_type_id, 1, 7, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 8, @name, @caption, @description, @field_type_id, 1, 8, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 9, @name, @caption, @description, @field_type_id, 1, 9, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 10, @name, @caption, @description, @field_type_id, 1, 10, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 11, @name, @caption, @description, @field_type_id, 1, 11, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 12, @name, @caption, @description, @field_type_id, 1, 12, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 13, @name, @caption, @description, @field_type_id, 1, 13, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 14, @name, @caption, @description, @field_type_id, 1, 14, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 15, @name, @caption, @description, @field_type_id, 1, 15, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 16, @name, @caption, @description, @field_type_id, 1, 16, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 29;

EXEC [MD_ASMS_FIELDS] 17, @name, @caption, @description, @field_type_id, 2, 1, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 18, @name, @caption, @description, @field_type_id, 2, 2, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 19, @name, @caption, @description, @field_type_id, 2, 3, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 20, @name, @caption, @description, @field_type_id, 2, 4, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 21, @name, @caption, @description, @field_type_id, 2, 5, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 22, @name, @caption, @description, @field_type_id, 2, 6, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 23, @name, @caption, @description, @field_type_id, 2, 7, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 24, @name, @caption, @description, @field_type_id, 2, 8, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 25, @name, @caption, @description, @field_type_id, 2, 9, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 26, @name, @caption, @description, @field_type_id, 2, 10, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 27, @name, @caption, @description, @field_type_id, 2, 11, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 28, @name, @caption, @description, @field_type_id, 2, 12, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 29, @name, @caption, @description, @field_type_id, 2, 13, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 30, @name, @caption, @description, @field_type_id, 2, 14, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 31, @name, @caption, @description, @field_type_id, 2, 15, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 32, @name, @caption, @description, @field_type_id, 2, 16, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 30;

EXEC [MD_ASMS_FIELDS] 33, @name, @caption, @description, @field_type_id, 3, 1, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 34, @name, @caption, @description, @field_type_id, 3, 2, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 35, @name, @caption, @description, @field_type_id, 3, 3, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 36, @name, @caption, @description, @field_type_id, 3, 4, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 37, @name, @caption, @description, @field_type_id, 3, 5, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 38, @name, @caption, @description, @field_type_id, 3, 6, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 39, @name, @caption, @description, @field_type_id, 3, 7, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 40, @name, @caption, @description, @field_type_id, 3, 8, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 41, @name, @caption, @description, @field_type_id, 3, 9, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 42, @name, @caption, @description, @field_type_id, 3, 10, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 43, @name, @caption, @description, @field_type_id, 3, 11, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 44, @name, @caption, @description, @field_type_id, 3, 12, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 45, @name, @caption, @description, @field_type_id, 3, 13, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 46, @name, @caption, @description, @field_type_id, 3, 14, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 47, @name, @caption, @description, @field_type_id, 3, 15, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 48, @name, @caption, @description, @field_type_id, 3, 16, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 31;

EXEC [MD_ASMS_FIELDS] 49, @name, @caption, @description, @field_type_id, 4, 1, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 50, @name, @caption, @description, @field_type_id, 4, 2, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 51, @name, @caption, @description, @field_type_id, 4, 3, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 52, @name, @caption, @description, @field_type_id, 4, 4, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 53, @name, @caption, @description, @field_type_id, 4, 5, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 54, @name, @caption, @description, @field_type_id, 4, 6, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 55, @name, @caption, @description, @field_type_id, 4, 7, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 56, @name, @caption, @description, @field_type_id, 4, 8, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 57, @name, @caption, @description, @field_type_id, 4, 9, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 58, @name, @caption, @description, @field_type_id, 4, 10, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 59, @name, @caption, @description, @field_type_id, 4, 11, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 60, @name, @caption, @description, @field_type_id, 4, 12, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 61, @name, @caption, @description, @field_type_id, 4, 13, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 62, @name, @caption, @description, @field_type_id, 4, 14, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 63, @name, @caption, @description, @field_type_id, 4, 15, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 64, @name, @caption, @description, @field_type_id, 4, 16, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 32;

EXEC [MD_ASMS_FIELDS] 65, @name, @caption, @description, @field_type_id, 5, 1, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 66, @name, @caption, @description, @field_type_id, 5, 2, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 67, @name, @caption, @description, @field_type_id, 5, 3, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 68, @name, @caption, @description, @field_type_id, 5, 4, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 69, @name, @caption, @description, @field_type_id, 5, 5, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 70, @name, @caption, @description, @field_type_id, 5, 6, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 71, @name, @caption, @description, @field_type_id, 5, 7, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 72, @name, @caption, @description, @field_type_id, 5, 8, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 73, @name, @caption, @description, @field_type_id, 5, 9, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 74, @name, @caption, @description, @field_type_id, 5, 10, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 75, @name, @caption, @description, @field_type_id, 5, 11, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 76, @name, @caption, @description, @field_type_id, 5, 12, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 77, @name, @caption, @description, @field_type_id, 5, 13, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 78, @name, @caption, @description, @field_type_id, 5, 14, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 79, @name, @caption, @description, @field_type_id, 5, 15, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 80, @name, @caption, @description, @field_type_id, 5, 16, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 33;

EXEC [MD_ASMS_FIELDS] 81, @name, @caption, @description, @field_type_id, 6, 1, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 82, @name, @caption, @description, @field_type_id, 6, 2, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 83, @name, @caption, @description, @field_type_id, 6, 3, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 84, @name, @caption, @description, @field_type_id, 6, 4, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 85, @name, @caption, @description, @field_type_id, 6, 5, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 86, @name, @caption, @description, @field_type_id, 6, 6, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 87, @name, @caption, @description, @field_type_id, 6, 7, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 88, @name, @caption, @description, @field_type_id, 6, 8, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 89, @name, @caption, @description, @field_type_id, 6, 9, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 90, @name, @caption, @description, @field_type_id, 6, 10, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 91, @name, @caption, @description, @field_type_id, 6, 11, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 92, @name, @caption, @description, @field_type_id, 6, 12, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 93, @name, @caption, @description, @field_type_id, 6, 13, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 94, @name, @caption, @description, @field_type_id, 6, 14, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 95, @name, @caption, @description, @field_type_id, 6, 15, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 96, @name, @caption, @description, @field_type_id, 6, 16, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 34;

EXEC [MD_ASMS_FIELDS] 97, @name, @caption, @description, @field_type_id, 7, 1, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 98, @name, @caption, @description, @field_type_id, 7, 2, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 99, @name, @caption, @description, @field_type_id, 7, 3, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 100, @name, @caption, @description, @field_type_id, 7, 4, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 101, @name, @caption, @description, @field_type_id, 7, 5, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 102, @name, @caption, @description, @field_type_id, 7, 6, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 103, @name, @caption, @description, @field_type_id, 7, 7, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 104, @name, @caption, @description, @field_type_id, 7, 8, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 105, @name, @caption, @description, @field_type_id, 7, 9, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 106, @name, @caption, @description, @field_type_id, 7, 10, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 107, @name, @caption, @description, @field_type_id, 7, 11, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 108, @name, @caption, @description, @field_type_id, 7, 12, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 109, @name, @caption, @description, @field_type_id, 7, 13, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 110, @name, @caption, @description, @field_type_id, 7, 14, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 111, @name, @caption, @description, @field_type_id, 7, 15, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 112, @name, @caption, @description, @field_type_id, 7, 16, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 35;

EXEC [MD_ASMS_FIELDS] 113, @name, @caption, @description, @field_type_id, 8, 1, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 114, @name, @caption, @description, @field_type_id, 8, 2, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 115, @name, @caption, @description, @field_type_id, 8, 3, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 116, @name, @caption, @description, @field_type_id, 8, 4, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 117, @name, @caption, @description, @field_type_id, 8, 5, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 118, @name, @caption, @description, @field_type_id, 8, 6, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 119, @name, @caption, @description, @field_type_id, 8, 7, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 120, @name, @caption, @description, @field_type_id, 8, 8, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 121, @name, @caption, @description, @field_type_id, 8, 9, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 122, @name, @caption, @description, @field_type_id, 8, 10, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 123, @name, @caption, @description, @field_type_id, 8, 11, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 124, @name, @caption, @description, @field_type_id, 8, 12, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 125, @name, @caption, @description, @field_type_id, 8, 13, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 126, @name, @caption, @description, @field_type_id, 8, 14, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 127, @name, @caption, @description, @field_type_id, 8, 15, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 128, @name, @caption, @description, @field_type_id, 8, 16, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 36;

EXEC [MD_ASMS_FIELDS] 129, @name, @caption, @description, @field_type_id, 9, 1, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 130, @name, @caption, @description, @field_type_id, 9, 2, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 131, @name, @caption, @description, @field_type_id, 9, 3, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 132, @name, @caption, @description, @field_type_id, 9, 4, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 133, @name, @caption, @description, @field_type_id, 9, 5, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 134, @name, @caption, @description, @field_type_id, 9, 6, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 135, @name, @caption, @description, @field_type_id, 9, 7, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 136, @name, @caption, @description, @field_type_id, 9, 8, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 137, @name, @caption, @description, @field_type_id, 9, 9, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 138, @name, @caption, @description, @field_type_id, 9, 10, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 139, @name, @caption, @description, @field_type_id, 9, 11, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 140, @name, @caption, @description, @field_type_id, 9, 12, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 141, @name, @caption, @description, @field_type_id, 9, 13, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 142, @name, @caption, @description, @field_type_id, 9, 14, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 143, @name, @caption, @description, @field_type_id, 9, 15, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0
EXEC [MD_ASMS_FIELDS] 144, @name, @caption, @description, @field_type_id, 9, 16, 21, NULL, @id, @catalog_id, NULL, 0, 4000, 0

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 37;

EXEC [MD_ASMS_FIELDS] 145, @name, @caption, @description, @field_type_id, 10, 1, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 146, @name, @caption, @description, @field_type_id, 10, 2, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 147, @name, @caption, @description, @field_type_id, 10, 3, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 148, @name, @caption, @description, @field_type_id, 10, 4, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 149, @name, @caption, @description, @field_type_id, 10, 5, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 150, @name, @caption, @description, @field_type_id, 10, 6, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 151, @name, @caption, @description, @field_type_id, 10, 7, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 152, @name, @caption, @description, @field_type_id, 10, 8, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 153, @name, @caption, @description, @field_type_id, 10, 9, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 154, @name, @caption, @description, @field_type_id, 10, 10, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 155, @name, @caption, @description, @field_type_id, 10, 11, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 156, @name, @caption, @description, @field_type_id, 10, 12, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 157, @name, @caption, @description, @field_type_id, 10, 13, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 158, @name, @caption, @description, @field_type_id, 10, 14, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 159, @name, @caption, @description, @field_type_id, 10, 15, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0
EXEC [MD_ASMS_FIELDS] 160, @name, @caption, @description, @field_type_id, 10, 16, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0

SELECT
	@name = name,
	@caption = caption,
	@description = description,
	@field_type_id = field_type_id,
	@id = id,
	@catalog_id = catalog_id
FROM ASMS_FIELDS_BUILTIN
WHERE id = 38;

EXEC [MD_ASMS_FIELDS] 161, @name, @caption, @description, @field_type_id, 11, 4, 21, NULL, @id, @catalog_id, NULL, 0, NULL, 0

GO

PRINT 'MD_ASMS_FIELDS DONE!!'
GO

EXEC [MD_ASMS_FIELDS_STATUS] 1, 2, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 1, 2, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 1, 2, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 1, 2, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 1, 3, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 1, 3, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 1, 3, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 1, 3, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 2, 4, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 2, 4, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 2, 4, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 2, 4, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 2, 5, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 2, 5, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 2, 5, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 2, 5, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 3, 6, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 3, 6, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 3, 6, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 3, 6, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 3, 7, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 3, 7, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 3, 7, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 3, 7, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 4, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 4, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 4, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 4, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 4, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 4, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 4, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 4, 9, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 5, 10, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 5, 10, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 5, 10, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 5, 10, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 5, 11, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 5, 11, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 5, 11, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 5, 11, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 6, 12, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 6, 12, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 6, 12, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 6, 12, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 6, 13, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 6, 13, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 6, 13, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 6, 13, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 7, 14, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 7, 14, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 7, 14, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 7, 14, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 7, 15, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 7, 15, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 7, 15, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 7, 15, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 8, 16, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 8, 16, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 8, 16, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 8, 16, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 8, 17, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 8, 17, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 8, 17, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 8, 17, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 9, 18, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 9, 18, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 9, 18, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 9, 18, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 9, 19, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 9, 19, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 9, 19, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 9, 19, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 10, 20, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 10, 20, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 10, 20, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 10, 20, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 10, 21, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 10, 21, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 10, 21, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 10, 21, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 11, 22, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 11, 22, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 11, 22, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 11, 22, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 11, 23, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 11, 23, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 11, 23, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 11, 23, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 12, 24, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 12, 24, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 12, 24, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 12, 24, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 12, 25, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 12, 25, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 12, 25, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 12, 25, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 13, 26, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 13, 26, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 13, 26, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 13, 26, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 13, 27, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 13, 27, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 13, 27, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 13, 27, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 14, 28, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 14, 28, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 14, 28, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 14, 28, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 14, 29, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 14, 29, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 14, 29, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 14, 29, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 15, 30, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 15, 30, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 15, 30, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 15, 30, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 15, 31, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 15, 31, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 15, 31, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 15, 31, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 16, 32, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 16, 32, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 16, 32, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 16, 32, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 16, 33, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 16, 33, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 16, 33, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 16, 33, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 17, 2, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 17, 2, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 17, 2, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 17, 2, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 17, 3, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 17, 3, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 17, 3, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 17, 3, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 18, 4, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 18, 4, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 18, 4, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 18, 4, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 18, 5, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 18, 5, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 18, 5, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 18, 5, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 19, 6, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 19, 6, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 19, 6, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 19, 6, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 19, 7, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 19, 7, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 19, 7, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 19, 7, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 20, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 20, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 20, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 20, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 20, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 20, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 20, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 20, 9, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 21, 10, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 21, 10, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 21, 10, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 21, 10, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 21, 11, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 21, 11, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 21, 11, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 21, 11, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 22, 12, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 22, 12, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 22, 12, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 22, 12, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 22, 13, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 22, 13, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 22, 13, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 22, 13, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 23, 14, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 23, 14, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 23, 14, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 23, 14, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 23, 15, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 23, 15, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 23, 15, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 23, 15, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 24, 16, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 24, 16, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 24, 16, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 24, 16, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 24, 17, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 24, 17, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 24, 17, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 24, 17, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 25, 18, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 25, 18, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 25, 18, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 25, 18, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 25, 19, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 25, 19, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 25, 19, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 25, 19, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 26, 20, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 26, 20, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 26, 20, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 26, 20, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 26, 21, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 26, 21, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 26, 21, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 26, 21, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 27, 22, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 27, 22, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 27, 22, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 27, 22, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 27, 23, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 27, 23, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 27, 23, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 27, 23, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 28, 24, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 28, 24, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 28, 24, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 28, 24, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 28, 25, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 28, 25, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 28, 25, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 28, 25, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 29, 26, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 29, 26, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 29, 26, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 29, 26, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 29, 27, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 29, 27, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 29, 27, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 29, 27, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 30, 28, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 30, 28, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 30, 28, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 30, 28, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 30, 29, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 30, 29, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 30, 29, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 30, 29, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 31, 30, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 31, 30, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 31, 30, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 31, 30, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 31, 31, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 31, 31, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 31, 31, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 31, 31, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 32, 32, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 32, 32, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 32, 32, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 32, 32, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 32, 33, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 32, 33, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 32, 33, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 32, 33, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 33, 2, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 33, 2, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 33, 2, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 33, 2, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 33, 3, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 33, 3, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 33, 3, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 33, 3, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 34, 4, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 34, 4, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 34, 4, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 34, 4, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 34, 5, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 34, 5, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 34, 5, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 34, 5, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 35, 6, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 35, 6, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 35, 6, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 35, 6, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 35, 7, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 35, 7, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 35, 7, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 35, 7, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 36, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 36, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 36, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 36, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 36, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 36, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 36, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 36, 9, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 37, 10, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 37, 10, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 37, 10, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 37, 10, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 37, 11, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 37, 11, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 37, 11, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 37, 11, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 38, 12, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 38, 12, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 38, 12, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 38, 12, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 38, 13, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 38, 13, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 38, 13, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 38, 13, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 39, 14, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 39, 14, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 39, 14, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 39, 14, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 39, 15, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 39, 15, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 39, 15, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 39, 15, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 40, 16, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 40, 16, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 40, 16, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 40, 16, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 40, 17, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 40, 17, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 40, 17, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 40, 17, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 41, 18, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 41, 18, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 41, 18, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 41, 18, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 41, 19, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 41, 19, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 41, 19, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 41, 19, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 42, 20, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 42, 20, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 42, 20, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 42, 20, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 42, 21, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 42, 21, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 42, 21, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 42, 21, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 43, 22, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 43, 22, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 43, 22, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 43, 22, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 43, 23, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 43, 23, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 43, 23, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 43, 23, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 44, 24, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 44, 24, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 44, 24, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 44, 24, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 44, 25, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 44, 25, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 44, 25, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 44, 25, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 45, 26, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 45, 26, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 45, 26, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 45, 26, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 45, 27, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 45, 27, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 45, 27, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 45, 27, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 46, 28, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 46, 28, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 46, 28, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 46, 28, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 46, 29, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 46, 29, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 46, 29, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 46, 29, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 47, 30, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 47, 30, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 47, 30, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 47, 30, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 47, 31, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 47, 31, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 47, 31, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 47, 31, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 48, 32, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 48, 32, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 48, 32, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 48, 32, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 48, 33, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 48, 33, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 48, 33, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 48, 33, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 49, 2, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 49, 2, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 49, 2, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 49, 2, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 49, 3, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 49, 3, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 49, 3, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 49, 3, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 50, 4, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 50, 4, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 50, 4, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 50, 4, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 50, 5, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 50, 5, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 50, 5, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 50, 5, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 51, 6, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 51, 6, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 51, 6, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 51, 6, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 51, 7, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 51, 7, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 51, 7, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 51, 7, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 52, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 52, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 52, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 52, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 52, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 52, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 52, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 52, 9, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 53, 10, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 53, 10, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 53, 10, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 53, 10, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 53, 11, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 53, 11, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 53, 11, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 53, 11, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 54, 12, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 54, 12, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 54, 12, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 54, 12, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 54, 13, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 54, 13, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 54, 13, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 54, 13, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 55, 14, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 55, 14, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 55, 14, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 55, 14, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 55, 15, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 55, 15, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 55, 15, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 55, 15, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 56, 16, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 56, 16, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 56, 16, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 56, 16, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 56, 17, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 56, 17, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 56, 17, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 56, 17, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 57, 18, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 57, 18, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 57, 18, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 57, 18, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 57, 19, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 57, 19, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 57, 19, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 57, 19, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 58, 20, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 58, 20, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 58, 20, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 58, 20, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 58, 21, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 58, 21, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 58, 21, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 58, 21, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 59, 22, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 59, 22, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 59, 22, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 59, 22, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 59, 23, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 59, 23, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 59, 23, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 59, 23, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 60, 24, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 60, 24, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 60, 24, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 60, 24, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 60, 25, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 60, 25, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 60, 25, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 60, 25, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 61, 26, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 61, 26, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 61, 26, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 61, 26, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 61, 27, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 61, 27, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 61, 27, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 61, 27, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 62, 28, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 62, 28, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 62, 28, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 62, 28, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 62, 29, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 62, 29, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 62, 29, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 62, 29, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 63, 30, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 63, 30, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 63, 30, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 63, 30, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 63, 31, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 63, 31, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 63, 31, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 63, 31, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 64, 32, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 64, 32, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 64, 32, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 64, 32, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 64, 33, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 64, 33, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 64, 33, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 64, 33, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 65, 2, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 65, 2, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 65, 2, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 65, 2, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 65, 3, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 65, 3, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 65, 3, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 65, 3, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 66, 4, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 66, 4, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 66, 4, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 66, 4, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 66, 5, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 66, 5, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 66, 5, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 66, 5, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 67, 6, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 67, 6, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 67, 6, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 67, 6, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 67, 7, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 67, 7, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 67, 7, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 67, 7, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 68, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 68, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 68, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 68, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 68, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 68, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 68, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 68, 9, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 69, 10, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 69, 10, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 69, 10, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 69, 10, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 69, 11, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 69, 11, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 69, 11, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 69, 11, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 70, 12, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 70, 12, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 70, 12, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 70, 12, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 70, 13, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 70, 13, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 70, 13, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 70, 13, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 71, 14, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 71, 14, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 71, 14, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 71, 14, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 71, 15, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 71, 15, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 71, 15, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 71, 15, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 72, 16, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 72, 16, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 72, 16, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 72, 16, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 72, 17, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 72, 17, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 72, 17, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 72, 17, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 73, 18, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 73, 18, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 73, 18, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 73, 18, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 73, 19, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 73, 19, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 73, 19, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 73, 19, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 74, 20, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 74, 20, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 74, 20, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 74, 20, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 74, 21, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 74, 21, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 74, 21, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 74, 21, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 75, 22, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 75, 22, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 75, 22, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 75, 22, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 75, 23, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 75, 23, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 75, 23, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 75, 23, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 76, 24, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 76, 24, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 76, 24, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 76, 24, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 76, 25, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 76, 25, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 76, 25, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 76, 25, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 77, 26, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 77, 26, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 77, 26, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 77, 26, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 77, 27, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 77, 27, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 77, 27, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 77, 27, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 78, 28, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 78, 28, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 78, 28, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 78, 28, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 78, 29, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 78, 29, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 78, 29, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 78, 29, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 79, 30, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 79, 30, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 79, 30, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 79, 30, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 79, 31, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 79, 31, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 79, 31, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 79, 31, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 80, 32, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 80, 32, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 80, 32, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 80, 32, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 80, 33, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 80, 33, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 80, 33, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 80, 33, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 81, 2, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 81, 2, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 81, 2, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 81, 2, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 81, 3, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 81, 3, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 81, 3, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 81, 3, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 82, 4, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 82, 4, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 82, 4, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 82, 4, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 82, 5, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 82, 5, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 82, 5, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 82, 5, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 83, 6, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 83, 6, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 83, 6, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 83, 6, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 83, 7, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 83, 7, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 83, 7, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 83, 7, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 84, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 84, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 84, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 84, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 84, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 84, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 84, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 84, 9, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 85, 10, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 85, 10, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 85, 10, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 85, 10, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 85, 11, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 85, 11, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 85, 11, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 85, 11, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 86, 12, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 86, 12, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 86, 12, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 86, 12, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 86, 13, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 86, 13, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 86, 13, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 86, 13, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 87, 14, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 87, 14, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 87, 14, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 87, 14, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 87, 15, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 87, 15, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 87, 15, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 87, 15, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 88, 16, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 88, 16, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 88, 16, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 88, 16, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 88, 17, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 88, 17, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 88, 17, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 88, 17, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 89, 18, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 89, 18, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 89, 18, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 89, 18, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 89, 19, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 89, 19, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 89, 19, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 89, 19, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 90, 20, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 90, 20, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 90, 20, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 90, 20, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 90, 21, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 90, 21, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 90, 21, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 90, 21, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 91, 22, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 91, 22, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 91, 22, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 91, 22, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 91, 23, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 91, 23, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 91, 23, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 91, 23, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 92, 24, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 92, 24, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 92, 24, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 92, 24, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 92, 25, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 92, 25, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 92, 25, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 92, 25, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 93, 26, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 93, 26, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 93, 26, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 93, 26, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 93, 27, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 93, 27, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 93, 27, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 93, 27, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 94, 28, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 94, 28, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 94, 28, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 94, 28, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 94, 29, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 94, 29, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 94, 29, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 94, 29, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 95, 30, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 95, 30, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 95, 30, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 95, 30, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 95, 31, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 95, 31, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 95, 31, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 95, 31, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 96, 32, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 96, 32, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 96, 32, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 96, 32, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 96, 33, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 96, 33, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 96, 33, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 96, 33, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 97, 2, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 97, 2, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 97, 2, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 97, 2, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 97, 3, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 97, 3, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 97, 3, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 97, 3, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 98, 4, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 98, 4, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 98, 4, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 98, 4, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 98, 5, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 98, 5, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 98, 5, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 98, 5, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 99, 6, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 99, 6, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 99, 6, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 99, 6, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 99, 7, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 99, 7, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 99, 7, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 99, 7, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 100, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 100, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 100, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 100, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 100, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 100, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 100, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 100, 9, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 101, 10, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 101, 10, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 101, 10, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 101, 10, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 101, 11, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 101, 11, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 101, 11, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 101, 11, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 102, 12, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 102, 12, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 102, 12, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 102, 12, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 102, 13, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 102, 13, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 102, 13, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 102, 13, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 103, 14, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 103, 14, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 103, 14, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 103, 14, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 103, 15, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 103, 15, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 103, 15, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 103, 15, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 104, 16, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 104, 16, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 104, 16, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 104, 16, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 104, 17, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 104, 17, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 104, 17, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 104, 17, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 105, 18, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 105, 18, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 105, 18, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 105, 18, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 105, 19, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 105, 19, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 105, 19, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 105, 19, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 106, 20, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 106, 20, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 106, 20, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 106, 20, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 106, 21, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 106, 21, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 106, 21, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 106, 21, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 107, 22, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 107, 22, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 107, 22, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 107, 22, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 107, 23, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 107, 23, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 107, 23, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 107, 23, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 108, 24, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 108, 24, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 108, 24, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 108, 24, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 108, 25, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 108, 25, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 108, 25, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 108, 25, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 109, 26, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 109, 26, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 109, 26, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 109, 26, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 109, 27, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 109, 27, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 109, 27, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 109, 27, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 110, 28, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 110, 28, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 110, 28, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 110, 28, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 110, 29, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 110, 29, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 110, 29, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 110, 29, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 111, 30, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 111, 30, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 111, 30, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 111, 30, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 111, 31, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 111, 31, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 111, 31, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 111, 31, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 112, 32, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 112, 32, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 112, 32, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 112, 32, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 112, 33, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 112, 33, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 112, 33, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 112, 33, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 113, 2, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 113, 2, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 113, 2, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 113, 2, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 113, 3, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 113, 3, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 113, 3, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 113, 3, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 114, 4, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 114, 4, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 114, 4, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 114, 4, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 114, 5, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 114, 5, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 114, 5, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 114, 5, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 115, 6, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 115, 6, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 115, 6, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 115, 6, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 115, 7, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 115, 7, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 115, 7, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 115, 7, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 116, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 116, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 116, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 116, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 116, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 116, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 116, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 116, 9, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 117, 10, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 117, 10, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 117, 10, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 117, 10, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 117, 11, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 117, 11, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 117, 11, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 117, 11, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 118, 12, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 118, 12, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 118, 12, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 118, 12, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 118, 13, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 118, 13, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 118, 13, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 118, 13, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 119, 14, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 119, 14, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 119, 14, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 119, 14, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 119, 15, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 119, 15, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 119, 15, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 119, 15, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 120, 16, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 120, 16, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 120, 16, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 120, 16, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 120, 17, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 120, 17, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 120, 17, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 120, 17, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 121, 18, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 121, 18, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 121, 18, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 121, 18, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 121, 19, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 121, 19, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 121, 19, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 121, 19, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 122, 20, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 122, 20, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 122, 20, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 122, 20, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 122, 21, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 122, 21, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 122, 21, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 122, 21, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 123, 22, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 123, 22, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 123, 22, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 123, 22, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 123, 23, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 123, 23, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 123, 23, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 123, 23, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 124, 24, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 124, 24, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 124, 24, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 124, 24, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 124, 25, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 124, 25, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 124, 25, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 124, 25, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 125, 26, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 125, 26, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 125, 26, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 125, 26, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 125, 27, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 125, 27, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 125, 27, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 125, 27, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 126, 28, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 126, 28, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 126, 28, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 126, 28, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 126, 29, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 126, 29, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 126, 29, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 126, 29, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 127, 30, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 127, 30, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 127, 30, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 127, 30, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 127, 31, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 127, 31, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 127, 31, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 127, 31, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 128, 32, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 128, 32, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 128, 32, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 128, 32, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 128, 33, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 128, 33, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 128, 33, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 128, 33, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 129, 2, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 129, 2, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 129, 2, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 129, 2, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 129, 3, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 129, 3, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 129, 3, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 129, 3, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 130, 4, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 130, 4, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 130, 4, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 130, 4, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 130, 5, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 130, 5, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 130, 5, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 130, 5, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 131, 6, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 131, 6, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 131, 6, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 131, 6, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 131, 7, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 131, 7, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 131, 7, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 131, 7, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 132, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 132, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 132, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 132, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 132, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 132, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 132, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 132, 9, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 133, 10, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 133, 10, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 133, 10, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 133, 10, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 133, 11, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 133, 11, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 133, 11, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 133, 11, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 134, 12, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 134, 12, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 134, 12, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 134, 12, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 134, 13, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 134, 13, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 134, 13, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 134, 13, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 135, 14, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 135, 14, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 135, 14, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 135, 14, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 135, 15, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 135, 15, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 135, 15, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 135, 15, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 136, 16, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 136, 16, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 136, 16, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 136, 16, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 136, 17, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 136, 17, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 136, 17, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 136, 17, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 137, 18, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 137, 18, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 137, 18, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 137, 18, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 137, 19, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 137, 19, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 137, 19, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 137, 19, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 138, 20, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 138, 20, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 138, 20, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 138, 20, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 138, 21, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 138, 21, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 138, 21, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 138, 21, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 139, 22, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 139, 22, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 139, 22, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 139, 22, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 139, 23, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 139, 23, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 139, 23, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 139, 23, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 140, 24, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 140, 24, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 140, 24, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 140, 24, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 140, 25, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 140, 25, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 140, 25, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 140, 25, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 141, 26, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 141, 26, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 141, 26, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 141, 26, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 141, 27, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 141, 27, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 141, 27, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 141, 27, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 142, 28, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 142, 28, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 142, 28, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 142, 28, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 142, 29, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 142, 29, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 142, 29, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 142, 29, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 143, 30, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 143, 30, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 143, 30, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 143, 30, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 143, 31, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 143, 31, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 143, 31, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 143, 31, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 144, 32, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 144, 32, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 144, 32, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 144, 32, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 144, 33, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 144, 33, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 144, 33, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 144, 33, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 145, 2, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 145, 2, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 145, 2, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 145, 2, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 145, 3, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 145, 3, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 145, 3, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 145, 3, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 146, 4, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 146, 4, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 146, 4, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 146, 4, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 146, 5, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 146, 5, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 146, 5, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 146, 5, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 147, 6, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 147, 6, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 147, 6, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 147, 6, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 147, 7, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 147, 7, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 147, 7, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 147, 7, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 148, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 148, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 148, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 148, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 148, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 148, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 148, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 148, 9, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 149, 10, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 149, 10, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 149, 10, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 149, 10, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 149, 11, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 149, 11, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 149, 11, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 149, 11, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 150, 12, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 150, 12, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 150, 12, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 150, 12, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 150, 13, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 150, 13, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 150, 13, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 150, 13, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 151, 14, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 151, 14, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 151, 14, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 151, 14, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 151, 15, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 151, 15, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 151, 15, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 151, 15, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 152, 16, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 152, 16, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 152, 16, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 152, 16, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 152, 17, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 152, 17, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 152, 17, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 152, 17, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 153, 18, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 153, 18, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 153, 18, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 153, 18, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 153, 19, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 153, 19, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 153, 19, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 153, 19, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 154, 20, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 154, 20, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 154, 20, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 154, 20, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 154, 21, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 154, 21, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 154, 21, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 154, 21, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 155, 22, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 155, 22, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 155, 22, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 155, 22, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 155, 23, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 155, 23, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 155, 23, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 155, 23, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 156, 24, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 156, 24, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 156, 24, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 156, 24, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 156, 25, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 156, 25, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 156, 25, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 156, 25, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 157, 26, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 157, 26, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 157, 26, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 157, 26, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 157, 27, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 157, 27, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 157, 27, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 157, 27, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 158, 28, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 158, 28, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 158, 28, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 158, 28, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 158, 29, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 158, 29, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 158, 29, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 158, 29, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 159, 30, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 159, 30, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 159, 30, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 159, 30, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 159, 31, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 159, 31, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 159, 31, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 159, 31, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 160, 32, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 160, 32, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 160, 32, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 160, 32, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 160, 33, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 160, 33, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 160, 33, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 160, 33, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 161, 8, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 161, 8, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 161, 8, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 161, 8, 4, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 161, 9, 1, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 161, 9, 2, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 161, 9, 3, 1, 1, 0
EXEC [MD_ASMS_FIELDS_STATUS] 161, 9, 4, 1, 1, 0

GO

PRINT 'MD_ASMS_FIELDS_STATUS DONE!!'
GO

EXEC [MD_ASMS_INTERFACE] 1, 67, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 2, 68, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 3, 69, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 4, 70, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 5, 72, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 6, 73, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 7, 74, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 8, 75, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 9, 77, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 10, 78, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 11, 80, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 12, 82, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 13, 83, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 14, 84, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 15, 85, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 16, 86, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 17, 87, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 18, 88, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 19, 89, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 20, 90, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 21, 91, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 22, 92, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 23, 93, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 24, 94, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 25, 95, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 26, 155, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 27, 156, '', 1, NULL, 21

EXEC [MD_ASMS_INTERFACE] 28, 67, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 29, 68, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 30, 69, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 31, 70, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 32, 72, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 33, 73, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 34, 74, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 35, 75, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 36, 77, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 37, 78, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 38, 80, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 39, 82, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 40, 83, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 41, 84, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 42, 85, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 43, 86, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 44, 87, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 45, 88, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 46, 89, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 47, 90, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 48, 91, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 49, 92, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 50, 93, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 51, 94, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 52, 95, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 53, 155, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 54, 156, '', 2, NULL, 21

EXEC [MD_ASMS_INTERFACE] 55, 67, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 56, 68, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 57, 69, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 58, 70, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 59, 72, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 60, 73, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 61, 74, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 62, 75, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 63, 77, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 64, 78, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 65, 80, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 66, 82, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 67, 83, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 68, 84, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 69, 85, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 70, 86, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 71, 87, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 72, 88, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 73, 89, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 74, 90, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 75, 91, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 76, 92, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 77, 93, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 78, 94, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 79, 95, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 80, 155, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 81, 156, '', 3, NULL, 21

EXEC [MD_ASMS_INTERFACE] 82, 67, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 83, 68, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 84, 69, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 85, 70, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 86, 72, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 87, 73, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 88, 74, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 89, 75, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 90, 77, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 91, 78, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 92, 80, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 93, 82, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 94, 83, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 95, 84, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 96, 85, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 97, 86, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 98, 87, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 99, 88, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 100, 89, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 101, 90, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 102, 91, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 103, 92, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 104, 93, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 105, 94, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 106, 95, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 107, 155, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 108, 156, '', 4, NULL, 21

EXEC [MD_ASMS_INTERFACE] 109, 67, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 110, 68, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 111, 69, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 112, 70, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 113, 72, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 114, 73, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 115, 74, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 116, 75, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 117, 77, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 118, 78, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 119, 80, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 120, 82, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 121, 83, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 122, 84, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 123, 85, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 124, 86, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 125, 87, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 126, 88, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 127, 89, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 128, 90, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 129, 91, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 130, 92, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 131, 93, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 132, 94, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 133, 95, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 134, 155, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 135, 156, '', 5, NULL, 21

EXEC [MD_ASMS_INTERFACE] 136, 67, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 137, 68, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 138, 69, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 139, 70, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 140, 72, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 141, 73, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 142, 74, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 143, 75, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 144, 77, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 145, 78, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 146, 80, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 147, 82, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 148, 83, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 149, 84, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 150, 85, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 151, 86, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 152, 87, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 153, 88, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 154, 89, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 155, 90, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 156, 91, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 157, 92, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 158, 93, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 159, 94, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 160, 95, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 161, 155, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 162, 156, '', 6, NULL, 21

EXEC [MD_ASMS_INTERFACE] 163, 67, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 164, 68, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 165, 69, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 166, 70, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 167, 72, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 168, 73, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 169, 74, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 170, 75, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 171, 77, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 172, 78, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 173, 80, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 174, 82, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 175, 83, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 176, 84, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 177, 85, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 178, 86, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 179, 87, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 180, 88, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 181, 89, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 182, 90, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 183, 91, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 184, 92, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 185, 93, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 186, 94, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 187, 95, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 188, 155, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 189, 156, '', 7, NULL, 21

EXEC [MD_ASMS_INTERFACE] 190, 67, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 191, 68, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 192, 69, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 193, 70, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 194, 72, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 195, 73, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 196, 74, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 197, 75, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 198, 77, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 199, 78, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 200, 80, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 201, 82, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 202, 83, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 203, 84, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 204, 85, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 205, 86, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 206, 87, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 207, 88, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 208, 89, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 209, 90, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 210, 91, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 211, 92, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 212, 93, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 213, 94, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 214, 95, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 215, 155, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 216, 156, '', 8, NULL, 21

EXEC [MD_ASMS_INTERFACE] 217, 67, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 218, 68, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 219, 69, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 220, 70, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 221, 72, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 222, 73, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 223, 74, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 224, 75, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 225, 77, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 226, 78, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 227, 80, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 228, 82, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 229, 83, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 230, 84, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 231, 85, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 232, 86, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 233, 87, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 234, 88, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 235, 89, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 236, 90, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 237, 91, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 238, 92, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 239, 93, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 240, 94, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 241, 95, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 242, 155, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 243, 156, '', 9, NULL, 21

EXEC [MD_ASMS_INTERFACE] 244, 67, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 245, 68, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 246, 69, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 247, 70, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 248, 72, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 249, 73, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 250, 74, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 251, 75, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 252, 77, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 253, 78, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 254, 80, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 255, 82, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 256, 83, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 257, 84, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 258, 85, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 259, 86, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 260, 87, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 261, 88, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 262, 89, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 263, 90, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 264, 91, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 265, 92, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 266, 93, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 267, 94, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 268, 95, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 269, 155, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 270, 156, '', 10, NULL, 21

EXEC [MD_ASMS_INTERFACE] 271, 67, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 272, 68, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 273, 69, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 274, 70, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 275, 72, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 276, 73, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 277, 74, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 278, 75, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 279, 77, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 280, 78, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 281, 80, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 282, 82, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 283, 83, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 284, 84, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 285, 85, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 286, 86, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 287, 87, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 288, 88, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 289, 89, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 290, 90, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 291, 91, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 292, 92, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 293, 93, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 294, 94, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 295, 95, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 296, 155, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 297, 156, '', 11, NULL, 21

EXEC [MD_ASMS_INTERFACE] 298, 67, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 299, 68, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 300, 69, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 301, 70, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 302, 72, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 303, 73, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 304, 74, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 305, 75, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 306, 77, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 307, 78, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 308, 80, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 309, 82, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 310, 83, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 311, 84, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 312, 85, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 313, 86, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 314, 87, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 315, 88, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 316, 89, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 317, 90, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 318, 91, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 319, 92, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 320, 93, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 321, 94, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 322, 95, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 323, 155, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 324, 156, '', 12, NULL, 21

EXEC [MD_ASMS_INTERFACE] 325, 67, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 326, 68, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 327, 69, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 328, 70, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 329, 72, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 330, 73, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 331, 74, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 332, 75, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 333, 77, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 334, 78, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 335, 80, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 336, 82, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 337, 83, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 338, 84, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 339, 85, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 340, 86, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 341, 87, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 342, 88, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 343, 89, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 344, 90, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 345, 91, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 346, 92, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 347, 93, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 348, 94, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 349, 95, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 350, 155, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 351, 156, '', 13, NULL, 21

EXEC [MD_ASMS_INTERFACE] 352, 67, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 353, 68, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 354, 69, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 355, 70, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 356, 72, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 357, 73, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 358, 74, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 359, 75, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 360, 77, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 361, 78, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 362, 80, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 363, 82, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 364, 83, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 365, 84, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 366, 85, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 367, 86, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 368, 87, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 369, 88, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 370, 89, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 371, 90, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 372, 91, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 373, 92, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 374, 93, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 375, 94, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 376, 95, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 377, 155, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 378, 156, '', 14, NULL, 21

EXEC [MD_ASMS_INTERFACE] 379, 67, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 380, 68, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 381, 69, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 382, 70, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 383, 72, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 384, 73, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 385, 74, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 386, 75, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 387, 77, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 388, 78, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 389, 80, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 390, 82, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 391, 83, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 392, 84, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 393, 85, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 394, 86, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 395, 87, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 396, 88, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 397, 89, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 398, 90, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 399, 91, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 400, 92, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 401, 93, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 402, 94, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 403, 95, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 404, 155, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 405, 156, '', 15, NULL, 21

EXEC [MD_ASMS_INTERFACE] 406, 67, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 407, 68, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 408, 69, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 409, 70, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 410, 72, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 411, 73, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 412, 74, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 413, 75, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 414, 77, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 415, 78, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 416, 80, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 417, 82, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 418, 83, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 419, 84, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 420, 85, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 421, 86, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 422, 87, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 423, 88, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 424, 89, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 425, 90, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 426, 91, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 427, 92, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 428, 93, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 429, 94, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 430, 95, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 431, 155, '', 16, NULL, 21
EXEC [MD_ASMS_INTERFACE] 432, 156, '', 16, NULL, 21

EXEC [MD_ASMS_INTERFACE] 433, 13, '', 1, NULL, 21
EXEC [MD_ASMS_INTERFACE] 434, 13, '', 2, NULL, 21
EXEC [MD_ASMS_INTERFACE] 435, 13, '', 3, NULL, 21
EXEC [MD_ASMS_INTERFACE] 436, 13, '', 4, NULL, 21
EXEC [MD_ASMS_INTERFACE] 437, 13, '', 5, NULL, 21
EXEC [MD_ASMS_INTERFACE] 438, 13, '', 6, NULL, 21
EXEC [MD_ASMS_INTERFACE] 439, 13, '', 7, NULL, 21
EXEC [MD_ASMS_INTERFACE] 440, 13, '', 8, NULL, 21
EXEC [MD_ASMS_INTERFACE] 441, 13, '', 9, NULL, 21
EXEC [MD_ASMS_INTERFACE] 442, 13, '', 10, NULL, 21
EXEC [MD_ASMS_INTERFACE] 443, 13, '', 11, NULL, 21
EXEC [MD_ASMS_INTERFACE] 444, 13, '', 12, NULL, 21
EXEC [MD_ASMS_INTERFACE] 445, 13, '', 13, NULL, 21
EXEC [MD_ASMS_INTERFACE] 446, 13, '', 14, NULL, 21
EXEC [MD_ASMS_INTERFACE] 447, 13, '', 15, NULL, 21
EXEC [MD_ASMS_INTERFACE] 448, 13, '', 16, NULL, 21

EXEC [MD_ASMS_INTERFACE] 449, 163, '', NULL, NULL, 37
GO

PRINT 'MD_ASMS_INTERFACE DONE!!'
GO
EXEC [MD_ASMS_INTERFACE_STATUS] 1, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 1, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 1, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 1, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 1, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 1, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 1, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 1, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 2, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 2, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 2, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 2, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 2, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 2, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 2, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 2, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 3, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 3, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 3, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 3, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 3, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 3, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 3, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 3, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 4, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 4, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 4, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 4, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 4, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 4, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 4, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 4, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 5, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 5, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 5, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 5, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 5, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 5, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 5, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 5, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 6, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 6, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 6, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 6, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 6, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 6, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 6, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 6, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 7, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 7, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 7, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 7, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 7, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 7, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 7, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 7, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 8, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 8, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 8, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 8, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 8, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 8, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 8, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 8, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 9, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 9, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 9, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 9, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 9, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 9, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 9, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 9, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 10, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 10, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 10, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 10, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 10, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 10, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 10, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 10, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 11, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 11, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 11, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 11, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 11, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 11, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 11, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 11, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 12, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 12, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 12, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 12, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 12, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 12, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 12, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 12, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 13, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 13, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 13, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 13, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 13, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 13, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 13, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 13, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 14, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 14, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 14, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 14, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 14, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 14, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 14, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 14, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 15, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 15, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 15, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 15, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 15, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 15, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 15, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 15, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 16, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 16, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 16, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 16, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 16, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 16, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 16, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 16, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 17, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 17, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 17, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 17, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 17, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 17, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 17, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 17, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 18, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 18, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 18, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 18, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 18, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 18, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 18, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 18, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 19, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 19, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 19, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 19, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 19, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 19, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 19, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 19, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 20, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 20, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 20, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 20, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 20, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 20, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 20, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 20, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 21, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 21, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 21, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 21, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 21, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 21, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 21, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 21, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 22, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 22, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 22, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 22, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 22, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 22, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 22, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 22, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 23, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 23, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 23, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 23, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 23, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 23, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 23, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 23, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 24, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 24, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 24, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 24, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 24, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 24, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 24, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 24, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 25, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 25, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 25, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 25, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 25, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 25, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 25, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 25, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 26, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 26, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 26, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 26, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 26, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 26, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 26, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 26, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 27, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 27, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 27, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 27, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 27, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 27, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 27, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 27, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 28, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 28, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 28, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 28, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 28, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 28, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 28, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 28, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 29, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 29, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 29, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 29, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 29, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 29, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 29, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 29, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 30, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 30, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 30, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 30, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 30, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 30, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 30, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 30, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 31, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 31, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 31, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 31, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 31, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 31, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 31, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 31, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 32, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 32, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 32, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 32, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 32, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 32, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 32, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 32, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 33, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 33, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 33, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 33, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 33, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 33, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 33, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 33, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 34, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 34, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 34, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 34, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 34, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 34, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 34, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 34, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 35, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 35, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 35, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 35, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 35, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 35, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 35, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 35, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 36, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 36, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 36, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 36, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 36, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 36, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 36, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 36, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 37, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 37, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 37, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 37, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 37, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 37, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 37, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 37, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 38, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 38, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 38, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 38, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 38, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 38, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 38, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 38, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 39, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 39, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 39, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 39, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 39, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 39, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 39, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 39, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 40, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 40, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 40, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 40, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 40, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 40, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 40, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 40, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 41, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 41, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 41, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 41, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 41, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 41, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 41, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 41, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 42, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 42, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 42, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 42, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 42, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 42, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 42, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 42, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 43, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 43, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 43, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 43, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 43, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 43, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 43, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 43, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 44, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 44, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 44, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 44, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 44, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 44, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 44, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 44, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 45, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 45, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 45, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 45, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 45, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 45, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 45, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 45, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 46, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 46, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 46, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 46, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 46, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 46, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 46, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 46, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 47, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 47, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 47, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 47, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 47, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 47, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 47, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 47, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 48, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 48, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 48, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 48, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 48, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 48, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 48, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 48, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 49, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 49, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 49, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 49, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 49, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 49, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 49, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 49, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 50, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 50, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 50, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 50, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 50, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 50, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 50, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 50, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 51, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 51, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 51, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 51, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 51, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 51, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 51, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 51, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 52, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 52, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 52, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 52, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 52, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 52, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 52, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 52, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 53, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 53, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 53, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 53, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 53, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 53, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 53, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 53, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 54, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 54, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 54, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 54, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 54, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 54, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 54, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 54, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 55, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 55, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 55, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 55, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 55, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 55, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 55, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 55, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 56, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 56, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 56, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 56, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 56, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 56, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 56, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 56, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 57, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 57, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 57, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 57, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 57, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 57, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 57, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 57, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 58, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 58, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 58, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 58, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 58, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 58, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 58, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 58, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 59, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 59, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 59, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 59, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 59, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 59, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 59, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 59, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 60, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 60, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 60, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 60, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 60, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 60, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 60, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 60, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 61, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 61, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 61, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 61, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 61, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 61, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 61, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 61, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 62, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 62, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 62, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 62, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 62, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 62, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 62, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 62, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 63, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 63, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 63, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 63, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 63, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 63, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 63, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 63, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 64, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 64, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 64, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 64, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 64, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 64, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 64, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 64, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 65, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 65, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 65, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 65, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 65, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 65, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 65, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 65, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 66, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 66, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 66, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 66, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 66, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 66, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 66, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 66, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 67, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 67, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 67, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 67, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 67, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 67, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 67, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 67, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 68, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 68, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 68, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 68, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 68, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 68, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 68, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 68, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 69, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 69, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 69, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 69, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 69, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 69, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 69, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 69, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 70, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 70, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 70, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 70, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 70, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 70, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 70, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 70, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 71, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 71, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 71, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 71, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 71, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 71, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 71, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 71, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 72, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 72, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 72, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 72, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 72, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 72, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 72, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 72, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 73, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 73, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 73, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 73, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 73, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 73, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 73, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 73, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 74, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 74, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 74, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 74, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 74, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 74, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 74, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 74, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 75, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 75, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 75, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 75, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 75, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 75, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 75, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 75, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 76, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 76, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 76, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 76, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 76, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 76, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 76, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 76, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 77, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 77, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 77, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 77, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 77, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 77, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 77, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 77, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 78, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 78, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 78, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 78, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 78, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 78, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 78, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 78, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 79, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 79, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 79, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 79, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 79, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 79, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 79, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 79, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 80, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 80, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 80, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 80, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 80, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 80, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 80, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 80, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 81, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 81, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 81, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 81, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 81, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 81, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 81, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 81, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 82, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 82, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 82, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 82, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 82, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 82, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 82, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 82, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 83, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 83, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 83, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 83, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 83, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 83, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 83, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 83, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 84, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 84, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 84, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 84, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 84, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 84, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 84, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 84, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 85, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 85, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 85, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 85, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 85, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 85, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 85, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 85, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 86, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 86, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 86, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 86, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 86, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 86, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 86, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 86, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 87, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 87, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 87, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 87, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 87, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 87, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 87, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 87, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 88, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 88, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 88, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 88, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 88, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 88, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 88, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 88, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 89, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 89, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 89, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 89, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 89, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 89, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 89, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 89, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 90, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 90, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 90, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 90, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 90, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 90, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 90, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 90, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 91, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 91, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 91, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 91, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 91, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 91, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 91, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 91, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 92, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 92, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 92, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 92, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 92, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 92, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 92, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 92, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 93, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 93, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 93, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 93, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 93, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 93, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 93, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 93, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 94, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 94, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 94, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 94, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 94, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 94, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 94, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 94, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 95, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 95, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 95, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 95, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 95, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 95, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 95, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 95, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 96, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 96, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 96, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 96, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 96, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 96, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 96, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 96, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 97, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 97, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 97, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 97, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 97, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 97, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 97, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 97, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 98, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 98, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 98, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 98, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 98, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 98, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 98, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 98, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 99, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 99, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 99, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 99, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 99, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 99, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 99, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 99, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 100, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 100, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 100, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 100, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 100, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 100, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 100, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 100, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 101, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 101, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 101, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 101, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 101, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 101, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 101, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 101, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 102, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 102, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 102, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 102, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 102, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 102, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 102, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 102, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 103, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 103, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 103, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 103, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 103, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 103, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 103, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 103, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 104, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 104, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 104, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 104, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 104, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 104, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 104, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 104, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 105, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 105, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 105, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 105, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 105, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 105, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 105, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 105, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 106, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 106, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 106, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 106, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 106, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 106, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 106, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 106, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 107, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 107, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 107, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 107, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 107, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 107, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 107, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 107, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 108, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 108, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 108, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 108, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 108, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 108, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 108, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 108, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 109, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 109, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 109, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 109, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 109, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 109, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 109, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 109, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 110, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 110, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 110, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 110, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 110, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 110, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 110, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 110, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 111, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 111, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 111, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 111, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 111, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 111, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 111, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 111, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 112, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 112, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 112, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 112, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 112, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 112, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 112, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 112, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 113, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 113, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 113, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 113, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 113, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 113, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 113, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 113, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 114, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 114, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 114, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 114, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 114, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 114, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 114, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 114, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 115, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 115, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 115, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 115, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 115, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 115, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 115, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 115, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 116, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 116, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 116, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 116, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 116, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 116, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 116, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 116, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 117, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 117, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 117, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 117, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 117, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 117, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 117, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 117, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 118, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 118, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 118, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 118, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 118, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 118, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 118, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 118, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 119, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 119, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 119, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 119, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 119, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 119, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 119, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 119, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 120, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 120, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 120, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 120, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 120, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 120, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 120, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 120, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 121, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 121, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 121, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 121, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 121, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 121, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 121, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 121, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 122, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 122, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 122, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 122, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 122, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 122, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 122, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 122, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 123, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 123, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 123, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 123, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 123, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 123, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 123, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 123, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 124, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 124, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 124, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 124, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 124, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 124, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 124, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 124, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 125, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 125, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 125, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 125, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 125, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 125, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 125, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 125, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 126, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 126, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 126, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 126, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 126, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 126, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 126, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 126, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 127, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 127, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 127, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 127, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 127, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 127, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 127, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 127, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 128, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 128, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 128, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 128, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 128, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 128, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 128, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 128, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 129, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 129, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 129, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 129, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 129, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 129, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 129, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 129, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 130, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 130, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 130, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 130, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 130, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 130, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 130, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 130, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 131, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 131, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 131, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 131, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 131, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 131, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 131, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 131, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 132, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 132, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 132, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 132, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 132, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 132, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 132, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 132, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 133, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 133, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 133, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 133, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 133, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 133, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 133, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 133, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 134, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 134, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 134, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 134, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 134, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 134, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 134, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 134, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 135, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 135, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 135, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 135, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 135, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 135, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 135, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 135, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 136, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 136, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 136, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 136, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 136, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 136, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 136, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 136, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 137, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 137, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 137, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 137, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 137, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 137, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 137, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 137, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 138, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 138, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 138, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 138, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 138, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 138, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 138, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 138, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 139, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 139, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 139, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 139, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 139, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 139, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 139, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 139, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 140, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 140, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 140, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 140, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 140, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 140, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 140, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 140, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 141, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 141, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 141, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 141, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 141, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 141, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 141, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 141, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 142, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 142, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 142, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 142, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 142, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 142, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 142, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 142, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 143, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 143, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 143, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 143, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 143, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 143, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 143, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 143, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 144, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 144, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 144, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 144, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 144, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 144, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 144, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 144, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 145, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 145, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 145, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 145, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 145, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 145, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 145, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 145, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 146, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 146, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 146, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 146, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 146, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 146, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 146, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 146, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 147, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 147, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 147, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 147, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 147, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 147, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 147, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 147, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 148, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 148, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 148, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 148, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 148, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 148, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 148, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 148, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 149, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 149, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 149, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 149, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 149, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 149, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 149, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 149, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 150, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 150, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 150, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 150, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 150, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 150, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 150, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 150, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 151, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 151, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 151, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 151, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 151, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 151, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 151, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 151, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 152, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 152, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 152, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 152, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 152, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 152, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 152, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 152, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 153, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 153, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 153, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 153, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 153, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 153, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 153, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 153, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 154, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 154, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 154, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 154, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 154, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 154, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 154, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 154, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 155, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 155, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 155, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 155, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 155, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 155, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 155, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 155, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 156, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 156, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 156, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 156, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 156, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 156, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 156, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 156, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 157, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 157, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 157, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 157, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 157, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 157, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 157, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 157, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 158, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 158, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 158, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 158, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 158, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 158, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 158, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 158, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 159, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 159, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 159, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 159, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 159, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 159, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 159, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 159, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 160, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 160, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 160, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 160, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 160, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 160, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 160, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 160, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 161, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 161, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 161, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 161, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 161, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 161, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 161, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 161, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 162, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 162, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 162, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 162, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 162, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 162, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 162, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 162, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 163, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 163, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 163, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 163, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 163, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 163, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 163, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 163, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 164, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 164, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 164, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 164, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 164, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 164, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 164, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 164, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 165, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 165, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 165, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 165, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 165, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 165, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 165, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 165, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 166, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 166, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 166, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 166, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 166, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 166, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 166, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 166, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 167, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 167, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 167, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 167, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 167, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 167, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 167, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 167, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 168, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 168, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 168, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 168, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 168, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 168, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 168, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 168, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 169, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 169, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 169, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 169, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 169, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 169, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 169, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 169, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 170, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 170, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 170, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 170, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 170, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 170, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 170, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 170, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 171, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 171, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 171, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 171, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 171, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 171, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 171, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 171, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 172, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 172, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 172, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 172, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 172, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 172, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 172, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 172, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 173, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 173, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 173, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 173, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 173, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 173, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 173, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 173, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 174, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 174, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 174, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 174, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 174, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 174, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 174, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 174, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 175, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 175, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 175, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 175, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 175, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 175, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 175, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 175, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 176, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 176, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 176, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 176, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 176, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 176, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 176, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 176, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 177, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 177, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 177, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 177, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 177, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 177, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 177, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 177, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 178, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 178, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 178, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 178, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 178, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 178, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 178, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 178, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 179, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 179, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 179, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 179, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 179, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 179, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 179, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 179, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 180, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 180, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 180, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 180, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 180, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 180, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 180, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 180, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 181, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 181, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 181, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 181, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 181, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 181, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 181, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 181, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 182, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 182, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 182, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 182, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 182, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 182, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 182, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 182, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 183, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 183, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 183, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 183, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 183, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 183, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 183, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 183, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 184, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 184, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 184, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 184, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 184, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 184, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 184, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 184, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 185, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 185, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 185, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 185, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 185, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 185, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 185, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 185, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 186, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 186, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 186, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 186, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 186, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 186, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 186, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 186, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 187, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 187, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 187, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 187, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 187, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 187, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 187, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 187, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 188, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 188, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 188, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 188, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 188, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 188, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 188, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 188, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 189, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 189, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 189, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 189, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 189, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 189, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 189, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 189, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 190, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 190, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 190, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 190, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 190, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 190, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 190, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 190, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 191, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 191, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 191, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 191, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 191, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 191, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 191, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 191, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 192, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 192, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 192, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 192, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 192, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 192, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 192, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 192, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 193, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 193, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 193, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 193, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 193, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 193, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 193, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 193, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 194, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 194, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 194, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 194, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 194, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 194, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 194, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 194, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 195, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 195, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 195, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 195, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 195, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 195, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 195, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 195, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 196, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 196, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 196, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 196, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 196, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 196, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 196, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 196, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 197, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 197, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 197, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 197, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 197, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 197, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 197, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 197, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 198, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 198, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 198, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 198, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 198, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 198, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 198, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 198, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 199, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 199, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 199, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 199, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 199, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 199, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 199, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 199, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 200, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 200, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 200, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 200, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 200, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 200, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 200, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 200, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 201, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 201, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 201, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 201, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 201, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 201, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 201, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 201, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 202, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 202, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 202, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 202, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 202, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 202, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 202, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 202, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 203, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 203, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 203, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 203, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 203, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 203, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 203, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 203, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 204, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 204, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 204, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 204, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 204, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 204, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 204, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 204, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 205, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 205, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 205, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 205, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 205, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 205, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 205, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 205, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 206, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 206, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 206, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 206, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 206, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 206, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 206, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 206, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 207, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 207, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 207, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 207, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 207, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 207, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 207, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 207, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 208, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 208, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 208, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 208, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 208, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 208, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 208, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 208, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 209, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 209, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 209, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 209, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 209, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 209, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 209, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 209, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 210, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 210, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 210, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 210, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 210, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 210, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 210, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 210, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 211, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 211, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 211, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 211, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 211, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 211, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 211, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 211, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 212, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 212, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 212, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 212, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 212, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 212, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 212, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 212, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 213, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 213, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 213, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 213, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 213, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 213, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 213, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 213, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 214, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 214, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 214, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 214, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 214, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 214, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 214, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 214, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 215, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 215, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 215, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 215, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 215, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 215, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 215, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 215, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 216, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 216, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 216, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 216, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 216, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 216, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 216, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 216, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 217, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 217, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 217, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 217, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 217, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 217, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 217, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 217, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 218, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 218, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 218, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 218, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 218, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 218, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 218, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 218, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 219, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 219, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 219, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 219, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 219, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 219, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 219, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 219, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 220, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 220, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 220, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 220, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 220, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 220, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 220, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 220, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 221, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 221, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 221, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 221, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 221, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 221, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 221, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 221, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 222, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 222, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 222, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 222, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 222, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 222, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 222, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 222, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 223, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 223, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 223, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 223, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 223, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 223, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 223, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 223, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 224, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 224, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 224, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 224, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 224, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 224, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 224, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 224, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 225, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 225, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 225, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 225, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 225, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 225, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 225, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 225, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 226, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 226, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 226, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 226, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 226, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 226, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 226, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 226, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 227, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 227, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 227, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 227, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 227, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 227, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 227, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 227, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 228, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 228, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 228, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 228, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 228, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 228, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 228, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 228, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 229, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 229, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 229, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 229, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 229, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 229, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 229, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 229, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 230, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 230, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 230, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 230, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 230, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 230, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 230, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 230, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 231, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 231, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 231, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 231, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 231, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 231, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 231, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 231, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 232, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 232, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 232, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 232, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 232, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 232, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 232, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 232, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 233, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 233, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 233, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 233, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 233, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 233, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 233, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 233, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 234, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 234, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 234, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 234, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 234, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 234, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 234, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 234, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 235, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 235, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 235, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 235, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 235, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 235, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 235, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 235, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 236, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 236, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 236, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 236, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 236, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 236, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 236, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 236, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 237, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 237, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 237, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 237, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 237, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 237, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 237, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 237, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 238, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 238, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 238, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 238, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 238, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 238, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 238, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 238, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 239, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 239, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 239, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 239, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 239, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 239, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 239, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 239, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 240, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 240, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 240, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 240, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 240, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 240, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 240, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 240, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 241, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 241, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 241, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 241, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 241, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 241, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 241, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 241, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 242, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 242, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 242, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 242, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 242, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 242, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 242, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 242, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 243, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 243, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 243, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 243, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 243, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 243, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 243, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 243, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 244, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 244, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 244, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 244, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 244, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 244, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 244, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 244, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 245, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 245, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 245, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 245, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 245, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 245, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 245, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 245, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 246, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 246, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 246, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 246, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 246, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 246, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 246, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 246, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 247, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 247, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 247, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 247, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 247, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 247, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 247, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 247, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 248, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 248, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 248, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 248, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 248, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 248, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 248, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 248, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 249, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 249, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 249, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 249, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 249, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 249, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 249, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 249, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 250, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 250, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 250, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 250, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 250, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 250, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 250, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 250, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 251, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 251, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 251, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 251, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 251, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 251, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 251, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 251, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 252, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 252, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 252, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 252, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 252, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 252, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 252, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 252, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 253, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 253, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 253, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 253, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 253, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 253, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 253, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 253, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 254, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 254, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 254, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 254, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 254, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 254, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 254, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 254, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 255, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 255, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 255, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 255, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 255, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 255, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 255, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 255, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 256, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 256, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 256, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 256, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 256, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 256, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 256, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 256, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 257, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 257, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 257, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 257, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 257, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 257, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 257, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 257, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 258, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 258, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 258, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 258, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 258, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 258, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 258, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 258, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 259, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 259, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 259, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 259, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 259, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 259, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 259, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 259, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 260, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 260, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 260, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 260, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 260, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 260, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 260, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 260, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 261, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 261, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 261, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 261, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 261, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 261, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 261, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 261, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 262, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 262, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 262, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 262, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 262, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 262, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 262, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 262, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 263, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 263, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 263, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 263, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 263, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 263, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 263, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 263, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 264, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 264, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 264, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 264, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 264, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 264, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 264, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 264, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 265, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 265, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 265, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 265, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 265, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 265, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 265, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 265, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 266, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 266, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 266, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 266, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 266, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 266, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 266, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 266, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 267, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 267, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 267, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 267, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 267, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 267, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 267, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 267, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 268, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 268, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 268, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 268, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 268, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 268, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 268, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 268, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 269, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 269, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 269, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 269, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 269, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 269, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 269, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 269, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 270, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 270, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 270, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 270, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 270, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 270, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 270, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 270, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 271, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 271, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 271, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 271, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 271, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 271, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 271, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 271, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 272, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 272, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 272, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 272, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 272, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 272, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 272, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 272, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 273, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 273, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 273, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 273, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 273, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 273, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 273, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 273, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 274, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 274, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 274, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 274, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 274, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 274, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 274, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 274, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 275, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 275, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 275, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 275, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 275, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 275, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 275, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 275, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 276, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 276, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 276, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 276, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 276, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 276, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 276, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 276, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 277, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 277, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 277, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 277, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 277, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 277, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 277, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 277, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 278, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 278, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 278, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 278, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 278, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 278, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 278, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 278, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 279, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 279, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 279, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 279, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 279, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 279, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 279, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 279, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 280, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 280, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 280, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 280, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 280, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 280, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 280, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 280, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 281, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 281, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 281, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 281, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 281, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 281, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 281, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 281, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 282, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 282, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 282, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 282, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 282, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 282, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 282, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 282, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 283, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 283, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 283, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 283, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 283, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 283, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 283, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 283, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 284, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 284, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 284, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 284, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 284, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 284, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 284, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 284, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 285, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 285, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 285, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 285, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 285, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 285, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 285, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 285, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 286, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 286, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 286, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 286, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 286, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 286, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 286, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 286, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 287, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 287, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 287, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 287, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 287, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 287, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 287, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 287, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 288, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 288, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 288, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 288, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 288, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 288, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 288, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 288, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 289, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 289, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 289, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 289, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 289, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 289, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 289, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 289, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 290, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 290, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 290, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 290, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 290, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 290, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 290, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 290, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 291, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 291, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 291, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 291, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 291, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 291, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 291, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 291, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 292, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 292, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 292, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 292, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 292, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 292, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 292, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 292, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 293, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 293, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 293, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 293, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 293, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 293, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 293, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 293, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 294, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 294, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 294, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 294, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 294, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 294, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 294, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 294, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 295, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 295, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 295, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 295, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 295, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 295, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 295, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 295, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 296, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 296, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 296, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 296, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 296, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 296, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 296, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 296, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 297, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 297, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 297, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 297, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 297, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 297, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 297, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 297, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 298, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 298, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 298, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 298, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 298, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 298, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 298, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 298, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 299, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 299, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 299, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 299, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 299, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 299, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 299, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 299, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 300, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 300, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 300, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 300, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 300, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 300, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 300, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 300, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 301, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 301, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 301, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 301, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 301, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 301, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 301, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 301, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 302, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 302, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 302, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 302, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 302, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 302, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 302, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 302, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 303, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 303, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 303, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 303, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 303, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 303, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 303, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 303, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 304, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 304, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 304, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 304, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 304, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 304, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 304, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 304, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 305, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 305, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 305, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 305, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 305, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 305, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 305, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 305, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 306, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 306, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 306, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 306, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 306, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 306, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 306, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 306, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 307, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 307, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 307, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 307, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 307, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 307, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 307, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 307, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 308, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 308, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 308, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 308, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 308, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 308, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 308, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 308, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 309, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 309, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 309, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 309, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 309, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 309, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 309, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 309, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 310, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 310, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 310, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 310, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 310, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 310, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 310, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 310, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 311, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 311, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 311, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 311, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 311, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 311, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 311, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 311, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 312, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 312, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 312, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 312, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 312, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 312, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 312, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 312, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 313, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 313, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 313, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 313, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 313, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 313, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 313, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 313, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 314, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 314, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 314, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 314, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 314, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 314, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 314, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 314, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 315, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 315, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 315, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 315, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 315, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 315, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 315, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 315, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 316, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 316, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 316, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 316, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 316, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 316, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 316, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 316, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 317, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 317, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 317, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 317, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 317, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 317, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 317, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 317, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 318, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 318, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 318, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 318, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 318, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 318, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 318, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 318, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 319, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 319, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 319, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 319, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 319, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 319, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 319, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 319, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 320, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 320, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 320, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 320, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 320, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 320, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 320, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 320, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 321, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 321, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 321, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 321, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 321, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 321, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 321, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 321, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 322, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 322, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 322, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 322, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 322, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 322, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 322, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 322, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 323, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 323, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 323, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 323, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 323, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 323, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 323, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 323, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 324, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 324, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 324, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 324, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 324, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 324, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 324, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 324, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 325, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 325, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 325, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 325, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 325, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 325, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 325, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 325, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 326, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 326, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 326, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 326, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 326, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 326, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 326, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 326, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 327, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 327, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 327, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 327, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 327, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 327, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 327, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 327, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 328, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 328, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 328, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 328, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 328, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 328, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 328, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 328, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 329, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 329, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 329, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 329, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 329, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 329, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 329, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 329, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 330, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 330, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 330, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 330, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 330, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 330, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 330, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 330, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 331, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 331, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 331, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 331, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 331, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 331, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 331, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 331, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 332, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 332, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 332, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 332, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 332, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 332, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 332, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 332, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 333, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 333, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 333, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 333, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 333, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 333, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 333, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 333, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 334, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 334, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 334, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 334, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 334, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 334, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 334, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 334, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 335, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 335, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 335, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 335, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 335, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 335, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 335, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 335, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 336, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 336, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 336, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 336, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 336, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 336, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 336, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 336, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 337, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 337, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 337, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 337, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 337, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 337, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 337, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 337, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 338, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 338, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 338, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 338, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 338, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 338, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 338, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 338, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 339, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 339, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 339, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 339, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 339, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 339, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 339, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 339, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 340, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 340, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 340, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 340, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 340, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 340, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 340, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 340, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 341, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 341, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 341, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 341, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 341, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 341, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 341, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 341, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 342, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 342, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 342, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 342, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 342, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 342, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 342, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 342, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 343, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 343, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 343, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 343, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 343, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 343, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 343, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 343, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 344, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 344, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 344, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 344, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 344, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 344, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 344, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 344, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 345, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 345, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 345, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 345, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 345, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 345, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 345, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 345, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 346, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 346, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 346, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 346, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 346, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 346, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 346, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 346, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 347, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 347, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 347, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 347, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 347, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 347, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 347, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 347, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 348, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 348, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 348, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 348, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 348, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 348, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 348, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 348, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 349, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 349, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 349, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 349, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 349, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 349, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 349, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 349, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 350, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 350, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 350, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 350, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 350, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 350, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 350, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 350, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 351, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 351, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 351, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 351, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 351, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 351, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 351, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 351, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 352, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 352, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 352, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 352, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 352, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 352, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 352, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 352, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 353, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 353, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 353, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 353, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 353, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 353, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 353, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 353, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 354, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 354, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 354, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 354, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 354, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 354, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 354, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 354, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 355, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 355, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 355, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 355, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 355, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 355, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 355, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 355, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 356, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 356, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 356, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 356, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 356, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 356, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 356, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 356, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 357, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 357, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 357, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 357, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 357, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 357, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 357, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 357, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 358, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 358, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 358, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 358, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 358, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 358, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 358, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 358, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 359, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 359, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 359, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 359, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 359, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 359, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 359, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 359, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 360, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 360, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 360, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 360, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 360, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 360, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 360, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 360, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 361, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 361, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 361, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 361, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 361, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 361, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 361, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 361, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 362, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 362, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 362, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 362, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 362, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 362, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 362, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 362, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 363, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 363, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 363, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 363, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 363, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 363, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 363, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 363, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 364, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 364, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 364, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 364, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 364, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 364, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 364, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 364, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 365, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 365, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 365, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 365, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 365, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 365, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 365, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 365, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 366, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 366, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 366, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 366, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 366, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 366, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 366, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 366, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 367, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 367, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 367, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 367, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 367, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 367, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 367, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 367, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 368, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 368, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 368, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 368, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 368, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 368, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 368, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 368, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 369, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 369, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 369, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 369, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 369, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 369, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 369, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 369, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 370, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 370, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 370, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 370, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 370, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 370, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 370, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 370, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 371, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 371, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 371, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 371, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 371, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 371, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 371, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 371, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 372, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 372, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 372, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 372, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 372, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 372, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 372, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 372, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 373, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 373, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 373, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 373, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 373, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 373, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 373, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 373, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 374, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 374, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 374, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 374, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 374, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 374, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 374, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 374, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 375, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 375, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 375, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 375, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 375, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 375, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 375, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 375, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 376, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 376, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 376, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 376, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 376, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 376, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 376, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 376, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 377, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 377, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 377, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 377, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 377, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 377, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 377, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 377, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 378, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 378, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 378, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 378, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 378, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 378, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 378, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 378, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 379, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 379, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 379, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 379, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 379, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 379, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 379, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 379, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 380, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 380, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 380, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 380, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 380, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 380, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 380, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 380, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 381, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 381, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 381, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 381, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 381, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 381, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 381, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 381, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 382, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 382, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 382, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 382, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 382, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 382, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 382, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 382, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 383, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 383, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 383, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 383, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 383, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 383, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 383, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 383, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 384, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 384, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 384, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 384, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 384, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 384, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 384, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 384, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 385, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 385, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 385, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 385, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 385, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 385, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 385, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 385, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 386, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 386, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 386, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 386, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 386, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 386, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 386, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 386, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 387, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 387, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 387, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 387, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 387, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 387, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 387, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 387, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 388, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 388, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 388, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 388, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 388, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 388, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 388, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 388, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 389, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 389, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 389, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 389, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 389, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 389, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 389, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 389, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 390, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 390, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 390, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 390, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 390, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 390, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 390, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 390, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 391, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 391, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 391, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 391, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 391, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 391, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 391, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 391, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 392, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 392, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 392, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 392, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 392, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 392, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 392, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 392, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 393, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 393, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 393, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 393, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 393, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 393, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 393, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 393, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 394, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 394, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 394, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 394, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 394, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 394, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 394, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 394, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 395, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 395, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 395, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 395, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 395, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 395, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 395, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 395, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 396, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 396, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 396, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 396, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 396, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 396, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 396, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 396, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 397, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 397, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 397, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 397, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 397, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 397, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 397, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 397, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 398, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 398, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 398, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 398, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 398, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 398, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 398, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 398, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 399, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 399, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 399, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 399, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 399, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 399, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 399, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 399, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 400, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 400, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 400, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 400, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 400, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 400, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 400, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 400, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 401, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 401, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 401, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 401, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 401, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 401, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 401, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 401, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 402, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 402, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 402, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 402, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 402, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 402, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 402, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 402, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 403, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 403, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 403, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 403, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 403, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 403, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 403, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 403, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 404, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 404, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 404, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 404, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 404, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 404, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 404, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 404, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 405, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 405, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 405, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 405, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 405, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 405, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 405, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 405, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 406, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 406, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 406, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 406, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 406, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 406, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 406, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 406, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 407, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 407, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 407, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 407, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 407, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 407, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 407, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 407, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 408, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 408, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 408, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 408, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 408, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 408, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 408, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 408, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 409, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 409, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 409, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 409, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 409, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 409, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 409, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 409, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 410, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 410, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 410, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 410, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 410, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 410, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 410, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 410, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 411, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 411, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 411, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 411, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 411, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 411, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 411, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 411, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 412, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 412, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 412, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 412, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 412, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 412, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 412, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 412, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 413, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 413, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 413, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 413, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 413, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 413, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 413, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 413, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 414, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 414, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 414, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 414, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 414, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 414, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 414, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 414, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 415, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 415, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 415, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 415, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 415, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 415, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 415, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 415, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 416, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 416, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 416, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 416, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 416, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 416, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 416, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 416, 33, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 417, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 417, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 417, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 417, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 417, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 417, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 417, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 417, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 418, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 418, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 418, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 418, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 418, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 418, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 418, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 418, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 419, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 419, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 419, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 419, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 419, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 419, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 419, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 419, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 420, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 420, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 420, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 420, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 420, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 420, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 420, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 420, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 421, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 421, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 421, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 421, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 421, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 421, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 421, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 421, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 422, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 422, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 422, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 422, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 422, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 422, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 422, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 422, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 423, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 423, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 423, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 423, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 423, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 423, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 423, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 423, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 424, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 424, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 424, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 424, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 424, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 424, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 424, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 424, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 425, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 425, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 425, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 425, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 425, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 425, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 425, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 425, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 426, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 426, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 426, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 426, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 426, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 426, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 426, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 426, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 427, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 427, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 427, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 427, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 427, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 427, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 427, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 427, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 428, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 428, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 428, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 428, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 428, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 428, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 428, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 428, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 429, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 429, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 429, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 429, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 429, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 429, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 429, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 429, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 430, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 430, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 430, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 430, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 430, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 430, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 430, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 430, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 431, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 431, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 431, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 431, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 431, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 431, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 431, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 431, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 432, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 432, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 432, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 432, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 432, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 432, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 432, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 432, 33, 4, 1, 1, 0

EXEC [MD_ASMS_INTERFACE_STATUS] 433, 2, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 433, 2, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 433, 2, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 433, 2, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 433, 3, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 433, 3, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 433, 3, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 433, 3, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 434, 4, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 434, 4, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 434, 4, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 434, 4, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 434, 5, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 434, 5, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 434, 5, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 434, 5, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 435, 6, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 435, 6, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 435, 6, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 435, 6, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 435, 7, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 435, 7, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 435, 7, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 435, 7, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 436, 8, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 436, 8, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 436, 8, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 436, 8, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 436, 9, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 436, 9, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 436, 9, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 436, 9, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 437, 10, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 437, 10, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 437, 10, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 437, 10, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 437, 11, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 437, 11, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 437, 11, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 437, 11, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 438, 12, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 438, 12, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 438, 12, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 438, 12, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 438, 13, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 438, 13, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 438, 13, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 438, 13, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 439, 14, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 439, 14, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 439, 14, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 439, 14, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 439, 15, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 439, 15, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 439, 15, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 439, 15, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 440, 16, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 440, 16, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 440, 16, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 440, 16, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 440, 17, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 440, 17, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 440, 17, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 440, 17, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 441, 18, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 441, 18, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 441, 18, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 441, 18, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 441, 19, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 441, 19, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 441, 19, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 441, 19, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 442, 20, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 442, 20, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 442, 20, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 442, 20, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 442, 21, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 442, 21, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 442, 21, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 442, 21, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 443, 22, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 443, 22, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 443, 22, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 443, 22, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 443, 23, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 443, 23, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 443, 23, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 443, 23, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 444, 24, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 444, 24, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 444, 24, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 444, 24, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 444, 25, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 444, 25, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 444, 25, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 444, 25, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 445, 26, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 445, 26, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 445, 26, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 445, 26, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 445, 27, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 445, 27, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 445, 27, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 445, 27, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 446, 28, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 446, 28, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 446, 28, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 446, 28, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 446, 29, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 446, 29, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 446, 29, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 446, 29, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 447, 30, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 447, 30, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 447, 30, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 447, 30, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 447, 31, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 447, 31, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 447, 31, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 447, 31, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 448, 32, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 448, 32, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 448, 32, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 448, 32, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 448, 33, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 448, 33, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 448, 33, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 448, 33, 4, 1, 1, 0

EXEC [MD_ASMS_INTERFACE_STATUS] 449, 0, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 449, 0, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 449, 0, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 449, 0, 4, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 449, 1, 1, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 449, 1, 2, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 449, 1, 3, 1, 1, 0
EXEC [MD_ASMS_INTERFACE_STATUS] 449, 1, 4, 1, 1, 0
GO

PRINT 'MD_ASMS_INTERFACE_STATUS DONE!!'
GO

EXEC [MD_AI_PROVIDER] 1, N'Azure'
EXEC [MD_AI_PROVIDER] 2, N'Open AI'
GO

PRINT 'MD_AI_PROVIDER!!'
GO

EXEC [MD_AI_TASK] 1, 
	N'Categorización automática',
	1,
	N'{"es":{"name":"Categorización automática","description":"Se encarga de hallar el proyecto, servicio y categoría a partir del prompt del usuario. Utiliza un modelo ajustado finamente(fine-tuned). Se recomienda utilizar la \"Categorización automática por asistente\", facilitando considerablemente su configuración y mantenimiento."},"en":{"name":"Auto categorization","description":"Finds the project, service and category from the user prompt. It uses a fine-tuned type model. It is recommended to use the \"Automatic Categorization by Assistant\", significantly simplifying its setup and maintenance."},"pt":{"name":"Categorização automática","description":"Responsável por encontrar o projeto, serviço e categoria a partir do prompt do usuário. Utiliza um modelo de ajuste fino(fine-tuned). Recomenda-se utilizar a \"Categorização automática por assistente\", facilitando consideravelmente sua configuração e manutenção."}}', 
	1,
	N'{"version":"2","params":[{"name":"max_tokens","type":"int","value":50,"min":1,"max":50,"required":true,"hidden":false},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":1,"required":true,"hidden":false},{"name":"stop","type":"text","value":"}","required":true,"hidden":false},{"name":"prompt_end","type":"text","value":" ->","required":true,"hidden":false},{"name":"completion_start","type":"text","value":"{","required":true,"hidden":false},{"name":"completion_end","type":"text","value":"}","required":true,"hidden":false},{"name":"completion_separator","type":"text","value":"|","required":true,"hidden":false},{"name":"message_role_system","type":"text","value":"El asistente debe identificar la categoría de la solicitud del usuario y proporcionar los identificadores correspondientes de proyecto, servicio y categoría.","required":true,"hidden":true},{"name":"enable_assistant","type":"bool","value":false,"required":false,"hidden":false},{"name":"id_assistant","type":"text","value":"","required":false,"hidden":false},{"name":"assistant_model","type":"text","value":"","required":false,"hidden":false},{"name":"assistant_search_max_results","type":"int","value":3,"min":1,"max":50,"required":false,"hidden":false},{"name":"assistant_instructions","type":"multiline","value":"","required":false,"hidden":false}],"paramsByLanguage":[{"name":"assistant_instructions","type":"multiline","value":{"es":"","en":"","pt":""},"required":true}]}',
	1,
	1
GO

EXEC [MD_AI_TASK] 2, 
	N'Extracción de campos', 
	2, 
	N'{"es":{"name":"Extracción de valores de campos","description":"Extrae los valores de los campos adicionales de un caso a partir del prompt del usuario.Utiliza un modelo de tipo chat."},"en":{"name":"Field values extraction","description":"Extracts the values of the additional fields of a case from the user prompt.Uses a chat type model."},"pt":{"name":"Extração de valores de campos","description":"Extraia os valores dos campos adicionais de um caso a partir do prompt do usuário. Utilize um modelo do tipo chat."}}', 
	1, 
	N'{"version":"1","params":[{"name":"max_tokens","type":"int","value":1000,"min":1,"max":4000,"required":true},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1,"min":0,"max":2,"required":true},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":1,"required":true},{"name":"stop","type":"text","value":null,"required":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true},{"name":"prompt","type":"multiline","value":"","required":true}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"Actuarás como un analista de datos avanzado. Tu objetivo es procesar y analizar el texto proporcionado para extraer información clave siguiendo especificaciones detalladas.\r\rTexto a analizar: \"[UserPrompt]\"\r\rCampos a extraer: \r[FieldList]\r\rInstrucciones:\r\r1. Estructura de Respuesta: Devuelve un objeto JSON conteniendo los campos extraídos del texto del usuario. La estructura debe seguir el formato especificado en la \"Lista de campos\".\r2. Valores Nulos: Asigna null a cualquier campo cuyo valor no pueda ser determinado a partir del texto proporcionado.\r3. Campos de Selección (Checkbox): Para estos campos, devuelve true, false o null según corresponda.\r4. Enfoque en la Lista de Campos: Extrae y procesa únicamente la información relacionada con los campos especificados en la \"Lista de campos\".\r5. Formato de Respuesta: La respuesta debe ser un objeto JSON limpio y bien estructurado.\r6. Formato de Fechas: Utiliza el formato \"yyyy-MM-dd HH:mm:ss\" para todos los campos de tipo Date y Datetime.\r7. Fecha Actual: Considera la fecha de ejecución de esta solicitud como \"[Date]\" para cualquier cálculo de tiempo relevante.\r\rAhora tu respuesta, solo en formato JSON definido:","en":"You will act as an advanced data analyst. Your goal is to process and analyze the provided text to extract key information following detailed specifications.\r\rText to analyze: \"[UserPrompt]\"\r\rFields to extract: \r[FieldList]\r\rInstructions:\r\r1. Response Structure: Return a JSON object containing the fields extracted from the user is text. The structure should follow the format specified in the \"Field List\".\r2. Null Values: Assign null to any field whose value cannot be determined from the provided text.\r3. Checkbox Fields: For these fields, return true, false, or null as appropriate.\r4. Focus on the Field List: Extract and process only the information related to the fields specified in the \"Field List\".\r5. Response Format: The response must be a clean and well-structured JSON object.\r6. Date Format: Use the \"yyyy-MM-dd HH:mm:ss\" format for all Date and Datetime fields.\r7. Current Date: Consider the execution date of this request as \"[Date]\" for any relevant time calculations.\r\rNow your response, only in the defined JSON format:","pt":"Você atuará como um analista de dados avançado. Seu objetivo é processar e analisar o texto fornecido para extrair informações chave seguindo especificações detalhadas.\r\rTexto para analisar: \"[UserPrompt]\"\r\rCampos para extrair: \r[FieldList]\r\rInstruções:\r\r1. Estrutura de Resposta: Retorne um objeto JSON contendo os campos extraídos do texto do usuário. A estrutura deve seguir o formato especificado na \"Lista de Campos\".\r2. Valores Nulos: Atribua null a qualquer campo cujo valor não possa ser determinado a partir do texto fornecido.\r3. Campos de Seleção (Checkbox): Para esses campos, retorne true, false ou null conforme apropriado.\r4. Foco na Lista de Campos: Extraia e processe apenas as informações relacionadas aos campos especificados na \"Lista de Campos\".\r5. Formato de Resposta: A resposta deve ser um objeto JSON limpo e bem estruturado.\r6. Formato de Datas: Use o formato \"yyyy-MM-dd HH:mm:ss\" para todos os campos de Data e DataHora.\r7. Data Atual: Considere a data de execução deste pedido como \"[Date]\" para quaisquer cálculos de tempo relevantes.\r\rAgora sua resposta, apenas no formato JSON definido:"},"required":true}]}',
	1,
	3
GO

EXEC [MD_AI_TASK] 3, 
	N'Voz a texto', 
	3, 
	N'{"es":{"name":"Voz a texto","description":"Transcribe una nota de voz a texto."},"en":{"name":"Voice to text","description":"Transcribes a voice note to text."},"pt":{"name":"Voz para texto","description":"Transcreve uma nota de voz para texto."}}', 
	0, 
	N'{}',
	1,
	5
GO

EXEC [MD_AI_TASK] 4, 
	N'Análisis de sentimiento', 
	2, 
	N'{"es":{"name":"Análisis de sentimiento","description":"Analiza el tono emocional detrás del texto proporcionado por el usuario. Utiliza un modelo especializado en procesamiento de lenguaje natural."},"en":{"name":"Sentiment Analysis","description":"Analyzes the emotional tone behind the text provided by the user. Uses a model specialized in natural language processing."},"pt":{"name":"Análise de Sentimento","description":"Analisa o tom emocional por trás do texto fornecido pelo usuário. Utiliza um modelo especializado em processamento de linguagem natural."}}', 
	1, 
	N'{"version":"1","params":[{"name":"max_tokens","type":"int","value":1000,"min":1,"max":4000,"required":true},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":0.7,"min":0,"max":2,"required":true},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":1,"required":true},{"name":"stop","type":"text","value":null,"required":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true},{"name":"prompt","type":"multiline","value":"","required":true}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"Instructions:\rFor each of the provided texts, which are identified by a unique identifier (\"id\"), please perform a sentiment analysis. The analysis should determine whether the sentiment of the text is \"positive\", \"negative\", or \"neutral\".\rIf you cannot identify the feeling, the value is \"neutral\".\rThe sentiment may be in Spanish, English, or Portuguese.\r\rInput Format:\rYou will receive a list, where each object will contain an \"id\" and a \"text\" that you should analyze. Below is an example of the format of the texts to be validated:\r\rid:1 - text: \"I am very happy with the service provided. Thank you.\"\rid:5 - text: \"¿Por qué mi producto aún no ha llegado? Esto es inaceptable.\"\rid:152 - text: \"I have a small problem with my bill, but it is no big deal.\"\r\rOutput Format:\rReturn the results of the analysis in a list of JSON objects. Each object should contain the original \"id\" and the analyzed \"sentiment\". The \"sentiment\" must be one of the following strings: \"positive\", \"negative\", \"neutral\". \rHere is an example of the expected output format.\rImportant: Reply exclusively in JSON format, as shown below:\r\r[\r{\"id\": \"1\", \"sentiment\": \"positive\"},\r{\"id\": \"5\", \"sentiment\": \"negative\"},\r{\"id\": \"152\", \"sentiment\": \"neutral\"}\r]\r\rPlease perform sentiment analysis of the following texts and reply exclusively in JSON format:\r\r[UserPrompt]","en":"Instructions:\rFor each of the provided texts, which are identified by a unique identifier (\"id\"), please perform a sentiment analysis. The analysis should determine whether the sentiment of the text is \"positive\", \"negative\", or \"neutral\".\rIf you cannot identify the feeling, the value is \"neutral\".\rThe sentiment may be in Spanish, English, or Portuguese.\r\rInput Format:\rYou will receive a list, where each object will contain an \"id\" and a \"text\" that you should analyze. Below is an example of the format of the texts to be validated:\r\rid:1 - text: \"I am very happy with the service provided. Thank you.\"\rid:5 - text: \"¿Por qué mi producto aún no ha llegado? Esto es inaceptable.\"\rid:152 - text: \"I have a small problem with my bill, but it is no big deal.\"\r\rOutput Format:\rReturn the results of the analysis in a list of JSON objects. Each object should contain the original \"id\" and the analyzed \"sentiment\". The \"sentiment\" must be one of the following strings: \"positive\", \"negative\", \"neutral\". \rHere is an example of the expected output format.\rImportant: Reply exclusively in JSON format, as shown below:\r\r[\r{\"id\": \"1\", \"sentiment\": \"positive\"},\r{\"id\": \"5\", \"sentiment\": \"negative\"},\r{\"id\": \"152\", \"sentiment\": \"neutral\"}\r]\r\rPlease perform sentiment analysis of the following texts and reply exclusively in JSON format:\r\r[UserPrompt]","pt":"Instructions:\rFor each of the provided texts, which are identified by a unique identifier (\"id\"), please perform a sentiment analysis. The analysis should determine whether the sentiment of the text is \"positive\", \"negative\", or \"neutral\".\rIf you cannot identify the feeling, the value is \"neutral\".\rThe sentiment may be in Spanish, English, or Portuguese.\r\rInput Format:\rYou will receive a list, where each object will contain an \"id\" and a \"text\" that you should analyze. Below is an example of the format of the texts to be validated:\r\rid:1 - text: \"I am very happy with the service provided. Thank you.\"\rid:5 - text: \"¿Por qué mi producto aún no ha llegado? Esto es inaceptable.\"\rid:152 - text: \"I have a small problem with my bill, but it is no big deal.\"\r\rOutput Format:\rReturn the results of the analysis in a list of JSON objects. Each object should contain the original \"id\" and the analyzed \"sentiment\". The \"sentiment\" must be one of the following strings: \"positive\", \"negative\", \"neutral\". \rHere is an example of the expected output format.\rImportant: Reply exclusively in JSON format, as shown below:\r\r[\r{\"id\": \"1\", \"sentiment\": \"positive\"},\r{\"id\": \"5\", \"sentiment\": \"negative\"},\r{\"id\": \"152\", \"sentiment\": \"neutral\"}\r]\r\rPlease perform sentiment analysis of the following texts and reply exclusively in JSON format:\r\r[UserPrompt]"},"required":true}]}',
	1,
	6
GO

EXEC [MD_AI_TASK] 5, 
	N'Extracción de campos tipo lista', 
	2, 
	N'{"es":{"name":"Extracción de valores de campos tipo lista","description":"Permite la extracción de campos adicionales tipo lista. Para garantizar su correcta funcionalidad, es necesario que la acción ''Extracción de valores de campos'' esté previamente configurada."},"en":{"name":"Extraction of values from list-type fields","description":"Allows the extraction of additional list-type fields. To ensure its proper functionality, it is necessary for the ''Field Value Extraction'' action to be configured beforehand."},"pt":{"name":"Extração de valores de campos do tipo lista","description":"Permite a extração de campos adicionais do tipo lista. Para garantir sua funcionalidade correta, é necessário que a ação ''Extração de valores de campos'' esteja configurada previamente."}}', 
	1, 
	N'{"version":"1","params":[{"name":"max_tokens","type":"int","value":350,"min":1,"max":16000,"required":true,"hidden":false},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":1,"required":true,"hidden":false},{"name":"stop","type":"text","value":null,"required":false,"hidden":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"prompt","type":"multiline","value":"","required":true,"hidden":false}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"Estructura de Entrada:\r\r- <listasObjetivo>: Contiene diversas listas en formato json, cada una identificada por un identificador único con valores asociados.\r- <objetosDeBusqueda>: Detalles de lo que se necesita buscar dentro de las listas objetivo.\r\r\r<listasObjetivo>\r\r[listasObjetivo]\r\r</listasObjetivo>\r\r\r<objetosDeBusqueda>\r\r[InstruccionesBusqueda]\r\r</objetosDeBusqueda>\r\rInstrucciones:\r\rDeberás actuar como un motor de búsqueda dentro de una estructura JSON dada, buscando coincidencias para cada <objetosDeBusqueda> dentro de su respectiva <listasObjetivo>. Se requiere identificar la coincidencia más próxima basándote en el \"criterioBusqueda\", incluso si no es exacta. Asegúrate de manejar variantes ortográficas o coincidencias parciales. Si no existe una coincidencia, no se debe forzar el hallazgo.\r\rCada \"objetoDeBusqueda\" incluirá:\r- \"listaObjetivo\": Identificador único de la lista a buscar.\r- \"idCampo\": Identificador del campo a comparar.\r- \"criterioBusqueda\": Criterio a utilizar para encontrar coincidencias.\r\rResultado esperado:\r\rDeberás retornar un objeto JSON con los resultados, incluyendo \"idCampo\" y \"resultadoId\" para cada búsqueda realizada. \"resultadoId\" será el ID del elemento que mejor coincida o 0 si no hay coincidencias.\r\rFormato de respuesta esperado:\r\r[\r\t{ \"idCampo\": \"ejemploIdCampo\", \"resultadoId\": \"ejemploResultadoId\" },\r\t...\r]\r\rAhora tu respuesta, solo en formato JSON definido:","en":"Input Structure:\r\r- <targetLists>: Contains various lists in json format, each identified by a unique identifier with associated values.\r- <searchObjects>: Details of what needs to be searched within the target lists.\r\r<targetLists>\r\r[listasObjetivo]\r\r</targetLists>\r\r<searchObjects>\r\r[InstruccionesBusqueda]\r\r</searchObjects>\r\rInstructions:\r\rYou will act as a search engine within a given JSON structure, looking for matches for each <searchObjects> within its respective <targetLists>. It is required to identify the closest match based on the \"criterioBusqueda\", even if it is not exact. Make sure to handle spelling variants or partial matches. If there is no match, a finding should not be forced.\r\rEach \"searchObject\" will include:\r\r\"listaObjetivo\": Unique identifier of the list to be searched.\r\"idCampo\": Identifier of the field to compare.\r\"criterioBusqueda\": Criterion to use to find matches.\rExpected Result:\r\rYou should return a JSON object with the results, including \"idCampo\" and \"resultadoId\" for each search performed. \"resultadoId\" will be the ID of the element that best matches or 0 if there are no matches.\r\rExpected response format:\r\r[\r{ \"idCampo\": \"ejemploIdCampo\", \"resultadoId\": \"ejemploResultadoId\" },\r...\r]\r\rYour answer now, only in the defined JSON format:","pt":"Estrutura de Entrada:\r\r- <listasObjetivo>: Contém várias listas em formato json, cada uma identificada por um identificador único com valores associados.\r- <objetosDeBusca>: Detalhes do que precisa ser buscado dentro das listas objetivo.\r\r<listasObjetivo>\r\r[listasObjetivo]\r\r</listasObjetivo>\r\r<objetosDeBusca>\r\r[InstruccionesBusqueda]\r\r</objetosDeBusca>\r\rInstruções:\r\rVocê deve agir como um motor de busca dentro de uma estrutura JSON dada, procurando correspondências para cada <objetosDeBusca> dentro de sua respectiva <listasObjetivo>. É necessário identificar a correspondência mais próxima baseando-se no \"criterioBusqueda\", mesmo que não seja exata. Certifique-se de lidar com variantes ortográficas ou correspondências parciais. Se não existir uma correspondência, não deve ser forçada a descoberta.\r\rCada \"objetoDeBusca\" incluirá:\r\r- \"listaObjetivo\": Identificador único da lista a ser buscada.\r- \"idCampo\": Identificador do campo a comparar.\r- \"criterioBusqueda\": Critério a utilizar para encontrar correspondências.\r\rResultado esperado:\r\rVocê deverá retornar um objeto JSON com os resultados, incluindo \"idCampo\" e \"resultadoId\" para cada busca realizada. \"resultadoId\" será o ID do elemento que melhor corresponda ou 0 se não houver correspondências.\r\rFormato de resposta esperado:\r\r[\r{ \"idCampo\": \"exemploIdCampo\", \"resultadoId\": \"exemploResultadoId\" },\r...\r]\r\rAgora a sua resposta, apenas no formato JSON definido:"},"required":true}]}',
	1,
	4
GO

EXEC [MD_AI_TASK] 6, 
	N'Generación automática de artículos', 
	2, 
	N'{"es":{"name":"Generación automática de artículos","description":"Transforma descripciones y soluciones de casos en artículos completos mediante modelos conversacionales. Recomendado para uso con amplias ventanas de contexto, superiores a 16K tokens."},"en":{"name":"Automatic article generation","description":"Transforms case descriptions and solutions into complete articles using conversational models. Recommended for use with wide context windows, greater than 16K tokens."},"pt":{"name":"Geração automática de artigos","description":"Transforma descrições e soluções de casos em artigos completos por meio de modelos conversacionais. Recomendado para uso com amplas janelas de contexto, superiores a 16K tokens."}}', 
	1, 
	N'{"version":"2","params":[{"name":"max_tokens","type":"int","value":7000,"min":1,"max":32000,"required":true,"hidden":false},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":1,"required":true,"hidden":false},{"name":"stop","type":"text","value":null,"required":false,"hidden":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"prompt","type":"multiline","value":"","required":true,"hidden":false}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"<CasoSoporte>\r\n  <InformacionCaso>\r\n    [DescriptionItem]\r\n  </InformacionCaso>\r\n\r\n  <SolucionCaso>\r\n    [SolutionItem]\r\n  </SolucionCaso>\r\n</CasoSoporte>\r\n\r\nEres un experto generador de contenido técnico en formato HTML. Tu tarea consiste en analizar la información proporcionada en dos secciones, `<InformacionCaso>` y `<SolucionCaso>`, para crear un artículo técnico formal en HTML que documente el caso presentado.\r\n\r\nRequisitos del artículo:\r\n\r\n1. Estructura HTML:\r\n   - Utiliza etiquetas semánticas (article, section, header, etc.)\r\n   - Organiza el contenido con h1, h2, h3 según corresponda\r\n   - Usa elementos para mejorar legibilidad (ul, ol, blockquote, code)\r\n   - No incluir imágenes\r\n\r\n2. Contenido:\r\n   - Título descriptivo que resuma el problema\r\n   - Introducción que contextualice el caso\r\n   - Descripción detallada del problema\r\n   - Solución paso a paso\r\n   - Conclusión con recomendaciones\r\n\r\n3. Estilo y formato:\r\n   - Tono formal y técnico\r\n   - Párrafos concisos y bien estructurados\r\n   - Uso de listas para pasos o puntos clave\r\n   - Referencias técnicas cuando sea relevante\r\n   - Formato consistente en todo el documento\r\n\r\n**Manejo de casos incompletos o irrelevantes**:\r\n- Si consideras que la información proporcionada en `<InformacionCaso>` o `<SolucionCaso>` no es suficiente o no es relevante para generar un artículo útil, crea un HTML que indique claramente que la información no es adecuada para generar un contenido significativo.\r\n\r\n[AdditionalRules]\r\n\r\nEl HTML resultante debe ser válido y seguir las mejores prácticas.","en":"<SupportCase>\r\n  <CaseInformation>\r\n    [DescriptionItem]\r\n  </CaseInformation>\r\n\r\n  <CaseSolution>\r\n    [SolutionItem]\r\n  </CaseSolution>\r\n</SupportCase>\r\n\r\nYou are an expert technical content generator in HTML format. Your task is to analyze the information provided in two sections, `<CaseInformation>` and `<CaseSolution>`, to create a formal technical article in HTML that documents the presented case.\r\n\r\nArticle requirements:\r\n\r\n1. HTML Structure:\r\n   - Use semantic tags (article, section, header, etc.)\r\n   - Organize content with h1, h2, h3 as appropriate\r\n   - Use elements to improve readability (ul, ol, blockquote, code)\r\n   - Do not include images\r\n\r\n2. Content:\r\n   - Descriptive title summarizing the problem\r\n   - Introduction contextualizing the case\r\n   - Detailed problem description\r\n   - Step-by-step solution\r\n   - Conclusion with recommendations\r\n\r\n3. Style and format:\r\n   - Formal and technical tone\r\n   - Concise and well-structured paragraphs\r\n   - Use lists for steps or key points\r\n   - Technical references when relevant\r\n   - Consistent formatting throughout the document\r\n\r\n**Handling incomplete or irrelevant cases**:\r\n- If you consider that the information provided in `<CaseInformation>` or `<CaseSolution>` is insufficient or not relevant to generate a useful article, create an HTML that clearly indicates that the information is not adequate to generate meaningful content.\r\n\r\n[AdditionalRules]\r\n\r\nThe resulting HTML must be valid and follow best practices.","pt":"<CasoSuporte>\r\n  <InformacaoCaso>\r\n    [DescriptionItem]\r\n  </InformacaoCaso>\r\n\r\n  <SolucaoCaso>\r\n    [SolutionItem]\r\n  </SolucaoCaso>\r\n</CasoSuporte>\r\n\r\nVocê é um especialista em geração de conteúdo técnico em formato HTML. Sua tarefa consiste em analisar as informações fornecidas em duas seções, `<InformacaoCaso>` e `<SolucaoCaso>`, para criar um artigo técnico formal em HTML que documente o caso apresentado.\r\n\r\nRequisitos do artigo:\r\n\r\n1. Estrutura HTML:\r\n   - Utilize tags semânticas (article, section, header, etc.)\r\n   - Organize o conteúdo com h1, h2, h3 conforme apropriado\r\n   - Use elementos para melhorar a legibilidade (ul, ol, blockquote, code)\r\n   - Não incluir imagens\r\n\r\n2. Conteúdo:\r\n   - Título descritivo que resuma o problema\r\n   - Introdução que contextualize o caso\r\n   - Descrição detalhada do problema\r\n   - Solução passo a passo\r\n   - Conclusão com recomendações\r\n\r\n3. Estilo e formato:\r\n   - Tom formal e técnico\r\n   - Parágrafos concisos e bem estruturados\r\n   - Uso de listas para passos ou pontos-chave\r\n   - Referências técnicas quando relevante\r\n   - Formatação consistente em todo o documento\r\n\r\n**Tratamento de casos incompletos ou irrelevantes**:\r\n- Se você considerar que as informações fornecidas em `<InformacaoCaso>` ou `<SolucaoCaso>` são insuficientes ou não relevantes para gerar um artigo útil, crie um HTML que indique claramente que as informações não são adequadas para gerar conteúdo significativo.\r\n\r\n[AdditionalRules]\r\n\r\nO HTML resultante deve ser válido e seguir as melhores práticas."},"required":true}]}',
	1,
	8
GO

EXEC [MD_AI_TASK] 7, 
	N'Mejora de redacción',
	2,
	N'{"es":{"name":"Mejora de redacción","description":"Optimiza la claridad, coherencia y estilo del texto proporcionado."},"en":{"name":"Writing Improvement","description":"Optimize the clarity, coherence, and style of the provided text."},"pt":{"name":"Melhoria de Redação","description":"Otimize a clareza, coerência e estilo do texto fornecido."}}', 
	1,	
	N'{"version":"2","params":[{"name":"max_tokens","type":"int","value":3000,"min":1,"max":4000,"required":true,"hidden":false},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":1,"required":true,"hidden":false},{"name":"stop","type":"text","value":null,"required":false,"hidden":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"prompt","type":"multiline","value":"","required":true,"hidden":false}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"Texto a mejorar:```\r\n[TextToImprove]\r\n```\r\n\r\nEres un experto en comunicaciones encargado de refinar la redacción del texto anterior. Tu objetivo es asegurar un alto nivel de calidad, claridad y coherencia en el contenido generado.\r\n\r\n## Instrucciones:\r\n\r\n1. **Coherencia y Organización**: Garantiza que el texto sea coherente, esté bien organizado y fluya de manera natural, respetando la estructura original.\r\n\r\n2. **Lenguaje Profesional**: Usa un lenguaje profesional y adecuado para el contexto del texto.\r\n\r\n3. **Conservación del Contenido Original**: \r\n   - **Elementos `[[IMAGE]]`**: Si el texto original contiene etiquetas `[[IMAGE]]`, estas deben conservarse exactamente como aparecen, en las mismas ubicaciones.\r\n   - **Sin Creación de Nuevos Elementos**: No añadas etiquetas `[[IMAGE]]` si no están presentes en el texto original.\r\n\r\n4. **Respuesta en HTML**: Devuelve la respuesta únicamente en HTML utilizando elementos como `<p>`, `<ul>`, `<ol>`, `<table>` y `<b>` para mejorar la claridad y presentación del contenido. **No incluyas etiquetas como `<img>` para representar `[[IMAGE]]`.**\r\n\r\n5. **Validación del Resultado**: Asegúrate de que el HTML devuelto sea válido, claro y cumpla con todas las instrucciones mencionadas, incluyendo:\r\n   - La conservación y ubicación correcta de las etiquetas `[[IMAGE]]` (si están presentes).\r\n   - La ausencia de cualquier etiqueta `[[IMAGE]]` si no existía en el texto original.\r\n\r\n[AdditionalInstructions]","en":"Text to improve:```\r\n[TextToImprove]\r\n```\r\n\r\nYou are a communications expert in charge of refining the writing of the above text. Your goal is to ensure a high level of quality, clarity, and coherence in the generated content.\r\n\r\n## Instructions:\r\n\r\n1. **Coherence and Organization**\r\n   - Ensure that the text is coherent, well-organized, and flows naturally\r\n   - Respect the original structure\r\n\r\n2. **Professional Language**\r\n   - Use professional and context-appropriate language\r\n\r\n3. **Original Content Preservation**\r\n   - **`[[IMAGE]]` Elements**: If the original text contains `[[IMAGE]]` tags, these must be preserved exactly as they appear, in the same locations\r\n   - **No Creation of New Elements**: Do not add `[[IMAGE]]` tags if they are not present in the original text\r\n\r\n4. **HTML Response**\r\n   - Return the response only in HTML using elements such as `<p>`, `<ul>`, `<ol>`, `<table>`, and `<b>` to improve content clarity and presentation\r\n   - **Do not include tags like `<img>` to represent `[[IMAGE]]`**\r\n\r\n5. **Result Validation**\r\n   - Ensure that the returned HTML is valid, clear, and complies with all mentioned instructions\r\n   - Verify the preservation and correct placement of `[[IMAGE]]` tags (if present)\r\n   - Confirm the absence of any `[[IMAGE]]` tags if they didn''t exist in the original text\r\n\r\n[AdditionalInstructions]","pt":"Texto para melhorar:```\r\n[TextToImprove]\r\n```\r\n\r\nVocê é um especialista em comunicações encarregado de refinar a redação do texto acima. Seu objetivo é garantir um alto nível de qualidade, clareza e coerência no conteúdo gerado.\r\n\r\n## Instruções:\r\n\r\n1. **Coerência e Organização**\r\n   - Garanta que o texto seja coerente, bem organizado e flua naturalmente\r\n   - Respeite a estrutura original\r\n\r\n2. **Linguagem Profissional**\r\n   - Use uma linguagem profissional e adequada ao contexto do texto\r\n\r\n3. **Preservação do Conteúdo Original**\r\n   - **Elementos `[[IMAGE]]`**: Se o texto original contiver tags `[[IMAGE]]`, estas devem ser preservadas exatamente como aparecem, nas mesmas localizações\r\n   - **Sem Criação de Novos Elementos**: Não adicione tags `[[IMAGE]]` se não estiverem presentes no texto original\r\n\r\n4. **Resposta em HTML**\r\n   - Retorne a resposta apenas em HTML utilizando elementos como `<p>`, `<ul>`, `<ol>`, `<table>` e `<b>` para melhorar a clareza e apresentação do conteúdo\r\n   - **Não inclua tags como `<img>` para representar `[[IMAGE]]`**\r\n\r\n5. **Validação do Resultado**\r\n   - Certifique-se de que o HTML retornado seja válido, claro e cumpra todas as instruções mencionadas\r\n   - Verifique a preservação e localização correta das tags `[[IMAGE]]` (se presentes)\r\n   - Confirme a ausência de quaisquer tags `[[IMAGE]]` se não existiam no texto original\r\n\r\n[AdditionalInstructions]"},"required":true}]}',
	1,
	9
GO

EXEC [MD_AI_TASK] 8, 
	N'Consulta de base de conocimiento', 
	4, 
	N'{"es":{"name":"Búsqueda inteligente en la base de conocimiento","description":"Responde a preguntas hechas por los usuarios en lenguaje natural, a través de la búsqueda en el contenido y los adjuntos de la base de conocimiento (archivos compatibles con el proveedor de servicios de IA)"},"en":{"name":"Smart search in the knowledge base","description":"Answers questions posed by users in natural language by searching the content and attachments of the knowledge base (files supported by the AI service provider)."},"pt":{"name":"Busca inteligente na base de conhecimento","description":"Responde a perguntas feitas pelos usuários em linguagem natural, através da busca no conteúdo e nos anexos da base de conhecimento (arquivos compatíveis com o provedor de serviços de IA)."}}', 
	1, 
	N'{"version":"3","params":[{"name":"max_num_chunks","type":"int","value":10,"min":1,"max":50,"required":false,"hidden":false},{"name":"max_chunk_size_tokens","type":"int","value":800,"min":100,"max":4096,"required":false,"hidden":false},{"name":"chunk_overlap_tokens","type":"int","value":400,"min":50,"max":2048,"required":false,"hidden":false},{"name":"expiration_days","type":"int","value":null,"min":1,"max":365,"required":false,"hidden":true},{"name":"max_prompt_tokens","type":"int","value":null,"min":1,"max":32000,"required":false,"hidden":true},{"name":"max_completion_tokens","type":"int","value":null,"min":1,"max":32000,"required":false,"hidden":true},{"name":"last_messages","type":"int","value":null,"min":2,"max":100,"required":false,"hidden":true},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":1,"required":true,"hidden":false},{"name":"instructions","type":"multiline","value":"","required":true,"hidden":false},{"name":"instructions_list_search","type":"multiline","value":"","required":true,"hidden":false},{"name":"instructions_search_case_solution","type":"multiline","value":"","required":true,"hidden":false}],"paramsByLanguage":[{"name":"instructions","type":"multiline","value":{"es":"Actúa como un asistente especializado en consulta de documentación.\r\n\r\nReglas base:\r\n- No uses conocimiento externo bajo ninguna circunstancia\r\n- No hagas inferencias ni interpretaciones más allá de los documentos\r\n- Si la información no existe en los documentos, responde: \"No se encuentra esta información en la documentación disponible\"\r\n\r\nAnálisis y organización:\r\n- Analiza el contexto de la pregunta para determinar la mejor estructura\r\n- Organiza la información jerárquicamente usando Markdown\r\n- Responda únicamente utilizando los conocimientos de los archivos proporcionados\r\n\r\nPara cada respuesta:\r\n1. Estructura lógicamente el contenido\r\n2. Cita la fuente al final\r\n3. Mantén el tono del usuario\r\n4. No uses conocimiento externo ni hagas inferencias\r\n5. Siempre las respuestas deben ser en el idioma [TranslateLanguage]","en":"","pt":""},"required":true},{"name":"instructions_list_search","type":"multiline","value":{"es":"Actúa como un asistente especializado en consulta de documentación.\r\n\r\nReglas base:\r\n- No uses conocimiento externo bajo ninguna circunstancia\r\n- No hagas inferencias ni interpretaciones más allá de los documentos\r\n- Si la información no existe en los documentos, retorna un array vacío:\r\n  []\r\n- No duplicar resultados bajo ninguna circunstancia\r\n- Adapta al idioma de la pregunta\r\n- Retorna ÚNICAMENTE el array JSON sin texto adicional ni explicaciones\r\n- Máximo 7 resultados, pero solo incluir los que sean realmente relevantes\r\n\r\nAnálisis y organización:\r\n- Analiza el contexto de la pregunta\r\n- Busca los documentos relevantes que respondan a la consulta\r\n- Ordena los resultados por relevancia (del más al menos relevante)\r\n- Incluye solo resultados únicos y verdaderamente relacionados\r\n- Estructura la respuesta como un array de objetos JSON:\r\n  [\r\n    {\r\n      \"Title\": \"<Título traducido al [TranslateLanguage]>\",\r\n      \"Description\": \"<Breve resumen de de 2-3 líneas, traducida al [TranslateLanguage]>\",\r\n      \"FileCitation\": \"file-abc123\" // ID del archivo\r\n    }\r\n  ]\r\n\r\nCriterios de relevancia:\r\n1. Coincidencia directa con la consulta\r\n2. Cantidad de información útil relacionada\r\n3. Especificidad de la respuesta al problema\r\n\r\nFormato de respuesta:\r\n- Solo retornar el JSON sin texto adicional\r\n- No incluir explicaciones ni comentarios\r\n- No usar markdown ni formateo adicional\r\n- No duplicar contenido para llenar resultados\r\n- Retornar solo los resultados verdaderamente relevantes (máximo 7)\r\n- Usar el ID del archivo en la propiedad \"FileCitation\"\r\n- En la respuesta Json, debe traducir el contenido de \"Title\" y \"Description\" al idioma [TranslateLanguage]","en":"","pt":""},"required":true},{"name":"instructions_search_case_solution","type":"multiline","value":{"es":"Actúa como un asistente especializado en búsqueda precisa y relevante utilizando artículos de una base de conocimientos (KB). Sigue estrictamente estas instrucciones:\r\n\r\n### Restricciones sobre Fuentes:\r\n- Usa únicamente el contenido proporcionado en los artículos.\r\n- No emplees conocimiento interno del modelo ni información externa.\r\n- Si no encuentras coincidencias relevantes, responde estrictamente con: []\r\n\r\n### Procesamiento de Consultas:\r\n1. Analiza cuidadosamente la consulta del usuario para comprender el contexto del problema.\r\n2. Identifica artículos relevantes que mencionen claramente posibles causas y soluciones relacionadas con el problema planteado.\r\n3. Prioriza artículos que contengan tanto las causas como las soluciones.\r\n4. Selecciona hasta un máximo de 4 artículos relevantes, ordenados de mayor a menor relevancia.\r\n\r\n### Formato de Respuesta (estrictamente JSON):\r\nCada artículo en el arreglo JSON debe incluir los siguientes campos:\r\n\r\n- **Title**: Título del artículo.\r\n- **Description**: Una descripción donde se incluya:\r\n  - Posibles causas del problema descritas en el artículo, proporcionando contexto amplio y específico.\r\n  - Soluciones propuestas en el artículo, utilizando lenguaje técnico pero comprensible. Extiende cada descripción hasta aproximadamente 8 líneas.\r\n- **FileCitation**: Identificador del archivo.\r\n\r\nDevuelve la respuesta exclusivamente en el siguiente formato JSON:\r\n\r\n```json\r\n[\r\n  {    \r\n    \"Title\": \"<Título traducido al [TranslateLanguage]>\",\r\n    \"Description\": \"<Descripción detallada traducida al [TranslateLanguage]>\",\r\n    \"FileCitation\": \"file-abc123\"\r\n  }\r\n]\r\n```\r\n\r\n- No incluyas comentarios, explicaciones adicionales ni texto fuera del JSON especificado.","en":"","pt":""},"required":true}]}',
	1,
	7
GO

EXEC [MD_AI_TASK] 9, 
	N'Categorización automática por asistente', 
	4, 
	N'{"es":{"name":"Categorización automática por asistente","description":"Se encarga de hallar el proyecto, servicio y categoría a partir del prompt del usuario. Utiliza un asistente de IA para realizar una búsqueda en las categorías de los proyectos asignados al usuario."},"en":{"name":"Automatic categorization by assistant","description":"Finds the project, service and category from the user prompt. It uses an AI assistant to search through the categories of projects assigned to the user."},"pt":{"name":"Categorização automática por assistente","description":"Responsável por encontrar o projeto, serviço e categoria a partir do prompt do usuário. Utiliza um assistente de IA para realizar uma busca nas categorias dos projetos atribuídos ao usuário."}}', 
	1, 
	N'{"version":"1","params":[{"name":"instructions","type":"multiline","value":"","required":true,"hidden":false},{"name":"max_num_chunks","type":"int","value":10,"min":1,"max":50,"required":false,"hidden":false},{"name":"max_chunk_size_tokens","type":"int","value":800,"min":100,"max":4096,"required":false,"hidden":false},{"name":"chunk_overlap_tokens","type":"int","value":400,"min":50,"max":2048,"required":false,"hidden":false},{"name":"expiration_days","type":"int","value":null,"min":1,"max":365,"required":false,"hidden":true},{"name":"max_prompt_tokens","type":"int","value":null,"min":1,"max":32000,"required":false,"hidden":true},{"name":"max_completion_tokens","type":"int","value":null,"min":1,"max":32000,"required":false,"hidden":true},{"name":"last_messages","type":"int","value":null,"min":2,"max":100,"required":false,"hidden":true},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":2,"required":true,"hidden":false},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":1,"required":true,"hidden":false},{"name":"call_tool","type":"text","value":"FileSearch","required":true,"hidden":true},{"name":"vector_type","type":"text","value":"Projects","required":true,"hidden":true},{"name":"dynamic_vector","type":"bool","value":true,"required":true,"hidden":true},{"name":"delete_vector_first_time","type":"bool","value":true,"required":true,"hidden":true}],"paramsByLanguage":[{"name":"instructions","type":"multiline","value":{"es":"Eres un sistema experto en categorización de solicitudes para ITSM. Tu función es analizar la intención del usuario y clasificarla con precisión las solicitudes de usuarios, manejar ambigüedades, y proporcionar las mejores coincidencias posibles.\r\n\r\n## PROCESO DE ANÁLISIS Y CLASIFICACIÓN\r\n\r\n1. **Análisis de la intención:**\r\n   - Identifica palabras clave, frases y conceptos centrales en cualquier idioma.\r\n   - Determina el contexto general y la naturaleza de la solicitud (Incidente, Cambio, Requerimiento de servicio).\r\n   - Considera variaciones lingüísticas y culturales en la expresión de necesidades.\r\n\r\n2. **Búsqueda semántica priorizada:**\r\n   1. CategoryDescription\r\n   2. CategoryName\r\n   3. ServiceName\r\n   4. ProjectName\r\n\r\n3. **Selección de coincidencias:**\r\n   - Identifica las (3) coincidencias más relevantes y precisas.\r\n   - Si solo hay una coincidencia clara, retorna solo esa.\r\n   - En caso de ambigüedad, prioriza basándote en Proyecto y Servicio.\r\n   - Verifica que las coincidencias si les aplique los tipos de caso disponibles (TypeCases).\r\n\r\n4. **Determinación del tipo de caso:**\r\n   - Analiza los tipos de caso disponibles para cada combinación de Proyecto, Servicio y Categoría.\r\n   - Selecciona el tipo más apropiado según la naturaleza de la solicitud:\r\n     * Incidente (1): Evento que interrumpe o degrada un servicio de TI, requiriendo atención inmediata.\r\n     * Cambio (3):  Modificación en el entorno de TI que puede afectar los servicios y requiere gestión cuidadosa.\r\n     * Requerimiento de servicio (4):  Solicitud de usuario para una acción de servicio acordada dentro de la operación normal.\r\n   - Si el tipo de caso apropiado no está disponible, determina si existe uno más cercano de los disponibles unicamente.\r\n\r\n## REGLAS CRÍTICAS\r\n\r\n- Utiliza ÚNICAMENTE información presente en los vectores.\r\n- NO inventes o asumas IDs o información no existente en los datos.\r\n- Devuelve MÁXIMO (3) coincidencias, ordenadas por relevancia.\r\n- Asegúrate de que todos los IDs (ProjectId, ServiceId, CategoryId, TypeId) existan en el JSON y sean numéricos.\r\n- El TypeId debe reflejar correctamente la naturaleza de la solicitud y estar disponible para la combinación específica de Proyecto, Servicio y Categoría.\r\n\r\n## FORMATO DE RESPUESTA\r\n\r\nResponde EXCLUSIVAMENTE con un array JSON conteniendo objetos con los IDs numéricos correspondientes:\r\n\r\n```json\r\n[\r\n  {\r\n    \"ProjectId\": [número],\r\n    \"ServiceId\": [número],\r\n    \"CategoryId\": [número],\r\n    \"TypeId\": [número]\r\n  },...\r\n]\r\n```\r\n\r\nNO incluyas explicaciones, comentarios o texto adicional en la respuesta. La salida debe ser únicamente el JSON especificado.","en":"","pt":""},"required":true}]}',
	1,
	2
GO

EXEC [MD_AI_TASK] 10, 
	N'Asignación de grupos responsable',
	2,
	N'{"es":{"name":"Asignación de grupos responsable","description":"Analiza el asunto y la descripción del caso al momento de su creación en la consola de especialista, y sugiere automáticamente el grupo más apropiado para su atención."},"en":{"name":"Assignment of responsible groups","description":"Analyze the subject and case description at the time of creation in the specialist console, and automatically suggest the most appropriate group for handling it."},"pt":{"name":"Atribuição de grupo responsável","description":"Analise o assunto e a descrição do caso no momento da criação no console do especialista, e sugira automaticamente o grupo mais apropriado para atendê-lo."}}', 
	1,	
	N'{"version":"1","params":[{"name":"max_tokens","type":"int","value":400,"min":1,"max":1000,"required":true},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1,"min":0,"max":2,"required":true},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":1,"required":true},{"name":"stop","type":"text","value":null,"required":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true},{"name":"prompt","type":"multiline","value":"","required":true}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"Eres un experto en ITSM (IT Service Management). Tu tarea es seleccionar los grupos más apropiados para gestionar el caso basándote en el asunto y descripción proporcionados.\r\n\r\nENTRADA:\r\n- Grupos disponibles:\r\n```json \r\n[GroupsPrompt]\r\n```\t\r\n\r\n- Asunto del caso: [Subject]\r\n- Descripción del caso: [Description]\r\n\r\nREGLAS DE SELECCIÓN:\r\n1. Análisis contextual:\r\n   - Identifica el tipo de servicio o necesidad principal\r\n   - Evalúa el alcance y complejidad del caso\r\n   - Considera dependencias técnicas o funcionales\r\n \r\n2. Criterios de cantidad:\r\n   - Selecciona entre 1 y [MaximumObjects] grupos máximo\r\n   - Incluye grupos adicionales solo si aportan valor específico\r\n \r\n3. Orden de preferencia:\r\n   - Prioriza grupos con capacidades específicas para el caso\r\n   - Si el caso es general, selecciona el grupo más adecuado por su ámbito de servicio\r\n\r\nSALIDA:\r\nArray JSON con formato:\r\n[{\r\n    \"Id\": number,\r\n    \"Name\": string\r\n}]\r\n\r\nSolo devuelve el array JSON, sin explicaciones adicionales.","en":"You are an ITSM (IT Service Management) expert. Your task is to select the most appropriate groups to manage the case based on the provided subject and description.\r\n\r\nINPUT:\r\n- Available groups:\r\n```json \r\n[GroupsPrompt]\r\n```\t\r\n\r\n- Case subject: [Subject]\r\n- Case description: [Description]\r\n\r\nSELECTION RULES:\r\n1. Contextual analysis:\r\n   - Identify the main service or need\r\n   - Evaluate case scope and complexity\r\n   - Consider technical or functional dependencies\r\n \r\n2. Quantity criteria:\r\n   - Select between 1 and [MaximumObjects] groups maximum\r\n   - Include additional groups only if they add specific value\r\n \r\n3. Order of preference:\r\n   - Prioritize groups with specific capabilities for the case\r\n   - If case is general, select most suitable group by service scope\r\n\r\nOUTPUT:\r\nJSON array with format:\r\n[{\r\n    \"Id\": number,\r\n    \"Name\": string\r\n}]\r\n\r\nReturn only the JSON array, without additional explanations.","pt":"Você é um especialista em ITSM (Gerenciamento de Serviços de TI). Sua tarefa é selecionar os grupos mais apropriados para gerenciar o caso com base no assunto e descrição fornecidos.\r\n\r\nENTRADA:\r\n- Grupos disponíveis:\r\n```json \r\n[GroupsPrompt]\r\n```\t\r\n\r\n- Assunto do caso: [Subject]\r\n- Descrição do caso: [Description]\r\n\r\nREGRAS DE SELEÇÃO:\r\n1. Análise contextual:\r\n   - Identifique o tipo de serviço ou necessidade principal\r\n   - Avalie o escopo e complexidade do caso\r\n   - Considere dependências técnicas ou funcionais\r\n \r\n2. Critérios de quantidade:\r\n   - Selecione entre 1 e [MaximumObjects] grupos no máximo\r\n   - Inclua grupos adicionais apenas se agregarem valor específico\r\n \r\n3. Ordem de preferência:\r\n   - Priorize grupos com capacidades específicas para o caso\r\n   - Se o caso for geral, selecione o grupo mais adequado por escopo de serviço\r\n\r\nSAÍDA:\r\nArray JSON com formato:\r\n[{\r\n    \"Id\": number,\r\n    \"Name\": string\r\n}]\r\n\r\nRetorne apenas o array JSON, sem explicações adicionais."},"required":true}]}',
	1,
	10
GO

EXEC [MD_AI_TASK] 11, 
	N'Resumen de caso',
	2,
	N'{"es":{"name":"Resumen de caso","description":"Analiza la información del caso y genera un resumen, ya sea básico o detallado, según las necesidades."},"en":{"name":"Case Summary","description":"Analyzes case information and generates a summary, either basic or detailed, based on requirements."},"pt":{"name":"Resumo de caso","description":"Analisa as informações do caso e gera um resumo, seja básico ou detalhado, conforme as necessidades."}}', 
	1,	
	N'{"version":"1","params":[{"name":"max_tokens","type":"int","value":8000,"min":500,"max":16000,"required":true},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1,"min":0,"max":2,"required":true},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1.0,"min":0,"max":1,"required":true},{"name":"stop","type":"text","value":null,"required":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0.0,"min":0,"max":2,"required":true},{"name":"prompt","type":"multiline","value":"","required":true}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"Rol: Eres un sistema avanzado de generación de resúmenes de casos. Tu tarea es analizar información \rdetallada sobre un caso, extraer los datos más relevantes y estructurarlos de manera clara y comprensible. \rDebes presentar el resumen en un formato organizado, resaltando los puntos clave mediante viñetas, tablas \ro elementos visuales cuando sea necesario.\r\rEntrada: A continuacion se muestra la informacion detallada del caso\r\r[CaseDetails]\r\r```promptBasic\rPasos: \r1. Extrae el título, la descripción y el estado actual del caso.\r2. Si el caso está **solucionado y/o cerrado**, incluye la solución entregada.  \r3. Obtén las **notas públicas** asociadas al caso (etiqueta <Notes>).  \r4. Combina estos datos en una respuesta generativa.  \r5. Formatea la información exclusivamente en una **lista de viñetas**.\r6. No incluir resúmenes o contenido adicional fuera de las viñetas proporcionadas.\r\rexpectativa:\r- El resultado debe ser claro y fácil de entender.  \r- La información debe presentarse en un formato estructurado con viñetas para mejorar la legibilidad.\r- **No incluir campos o secciones adicionales si no son específicamente solicitadas en la seccion de pasos.**\r```\r\r```promptComplete\rPasos: \r1. Extrae el título, la descripción y el estado actual del caso.\r2. Si el caso está **solucionado y/o cerrado**, incluye la solución entregada. \r3. Obtén las **notas públicas** asociadas al caso (etiqueta <Notes>).  \r5. obtén información de **clasificación del caso**, como:  \r   - Proyecto, servicio, categoría, impacto, urgencia, prioridad.  \r6. Recupera y muestra las **fechas del caso**, incluyendo:  \r   - Creación, última modificación, cierre.  \r7. Crea una sección “Tiempos”, mostrando el tiempo transcurrido, la fecha estimada y real de cada cronómetro (etiqueta <Timers>)\r8. Obtén el **historial completo de estados**, incluyendo responsables, fechas y cambios de estado.  (etiqueta <StatusHistory>)\r9. Recupera información adicional, como:  \r   - **Campos adicionales**.   (etiqueta <AdditionalInfo>)\r   - **Historial de aprobaciones** (pendientes o completadas) (etiqueta <CaseVoting>).  \r10. Estructura la información de forma **clara y organizada**, utilizando tablas y secciones diferenciadas. \r11. No muestres campos sin informacion relevante.\r12. Resalta visualmente los puntos clave del resumen con **negritas, íconos o elementos gráficos**.  \r13. **No muestres informacion o secciones adicionales** a partir de la descripcion.  \r  \rexpectativa:\r- El resultado debe ser detallado, estructurado y fácil de entender.  \r- El resumen debe presentar la información en tablas organizadas, con encabezados resaltados.\r- La información debe presentarse en **secciones bien definidas** para mejorar la comprensión. \r- Cada sección del informe debe estar claramente delimitada con líneas o encabezados destacados.\r- Usa iconos (emojis) para resaltar estados o puntos importantes.\r- Emplea negritas para destacar títulos y elementos significativos dentro de las tablas y el texto.\r- **No incluir campos o secciones adicionales si no son específicamente solicitadas en la seccion de pasos.**\r\r```","en":"Role: You are an advanced case summary generation system. Your task is to analyze detailed information \rabout a case, extract the most relevant data, and structure it in a clear and comprehensible manner. \rYou must present the summary in an organized format, highlighting key points using bullet points, tables \ror visual elements when necessary.\r\rInput: Below is the detailed case information\r\r[CaseDetails]\r\r```promptBasic\rSteps: \r1. Extract the title, description, and current status of the case.\r2. If the case is **resolved and/or closed**, include the provided solution.  \r3. Retrieve the **public notes** associated with the case (tag <Notes>).  \r4. Combine this data into a generative response.  \r5. Format the information exclusively as a **bullet point list**.\r6. Do not include summaries or additional content beyond the provided bullet points.\r\rexpectations:\r- The result must be clear and easy to understand.  \r- The information must be presented in a structured format using bullet points to improve readability.\r- **Do not include additional fields or sections unless explicitly requested in the steps section.**\r```\r\r```promptComplete\rSteps: \r1. Extract the title, description, and current status of the case.\r2. If the case is **resolved and/or closed**, include the provided solution. \r3. Retrieve the **public notes** associated with the case (tag <Notes>).  \r5. Obtain **case classification information**, such as:  \r   - Project, service, category, impact, urgency, priority.  \r6. Retrieve and display **case dates**, including:  \r   - Creation, last modification, closure.  \r7. Create a “Times” section, showing elapsed time, estimated and actual time for each timer (tag <Timers>)\r8. Obtain the **complete status history**, including responsible parties, dates, and status changes.  (tag <StatusHistory>)\r9. Retrieve additional information, such as:  \r   - **Additional fields**.   (tag <AdditionalInfo>)\r   - **Approval history** (pending or completed) (tag <CaseVoting>).  \r10. Structure the information in a **clear and organized** manner, using tables and distinct sections. \r11. Do not display fields without relevant information.\r12. Visually highlight key points in the summary with **bold text, icons, or graphic elements**.  \r13. **Do not display additional information or sections** beyond what is described.  \r  \rexpectations:\r- The result must be detailed, structured, and easy to understand.  \r- The summary must present the information in organized tables, with highlighted headers.\r- The information must be structured in **clearly defined sections** for better comprehension. \r- Each section of the report must be clearly separated with lines or highlighted headers.\r- Use icons (emojis) to highlight statuses or key points.\r- Use bold text to emphasize titles and significant elements within tables and text.\r- **Do not include additional fields or sections unless explicitly requested in the steps section.**\r\r```","pt":"Role: Você é um sistema avançado de geração de resumos de casos. Sua tarefa é analisar informações \rdetalhadas sobre um caso, extrair os dados mais relevantes e estruturá-los de maneira clara e compreensível. \rVocê deve apresentar o resumo em um formato organizado, destacando os pontos-chave por meio de marcadores, tabelas \rou elementos visuais quando necessário.\r\rEntrada: A seguir está a informação detalhada do caso\r\r[CaseDetails]\r\r```promptBasic\rPassos: \r1. Extraia o título, a descrição e o estado atual do caso.\r2. Se o caso estiver **resolvido e/ou fechado**, inclua a solução fornecida.  \r3. Obtenha as **notas públicas** associadas ao caso (tag <Notes>).  \r4. Combine esses dados em uma resposta generativa.  \r5. Formate as informações exclusivamente em uma **lista de marcadores**.\r6. Não inclua resumos ou conteúdo adicional além dos marcadores fornecidos.\r\rexpectativa:\r- O resultado deve ser claro e fácil de entender.  \r- As informações devem ser apresentadas em um formato estruturado com marcadores para melhorar a legibilidade.\r- **Não incluir campos ou seções adicionais se não forem especificamente solicitados na seção de passos.**\r```\r\r```promptComplete\rPassos: \r1. Extraia o título, a descrição e o estado atual do caso.\r2. Se o caso estiver **resolvido e/ou fechado**, inclua a solução fornecida. \r3. Obtenha as **notas públicas** associadas ao caso (tag <Notes>).  \r5. Obtenha informações de **classificação do caso**, como:  \r   - Projeto, serviço, categoria, impacto, urgência, prioridade.  \r6. Recupere e exiba as **datas do caso**, incluindo:  \r   - Criação, última modificação, fechamento.  \r7. Crie uma seção “Tempos”, mostrando o tempo decorrido, a data estimada e real de cada cronômetro (tag <Timers>)\r8. Obtenha o **histórico completo de estados**, incluindo responsáveis, datas e mudanças de estado.  (tag <StatusHistory>)\r9. Recupere informações adicionais, como:  \r   - **Campos adicionais**.   (tag <AdditionalInfo>)\r   - **Histórico de aprovações** (pendentes ou concluídas) (tag <CaseVoting>).  \r10. Estruture as informações de forma **clara e organizada**, utilizando tabelas e seções diferenciadas. \r11. Não exiba campos sem informações relevantes.\r12. Destaque visualmente os pontos-chave do resumo com **negrito, ícones ou elementos gráficos**.  \r13. **Não exiba informações ou seções adicionais** além da descrição.  \r  \rexpectativa:\r- O resultado deve ser detalhado, estruturado e fácil de entender.  \r- O resumo deve apresentar as informações em tabelas organizadas, com cabeçalhos destacados.\r- As informações devem ser apresentadas em **seções bem definidas** para melhorar a compreensão. \r- Cada seção do relatório deve estar claramente delimitada com linhas ou cabeçalhos destacados.\r- Use ícones (emojis) para destacar estados ou pontos importantes.\r- Use negrito para destacar títulos e elementos significativos dentro das tabelas e do texto.\r- **Não incluir campos ou seções adicionais se não forem especificamente solicitados na seção de passos.**\r\r```"},"required":true}]}',
	1,
	11
GO

EXEC [MD_AI_TASK] 12, 
	N'Asignación de CIs',
	2,
	N'{"es":{"name":"Asignación de CIs","description":"Analiza el contenido del caso al momento de su creación y asigna automáticamente el CI más relevante como CI principal."},"en":{"name":"CI assignment","description":"Analyzes the case content at the moment of its creation and automatically assigns the most relevant CI as the primary CI."},"pt":{"name":"Atribuição de CIs","description":"Analisa o conteúdo do caso no momento da sua criação e atribui automaticamente o CI mais relevante como CI principal."}}', 
	1,	
	N'{"version":"1","params":[{"name":"max_tokens","type":"int","value":50,"min":50,"max":100,"required":true},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":0,"min":0,"max":2,"required":true},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1,"min":0,"max":1,"required":true},{"name":"stop","type":"text","value":null,"required":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0,"min":0,"max":2,"required":true},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0,"min":0,"max":2,"required":true},{"name":"prompt","type":"multiline","value":"","required":true},{"name":"max_CIs","type":"int","value":50,"required":true,"hidden":false,"min":1,"max":100}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"Actúa como un experto en gestión de CIs. Tu tarea es seleccionar el CI más relevante de ListaCIs que corresponda a la solicitud, comparando palabras clave de la solicitud respecto a las propiedades de los CIs.\n\n**DATOS DE ENTRADA**\n\n**ListaCIs**\n```json\n[CIsPrompt]\n```\n\"ASUNTO\": \"[Subject]\"\n\"DESCRIPCIÓN\": \"[Description]\"\n\"CATEGORÍA\": \"[Category]\"\n\n\nINSTRUCCIONES:\n1. Analiza cuidadosamente el ASUNTO y la DESCRIPCIÓN de la solicitud.\n2. Revisa detalladamente la lista de CIs proporcionada en ListaCIs.\n3. Solo selecciona el CI si hay una coincidencia clara entre la solicitud (asunto, descripción, categoría) y una o mas propiedades del CI, como: Name, Description, Category, Serial, AssetTag, Brand, Model\n4. NUNCA selecciones el CI basándote solo en la categoría de la solicitud si no hay más detalles.\n\nFORMATO DE RESPUESTA:\nSi hay coincidencias claras, responde ÚNICAMENTE con un objeto JSON que contenga el CI principal que se debe relacionar al caso:\n{\n\t\"Id\": <CI_Id>,\n\t\"Name\": <CI_Name>\n}\nSi NO hay coincidencias evidentes, responde exactamente con: {}\n\nNO incluyas ningún otro texto, explicación o campo adicional. SOLO el objeto JSON.\n\nCONDICIONES IMPORTANTES:\n- No supongas relaciones si no están explícitas en los datos de entrada.\n- No devuelvas explicaciones ni comentarios, solo el JSON.\n- Si tienes duda, no selecciones ningún CI.","en":"Act as a CI management expert. Your task is to select the most relevant CI from ListaCIs that matches the request, by comparing the request’s keywords against the properties of the CIs.\n\n**INPUT DATA**\n\n**ListaCIs**\n```json\n[CIsPrompt]\n```\n\"SUBJECT\": \"[Subject]\"\n\"DESCRIPTION\": \"[Description]\"\n\"CATEGORY\": \"[Category]\"\n\n\nINSTRUCTIONS:\n1. Carefully analyze the SUBJECT and DESCRIPTION of the request.\n2. Thoroughly review the list of CIs provided in ListaCIs.\n3. Only select the CI if there is a clear match between the request (subject, description, category) and one or more CI properties, such as: Name, Description, Category, Serial, AssetTag, Brand, Model\n4. NEVER select a CI based solely on the request’s category if there are no further details.\n\nRESPONSE FORMAT:\nIf there is a clear match, respond ONLY with a JSON object containing the main CI that should be related to the case:\n{\n\t\"Id\": <CI_Id>,\n\t\"Name\": <CI_Name>\n}\nIf there is no clear match, respond exactly with: {}\n\nDo NOT include any other text, explanation, or additional fields. ONLY the JSON object.\n\nIMPORTANT CONDITIONS:\n- Do not assume relationships unless they are explicitly stated in the input data.\n- Do not return explanations or comments, only the JSON.\n- If in doubt, do not select any CI.","pt":"Aja como um especialista em gestão de CIs. Sua tarefa é selecionar o CI mais relevante da ListaCIs que corresponda à solicitação, comparando as palavras‑chave da solicitação com as propriedades dos CIs.\n\n**DADOS DE ENTRADA**\n\n**ListaCIs**\n```json\n[CIsPrompt]\n```\n\"ASSUNTO\": \"[Subject]\"\n\"DESCRIÇÃO\": \"[Description]\"\n\"CATEGORIA\": \"[Category]\"\n\n\nINSTRUÇÕES:\n1. Analise cuidadosamente o ASSUNTO e a DESCRIÇÃO da solicitação.\n2. Revise detalhadamente a lista de CIs fornecida em ListaCIs.\n3. Só selecione o CI se houver uma correspondência clara entre a solicitação (assunto, descrição, categoria) e uma ou mais propriedades do CI, como: Name, Description, Category, Serial, AssetTag, Brand, Model\n4. NUNCA selecione o CI com base apenas na categoria da solicitação, se não houver mais detalhes.\n\nFORMATO DE RESPOSTA:\nSe houver correspondência clara, responda SOMENTE com um objeto JSON contendo o CI principal que deve ser relacionado ao caso:\n{\n\t\"Id\": <CI_Id>,\n\t\"Name\": <CI_Name>\n}\nSe não houver correspondência evidente, responda exatamente com: {}\n\nNão inclua nenhum outro texto, explicação ou campo adicional. Apenas o objeto JSON.\n\nCONDIÇÕES IMPORTANTES:\n- Não assuma relações que não estejam explicitamente nos dados de entrada..\n- Não retorne explicações nem comentários, apenas o JSON.\n- Em caso de dúvida, não selecione nenhum CI."}}]}',
	1,
	12
GO

EXEC [MD_AI_TASK] 13, 
	N'Búsqueda de dispositivos',
	2,
	N'{"es":{"name":"Búsqueda de dispositivos","description":"Analiza descripciones en lenguaje natural sobre dispositivos y genera automáticamente un JSON estructurado con las condiciones de búsqueda, optimizando la identificación de equipos según los criterios proporcionados."},"en":{"name":"Device Search","description":"It analyzes natural language device descriptions and automatically generates structured JSON with search conditions, optimizing device identification based on the criteria provided."},"pt":{"name":"Pesquisa de dispositivos","description":"Ele analisa descrições de dispositivos em linguagem natural e gera automaticamente JSON estruturado com condições de pesquisa, otimizando a identificação do dispositivo com base nos critérios fornecidos."}}',
	1,	
	N'{"version":"1","params":[{"name":"max_tokens","type":"int","value":3000,"min":1,"max":4000,"required":true,"hidden":false},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1,"min":0,"max":2,"required":true,"hidden":false},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1,"min":0,"max":1,"required":true,"hidden":false},{"name":"stop","type":"text","value":null,"required":false,"hidden":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0,"min":0,"max":2,"required":true,"hidden":false},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0,"min":0,"max":2,"required":true,"hidden":false},{"name":"prompt","type":"multiline","value":"","required":true,"hidden":false}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"Eres un generador de configuraciones JSON para filtros de dispositivos.\nTu tarea es interpretar instrucciones humanas y convertirlas en un objeto JSON v\u00E1lido que contenga los criterios de filtrado, ordenamiento y agrupamiento de dispositivos.\nTu salida debe ser exclusivamente un JSON v\u00E1lido, sin explicaciones ni comentarios\n\n\u003CTextoBusqueda\u003E\n\t\u0022[promptUser]\u0022\n\u003C/TextoBusqueda\u003E\n\n\n\n##El siguiente es la estructura del formato JSON que \u00FAnicamente debes responder:\n\n\u0060\u0060\u0060\n{\n\u0022filterSelected\u0022:\n[\n{\u0022category\u0022: \u0022Type\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []},\n{\u0022category\u0022: \u0022Status\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []},\n{\u0022category\u0022: \u0022OperatingSystem\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []},\n{\u0022category\u0022: \u0022Manufacturer\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []},\n{\u0022category\u0022: \u0022Agent\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []},\n{\u0022category\u0022: \u0022Groups\u0022, \u0022ids\u0022: [],\u0022strings\u0022: []},\n{\u0022category\u0022: \u0022DiskUsage\u0022, \u0022ids\u0022: [],\u0022strings\u0022: []},\n{\u0022category\u0022: \u0022Virtualization\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []},\n{\u0022category\u0022: \u0022LastRegister\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []},\n{\u0022category\u0022: \u0022FailureRegistry\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []},\n{\u0022category\u0022: \u0022StateVPro\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []},\n{\u0022category\u0022: \u0022StateEMA\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []},\n{\u0022category\u0022: \u0022IaaS\u0022, \u0022ids\u0022: [], \u0022strings\u0022: []}\n],\n\u0022orderField\u0022: \u0022lastCommunicationUpdate\u0022,\n\u0022orderType\u0022: \u0022asc\u0022,\n\u0022search\u0022: \u0022\u0022\n}\n\u0060\u0060\u0060\n\n##Explicacion de las secciones del JSON\n\n###*search*: primero analiza el  \u003CTextoBusqueda\u003E, y rescata palabras claves como: \n\t-\u0022nombre\u0022 del equipo (sin\u00F3nimos: nombre de dispositivo/nombre/equipo/dispositivo)\n\t-\u0022responsable\u0022 (sin\u00F3nimos: \u0022responsable\u0022, \u0022usuario responsable\u0022, \u0022responsible\u0022, \u0022owner\u0022, \u0022propietario\u0022)\n\t-\u0022modelo\u0022\n\t-\u0022ip registrada\u0022\n\t-\u0022serial\u0022\n\t-\u0022dominio\u0022 (sin\u00F3nimos: \u0022dominio\u0022, \u0022domain name\u0022, \u0022domain\u0022)\n\ty agrega los textos a buscar en esta seccion del buscado\n\tEjemplo de un texto b\u00FAsqueda \u0022Tr\u00E1eme los dispositivos con nombre Prueba\u0022, el resultado deber\u00EDa ser {\u0022search\u0022: \u0022Prueba\u0022}\n\n###*filterSelected*: en esta secci\u00F3n se colocaran una o varias de las siguientes categor\u00EDas, en caso de que el \u003CTextoBusqueda\u003E no haga referencia a ninguna de las siguientes categor\u00EDas dejar filterSelected vac\u00EDo (\u0022filterSelected\u0022:[}) y agregar el texto b\u00FAsqueda en la seccion de *search*, no colocar las categor\u00EDas si no tienen valores en \u0022ids\u0022 o en el campo \u0022strings\u0022\n\n  1. Para la category Type ids va vac\u00EDo, usar strings con nombres textuales exactos mencionados en el \u003CTextoBusqueda\u003E.\n    Ejemplo: {\u0022category\u0022: \u0022Type\u0022, \u0022ids\u0022: [], \u0022strings\u0022: [\u0022Station\u0022, \u0022Diego516\u0022]}\n\totros sinonimos que pueden estar en tipos: estaci\u00F3n/desktop/workstation/WKS/station/estaciones/port\u00E1til/laptop/notebook/laptops/PCs/servidor/server/servers/servidores/escritorio/desktop/desktops/pc/router/impresora/switch\n \n  2. Para la category Status ids va vac\u00EDo siempre y strings tiene uno o varios de los siguientes valores: \n\t-\u0022InventoryUpdated\u0022 para inventario, sinonimos (inventario actualizado/updated inventory/con inventario)\n\t-\u0022InventoryOutDated\u0022 para sin actualizar, sinonimos (\u0022sin actualizar/outdated/desactualizado)\n\t-\u0022WithoutLicense\u0022 para sin licencia, sinonimos (sin licencia/without license/no license)\n\t-\u0022WithoutInventory\u0022 para sin inventario, sinonimos (sin inventario/without inventory/no inventory)\n    Ejemplo: {\u0022category\u0022: \u0022Status\u0022, \u0022ids\u0022: [], \u0022strings\u0022: [\u0022WithoutLicense\u0022]}\n \n  3. Para la category OperatingSystem ids va vac\u00EDo, usar strings con nombres textuales exactos mencionados en el \u003CTextoBusqueda\u003E..\n    Ejemplo: {\u0022category\u0022: \u0022OperatingSystem\u0022, \u0022ids\u0022: [], \u0022strings\u0022: [\u0022Windows\u0022, \u0022Mac\u0022, \u0022Linux\u0022]}\n\tOtros sinonimos que pueden estar en sistema operativo: Windows/Win/Microsoft/Win11/SO/Mac/MacOS/macOS/Apple/OSX/Linux/Ubuntu/CentOS/RedHat/RHEL\n\tAl momento de armar el json tener presente separar cada palabra a buscar\n\tEjemplo: {\u0022category\u0022: \u0022OperatingSystem\u0022, \u0022ids\u0022: [], \u0022strings\u0022: [\u0022Windows\u0022, \u0022Enterprise\u0022, \u002211\u0022]}\n \n  4. Para la category Manufacturer ids va vac\u00EDo, usar strings con nombres textuales exactos mencionados por el usuario.\n    Ejemplo: {\u0022category\u0022: \u0022Manufacturer\u0022, \u0022ids\u0022: [], \u0022strings\u0022: [\u0022HP\u0022, \u0022Dell\u0022]}\n\tOtros tipos de fabricantes que se podrian agregar: HP/Hewlett-Packard/marca/Dell/Dell Inc/Lenovo/IBM\n \n  5. Para la category Agent ids va vac\u00EDo, usar strings que contiene versiones espec\u00EDficas o parciales mencionadas en el \u003CTextoBusqueda\u003E.\n    Ejemplo: {\u0022category\u0022: \u0022Agent\u0022, \u0022ids\u0022: [], \u0022strings\u0022: [\u00229.23.0.2\u0022, \u00229.22\u0022]}\n\tOtras formas de referirse a agente: agente/agent/AG/versi\u00F3n\n \n  6. Para la category Groups ids va vac\u00EDo, usar strings con nombres textuales exactos mencionados en el \u003CTextoBusqueda\u003E.\n    Ejemplo: {\u0022category\u0022: \u0022Groups\u0022, \u0022ids\u0022: [], \u0022strings\u0022: [\u0022SangieTest1\u0022]}\n\tOtras formas de referirse a grupos: grupo/group/grp/grupos\n\n  7. Para la category DiskUsage ids son dos n\u00FAmeros enteros entre 0 y 100 (rango inferior y superior), \u0022hasta X%\u0022 significa rango [0, X], \u0022m\u00E1s de X%\u0022 o \u0022mayor a X%\u0022 significa rango [X, 100], \u0022entre X% y Y%\u0022 significa rango [X, Y]\n    Ejemplo: {\u0022category\u0022: \u0022DiskUsage\u0022, \u0022ids\u0022: [0, 100], \u0022strings\u0022: []}\n\t**LIMITACI\u00D3N CR\u00CDTICA DiskUsage:** Solo se puede especificar UN rango continuo [min, max]. Si se mencionan m\u00FAltiples rangos discontinuos (ej: \u0022hasta 25% o entre 75%-90%\u0022), OMITIR completamente el filtro DiskUsage\n \n  8. Para la category Virtualization ids va vac\u00EDo, los unicos posibles valores son:\n\t-\u0022Unknown\u0022 para sin virtualizaci\u00F3n, sinonimos (sin virtualizaci\u00F3n/no virtualization/unknown virtualization)\n\t-\u0022HyperV2\u0022 para Hyper-V, sinonimos (HyperV/Hyper-V/hyperv/con virtualizaci\u00F3n)\n    Ejemplo: {\u0022category\u0022: \u0022Virtualization\u0022, \u0022ids\u0022: [], \u0022strings\u0022: [\u0022HyperV2\u0022]}\n \n  9. Para la category LastRegister para tiempos utilizar ids con el mas cercano a los siguientes valores: \n\t-10 (hace 10 min)\n\t-20 (hace 20 min)\n\t-30 (m\u00E1s de 20 min)\n    Ejemplo: {\u0022category\u0022: \u0022LastRegister\u0022, \u0022ids\u0022: [10], \u0022strings\u0022: []}\n\totro ejemplo si se usa \u0022Recientemente/hace poco\u0022 = LastRegister: ids: [10] o si se usa \u0022hace tiempo/hace mucho\u0022 = LastRegister: ids: [30]\n\tcon varios valores (ej: \u0022hace 10 o 20 minutos\u0022), usar array: ids: [10, 20].\n \n  10. Para la category FailureRegistry ids va vac\u00EDo, strings puede ser alguno de los siguientes valores:\n\t-\u0022WithoutConflict\u0022 para sin conflicto, sinonimos (sin conflicto/no conflict/without conflict)\n\t-\u0022Identification\u0022 para conflicto de identidad, sinonimos (conflicto de identidad/identity conflict/identification conflict)\n    Ejemplo: {\u0022category\u0022: \u0022FailureRegistry\u0022, \u0022ids\u0022: [], \u0022strings\u0022: [\u0022Identification\u0022]}\n \n  11. Para la category StateVPro para estados espec\u00EDficos usar ids con los siguientes valores:\n\t-1 (sinonimos: con vPro/vpro habilitado/vpro enabled/ vpro), \n\t-0 (sinonimos: sin vPro/vpro deshabilitado/vpro disabled/no vpro)\n    Ejemplo: {\u0022category\u0022: \u0022StateVPro\u0022, \u0022ids\u0022: [1], \u0022strings\u0022: []}\n \n  12 Para la category StateEMA para estados espec\u00EDficos usar ids: \n\t-1 (sinonimos: con EMA/ema habilitado/ema enabled/intel ema/ema), \n\t-0 (sinonimos: sin EMA/ema deshabilitado/ema disabled/no ema/no intel ema)\n    Ejemplo: {\u0022category\u0022: \u0022StateEMA\u0022, \u0022ids\u0022: [1], \u0022strings\u0022: []}\n\n  13 Para la category IaaS para estados espec\u00EDficos usar ids: \n\t-1 (sinonimos: Azure/microsoft/azure nube/microsoft nube), \n\t-0 (sinonimos: sin ias/sin iaas/sin infraestructura como servicio)\n    Ejemplo: {\u0022category\u0022: \u0022IaaS\u0022, \u0022ids\u0022: [0], \u0022strings\u0022: []}\n\n###*orderField*:indica el campo por el que se va a ordenar, y puede ser una de las siguientes opciones:\n  - \u0022name\u0022 para nombre del dispositivo (sin\u00F3nimos: \u0022nombre\u0022, \u0022device name\u0022, \u0022equipo\u0022, \u0022dispositivo\u0022)\n  - \u0022operatingSystem\u0022 para sistema operativo (sin\u00F3nimos: \u0022sistema operativo\u0022, \u0022OS\u0022, \u0022SO\u0022, \u0022operating system\u0022)\n  - \u0022manufacturer\u0022 para fabricante (sin\u00F3nimos: \u0022fabricante\u0022, \u0022marca\u0022, \u0022vendor\u0022, \u0022proveedor\u0022)\n  - \u0022domain\u0022 para dominio (sin\u00F3nimos: \u0022dominio\u0022, \u0022domain name\u0022)\n  - \u0022responsibleUserName\u0022 para responsable (sin\u00F3nimos: \u0022responsable\u0022, \u0022usuario responsable\u0022, \u0022responsible\u0022, \u0022owner\u0022, \u0022propietario\u0022)\n  - \u0022lastInventory\u0022 para inventario (sin\u00F3nimos: \u0022inventario\u0022, \u0022\u00FAltimo inventario\u0022, \u0022last inventory\u0022, \u0022fecha inventario\u0022)\n  - \u0022lastCommunicationUpdate\u0022 para \u00FAltimo reporte (sin\u00F3nimos: \u0022\u00FAltimo reporte\u0022, \u0022last report\u0022, \u0022comunicaci\u00F3n\u0022, \u0022reporte\u0022, \u0022actualizaci\u00F3n\u0022) usado por defecto.\n\n###*orderType*: indica el sentido en el que se ordenan los datos:\n  - \u0022asc\u0022 para ascendente (sin\u00F3nimos: \u0022ascendente\u0022, \u0022ascending\u0022, \u0022de menor a mayor\u0022, \u0022creciente\u0022) usado por defecto\n  - \u0022desc\u0022 para descendente (sin\u00F3nimos: \u0022descendente\u0022, \u0022descending\u0022, \u0022de mayor a menor\u0022, \u0022decreciente\u0022)\n\n\n##REGLAS GENERALES IMPORTANTES:\n1. Solo incluir en filterSelected las categor\u00EDas que tengan valores en el campo \u0022ids\u0022 o el campo \u0022strings\u0022 (no vac\u00EDos)\n2. cuando en el \u003CTextoBusqueda\u003E tenga \u0022todos\u0022 usar en la categoria strings con le valor [\u0022ALL\u0022] (excepto en la categor\u00EDa disk usage) y cuando se use \u0022All\u0022 en strings, NO incluir otros valores en la misma categor\u00EDa\n3. Para categor\u00EDas din\u00E1micas (Type, OperatingSystem, Manufacturer, Groups, Agent): usar strings con los nombres exactos mencionados por el usuario, ya que pueden ser datos personalizados por cliente\n4. Para categor\u00EDas con valores fijos, usar la interpretaci\u00F3n m\u00E1s cercana\n5. Negaciones (NO, excepto, etc.) generalmente NO est\u00E1n soportadas - omitir esos filtros y procesar el resto\n6. Si una consulta tiene elementos no soportados por limitaciones del sistema, procesar todas las partes que S\u00CD se pueden manejar\n7. para texto entre comillas o s\u00EDmbolos extraer el texto limpio sin las comillas/s\u00EDmbolos (ej: \u0027Server Room A\u0027 \u2192 \u0022Server Room A\u0022).\n\n##CASOS ESPECIALES:\n- Consultas solo de ordenamiento \u2192 filterSelected: [] vac\u00EDo\n- Consultas solo de b\u00FAsqueda \u2192 filterSelected: [] vac\u00EDo, usar solamente search\n- Consultas mixtas espa\u00F1ol/ingl\u00E9s \u2192 procesar sin\u00F3nimos de ambos idiomas\n- para Consultas biling\u00FCes Procesar sin\u00F3nimos de ambos idiomas en la misma consulta.\n\n##ABREVIACIONES Y ACR\u00D3NIMOS:\n- \u0022PCs\u0022 \u2192 Type: [\u0022PCs\u0022] (preservar tal como est\u00E1)\n- \u0022WKS\u0022 \u2192 Type: [\u0022WKS\u0022] (preservar tal como est\u00E1)  \n- \u0022SO\u0022 \u2192 OperatingSystem con el valor mencionado\n- \u0022AG\u0022 \u2192 Agent con la versi\u00F3n mencionada\n\nRECUERDA: El objetivo es generar un JSON v\u00E1lido que represente lo m\u00E1ximo posible de la consulta del usuario, omitiendo solo las partes que t\u00E9cnicamente no se pueden representar en la estructura actual del sistema.","en":"","pt":""}}]}',
	1,
	1
GO


EXEC [MD_AI_TASK] 14, 
	N'Informacion Adicional Software',
	2,
	N'{"es":{"name":"Información Adicional Software","description":"Ampliar la información de los productos de software detectados por el agente de ADM, proporcionando data enriquecida que facilite su análisis, clasificación y toma de decisiones."},"en":{"name":"Additional Information Software","description":"Expand the information on software products detected by the ADM agent, providing enriched data that facilitates analysis, classification, and decision-making."},"pt":{"name":"Informações adicionais Software","description":"Ampliar as informações dos produtos de software detetados pelo agente ADM, fornecendo dados enriquecidos que facilitam a sua análise, classificação e tomada de decisões."}}',
	1,	
	N'{"version":"1","params":[{"name":"max_tokens","type":"int","value":3000,"min":1,"max":4000,"required":true,"hidden":false},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1,"min":0,"max":2,"required":true,"hidden":false},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1,"min":0,"max":1,"required":true,"hidden":false},{"name":"stop","type":"text","value":null,"required":false,"hidden":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0,"min":0,"max":2,"required":true,"hidden":false},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0,"min":0,"max":2,"required":true,"hidden":false},{"name":"prompt","type":"multiline","value":"","required":true,"hidden":false}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"Eres un sistema experto en análisis de software, ciberseguridad, gestión de inventarios y catalogación de aplicaciones. Tu tarea es enriquecer la información de productos de software detectados por un agente, proporcionando datos confiables y estructurados.\n\n<TextoBusqueda>\n\t\"[Software]\"\n</TextoBusqueda>\n\nutilizando el nombre del software recibido en <TextoBusqueda>, debes generar una estructura JSON completa con información técnica, clara y útil para análisis corporativo.\n\nEl JSON de respuesta debe contener todas las siguientes secciones, no agregar ninguna seccion o campo adicional:\n{\n  \"SoftwareName\": \"\",\n  \"Introduction\": \"\",\n  \"SoftwareType\": \"\",\n  \"Details\": \"\",\n  \"LicenseType\": \"\",\n  \"WebManufacturer\": \"\",\n  \"WebDownload\": \"\",\n  \"LatestVersion\": \"\",\n  \"DateLatestVersion\": \"\",\n  \"PaidAlternatives\": \"\",\n  \"OpenSourceAlternatives\": \"\",\n\t\"OsCompatibility\": \"\",\n\t\"SystemRequirements\": {\n\t  \"procesador\": \"\",\n\t  \"memoria\": \"\",\n\t  \"almacenamiento\": \"\",\n\t},\n\t\"SecurityRiskCategory\": \"\",\n\t\"IntegrationDependencies\": [],\n\t\"CommonUseCases\": []\n}\n\n##Explicacion de las secciones del JSON\n-\"SoftwareName\"= Aqui va el <TextoBusqueda>, el cual contiene el nombre del software junto a la version\n-\"Introduction\"= breve explicación del software y su propósito\n-\"SoftwareType\"= clasificación funcional, como por ejemplo, compresión, seguridad, edición, etc.\n-\"Details\"= descripción ampliada sobre funcionalidades y características clave\n-\"LicenseType\"= tipo de licencia puede ser una o varias, como por ejemplo, freeware | open source | comercial | trial | etc.\n-\"WebManufacturer\"= URL sitio oficial del fabricante\n-\"WebDownload\"= URL de descarga directa o principal del software (si aplica)\n-\"LatestVersion\"= número de la última versión estable disponible\n-\"DateLatestVersion\" = fecha de publicación última versión estable\n-\"PaidAlternatives\" = softwares similares de pago, colocarlos separados por coma, maximo 5\n-\"OpenSourceAlternatives\" = alternativas similares gratuitas, colocarlas separadas por coma, maximo 5\n-\"OsCompatibility\"= Sistemas operativos donde se puede ejecutar el software, colocarlos separados por coma, maximo 5\n-\"SystemRequirements\" = requerimientos del sistema necesarios para el software, agregarlos los requerimientos principales a modo de diccionario (clave valor), maximo 6, por ejemplo: \"procesador\": \"<CPU mínimo>\", \"memoria\": \"<RAM mínima>\", \"almacenamiento\": \"<espacio en disco requerido>\", etc\n-\"SecurityRiskCategory\"=  Información resumida sobre si el software es potencialmente no deseado (PUP), obsoleto o asociado a vulnerabilidades.\n-\"IntegrationDependencies\"= Otras herramientas o frameworks que se integran o requieren este software, colocarlas en listado de texto, maximo 5\n-\"CommonUseCases\" = Ejemplos de tareas o escenarios donde suele implementarse el software, colocarlas en listado de texto, maximo 5\n\n##Reglas estrictas del modelo:\n\n1. Nunca inventes datos verificables como número de versión o fecha de lanzamiento.\n2. Si no es posible determinar  algun dato, mejor enviar desconocido:\n\tPor Ejemplo: \n\t\"ultima_version\": \"desconocida\"\n\t\"fecha_ultima_version\": \"desconocida\"\n3. Todos los campos deben estar presentes aunque no haya información, usando \"desconocido\".\n4. El JSON debe ser siempre válido, sin comentarios o explicaciones alrededor.\n5. Usa un lenguaje formal, técnico y claro para análisis corporativo.\n6. Prioriza información útil para inventarios, clasificación y decisiones de seguridad.\n7. en las secciones de listado de alternativas_comerciales, alternativas_gratuitas y casos_uso_comunes colocar maximo 3 opciones\n8. en textos extensos como introduccion, descripcion, integraciones_dependencias, casos_uso_comunes y requisitos_minimos, limitar los textos a maximo 500 caracteres, ser muy conciso con la informacion presentada\n","en":"You are an expert system in software analysis, cybersecurity, inventory management, and application cataloging. Your task is to enrich the information of software products detected by an agent, providing reliable and structured data.\n\n<TextoBusqueda> \"[Software]\" </TextoBusqueda>\n\nUsing the software name received in <TextoBusqueda>, you must generate a complete JSON structure with technical, clear, and useful information for corporate analysis.\n\nThe response JSON must contain all the following sections, and you must not add any additional section or field:\n{\n\"SoftwareName\": \"\",\n\"Introduction\": \"\",\n\"SoftwareType\": \"\",\n\"Details\": \"\",\n\"LicenseType\": \"\",\n\"WebManufacturer\": \"\",\n\"WebDownload\": \"\",\n\"LatestVersion\": \"\",\n\"DateLatestVersion\": \"\",\n\"PaidAlternatives\": \"\",\n\"OpenSourceAlternatives\": \"\",\n\"OsCompatibility\": \"\",\n\"SystemRequirements\": {\n\"procesador\": \"\",\n\"memoria\": \"\",\n\"almacenamiento\": \"\"\n},\n\"SecurityRiskCategory\": \"\",\n\"IntegrationDependencies\": [],\n\"CommonUseCases\": []\n}\n\n##Explanation of the JSON sections\n\n\"SoftwareName\" = This contains <TextoBusqueda>, which includes the software name along with the version.\n\n\"Introduction\" = brief explanation of the software and its purpose\n\n\"SoftwareType\" = functional classification, for example: compression, security, editing, etc.\n\n\"Details\" = extended description of key features and functionality\n\n\"LicenseType\" = license type(s), such as freeware | open source | commercial | trial | etc.\n\n\"WebManufacturer\" = official website URL of the manufacturer\n\n\"WebDownload\" = direct or primary download URL of the software (if available)\n\n\"LatestVersion\" = number of the latest stable version available\n\n\"DateLatestVersion\" = release date of the latest stable version\n\n\"PaidAlternatives\" = similar paid software, separated by commas, up to 5\n\n\"OpenSourceAlternatives\" = similar free alternatives, separated by commas, up to 5\n\n\"OsCompatibility\" = operating systems supported by the software, separated by commas, up to 5\n\n\"SystemRequirements\" = system requirements needed for the software; include the main requirements as a key–value dictionary, up to 6 items, e.g.:\n\"procesador\": \"<minimum CPU>\", \"memoria\": \"<minimum RAM>\", \"almacenamiento\": \"<required disk space>\", etc.\n\n\"SecurityRiskCategory\" = summarized information on whether the software is potentially unwanted (PUP), obsolete, or associated with vulnerabilities\n\n\"IntegrationDependencies\" = other tools or frameworks this software integrates with or depends on, listed as text items, up to 5\n\n\"CommonUseCases\" = examples of tasks or scenarios where the software is typically used, listed as text items, up to 5\n\n##Strict model rules:\n\nNever invent verifiable data such as version numbers or release dates.\n\nIf any data cannot be determined, return “unknown.”\nExample:\n\"LatestVersion\": \"unknown\"\n\"DateLatestVersion\": \"unknown\"\n\nAll fields must be present even if there is no information, using “unknown.”\n\nThe JSON must always be valid, with no comments or explanations around it.\n\nUse formal, technical, and clear language suitable for corporate analysis.\n\nPrioritize information useful for inventories, classification, and security decisions.\n\nIn the lists for PaidAlternatives, OpenSourceAlternatives, and CommonUseCases, include a maximum of 3 options.\n\nFor longer texts such as Introduction, Details, IntegrationDependencies, CommonUseCases, and SystemRequirements, limit the text to a maximum of 500 characters and be very concise with the information provided.","pt":"Você é um sistema especialista em análise de software, cibersegurança, gestão de inventários e catalogação de aplicações. Sua tarefa é enriquecer as informações de produtos de software detectados por um agente, fornecendo dados confiáveis e estruturados.\n\n<TextoBusqueda> \"[Software]\" </TextoBusqueda>\n\nUtilizando o nome do software recebido em <TextoBusqueda>, você deve gerar uma estrutura JSON completa com informações técnicas, claras e úteis para análise corporativa.\n\nO JSON de resposta deve conter todas as seguintes seções, sem adicionar nenhuma seção ou campo adicional:\n{\n\"SoftwareName\": \"\",\n\"Introduction\": \"\",\n\"SoftwareType\": \"\",\n\"Details\": \"\",\n\"LicenseType\": \"\",\n\"WebManufacturer\": \"\",\n\"WebDownload\": \"\",\n\"LatestVersion\": \"\",\n\"DateLatestVersion\": \"\",\n\"PaidAlternatives\": \"\",\n\"OpenSourceAlternatives\": \"\",\n\"OsCompatibility\": \"\",\n\"SystemRequirements\": {\n\"procesador\": \"\",\n\"memoria\": \"\",\n\"almacenamiento\": \"\"\n},\n\"SecurityRiskCategory\": \"\",\n\"IntegrationDependencies\": [],\n\"CommonUseCases\": []\n}\n\n##Explicação das seções do JSON\n\n\"SoftwareName\" = Aqui vai o <TextoBusqueda>, que contém o nome do software junto com a versão\n\n\"Introduction\" = breve explicação do software e seu propósito\n\n\"SoftwareType\" = classificação funcional, como por exemplo: compressão, segurança, edição, etc.\n\n\"Details\" = descrição ampliada sobre funcionalidades e características principais\n\n\"LicenseType\" = tipo de licença, podendo ser uma ou várias, como por exemplo: freeware | open source | comercial | trial | etc.\n\n\"WebManufacturer\" = URL do site oficial do fabricante\n\n\"WebDownload\" = URL de download direto ou principal do software (se aplicável)\n\n\"LatestVersion\" = número da última versão estável disponível\n\n\"DateLatestVersion\" = data de lançamento da última versão estável\n\n\"PaidAlternatives\" = softwares similares pagos, separados por vírgula, máximo 5\n\n\"OpenSourceAlternatives\" = alternativas gratuitas similares, separadas por vírgula, máximo 5\n\n\"OsCompatibility\" = sistemas operacionais nos quais o software pode ser executado, separados por vírgula, máximo 5\n\n\"SystemRequirements\" = requisitos de sistema necessários para o software; incluir os requisitos principais no formato dicionário (chave-valor), máximo 6.\nExemplo: \"procesador\": \"<CPU mínima>\", \"memoria\": \"<RAM mínima>\", \"almacenamiento\": \"<espaço em disco requerido>\", etc.\n\n\"SecurityRiskCategory\" = informação resumida sobre se o software é potencialmente indesejado (PUP), obsoleto ou associado a vulnerabilidades\n\n\"IntegrationDependencies\" = outras ferramentas ou frameworks com os quais o software se integra ou depende; listar como texto, máximo 5\n\n\"CommonUseCases\" = exemplos de tarefas ou cenários onde o software costuma ser utilizado; listar como texto, máximo 5\n\n##Regras estritas do modelo:\n\nNunca invente dados verificáveis como número de versão ou data de lançamento.\n\nSe não for possível determinar algum dado, envie “desconhecido”:\nPor exemplo:\n\"ultima_version\": \"desconhecida\"\n\"fecha_ultima_version\": \"desconhecida\"\n\nTodos os campos devem estar presentes mesmo que não haja informação, usando “desconhecido”.\n\nO JSON deve ser sempre válido, sem comentários ou explicações ao redor.\n\nUtilize uma linguagem formal, técnica e clara para análise corporativa.\n\nPriorize informações úteis para inventários, classificação e decisões de segurança.\n\nNas seções de alternativas comerciais, alternativas gratuitas e casos de uso comuns, colocar no máximo 3 opções.\n\nEm textos extensos como introdução, descrição, dependências de integração, casos de uso comuns e requisitos mínimos, limitar o texto a no máximo 500 caracteres, sendo muito conciso com as informações apresentadas."}}]}',
	1,
	2
GO

EXEC [MD_AI_TASK] 15, 
	N'Traduccion de textos',
	2,
	N'{"es":{"name":"Traducción de textos","description":"Detecta el idioma de cada texto y lo traduce al idioma destino"},"en":{"name":"Text translation","description":"Text translation"},"pt":{"name":"Tradução de texto","description":"Tradução de texto"}}', 
	1,	
	N'{"version":"1","params":[{"name":"max_tokens","type":"int","value":8000,"min":500,"max":16000,"required":true},{"name":"temperature","type":"decimal","numberMaxDecimal":2,"value":1,"min":0,"max":2,"required":true},{"name":"top_p","type":"decimal","numberMaxDecimal":2,"value":1,"min":0,"max":1,"required":true},{"name":"stop","type":"text","value":null,"required":false},{"name":"frequency_penalty","type":"decimal","numberMaxDecimal":2,"value":0,"min":0,"max":2,"required":true},{"name":"presence_penalty","type":"decimal","numberMaxDecimal":2,"value":0,"min":0,"max":2,"required":true},{"name":"prompt","type":"multiline","value":"","required":true}],"paramsByLanguage":[{"name":"prompt","type":"multiline","value":{"es":"Debes detectar el idioma en el que se encuentra cada uno de los textos de la Lista de textos a traducir y traducirlos al idioma : [LanguageTranslation]\n\n\nIMPORTANTE: SI ENCUENTRAS CONTENIDO HTML:\n\n **Conservación del Contenido Original**: \n   - **Elementos `[[IMAGE]]`**: Si el texto original contiene etiquetas `[[IMAGE]]`, estas deben conservarse exactamente como aparecen, en las mismas ubicaciones.\n   - **Sin Creación de Nuevos Elementos**: No añadas etiquetas `[[IMAGE]]` si no están presentes en el texto original.\n\n**Validación del Resultado**: Asegúrate de que el HTML devuelto sea válido, claro y cumpla con todas las instrucciones mencionadas, incluyendo:\n   - La conservación y ubicación correcta de las etiquetas `[[IMAGE]]` (si están presentes).\n   - La ausencia de cualquier etiqueta `[[IMAGE]]` si no existía en el texto original.\n   - No añadas etiquetas html que no estan en el texto original\n\n\nla respuesta debe ser un json con el formato:\n\n[\n    {\n        \"Id\": \"<id1>\",\n        \"Text\": <texto traducido> (con etiquetas html originales si las hay)\n    },\n    {\n        \"Id\": \"<id2>\",\n        \"Text\": <texto traducido>\n    }...\n]\n\n\nLista de textos a traducir:\n\n[TextList]","en":"You must detect the language in which each of the texts in the List of texts to translate is written and translate them into the language : [LanguageTranslation]\r\r\rIMPORTANT: IF YOU FIND HTML CONTENT:\r\r Preservation of the Original Content: \r - [[IMAGE]] Elements: If the original text contains [[IMAGE]] tags, they must be preserved exactly as they appear, in the same locations.\r - No Creation of New Elements: Do not add [[IMAGE]] tags if they are not present in the original text.\r\rResult Validation: Make sure that the returned HTML is valid, clear, and complies with all the instructions mentioned, including:\r - The preservation and correct placement of the [[IMAGE]] tags (if present).\r - The absence of any [[IMAGE]] tag if it did not exist in the original text.\r - Do not add html tags that are not in the original text\r\r\rthe response must be a json with the format:\r\r[\r {\r \"Id\": \"<id1>\",\r \"Text\": <translated text> (with original html tags if any)\r },\r {\r \"Id\": \"<id2>\",\r \"Text\": <translated text>\r }...\r]\r\r\rList of texts to translate:\r\r[TextList]","pt":"Você deve detectar o idioma em que se encontra cada um dos textos da Lista de textos a traduzir e traduzi-los para o idioma : [LanguageTranslation]\n\n\nIMPORTANTE: SE VOCÊ ENCONTRAR CONTEÚDO HTML:\n\n Preservação do Conteúdo Original: \n - Elementos [[IMAGE]]: Se o texto original contiver tags [[IMAGE]], elas devem ser preservadas exatamente como aparecem, nos mesmos locais.\n - Sem Criação de Novos Elementos: Não adicione tags [[IMAGE]] se elas não estiverem presentes no texto original.\n\nValidação do Resultado: Certifique-se de que o HTML retornado seja válido, claro e cumpra todas as instruções mencionadas, incluindo:\n - A preservação e a localização correta das tags [[IMAGE]] (se estiverem presentes).\n - A ausência de qualquer tag [[IMAGE]] se ela não existia no texto original.\n - Não adicione tags html que não estejam no texto original\n\n\na resposta deve ser um json com o formato:\n\n[\n {\n \"Id\": \"<id1>\",\n \"Text\": <texto traduzido> (com tags html originais, se houver)\n },\n {\n \"Id\": \"<id2>\",\n \"Text\": <texto traduzido>\n }...\n]\n\n\nLista de textos a traduzir:\n\n[TextList]"}}]}',
	1,
	13
GO

PRINT 'MD_AI_TASK!!'
GO
EXEC [MD_ASMS_MAIL_TEMPLATE] NULL, 'Self Register Notification', 'Confirmación de registro de usuario', 
'<html>
    <head></head>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="background-color: #ffffff;">
        <p>Estimado usuario: {{User.Name}}</p>
        <p>Se ha registrado en el proyecto:  {{Project.Name}}</p>
        <p>Télefono: {{User.Mobil}}</p>
        <p>Correo: {{User.Email}}</p>
        <p>Ingrese <a href="{{PasswordUrl}}">aqui</a> para asignar su contraseña</p>
        <p>&nbsp;</p>
    </body>
</html>', 1, NULL, 37, NULL, 1, NULL, NULL, 1

EXEC [MD_ASMS_MAIL_TEMPLATE] NULL, 'Password Change', 'Recordatorio Password', 
'<html>
    <body>
        <table style="width: 500px; height: 300px; text-align: center">
            <tbody>
                <tr>
                    <td>
                        <table style="width: 100%; height: 100%; background-color: #f5f6f7; border: 2px solid #e3e3e3; color: #9e9f9e; border-collapse: collapse;">
                            <tbody>
                                <tr>
                                    <td style="text-align: left;">
                                        <p style="padding-left: 40px;">Estimado : {{User.Name}}.</p>
                                        <p style="padding-left: 40px;">Hemos recibido una solicitud para restablecer su contrase&ntilde;a. </p>
                                        <p style="padding-left: 40px;">Por favor vaya al siguiente <a href="{{PasswordUrl}}">enlace</a> para cambiar su contraseña. </p>
                                        <p style="padding-left: 40px;">Para proteger tu cuenta, no reenv&iacute;es este mensaje</p>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </body>
</html>', 1, NULL, 53, NULL, 1, NULL, NULL, 1

PRINT 'MD_ASMS_MAIL_TEMPLATE DONE!!'
GO


EXEC [MD_AI_TASK_APPLICATION] 1, 12
EXEC [MD_AI_TASK_APPLICATION] 2, 12
EXEC [MD_AI_TASK_APPLICATION] 3, 12
EXEC [MD_AI_TASK_APPLICATION] 4, 12
EXEC [MD_AI_TASK_APPLICATION] 5, 12
EXEC [MD_AI_TASK_APPLICATION] 6, 12
EXEC [MD_AI_TASK_APPLICATION] 7, 12
EXEC [MD_AI_TASK_APPLICATION] 8, 12
EXEC [MD_AI_TASK_APPLICATION] 9, 12
EXEC [MD_AI_TASK_APPLICATION] 10, 12
EXEC [MD_AI_TASK_APPLICATION] 11, 12
EXEC [MD_AI_TASK_APPLICATION] 12, 12
EXEC [MD_AI_TASK_APPLICATION] 13, 32
EXEC [MD_AI_TASK_APPLICATION] 14, 32
EXEC [MD_AI_TASK_APPLICATION] 15, 12
GO

PRINT 'METADATA_AI_TASK_APPLICATION DONE!!'
GO

EXEC [MD_ASDK_VIEW] 1, NULL, N'TicketsAssigned', N'TicketsAssigned', N'', N'ResponsibleId == @userId', 1, NULL, NULL, 1
EXEC [MD_ASDK_VIEW] 2, NULL, N'MyGroups', N'MyGroups', N'', N'context.UserGroups.Where(y => y.UserId == @userId.Select(y => y.GroupId.Contains(x.GroupId.Value', 1, NULL, NULL, 1
EXEC [MD_ASDK_VIEW] 4, NULL, N'filterByProject', N'filterByProject', N'', N'ProjectId == @projectId', 1, NULL, NULL, 1
EXEC [MD_ASDK_VIEW] 5, NULL, N'NextToEnd', N'NextToEnd', N'', N'ResponsibleId == @userId && CurrentProgress >= 80', 1, NULL, NULL, 1
GO

PRINT 'MD_ASDK_VIEW DONE!!'

GO

/*
Post-Deployment Script Template							
--------------------------------------------------------------------------------------
 This file contains SQL statements that will be appended to the build script.		
 Use SQLCMD syntax to include a file in the post-deployment script.			
 Example:      :r ..\myfile.sql								
 Use SQLCMD syntax to reference a variable in the post-deployment script.		
 Example:      :setvar TableName MyTable							
               SELECT * FROM [$(TableName)]					
--------------------------------------------------------------------------------------
*/

--INITIALIZE DEPLOY
CREATE PROCEDURE METADATA_AFLS_SETTINGS
	@sett_key				NVARCHAR(55),
	@sett_datatype    		VARCHAR(100),
	@sett_options			VARCHAR(MAX),
	@sett_length			INT,
	@sett_label				VARCHAR(100),
	@sett_placeholder		VARCHAR(100),
	@sett_group				VARCHAR(100),
	@sett_is_active			BIT,
	@sett_order			    INT,
	@is_common				BIT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_SETTINGS] WHERE [sett_key] = @sett_key)
		BEGIN
			UPDATE [dbo].[AFLS_SETTINGS]
			SET [sett_datatype] = @sett_datatype,
				[sett_options] = @sett_options,
				[sett_length] = @sett_length,
				[sett_label] = @sett_label,
				[sett_placeholder] = @sett_placeholder,
				[sett_group] = @sett_group,
				[sett_is_active] = @sett_is_active,
				[sett_order] = @sett_order,
				[is_common] = @is_common
			WHERE [sett_key] = @sett_key
		END
	ELSE
		BEGIN
			INSERT INTO [dbo].[AFLS_SETTINGS]
			(
				[sett_key],
				[sett_datatype],
				[sett_options],
				[sett_length],
				[sett_label],
				[sett_placeholder],
				[sett_group],
				[sett_is_active],
				[sett_order],
				[is_common]
			)VALUES(
				@sett_key, 
				@sett_datatype,
				@sett_options,
				@sett_length,
				@sett_label,
				@sett_placeholder,
				@sett_group,
				@sett_is_active,
				@sett_order,
				@is_common
			)
		END
END
GO


CREATE PROCEDURE MD_AFLS_MODULE_FUNCTIONALITY
	@modu_id				INT,
	@modu_name   			VARCHAR(50),
	@func_id				INT,
	@func_name				VARCHAR(50)
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_MODULE_FUNCTIONALITY] WHERE [modu_id] = @modu_id AND [func_id] = @func_id)
		BEGIN
			UPDATE [dbo].[AFLS_MODULE_FUNCTIONALITY]
			SET [modu_id] = @modu_id,
				[modu_name] = @modu_name,
				[func_id] = @func_id,
				[func_name] = @func_name
			WHERE [modu_id] = @modu_id AND [func_id] = @func_id
		END
	ELSE
		BEGIN
			INSERT INTO [dbo].[AFLS_MODULE_FUNCTIONALITY]
			(
				[modu_id],
				[modu_name],
				[func_id],
				[func_name]
			)VALUES(
				@modu_id, 
				@modu_name,
				@func_id,
				@func_name
			)
		END
END
GO


CREATE PROCEDURE [dbo].[MD_AFLS_ATTACHMENTS_TYPE]
@id					INT,
@name				VARCHAR(100),
@description   		VARCHAR(500),
@state				BIT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_ATTACHMENTS_TYPE] WHERE [attc_type_id] = @id)
		BEGIN

		UPDATE [dbo].[AFLS_ATTACHMENTS_TYPE]
		   SET [attc_type_name] = @name
			  ,[attc_type_description] = @description
			  ,[state] = @state
		 WHERE  [attc_type_id] = @id

		END
	ELSE
		BEGIN
			INSERT INTO [dbo].[AFLS_ATTACHMENTS_TYPE]
			   ([attc_type_name]
			   ,[attc_type_description]
			   ,[state])
			 VALUES
				   (@name
				   ,@description
				   ,@state)
		END
END
GO

CREATE PROCEDURE MD_AFLS_INV_LOCATION_INFO
@id					INT,
@name				NVARCHAR(256),
@description   		NVARCHAR(500),
@path				NVARCHAR(256),
@is_active			INT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_INVENTORY_LOCATION_INFO] WHERE [grou_id] = @id)
		BEGIN
			UPDATE [dbo].[AFLS_INVENTORY_LOCATION_INFO]
			SET [grou_name] = @name,
				[asli_description] = @description,
				[aslt_path] = @path,
				[asli_is_active] = @is_active
			WHERE [grou_id] = @id
		END
	ELSE
		BEGIN
			INSERT INTO [dbo].[AFLS_INVENTORY_LOCATION_INFO]
			(
				[grou_name],
				[asli_description],
				[aslt_path],
				[asli_is_active]
			)VALUES(
				@name, 
				@description,
				@path,
				@is_active
			)
		END
END
GO


CREATE PROCEDURE [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES]
@id				INT,
@name			VARCHAR(50), 
@description	NVARCHAR(MAX),
@type_id		INT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_INVENTORY_LOCATION_CATEGORIES] WHERE aslc_id = @id)
		BEGIN
			 UPDATE [dbo].[AFLS_INVENTORY_LOCATION_CATEGORIES]
			   SET [aslc_name] = @name
				  ,[aslc_description] = @description
				  ,[aslt_id] = @type_id
			 WHERE [aslc_id] = @id
		END
	ELSE
		BEGIN
			INSERT INTO [dbo].[AFLS_INVENTORY_LOCATION_CATEGORIES]
	           ([aslc_name]
	           ,[aslc_description]
	           ,[aslt_id])			   
				VALUES
			   (@name
			   ,@description
			   ,@type_id)
		END
END
GO


CREATE PROCEDURE [dbo].[MD_AFLS_INV_LOCATION_TYPES]
@id				INT,
@name			NVARCHAR(50),
@description	NVARCHAR(MAX)
AS
BEGIN
	IF EXISTS (SELECT 1  FROM [AFLS_INVENTORY_LOCATION_TYPES] WHERE [aslt_id] = @id)
		UPDATE [AFLS_STOCK_LOCATION_TYPES]
		SET 
			[aslt_name] = @name,
			[aslt_description]= @description
		WHERE [aslt_id] = @id
	ELSE
		BEGIN
			SET IDENTITY_INSERT [dbo].[AFLS_INVENTORY_LOCATION_TYPES] ON
			INSERT INTO [dbo].[AFLS_INVENTORY_LOCATION_TYPES]
				([aslt_id], [aslt_name], [aslt_description])
			VALUES
				(@id, @name, @description)
			SET IDENTITY_INSERT [dbo].[AFLS_INVENTORY_LOCATION_TYPES] OFF
		END
END
GO

CREATE PROCEDURE [dbo].[MD_AFLS_INV_MEASURES]
@id				INT,
@name			VARCHAR(255), 
@description	NVARCHAR(MAX),
@is_active		INT
AS
BEGIN
	IF EXISTS (SELECT 1  FROM [AFLS_INVENTORY_MEASURES] WHERE [mea_id] = @id)
		UPDATE [AFLS_INVENTORY_MEASURES]
		SET 
			[mea_name] = @name,
			[mea_description]= @description,
			[mea_active] = @is_active
		WHERE [mea_id] = @id
	ELSE
		BEGIN
			SET IDENTITY_INSERT [dbo].[AFLS_INVENTORY_MEASURES] ON
			INSERT INTO [dbo].[AFLS_INVENTORY_MEASURES]
				([mea_id], [mea_name] ,[mea_description] ,[mea_active])
			VALUES
				(@id, @name, @description, @is_active)
			SET IDENTITY_INSERT [dbo].[AFLS_INVENTORY_MEASURES] OFF
		END
END
GO

CREATE PROCEDURE [dbo].[MD_AFLS_INV_MOVEMENT_TYPES]
	@type_id		INT,
	@type_name		VARCHAR(50), 
	@type_inout		INT
AS
BEGIN
	IF EXISTS (SELECT 1  FROM [AFLS_INVENTORY_MOVEMENT_TYPES] WHERE [type_id] = @type_id)
		UPDATE [AFLS_INVENTORY_MOVEMENT_TYPES]
		SET 
			[type_name] = @type_name,
			[type_inout]= @type_inout
		WHERE [type_id] = @type_id
	ELSE
		BEGIN
			SET IDENTITY_INSERT [dbo].[AFLS_INVENTORY_MOVEMENT_TYPES] ON
			INSERT INTO [dbo].[AFLS_INVENTORY_MOVEMENT_TYPES]
				([type_id], [type_name], [type_inout])
			VALUES
				(@type_id, @type_name, @type_inout)
			SET IDENTITY_INSERT [dbo].[AFLS_INVENTORY_MOVEMENT_TYPES] OFF
		END
END

GO
CREATE PROCEDURE [dbo].[MD_AFLS_INV_PRODUCTS_TYPE]
@id				INT,
@name			NVARCHAR(128),
@urlImagen		VARCHAR(300),
@active			BIT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] WHERE aipt_id = @id)
		BEGIN
			UPDATE [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE]
			   SET [aipt_name] = @name
				  ,[aipt_url_image] = @urlImagen
				  ,[aipt_is_active] = @active
			 WHERE aipt_id = @id
		END
	ELSE
		BEGIN
			SET IDENTITY_INSERT [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] ON
			INSERT INTO [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE]
			   (
			    [aipt_id]
			   ,[aipt_name]
			   ,[aipt_url_image]
			   ,[aipt_is_active])
				VALUES
			   (
				@id
			   ,@name
			   ,@urlImagen
			   ,@active)
			SET IDENTITY_INSERT [dbo].[AFLS_INVENTORY_PRODUCTS_TYPE] OFF
		END
END
GO

CREATE PROCEDURE [dbo].[MD_AFLS_IMPORT_FILE_PROCESS_STATE]
@id					INT,
@name				NVARCHAR(200),
@state				BIT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_IMPORT_FILE_PROCESS_STATE] WHERE [id] = @id)
		BEGIN
		 UPDATE [dbo].[AFLS_IMPORT_FILE_PROCESS_STATE]
		   SET [name] = @name
			  ,[state] = @state
		 WHERE [id] = @id		
		END
	ELSE
		BEGIN
		INSERT INTO [dbo].[AFLS_IMPORT_FILE_PROCESS_STATE]
		 	 ([name]
			 ,[state])
		VALUES
			 (@name
			 ,@state)			
		END
END
GO

CREATE PROCEDURE [dbo].[MD_AFLS_IMPORT_FILE_PROCESS_TYPE]
@id					INT,
@name				NVARCHAR(200),
@state				BIT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_IMPORT_FILE_PROCESS_TYPE] WHERE [id] = @id)
		BEGIN
		 UPDATE [dbo].[AFLS_IMPORT_FILE_PROCESS_TYPE]
		   SET [name] = @name
			  ,[state] = @state
		 WHERE [id] = @id		
		END
	ELSE
		BEGIN
		INSERT INTO [dbo].[AFLS_IMPORT_FILE_PROCESS_TYPE]
		 	 ([name]
			 ,[state])
		VALUES
			 (@name
			 ,@state)			
		END
END
GO


CREATE PROCEDURE [dbo].[MD_AFLS_ERROR_TYPE]
@id					TINYINT,
@name				VARCHAR(50),
@description		NVARCHAR(250),
@state				BIT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_ERROR_TYPE] WHERE [type_id] = @id)
		BEGIN
		 UPDATE [dbo].[AFLS_ERROR_TYPE]
		   SET [type_name] = @name,
			  [type_description] = @description,
			  [type_active] = @state
		 WHERE [type_id] = @id		
		END
	ELSE
		BEGIN
		INSERT INTO [dbo].[AFLS_ERROR_TYPE]
		 	 ([type_id],
			  [type_name],
			  [type_description],
			  [type_active])
		VALUES
			 (@id,
			  @name,
			  @description,
			  @state)			
		END
END
GO

CREATE PROCEDURE [dbo].[MD_AFLS_ERROR_MESSAGES]
@id					SMALLINT,
@type				TINYINT,
@name				VARCHAR(50),
@description		NVARCHAR(250),
@resource			VARCHAR(255),
@state				BIT
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_ERROR_MESSAGES] WHERE [error_id] = @id)
		BEGIN
		 UPDATE [dbo].[AFLS_ERROR_MESSAGES]
		   SET [type_id] = @type,
			   [error_name] = @name,
			   [error_description] = @description,
			   [error_resource] = @resource,
			   [error_active] = @state
		 WHERE [type_id] = @id		
		END
	ELSE
		BEGIN
		INSERT INTO [dbo].[AFLS_ERROR_MESSAGES]
		 	 ([error_id],
			  [type_id],
			  [error_name],
			  [error_description],
			  [error_resource],
			  [error_active])
		VALUES
			 (@id,
			  @type,
			  @name,
			  @description,
			  @resource,
			  @state)			
		END
END
GO

CREATE PROCEDURE [dbo].[MD_AFLS_WEBHOOKS_TYPE]
	@id					INT,
	@name				VARCHAR(100),
	@description		VARCHAR(255)
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_WEBHOOKS_TYPE] WHERE [id] = @id)
		BEGIN
			UPDATE [dbo].[AFLS_WEBHOOKS_TYPE]
			SET [name] = @name
				,[description] = @description
			WHERE [id] = @id		
		END
	ELSE
		BEGIN
			INSERT INTO [dbo].[AFLS_WEBHOOKS_TYPE]
		 		 ([id]
				 ,[name]
				 ,[description])
			VALUES
				 (@id
				 ,@name
				 ,@description)			
		END
END
GO


CREATE PROCEDURE [dbo].[MD_AFLS_WEBHOOKS_TAGS]
	@id					INT,
	@type_id			INT,
	@label				VARCHAR(255),
	@value       		VARCHAR(255)
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [dbo].[AFLS_WEBHOOKS_TAGS] WHERE [id] = @id)
		BEGIN
			UPDATE [dbo].[AFLS_WEBHOOKS_TAGS]
			SET [type_id] = @type_id
				,[label] = @label
				,[value] = @value
			WHERE [id] = @id		
		END
	ELSE
		BEGIN
			INSERT INTO [dbo].[AFLS_WEBHOOKS_TAGS]
		 		 ([type_id]
				 ,[label]
				 ,[value]
				 ,[is_additional])
			VALUES
				 (@type_id
				 ,@label
				 ,@value
				 ,0)			
		END
END
GO


CREATE PROCEDURE [dbo].[MD_AFW_SURVEY]
	@id				INT,
	@application_id INT,
	@project		INT,
	@title			VARCHAR(50), 
	@name			VARCHAR(255),
	@description	VARCHAR(255)
AS
BEGIN
	IF EXISTS (SELECT 1  FROM [AFW_SURVEY] WHERE [Id] = @id)
		UPDATE [AFW_SURVEY]
		SET 
			[ApplicationId] = @application_id,
			[ProjectId] = @project,
			[Title] = @title,
			[Name] = @name,
			[Description] = @description
		WHERE [Id] = @id
	ELSE
		BEGIN
			SET IDENTITY_INSERT [dbo].[AFW_SURVEY] ON
			INSERT INTO [dbo].[AFW_SURVEY] (
				[Id],
				[ApplicationId],
				[ProjectId] ,
				[Title] ,
				[Name],
				[Description],
				[Status],
				[CreatedBy],
				[CreationDate],
				[IsDeleted]
			)
			VALUES (
				@id, 
				@application_id, 
				@project, 
				@title,
				@name,
				@description,
				2,
				0,
				GETUTCDATE(),
				0
			)
			SET IDENTITY_INSERT [dbo].[AFW_SURVEY] OFF
		END
END
GO
CREATE PROCEDURE [dbo].[MD_AFW_SURVEY_QUESTION]
	@id							INT,
	@question_type				INT,
	@survey_id					INT,
	@title						NVARCHAR(MAX),
	@help_text					NVARCHAR(200), 
	@mandatory					INT,
	@order						INT,
	@include_report				INT,
	@max_value					INT,
	@justification_required		INT,
	@justification_label		NVARCHAR(200),
	@justification_mandatory	INT,
	@choice_mandatory			INT
AS
BEGIN
	IF EXISTS (SELECT 1  FROM [AFW_SURVEY_QUESTION] WHERE [Id] = @id)
		UPDATE [AFW_SURVEY_QUESTION]
		SET 
			[QuestionTypeId] = @question_type,
			[SurveyId] = @survey_id,
			[Title] = @title,
			[HelpText] = @help_text,
			[Mandatory] = @mandatory,
			[QuestionOrder] = @order,
			[IncludedToReport] = @include_report,
			[MaxValue] = @max_value,
			[JustificationRequired] = @justification_required,
			[JustificationLabel] = @justification_label,
			[JustificationMandatory] = @justification_mandatory,
			[ChoiceMandatory] = @choice_mandatory
		WHERE [Id] = @id
	ELSE
		BEGIN
			SET IDENTITY_INSERT [dbo].[AFW_SURVEY_QUESTION] ON
			INSERT INTO [dbo].[AFW_SURVEY_QUESTION] (
				[Id],
				[QuestionTypeId],
				[SurveyId],
				[Title],
				[HelpText],
				[Mandatory],
				[QuestionOrder],
				[IncludedToReport],
				[MaxValue],
				[JustificationRequired],
				[JustificationLabel],
				[JustificationMandatory],
				[ChoiceMandatory],
				[CreatedBy],
				[CreationDate],
				[IsDeleted]
			)
			VALUES (
				@id, 
				@question_type,
				@survey_id,
				@title,
				@help_text,
				@mandatory,
				@order,
				@include_report,
				@max_value,
				@justification_required,
				@justification_label,
				@justification_mandatory,
				@choice_mandatory,
				0,
				GETUTCDATE(),
				0
			)
			SET IDENTITY_INSERT [dbo].[AFW_SURVEY_QUESTION] OFF
		END
END
GO
CREATE PROCEDURE [dbo].[MD_AFW_SURVEY_CONFIGURATION]
	@id							INT,
	@application_id				INT,
	@project					INT,
	@frecuency_type				INT,
	@internal_monitor			VARCHAR(MAX), 
	@extenral_monitor			VARCHAR(MAX),
	@satisfaction_level			INT
AS
BEGIN
	IF EXISTS (SELECT 1  FROM [AFW_SURVEY_CONFIGURATION] WHERE [Id] = @id)
		UPDATE [AFW_SURVEY_CONFIGURATION]
		SET 
			[ApplicationId] = @application_id,
			[ProjectId] = @project,
			[FrecuencyType] = @frecuency_type,
			[InternalMonitors] = @internal_monitor,
			[ExternalMonitors] = @extenral_monitor,
			[SatisfactionLevel] = @satisfaction_level
		WHERE [Id] = @id
	ELSE
		BEGIN
			SET IDENTITY_INSERT [dbo].[AFW_SURVEY_CONFIGURATION] ON
			INSERT INTO [dbo].[AFW_SURVEY_CONFIGURATION] (
				[Id],
				[ApplicationId],
				[ProjectId],
				[FrecuencyType],
				[InternalMonitors],
				[ExternalMonitors],
				[SatisfactionLevel]
			)
			VALUES (
				@id, 
				@application_id,
				@project,
				@frecuency_type,
				@internal_monitor,
				@extenral_monitor,
				@satisfaction_level
			)
			SET IDENTITY_INSERT [dbo].[AFW_SURVEY_CONFIGURATION] OFF
		END
END
GO


/* AFLS INITIAL METADATA*/
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@id INT,
	@name VARCHAR(50)		
AS
BEGIN
	IF EXISTS (SELECT 1 FROM AFLS_TYPE_AGREEMENT WHERE name = @name )
	BEGIN
		UPDATE [dbo].AFLS_TYPE_AGREEMENT
		   SET name = @name		  
		 WHERE id = @id
	END
	ELSE
	BEGIN
	SET IDENTITY_INSERT AFLS_TYPE_AGREEMENT ON
	INSERT INTO AFLS_TYPE_AGREEMENT (id,name) VALUES
	(@id,@name)
	SET IDENTITY_INSERT AFLS_TYPE_AGREEMENT OFF
	END
	
END
GO

EXEC [dbo].[MetadataInsert] 1,'SLA'
EXEC [dbo].[MetadataInsert] 2,'UC'
EXEC [dbo].[MetadataInsert] 3,'OLA'

Print 'AFLS TYPE AGREEMENT DONE!'





--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@Id int,
	@name varchar(50)	
AS
BEGIN
	IF EXISTS (SELECT 1 FROM AFLS_PRIORITY WHERE name = @name )
	BEGIN
		UPDATE [dbo].AFLS_PRIORITY
		   SET name = @name			  
		 WHERE name = @name
	END
	ELSE
	BEGIN
		INSERT INTO AFLS_PRIORITY (id,name) VALUES
		(@id,@name)
	END
	
END
GO

EXEC [dbo].[MetadataInsert] 0,'normal'
EXEC [dbo].[MetadataInsert] 1,'emergency'
EXEC [dbo].[MetadataInsert] 2,'priority'


--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@id INT,
	@name VARCHAR(50),
	@description VARCHAR(250),
	@date_start DATETIME,
	@date_finish DATETIME,
	@penality NUMERIC,
	@sla_date_review DATETIME,
	@finish_has_alarm BIT,
	@finish_limitdays INT,
	@review_has_alarm BIT,
	@review_limitdays INT,
	@sla_costse DECIMAL,
	@proj_id INT,
	@agreement_type INT
		
AS
BEGIN
	IF EXISTS (SELECT 1 FROM AFLS_SLA WHERE sla_id = @id )
	BEGIN
		UPDATE [dbo].AFLS_SLA
		   SET name = @name,
		   description = @description,
		   date_start = @date_start,
		   date_finish = @date_finish,
		   penality = @penality,
		   sla_date_review = @sla_date_review,
		   finish_has_alarm = @finish_has_alarm,
		   finish_limitdays = @finish_limitdays,
		   review_has_alarm = @review_has_alarm,
		   review_limitdays = @review_limitdays,			  
		   sla_costse = @sla_costse,
		   proj_id = @proj_id,
		   agreement_type = @agreement_type
		 WHERE sla_id = @id
	END
	ELSE
	BEGIN
	SET IDENTITY_INSERT AFLS_SLA ON
	INSERT INTO AFLS_SLA (sla_id,name,description,date_start,date_finish,penality,sla_date_review,finish_has_alarm,finish_limitdays,review_has_alarm,review_limitdays,sla_costse,proj_id,is_deleted, agreement_type) VALUES
	(@id,@name,@description,@date_start,@date_finish,@penality,@sla_date_review,@finish_has_alarm,@finish_limitdays,@review_has_alarm,@review_limitdays,@sla_costse,@proj_id,0,@agreement_type)
	SET IDENTITY_INSERT AFLS_SLA OFF
	END
	
END
GO

DECLARE @StartDate DATETIME
SET @StartDate = GETDATE()

EXEC [dbo].[MetadataInsert] 1,'ANS General','ANS basico para los servicios de su compañia',@StartDate,NULL,0,NULL,0,NULL,0,NULL,0,NULL,1
EXEC [dbo].[MetadataInsert] 2,'UC General','UC basico para los servicios de su compañia',@StartDate,NULL,0,NULL,0,NULL,0,NULL,0,NULL,2
EXEC [dbo].[MetadataInsert] 3,'OLA General','OLA basico para los servicios de su compañia',@StartDate,NULL,0,NULL,0,NULL,0,NULL,0,NULL,3








DELETE FROM [dbo].[AFLS_VERSION]
      WHERE Key_version = 'app_Version'
GO

DELETE FROM [dbo].[AFLS_VERSION]
      WHERE Key_version = 'db_Version'
GO

INSERT INTO [dbo].[AFLS_VERSION]
           (Key_version
           ,[Value_version])
     VALUES
           ('app_Version'
           ,'9.10.1')
GO

INSERT INTO [dbo].[AFLS_VERSION]
           (Key_version
           ,[Value_version])
     VALUES
           ('db_Version'
           ,'9.10.1')
GO

/* Common Integragion METADATA*/

Print 'AFW CONCEPT!'

EXEC [dbo].[METADATA_CONCEPT] 34001, 'MODEL'
EXEC [dbo].[METADATA_CONCEPT] 34002, 'SERVICES'
EXEC [dbo].[METADATA_CONCEPT] 34003, 'CLIENT'
EXEC [dbo].[METADATA_CONCEPT] 34004, 'AFLSCOMPANY'
EXEC [dbo].[METADATA_CONCEPT] 34005, 'WORKORDER'
EXEC [dbo].[METADATA_CONCEPT] 34006, 'CI'
EXEC [dbo].[METADATA_CONCEPT] 34007, 'LOCATIONS'
EXEC [dbo].[METADATA_CONCEPT] 34008, 'PRODUCTS'
EXEC [dbo].[METADATA_CONCEPT] 34009, 'MOBILE_USERS'
EXEC [dbo].[METADATA_CONCEPT] 34010, 'WEB_USERS'


GO
Print 'AFW CONCEPT! DONE'
-- Permissiosn start at 34000 - 34999
-- Package Permissions
Print 'AFW PERMISSIONS'

EXEC [dbo].[METADATA_PERMISSIONS] 34001, N'ManageProduct', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34002, N'ManageServices', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34003, N'ManageCompanies', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34004, N'ManageClient', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34005, N'ManageTransports', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34006, N'ManagePositions', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34007, N'ManageUsers', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34008, N'ManageTenants', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34009, N'AFLSManageDashboard', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34010, N'Search', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34011, N'ManageWorkOrders', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34012, N'ManageMonitoring', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34013, N'ManageNotifications', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34014, N'AFLSManageLocation', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34015, N'ManageMeasure', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34016, N'ManageSignature', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34017, N'ManageInvLocation', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34018, N'ManageMovement', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34019, N'ManageUserLigth', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34020, N'ManageSkills', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34021, N'ManageAlerts', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34022, N'ManageAlertsType', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34023, N'ManageApiConfiguration', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34024, N'ManageAplicationInfo', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34025, N'ManageAsdkServices', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34026, N'ManageAssistmeConfiguration', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34027, N'ManageCase', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34028, N'ManageChannels', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34029, N'ManageChronometers', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34030, N'ManageChronoExecution', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34031, N'ManageCmdb', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34032, N'ManageConnectors', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34033, N'ManageCoverageZones', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34034, N'ManageEngineBussines', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34035, N'ManageErrorMobile', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34036, N'ManageError', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34037, N'ManageEstablishment', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34039, N'ManageExternalIntegration', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34040, N'ManageFileHandler', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34041, N'ManageGroups', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34042, N'ManageHome', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34043, N'ManageImportFileProcLog', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34044, N'ManageIntegrationDashBoard', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34045, N'ManageIntegrationServicesDesk', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34046, N'ManageJsonSchema', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34047, N'ManageLayers', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34049, N'ManageLicense', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34050, N'ManageLogs', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34052, N'ManageModels', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34053, N'ManageOla', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34054, N'ManagePrioritys', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34055, N'ManageProviders', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34056, N'ManageQuickAnswers', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34057, N'ManageReportMap', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34058, N'ManageSearcher', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34060, N'ManageSettings', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34061, N'ManageSla', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34062, N'ManageState', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34063, N'ManageSurvey', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34064, N'ManageTemplates', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34065, N'ManagethirdParty', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34066, N'ManageTimes', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34067, N'ManageUc', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34069, N'ManageUtilities', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34070, N'ManageWebHooks', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34071, N'ManageWorkDays', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34072, N'ManageWorkFlows', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34073, N'ManageWorkOrdersAssignLogs', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34074, N'ManageWorkOrdres', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34075, N'ManageEvents', NULL, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34076, N'ManageInvenrory', NULL, 1, 34,NULL

-- Permissions
EXEC [dbo].[METADATA_PERMISSIONS] 34100, N'CreateProduct',34001, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34101, N'UpdateProduct',34001, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34102, N'DeleteProduct',34001, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34103, N'GetProduct',34001, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34104, N'ActivateProduct',34001, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34105, N'CreateService',34002, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34106, N'UpdateService',34002, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34107, N'DeleteService',34002, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34108, N'GetService',34002, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34109, N'ActivateService',34002, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34110, N'AddProductService',34002, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34111, N'RemoveProductService',34002, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34112, N'ModifyRelatedProductService',34002, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34113, N'AddSkillService',34002, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34114, N'RemoveSkillService',34002, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34115, N'AFLSCreateCompany',34003, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34116, N'AFLSUpdateCompany',34003, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34117, N'AFLSDeleteCompany',34003, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34119, N'ActivateCompany',34003, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34120, N'AddServiceCompany',34003, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34121, N'RemoveServiceCompany',34003, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34122, N'ModifyRelatedServiceCompany',34003, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34123, N'CreateClient',34004, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34124, N'UpdateClient',34004, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34125, N'DeleteClient',34004, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34126, N'GetClient',34004, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34127, N'ActivateClient',34004, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34128, N'ModifyRelatedCompanyClient',34004, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34129, N'ModifyRelatedServiceClient',34004, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34130, N'CreateTransport',34005, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34131, N'UpdateTransport',34005, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34132, N'DeleteTransport',34005, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34133, N'GetTransport',34005, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34134, N'CreatePositions',34006, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34135, N'UpdatePositions',34006, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34136, N'DeletePositions',34006, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34137, N'GetPositions',34006, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34138, N'ActivatePositions',34006, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34139, N'ActivateUser',34007, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34140, N'ModifyDisponibilityUser',34007, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34141, N'AddSkillUser',34007, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34142, N'RemoveSkillUser',34007, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34143, N'CreateTenant',34008, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34144, N'UpdateTenant',34008, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34145, N'DeleteTenant',34008, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34146, N'GetTenant',34008, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34147, N'ActivateTenant',34008, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34148, N'AFLSGetDashboard',34009, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34149, N'GetSearch',34010, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34150, N'CreateWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34151, N'GetWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34152, N'UpdateWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34153, N'AssignWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34154, N'ReassignWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34155, N'UpdateMoreTimeWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34156, N'ChangeStateWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34157, N'AddAttachmentWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34158, N'RemoveAttachmentWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34159, N'ModifyAttachmentWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34160, N'AddProductWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34161, N'RemoveProductWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34162, N'ModifyRelatedProductWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34163, N'GetCostWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34164, N'GetCommentWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34165, N'AddCommentWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34166, N'GetHistoryWorkOrder',34011, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34167, N'GetMonitoring',34012, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34168, N'GetNotification',34013, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34169, N'CheckNotification',34013, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34171, N'SetLocation',34014, 1, 34,NULL

EXEC [dbo].[METADATA_PERMISSIONS] 34172, N'CreateMeasure',34015, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34173, N'UpdateMeasure',34015, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34174, N'DeleteMeasure',34015, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34175, N'GetMeasure',34015, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34176, N'ActivateMeasure',34015, 1, 34,NULL

EXEC [dbo].[METADATA_PERMISSIONS] 34177, N'DeleteSignature',34016, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34178, N'CreateInvLocation',34017, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34179, N'UpdateInvLocation',34017, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34180, N'DeleteInvLocation',34017, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34181, N'GetInvLocation',34017, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34182, N'ActivateInvLocation',34017, 1, 34,NULL

EXEC [dbo].[METADATA_PERMISSIONS] 34183, N'CreateMovement',34018, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34184, N'ActivateMovement',34018, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34185, N'GetMovement',34018, 1, 34,NULL

EXEC [dbo].[METADATA_PERMISSIONS] 34186, N'CreateUserLigth',34019, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34187, N'UpdateUserLigth',34019, 1, 34,NULL
--Skills
EXEC [dbo].[METADATA_PERMISSIONS] 34188, N'ReadSkills',34020, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34189, N'WriteSkills',34020, 1, 34,NULL
--Alerts
EXEC [dbo].[METADATA_PERMISSIONS] 34190, N'ReadAlerts',34021, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34191, N'WriteAlerts',34021, 1, 34,NULL
--AlertsType
EXEC [dbo].[METADATA_PERMISSIONS] 34192, N'ReadAlertsType',34022, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34193, N'WriteAlertsType',34022, 1, 34,NULL
--Api Configuration
EXEC [dbo].[METADATA_PERMISSIONS] 34194, N'ReadApiConfiguration',34023, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34195, N'WriteApiConfiguration',34023, 1, 34,NULL
--AplicationInfo
EXEC [dbo].[METADATA_PERMISSIONS] 34196, N'ReadApplicationInfo',34024, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34197, N'WriteApplicationInfo',34024, 1, 34,NULL
--AsdkServices
EXEC [dbo].[METADATA_PERMISSIONS] 34198, N'ReadAsdkServices',34025, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34199, N'WriteAsdkServices',34025, 1, 34,NULL
--AssistmeConfiguration
EXEC [dbo].[METADATA_PERMISSIONS] 34200, N'ReadAssistMeConfiguration',34026, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34201, N'WriteAssistMeConfiguration',34026, 1, 34,NULL
--Case
EXEC [dbo].[METADATA_PERMISSIONS] 34202, N'ReadCase',34027, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34203, N'WriteCase',34027, 1, 34,NULL
--Channels
EXEC [dbo].[METADATA_PERMISSIONS] 34204, N'ReadChannels',34028, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34205, N'WriteChannels',34028, 1, 34,NULL
--Chronometers
EXEC [dbo].[METADATA_PERMISSIONS] 34206, N'ReadChronometers',34029, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34207, N'WriteChronometers',34029, 1, 34,NULL
--ChronoExecution
EXEC [dbo].[METADATA_PERMISSIONS] 34208, N'ReadChronoExecution',34030, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34209, N'WriteChronoExecution',34030, 1, 34,NULL
--Cmdb
EXEC [dbo].[METADATA_PERMISSIONS] 34210, N'ReadCmdb',34031, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34211, N'WriteCmdb',34031, 1, 34,NULL
--Connectors
EXEC [dbo].[METADATA_PERMISSIONS] 34212, N'ReadConnectors',34032, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34213, N'WriteConnectors',34032, 1, 34,NULL
--CoverageZones
EXEC [dbo].[METADATA_PERMISSIONS] 34214, N'ReadCoverageZones',34033, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34215, N'WriteCoverageZones',34033, 1, 34,NULL
--EngineBussines
EXEC [dbo].[METADATA_PERMISSIONS] 34216, N'ReadEngineBussines',34034, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34217, N'WriteEngineBussines',34034, 1, 34,NULL
--ErrorMobile
EXEC [dbo].[METADATA_PERMISSIONS] 34218, N'ReadErrorMobile',34035, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34219, N'WriteErrorMobile',34035, 1, 34,NULL
--Error
EXEC [dbo].[METADATA_PERMISSIONS] 34220, N'ReadError',34036, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34221, N'WriteError',34036, 1, 34,NULL
--Establishment
EXEC [dbo].[METADATA_PERMISSIONS] 34222, N'ReadEstablishment',34037, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34223, N'WriteEstablishment',34037, 1, 34,NULL
--ExternalIntegration
EXEC [dbo].[METADATA_PERMISSIONS] 34226, N'ReadExternalIntegration',34039, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34227, N'WriteExternalIntegration',34039, 1, 34,NULL
--FileHandler
EXEC [dbo].[METADATA_PERMISSIONS] 34228, N'ReadFileHandler',34040, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34229, N'WriteFileHandler',34040, 1, 34,NULL
--Groups
EXEC [dbo].[METADATA_PERMISSIONS] 34230, N'ReadGroups',34041, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34231, N'WriteGroups',34041, 1, 34,NULL
--Home
EXEC [dbo].[METADATA_PERMISSIONS] 34232, N'ReadHome',34042, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34233, N'WriteHome',34042, 1, 34,NULL
--ImportFileProcLog
EXEC [dbo].[METADATA_PERMISSIONS] 34234, N'ReadImportFileProcLog',34043, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34235, N'WriteImportFileProcLog',34043, 1, 34,NULL
--IntegrationDashBoard
EXEC [dbo].[METADATA_PERMISSIONS] 34236, N'ReadIntegrationDashBoard',34044, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34237, N'WriteIntegrationDashBoard',34044, 1, 34,NULL
--IntegrationServiceDesk
EXEC [dbo].[METADATA_PERMISSIONS] 34238, N'ReadIntegrationServiceDesk',34045, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34239, N'WriteIntegrationServiceDesk',34045, 1, 34,NULL
--JsonSchema
EXEC [dbo].[METADATA_PERMISSIONS] 34240, N'ReadJsonSchema',34046, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34241, N'WriteJsonSchema',34046, 1, 34,NULL
--Layers
EXEC [dbo].[METADATA_PERMISSIONS] 34242, N'ReadLayers',34047, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34243, N'WriteLayers',34047, 1, 34,NULL
--LicenseC:\RepoDataBase\Database\SQL\Common\Properties
EXEC [dbo].[METADATA_PERMISSIONS] 34246, N'ReadLicense',34049, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34247, N'WriteLicense',34049, 1, 34,NULL
--Logs
EXEC [dbo].[METADATA_PERMISSIONS] 34248, N'ReadLogs',34050, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34249, N'WriteLogs',34050, 1, 34,NULL
--Models
EXEC [dbo].[METADATA_PERMISSIONS] 34252, N'ReadModels',34052, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34253, N'WriteModels',34052, 1, 34,NULL
--Ola
EXEC [dbo].[METADATA_PERMISSIONS] 34254, N'ReadOla',34053, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34255, N'WriteOla',34053, 1, 34,NULL
--Prioritys
EXEC [dbo].[METADATA_PERMISSIONS] 34256, N'ReadPrioritys',34054, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34257, N'WritePrioritys',34054, 1, 34,NULL
--Providers
EXEC [dbo].[METADATA_PERMISSIONS] 34258, N'ReadProviders',34055, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34259, N'WriteProviders',34055, 1, 34,NULL
--QuickAnswers
EXEC [dbo].[METADATA_PERMISSIONS] 34260, N'ReadQuickAnswers',34056, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34261, N'WriteQuickAnswers',34056, 1, 34,NULL
--ReportMap
EXEC [dbo].[METADATA_PERMISSIONS] 34262, N'ReadReportMap',34057, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34263, N'WriteReportMap',34057, 1, 34,NULL
--Searcher
EXEC [dbo].[METADATA_PERMISSIONS] 34264, N'ReadSearcher',34058, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34265, N'WriteSearcher',34058, 1, 34,NULL
--Settings
EXEC [dbo].[METADATA_PERMISSIONS] 34268, N'ReadSettings',34060, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34269, N'WriteSettings',34060, 1, 34,NULL
--Sla
EXEC [dbo].[METADATA_PERMISSIONS] 34270, N'ReadSla',34061, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34271, N'WriteSla',34061, 1, 34,NULL
--States
EXEC [dbo].[METADATA_PERMISSIONS] 34272, N'ReadStates',34062, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34273, N'WriteStates',34062, 1, 34,NULL
--Survey
EXEC [dbo].[METADATA_PERMISSIONS] 34274, N'ReadSurvey',34063, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34275, N'WriteSurvey',34063, 1, 34,NULL
--Templates
EXEC [dbo].[METADATA_PERMISSIONS] 34276, N'ReadTemplates',34064, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34277, N'WriteTemplates',34064, 1, 34,NULL
--ThirdParty
EXEC [dbo].[METADATA_PERMISSIONS] 34278, N'ReadThirdParty',34065, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34279, N'WriteThirdParty',34065, 1, 34,NULL
--Times
EXEC [dbo].[METADATA_PERMISSIONS] 34280, N'ReadTimes',34066, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34281, N'WriteTimes',34066, 1, 34,NULL
--Uc
EXEC [dbo].[METADATA_PERMISSIONS] 34282, N'ReadUc',34067, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34283, N'WriteUc',34067, 1, 34,NULL
--Utilities
EXEC [dbo].[METADATA_PERMISSIONS] 34286, N'ReadUtilities',34069, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34287, N'WriteUtilities',34069, 1, 34,NULL
--WebHooks
EXEC [dbo].[METADATA_PERMISSIONS] 34288, N'ReadWebHooks',34070, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34289, N'WriteWebHooks',34070, 1, 34,NULL
--WorkDays
EXEC [dbo].[METADATA_PERMISSIONS] 34290, N'ReadWorkDays',34071, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34291, N'WriteWorkDays',34071, 1, 34,NULL
--WorkFlows
EXEC [dbo].[METADATA_PERMISSIONS] 34292, N'ReadWorkFlows',34072, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34293, N'WriteWorkFlows',34072, 1, 34,NULL
--WorkOrdersAssignLogs
EXEC [dbo].[METADATA_PERMISSIONS] 34294, N'ReadWorkOrdersAssignLogs',34073, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34295, N'WriteWorkOrdersAssignLogs',34073, 1, 34,NULL
--WorkOrders
EXEC [dbo].[METADATA_PERMISSIONS] 34296, N'ReadWorkOrders',34074, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34297, N'WriteWorkOrders',34074, 1, 34,NULL
--Events
EXEC [dbo].[METADATA_PERMISSIONS] 34298, N'ReadEvents',34075, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34299, N'WriteEvents',34075, 1, 34,NULL
--Inventory
EXEC [dbo].[METADATA_PERMISSIONS] 34300, N'ReadInventory',34076, 1, 34,NULL
EXEC [dbo].[METADATA_PERMISSIONS] 34301, N'WriteInventory',34076, 1, 34,NULL
Print 'AFLS ROLES PERMISSIONS DONE!!'
GO

PRINT 'AFLS ROLES'

DECLARE @v_idRol INT

SELECT @v_idRol = role_id FROM AFW_ROLES WHERE role_name = 'Administrator' AND role_application_id = 0

--Administrator
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34100, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34101, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34102, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34103, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34104, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34105, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34106, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34107, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34108, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34109, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34110, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34111, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34112, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34113, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34114, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34115, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34116, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34117, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34119, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34120, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34121, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34122, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34123, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34124, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34125, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34126, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34127, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34128, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34129, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34130, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34131, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34132, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34133, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34134, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34135, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34136, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34137, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34138, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 2, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 3, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 4, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 5, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34139, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34140, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34141, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34142, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34143, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34144, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34145, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34146, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34147, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 46, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 47, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 48, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 49, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 36, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 38, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 39, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 20, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 22, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 23, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 24, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 25, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34172, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34173, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34174, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34175, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34176, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34177, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34178, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34179, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34180, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34181, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34182, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34183,@v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34184, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34185, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 112,@v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34150, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34157, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34158, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34159, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34160,@v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34161, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34162, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34188, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34189, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34190, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34191, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34192, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34193, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34194, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34195, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34196, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34197, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34198, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34199, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34200, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34201, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34202, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34203, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34204, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34205, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34206, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34207, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34208, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34209, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34210, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34211, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34212, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34213, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34214, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34215, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34216, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34217, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34218, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34219, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34220, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34221, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34222, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34223, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34226, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34227, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34228, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34229, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34230, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34231, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34232, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34233, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34234, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34235, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34236, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34237, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34238, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34239, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34240, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34241, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34242, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34243, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34246, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34247, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34248, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34249, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34252, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34253, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34254, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34255, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34256, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34257, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34258, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34259, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34260, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34261, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34262, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34263, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34264, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34265, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34268, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34269, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34270, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34271, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34272, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34273, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34274, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34275, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34276, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34277, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34278, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34279, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34280, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34281, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34282, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34283, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34286, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34287, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34288, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34289, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34290, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34291, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34292, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34293, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34294, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34295, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34296, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34297, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34298, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34299, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34300, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34301, @v_idRol, 1
SET @v_idRol = NULL

EXEC [dbo].[METADATA_ROLES] 'AFLS_Web', 'User with access to the web console', 1, 0, 34, NULL, @v_idRol OUTPUT

SET @v_idRol = NULL

EXEC [dbo].[METADATA_ROLES] 'AFLS_Mobil', 'User with access to the movil console', 1, 0, 34, NULL, @v_idRol OUTPUT

EXEC [dbo].[METADATA_ROLE_PERMISSION] 25, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 1, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 3, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 4, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 5, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 109, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 110, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 111, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 112, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 2, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 22, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 9, @v_idRol, 1
SET @v_idRol = NULL

EXEC [dbo].[METADATA_ROLES] 'AFLS_Dispatcher', 'WorkOrders Dispatcher', 1, 0, 34, NULL, @v_idRol OUTPUT

EXEC [dbo].[METADATA_ROLE_PERMISSION] 34103, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34108, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34126, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34133, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34137, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 3, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 4, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 5, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 9, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34148, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34149, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34150, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34151, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34152, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34153, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34154, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34156, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34157, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34158, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34159, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34160, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34161, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34162, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34163, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34164, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34165, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34166, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 48, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 36, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 38, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 39, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 20, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34175, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34177, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 109, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 110, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 111, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 112, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34185, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 80, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 81, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34190, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34206, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34208, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34214, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34215, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34216, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34217, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34222, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34223, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34226, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34227, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34228, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34229, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34242, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34243, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34258, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34260, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34261, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34274, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34275, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34290, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34291, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34292, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34296, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34297, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34298, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34300, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34301, @v_idRol, 1

-- creación y actualización de clientes light desde orden de trabajo
EXEC [dbo].[METADATA_ROLE_PERMISSION] 1, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 2, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34186, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34187, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 22, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 97, @v_idRol,0
-- fin creación y actualización  de clientes light desde orden de trabajo
SET @v_idRol = NULL

EXEC [dbo].[METADATA_ROLES] 'AFLS_OnSiteSpecialist', 'On Site Specialist', 1, 0, 34, NULL, @v_idRol OUTPUT

EXEC [dbo].[METADATA_ROLE_PERMISSION] 34103, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34108, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34126, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34133, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34137, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 3, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 4, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 5, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34151, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34152, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34155, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34156, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34157, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34158, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34159, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34160, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34161, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34162, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34164, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34165, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34171, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 48, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 36, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 38, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 39, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 20, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34175, @v_idRol, 0
SET @v_idRol = NULL

EXEC [dbo].[METADATA_ROLES] 'AFLS_Monitor', 'WorkOrders And Specialists Monitor', 1, 0, 34, NULL, @v_idRol OUTPUT

EXEC [dbo].[METADATA_ROLE_PERMISSION] 34103, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34108, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34126, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34133, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34137, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 3, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 4, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 5, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34148, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34149, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34150, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34151, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34152, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34153, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34154, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34155, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34156, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34157, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34158, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34159, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34160, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34161, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34162, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34163, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34164, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34165, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34166, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34167, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34168, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34169, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 48, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 36, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 38, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 39, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 20, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34175, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 83, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 84, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 85, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 86, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 109, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 110, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 111, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 112, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34181, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 7, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 8, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 9, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 10, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 25, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 2, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 22, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 23, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 102, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34188, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34189, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34190, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34191, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34206, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34208, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34214, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34215, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34216, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34217, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34222, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34223, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34226, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34227, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34228, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34229, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34242, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34243, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34258, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34260, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34261, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34274, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34275, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34290, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34291, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34292, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34296, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34297, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34298, @v_idRol, 0

--Parte 2
EXEC [dbo].[METADATA_ROLE_PERMISSION] 41, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 42, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 43, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 44, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 9, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 3, @v_idRol, 0
SET @v_idRol = NULL

EXEC [dbo].[METADATA_ROLES] 'AFLS_Inventory', 'Inventory Manager', 1, 0, 34, NULL, @v_idRol OUTPUT

EXEC [dbo].[METADATA_ROLE_PERMISSION] 34018, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34108, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34103, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34126, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34133, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34137, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 3, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 4, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 5, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34148, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34149, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 48, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 36, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 38, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 39, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 20, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34175, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34181, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34183, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34184, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34185, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 83, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 84, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 85, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 86, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 9, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34190, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34222, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34223, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34226, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34227, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34300, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34301, @v_idRol, 1
--Parte 2
EXEC [dbo].[METADATA_ROLE_PERMISSION] 41, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 42, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 43, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 44, @v_idRol, 0
SET @v_idRol = NULL

EXEC [dbo].[METADATA_ROLES] 'AFLS_Client', 'Client', 1, 0, 34, NULL, @v_idRol OUTPUT

EXEC [dbo].[METADATA_ROLE_PERMISSION] 3, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 4, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 20, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 109, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 110, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 111, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 112, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34150, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34151, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34152, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34011, @v_idRol, 0
SET @v_idRol = NULL

EXEC [dbo].[METADATA_ROLES] 'AFLS_Provider_Monitor', 'Provider Monitor', 1, 0, 34, NULL, @v_idRol OUTPUT

EXEC [dbo].[METADATA_ROLE_PERMISSION] 34103, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34108, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34126, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34133, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34137, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 3, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 4, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 5, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34148, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34149, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34150, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34151, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34152, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34153, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34154, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34155, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34156, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34157, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34158, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34159, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34160, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34161, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34162, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34163, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34164, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34165, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34166, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34167, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34168, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34169, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 48, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 36, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 38, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 39, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 20, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34175, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 83, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 84, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 85, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 86, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 109, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 110, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 111, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 112, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34188, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34189, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34190, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34191, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34206, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34208, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34214, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34215, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34216, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34217, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34222, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34223, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34226, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34227, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34228, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34229, @v_idRol, 1
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34242, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34243, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34258, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34260, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34261, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34290, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34291, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34292, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34296, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34297, @v_idRol, 0
EXEC [dbo].[METADATA_ROLE_PERMISSION] 34298, @v_idRol, 0
SET @v_idRol = NULL

PRINT 'AFLS ROLES DONE!!'

GO

/*
Plantilla de script posterior a la implementación							
--------------------------------------------------------------------------------------
 Este archivo contiene instrucciones de SQL que se anexarán al script de compilación.		
 Use la sintaxis de SQLCMD para incluir un archivo en el script posterior a la implementación.			
 Ejemplo:      :r .\miArchivo.sql								
 Use la sintaxis de SQLCMD para hacer referencia a una variable en el script posterior a la implementación.		
 Ejemplo:      :setvar TableName miTabla							
               SELECT * FROM [$(TableName)]					
--------------------------------------------------------------------------------------
*/

Print 'AFW ROLE ACCESS!'


DECLARE @RoleMonitor INT

DECLARE @RoleInventory INT

DECLARE @RoleDispatcher INT

DECLARE @UserServiceId INT

SELECT @RoleMonitor = role_id FROM [AFW_ROLES] WHERE role_name = 'AFLS_Monitor'

SELECT @RoleInventory = role_id FROM [AFW_ROLES] WHERE role_name = 'AFLS_Inventory'

SELECT @RoleDispatcher = role_id FROM [AFW_ROLES] WHERE role_name = 'AFLS_Dispatcher'


SELECT @UserServiceId = user_id FROM [AFW_USERS] WHERE user_nick_name = 'ARANDASERVICESUSER'

EXEC [dbo].[METADATA_ROLE_ACCESS] null, @RoleMonitor, null, null, 0, null
EXEC [dbo].[METADATA_ROLE_ACCESS] null, @RoleInventory, null, null, 0, null
EXEC [dbo].[METADATA_ROLE_ACCESS] null, @RoleMonitor, NULL,@UserServiceId,  0,null
EXEC [dbo].[METADATA_ROLE_ACCESS] null, @RoleDispatcher, null,@UserServiceId,  0,null


Print 'AFW ROLE ACCESS DONE!'



Print 'AFW SETTINGS'

EXEC [dbo].[METADATA_AFW_SETTINGS] 'MapsClientId',34,'','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MapsAPIKey',34,'','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TimeRatioCarToBike',34,'1,2','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TimeRatioCarToWalk',34,'2,5','',0
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TimeRatioPerKilometerWalk',34,'0,13','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TimeRatioPerKilometerBike',34,'0,28','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TimeRatioPerKilometerCar',34,'0,5','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MobileSettingsLastUpdate',34,'2014/01/01 00:10:00','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SchedulerInProcEnabled',34,'True','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SchedulerInProcTimer',34,'60000','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SchedulerInProcMax',34,'1','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SchedulerInProcConcurrentMax',34,'1','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SchedulerMatrixTolerance',34,'10','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SchedulerMaximumToleratedDistance',34,'200','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MonitoringWorkOrdersTimer',34,'120000','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'Schema',34,'dbo','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'mailerConection',34,'ArandaConn','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'Skills',34,'0,2','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'TimeSolution',34,'0,2','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'Distance',34,'0,6','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AssignmentEngineBasePath',34,'http://localhost:1605/{0}/AssignmentEngineRestService/rest/engine/','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AFLSBasePath',34,'http://localhost/AFLS/','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AssignmentEngineServicePort',34,'1605','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PushAppleAppCode',34,'13019','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PushAndroidAppCode',34,'34011','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PushAFLSServerHost',34,'https://arandapush1.arandasoft.com/push/ws','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PushIsSilent',34,'True','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ClientsViewerRefrestFrecuency',34,'5','',NULL 
EXEC [dbo].[METADATA_AFW_SETTINGS] 'LastUpdateAdditionalFields',34,'01/01/2014 00:00:00','',NULL 
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PeriodHoursScheduler',34, '48','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SignatureFilesFolderName',34,'Signatures','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'LogErrorLevel',34,'0','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PeriodDaysTransferLocationData',34,'3','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ChronosAlarmExpirationDays',34,'90','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ChronosLastEvaluation',34,'01/01/2014 00:00:00','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ChronosPercentageBreachAgreement',34,'75','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'UnfulfilledOrdersWork',34,'10','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ChronosDeltaToMeeting',34,'10','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DefaultServiceIds',34,'','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ActiveLogRequest',34,'False','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MaxMinutesSolutionDefault',34,'43200','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MaxMinutesAttentionDefault',34,'21600','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'NewsUrlMobile',34,'http://arandasoft.com/','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WorkOrdersTopSLAQuantity',34,'10','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'UPMinutesDeltaAttention',34,'1450','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DOWNMinutesDeltaAttention',34,'1450','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ReassignOrdersByAvailability',34,'True','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AssignmentEngineRangeWeight',34,'10','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'KeepAppointments',34,'True','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'LastMiddleNightReassign',34,'01/01/2014 01:00:00','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DaysToExpireGarbageClean',34,'2','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AssignmentEngineConfigurationDistribution',34,'5','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'RebuildTurns',34,'01/01/2014 00:00:00','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'BonusTurns',34,'3','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DefaultLDAPProvider',34,'1','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CMDBPath',34,'cmdbapi/api/v8.6/','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ForceReviewsMobile',34,'True','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'SessionTimeOut',34,'60','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AssignmentInitLocationByGeoLocation',34,'False','Esta variable detrmina si para la asignación debe tomar como punto inicial la ultima ubicación reportada por el especialista en el día',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AttachedFilesDirectoryBasePsw',34,'','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AttachedFilesDirectoryBase',34,'','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AttachedFilesDirectoryBaseUser',34,'','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AttachedFilesDirectoryBaseDomain',34,'','',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WorkOrderTaskConflictMinutes',34,'5','Esta variable determina el delta de tiempo al momento de programar una fecha tentativa de atención de una tarea de una orden de trabajo a un especialista',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DeltaMinByProviderPriority',34,'10','Determina el delta del tiempo con el que se podra visualizar las ordenes disponibles segun la prioridad que tenga el proveedor',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DefaultProgramService',34,'0','Servicio por defecto para ordenes programadas (debe configurarse porterior a la creacion del servicio)',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DefaultProgramServiceDate',34,'','Fecha por defecto para ordenes programadas',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'FromMobileClientsChannel',34,'1',' 1 para todos, 2 para los que tengan canal habilitado y 3 para canal deshabilitado',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnableCreateClientBySpecialist',34,'false','por defecto desactivado',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnableCreateOrdertoSpecialist',34,'false','por defecto desactivado',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'googleType',34,'','solo funciona para MapsProvider= GoogleMaps. Es BASIC si es API key de cliente despues del 2018, PREMIUM si es API key que ademas tiene client Id, esto generalmente es antes del 2018',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MapsProvider',34,'Nominatim','valores: GoogleMaps o Nominatim o Arcgis ',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnableEditClientBySpecialist',34,'false','por defecto desactivado',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ASDKIntegrator',34,'direct','direct por defecto, valor ESB para bus aranda',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ASDKUserName',34,'','nombre usuario admin ASDK',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ASDKPassword',34,'','password usuario admin ASDK encriptado con common',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ASDKSolutionfield',34,'','nombre unique name de campo solución',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ASDKStatesHomologation',34,'','parejas separadas por guion: sub estado AFLS-estado ASDK si requiere varios separa por ; las parejas. Ej: 1-23;4-32',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ASDKtoAFLSStatesHomologation',34,'','parejas separadas por guion: estado ASDK a sub estado AFLS si requiere varios separa por ; las parejas. Ej: 1-23;4-32',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PointsMaxLayer',34,'1000','Puntos maximos por capa de mapas',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'LogConsuptionsMaps',34,'True','True para habilitar la consolidación del consumo de mapas desde las consolas Web, Assistme y Apps Móviles',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PointsMaxZone',34,'100000','Puntos maximos por Zona',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AttachedFilesFolderName',34,'Uploads','Ruta raiz de carga de archivos',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DownloadsFilesFolderName',34,'Downloads','Ruta raiz de carga masiva de archivos',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'HideLoginForm', 34, 'False', 'Oculta la pantalla de login, true para ocutarla', NULL  
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ExpirateTokenAssistMe',34,'1','Tiempo de expiracion del token Assistme en dias.',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AflsLogsDefaultPaths',34,'{"UrlConfigurationLogs":[{"ConfigLogName":"AFLS web","DefaultUrl":"C:\\inetpub\\wwwroot\\AFLS\\Logs","Enable":"true"},{"ConfigLogName":"Assistme WS","DefaultUrl":"C:\\inetpub\\wwwroot\\ASSISTMEWS\\Logs","Enable":"true"},{"ConfigLogName":"Windows services","DefaultUrl":"C:\\Program Files (x86)\\Aranda\\Aranda Services\\Logs","Enable":"true"},{"ConfigLogName":"AFLS API","DefaultUrl":"C:\\inetpub\\wwwroot\\AFLSAPI\\Logs","Enable":"true"}]}','Archivo JSON con las rutas por defecto donde se generan los archivos logs de AFLS. Estas rutas son precargadas en la sección de Application logs de AFLS',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PathASDKAPI', 34, '/ASDKAPI/api/v8.6', 'Ruta base para generar la URL determinada del API ASDK a utilizar', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ASDKApiVersion', 34, 82730, 'Versión actual de API de ASDK', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DaysDeleteImportFilesAsync', 34, 90, 'Dias de eliminación registros importación masiva', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PathASMSAPI', 34, '/api/v9', 'Ruta base para generar la URL determinada del API ASMS a utilizar', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DaysDeleteWOAssignLog', 34, 90, 'Dias de eliminación registros de asingnacion', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DaysDeleteIntegrationLog', 34, 90, 'Dias de eliminación registros de integración', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AssignmentEngineConfigurationProcessNumber', 34, 1, 'Cantidad de procesos simultaneos motor de asignacion', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'DaysDeleteMobileErrorLog', 34, 90, 'Dias de eliminación registros de logs de errores de mobile', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'AutomaticTaskAssignmentEnable', 34, 'False', 'Esta variable determina si se asignan las tareas de forma automatica al especialista de la orden de trabajo', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PushiOsFireBase', 34, 'False', 'Identifica si el push para iOs see ejecuta por FireBase', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ActivePanicButton', 34, 'False', 'Determina si esta activa la configuracion boton de panico', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'ExpirateTokenMobile', 34, '1440', 'Tiempo de expiracion del token app movil en minutos', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'WhatsAppApiPath', 34, 'https://graph.facebook.com/v17.0/{0}/messages', 'Path peticiones WhatsApp', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'CurrentCulture', 34, 'es', 'Cultura de las plantillas de correo', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'EnablePrivacyPolicy', 34, 'False', 'Habilitar Politica de privacidad de la empresa', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'PrivacyPolicy', 34, '', 'Politica de privacidad de la empresa', NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MapsAPIKeyAndroid',34,'','Api key google para aplicación android',NULL
EXEC [dbo].[METADATA_AFW_SETTINGS] 'MapsAPIKeyIos',34,'','Api key google para aplicación ios',NULL

Print 'AFW SETTINGS DONE'
Print 'AFW FOLDER'

DECLARE @datereport AS DATETIME;
SET @datereport =CAST(0x0000A3A200C23FE4 AS DateTime);

EXEC [dbo].[METADATA_FOLDER] 34001, N'AFLS_REPORTS', NULL, @datereport, @datereport, 1, 1, N'AFLS_REPORTS', 34, NULL,0
EXEC [dbo].[METADATA_FOLDER] 34002, N'AFLS_REPORTS_INVENTORY', NULL, @datereport,@datereport, 1, 1, N'AFLS_REPORTS_INVENTORY', 34, NULL,0


Print 'AFW FOLDER DONE!!'
GO

Print 'AFW TASK!'

EXEC [dbo].[METADATA_TASK] 34001, N'UpdateCubesForReports', N'Aranda.AFLS.ScheduledTasks.Report', N'Aranda.AFLS.ScheduledTasks.dll', 1
EXEC [dbo].[METADATA_TASK] 34002, N'AssignUnprocessedOrders', N'Aranda.AFLS.ScheduledTasks.WorkOrders', N'Aranda.AFLS.ScheduledTasks.dll', 1
EXEC [dbo].[METADATA_TASK] 34003, N'ThirdPartySyncronizers', N'Aranda.AFLS.ScheduledTasks.ThirdPartySyncronizers', N'Aranda.AFLS.ScheduledTasks.dll', 1
EXEC [dbo].[METADATA_TASK] 34004, N'ASDKSyncronizer', N'Aranda.AFLS.ScheduledTasks.ASDKSynchronizerTask', N'Aranda.AFLS.ScheduledTasks.dll', 1
EXEC [dbo].[METADATA_TASK] 34005, N'EngineService', N'Aranda.AFLS.ScheduledTasks.ScheduleEngineTask', N'Aranda.AFLS.ScheduledTasks.dll', 1
EXEC [dbo].[METADATA_TASK] 34006, N'NotificationsGenerator', N'Aranda.AFLS.ScheduledTasks.NotificationsTask', N'Aranda.AFLS.ScheduledTasks.dll', 1
EXEC [dbo].[METADATA_TASK] 34007, N'Push', N'Aranda.AFLS.ScheduledTasks.PushTask', N'Aranda.AFLS.ScheduledTasks.dll', 1
EXEC [dbo].[METADATA_TASK] 34008, N'WakeUpSpecialists', N'Aranda.AFLS.ScheduledTasks.WakeUpSpecialistsTask', N'Aranda.AFLS.ScheduledTasks.dll', 0
EXEC [dbo].[METADATA_TASK] 34009, N'SpecialistAvailabilityConsolidateds', N'Aranda.AFLS.ScheduledTasks.SpecialistAvailabilityConsolidatedsTask', N'Aranda.AFLS.ScheduledTasks.dll', 1
EXEC [dbo].[METADATA_TASK] 34010, N'Monitor Report',N'Aranda.AFLS.ScheduledTasks.MonitorTask',N'Aranda.AFLS.ScheduledTasks.dll',0
EXEC [dbo].[METADATA_TASK] 34011, N'SLA Notifications',N'Aranda.AFLS.ScheduledTasks.SLANotificationTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34012, N'Restart Orders Service Change Model',N'Aranda.AFLS.ScheduledTasks.RestartWorkOrderServiceChangeTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34013, N'Send Survey Invitation',N'Aranda.AFLS.ScheduledTasks.SurveyTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34014, N'Chronometer Manager',N'Aranda.AFLS.ScheduledTasks.ChronometerTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34015, N'Transfer info location',N'Aranda.AFLS.ScheduledTasks.LocationTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34016, N'SLA Priorizer',N'Aranda.AFLS.ScheduledTasks.SLAPriorizerTask',N'Aranda.AFLS.ScheduledTasks.dll',0
EXEC [dbo].[METADATA_TASK] 34017, N'OrganizeWorkSchedule',N'Aranda.AFLS.ScheduledTasks.OrganizeWorkScheduleTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34018, N'ReassignWOBlockSP',N'Aranda.AFLS.ScheduledTasks.ReassignWOBlockSPTask',N'Aranda.AFLS.ScheduledTasks.dll',0
EXEC [dbo].[METADATA_TASK] 34019, N'Clean Garbage',N'Aranda.AFLS.ScheduledTasks.RemoveGarbageTask',N'Aranda.AFLS.ScheduledTasks.dll',1

EXEC [dbo].[METADATA_TASK] 34020, N'Provider Monitor',N'Aranda.AFLS.ScheduledTasks.ProviderMonitorOrderTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34021, N'Unassigned Provider Order',N'Aranda.AFLS.ScheduledTasks.UnAssignedOrderProviderTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34022, N'Provider Score',N'Aranda.AFLS.ScheduledTasks.ScoreProviderTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34023 ,N'Move Alerts', N'Aranda.AFLS.ScheduledTasks.MoveAlertTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34024 ,N'Clean Cache Services', N'Aranda.AFLS.ScheduledTasks.CleanCacheTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34025 ,N'Evaluate time alerts', N'Aranda.AFLS.ScheduledTasks.EvaluateAlertTimesTask',N'Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34026 ,N'Program Orders', N'Aranda.AFLS.ScheduledTasks.ProgramOrdersTask',N'Aranda.AFLS.ScheduledTasks.dll',0
EXEC [dbo].[METADATA_TASK] 34027 ,N'AssignOrders','Aranda.AFLS.ScheduledTasks.AssignOrderProviderTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34028 ,N'SaveSolutions','Aranda.AFLS.ScheduledTasks.SaveSolutionsTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34029 ,N'Consolidate Records Report','Aranda.AFLS.ScheduledTasks.ConsolidateRecordsReportTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34030 ,N'RetryNotifyExecuteCloseOrder','Aranda.AFLS.ScheduledTasks.RetryNotifyExecuteCloseOrderTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34031 ,N'ASDKNotification','Aranda.AFLS.ScheduledTasks.ASDKNotificationTask','Aranda.AFLS.ScheduledTasks.dll',0
EXEC [dbo].[METADATA_TASK] 34032 ,N'RetryNotifyExecuteCloseOrderToFix','Aranda.AFLS.ScheduledTasks.RetryNotifyExecuteCloseOrderToFixTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34033 ,N'MassiveActionsWorkOrders','Aranda.AFLS.ScheduledTasks.MassiveActionsWorkOrdersTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34034 ,N'ImportFilesAsync','Aranda.AFLS.ScheduledTasks.ImportFilesAsyncTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34035 ,N'DeleteImportFilesAsync','Aranda.AFLS.ScheduledTasks.DeleteImportFilesAsyncTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34036 ,N'ASMSSyncronizer','Aranda.AFLS.ScheduledTasks.ASMSSynchronizerTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34037 ,N'ASMSNotification','Aranda.AFLS.ScheduledTasks.ASMSNotificationTask','Aranda.AFLS.ScheduledTasks.dll',0
EXEC [dbo].[METADATA_TASK] 34038 ,N'RetryNotifyPendingOrder','Aranda.AFLS.ScheduledTasks.RetryNotifyPendingOrderTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34039 ,N'DeleteWOAssignLog','Aranda.AFLS.ScheduledTasks.DeleteWOAssignLogTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34040 ,N'DeleteIntegrationLog','Aranda.AFLS.ScheduledTasks.DeleteIntegrationLogTask','Aranda.AFLS.ScheduledTasks.dll',1

EXEC [dbo].[METADATA_TASK] 34041 ,N'CreateOrder','Aranda.AFLS.ScheduledTasks.CreateOrderTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34042 ,N'ReassignSpecialists','Aranda.AFLS.ScheduledTasks.ReassignSpecialistsTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34043 ,N'DeleteMobileErrorLog','Aranda.AFLS.ScheduledTasks.DeleteMobileErrorLogTask','Aranda.AFLS.ScheduledTasks.dll',1

EXEC [dbo].[METADATA_TASK] 34044 ,N'ManualSpecialistAssignment','Aranda.AFLS.ScheduledTasks.ManualSpecialistAssignmentTask','Aranda.AFLS.ScheduledTasks.dll',1
EXEC [dbo].[METADATA_TASK] 34045 ,N'ActionsMobileAsync','Aranda.AFLS.ScheduledTasks.ActionsMobileAsyncTask','Aranda.AFLS.ScheduledTasks.dll',1

Print 'AFW TASK DONE!'


PRINT 'AFW SCHEDULER!'

DECLARE @v_date_start DATETIME
DECLARE @v_date_start_30min DATETIME
DECLARE @v_date_start_5am DATETIME

SELECT @v_date_start = DATETIMEFROMPARTS(2020,6,8,5,0,0,0)
SELECT @v_date_start_30min = DATETIMEFROMPARTS(2020,6,8,5,30,0,0)
SELECT @v_date_start_5am = DATETIMEFROMPARTS(2020,6,8,10,0,0,0)

EXEC [dbo].[METADATA_SCHEDULER] N'ExecStoreProceduresForReports', NULL, N'Daily', 1, 0, 0, 0, 0, @v_date_start, 34001, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'THIRDPARTY_SYNCRONIZER_COMPONENT', NULL, N'Ontime', 0, 0, 0, 0, 0, @v_date_start, 34003, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'ASDK_SYNCRONIZER_COMPONENT', NULL, N'Daily', 1, 0, 0, 0, 0, @v_date_start, 34004, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'ENGINE_SERVICE', 'OJO intervalo multiplos de 5, para que se ejecute a la media noche, Se encarga de al cambio del día realizar la limpieza para mandar a reasignar y correr el motor para asignar las ordenes', N'Interval', 5, 0, 0, 0, 0, @v_date_start, 34005, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'WAKEUP_SPECIALISTS', NULL, N'Interval', 60, 0, 0, 0, 0, @v_date_start, 34008, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'MONITOR_REPORT',NULL,'Monthly',0,0,8190,1,0,@v_date_start, 34010, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'SLA_NOTIFICATIONS',NULL,'Daily',1, 0, 0, 0, 0,@v_date_start, 34011, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'RESTART_ORDERS',NULL,'Daily',1, 0, 0, 0, 0,@v_date_start, 34012, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'SEND_SURVEY',NULL,'Daily',1, 0, 0, 0, 0,@v_date_start, 34013, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'CHRONOS CALENDAR ALARMS',NULL,'Daily',1, 0, 0, 0, 0,@v_date_start_30min, 34014, 34, NULL, 120, '{"chronos_evaluate":"calendar"}'
EXEC [dbo].[METADATA_SCHEDULER] N'CHRONOS TIMES',NULL,'Interval',1, 0, 0, 0, 0,@v_date_start, 34014, 34, NULL, 120, '{"chronos_evaluate":"chronometer"}'
EXEC [dbo].[METADATA_SCHEDULER] N'CHRONOS_WORKORDERS_EXPIRED', 'Se ejecuta para evaluar cada una de las órdenes de trabajo de AFLS y marcar en base de datos, las que se encuentren en estado expirado', N'Interval', 5, 0, 0, 0, 0, @v_date_start, 34014, 34, NULL, 120, '{"chronos_evaluate":"expire_workorders"}'
EXEC [dbo].[METADATA_SCHEDULER] N'TRANSFER_INFO',NULL,'Daily',1, 0, 0, 0, 0,@v_date_start, 34015, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'SLA_PRIORIZER',NULL,'Ontime',0, 0, 0, 0, 0,@v_date_start, 34016, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'CLEAN_GARBAGE',NULL,'Daily',1, 0, 0, 0, 0,@v_date_start_5am, 34019, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'PROVIDER_MONITOR',NULL,'Interval',1, 0, 0, 0, 0,@v_date_start, 34020, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'UNASSIGNER_ORDERS_PROVIDER',NULL,'Interval',60, 0, 0, 0, 0,@v_date_start, 34021, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'PROVIDER_SCORE',NULL,'Daily',1, 0, 0, 0, 0,@v_date_start, 34022, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'EVALUATE_LOCATION_SPECIALIST',NULL,'Interval',5, 0, 0, 0, 0,@v_date_start, 34025, 34, NULL, 120, '{"alert_evaluate":"location_specialist"}'
EXEC [dbo].[METADATA_SCHEDULER] N'EVALUATE_INIT_TIME_ORDERS',NULL,'Interval',5, 0, 0, 0, 0,@v_date_start, 34025, 34, NULL, 120, '{"alert_evaluate":"init_date_order"}'
EXEC [dbo].[METADATA_SCHEDULER] N'EVALUATE_INIT_TIME_ORDER_TASKS',NULL,'Interval',5, 0, 0, 0, 0,@v_date_start, 34025, 34, NULL, 120,'{"alert_evaluate":"init_date_order_task"}'
EXEC [dbo].[METADATA_SCHEDULER] N'NOTIFICATIONS_GENERATOR', NULL, N'Interval', 2, 0, 0, 0, 0, @v_date_start, 34006, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'CONSOLIDATE RECORDS MAPS API REPORT', NULL, N'Interval', 360, 0, 0, 0, 0, @v_date_start, 34029, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'CHECK_RETRY_NOTIFY_EXECUTE_WORKORDERS_ASDK', NULL, N'Interval', 5, 0, 0, 0, 0, @v_date_start, 34030, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'RETRY_NOTIFY_EXECUTE_CLOSE_ORDER_TO_FIX', 'Repara ordenes de trabajo ejecutadas para que puedan ser programadas en la cola de reintento de notificación en Integraciones con directas con ASDK', N'Interval', 60, 0, 0, 0, 0, @v_date_start, 34032, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'DELETE_IMPORT_FILES','Elimina los registros y archivos de la importacion masiva','Daily',1, 0, 0, 0, 0,@v_date_start, 34035, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'ASMS_SYNCRONIZER_COMPONENT', NULL, N'Ontime', 0, 0, 0, 0, 0, @v_date_start, 34036, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'CHECK_RETRY_NOTIFY_PENDING_WORKORDERS_ASMS', NULL, N'Interval', 5, 0, 0, 0, 0, @v_date_start, 34038, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'DELETE_WO_ASSIGN_LOGS','Elimina los registros de el log de asignacion','Daily',1, 0, 0, 0, 0,@v_date_start, 34039, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'DELETE_INTEGRATION_LOGS','Elimina los registros de el log de integracion','Daily',1, 0, 0, 0, 0,@v_date_start, 34040, 34, NULL, 120, NULL
EXEC [dbo].[METADATA_SCHEDULER] N'DELETE_ERROR_MOBILE_LOGS','Elimina los registros de los logs de errores de mobile','Daily',1, 0, 0, 0, 0,@v_date_start, 34043, 34, NULL, 120, NULL

PRINT 'AFW SCHEDULER DONE!'













/****** Object:  Table [dbo].[AQM_REPORT]    Script Date: 03/12/2015 14:52:43 ******/
GO
SET IDENTITY_INSERT [dbo].[AQM_REPORT] ON 
DECLARE @folder_AflsReports Int;
DECLARE @folder_AflsReportsInventory Int;

SELECT @folder_AflsReports = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AFLS_REPORTS'
SELECT @folder_AflsReportsInventory = fold_id FROM [AFW_FOLDER] WHERE fold_name = 'AFLS_REPORTS_INVENTORY'
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34001, @folder_AflsReports, N'Cumplimiento SLA',
 N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AFLS_Cummplimiento_SLA" SnapGridSize="10" SnappingMode="SnapToGrid" ReportUnit="Pixels" Margins="0, 0, 0, 34" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96" Font="Tahoma, 10pt, charSet=0">
  <Parameters>
    <Item1 Ref="3" Description="Fecha inicial" ValueInfo="2014-01-01" Name="initDate" Type="#Ref-2" />
    <Item2 Ref="4" Description="Fecha final" ValueInfo="2018-01-01" Name="endDate" Type="#Ref-2" />
    <Item3 Ref="7" Description="Servicio" ValueSourceSettings="#Ref-5" ValueInfo="-1" Name="service" Type="#Ref-6" />
    <Item4 Ref="9" Description="Proveedor" ValueSourceSettings="#Ref-8" ValueInfo="-1" Name="provider" Type="#Ref-6" />
    <Item5 Ref="11" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-10" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="12" Name="Total" FieldType="Int32" Expression="[DENTRO] + [FUERA]" DataMember="dsOrdersState" />
    <Item2 Ref="13" Name="CountDENTRO" Expression="Sum(Iif([Estado]==''Dentro'', 1 ,0 ))" DataMember="dsOrdenes" />
    <Item3 Ref="14" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="15" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="16" ControlType="DetailBand" Name="Detail" HeightF="0" Dpi="96" StyleName="generalStyle" />
    <Item3 Ref="17" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="34" Dpi="96" />
    <Item4 Ref="18" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="270" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="19" ControlType="XRChart" Name="chart1" BackColor="WhiteSmoke" DataSource="#Ref-0" SizeF="490,240" LocationFloat="380,0" Dpi="96" BorderColor="Black" Borders="None" BorderWidth="0">
          <Chart Ref="20" PaletteName="Technic" AppearanceNameSerializable="Dark Flat" BackColor="WhiteSmoke">
            <DataContainer Ref="21" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="22" Name="DENTRO" ArgumentDataMember="dsCumplimiento.SERV_NAME" ValueDataMembersSerializable="dsCumplimiento.DENTRO">
                  <Label Ref="23" Position="Top" TypeNameSerializable="SideBySideBarSeriesLabel" TextColor="255,127,127,127" LineColor="255,127,127,127" />
                </Item1>
                <Item2 Ref="24" Name="FUERA" ArgumentDataMember="dsCumplimiento.SERV_NAME" ValueDataMembersSerializable="dsCumplimiento.FUERA">
                  <Label Ref="25" Position="Top" TypeNameSerializable="SideBySideBarSeriesLabel" TextColor="255,127,127,127" BackColor="WhiteSmoke" />
                </Item2>
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="26" DependentAxesYRange="True" TypeNameSerializable="XYDiagram">
              <AxisX Ref="27" Visibility="True" VisibleInPanesSerializable="-1">
                <Title Ref="28" Visibility="True" Text="Servicios" Font="Tahoma, 9pt, charSet=0" TextColor="255,127,127,127" />
                <Label Ref="29" TextColor="Gray">
                  <Border Ref="30" Color="Silver" />
                </Label>
              </AxisX>
              <AxisY Ref="31" VisibleInPanesSerializable="-1">
                <Title Ref="32" Visibility="True" Text="Cantidad" Font="Tahoma, 9pt, charSet=0" TextColor="255,127,127,127" />
                <Label Ref="33" TextColor="Gray" />
                <CrosshairAxisLabelOptions Ref="34" TextColor="Black" />
              </AxisY>
              <DefaultPane Ref="35" BackColor="WhiteSmoke" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="36">
                  <ConnectorLineStyle Ref="37" />
                </StackedBarTotalLabel>
              </DefaultPane>
              <PaneLayout Ref="38" Direction="Horizontal" />
            </Diagram>
            <Legend Ref="39" Visibility="True" AlignmentHorizontal="Left" AlignmentVertical="TopOutside" Direction="LeftToRight" BackColor="WhiteSmoke" TextColor="255,127,127,127" Name="Default Legend">
              <Border Ref="40" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="41" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="42" Text="Servicios dentro del SLA" Font="Tahoma, 9.75pt, charSet=0" TextColor="255,127,127,127" />
            </Titles>
            <ToolTipOptions Ref="43" ShowForSeries="true" />
            <XtraPaletteRepository>
              <Item1 Ref="44" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="45" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="46" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="47" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="48" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="49" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="50" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="51" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="52" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
          <StylePriority Ref="53" UseBackColor="false" UseBorderWidth="false" />
        </Item1>
        <Item2 Ref="54" ControlType="XRChart" Name="chart2" BackColor="WhiteSmoke" SizeF="370,240" LocationFloat="10,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="55" PaletteName="Technic" AppearanceNameSerializable="Dark Flat" BackColor="WhiteSmoke">
            <DataContainer Ref="56" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="57" Name="Series 1" ArgumentDataMember="dsOrdersState.STATES" ValueDataMembersSerializable="dsOrdersState.AMOUNT" LegendTextPattern="{A}">
                  <View Ref="58" MinAllowedSizePercentage="0" TypeNameSerializable="PieSeriesView" />
                  <Label Ref="59" Position="Inside" TypeNameSerializable="PieSeriesLabel" TextColor="White" />
                </Item1>
              </SeriesSerializable>
              <SeriesTemplate Ref="60">
                <View Ref="61" TypeNameSerializable="PieSeriesView" />
              </SeriesTemplate>
            </DataContainer>
            <Legend Ref="62" BackColor="WhiteSmoke" TextColor="Gray" Name="Default Legend">
              <Border Ref="63" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="64" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="65" Text=" Total de ordenes dentro del SLA" Font="Tahoma, 9.75pt, charSet=0" TextColor="255,127,127,127" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="66" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="67" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="68" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="69" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="70" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="71" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="72" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="73" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="74" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
          <StylePriority Ref="75" UseBackColor="false" />
        </Item2>
        <Item3 Ref="76" ControlType="XRPanel" Name="panel1" SizeF="860,30" LocationFloat="10,240" Dpi="96" BackColor="WhiteSmoke">
          <Controls>
            <Item1 Ref="77" ControlType="XRLabel" Name="label5" Multiline="true" Text="label5" TextAlignment="MiddleLeft" SizeF="290,20" LocationFloat="530,0" Dpi="96" Font="Tahoma, 13pt, style=Bold" ForeColor="Gray" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="78" EventName="BeforePrint" PropertyName="Text" Expression="[dsOrdenes].[CountDENTRO]" />
              </ExpressionBindings>
              <StylePriority Ref="79" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="80" ControlType="XRLabel" Name="label1" Text="Ordenes Solucionadas dentro del tiempo" SizeF="332.08252,19" LocationFloat="190,1" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,154,144" BackColor="Transparent" Padding="2,2,0,0,96">
              <StylePriority Ref="81" UseFont="false" UseForeColor="false" UseBackColor="false" />
            </Item2>
          </Controls>
          <StylePriority Ref="82" UseBackColor="false" />
        </Item3>
      </Controls>
      <StylePriority Ref="83" UseBackColor="false" />
    </Item4>
    <Item5 Ref="84" ControlType="ReportFooterBand" Name="ReportFooter" HeightF="21" Dpi="96" />
    <Item6 Ref="85" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="dsOrdenes" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="86" ControlType="DetailBand" Name="Detail1" HeightF="33.9199829" Dpi="96" StyleName="generalStyle">
          <Scripts Ref="87" OnBeforePrint="Detail1_BeforePrint" />
          <Controls>
            <Item1 Ref="88" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="860,25" LocationFloat="10,0" Dpi="96" Font="Tahoma, 8pt">
              <Rows>
                <Item1 Ref="89" ControlType="XRTableRow" Name="tableRow4" Weight="32.2" TextAlignment="TopCenter" Dpi="96" ForeColor="255,153,153,153" Padding="5,5,5,5,96" BorderColor="LightGray" Borders="Bottom">
                  <Cells>
                    <Item1 Ref="90" ControlType="XRTableCell" Name="tableCell31" Weight="0.085129589377579529" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="91" EventName="BeforePrint" PropertyName="Text" Expression="[ticket_id]" />
                      </ExpressionBindings>
                      <StylePriority Ref="92" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item1>
                    <Item2 Ref="93" ControlType="XRTableCell" Name="tableCell32" Weight="0.10707051990758353" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="94" EventName="BeforePrint" PropertyName="Text" Expression="[serv_name]" />
                      </ExpressionBindings>
                      <StylePriority Ref="95" UseForeColor="false" UseBorderColor="false" />
                    </Item2>
                    <Item3 Ref="96" ControlType="XRTableCell" Name="tableCell33" Weight="0.084471667622345259" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="97" EventName="BeforePrint" PropertyName="Text" Expression="[work_subject]" />
                      </ExpressionBindings>
                      <StylePriority Ref="98" UseForeColor="false" UseBorderColor="false" />
                    </Item3>
                    <Item4 Ref="99" ControlType="XRTableCell" Name="tableCell34" Weight="0.10858202219918905" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro">
                      <Scripts Ref="100" OnBeforePrint="tableCell34_BeforePrint" />
                      <ExpressionBindings>
                        <Item1 Ref="101" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([work_created_date],-1* ?UTCoffSet)" />
                      </ExpressionBindings>
                      <StylePriority Ref="102" UseForeColor="false" UseBorderColor="false" />
                    </Item4>
                    <Item5 Ref="103" ControlType="XRTableCell" Name="tableCell35" Weight="0.10398299149995621" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro">
                      <Scripts Ref="104" OnBeforePrint="tableCell35_BeforePrint" />
                      <ExpressionBindings>
                        <Item1 Ref="105" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([work_tentative_attention_start_date],-1* ?UTCoffSet)" />
                      </ExpressionBindings>
                      <StylePriority Ref="106" UseForeColor="false" UseBorderColor="false" />
                    </Item5>
                    <Item6 Ref="107" ControlType="XRTableCell" Name="tableCell36" Weight="0.11694357441509326" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro">
                      <Scripts Ref="108" OnBeforePrint="tableCell36_BeforePrint" />
                      <ExpressionBindings>
                        <Item1 Ref="109" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([work_attention_end_date],-1* ?UTCoffSet)" />
                      </ExpressionBindings>
                      <StylePriority Ref="110" UseForeColor="false" UseBorderColor="false" />
                    </Item6>
                    <Item7 Ref="111" ControlType="XRTableCell" Name="tableCell38" Weight="0.07367290153022224" Dpi="96" ForeColor="Gray" Padding="5,5,5,5,96" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="112" EventName="BeforePrint" PropertyName="Text" Expression="[Estado]" />
                      </ExpressionBindings>
                      <StylePriority Ref="113" UseForeColor="false" UsePadding="false" UseBorderColor="false" />
                    </Item7>
                    <Item8 Ref="114" ControlType="XRTableCell" Name="tableCell10" Weight="0.097164084763260966" Dpi="96" ForeColor="Gray" Padding="5,5,5,5,96" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="115" EventName="BeforePrint" PropertyName="Text" Expression="[Tiempo Fuera]" />
                      </ExpressionBindings>
                      <StylePriority Ref="116" UseForeColor="false" UsePadding="false" UseBorderColor="false" />
                    </Item8>
                    <Item9 Ref="117" ControlType="XRTableCell" Name="tableCell11" Weight="0.11605518674915524" Dpi="96" ForeColor="Gray" Padding="5,5,5,5,96" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="118" EventName="BeforePrint" PropertyName="Text" Expression="[Agente]" />
                      </ExpressionBindings>
                      <StylePriority Ref="119" UseForeColor="false" UsePadding="false" UseBorderColor="false" />
                    </Item9>
                  </Cells>
                  <StylePriority Ref="120" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
              <StylePriority Ref="121" UseFont="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="122" ControlType="GroupHeaderBand" Name="GroupHeader2" RepeatEveryPage="true" HeightF="49.0800171" Dpi="96">
          <Controls>
            <Item1 Ref="123" ControlType="XRTable" Name="table3" TextAlignment="TopLeft" SizeF="860,35" LocationFloat="10,6" Dpi="96" Font="Tahoma, 8pt" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
              <Rows>
                <Item1 Ref="124" ControlType="XRTableRow" Name="tableRow2" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="125" ControlType="XRTableCell" Name="tableCell12" Weight="0.085129735676334334" Text="# Orden" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="126" UseForeColor="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="127" ControlType="XRTableCell" Name="tableCell13" Weight="0.10707052705342572" Text="Servicio" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="128" UseForeColor="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="129" ControlType="XRTableCell" Name="tableCell14" Weight="0.0844715387627892" Text="Asunto" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="130" UseForeColor="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="131" ControlType="XRTableCell" Name="tableCell15" Weight="0.10858216670015283" Text="F. Creación" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="132" UseForeColor="false" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="133" ControlType="XRTableCell" Name="tableCell16" Weight="0.1039829841973844" Text="F. Atención" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="134" UseForeColor="false" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="135" ControlType="XRTableCell" Name="tableCell17" Weight="0.11694359805381974" Text="F. Solución" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="136" UseForeColor="false" UseTextAlignment="false" />
                    </Item6>
                    <Item7 Ref="137" ControlType="XRTableCell" Name="tableCell18" Weight="0.0736728636554373" Text="Estado" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="138" UseForeColor="false" UseTextAlignment="false" />
                    </Item7>
                    <Item8 Ref="139" ControlType="XRTableCell" Name="tableCell19" Weight="0.097164047405827972" Text="Mayor tiempo por fuera del SLA (horas)" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="140" UseForeColor="false" UseTextAlignment="false" />
                    </Item8>
                    <Item9 Ref="141" ControlType="XRTableCell" Name="tableCell20" Weight="0.1160551495765579" Text="Especialista" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="142" UseForeColor="false" UseTextAlignment="false" />
                    </Item9>
                  </Cells>
                  <StylePriority Ref="143" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
              <StylePriority Ref="144" UseFont="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item2>
      </Bands>
      <Scripts Ref="145" OnBeforePrint="DetailReport_BeforePrint" />
    </Item6>
    <Item7 Ref="146" ControlType="PageHeaderBand" Name="PageHeader" HeightF="80" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="147" ControlType="XRLabel" Name="label12" CanGrow="false" Text="[dateNow]" WordWrap="false" SizeF="197,20" LocationFloat="133,56" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="148" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="149" UseForeColor="false" UseBackColor="false" />
        </Item1>
        <Item2 Ref="150" ControlType="XRLabel" Name="label17" Text="Paginas:" SizeF="60,20" LocationFloat="770,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="151" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item2>
        <Item3 Ref="152" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="830,10" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="153" UseForeColor="false" UseBackColor="false" />
        </Item3>
        <Item4 Ref="154" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="250,20" LocationFloat="80,35" Dpi="96" ForeColor="255,145,145,145" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="155" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_name]" />
          </ExpressionBindings>
          <StylePriority Ref="156" UseForeColor="false" UseBackColor="false" />
        </Item4>
        <Item5 Ref="157" ControlType="XRLabel" Name="label2" Text="Compañía:" SizeF="70,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="158" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item5>
        <Item6 Ref="159" ControlType="XRLabel" Name="label3" Text="Nit:" SizeF="35,20" LocationFloat="330,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="160" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item6>
        <Item7 Ref="161" ControlType="XRLabel" Name="label9" SizeF="120,20" LocationFloat="365,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="162" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_code]" />
          </ExpressionBindings>
          <StylePriority Ref="163" UseForeColor="false" UseBackColor="false" />
        </Item7>
        <Item8 Ref="164" ControlType="XRLabel" Name="label11" Text="Fecha final:" SizeF="95,20" LocationFloat="500,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="165" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item8>
        <Item9 Ref="166" ControlType="XRLabel" Name="label7" Text="Fecha inicial:" SizeF="94.99994,20" LocationFloat="500,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="167" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item9>
        <Item10 Ref="168" ControlType="XRLabel" Name="label14" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="163.242615,20" LocationFloat="594.999939,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="169" EventName="BeforePrint" PropertyName="Text" Expression="?initDate" />
          </ExpressionBindings>
          <StylePriority Ref="170" UseForeColor="false" UseBackColor="false" />
        </Item10>
        <Item11 Ref="171" ControlType="XRLabel" Name="label4" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="163.242554,20" LocationFloat="595,55" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="172" EventName="BeforePrint" PropertyName="Text" Expression="?endDate" />
          </ExpressionBindings>
          <StylePriority Ref="173" UseForeColor="false" UseBackColor="false" />
        </Item11>
        <Item12 Ref="174" ControlType="XRLabel" Name="label6" Text="Fecha de creación:" SizeF="122,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="175" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item12>
        <Item13 Ref="176" ControlType="XRLabel" Name="label10" Text="Cumplimiento de SLA" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,169,157" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="177" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item13>
      </Controls>
    </Item7>
  </Bands>
  <Scripts Ref="178" OnParametersRequestBeforeShow="AFLS_Cummplimiento_SLA_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="179" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsServices" ValueMember="serv_id" DisplayMember="serv_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsProvider" ValueMember="prov_id" DisplayMember="provider_name" />
    <Item5 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="10" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2B2AC AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34002, @folder_AflsReports, N'Ordenes ejecutadas por especialista',
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AFLS_Ordenes_ejecutadas_por_especialista" SnapGridSize="10" ReportUnit="Pixels" Margins="0, 0, 0, 2" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96">
  <Parameters>
    <Item1 Ref="3" Description="Fecha Inicial" ValueInfo="2014-01-01" Name="initDate" Type="#Ref-2" />
    <Item2 Ref="4" Description="Fecha final" ValueInfo="2018-01-01" Name="endDate" Type="#Ref-2" />
    <Item3 Ref="7" Description="Servicio" ValueSourceSettings="#Ref-5" ValueInfo="-1" Name="service" Type="#Ref-6" />
    <Item4 Ref="9" Description="Proveedor" ValueSourceSettings="#Ref-8" ValueInfo="-1" Name="provider" Type="#Ref-6" />
    <Item5 Ref="11" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-10" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="12" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="13" ControlType="DetailBand" Name="Detail" HeightF="0" Dpi="96" StyleName="generalStyle" />
    <Item2 Ref="14" ControlType="TopMarginBand" Name="topMarginBand1" HeightF="0" Dpi="96" />
    <Item3 Ref="15" ControlType="BottomMarginBand" Name="bottomMarginBand1" HeightF="2" Dpi="96" />
    <Item4 Ref="16" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="260" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="17" ControlType="XRChart" Name="chart1" BackColor="255,246,246,246" DataSource="#Ref-0" SizeF="430,260" LocationFloat="10,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="18" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="19" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="20" Name="promedio" ArgumentDataMember="PRC_AFLS_34002_REPORT_DATASET_ORDERS_TIME_BY_SPECIALIST.SPECIALIST" ValueDataMembersSerializable="PRC_AFLS_34002_REPORT_DATASET_ORDERS_TIME_BY_SPECIALIST.PROMEDIO">
                  <Label Ref="21" Position="Top" TypeNameSerializable="SideBySideBarSeriesLabel" />
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="22" TypeNameSerializable="XYDiagram">
              <AxisX Ref="23" VisibleInPanesSerializable="-1">
                <Title Ref="24" Visibility="True" Text="Especialistas" Font="Tahoma, 9pt, charSet=0" />
              </AxisX>
              <AxisY Ref="25" VisibleInPanesSerializable="-1">
                <Title Ref="26" Visibility="True" Text="Horas" Font="Tahoma, 9pt, charSet=0" />
              </AxisY>
              <DefaultPane Ref="27" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="28">
                  <ConnectorLineStyle Ref="29" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="30" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="31" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="32" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="33" Text="Promedio de tiempos acomulados" Font="Tahoma, 9.75pt, charSet=0" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="34" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="35" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="36" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="37" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="38" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="39" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="40" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="41" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="42" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
          <StylePriority Ref="43" UseBackColor="false" />
        </Item1>
        <Item2 Ref="44" ControlType="XRChart" Name="chart2" BackColor="255,246,246,246" SizeF="430,260" LocationFloat="440,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="45" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="46" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="47" Name="casos" ArgumentDataMember="PRC_AFLS_34002_REPORT_DATASET_ORDERS_BY_SPECIALIST.SPECIALIST" ValueDataMembersSerializable="PRC_AFLS_34002_REPORT_DATASET_ORDERS_BY_SPECIALIST.CASOS">
                  <Label Ref="48" Position="Top" TypeNameSerializable="SideBySideBarSeriesLabel" />
                </Item1>
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="49" TypeNameSerializable="XYDiagram">
              <AxisX Ref="50" VisibleInPanesSerializable="-1">
                <Title Ref="51" Visibility="True" Text="Especialistas" Font="Tahoma, 9pt, charSet=0" />
              </AxisX>
              <AxisY Ref="52" VisibleInPanesSerializable="-1">
                <Title Ref="53" Visibility="True" Text="Casos" Font="Tahoma, 9pt, charSet=0" />
              </AxisY>
              <DefaultPane Ref="54" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="55">
                  <ConnectorLineStyle Ref="56" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="57" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="58" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="59" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="60" Text="Mayor cantidad de Casos ejecutados" Font="Tahoma, 9.75pt, charSet=0" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="61" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="62" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="63" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="64" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="65" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="66" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="67" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="68" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="69" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
          <StylePriority Ref="70" UseBackColor="false" />
        </Item2>
      </Controls>
    </Item4>
    <Item5 Ref="71" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="PRC_AFLS_34002_REPORT_DATASET_ORDERS" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="72" ControlType="DetailBand" Name="Detail1" HeightF="40" Dpi="96" StyleName="generalStyle" Font="Times New Roman, 9.75pt, charSet=0">
          <Controls>
            <Item1 Ref="73" ControlType="XRTable" Name="table1" SizeF="860,35" LocationFloat="10,0" Dpi="96" Font="Tahoma, 8pt">
              <Rows>
                <Item1 Ref="74" ControlType="XRTableRow" Name="tableRow2" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="75" ControlType="XRTableCell" Name="tableCell1" Weight="0.1473594552874917" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,145,145,145" BorderColor="255,145,145,145" Borders="Bottom" BorderWidth="0.5">
                      <ExpressionBindings>
                        <Item1 Ref="76" EventName="BeforePrint" PropertyName="Text" Expression="[SPECIALIST]" />
                      </ExpressionBindings>
                      <StylePriority Ref="77" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="78" ControlType="XRTableCell" Name="tableCell2" Weight="0.23024916634259" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,145,145,145" BorderColor="255,145,145,145" Borders="Bottom" BorderWidth="0.5">
                      <ExpressionBindings>
                        <Item1 Ref="79" EventName="BeforePrint" PropertyName="Text" Expression="[CASOS]" />
                      </ExpressionBindings>
                      <StylePriority Ref="80" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="81" ControlType="XRTableCell" Name="tableCell3" Weight="0.20478611307694794" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,145,145,145" BorderColor="255,145,145,145" Borders="Bottom" BorderWidth="0.5">
                      <ExpressionBindings>
                        <Item1 Ref="82" EventName="BeforePrint" PropertyName="Text" Expression="[TOTAL]" />
                      </ExpressionBindings>
                      <StylePriority Ref="83" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="84" ControlType="XRTableCell" Name="tableCell8" Weight="0.29760117032075534" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,145,145,145" BorderColor="255,145,145,145" Borders="Bottom" BorderWidth="0.5">
                      <ExpressionBindings>
                        <Item1 Ref="85" EventName="BeforePrint" PropertyName="Text" Expression="[PROMEDIO]" />
                      </ExpressionBindings>
                      <StylePriority Ref="86" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item4>
                  </Cells>
                  <StylePriority Ref="87" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
              <StylePriority Ref="88" UseFont="false" />
            </Item1>
          </Controls>
          <StylePriority Ref="89" UseFont="false" />
        </Item1>
        <Item2 Ref="90" ControlType="GroupHeaderBand" Name="GroupHeader2" RepeatEveryPage="true" HeightF="43" Dpi="96">
          <Controls>
            <Item1 Ref="91" ControlType="XRTable" Name="table3" SizeF="860,35" LocationFloat="10,0" Dpi="96">
              <Rows>
                <Item1 Ref="92" ControlType="XRTableRow" Name="tableRow3" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="93" ControlType="XRTableCell" Name="tableCell9" Weight="0.14919648513591036" Text="Especialista&#x9;" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5" BorderDashStyle="Solid">
                      <StylePriority Ref="94" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseBorderDashStyle="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="95" ControlType="XRTableCell" Name="tableCell10" Weight="0.23311950295851505" Text="Total de casos ejecutados" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5" BorderDashStyle="Solid">
                      <StylePriority Ref="96" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseBorderDashStyle="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="97" ControlType="XRTableCell" Name="tableCell11" Weight="0.20733905700195" Text="Tiempo de ejecucón total (horas)" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5" BorderDashStyle="Solid">
                      <StylePriority Ref="98" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseBorderDashStyle="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="99" ControlType="XRTableCell" Name="tableCell12" Weight="0.30131118869915041" Text="Tiempo promedio de ejecución (Horas)" TextAlignment="BottomCenter" Dpi="96" StyleName="generalStyle" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5" BorderDashStyle="Solid">
                      <StylePriority Ref="100" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseBorderDashStyle="false" UseTextAlignment="false" />
                    </Item4>
                  </Cells>
                  <StylePriority Ref="101" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item2>
      </Bands>
    </Item5>
    <Item6 Ref="102" ControlType="ReportFooterBand" Name="ReportFooter" HeightF="10" Dpi="96" />
    <Item7 Ref="103" ControlType="PageHeaderBand" Name="PageHeader" HeightF="80" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="104" ControlType="XRLabel" Name="label12" CanGrow="false" Text="[dateNow]" WordWrap="false" SizeF="211,20" LocationFloat="130,55" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="105" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="106" UseForeColor="false" UseBackColor="false" />
        </Item1>
        <Item2 Ref="107" ControlType="XRLabel" Name="label6" Text="Paginas:" SizeF="60,20" LocationFloat="780,10" Dpi="96" StyleName="generalStyle" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="108" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item2>
        <Item3 Ref="109" ControlType="XRLabel" Name="label1" Text="Ordenes ejecutadas por especialista" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,154,144" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="110" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item3>
        <Item4 Ref="111" ControlType="XRLabel" Name="label2" Text="Compañía:" SizeF="69,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="112" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item4>
        <Item5 Ref="113" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="251,20" LocationFloat="79,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="114" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_name]" />
          </ExpressionBindings>
          <StylePriority Ref="115" UseForeColor="false" UseBackColor="false" />
        </Item5>
        <Item6 Ref="116" ControlType="XRLabel" Name="label9" SizeF="100,20" LocationFloat="408.507751,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="117" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_code]" />
          </ExpressionBindings>
          <StylePriority Ref="118" UseForeColor="false" UseBackColor="false" />
        </Item6>
        <Item7 Ref="119" ControlType="XRLabel" Name="label3" Text="Nit:" SizeF="35,20" LocationFloat="372.907654,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="120" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item7>
        <Item8 Ref="121" ControlType="XRLabel" Name="label5" Text="Fecha de creación:" SizeF="120,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="122" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item8>
        <Item9 Ref="123" ControlType="XRLabel" Name="label13" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="163.000061,20" LocationFloat="610.6079,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="124" EventName="BeforePrint" PropertyName="Text" Expression="?initDate" />
          </ExpressionBindings>
          <StylePriority Ref="125" UseForeColor="false" UseBackColor="false" />
        </Item9>
        <Item10 Ref="126" ControlType="XRLabel" Name="label7" Text="Fecha inicial:" SizeF="82.99994,20" LocationFloat="527.607849,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="127" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item10>
        <Item11 Ref="128" ControlType="XRLabel" Name="label4" Text="Parámetro de fecha:" SizeF="135.6001,20" LocationFloat="372.907654,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="129" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item11>
        <Item12 Ref="130" ControlType="XRLabel" Name="label11" Text="Fecha final:" SizeF="82.99994,20" LocationFloat="527.608,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="131" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item12>
        <Item13 Ref="132" ControlType="XRLabel" Name="label14" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="163.000061,20" LocationFloat="610.6079,55" Dpi="96" StyleName="generalStyle" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="133" EventName="BeforePrint" PropertyName="Text" Expression="?endDate" />
          </ExpressionBindings>
          <StylePriority Ref="134" UseForeColor="false" UseBackColor="false" />
        </Item13>
        <Item14 Ref="135" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="840,10" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="136" UseForeColor="false" UseBackColor="false" />
        </Item14>
      </Controls>
    </Item7>
  </Bands>
  <Scripts Ref="137" OnParametersRequestBeforeShow="AFLS_Ordenes_ejecutadas_por_especialista_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="138" Name="Title" BorderStyle="Inset" Font="Times New Roman, 20pt, style=Bold" ForeColor="Maroon" BackColor="Transparent" BorderColor="Black" Sides="None" StringFormat="Near;Near;0;None;Character;Default" BorderWidthSerializable="1" />
    <Item2 Ref="139" Name="FieldCaption" BorderStyle="Inset" Font="Arial, 10pt, style=Bold" ForeColor="Maroon" BackColor="Transparent" BorderColor="Black" Sides="None" StringFormat="Near;Near;0;None;Character;Default" BorderWidthSerializable="1" />
    <Item3 Ref="140" Name="PageInfo" BorderStyle="Inset" Font="Times New Roman, 10pt, style=Bold" ForeColor="Black" BackColor="Transparent" BorderColor="Black" Sides="None" StringFormat="Near;Near;0;None;Character;Default" BorderWidthSerializable="1" />
    <Item4 Ref="141" Name="DataField" BorderStyle="Inset" Padding="2,2,0,0,96" Font="Times New Roman, 10pt" ForeColor="Black" BackColor="Transparent" BorderColor="Black" Sides="None" StringFormat="Near;Near;0;None;Character;Default" BorderWidthSerializable="1" />
    <Item5 Ref="142" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
    <Item6 Ref="143" Name="controlStyle1" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsServices" ValueMember="serv_id" DisplayMember="serv_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsProvider" ValueMember="prov_id" DisplayMember="provider_name" />
    <Item5 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="10" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2C8D4 AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34003, @folder_AflsReports, N'Ordenes de trabajo creadas',
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AFLS_Report_Order_Created" ScriptsSource="&#xD;&#xA;&#xD;&#xA;" SnapGridSize="10" ReportUnit="Pixels" Margins="0, 0, 0, 2" PaperKind="Custom" PageWidth="981" PageHeight="1152" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96" Font="Tahoma, 10pt" ForeColor="0,0,0,0" BackColor="White">
  <Parameters>
    <Item1 Ref="3" Description="Fecha inicial" ValueInfo="2014-01-01" Name="initDate" Type="#Ref-2" />
    <Item2 Ref="4" Description="Fecha final" ValueInfo="2018-01-01" Name="endDate" Type="#Ref-2" />
    <Item3 Ref="7" Description="Servicio" ValueSourceSettings="#Ref-5" ValueInfo="-1" Name="service" Type="#Ref-6" />
    <Item4 Ref="9" Description="Proveedor" ValueSourceSettings="#Ref-8" ValueInfo="-1" Name="provider" Type="#Ref-6" />
    <Item5 Ref="11" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-10" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="12" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="13" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="14" ControlType="DetailBand" Name="Detail" HeightF="0" Dpi="96" Font="Tahoma, 8pt">
      <StylePriority Ref="15" UseFont="false" />
    </Item2>
    <Item3 Ref="16" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="2" Dpi="96" />
    <Item4 Ref="17" ControlType="ReportFooterBand" Name="ReportFooter" HeightF="10" Dpi="96" />
    <Item5 Ref="18" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="280" Dpi="96">
      <Controls>
        <Item1 Ref="19" ControlType="XRPanel" Name="panel1" SizeF="960,280" LocationFloat="10,0" Dpi="96" BackColor="WhiteSmoke">
          <Controls>
            <Item1 Ref="20" ControlType="XRLabel" Name="label16" CanGrow="false" WordWrap="false" SizeF="253.71,20" LocationFloat="510,250" Dpi="96" Font="Tahoma, 13pt, style=Bold" ForeColor="Gray" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="21" EventName="BeforePrint" PropertyName="Text" Expression="[dsOrdersByService.TOTAL]" />
              </ExpressionBindings>
              <StylePriority Ref="22" UseFont="false" UseForeColor="false" />
            </Item1>
            <Item2 Ref="23" ControlType="XRLabel" Name="label15" Text="Ordenes Creadas" SizeF="136,20" LocationFloat="374,250" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,154,144" Padding="2,2,0,0,96">
              <StylePriority Ref="24" UseFont="false" UseForeColor="false" />
            </Item2>
            <Item3 Ref="25" ControlType="XRChart" Name="chart1" BackColor="WhiteSmoke" SizeF="400,230" LocationFloat="50,10" Dpi="96" BorderColor="Black" Borders="None">
              <Chart Ref="26" PaletteName="Technic" AppearanceNameSerializable="Dark Flat" BackColor="WhiteSmoke">
                <DataContainer Ref="27" ValidateDataMembers="true">
                  <SeriesSerializable>
                    <Item1 Ref="28" Name="Series 1" LegendName="Default Legend" ArgumentDataMember="dsOrderState.STATES" ValueDataMembersSerializable="dsOrderState.AMOUNT" LegendTextPattern="{A}">
                      <View Ref="29" TypeNameSerializable="DoughnutSeriesView" />
                      <Label Ref="30" Position="Inside" TypeNameSerializable="DoughnutSeriesLabel" LineVisibility="True">
                        <Border Ref="31" Visibility="True" />
                      </Label>
                    </Item1>
                  </SeriesSerializable>
                </DataContainer>
                <Legend Ref="32" MarkerSize="20,20" BackColor="WhiteSmoke" TextColor="255,127,127,127" EnableAntialiasing="False" ItemVisibilityMode="AutoGeneratedAndCustom" Name="Default Legend">
                  <Border Ref="33" Visibility="False" />
                </Legend>
                <OptionsPrint Ref="34" ImageFormat="Metafile" />
                <Titles>
                  <Item1 Ref="35" Text="Estado de los casos" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
                </Titles>
                <XtraPaletteRepository>
                  <Item1 Ref="36" Name="AFLS Custom" ScaleMode="Extrapolate">
                    <Palette>
                      <Item1 Ref="37" Color="255,255,225,126" Color2="255,255,225,126" />
                      <Item2 Ref="38" Color="255,138,204,224" Color2="255,138,204,224" />
                      <Item3 Ref="39" Color="255,211,232,167" Color2="255,211,232,167" />
                      <Item4 Ref="40" Color="255,232,151,165" Color2="255,232,151,165" />
                      <Item5 Ref="41" Color="255,255,185,84" Color2="255,255,185,84" />
                      <Item6 Ref="42" Color="255,80,158,209" Color2="255,80,158,209" />
                      <Item7 Ref="43" Color="255,162,207,142" Color2="255,162,207,142" />
                      <Item8 Ref="44" Color="255,225,119,141" Color2="255,225,119,141" />
                      <Item9 Ref="45" Color="255,243,112,78" Color2="255,243,112,78" />
                      <Item10 Ref="46" Color="255,64,120,187" Color2="255,64,120,187" />
                      <Item11 Ref="47" Color="255,68,167,109" Color2="255,68,167,109" />
                      <Item12 Ref="48" Color="255,204,85,122" Color2="255,204,85,122" />
                      <Item13 Ref="49" Color="255,220,67,73" Color2="255,220,67,73" />
                      <Item14 Ref="50" Color="255,50,70,133" Color2="255,50,70,133" />
                      <Item15 Ref="51" Color="255,39,120,93" Color2="255,39,120,93" />
                      <Item16 Ref="52" Color="255,164,77,105" Color2="255,164,77,105" />
                    </Palette>
                  </Item1>
                </XtraPaletteRepository>
              </Chart>
              <StylePriority Ref="53" UseBackColor="false" />
            </Item3>
            <Item4 Ref="54" ControlType="XRChart" Name="chart2" BackColor="WhiteSmoke" SizeF="400,230" LocationFloat="510,10" Dpi="96" BorderColor="Black" Borders="None">
              <Chart Ref="55" PaletteName="Technic" AppearanceNameSerializable="Dark Flat" BackColor="WhiteSmoke">
                <DataContainer Ref="56" ValidateDataMembers="true">
                  <SeriesSerializable>
                    <Item1 Ref="57" Name="Series 1" ArgumentDataMember="dsOrdersByService.SERVICES" ValueDataMembersSerializable="dsOrdersByService.AMOUNT" LegendTextPattern="{A}">
                      <View Ref="58" TypeNameSerializable="DoughnutSeriesView" />
                      <Label Ref="59" Position="Inside" TypeNameSerializable="DoughnutSeriesLabel" />
                    </Item1>
                  </SeriesSerializable>
                </DataContainer>
                <Legend Ref="60" Visibility="True" BackColor="WhiteSmoke" TextColor="255,127,127,127" Name="Default Legend">
                  <Border Ref="61" Visibility="False" />
                </Legend>
                <OptionsPrint Ref="62" ImageFormat="Metafile" />
                <Titles>
                  <Item1 Ref="63" Text="TOP 5 distribución de servicio" Font="Tahoma, 9.75pt, charSet=0" TextColor="255,127,127,127" />
                </Titles>
                <XtraPaletteRepository>
                  <Item1 Ref="64" Name="AFLS Custom" ScaleMode="Extrapolate">
                    <Palette>
                      <Item1 Ref="65" Color="255,243,206,69" Color2="255,243,206,69" />
                      <Item2 Ref="66" Color="255,0,146,137" Color2="255,0,146,137" />
                      <Item3 Ref="67" Color="255,233,109,53" Color2="255,233,109,53" />
                      <Item4 Ref="68" Color="255,122,43,70" Color2="255,122,43,70" />
                      <Item5 Ref="69" Color="255,75,130,130" Color2="255,75,130,130" />
                      <Item6 Ref="70" Color="255,230,186,81" Color2="255,230,186,81" />
                      <Item7 Ref="71" Color="255,212,130,76" Color2="255,212,130,76" />
                      <Item8 Ref="72" Color="255,168,59,48" Color2="255,168,59,48" />
                    </Palette>
                  </Item1>
                  <Item2 Ref="73" Name="AFLS Custom1" ScaleMode="Extrapolate">
                    <Palette>
                      <Item1 Ref="74" Color="255,255,225,126" Color2="255,255,225,126" />
                      <Item2 Ref="75" Color="255,138,204,224" Color2="255,138,204,224" />
                      <Item3 Ref="76" Color="255,211,232,167" Color2="255,211,232,167" />
                      <Item4 Ref="77" Color="255,232,151,165" Color2="255,232,151,165" />
                      <Item5 Ref="78" Color="255,255,185,84" Color2="255,255,185,84" />
                      <Item6 Ref="79" Color="255,80,158,209" Color2="255,80,158,209" />
                      <Item7 Ref="80" Color="255,162,207,142" Color2="255,162,207,142" />
                      <Item8 Ref="81" Color="255,225,119,141" Color2="255,225,119,141" />
                      <Item9 Ref="82" Color="255,243,112,78" Color2="255,243,112,78" />
                      <Item10 Ref="83" Color="255,64,120,187" Color2="255,64,120,187" />
                      <Item11 Ref="84" Color="255,68,167,109" Color2="255,68,167,109" />
                      <Item12 Ref="85" Color="255,204,85,122" Color2="255,204,85,122" />
                      <Item13 Ref="86" Color="255,220,67,73" Color2="255,220,67,73" />
                      <Item14 Ref="87" Color="255,50,70,133" Color2="255,50,70,133" />
                      <Item15 Ref="88" Color="255,39,120,93" Color2="255,39,120,93" />
                      <Item16 Ref="89" Color="255,164,77,105" Color2="255,164,77,105" />
                    </Palette>
                  </Item2>
                </XtraPaletteRepository>
              </Chart>
            </Item4>
          </Controls>
          <StylePriority Ref="90" UseBackColor="false" />
        </Item1>
      </Controls>
    </Item5>
    <Item6 Ref="91" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="dsOrders" DataSource="#Ref-0" Dpi="96" Font="Tahoma, 8pt">
      <Bands>
        <Item1 Ref="92" ControlType="DetailBand" Name="Detail1" HeightF="30.9200439" Dpi="96">
          <Controls>
            <Item1 Ref="93" ControlType="XRTable" Name="table1" TextAlignment="MiddleCenter" SizeF="960,25" LocationFloat="10,0" Dpi="96" Font="Tahoma, 8pt" BorderColor="Gainsboro" Borders="Bottom">
              <Rows>
                <Item1 Ref="94" ControlType="XRTableRow" Name="tableRow4" Weight="32.2" TextAlignment="TopCenter" Dpi="96" ForeColor="255,153,153,153" Padding="5,5,5,5,96" BorderColor="LightGray" Borders="Bottom">
                  <Cells>
                    <Item1 Ref="95" ControlType="XRTableCell" Name="tableCell31" Weight="0.074809722204652374" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro" Borders="Bottom">
                      <ExpressionBindings>
                        <Item1 Ref="96" EventName="BeforePrint" PropertyName="Text" Expression="[ticket_id]" />
                      </ExpressionBindings>
                      <StylePriority Ref="97" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item1>
                    <Item2 Ref="98" ControlType="XRTableCell" Name="tableCell32" Weight="0.12088506141356865" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro" Borders="Bottom">
                      <ExpressionBindings>
                        <Item1 Ref="99" EventName="BeforePrint" PropertyName="Text" Expression="[work_subject]" />
                      </ExpressionBindings>
                      <StylePriority Ref="100" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item2>
                    <Item3 Ref="101" ControlType="XRTableCell" Name="tableCell33" Weight="0.097847257580449237" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro" Borders="Bottom">
                      <ExpressionBindings>
                        <Item1 Ref="102" EventName="BeforePrint" PropertyName="Text" Expression="[stat_name]" />
                      </ExpressionBindings>
                      <StylePriority Ref="103" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item3>
                    <Item4 Ref="104" ControlType="XRTableCell" Name="tableCell34" Weight="0.097847391634957884" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro" Borders="Bottom">
                      <ExpressionBindings>
                        <Item1 Ref="105" EventName="BeforePrint" PropertyName="Text" Expression="[serv_name]" />
                      </ExpressionBindings>
                      <StylePriority Ref="106" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item4>
                    <Item5 Ref="107" ControlType="XRTableCell" Name="tableCell35" Weight="0.097847324607703554" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro" Borders="Bottom">
                      <Scripts Ref="108" OnBeforePrint="tableCell35_BeforePrint" />
                      <ExpressionBindings>
                        <Item1 Ref="109" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([work_created_date],-1* ?UTCoffSet)" />
                      </ExpressionBindings>
                      <StylePriority Ref="110" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item5>
                    <Item6 Ref="111" ControlType="XRTableCell" Name="tableCell36" Weight="0.11320581409412894" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro" Borders="Bottom">
                      <Scripts Ref="112" OnBeforePrint="tableCell36_BeforePrint" />
                      <ExpressionBindings>
                        <Item1 Ref="113" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([work_tentative_attention_start_date],-1* ?UTCoffSet)" />
                      </ExpressionBindings>
                      <StylePriority Ref="114" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item6>
                    <Item7 Ref="115" ControlType="XRTableCell" Name="tableCell37" Weight="0.09675022366359598" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro" Borders="Bottom">
                      <ExpressionBindings>
                        <Item1 Ref="116" EventName="BeforePrint" PropertyName="Text" Expression="[Specialist]" />
                      </ExpressionBindings>
                      <StylePriority Ref="117" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item7>
                    <Item8 Ref="118" ControlType="XRTableCell" Name="tableCell38" Weight="0.11649698651592895" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro" Borders="Bottom">
                      <ExpressionBindings>
                        <Item1 Ref="119" EventName="BeforePrint" PropertyName="Text" Expression="[Client]" />
                      </ExpressionBindings>
                      <StylePriority Ref="120" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item8>
                    <Item9 Ref="121" ControlType="XRTableCell" Name="tableCell39" Weight="0.13295237676070937" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro" Borders="Bottom">
                      <ExpressionBindings>
                        <Item1 Ref="122" EventName="BeforePrint" PropertyName="Text" Expression="[work_address]" />
                      </ExpressionBindings>
                      <StylePriority Ref="123" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item9>
                    <Item10 Ref="124" ControlType="XRTableCell" Name="tableCell40" Weight="0.10661569681284977" TextFormatString="{0:$0.000}" Dpi="96" ForeColor="Gray" BorderColor="Gainsboro" Borders="Bottom">
                      <ExpressionBindings>
                        <Item1 Ref="125" EventName="BeforePrint" PropertyName="Text" Expression="[Cost]" />
                      </ExpressionBindings>
                      <StylePriority Ref="126" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item10>
                  </Cells>
                  <StylePriority Ref="127" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
              <StylePriority Ref="128" UseFont="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="129" ControlType="GroupHeaderBand" Name="GroupHeader2" RepeatEveryPage="true" HeightF="43.0799561" Dpi="96">
          <Controls>
            <Item1 Ref="130" ControlType="XRTable" Name="table3" TextAlignment="MiddleCenter" SizeF="960,35" LocationFloat="10,0" Dpi="96" Font="Tahoma, 8pt" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5" BorderDashStyle="Solid">
              <Rows>
                <Item1 Ref="131" ControlType="XRTableRow" Name="tableRow2" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="132" ControlType="XRTableCell" Name="tableCell11" Weight="0.074809696721126737" Text="#Orden" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="133" UseForeColor="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="134" ControlType="XRTableCell" Name="tableCell12" Weight="0.1208850195215347" Text="Asunto" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="135" UseForeColor="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="136" ControlType="XRTableCell" Name="tableCell13" Weight="0.097847358121330719" Text="Estado" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="137" UseForeColor="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="138" ControlType="XRTableCell" Name="tableCell14" Weight="0.097847358121330719" Text="Servicio" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="139" UseForeColor="false" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="140" ControlType="XRTableCell" Name="tableCell15" Weight="0.097847358121330719" Text="F. Creación" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="141" UseForeColor="false" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="142" ControlType="XRTableCell" Name="tableCell16" Weight="0.11320583922934932" Text="F. Atención" Dpi="96" StyleName="Style1" />
                    <Item7 Ref="143" ControlType="XRTableCell" Name="tableCell17" Weight="0.096750215285189192" Text="Especialista" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="144" UseForeColor="false" UseTextAlignment="false" />
                    </Item7>
                    <Item8 Ref="145" ControlType="XRTableCell" Name="tableCell18" Weight="0.11649698651592895" Text="Cliente" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="146" UseForeColor="false" UseTextAlignment="false" />
                    </Item8>
                    <Item9 Ref="147" ControlType="XRTableCell" Name="tableCell19" Weight="0.13295239351752297" Text="Dirección" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="148" UseForeColor="false" UseTextAlignment="false" />
                    </Item9>
                    <Item10 Ref="149" ControlType="XRTableCell" Name="tableCell20" Weight="0.10661571865399007" Text="Costo" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144">
                      <StylePriority Ref="150" UseForeColor="false" UseTextAlignment="false" />
                    </Item10>
                  </Cells>
                  <StylePriority Ref="151" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
              <StylePriority Ref="152" UseFont="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseBorderDashStyle="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item2>
      </Bands>
    </Item6>
    <Item7 Ref="153" ControlType="PageHeaderBand" Name="PageHeader" Dpi="96">
      <Controls>
        <Item1 Ref="154" ControlType="XRLabel" Name="label18" CanGrow="false" Text="[dateNow]" WordWrap="false" SizeF="211,20" LocationFloat="130,55" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="155" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="156" UseForeColor="false" UseBackColor="false" />
        </Item1>
        <Item2 Ref="157" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="930,10" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="158" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, Gray, ?)" />
            <Item2 Ref="159" EventName="BeforePrint" PropertyName="Font.Name" Expression="Iif(, Tahoma, ?)" />
            <Item3 Ref="160" EventName="BeforePrint" PropertyName="Font.Size" Expression="Iif(, 10, ?)" />
            <Item4 Ref="161" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="162" UseForeColor="false" UseBackColor="false" />
        </Item2>
        <Item3 Ref="163" ControlType="XRLabel" Name="label17" Text="Paginas:" SizeF="60,20" LocationFloat="870,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="164" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, 43, 78, 89, ?)" />
            <Item2 Ref="165" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="166" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item3>
        <Item4 Ref="167" ControlType="XRLabel" Name="label11" Text="Fecha final:" SizeF="95,20" LocationFloat="500,75" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="168" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, 43, 78, 89, ?)" />
            <Item2 Ref="169" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="170" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item4>
        <Item5 Ref="171" ControlType="XRLabel" Name="label5" Text="Fecha de creación:" SizeF="120,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="172" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, 43, 78, 89, ?)" />
            <Item2 Ref="173" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="174" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item5>
        <Item6 Ref="175" ControlType="XRLabel" Name="label1" Text="Ordenes de trabajo creadas" TextAlignment="TopLeft" SizeF="300,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,154,144" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="176" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, 0, 154, 144, ?)" />
            <Item2 Ref="177" EventName="BeforePrint" PropertyName="Font.Size" Expression="Iif(, 10, ?)" />
            <Item3 Ref="178" EventName="BeforePrint" PropertyName="Font.Bold" Expression="Iif(, True, ?)" />
            <Item4 Ref="179" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="180" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item6>
        <Item7 Ref="181" ControlType="XRLabel" Name="label2" Text="Compañía:" SizeF="70,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="182" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, 43, 78, 89, ?)" />
            <Item2 Ref="183" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="184" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item7>
        <Item8 Ref="185" ControlType="XRLabel" Name="label3" Text="Nit:" SizeF="30,20" LocationFloat="330,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="186" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, 43, 78, 89, ?)" />
            <Item2 Ref="187" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="188" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item8>
        <Item9 Ref="189" ControlType="XRLabel" Name="label4" Text="Total ordenes de trabajo:" SizeF="160,20" LocationFloat="500,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="190" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, 43, 78, 89, ?)" />
            <Item2 Ref="191" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="192" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item9>
        <Item10 Ref="193" ControlType="XRLabel" Name="label6" Text="Servicio:" SizeF="60,20" LocationFloat="10,75" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="194" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, 43, 78, 89, ?)" />
            <Item2 Ref="195" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="196" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item10>
        <Item11 Ref="197" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="230,20" LocationFloat="80,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="198" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_name]" />
            <Item2 Ref="199" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, Gray, ?)" />
            <Item3 Ref="200" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="201" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item11>
        <Item12 Ref="202" ControlType="XRLabel" Name="label9" SizeF="120,20" LocationFloat="360,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="203" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_code]" />
            <Item2 Ref="204" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, Gray, ?)" />
            <Item3 Ref="205" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="206" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item12>
        <Item13 Ref="207" ControlType="XRLabel" Name="label12" CanGrow="false" WordWrap="false" SizeF="240,20" LocationFloat="70,75" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="208" EventName="BeforePrint" PropertyName="Text" Expression="[dsServiceParameter.serv_name]" />
            <Item2 Ref="209" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, Gray, ?)" />
            <Item3 Ref="210" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="211" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item13>
        <Item14 Ref="212" ControlType="XRLabel" Name="label13" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="127,20" LocationFloat="595,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="213" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, Gray, ?)" />
            <Item2 Ref="214" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
            <Item3 Ref="215" EventName="BeforePrint" PropertyName="Text" Expression="?initDate" />
          </ExpressionBindings>
          <StylePriority Ref="216" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item14>
        <Item15 Ref="217" ControlType="XRLabel" Name="label14" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="127,20" LocationFloat="595,75" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="218" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, Gray, ?)" />
            <Item2 Ref="219" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
            <Item3 Ref="220" EventName="BeforePrint" PropertyName="Text" Expression="?endDate" />
          </ExpressionBindings>
          <StylePriority Ref="221" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item15>
        <Item16 Ref="222" ControlType="XRLabel" Name="label10" TextFormatString="{0}" CanGrow="false" WordWrap="false" SizeF="150,20" LocationFloat="660,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Summary Ref="223" Running="Report" />
          <ExpressionBindings>
            <Item1 Ref="224" EventName="BeforePrint" PropertyName="Text" Expression="sumCount([dsOrders.ticket_id])" />
            <Item2 Ref="225" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(,Gray, ?)" />
            <Item3 Ref="226" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="227" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item16>
        <Item17 Ref="228" ControlType="XRLabel" Name="label7" Text="Fecha inicial:" SizeF="95,20" LocationFloat="500,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="229" EventName="BeforePrint" PropertyName="ForeColor" Expression="Iif(, 43, 78, 89, ?)" />
            <Item2 Ref="230" EventName="BeforePrint" PropertyName="Visible" Expression="Iif(, True, ?)" />
          </ExpressionBindings>
          <StylePriority Ref="231" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item17>
      </Controls>
    </Item7>
  </Bands>
  <Scripts Ref="232" OnParametersRequestBeforeShow="AFLS_Report_Order_Created_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="233" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
    <Item2 Ref="234" Name="Style1" BorderStyle="Inset" Padding="5,5,5,5,96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BackColor="White" BorderColor="255,0,154,144" BorderDashStyle="Solid" Sides="Bottom" StringFormat="Center;Far;FitBlackBox, LineLimit, NoClip;None;Character;GenericTypographic" TextAlignment="BottomCenter" BorderWidthSerializable="0.5" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="DSAFLS" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsServiceParameter" ValueMember="serv_id" DisplayMember="serv_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsProvider" ValueMember="prov_id" DisplayMember="provider_name" />
    <Item5 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="10" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2DD83 AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34004, @folder_AflsReports, N'Tendencia servicio', 
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AFLS_Tendencia_servicio" SnapGridSize="10" ReportUnit="Pixels" Margins="1, 0, 0, 5" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96">
  <Parameters>
    <Item1 Ref="4" Description="Periodo" ValueSourceSettings="#Ref-2" ValueInfo="SS" Name="range_time" />
    <Item2 Ref="7" Description="Servicio" ValueSourceSettings="#Ref-5" ValueInfo="-1" Name="service" Type="#Ref-6" />
    <Item3 Ref="9" Description="Proveedor" ValueSourceSettings="#Ref-8" ValueInfo="-1" Name="provider" Type="#Ref-6" />
    <Item4 Ref="11" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-10" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="12" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="13" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="14" ControlType="DetailBand" Name="Detail" HeightF="430" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="15" ControlType="XRChart" Name="chart3" BackColor="255,246,246,246" SizeF="860,220" LocationFloat="10,210" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="16" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="17" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="18" Name="ORDENES CREADAS" ArgumentDataMember="dsTrendByStatus.TIEMPO" ValueDataMembersSerializable="dsTrendByStatus.REPORTADOS">
                  <View Ref="19" TypeNameSerializable="LineSeriesView">
                    <LineStyle Ref="20" Thickness="5" />
                  </View>
                </Item1>
                <Item2 Ref="21" Name="ORDENES EJECUTADAS" ArgumentDataMember="dsTrendByStatus.TIEMPO" ValueDataMembersSerializable="dsTrendByStatus.CERRADOS">
                  <View Ref="22" TypeNameSerializable="LineSeriesView" />
                </Item2>
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="23" TypeNameSerializable="XYDiagram">
              <AxisX Ref="24" VisibleInPanesSerializable="-1">
                <Title Ref="25" Visibility="True" Text="Tiempo" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
              </AxisX>
              <AxisY Ref="26" VisibleInPanesSerializable="-1">
                <Title Ref="27" Visibility="True" Text="Casos" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
              </AxisY>
              <DefaultPane Ref="28" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="29">
                  <ConnectorLineStyle Ref="30" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="31" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="32" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="33" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="34" Text="Tendencia de servicio" Font="Tahoma, 9.75pt, style=Bold" TextColor="255,145,145,145" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="35" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="36" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="37" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="38" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="39" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="40" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="41" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="42" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="43" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item1>
        <Item2 Ref="44" ControlType="XRChart" Name="chart2" BackColor="255,246,246,246" SizeF="430,200" LocationFloat="440,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="45" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="46" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="47" Name="TOTAL" ArgumentDataMember="dsTrendBySolution.TIEMPO" ValueDataMembersSerializable="dsTrendBySolution.TOTAL" LabelsVisibility="False" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="48" TypeNameSerializable="XYDiagram">
              <AxisX Ref="49" VisibleInPanesSerializable="-1">
                <Title Ref="50" Visibility="True" Text="Tiempo" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
              </AxisX>
              <AxisY Ref="51" VisibleInPanesSerializable="-1">
                <Title Ref="52" Visibility="True" Text="Horas" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
              </AxisY>
              <DefaultPane Ref="53" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="54">
                  <ConnectorLineStyle Ref="55" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="56" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="57" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="58" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="59" Text="Promedio de cronómetro de solución" Font="Tahoma, 9.75pt, style=Bold" TextColor="255,145,145,145" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="60" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="61" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="62" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="63" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="64" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="65" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="66" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="67" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="68" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item2>
        <Item3 Ref="69" ControlType="XRChart" Name="chart1" BackColor="255,246,246,246" SizeF="430,200" LocationFloat="10,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="70" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="71" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="72" Name="FUERA" ArgumentDataMember="dsTrendByCompilance.TIEMPO" ValueDataMembersSerializable="dsTrendByCompilance.FUERA" />
                <Item2 Ref="73" Name="DENTRO" ArgumentDataMember="dsTrendByCompilance.TIEMPO" ValueDataMembersSerializable="dsTrendByCompilance.DENTRO" LabelsVisibility="False" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="74" TypeNameSerializable="XYDiagram">
              <AxisX Ref="75" VisibleInPanesSerializable="-1">
                <Title Ref="76" Visibility="True" Text="Tiempo" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
              </AxisX>
              <AxisY Ref="77" VisibleInPanesSerializable="-1">
                <Title Ref="78" Visibility="True" Text="Casos" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
              </AxisY>
              <DefaultPane Ref="79" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="80">
                  <ConnectorLineStyle Ref="81" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="82" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="83" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="84" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="85" Text="Grado de cumplimiento" Font="Tahoma, 9.75pt, style=Bold, charSet=0" TextColor="255,145,145,145" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="86" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="87" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="88" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="89" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="90" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="91" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="92" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="93" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="94" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item3>
      </Controls>
    </Item2>
    <Item3 Ref="95" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="5" Dpi="96" />
    <Item4 Ref="96" ControlType="PageHeaderBand" Name="PageHeader" HeightF="80" Dpi="96">
      <Controls>
        <Item1 Ref="97" ControlType="XRLabel" Name="label12" CanGrow="false" Text="[dateNow]" TextAlignment="TopJustify" WordWrap="false" SizeF="211,20" LocationFloat="126,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="98" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="99" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="100" ControlType="XRLabel" Name="label4" Text="Tendencia de Servicio" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,154,144" Padding="2,2,0,0,96">
          <StylePriority Ref="101" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="102" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="840,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <StylePriority Ref="103" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="104" ControlType="XRLabel" Name="label5" Text="Fecha de creación:" SizeF="116,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,66,89,102" Padding="2,2,0,0,96">
          <StylePriority Ref="105" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="106" ControlType="XRLabel" Name="label9" SizeF="127,20" LocationFloat="440,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="107" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_code]" />
          </ExpressionBindings>
          <StylePriority Ref="108" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="109" ControlType="XRLabel" Name="label3" Text="Nit:" SizeF="34.99997,20" LocationFloat="405.000031,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,66,89,102" Padding="2,2,0,0,96">
          <StylePriority Ref="110" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="111" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="228,20" LocationFloat="78,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="112" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_name]" />
          </ExpressionBindings>
          <StylePriority Ref="113" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="114" ControlType="XRLabel" Name="label2" Text="Compañía:" SizeF="68,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,66,89,102" Padding="2,2,0,0,96">
          <StylePriority Ref="115" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="116" ControlType="XRLabel" Name="label1" Text="Paginas" SizeF="60,20" LocationFloat="780,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,66,89,102" Padding="2,2,0,0,96">
          <StylePriority Ref="117" UseFont="false" UseForeColor="false" />
        </Item9>
      </Controls>
    </Item4>
  </Bands>
  <StyleSheet>
    <Item1 Ref="118" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.StaticListLookUpSettings, DevExpress.Printing.v21.2.Core">
      <LookUpValues>
        <Item1 Ref="120" Value="#Ref-119" Description="Ultimo año" />
        <Item2 Ref="122" Value="#Ref-121" Description="Ultimo mes" />
        <Item3 Ref="124" Value="#Ref-123" Description="Ultima semana" />
      </LookUpValues>
    </Item1>
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsServicesparameter" ValueMember="serv_id" DisplayMember="serv_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsProvider" ValueMember="prov_id" DisplayMember="provider_name" />
    <Item5 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="10" Content="System.Decimal" Type="System.Type" />
    <Item6 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="119" Content="" Type="System.String" />
    <Item7 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="121" Content="MM" Type="System.String" />
    <Item8 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="123" Content="SS" Type="System.String" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2FB1D AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34005, @folder_AflsReports, N'Promedio cronómetro de solución de órdenes por servicio', 
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report2" DisplayName="AFLS_Promedio_cronómetro_de_solución_de_órdenes_por_servicio" ScriptsSource="&#xD;&#xA;" SnapGridSize="9.6" ReportUnit="Pixels" Margins="0, 0, 0, 2" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96">
  <Parameters>
    <Item1 Ref="3" Description="Fecha inicial" ValueInfo="2014-01-01" Name="initDate" Type="#Ref-2" />
    <Item2 Ref="4" Description="Fecha final" ValueInfo="2018-01-01" Name="endDate" Type="#Ref-2" />
    <Item3 Ref="7" Description="Proveedor" ValueSourceSettings="#Ref-5" ValueInfo="-1" Name="provider" Type="#Ref-6" />
    <Item4 Ref="9" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-8" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="10" Name="calculatedField1" Expression="Avg([TIEMPO])" DataMember="dsSolutionTime" />
    <Item2 Ref="11" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="12" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="13" ControlType="DetailBand" Name="Detail" HeightF="0" Dpi="96" StyleName="generalStyle" />
    <Item3 Ref="14" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="2" Dpi="96" />
    <Item4 Ref="15" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="250" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="16" ControlType="XRLabel" Name="label6" Text="Promedio cronómetro de solución: " SizeF="270.157959,22.0800018" LocationFloat="231.640015,215" Dpi="96" StyleName="generalStyle" Font="Tahoma, 13pt" ForeColor="255,0,169,157" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="17" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item1>
        <Item2 Ref="18" ControlType="XRLabel" Name="label10" CanGrow="false" WordWrap="false" SizeF="167.600128,22.0800018" LocationFloat="501.8,215" Dpi="96" StyleName="generalStyle" Font="Tahoma, 13pt, style=Bold" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[dsSolutionTime.calculatedField1]" />
          </ExpressionBindings>
          <StylePriority Ref="20" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item2>
        <Item3 Ref="21" ControlType="XRChart" Name="chart1" BackColor="255,246,246,246" SizeF="860,210" LocationFloat="10,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="22" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="23" SeriesDataMember="dsSolutionTime.SERVICIO" ValidateDataMembers="true">
              <SeriesTemplate Ref="24" SeriesDataMember="dsSolutionTime.SERVICIO" ArgumentDataMember="dsSolutionTime.SERVICIO" ValueDataMembersSerializable="dsSolutionTime.TIEMPO" LabelsVisibility="True" />
            </DataContainer>
            <Diagram Ref="25" TypeNameSerializable="XYDiagram">
              <AxisX Ref="26" LabelVisibilityMode="AutoGeneratedAndCustom" Alignment="Zero" VisibleInPanesSerializable="-1">
                <Title Ref="27" Visibility="Default" />
                <Label Ref="28" Visible="false" />
              </AxisX>
              <AxisY Ref="29" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="30" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="31">
                  <ConnectorLineStyle Ref="32" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="33" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="34" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="35" ImageFormat="Metafile" />
            <XtraPaletteRepository>
              <Item1 Ref="36" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="37" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="38" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="39" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="40" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="41" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="42" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="43" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="44" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item3>
      </Controls>
    </Item4>
    <Item5 Ref="45" ControlType="ReportFooterBand" Name="ReportFooter" HeightF="10" Dpi="96" />
    <Item6 Ref="46" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="ReportWOList" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="47" ControlType="DetailBand" Name="Detail1" HeightF="30" Dpi="96" StyleName="generalStyle">
          <Controls>
            <Item1 Ref="48" ControlType="XRTable" Name="table1" SizeF="860,25" LocationFloat="10,0" Dpi="96">
              <Rows>
                <Item1 Ref="49" ControlType="XRTableRow" Name="tableRow4" Weight="32.2" TextAlignment="TopCenter" Dpi="96" ForeColor="255,153,153,153" Padding="5,5,5,5,96" BorderColor="LightGray" Borders="Bottom">
                  <Cells>
                    <Item1 Ref="50" ControlType="XRTableCell" Name="tableCell31" Weight="0.0727662429184328" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="51" EventName="BeforePrint" PropertyName="Text" Expression="[ticket_id]" />
                      </ExpressionBindings>
                      <StylePriority Ref="52" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item1>
                    <Item2 Ref="53" ControlType="XRTableCell" Name="tableCell32" Weight="0.099608442592022825" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <Scripts Ref="54" OnBeforePrint="tableCell32_BeforePrint" />
                      <ExpressionBindings>
                        <Item1 Ref="55" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([work_created_date],-1* ?UTCoffSet)" />
                      </ExpressionBindings>
                      <StylePriority Ref="56" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item2>
                    <Item3 Ref="57" ControlType="XRTableCell" Name="tableCell33" Weight="0.1022471232982278" TextFormatString="{0:0.00}" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="58" EventName="BeforePrint" PropertyName="Text" Expression="[onProcess]" />
                      </ExpressionBindings>
                      <StylePriority Ref="59" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item3>
                    <Item4 Ref="60" ControlType="XRTableCell" Name="tableCell34" Weight="0.10607684259711964" TextFormatString="{0:0.00}" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="61" EventName="BeforePrint" PropertyName="Text" Expression="[ejecucion]" />
                      </ExpressionBindings>
                      <StylePriority Ref="62" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item4>
                    <Item5 Ref="63" ControlType="XRTableCell" Name="tableCell35" Weight="0.0951745811341761" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="64" EventName="BeforePrint" PropertyName="Text" Expression="[work_subject]" />
                      </ExpressionBindings>
                      <StylePriority Ref="65" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item5>
                    <Item6 Ref="66" ControlType="XRTableCell" Name="tableCell37" Weight="0.11011377335186363" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="67" EventName="BeforePrint" PropertyName="Text" Expression="[serv_name]" />
                      </ExpressionBindings>
                      <StylePriority Ref="68" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item6>
                  </Cells>
                  <StylePriority Ref="69" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="70" ControlType="GroupHeaderBand" Name="GroupHeader2" RepeatEveryPage="true" HeightF="44" Dpi="96">
          <Controls>
            <Item1 Ref="71" ControlType="XRTable" Name="table2" SizeF="860,35" LocationFloat="10,0" Dpi="96">
              <Rows>
                <Item1 Ref="72" ControlType="XRTableRow" Name="tableRow1" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="73" ControlType="XRTableCell" Name="tableCell1" Weight="0.074809696721126737" Text="#Orden" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="74" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="75" ControlType="XRTableCell" Name="tableCell2" Weight="0.10240563383209367" Text="F.Creación" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="76" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="77" ControlType="XRTableCell" Name="tableCell3" Weight="0.10511842332503207" Text="Cronómetro atención(Horas)" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="78" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="79" ControlType="XRTableCell" Name="tableCell4" Weight="0.10905567860707041" Text="Cronómetro ejecución(Horas)" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="80" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="81" ControlType="XRTableCell" Name="tableCell5" Weight="0.097847358121330719" Text="Descripción" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="82" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="83" ControlType="XRTableCell" Name="tableCell6" Weight="0.11320583922934932" Text="Servicio" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="84" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item6>
                  </Cells>
                  <StylePriority Ref="85" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item2>
      </Bands>
    </Item6>
    <Item7 Ref="86" ControlType="PageHeaderBand" Name="PageHeader" HeightF="80" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="87" ControlType="XRLabel" Name="label12" CanGrow="false" Text="[dateNow]" WordWrap="false" SizeF="211,20" LocationFloat="129,55" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="88" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="89" UseForeColor="false" UseBackColor="false" />
        </Item1>
        <Item2 Ref="90" ControlType="XRLabel" Name="label4" Text="Paginas:" SizeF="60,20" LocationFloat="780,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="91" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item2>
        <Item3 Ref="92" ControlType="XRLabel" Name="label11" Text="Fecha final:" SizeF="83,20" LocationFloat="473.716919,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="93" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item3>
        <Item4 Ref="94" ControlType="XRLabel" Name="label7" Text="Fecha inicial:" SizeF="83,20" LocationFloat="473.716919,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="95" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item4>
        <Item5 Ref="96" ControlType="XRLabel" Name="label5" Text="Fecha de creación:" SizeF="119,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="97" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item5>
        <Item6 Ref="98" ControlType="XRLabel" Name="label1" Text="Promedio de tiempo de solución de ordenes por servicio" SizeF="515,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,154,144" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="99" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item6>
        <Item7 Ref="100" ControlType="XRLabel" Name="label2" Text="Compañía:" SizeF="68,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="101" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item7>
        <Item8 Ref="102" ControlType="XRLabel" Name="label3" Text="Nit:" SizeF="34.99997,20" LocationFloat="328.6,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="103" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item8>
        <Item9 Ref="104" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="228,20" LocationFloat="78,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="105" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_name]" />
          </ExpressionBindings>
          <StylePriority Ref="106" UseForeColor="false" UseBackColor="false" />
        </Item9>
        <Item10 Ref="107" ControlType="XRLabel" Name="label9" SizeF="100,20" LocationFloat="363.599976,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="108" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_code]" />
          </ExpressionBindings>
          <StylePriority Ref="109" UseForeColor="false" UseBackColor="false" />
        </Item10>
        <Item11 Ref="110" ControlType="XRLabel" Name="label13" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="167.6001,20.000061" LocationFloat="556.7169,34.99994" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="111" EventName="BeforePrint" PropertyName="Text" Expression="?initDate" />
          </ExpressionBindings>
          <StylePriority Ref="112" UseForeColor="false" UseBackColor="false" />
        </Item11>
        <Item12 Ref="113" ControlType="XRLabel" Name="label14" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="167.6001,20" LocationFloat="556.7169,55" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="114" EventName="BeforePrint" PropertyName="Text" Expression="?endDate" />
          </ExpressionBindings>
          <StylePriority Ref="115" UseForeColor="false" UseBackColor="false" />
        </Item12>
        <Item13 Ref="116" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="840,10" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="117" UseForeColor="false" UseBackColor="false" />
        </Item13>
      </Controls>
    </Item7>
  </Bands>
  <Scripts Ref="118" OnParametersRequestBeforeShow="Report2_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="119" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64="PFNxbERhdGFTb3VyY2UgTmFtZT0iQUZMU19EYXRhc2V0Ij48Q29ubmVjdGlvbiBOYW1lPSJsb2NhbGhvc3RfQUZMU19CRF9VTklGSUNBVEVfOV8xMF9WOV9ERVZfQ29ubmVjdGlvbiIgUHJvdmlkZXJLZXk9Ik1TU3FsU2VydmVyIj48UGFyYW1ldGVycz48UGFyYW1ldGVyIE5hbWU9InNlcnZlciIgVmFsdWU9ImRiOTk1LmVhc3R1cy5jbG91ZGFwcC5henVyZS5jb20iIC8+PFBhcmFtZXRlciBOYW1lPSJkYXRhYmFzZSIgVmFsdWU9IkFGTFNfQkRfVU5JRklDQVRFXzlfMTBfVjlfREVWIiAvPjxQYXJhbWV0ZXIgTmFtZT0idXNlSW50ZWdyYXRlZFNlY3VyaXR5IiBWYWx1ZT0iRmFsc2UiIC8+PFBhcmFtZXRlciBOYW1lPSJyZWFkIG9ubHkiIFZhbHVlPSIxIiAvPjxQYXJhbWV0ZXIgTmFtZT0iZ2VuZXJhdGVDb25uZWN0aW9uSGVscGVyIiBWYWx1ZT0iZmFsc2UiIC8+PFBhcmFtZXRlciBOYW1lPSJ1c2VyaWQiIFZhbHVlPSIiIC8+PFBhcmFtZXRlciBOYW1lPSJwYXNzd29yZCIgVmFsdWU9IiIgLz48L1BhcmFtZXRlcnM+PC9Db25uZWN0aW9uPjxRdWVyeSBUeXBlPSJTdG9yZWRQcm9jUXVlcnkiIE5hbWU9ImRzQ29tcGFueSI+PFByb2NOYW1lPlBSQ19BRkxTX1JFUE9SVF9EQVRBU0VUX0NPTVBBTlk8L1Byb2NOYW1lPjwvUXVlcnk+PFF1ZXJ5IFR5cGU9IlN0b3JlZFByb2NRdWVyeSIgTmFtZT0iZHNQcm92aWRlciI+PFByb2NOYW1lPlBSQ19BRkxTX1JFUE9SVF9EQVRBU0VUX1BST1ZJREVSUzwvUHJvY05hbWU+PC9RdWVyeT48UXVlcnkgVHlwZT0iU3RvcmVkUHJvY1F1ZXJ5IiBOYW1lPSJkc1NvbHV0aW9uVGltZSI+PFBhcmFtZXRlciBOYW1lPSJAaW5pdERhdGUiIFR5cGU9IkRldkV4cHJlc3MuRGF0YUFjY2Vzcy5FeHByZXNzaW9uIj4oU3lzdGVtLkRhdGVUaW1lKShbUGFyYW1ldGVycy5pbml0RGF0ZV0pPC9QYXJhbWV0ZXI+PFBhcmFtZXRlciBOYW1lPSJAZW5kRGF0ZSIgVHlwZT0iRGV2RXhwcmVzcy5EYXRhQWNjZXNzLkV4cHJlc3Npb24iPihTeXN0ZW0uRGF0ZVRpbWUpKFtQYXJhbWV0ZXJzLmVuZERhdGVdKTwvUGFyYW1ldGVyPjxQYXJhbWV0ZXIgTmFtZT0iQHByb3ZpZGVyIiBUeXBlPSJEZXZFeHByZXNzLkRhdGFBY2Nlc3MuRXhwcmVzc2lvbiI+KFN5c3RlbS5TdHJpbmcpKFtQYXJhbWV0ZXJzLnByb3ZpZGVyXSk8L1BhcmFtZXRlcj48UHJvY05hbWU+UFJDX0FGTFNfMzQwMDVfUkVQT1JUX1NPTFVUSU9OX1RJTUU8L1Byb2NOYW1lPjwvUXVlcnk+PFF1ZXJ5IFR5cGU9IlN0b3JlZFByb2NRdWVyeSIgTmFtZT0iUmVwb3J0V09MaXN0Ij48UGFyYW1ldGVyIE5hbWU9IkBpbml0RGF0ZSIgVHlwZT0iRGV2RXhwcmVzcy5EYXRhQWNjZXNzLkV4cHJlc3Npb24iPihTeXN0ZW0uRGF0ZVRpbWUpKD9pbml0RGF0ZSk8L1BhcmFtZXRlcj48UGFyYW1ldGVyIE5hbWU9IkBlbmREYXRlIiBUeXBlPSJEZXZFeHByZXNzLkRhdGFBY2Nlc3MuRXhwcmVzc2lvbiI+KFN5c3RlbS5EYXRlVGltZSkoP2VuZERhdGUpPC9QYXJhbWV0ZXI+PFBhcmFtZXRlciBOYW1lPSJAcHJvdmlkZXIiIFR5cGU9IkRldkV4cHJlc3MuRGF0YUFjY2Vzcy5FeHByZXNzaW9uIj4oU3lzdGVtLkludDMyKSg/cHJvdmlkZXIpPC9QYXJhbWV0ZXI+PFBhcmFtZXRlciBOYW1lPSJAb2Zmc2V0IiBUeXBlPSJEZXZFeHByZXNzLkRhdGFBY2Nlc3MuRXhwcmVzc2lvbiI+KFN5c3RlbS5JbnQzMikoP1VUQ29mZlNldCk8L1BhcmFtZXRlcj48UHJvY05hbWU+UFJDX0FGTFNfMzQwMDVfUkVQT1JUX1dPUktPUkRFUl9MSVNUPC9Qcm9jTmFtZT48L1F1ZXJ5PjxSZXN1bHRTY2hlbWE+PERhdGFTZXQgTmFtZT0iQUZMU19EYXRhc2V0Ij48VmlldyBOYW1lPSJkc0NvbXBhbnkiPjxGaWVsZCBOYW1lPSJlc3RhX2NvZGUiIFR5cGU9IlVua25vd24iIC8+PEZpZWxkIE5hbWU9ImVzdGFfbmFtZSIgVHlwZT0iVW5rbm93biIgLz48L1ZpZXc+PFZpZXcgTmFtZT0iZHNQcm92aWRlciI+PEZpZWxkIE5hbWU9InByb3ZfaWQiIFR5cGU9IlVua25vd24iIC8+PEZpZWxkIE5hbWU9InByb3ZpZGVyX25hbWUiIFR5cGU9IlVua25vd24iIC8+PC9WaWV3PjxWaWV3IE5hbWU9ImRzU29sdXRpb25UaW1lIj48RmllbGQgTmFtZT0iU0VSVklDSU8iIFR5cGU9IlVua25vd24iIC8+PEZpZWxkIE5hbWU9IlRJRU1QTyIgVHlwZT0iVW5rbm93biIgLz48L1ZpZXc+PFZpZXcgTmFtZT0iUmVwb3J0V09MaXN0Ij48RmllbGQgTmFtZT0idGlja2V0X2lkIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9Indvcmtfc3ViamVjdCIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJ3b3JrX2NyZWF0ZWRfZGF0ZSIgVHlwZT0iRGF0ZVRpbWUiIC8+PEZpZWxkIE5hbWU9Im9uUHJvY2VzcyIgVHlwZT0iRGVjaW1hbCIgLz48RmllbGQgTmFtZT0iZWplY3VjaW9uIiBUeXBlPSJEZWNpbWFsIiAvPjxGaWVsZCBOYW1lPSJzZXJ2X25hbWUiIFR5cGU9IlN0cmluZyIgLz48L1ZpZXc+PC9EYXRhU2V0PjwvUmVzdWx0U2NoZW1hPjxDb25uZWN0aW9uT3B0aW9ucyBDbG9zZUNvbm5lY3Rpb249InRydWUiIC8+PC9TcWxEYXRhU291cmNlPg==" />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsProvider" ValueMember="prov_id" DisplayMember="provider_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="8" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C5896C AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34006, @folder_AflsReports, N'ResporteCostosOrden', 
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AFLS_ResporteCostosOrden" Margins="0, 0, 0, 2" PaperKind="Custom" PageWidth="877" PageHeight="1100" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" Description="Fecha inicial" ValueInfo="2014-01-01" Name="initDate" Type="#Ref-2" />
    <Item2 Ref="4" Description="Fecha final" ValueInfo="2018-01-01" Name="endDate" Type="#Ref-2" />
    <Item3 Ref="7" Description="Servicio" ValueSourceSettings="#Ref-5" ValueInfo="-1" Name="service" Type="#Ref-6" />
    <Item4 Ref="9" Description="Proveedor" ValueSourceSettings="#Ref-8" ValueInfo="-1" Name="provider" Type="#Ref-6" />
    <Item5 Ref="11" Description="Compañia" ValueSourceSettings="#Ref-10" ValueInfo="-1" Name="companie" Type="#Ref-6" />
    <Item6 Ref="13" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-12" />
  </Parameters>
  <Bands>
    <Item1 Ref="14" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" />
    <Item2 Ref="15" ControlType="DetailBand" Name="Detail" HeightF="0" StyleName="generalStyle" />
    <Item3 Ref="16" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="2" />
    <Item4 Ref="17" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="230" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="18" ControlType="XRChart" Name="chart1" BackColor="255,242,242,242" DataSource="#Ref-0" SizeF="430,230" LocationFloat="10.0000067,0" BorderColor="Black" Borders="None">
          <Chart Ref="19" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,242,242,242">
            <DataContainer Ref="20" DataMember="PRC_AFLS_34006_REPORT_DATASET_WORKORDER_TOTAL_COST" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="21" Name="Costo base total de servicios" ArgumentDataMember="Costo base total de servicio" ValueDataMembersSerializable="Costo base total de servicio" ArgumentScaleType="Qualitative" LabelsVisibility="True" />
                <Item2 Ref="22" Name="Costo total de inventario" ArgumentDataMember="Costo total de inventario" ValueDataMembersSerializable="Costo total de inventario" ArgumentScaleType="Qualitative" LabelsVisibility="True" />
                <Item3 Ref="23" Name="Costo total de transporte" ArgumentDataMember="Costo total de transporte" ValueDataMembersSerializable="Costo total de transporte" ArgumentScaleType="Qualitative" LabelsVisibility="True" />
                <Item4 Ref="24" Name="Costo total de especialistas" ArgumentDataMember="Costo total de especialistas" ValueDataMembersSerializable="Costo total de especialistas" ArgumentScaleType="Qualitative" LabelsVisibility="True" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="25" DependentAxesYRange="False" TypeNameSerializable="XYDiagram">
              <AxisX Ref="26" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="27" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="28" BackColor="255,242,242,242" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="29">
                  <ConnectorLineStyle Ref="30" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="31" BackColor="255,242,242,242" Name="Default Legend">
              <Border Ref="32" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="33" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="34" Text="Costo Ejecutado" Font="Tahoma, 9.75pt, style=Bold, charSet=0" TextColor="255,145,145,145" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="35" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="36" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="37" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="38" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="39" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="40" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="41" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="42" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="43" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item1>
        <Item2 Ref="44" ControlType="XRChart" Name="chart3" BackColor="255,242,242,242" DataSource="#Ref-0" SizeF="430,230" LocationFloat="440,0" BorderColor="Black" Borders="None">
          <Chart Ref="45" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,242,242,242">
            <DataContainer Ref="46" DataMember="PRC_AFLS_34006_REPORT_DATASET_WORKORDER_PROM_COST" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="47" Name="Costo base promedio de servicios" ArgumentDataMember="Costo base promedio de servicio" ValueDataMembersSerializable="Costo base promedio de servicio" ArgumentScaleType="Qualitative" LabelsVisibility="True" />
                <Item2 Ref="48" Name="Costo promedio de inventario" ArgumentDataMember="Costo promedio de inventario" ValueDataMembersSerializable="Costo promedio de inventario" ArgumentScaleType="Qualitative" LabelsVisibility="True" />
                <Item3 Ref="49" Name="Costo promedio de transporte" ArgumentDataMember="Costo promedio de transporte" ValueDataMembersSerializable="Costo promedio de transporte" ArgumentScaleType="Qualitative" LabelsVisibility="True" />
                <Item4 Ref="50" Name="Costo promedio de especialistas" ArgumentDataMember="Costo promedio de especialistas" ValueDataMembersSerializable="Costo promedio de especialistas" ArgumentScaleType="Qualitative" LabelsVisibility="True" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="51" TypeNameSerializable="XYDiagram">
              <AxisX Ref="52" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="53" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="54" BackColor="255,242,242,242" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="55">
                  <ConnectorLineStyle Ref="56" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="57" BackColor="255,242,242,242" Name="Default Legend">
              <Border Ref="58" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="59" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="60" Text="Costo promedio ejecutado" Font="Tahoma, 9.75pt, style=Bold, charSet=0" TextColor="255,145,145,145" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="61" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="62" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="63" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="64" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="65" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="66" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="67" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="68" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="69" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item2>
      </Controls>
    </Item4>
    <Item5 Ref="70" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="PRC_AFLS_34006_REPORT_DATASET_WORKORDER_LIST" DataSource="#Ref-0">
      <Bands>
        <Item1 Ref="71" ControlType="DetailBand" Name="Detail1" HeightF="30" StyleName="generalStyle">
          <Controls>
            <Item1 Ref="72" ControlType="XRTable" Name="table1" SizeF="860,25" LocationFloat="10.0000067,0">
              <Rows>
                <Item1 Ref="73" ControlType="XRTableRow" Name="tableRow4" Weight="32.2" TextAlignment="TopCenter" ForeColor="255,153,153,153" Padding="5,5,5,5,100" BorderColor="LightGray" Borders="Bottom">
                  <Cells>
                    <Item1 Ref="74" ControlType="XRTableCell" Name="tableCell31" Weight="0.12396913041864824" TextAlignment="MiddleCenter" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <Scripts Ref="75" OnBeforePrint="tableCell31_BeforePrint" />
                      <ExpressionBindings>
                        <Item1 Ref="76" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([work_attention_end_date],-1* ?UTCoffSet)" />
                      </ExpressionBindings>
                      <StylePriority Ref="77" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="78" ControlType="XRTableCell" Name="tableCell32" Weight="0.0717255858240132" TextAlignment="MiddleCenter" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="79" EventName="BeforePrint" PropertyName="Text" Expression="[work_id]" />
                      </ExpressionBindings>
                      <StylePriority Ref="80" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="81" ControlType="XRTableCell" Name="tableCell33" Weight="0.097847358121330719" TextFormatString="{0:$0.00}" TextAlignment="MiddleCenter" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="82" EventName="BeforePrint" PropertyName="Text" Expression="[serv_base_cost]" />
                      </ExpressionBindings>
                      <StylePriority Ref="83" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="84" ControlType="XRTableCell" Name="tableCell34" Weight="0.097847358121330719" TextFormatString="{0:$0.00}" TextAlignment="MiddleCenter" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="85" EventName="BeforePrint" PropertyName="Text" Expression="[cons_products]" />
                      </ExpressionBindings>
                      <StylePriority Ref="86" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="87" ControlType="XRTableCell" Name="tableCell35" Weight="0.097847358121330719" TextFormatString="{0:$0.00}" TextAlignment="MiddleCenter" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="88" EventName="BeforePrint" PropertyName="Text" Expression="[cons_transport]" />
                      </ExpressionBindings>
                      <StylePriority Ref="89" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="90" ControlType="XRTableCell" Name="tableCell36" Weight="0.11320583922934932" TextFormatString="{0:$0.00}" TextAlignment="MiddleCenter" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="91" EventName="BeforePrint" PropertyName="Text" Expression="[cons_specialist]" />
                      </ExpressionBindings>
                      <StylePriority Ref="92" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item6>
                    <Item7 Ref="93" ControlType="XRTableCell" Name="tableCell37" Weight="0.096750215285189192" TextFormatString="{0:$0.00}" TextAlignment="MiddleCenter" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="94" EventName="BeforePrint" PropertyName="Text" Expression="[total]" />
                      </ExpressionBindings>
                      <StylePriority Ref="95" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item7>
                    <Item8 Ref="96" ControlType="XRTableCell" Name="tableCell38" Weight="0.11649698651592895" TextAlignment="MiddleCenter" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="97" EventName="BeforePrint" PropertyName="Text" Expression="[comp_name]" />
                      </ExpressionBindings>
                      <StylePriority Ref="98" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item8>
                    <Item9 Ref="99" ControlType="XRTableCell" Name="tableCell39" Weight="0.13295239351752297" TextAlignment="MiddleCenter" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="100" EventName="BeforePrint" PropertyName="Text" Expression="[user_name]" />
                      </ExpressionBindings>
                      <StylePriority Ref="101" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item9>
                  </Cells>
                  <StylePriority Ref="102" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="103" ControlType="GroupHeaderBand" Name="GroupHeader2" RepeatEveryPage="true" HeightF="43.1250267">
          <Controls>
            <Item1 Ref="104" ControlType="XRTable" Name="table2" SizeF="860,35" LocationFloat="10.0000067,0">
              <Rows>
                <Item1 Ref="105" ControlType="XRTableRow" Name="tableRow1" Weight="18.4" TextAlignment="TopCenter" Padding="5,5,5,5,100">
                  <Cells>
                    <Item1 Ref="106" ControlType="XRTableCell" Name="tableCell1" Weight="0.12396913041864824" Text="Fecha Atención" TextAlignment="BottomCenter" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="107" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="108" ControlType="XRTableCell" Name="tableCell2" Weight="0.0717255858240132" Multiline="true" Text="Número de &#xD;&#xA;orden" TextAlignment="BottomCenter" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="109" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="110" ControlType="XRTableCell" Name="tableCell3" Weight="0.097847358121330719" Text="Costo base Servicio" TextAlignment="BottomCenter" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="111" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="112" ControlType="XRTableCell" Name="tableCell4" Weight="0.097847358121330719" Text="Costo inventario" TextAlignment="BottomCenter" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="113" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="114" ControlType="XRTableCell" Name="tableCell5" Weight="0.097847358121330719" Text="Costo transporte" TextAlignment="BottomCenter" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="115" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="116" ControlType="XRTableCell" Name="tableCell6" Weight="0.11320583922934932" Text="Costo Especialista" TextAlignment="BottomCenter" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="117" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item6>
                    <Item7 Ref="118" ControlType="XRTableCell" Name="tableCell7" Weight="0.096750215285189192" Text="Costo Total" TextAlignment="BottomCenter" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="119" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item7>
                    <Item8 Ref="120" ControlType="XRTableCell" Name="tableCell8" Weight="0.11649698651592895" Text="Compañia" TextAlignment="BottomCenter" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="121" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item8>
                    <Item9 Ref="122" ControlType="XRTableCell" Name="tableCell9" Weight="0.13295239351752297" Text="Especialista" TextAlignment="BottomCenter" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="123" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item9>
                  </Cells>
                  <StylePriority Ref="124" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item2>
      </Bands>
    </Item5>
    <Item6 Ref="125" ControlType="PageHeaderBand" Name="PageHeader" HeightF="80" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="126" ControlType="XRLabel" Name="label6" Text="Paginas:" SizeF="60,20" LocationFloat="779.999939,10" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,100">
          <StylePriority Ref="127" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item1>
        <Item2 Ref="128" ControlType="XRLabel" Name="label1" Text="Costos ejecutado en ordenes" SizeF="320,20" LocationFloat="10,10" Font="Tahoma, 13pt" ForeColor="255,0,169,157" BackColor="Transparent" Padding="2,2,0,0,100">
          <StylePriority Ref="129" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item2>
        <Item3 Ref="130" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="237.5,20" LocationFloat="81.87335,35.0000076" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="131" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_name]" />
          </ExpressionBindings>
          <StylePriority Ref="132" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item3>
        <Item4 Ref="133" ControlType="XRLabel" Name="label2" Text="Compañía:" SizeF="71.8733444,20" LocationFloat="10.0000067,35.0000076" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,100">
          <StylePriority Ref="134" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item4>
        <Item5 Ref="135" ControlType="XRLabel" Name="label9" SizeF="104.166656,20" LocationFloat="401.275879,35.0000076" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="136" EventName="BeforePrint" PropertyName="Text" Expression="[dsCompany.esta_code]" />
          </ExpressionBindings>
          <StylePriority Ref="137" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item5>
        <Item6 Ref="138" ControlType="XRLabel" Name="label3" Text="Nit:" SizeF="36.45833,20" LocationFloat="364.817535,35.0000076" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,100">
          <StylePriority Ref="139" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item6>
        <Item7 Ref="140" ControlType="XRLabel" Name="label11" Text="Fecha final:" SizeF="75.1824951,19.99998" LocationFloat="364.817535,54.99999" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,100">
          <StylePriority Ref="141" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item7>
        <Item8 Ref="142" ControlType="XRLabel" Name="label7" Text="Fecha inicial:" SizeF="84.37667,19.9999962" LocationFloat="10.0000067,54.99999" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,100">
          <StylePriority Ref="143" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item8>
        <Item9 Ref="144" ControlType="XRLabel" Name="label5" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="203.859467,19.99998" LocationFloat="440.000031,54.99999" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="145" EventName="BeforePrint" PropertyName="Text" Expression="?endDate" />
          </ExpressionBindings>
          <StylePriority Ref="146" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item9>
        <Item10 Ref="147" ControlType="XRLabel" Name="label4" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="224.996735,19.99998" LocationFloat="94.3766251,54.99999" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="148" EventName="BeforePrint" PropertyName="Text" Expression="?initDate" />
          </ExpressionBindings>
          <StylePriority Ref="149" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item10>
        <Item11 Ref="150" ControlType="XRPageInfo" Name="pageInfo1" SizeF="30,20" LocationFloat="839.999939,10" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,100">
          <StylePriority Ref="151" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item11>
      </Controls>
    </Item6>
  </Bands>
  <Scripts Ref="152" OnParametersRequestBeforeShow="AFLS_ResporteCostosOrden_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="153" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,100" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="AFLS_SERVICES" ValueMember="serv_id" DisplayMember="serv_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsProvider" ValueMember="prov_id" DisplayMember="provider_name" />
    <Item5 Ref="10" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="AFLS_COMPANIES" ValueMember="comp_id" DisplayMember="comp_name" />
    <Item6 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="12" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A4350113D97A AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34007, @folder_AflsReportsInventory, N'Inventario General', 
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report7" DisplayName="AFLS_Inventario_General" ScriptsSource="&#xD;&#xA;" SnapGridSize="10" ReportUnit="Pixels" RollPaper="true" Margins="0, 1, 0, 2" PaperKind="Custom" PageWidth="874" PageHeight="1217" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96">
  <Parameters>
    <Item1 Ref="3" Description="Fecha inicial" ValueInfo="2014-01-01" Name="initDate" Type="#Ref-2" />
    <Item2 Ref="4" Description="Fecha final" ValueInfo="2018-01-01" Name="endDate" Type="#Ref-2" />
    <Item3 Ref="7" Description="Ubicación" ValueSourceSettings="#Ref-5" Name="location" />
    <Item4 Ref="9" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-8" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="10" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="11" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="12" ControlType="DetailBand" Name="Detail" HeightF="350" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="13" ControlType="XRChart" Name="chart2" BackColor="WhiteSmoke" SizeF="430,350" LocationFloat="440,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="14" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="WhiteSmoke">
            <DataContainer Ref="15" SeriesDataMember="PRC_AFLS_34007_REPORT_TOP_PRODUCT_FINAL_INVENTORY.product_name" ValidateDataMembers="true">
              <SeriesTemplate Ref="16" SeriesDataMember="PRC_AFLS_34007_REPORT_TOP_PRODUCT_FINAL_INVENTORY.product_name" ArgumentDataMember="PRC_AFLS_34007_REPORT_TOP_PRODUCT_FINAL_INVENTORY.product_name" ValueDataMembersSerializable="PRC_AFLS_34007_REPORT_TOP_PRODUCT_FINAL_INVENTORY.final_inventory" />
            </DataContainer>
            <Diagram Ref="17" TypeNameSerializable="XYDiagram">
              <AxisX Ref="18" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="19" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="20" BackColor="WhiteSmoke" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="21">
                  <ConnectorLineStyle Ref="22" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="23" AlignmentHorizontal="Left" AlignmentVertical="BottomOutside" MarkerSize="15,15" BackColor="WhiteSmoke" Name="Default Legend">
              <Border Ref="24" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="25" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="26" Text="Top 5 productos con menos invenario final" Font="Tahoma, 9.75pt, charSet=0" TextColor="255,127,127,127" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="27" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="28" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="29" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="30" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="31" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="32" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="33" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="34" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="35" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
          <StylePriority Ref="36" UseBackColor="false" />
        </Item1>
        <Item2 Ref="37" ControlType="XRChart" Name="chart1" BackColor="WhiteSmoke" SizeF="430,350" LocationFloat="10,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="38" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="WhiteSmoke" ToolTipEnabled="True">
            <DataContainer Ref="39" SeriesDataMember="PRC_AFLS_34007_REPORT_TOP_PRODUCT_OUTPUTS.product_name" ValidateDataMembers="true">
              <SeriesTemplate Ref="40" SeriesDataMember="PRC_AFLS_34007_REPORT_TOP_PRODUCT_OUTPUTS.product_name" ArgumentDataMember="PRC_AFLS_34007_REPORT_TOP_PRODUCT_OUTPUTS.product_name" ValueDataMembersSerializable="PRC_AFLS_34007_REPORT_TOP_PRODUCT_OUTPUTS.outputs_quantity" />
            </DataContainer>
            <Diagram Ref="41" TypeNameSerializable="XYDiagram">
              <AxisX Ref="42" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="43" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="44" BackColor="WhiteSmoke" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="45">
                  <ConnectorLineStyle Ref="46" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="47" AlignmentHorizontal="Left" AlignmentVertical="BottomOutside" BackColor="WhiteSmoke" Name="Default Legend">
              <Border Ref="48" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="49" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="50" Text="Top 5 Productos con más salida" Font="Tahoma, 9.75pt, charSet=0" TextColor="255,127,127,127" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="51" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="52" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="53" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="54" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="55" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="56" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="57" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="58" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="59" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
          <StylePriority Ref="60" UseBackColor="false" />
        </Item2>
      </Controls>
    </Item2>
    <Item3 Ref="61" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="2" Dpi="96" />
    <Item4 Ref="62" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="PRC_AFLS_34007_REPORT_GENERAL_INVENTORY" DataSource="#Ref-0" TextAlignment="MiddleCenter" Dpi="96">
      <Bands>
        <Item1 Ref="63" ControlType="DetailBand" Name="Detail1" HeightF="30" Dpi="96" StyleName="generalStyle">
          <Controls>
            <Item1 Ref="64" ControlType="XRTable" Name="table1" SizeF="868,25" LocationFloat="0,0" Dpi="96">
              <Rows>
                <Item1 Ref="65" ControlType="XRTableRow" Name="tableRow4" Weight="32.2" TextAlignment="TopCenter" Dpi="96" ForeColor="255,153,153,153" Padding="5,5,5,5,96" BorderColor="LightGray" Borders="Bottom">
                  <Cells>
                    <Item1 Ref="66" ControlType="XRTableCell" Name="tableCell31" Weight="0.10003983164280809" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="67" EventName="BeforePrint" PropertyName="Text" Expression="[product_name]" />
                      </ExpressionBindings>
                      <StylePriority Ref="68" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" />
                    </Item1>
                    <Item2 Ref="69" ControlType="XRTableCell" Name="tableCell32" Weight="0.084086463065152453" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="70" EventName="BeforePrint" PropertyName="Text" Expression="[product_sku]" />
                      </ExpressionBindings>
                      <StylePriority Ref="71" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item2>
                    <Item3 Ref="72" ControlType="XRTableCell" Name="tableCell33" Weight="0.136658135524381" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="73" EventName="BeforePrint" PropertyName="Text" Expression="[product_type]" />
                      </ExpressionBindings>
                      <StylePriority Ref="74" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item3>
                    <Item4 Ref="75" ControlType="XRTableCell" Name="tableCell34" Weight="0.14729869917520802" TextFormatString="{0:$0.00}" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="76" EventName="BeforePrint" PropertyName="Text" Expression="[product_avg_to_purchase]" />
                      </ExpressionBindings>
                      <StylePriority Ref="77" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item4>
                    <Item5 Ref="78" ControlType="XRTableCell" Name="tableCell35" Weight="0.1231606308205235" TextFormatString="{0:$0.00}" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="79" EventName="BeforePrint" PropertyName="Text" Expression="[product_avg_to_sale]" />
                      </ExpressionBindings>
                      <StylePriority Ref="80" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item5>
                    <Item6 Ref="81" ControlType="XRTableCell" Name="tableCell11" Weight="0.10667511377359457" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="82" EventName="BeforePrint" PropertyName="Text" Expression="[initial_inventory]" />
                      </ExpressionBindings>
                      <StylePriority Ref="83" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item6>
                    <Item7 Ref="84" ControlType="XRTableCell" Name="tableCell37" Weight="0.0993365069618309" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="85" EventName="BeforePrint" PropertyName="Text" Expression="[inputs_quantity]" />
                      </ExpressionBindings>
                      <StylePriority Ref="86" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item7>
                    <Item8 Ref="87" ControlType="XRTableCell" Name="tableCell15" Weight="0.10031287349909926" Multiline="true" Text="[returns_quantity]" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <StylePriority Ref="88" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item8>
                    <Item9 Ref="89" ControlType="XRTableCell" Name="tableCell38" Weight="0.089828070515446529" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="90" EventName="BeforePrint" PropertyName="Text" Expression="[outputs_without_order_quantity]" />
                      </ExpressionBindings>
                      <StylePriority Ref="91" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item9>
                    <Item10 Ref="92" ControlType="XRTableCell" Name="tableCell39" Weight="0.0894346625372879" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="93" EventName="BeforePrint" PropertyName="Text" Expression="[outputs_by_orders_quantity]" />
                      </ExpressionBindings>
                      <StylePriority Ref="94" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item10>
                    <Item11 Ref="95" ControlType="XRTableCell" Name="tableCell40" Weight="0.10738509571363444" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="96" EventName="BeforePrint" PropertyName="Text" Expression="[outputs_quantity]" />
                      </ExpressionBindings>
                      <StylePriority Ref="97" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item11>
                    <Item12 Ref="98" ControlType="XRTableCell" Name="tableCell12" Weight="0.10431520415532788" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="99" EventName="BeforePrint" PropertyName="Text" Expression="[final_inventory]" />
                      </ExpressionBindings>
                      <StylePriority Ref="100" UseFont="false" UseForeColor="false" UseBorderColor="false" />
                    </Item12>
                  </Cells>
                  <StylePriority Ref="101" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="102" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="40" Dpi="96" StyleName="generalStyle">
          <Controls>
            <Item1 Ref="103" ControlType="XRTable" Name="table2" TextAlignment="BottomCenter" SizeF="868,35" LocationFloat="0,0" Dpi="96" Font="Tahoma, 6.75pt, charSet=0" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
              <Rows>
                <Item1 Ref="104" ControlType="XRTableRow" Name="tableRow1" Weight="1" Dpi="96">
                  <Cells>
                    <Item1 Ref="105" ControlType="XRTableCell" Name="tableCell1" Weight="0.81980678711354549" Text="Producto" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="106" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="107" ControlType="XRTableCell" Name="tableCell2" Weight="0.68907205949895189" Text="SKU" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="108" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="109" ControlType="XRTableCell" Name="tableCell3" Weight="1.1198865570418688" Text="Tipo de producto" TextAlignment="BottomCenter" Dpi="96" StyleName="generalStyle" Font="Tahoma, 6.75pt, charSet=0" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="110" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="111" ControlType="XRTableCell" Name="tableCell4" Weight="1.2070838976468872" Text="Precio de compra" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="112" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="113" ControlType="XRTableCell" Name="tableCell5" Weight="1.0092771554522113" Text="Precio de venta" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="114" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="115" ControlType="XRTableCell" Name="tableCell6" Weight="0.87418157524658979" Text="Inventario inicial" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="116" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item6>
                    <Item7 Ref="117" ControlType="XRTableCell" Name="tableCell7" Weight="0.81404316706896118" Text="Entrada de producto" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="118" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item7>
                    <Item8 Ref="119" ControlType="XRTableCell" Name="tableCell14" Weight="0.82204429910572163" Multiline="true" Text="Devolucion de Producto" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="120" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item8>
                    <Item9 Ref="121" ControlType="XRTableCell" Name="tableCell8" Weight="0.736123463110852" Text="Retiro de producto" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="122" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item9>
                    <Item10 Ref="123" ControlType="XRTableCell" Name="tableCell13" Weight="0.73289955735441292" Text="Salida en Ordenes" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="124" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item10>
                    <Item11 Ref="125" ControlType="XRTableCell" Name="tableCell9" Weight="0.8799997974835333" Text="Salida total" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="126" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item11>
                    <Item12 Ref="127" ControlType="XRTableCell" Name="tableCell10" Weight="0.85484254578860885" Text="Inventario final" TextAlignment="BottomCenter" Dpi="96" ForeColor="255,0,154,144" Padding="5,5,5,5,96" BorderColor="255,0,154,144">
                      <StylePriority Ref="128" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item12>
                  </Cells>
                </Item1>
              </Rows>
              <StylePriority Ref="129" UseFont="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
          <StylePriority Ref="130" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="131" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="35" Dpi="96" StyleName="generalStyle">
          <GroupFields>
            <Item1 Ref="132" FieldName="location_name" />
          </GroupFields>
          <Controls>
            <Item1 Ref="133" ControlType="XRLabel" Name="label6" TextAlignment="BottomLeft" SizeF="860,35" LocationFloat="10,0" Dpi="96" StyleName="generalStyle" Font="Tahoma, 8pt, charSet=0" ForeColor="255,0,169,157" Padding="1,1,1,5,96" BorderColor="255,0,169,157" Borders="Bottom" BorderDashStyle="Dot">
              <ExpressionBindings>
                <Item1 Ref="134" EventName="BeforePrint" PropertyName="Text" Expression="[location_name]" />
              </ExpressionBindings>
              <StylePriority Ref="135" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseBorderDashStyle="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item3>
      </Bands>
    </Item4>
    <Item5 Ref="136" ControlType="PageHeaderBand" Name="PageHeader" HeightF="80" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="137" ControlType="XRLabel" Name="label12" CanGrow="false" Text="[dateNow]" WordWrap="false" SizeF="211,20" LocationFloat="146,55" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="138" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="139" UseForeColor="false" UseBackColor="false" />
        </Item1>
        <Item2 Ref="140" ControlType="XRPageInfo" Name="pageInfo3" SizeF="27.6142578,20" LocationFloat="840.385742,10" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="141" UseForeColor="false" UseBackColor="false" />
        </Item2>
        <Item3 Ref="142" ControlType="XRLabel" Name="label18" Text="Paginas:" SizeF="60,20" LocationFloat="780.385742,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="143" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item3>
        <Item4 Ref="144" ControlType="XRLabel" Name="label14" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="158.521362,20" LocationFloat="591.633545,55" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="145" EventName="BeforePrint" PropertyName="Text" Expression="?endDate" />
          </ExpressionBindings>
          <StylePriority Ref="146" UseForeColor="false" UseBackColor="false" />
        </Item4>
        <Item5 Ref="147" ControlType="XRLabel" Name="label11" Text="Fecha final:" SizeF="93.00006,20" LocationFloat="498.633484,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="148" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item5>
        <Item6 Ref="149" ControlType="XRLabel" Name="label13" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="158.521362,20" LocationFloat="591.633545,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="150" EventName="BeforePrint" PropertyName="Text" Expression="?initDate" />
          </ExpressionBindings>
          <StylePriority Ref="151" UseForeColor="false" UseBackColor="false" />
        </Item6>
        <Item7 Ref="152" ControlType="XRLabel" Name="label7" Text="Fecha inicial:" SizeF="93.00006,20" LocationFloat="498.633484,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="153" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item7>
        <Item8 Ref="154" ControlType="XRLabel" Name="label5" Text="Fecha de creación:" SizeF="136,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="155" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item8>
        <Item9 Ref="156" ControlType="XRLabel" Name="label9" SizeF="102.0072,20" LocationFloat="378.438477,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="157" EventName="BeforePrint" PropertyName="Text" Expression="[dbCompany.esta_code]" />
          </ExpressionBindings>
          <StylePriority Ref="158" UseForeColor="false" UseBackColor="false" />
        </Item9>
        <Item10 Ref="159" ControlType="XRLabel" Name="label3" Text="Nit:" SizeF="30,20" LocationFloat="348.438477,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="160" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item10>
        <Item11 Ref="161" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="240,20" LocationFloat="90,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="162" EventName="BeforePrint" PropertyName="Text" Expression="[dbCompany.esta_name]" />
          </ExpressionBindings>
          <StylePriority Ref="163" UseForeColor="false" UseBackColor="false" />
        </Item11>
        <Item12 Ref="164" ControlType="XRLabel" Name="label2" Text="Compañía:" SizeF="80,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="165" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item12>
        <Item13 Ref="166" ControlType="XRLabel" Name="label1" Text="Reporte completo de inventario" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,154,144" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="167" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item13>
      </Controls>
    </Item5>
  </Bands>
  <Scripts Ref="168" OnParametersRequestBeforeShow="Report7_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="169" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsLocations" ValueMember="Id" DisplayMember="Name" SortOrder="Ascending" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="8" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2B2AC AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34008, @folder_AflsReportsInventory, N'Resumen de inventario por sede', 
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AFLS_Resumen_de_inventario_por_sede" SnapGridSize="10" ReportUnit="Pixels" Margins="0, 0, 0, 2" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96">
  <Parameters>
    <Item1 Ref="4" Description="Ubicación" ValueSourceSettings="#Ref-2" Name="location" />
    <Item2 Ref="6" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-5" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="7" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="8" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="9" ControlType="DetailBand" Name="Detail" HeightF="350" Dpi="96">
      <Controls>
        <Item1 Ref="10" ControlType="XRChart" Name="chart3" BackColor="255,246,246,246" SizeF="430,350" LocationFloat="10,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="11" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="12" SeriesDataMember="Top5LowestStock.product_name" ValidateDataMembers="true">
              <SeriesTemplate Ref="13" SeriesDataMember="Top5LowestStock.product_name" ArgumentDataMember="Top5LowestStock.product_name" ValueDataMembersSerializable="Top5LowestStock.inventory_stock" />
            </DataContainer>
            <Diagram Ref="14" TypeNameSerializable="XYDiagram">
              <AxisX Ref="15" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="16" VisibleInPanesSerializable="-1">
                <Title Ref="17" Visibility="True" Text="Cantidad" Font="Tahoma, 9.75pt, charSet=0" TextColor="255,145,145,145" />
              </AxisY>
              <DefaultPane Ref="18" BorderVisible="false" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="19">
                  <ConnectorLineStyle Ref="20" />
                </StackedBarTotalLabel>
              </DefaultPane>
              <PaneLayout Ref="21" Direction="Horizontal" />
            </Diagram>
            <Legend Ref="22" AlignmentHorizontal="Left" AlignmentVertical="BottomOutside" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="23" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="24" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="25" Text="Top 5 productos con menos inventario" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
            </Titles>
          </Chart>
        </Item1>
        <Item2 Ref="26" ControlType="XRChart" Name="chart1" BackColor="255,246,246,246" SizeF="430,350" LocationFloat="440,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="27" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="28" SeriesDataMember="MostUsedLastMonth.product_name" ValidateDataMembers="true">
              <SeriesTemplate Ref="29" SeriesDataMember="MostUsedLastMonth.product_name" ArgumentDataMember="MostUsedLastMonth.product_name" ValueDataMembersSerializable="MostUsedLastMonth.outputs_stock" />
            </DataContainer>
            <Diagram Ref="30" TypeNameSerializable="XYDiagram">
              <AxisX Ref="31" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="32" VisibleInPanesSerializable="-1">
                <Title Ref="33" Visibility="True" Text="Cantidad" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
              </AxisY>
              <DefaultPane Ref="34" BorderVisible="false" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="35">
                  <ConnectorLineStyle Ref="36" />
                </StackedBarTotalLabel>
              </DefaultPane>
              <PaneLayout Ref="37" Direction="Horizontal" />
            </Diagram>
            <Legend Ref="38" AlignmentHorizontal="Left" AlignmentVertical="BottomOutside" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="39" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="40" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="41" Text="Top 5 productos con más uso en el último mes" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
            </Titles>
          </Chart>
        </Item2>
      </Controls>
    </Item2>
    <Item3 Ref="42" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="2" Dpi="96" />
    <Item4 Ref="43" ControlType="PageHeaderBand" Name="PageHeader" HeightF="80" Dpi="96">
      <Controls>
        <Item1 Ref="44" ControlType="XRLabel" Name="label13" CanGrow="false" Text="[dateNow]" TextAlignment="TopJustify" WordWrap="false" SizeF="211,20" LocationFloat="128.88,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="45" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="46" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="47" ControlType="XRPageInfo" Name="pageInfo1" SizeF="30,20" LocationFloat="840,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="49" ControlType="XRLabel" Name="label7" Text="Fecha de creación:" SizeF="118.880005,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="50" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="51" ControlType="XRLabel" Name="label3" Text="Nit:" SizeF="35,20" LocationFloat="405.5125,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="52" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="53" ControlType="XRLabel" Name="label9" SizeF="99.99997,20" LocationFloat="440.5125,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="54" EventName="BeforePrint" PropertyName="Text" Expression="[dbCompany.esta_code]" />
          </ExpressionBindings>
          <StylePriority Ref="55" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="56" ControlType="XRLabel" Name="label2" Text="Compañía:" SizeF="68,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="57" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="58" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="252,20" LocationFloat="78,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="59" EventName="BeforePrint" PropertyName="Text" Expression="[dbCompany.esta_name]" />
          </ExpressionBindings>
          <StylePriority Ref="60" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="61" ControlType="XRLabel" Name="label1" Text="Resumen de inventario por sede" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,169,157" Padding="2,2,0,0,96">
          <StylePriority Ref="62" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="63" ControlType="XRLabel" Name="label6" Text="Paginas:" SizeF="60,20" LocationFloat="780,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="64" UseFont="false" UseForeColor="false" />
        </Item9>
      </Controls>
    </Item4>
    <Item5 Ref="65" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="SummaryInventoryByLocation" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="66" ControlType="DetailBand" Name="Detail1" HeightF="30" Dpi="96" Font="Tahoma, 9.75pt, charSet=0">
          <Controls>
            <Item1 Ref="67" ControlType="XRLabel" Name="label11" TextAlignment="MiddleCenter" SizeF="213.931763,25" LocationFloat="656.068237,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96" BorderColor="Gainsboro" Borders="Bottom">
              <ExpressionBindings>
                <Item1 Ref="68" EventName="BeforePrint" PropertyName="Text" Expression="[inventory_stock]" />
              </ExpressionBindings>
              <StylePriority Ref="69" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="70" ControlType="XRLabel" Name="label10" TextAlignment="MiddleCenter" SizeF="215.356079,25" LocationFloat="440.712158,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96" BorderColor="Gainsboro" Borders="Bottom">
              <ExpressionBindings>
                <Item1 Ref="71" EventName="BeforePrint" PropertyName="Text" Expression="[product_type]" />
              </ExpressionBindings>
              <StylePriority Ref="72" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item2>
            <Item3 Ref="73" ControlType="XRLabel" Name="label5" TextAlignment="MiddleCenter" SizeF="266.060516,25" LocationFloat="174.651642,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96" BorderColor="Gainsboro" Borders="Bottom">
              <ExpressionBindings>
                <Item1 Ref="74" EventName="BeforePrint" PropertyName="Text" Expression="[product_sku]" />
              </ExpressionBindings>
              <StylePriority Ref="75" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item3>
            <Item4 Ref="76" ControlType="XRLabel" Name="label4" TextAlignment="MiddleCenter" SizeF="164.651642,25" LocationFloat="10,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96" BorderColor="Gainsboro" Borders="Bottom">
              <ExpressionBindings>
                <Item1 Ref="77" EventName="BeforePrint" PropertyName="Text" Expression="[product_name]" />
              </ExpressionBindings>
              <StylePriority Ref="78" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
            </Item4>
          </Controls>
          <StylePriority Ref="79" UseFont="false" />
        </Item1>
        <Item2 Ref="80" ControlType="ReportHeaderBand" Name="ReportHeader" HeightF="40" Dpi="96">
          <Controls>
            <Item1 Ref="81" ControlType="XRTable" Name="table2" SizeF="860,35" LocationFloat="10,0" Dpi="96" Font="Tahoma, 9.75pt, charSet=0">
              <Rows>
                <Item1 Ref="82" ControlType="XRTableRow" Name="tableRow1" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="83" ControlType="XRTableCell" Name="tableCell1" Weight="0.074809718271444475" Text="Producto" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="84" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="85" ControlType="XRTableCell" Name="tableCell2" Weight="0.12088499797121698" Text="SKU" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="86" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="87" ControlType="XRTableCell" Name="tableCell3" Weight="0.097847358121330719" Text="Tipo de Producto" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="88" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="89" ControlType="XRTableCell" Name="tableCell10" Weight="0.097200212437457051" Text="Cantidad" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="90" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item4>
                  </Cells>
                  <StylePriority Ref="91" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
              <StylePriority Ref="92" UseFont="false" />
            </Item1>
          </Controls>
        </Item2>
        <Item3 Ref="93" ControlType="GroupHeaderBand" Name="GroupHeader1" HeightF="35" Dpi="96">
          <GroupFields>
            <Item1 Ref="94" FieldName="location_name" />
          </GroupFields>
          <Controls>
            <Item1 Ref="95" ControlType="XRLabel" Name="label12" TextAlignment="BottomLeft" SizeF="860.4,35" LocationFloat="9.600052,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,34,154,144" Padding="1,1,1,5,96" BorderColor="255,34,154,144" Borders="Bottom" BorderDashStyle="Dot">
              <ExpressionBindings>
                <Item1 Ref="96" EventName="BeforePrint" PropertyName="Text" Expression="[location_name]" />
              </ExpressionBindings>
              <StylePriority Ref="97" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseBorderDashStyle="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item3>
      </Bands>
    </Item5>
  </Bands>
  <StyleSheet>
    <Item1 Ref="98" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64="PFNxbERhdGFTb3VyY2UgTmFtZT0iQUZMU19EYXRhc2V0Ij48Q29ubmVjdGlvbiBOYW1lPSJsb2NhbGhvc3RfQUZMU19CRF9VTklGSUNBVEVfOV8xMF9WOV9UT0RPU19Db25uZWN0aW9uIiBQcm92aWRlcktleT0iTVNTcWxTZXJ2ZXIiPjxQYXJhbWV0ZXJzPjxQYXJhbWV0ZXIgTmFtZT0ic2VydmVyIiBWYWx1ZT0iZGI5OTUuZWFzdHVzLmNsb3VkYXBwLmF6dXJlLmNvbSIgLz48UGFyYW1ldGVyIE5hbWU9ImRhdGFiYXNlIiBWYWx1ZT0iQUZMU19CRF9VTklGSUNBVEVfOV8xMF9WOV9UT0RPUyIgLz48UGFyYW1ldGVyIE5hbWU9InVzZUludGVncmF0ZWRTZWN1cml0eSIgVmFsdWU9IkZhbHNlIiAvPjxQYXJhbWV0ZXIgTmFtZT0icmVhZCBvbmx5IiBWYWx1ZT0iMSIgLz48UGFyYW1ldGVyIE5hbWU9ImdlbmVyYXRlQ29ubmVjdGlvbkhlbHBlciIgVmFsdWU9ImZhbHNlIiAvPjxQYXJhbWV0ZXIgTmFtZT0idXNlcmlkIiBWYWx1ZT0iIiAvPjxQYXJhbWV0ZXIgTmFtZT0icGFzc3dvcmQiIFZhbHVlPSIiIC8+PC9QYXJhbWV0ZXJzPjwvQ29ubmVjdGlvbj48UXVlcnkgVHlwZT0iU3RvcmVkUHJvY1F1ZXJ5IiBOYW1lPSJkc0xvY2F0aW9ucyI+PFByb2NOYW1lPlBSQ19BRkxTX1JFUE9SVF9EQVRBU0VUX0xPQ0FUSU9OPC9Qcm9jTmFtZT48L1F1ZXJ5PjxRdWVyeSBUeXBlPSJDdXN0b21TcWxRdWVyeSIgTmFtZT0iZGJDb21wYW55Ij48U3FsPiAgICAgICAgICBTRUxFQ1QgW2VzdGFfY29kZV0NCiAgICAgICAgICAsW2VzdGFfbmFtZV0NCiAgICAgICAgICBGUk9NIFtBRkxTX0VTVEFCTElTSE1FTlRdPC9TcWw+PC9RdWVyeT48UXVlcnkgVHlwZT0iU3RvcmVkUHJvY1F1ZXJ5IiBOYW1lPSJTdW1tYXJ5SW52ZW50b3J5QnlMb2NhdGlvbiI+PFBhcmFtZXRlciBOYW1lPSJAbG9jYXRpb25JZCIgVHlwZT0iRGV2RXhwcmVzcy5EYXRhQWNjZXNzLkV4cHJlc3Npb24iPihTeXN0ZW0uSW50MzIpKFtQYXJhbWV0ZXJzLmxvY2F0aW9uXSk8L1BhcmFtZXRlcj48UHJvY05hbWU+UFJDX0FGTFNfMzQwMDhfUkVQT1JUX1NVTU1BUllfSU5WRU5UT1JZX0JZX0xPQ0FUSU9OPC9Qcm9jTmFtZT48L1F1ZXJ5PjxRdWVyeSBUeXBlPSJTdG9yZWRQcm9jUXVlcnkiIE5hbWU9IlRvcDVMb3dlc3RTdG9jayI+PFBhcmFtZXRlciBOYW1lPSJAbG9jYXRpb25JZCIgVHlwZT0iRGV2RXhwcmVzcy5EYXRhQWNjZXNzLkV4cHJlc3Npb24iPihTeXN0ZW0uSW50MzIpKFtQYXJhbWV0ZXJzLmxvY2F0aW9uXSk8L1BhcmFtZXRlcj48UHJvY05hbWU+UFJDX0FGTFNfMzQwMDhfUkVQT1JUX1RPUDVfTE9XRVNUX1NUT0NLPC9Qcm9jTmFtZT48L1F1ZXJ5PjxRdWVyeSBUeXBlPSJTdG9yZWRQcm9jUXVlcnkiIE5hbWU9Ik1vc3RVc2VkTGFzdE1vbnRoIj48UGFyYW1ldGVyIE5hbWU9IkBsb2NhdGlvbklkIiBUeXBlPSJEZXZFeHByZXNzLkRhdGFBY2Nlc3MuRXhwcmVzc2lvbiI+KFN5c3RlbS5JbnQzMikoW1BhcmFtZXRlcnMubG9jYXRpb25dKTwvUGFyYW1ldGVyPjxQcm9jTmFtZT5QUkNfQUZMU18zNDAwOF9SRVBPUlRfTU9TVF9VU0VEX0xBU1RNT05USDwvUHJvY05hbWU+PC9RdWVyeT48UmVzdWx0U2NoZW1hPjxEYXRhU2V0IE5hbWU9IkFGTFNfRGF0YXNldCI+PFZpZXcgTmFtZT0iZHNMb2NhdGlvbnMiPjxGaWVsZCBOYW1lPSJJZCIgVHlwZT0iSW50MzIiIC8+PEZpZWxkIE5hbWU9Ik5hbWUiIFR5cGU9IlN0cmluZyIgLz48L1ZpZXc+PFZpZXcgTmFtZT0iZGJDb21wYW55Ij48RmllbGQgTmFtZT0iZXN0YV9jb2RlIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9ImVzdGFfbmFtZSIgVHlwZT0iU3RyaW5nIiAvPjwvVmlldz48VmlldyBOYW1lPSJTdW1tYXJ5SW52ZW50b3J5QnlMb2NhdGlvbiI+PEZpZWxkIE5hbWU9ImxvY2F0aW9uX2lkIiBUeXBlPSJJbnQzMiIgLz48RmllbGQgTmFtZT0ibG9jYXRpb25fbmFtZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJwcm9kdWN0X2lkIiBUeXBlPSJJbnQzMiIgLz48RmllbGQgTmFtZT0icHJvZHVjdF9uYW1lIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9InByb2R1Y3RfbWVhc3VyZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJwcm9kdWN0X3NrdSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJwcm9kdWN0X3R5cGUiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0iaW52ZW50b3J5X3N0b2NrIiBUeXBlPSJJbnQzMiIgLz48L1ZpZXc+PFZpZXcgTmFtZT0iVG9wNUxvd2VzdFN0b2NrIj48RmllbGQgTmFtZT0icHJvZHVjdF9pZCIgVHlwZT0iSW50MzIiIC8+PEZpZWxkIE5hbWU9InByb2R1Y3RfbmFtZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJwcm9kdWN0X21lYXN1cmUiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0icHJvZHVjdF9za3UiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0icHJvZHVjdF90eXBlIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9ImludmVudG9yeV9zdG9jayIgVHlwZT0iSW50MzIiIC8+PC9WaWV3PjxWaWV3IE5hbWU9Ik1vc3RVc2VkTGFzdE1vbnRoIj48RmllbGQgTmFtZT0icHJvZHVjdF9pZCIgVHlwZT0iSW50MzIiIC8+PEZpZWxkIE5hbWU9InByb2R1Y3RfbmFtZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJwcm9kdWN0X21lYXN1cmUiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0icHJvZHVjdF9za3UiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0icHJvZHVjdF90eXBlIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9Im91dHB1dHNfc3RvY2siIFR5cGU9IkludDMyIiAvPjwvVmlldz48L0RhdGFTZXQ+PC9SZXN1bHRTY2hlbWE+PENvbm5lY3Rpb25PcHRpb25zIENsb3NlQ29ubmVjdGlvbj0idHJ1ZSIgRGJDb21tYW5kVGltZW91dD0iMCIgLz48L1NxbERhdGFTb3VyY2U+" />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsLocations" ValueMember="Id" DisplayMember="Name" SortMember="Name" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="5" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2B2AC AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34009, @folder_AflsReportsInventory, N'Resumen de inventario por especialista', 
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AFLS_Resumen_de_inventario_por_especialista" ScriptsSource="&#xD;&#xA;private void AFLS_Resumen_de_inventario_por_especialista_ParametersRequestSubmit(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e) {&#xD;&#xA;string specialistName = e.ParametersInformation[0].Parameter.Name.ToString();&#xD;&#xA;&#xD;&#xA;foreach (var info in e.ParametersInformation)&#xD;&#xA;&#x9;{&#xD;&#xA;&#x9;&#x9;if (info.Parameter.Name == &quot;specialistId&quot;)&#xD;&#xA;&#x9;&#x9;{&#xD;&#xA;&#x9;&#x9;&#x9;label7.Text = (info.Parameter.Name.ToString());&#xD;&#xA;&#x9;&#x9;}&#xD;&#xA;&#x9;}&#xD;&#xA;}" SnapGridSize="10" ReportUnit="Pixels" Margins="0, 0, 0, 2" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96">
  <Parameters>
    <Item1 Ref="4" Description="Especialista" ValueSourceSettings="#Ref-2" ValueInfo="-1" Name="specialistId" Type="#Ref-3" />
    <Item2 Ref="6" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-5" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="7" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="8" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="9" ControlType="DetailBand" Name="Detail" HeightF="350" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="10" ControlType="XRChart" Name="chart2" BackColor="255,246,246,246" SizeF="430,350" LocationFloat="440,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="11" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="12" SeriesDataMember="MostUsedLastMonth.product_name" ValidateDataMembers="true">
              <SeriesTemplate Ref="13" SeriesDataMember="MostUsedLastMonth.product_name" ArgumentDataMember="MostUsedLastMonth.product_name" ValueDataMembersSerializable="MostUsedLastMonth.outputs_stock" />
            </DataContainer>
            <Diagram Ref="14" TypeNameSerializable="XYDiagram">
              <AxisX Ref="15" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="16" VisibleInPanesSerializable="-1">
                <Title Ref="17" Visibility="True" Text="Cantidad" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
              </AxisY>
              <DefaultPane Ref="18" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="19">
                  <ConnectorLineStyle Ref="20" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="21" AlignmentHorizontal="Left" AlignmentVertical="BottomOutside" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="22" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="23" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="24" Text="Top 5 productos con mas uso en último mes" Font="Tahoma, 9.75pt, style=Bold" TextColor="255,127,127,127" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="25" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="26" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="27" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="28" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="29" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="30" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="31" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="32" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="33" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item1>
        <Item2 Ref="34" ControlType="XRChart" Name="chart1" BackColor="255,246,246,246" SizeF="430,350" LocationFloat="10,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="35" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="36" SeriesDataMember="Top5LowestStock.product_name" ValidateDataMembers="true">
              <SeriesTemplate Ref="37" SeriesDataMember="Top5LowestStock.product_name" ArgumentDataMember="Top5LowestStock.product_name" ValueDataMembersSerializable="Top5LowestStock.inventory_stock" />
            </DataContainer>
            <Diagram Ref="38" TypeNameSerializable="XYDiagram">
              <AxisX Ref="39" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="40" Visibility="True" VisibleInPanesSerializable="-1">
                <Title Ref="41" Visibility="True" Text="Cantidad" Font="Tahoma, 10pt" TextColor="255,145,145,145" />
              </AxisY>
              <DefaultPane Ref="42" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="43">
                  <ConnectorLineStyle Ref="44" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="45" AlignmentHorizontal="Left" AlignmentVertical="BottomOutside" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="46" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="47" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="48" Text="Top 5 productos con menos inventario" Font="Tahoma, 9.75pt, style=Bold, charSet=0" TextColor="255,127,127,127" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="49" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="50" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="51" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="52" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="53" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="54" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="55" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="56" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="57" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item2>
      </Controls>
    </Item2>
    <Item3 Ref="58" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="2" Dpi="96" />
    <Item4 Ref="59" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="SummaryInventoryByLocation" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="60" ControlType="DetailBand" Name="Detail1" HeightF="30" Dpi="96">
          <Controls>
            <Item1 Ref="61" ControlType="XRTable" Name="table1" SizeF="860,25" LocationFloat="10,0" Dpi="96">
              <Rows>
                <Item1 Ref="62" ControlType="XRTableRow" Name="tableRow4" Weight="32.2" TextAlignment="TopCenter" Dpi="96" ForeColor="255,153,153,153" Padding="5,5,5,5,96" BorderColor="LightGray" Borders="Bottom">
                  <Cells>
                    <Item1 Ref="63" ControlType="XRTableCell" Name="tableCell31" Weight="0.073170437644202072" TextAlignment="MiddleCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="64" EventName="BeforePrint" PropertyName="Text" Expression="[product_name]" />
                      </ExpressionBindings>
                      <StylePriority Ref="65" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="66" ControlType="XRTableCell" Name="tableCell32" Weight="0.11823615123938516" TextAlignment="MiddleCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="67" EventName="BeforePrint" PropertyName="Text" Expression="[product_sku]" />
                      </ExpressionBindings>
                      <StylePriority Ref="68" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="69" ControlType="XRTableCell" Name="tableCell33" Weight="0.095703308330465225" TextAlignment="MiddleCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="70" EventName="BeforePrint" PropertyName="Text" Expression="[product_type]" />
                      </ExpressionBindings>
                      <StylePriority Ref="71" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="72" ControlType="XRTableCell" Name="tableCell34" Weight="0.10427953527127042" TextAlignment="MiddleCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" BorderColor="Gainsboro">
                      <ExpressionBindings>
                        <Item1 Ref="73" EventName="BeforePrint" PropertyName="Text" Expression="[inventory_stock]" />
                      </ExpressionBindings>
                      <StylePriority Ref="74" UseFont="false" UseForeColor="false" UseBorderColor="false" UseTextAlignment="false" />
                    </Item4>
                  </Cells>
                  <StylePriority Ref="75" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item1>
        <Item2 Ref="76" ControlType="ReportHeaderBand" Name="ReportHeader1" HeightF="40" Dpi="96" StyleName="generalStyle">
          <Controls>
            <Item1 Ref="77" ControlType="XRTable" Name="table2" SizeF="860,35" LocationFloat="10,0" Dpi="96">
              <Rows>
                <Item1 Ref="78" ControlType="XRTableRow" Name="tableRow1" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="79" ControlType="XRTableCell" Name="tableCell1" Weight="0.074809696721126737" Text="Producto" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="80" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="81" ControlType="XRTableCell" Name="tableCell2" Weight="0.1208850195215347" Text="SKU" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="82" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="83" ControlType="XRTableCell" Name="tableCell3" Weight="0.097847358121330719" Text="Tipo de Producto" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="84" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="85" ControlType="XRTableCell" Name="tableCell10" Weight="0.10661571865399007" Text="Cantidad" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="86" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item4>
                  </Cells>
                  <StylePriority Ref="87" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item2>
        <Item3 Ref="88" ControlType="GroupHeaderBand" Name="GroupHeader2" HeightF="35" Dpi="96">
          <GroupFields>
            <Item1 Ref="89" FieldName="location_name" />
          </GroupFields>
          <Controls>
            <Item1 Ref="90" ControlType="XRLabel" Name="label4" TextAlignment="BottomLeft" SizeF="860,35" LocationFloat="10,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,34,154,144" Padding="1,1,1,5,96" BorderColor="255,34,154,144" Borders="Bottom" BorderDashStyle="Dot">
              <ExpressionBindings>
                <Item1 Ref="91" EventName="BeforePrint" PropertyName="Text" Expression="[location_name]" />
              </ExpressionBindings>
              <StylePriority Ref="92" UseFont="false" UseForeColor="false" UsePadding="false" UseBorderColor="false" UseBorders="false" UseBorderDashStyle="false" UseTextAlignment="false" />
            </Item1>
          </Controls>
        </Item3>
      </Bands>
    </Item4>
    <Item5 Ref="93" ControlType="PageHeaderBand" Name="PageHeader" HeightF="80" Dpi="96">
      <Controls>
        <Item1 Ref="94" ControlType="XRLabel" Name="label12" CanGrow="false" Text="[dateNow]" TextAlignment="TopJustify" WordWrap="false" SizeF="211,20" LocationFloat="125,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="95" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="96" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="97" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="840,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <StylePriority Ref="98" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="99" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="283,20" LocationFloat="79,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="100" EventName="BeforePrint" PropertyName="Text" Expression="[dbCompany.esta_name]" />
          </ExpressionBindings>
          <StylePriority Ref="101" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="102" ControlType="XRLabel" Name="label5" Text="Fecha de creación:" SizeF="115,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="103" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="104" ControlType="XRLabel" Name="label6" Text="Especialista:" SizeF="76.95886,20" LocationFloat="540.58,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="105" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="106" ControlType="XRLabel" Name="label9" SizeF="100,20" LocationFloat="430.577728,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="107" EventName="BeforePrint" PropertyName="Text" Expression="[dbCompany.esta_code]" />
          </ExpressionBindings>
          <StylePriority Ref="108" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="109" ControlType="XRLabel" Name="label3" Text="Nit:" SizeF="34.99997,20" LocationFloat="395.577728,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="110" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="111" ControlType="XRLabel" Name="label2" Text="Compañía:" SizeF="69,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="112" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="113" ControlType="XRLabel" Name="label1" Text="Resumen de inventario por especialista" SizeF="352,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,169,157" Padding="2,2,0,0,96">
          <StylePriority Ref="114" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="115" ControlType="XRLabel" Name="label7" SizeF="252.461121,40" LocationFloat="617.5389,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="116" EventName="BeforePrint" PropertyName="Text" Expression="[dsSpecialistSelected.user_name]" />
          </ExpressionBindings>
          <StylePriority Ref="117" UseFont="false" UseForeColor="false" />
        </Item10>
        <Item11 Ref="118" ControlType="XRLabel" Name="label10" Text="Paginas:" SizeF="60,20" LocationFloat="780,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="119" UseFont="false" UseForeColor="false" />
        </Item11>
      </Controls>
    </Item5>
  </Bands>
  <Scripts Ref="120" OnParametersRequestSubmit="AFLS_Resumen_de_inventario_por_especialista_ParametersRequestSubmit" />
  <StyleSheet>
    <Item1 Ref="121" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 Ref="2" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsSpecialists" ValueMember="Id" DisplayMember="Name" />
    <Item2 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="3" Content="System.Int32" Type="System.Type" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="5" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2B2AC AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34010, @folder_AflsReportsInventory, N'Uso de inventario por servicio', 
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report4" DisplayName="AFLS_Uso de inventario por servicio" SnapGridSize="10" ReportUnit="Pixels" Margins="0, 0, 0, 55" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96">
  <Parameters>
    <Item1 Ref="3" Description="Fecha inicial" ValueInfo="2014-01-01" Name="initDate" Type="#Ref-2" />
    <Item2 Ref="4" Description="Fecha final" ValueInfo="2018-01-01" Name="endDate" Type="#Ref-2" />
    <Item3 Ref="7" Description="Servicio" ValueSourceSettings="#Ref-5" ValueInfo="-1" Name="service" Type="#Ref-6" />
    <Item4 Ref="9" Description="Proveedor" ValueSourceSettings="#Ref-8" ValueInfo="-1" Name="provider" Type="#Ref-6" />
    <Item5 Ref="11" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-10" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="12" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="13" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="14" ControlType="DetailBand" Name="Detail" HeightF="321" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="15" ControlType="XRChart" Name="chart1" BackColor="255,242,242,242" SizeF="860,300" LocationFloat="9.599998,5" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="16" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,242,242,242">
            <DataContainer Ref="17" SeriesDataMember="PRC_AFLS_34010_REPORT_TOP5_MOST_USED_PRODUCT.product_name" ValidateDataMembers="true">
              <SeriesTemplate Ref="18" SeriesDataMember="PRC_AFLS_34010_REPORT_TOP5_MOST_USED_PRODUCT.product_name" ArgumentDataMember="PRC_AFLS_34010_REPORT_TOP5_MOST_USED_PRODUCT.product_name" ValueDataMembersSerializable="PRC_AFLS_34010_REPORT_TOP5_MOST_USED_PRODUCT.outputs_stock" />
            </DataContainer>
            <Diagram Ref="19" TypeNameSerializable="XYDiagram">
              <AxisX Ref="20" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="21" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="22" BackColor="255,242,242,242" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="23">
                  <ConnectorLineStyle Ref="24" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="25" AlignmentHorizontal="Left" AlignmentVertical="BottomOutside" BackColor="255,242,242,242" Name="Default Legend">
              <Border Ref="26" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="27" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="28" Text="Top 5 productos mas utilizados" Font="Tahoma, 9.75pt, charSet=0" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="29" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="30" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="31" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="32" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="33" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="34" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="35" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="36" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="37" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="38" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="55" Dpi="96" />
    <Item4 Ref="39" ControlType="PageHeaderBand" Name="PageHeader" HeightF="102" Dpi="96">
      <Controls>
        <Item1 Ref="40" ControlType="XRLabel" Name="label10" CanGrow="false" Text="[dateNow]" TextAlignment="TopJustify" WordWrap="false" SizeF="211,20" LocationFloat="128,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="41" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="42" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="43" ControlType="XRLabel" Name="label4" Text="Paginas:" SizeF="60,20" LocationFloat="780,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="44" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="45" ControlType="XRLabel" Name="label14" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="165.545227,20" LocationFloat="608.064941,75" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="46" EventName="BeforePrint" PropertyName="Text" Expression="?endDate" />
          </ExpressionBindings>
          <StylePriority Ref="47" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="48" ControlType="XRLabel" Name="label11" Text="Fecha final:" SizeF="80.99997,20" LocationFloat="527.064941,75" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="49" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="50" ControlType="XRLabel" Name="label13" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="165.545227,20" LocationFloat="608.064941,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="51" EventName="BeforePrint" PropertyName="Text" Expression="?initDate" />
          </ExpressionBindings>
          <StylePriority Ref="52" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="53" ControlType="XRLabel" Name="label7" Text="Fecha inicial:" SizeF="81,20" LocationFloat="527.064941,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="54" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="55" ControlType="XRLabel" Name="label12" CanGrow="false" WordWrap="false" SizeF="256.935059,20" LocationFloat="583.064941,35" Dpi="96" StyleName="generalStyle" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="56" EventName="BeforePrint" PropertyName="Text" Expression="[dsSelectedService.serv_name]" />
          </ExpressionBindings>
          <StylePriority Ref="57" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="58" ControlType="XRLabel" Name="label6" Text="Servicio:" SizeF="56,20" LocationFloat="527.064941,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="59" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="60" ControlType="XRLabel" Name="label5" Text="Fecha de creación:" SizeF="118,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="61" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="62" ControlType="XRLabel" Name="label9" SizeF="99.99997,20" LocationFloat="402.806427,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="63" EventName="BeforePrint" PropertyName="Text" Expression="[dbCompany.esta_code]" />
          </ExpressionBindings>
          <StylePriority Ref="64" UseFont="false" UseForeColor="false" />
        </Item10>
        <Item11 Ref="65" ControlType="XRLabel" Name="label3" Text="Nit:" SizeF="35.00003,20" LocationFloat="367.8064,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="66" UseFont="false" UseForeColor="false" />
        </Item11>
        <Item12 Ref="67" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="250,20" LocationFloat="80,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="68" EventName="BeforePrint" PropertyName="Text" Expression="[dbCompany.esta_name]" />
          </ExpressionBindings>
          <StylePriority Ref="69" UseFont="false" UseForeColor="false" />
        </Item12>
        <Item13 Ref="70" ControlType="XRLabel" Name="label2" Text="Compañía:" SizeF="70,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,96">
          <StylePriority Ref="71" UseFont="false" UseForeColor="false" />
        </Item13>
        <Item14 Ref="72" ControlType="XRLabel" Name="label1" Text="Consumo por servicio" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,169,157" Padding="2,2,0,0,96">
          <StylePriority Ref="73" UseFont="false" UseForeColor="false" />
        </Item14>
        <Item15 Ref="74" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="840,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <StylePriority Ref="75" UseFont="false" UseForeColor="false" />
        </Item15>
      </Controls>
    </Item4>
    <Item5 Ref="76" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="PRC_AFLS_34010_REPORT_USED_PRODUCT_BY_SERVICE" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="77" ControlType="DetailBand" Name="Detail1" HeightF="47" Dpi="96">
          <Controls>
            <Item1 Ref="78" ControlType="XRLabel" Name="tableCell20" TextAlignment="MiddleCenter" SizeF="250.125732,25" LocationFloat="9.599998,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="79" EventName="BeforePrint" PropertyName="Text" Expression="[service_name]" />
              </ExpressionBindings>
              <StylePriority Ref="80" UseForeColor="false" UseTextAlignment="false" />
            </Item1>
            <Item2 Ref="81" ControlType="XRLabel" Name="tableCell21" TextAlignment="MiddleCenter" SizeF="107.680634,25" LocationFloat="259.725739,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="82" EventName="BeforePrint" PropertyName="Text" Expression="[product_name]" />
              </ExpressionBindings>
              <StylePriority Ref="83" UseForeColor="false" UseTextAlignment="false" />
            </Item2>
            <Item3 Ref="84" ControlType="XRLabel" Name="tableCell22" TextAlignment="MiddleCenter" SizeF="109.711792,25" LocationFloat="367.406372,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="85" EventName="BeforePrint" PropertyName="Text" Expression="[product_sku]" />
              </ExpressionBindings>
              <StylePriority Ref="86" UseForeColor="false" UseTextAlignment="false" />
            </Item3>
            <Item4 Ref="87" ControlType="XRLabel" Name="tableCell23" TextAlignment="MiddleCenter" SizeF="117.546814,25" LocationFloat="477.118164,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="88" EventName="BeforePrint" PropertyName="Text" Expression="[product_type]" />
              </ExpressionBindings>
              <StylePriority Ref="89" UseForeColor="false" UseTextAlignment="false" />
            </Item4>
            <Item5 Ref="90" ControlType="XRLabel" Name="tableCell24" TextAlignment="MiddleCenter" SizeF="141.78717,25" LocationFloat="594.6649,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="91" EventName="BeforePrint" PropertyName="Text" Expression="[avg_outputs_stock]" />
              </ExpressionBindings>
              <StylePriority Ref="92" UseForeColor="false" UseTextAlignment="false" />
            </Item5>
            <Item6 Ref="93" ControlType="XRLabel" Name="tableCell25" TextAlignment="MiddleCenter" SizeF="133.547913,25" LocationFloat="736.4521,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="94" EventName="BeforePrint" PropertyName="Text" Expression="[default_quantity]" />
              </ExpressionBindings>
              <StylePriority Ref="95" UseForeColor="false" UseTextAlignment="false" />
            </Item6>
          </Controls>
        </Item1>
        <Item2 Ref="96" ControlType="GroupHeaderBand" Name="GroupHeaderBand" RepeatEveryPage="true" HeightF="45.0799561" Dpi="96" Visible="false">
          <Controls>
            <Item1 Ref="97" ControlType="XRTable" Name="table1" SizeF="860,35" LocationFloat="10,0" Dpi="96">
              <Rows>
                <Item1 Ref="98" ControlType="XRTableRow" Name="tableRow2" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="99" ControlType="XRTableCell" Name="tableCell7" Weight="0.17521674958884975" Text="Servicio" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="100" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="101" ControlType="XRTableCell" Name="tableCell8" Weight="0.075431870167475074" Text="Producto" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="102" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="103" ControlType="XRTableCell" Name="tableCell9" Weight="0.076854716437287113" Text="SKU" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="104" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="105" ControlType="XRTableCell" Name="tableCell10" Weight="0.082343228829550183" Text="Tipo de Producto" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="106" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="107" ControlType="XRTableCell" Name="tableCell11" Weight="0.099323993576583447" Text="Cantidad promedio de uso" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="108" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="109" ControlType="XRTableCell" Name="tableCell1" Weight="0.0932720439906853" Text="Cantidad por omisión" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="110" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item6>
                  </Cells>
                  <StylePriority Ref="111" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item2>
      </Bands>
    </Item5>
  </Bands>
  <Scripts Ref="112" OnParametersRequestBeforeShow="Report4_ParametersRequestBeforeShow" OnParametersRequestSubmit="Report4_ParametersRequestSubmit" />
  <StyleSheet>
    <Item1 Ref="113" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsServices" ValueMember="Id" DisplayMember="Name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="dsProvider" ValueMember="prov_id" DisplayMember="provider_name" />
    <Item5 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="10" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2B2AC AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34011, @folder_AflsReports, N'Reporte calificacion', 
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AFLS_Reporte_calificacion" ScriptsSource="&#xD;&#xA;" SnapGridSize="10" ReportUnit="Pixels" Margins="0, 0, 0, 0" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="PRC_AFLS_34011_REPORT_SURVEY_DATASET1" DataSource="#Ref-0" Dpi="96">
  <Parameters>
    <Item1 Ref="3" Description="Fecha inicial" ValueInfo="2017-08-25" Name="initDate" Type="#Ref-2" />
    <Item2 Ref="4" Description="Fecha final" ValueInfo="2017-08-25" Name="endDate" Type="#Ref-2" />
    <Item3 Ref="7" Description="Provedor" ValueSourceSettings="#Ref-5" ValueInfo="-1" Name="provider" Type="#Ref-6" />
    <Item4 Ref="9" Description="Encuesta" ValueSourceSettings="#Ref-8" ValueInfo="1" Name="idSurvey" Type="#Ref-6" />
    <Item5 Ref="11" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-10" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="12" Name="calculatedField1" Expression="Sum([PromSatisfactionLevel])" DataMember="PRC_AFLS_34011_REPORT_SURVEY_DATASET2" />
    <Item2 Ref="13" Name="calculatedField2" Expression="Sum([PromResponse])" DataMember="PRC_AFLS_34011_REPORT_SURVEY_DATASET4" />
    <Item3 Ref="14" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="15" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="16" ControlType="DetailBand" Name="Detail" HeightF="29" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="17" ControlType="XRLabel" Name="label23" Multiline="true" Text="label23" TextAlignment="MiddleLeft" SizeF="127,22.08" LocationFloat="743,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="18" EventName="BeforePrint" PropertyName="Text" Expression="[Respuesta]" />
          </ExpressionBindings>
          <StylePriority Ref="19" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="20" ControlType="XRLabel" Name="label22" Multiline="true" Text="label22" TextAlignment="MiddleLeft" SizeF="284.604858,22.08" LocationFloat="458.395142,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="21" EventName="BeforePrint" PropertyName="Text" Expression="[Pregunta]" />
          </ExpressionBindings>
          <StylePriority Ref="22" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="23" ControlType="XRLabel" Name="label21" Multiline="true" Text="label21" TextAlignment="MiddleLeft" SizeF="60,22.08" LocationFloat="398.395142,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="24" EventName="BeforePrint" PropertyName="Text" Expression="[Name]" />
          </ExpressionBindings>
          <StylePriority Ref="25" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item3>
        <Item4 Ref="26" ControlType="XRLabel" Name="label20" TextFormatString="{0:g}" Multiline="true" ProcessDuplicatesMode="Merge" Text="label20" TextAlignment="MiddleLeft" SizeF="76,22.08" LocationFloat="310.075134,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <Scripts Ref="27" OnBeforePrint="label20_BeforePrint" />
          <ExpressionBindings>
            <Item1 Ref="28" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([FechaRespuesta],-1* ?UTCoffSet)" />
          </ExpressionBindings>
          <StylePriority Ref="29" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="30" ControlType="XRLabel" Name="label19" TextFormatString="{0:g}" Multiline="true" ProcessDuplicatesMode="Merge" Text="label19" TextAlignment="MiddleLeft" SizeF="75,22.08" LocationFloat="231.2352,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <Scripts Ref="31" OnBeforePrint="label19_BeforePrint" />
          <ExpressionBindings>
            <Item1 Ref="32" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([FechaCreacion],-1* ?UTCoffSet)" />
          </ExpressionBindings>
          <StylePriority Ref="33" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
        <Item6 Ref="34" ControlType="XRLabel" Name="label18" Multiline="true" ProcessDuplicatesMode="Merge" Text="label18" TextAlignment="MiddleLeft" SizeF="90.1199341,22.08" LocationFloat="136,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="35" EventName="BeforePrint" PropertyName="Text" Expression="[Agente]" />
          </ExpressionBindings>
          <StylePriority Ref="36" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
        <Item7 Ref="37" ControlType="XRLabel" Name="label17" Multiline="true" ProcessDuplicatesMode="Merge" Text="label17" TextAlignment="MiddleLeft" SizeF="82,22.08" LocationFloat="54,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="38" EventName="BeforePrint" PropertyName="Text" Expression="[Cliente]" />
          </ExpressionBindings>
          <StylePriority Ref="39" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
        <Item8 Ref="40" ControlType="XRLabel" Name="label16" Multiline="true" ProcessDuplicatesMode="Merge" Text="label16" TextAlignment="MiddleLeft" SizeF="44,22.08" LocationFloat="10,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="41" EventName="BeforePrint" PropertyName="Text" Expression="[idOrden]" />
          </ExpressionBindings>
          <StylePriority Ref="42" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item8>
      </Controls>
    </Item2>
    <Item3 Ref="43" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="0" Dpi="96" />
    <Item4 Ref="44" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="35" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="45" ControlType="XRLabel" Name="label27" Text="#Orden" TextAlignment="MiddleLeft" SizeF="44,22.08" LocationFloat="10,5.920044" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[idOrden]">
          <StylePriority Ref="46" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="47" ControlType="XRLabel" Name="label28" Text="Cliente" TextAlignment="MiddleLeft" SizeF="82,22.08" LocationFloat="54,5.920044" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[Cliente]">
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="49" ControlType="XRLabel" Name="label29" Text="Especialista" TextAlignment="MiddleLeft" SizeF="90.1199341,22.08" LocationFloat="136,5.920044" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[Agente]">
          <StylePriority Ref="50" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item3>
        <Item4 Ref="51" ControlType="XRLabel" Name="label30" Text="Fecha Creacion" TextAlignment="MiddleLeft" SizeF="75,22.08" LocationFloat="231.2352,5.920044" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[FechaCreacion]">
          <StylePriority Ref="52" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="53" ControlType="XRLabel" Name="label31" Text="Fecha Respuesta" TextAlignment="MiddleLeft" SizeF="88,22.08" LocationFloat="310.075134,5.920044" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[FechaRespuesta]">
          <StylePriority Ref="54" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
        <Item6 Ref="55" ControlType="XRLabel" Name="label32" Text="Nombre" TextAlignment="MiddleLeft" SizeF="60,22.08" LocationFloat="398.395142,5.920044" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[Name]">
          <StylePriority Ref="56" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
        <Item7 Ref="57" ControlType="XRLabel" Name="label33" Text="Pregunta" TextAlignment="MiddleLeft" SizeF="284.604858,22.08" LocationFloat="458.395142,5.920044" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[Pregunta]">
          <StylePriority Ref="58" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item7>
        <Item8 Ref="59" ControlType="XRLabel" Name="label34" Text="Respuesta" TextAlignment="MiddleLeft" SizeF="127,22.08" LocationFloat="743,5.920044" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[Respuesta]">
          <StylePriority Ref="60" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item8>
      </Controls>
    </Item4>
    <Item5 Ref="61" ControlType="PageHeaderBand" Name="PageHeader" HeightF="115" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="62" ControlType="XRLabel" Name="label12" CanGrow="false" Text="[dateNow]" SizeF="108,40" LocationFloat="440,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="63" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="64" UseForeColor="false" UseBackColor="false" />
        </Item1>
        <Item2 Ref="65" ControlType="XRLabel" Name="label10" Text="Paginas:" SizeF="60,20" LocationFloat="779,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="66" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item2>
        <Item3 Ref="67" ControlType="XRLabel" Name="label11" Text="Fecha final:" SizeF="95.0000153,20" LocationFloat="607.3999,75" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="68" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item3>
        <Item4 Ref="69" ControlType="XRLabel" Name="label7" Text="Fecha inicial:" SizeF="95.0000153,20" LocationFloat="607.3999,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="70" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item4>
        <Item5 Ref="71" ControlType="XRLabel" Name="label5" Text="Fecha de creación:" SizeF="121.400024,20" LocationFloat="318.599976,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="72" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item5>
        <Item6 Ref="73" ControlType="XRLabel" Name="label1" Text="Cumplimiento del nivel de satisfacción" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,154,144" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="74" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item6>
        <Item7 Ref="75" ControlType="XRLabel" Name="label2" Text="Encuesta:" SizeF="62,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="76" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item7>
        <Item8 Ref="77" ControlType="XRLabel" Name="label3" Text="Nivel de satisfacción obtenido:" SizeF="191.12,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="78" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item8>
        <Item9 Ref="79" ControlType="XRLabel" Name="label4" Text="Nivel de satisfacción esperado:" SizeF="191.12,20" LocationFloat="10,75" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="80" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item9>
        <Item10 Ref="81" ControlType="XRLabel" Name="label6" Text="Parámetros de fecha" SizeF="158,20" LocationFloat="607.3999,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="82" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item10>
        <Item11 Ref="83" ControlType="XRLabel" Name="label8" AutoWidth="true" CanGrow="false" WordWrap="false" SizeF="229.119934,20" LocationFloat="72,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="84" EventName="BeforePrint" PropertyName="Text" Expression="[ds_select_survey_name.Name]" />
          </ExpressionBindings>
          <StylePriority Ref="85" UseForeColor="false" UseBackColor="false" />
        </Item11>
        <Item12 Ref="86" ControlType="XRLabel" Name="label9" SizeF="99.99994,20" LocationFloat="201.12,75" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="87" EventName="BeforePrint" PropertyName="Text" Expression="[PRC_AFLS_34011_REPORT_SURVEY_DATASET5.SatisfactionLevel]" />
          </ExpressionBindings>
          <StylePriority Ref="88" UseForeColor="false" UseBackColor="false" />
        </Item12>
        <Item13 Ref="89" ControlType="XRLabel" Name="label13" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="167.6001,20.00003" LocationFloat="702.3999,54.99997" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="90" EventName="BeforePrint" PropertyName="Text" Expression="?initDate" />
          </ExpressionBindings>
          <StylePriority Ref="91" UseForeColor="false" UseBackColor="false" />
        </Item13>
        <Item14 Ref="92" ControlType="XRLabel" Name="label14" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="167.6001,20" LocationFloat="702.3999,75" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="93" EventName="BeforePrint" PropertyName="Text" Expression="?endDate" />
          </ExpressionBindings>
          <StylePriority Ref="94" UseForeColor="false" UseBackColor="false" />
        </Item14>
        <Item15 Ref="95" ControlType="XRLabel" Name="label15" SizeF="99.99994,20" LocationFloat="201.12,55" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="96" EventName="BeforePrint" PropertyName="Text" Expression="[PRC_AFLS_34011_REPORT_SURVEY_DATASET2.PromSatisfactionLevel]" />
          </ExpressionBindings>
          <StylePriority Ref="97" UseForeColor="false" UseBackColor="false" />
        </Item15>
        <Item16 Ref="98" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="840,10" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="99" UseForeColor="false" UseBackColor="false" />
        </Item16>
      </Controls>
    </Item5>
    <Item6 Ref="100" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="1" HeightF="269" Dpi="96">
      <Controls>
        <Item1 Ref="101" ControlType="XRChart" Name="chart1" BackColor="255,246,246,246" SizeF="430,260" LocationFloat="10,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="102" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="103" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="104" Name="Series 1" ArgumentDataMember="PRC_AFLS_34011_REPORT_SURVEY_DATASET2.calculatedField1" ValueDataMembersSerializable="PRC_AFLS_34011_REPORT_SURVEY_DATASET2.PromSatisfactionLevel" LabelsVisibility="True" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="105" TypeNameSerializable="XYDiagram">
              <AxisX Ref="106" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="107" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="108" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="109">
                  <ConnectorLineStyle Ref="110" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="111" Visibility="False" Name="Default Legend" />
            <OptionsPrint Ref="112" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="113" Text="Nivel satisfacción" Font="Tahoma, 10pt" TextColor="255,127,127,127" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="114" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="115" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="116" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="117" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="118" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="119" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="120" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="121" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="122" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
          <StylePriority Ref="123" UseBackColor="false" />
        </Item1>
        <Item2 Ref="124" ControlType="XRChart" Name="chart3" BackColor="255,246,246,246" SizeF="430,260" LocationFloat="440,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="125" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="126" SeriesDataMember="PRC_AFLS_34011_REPORT_SURVEY_DATASET4.IdPregunta" ValidateDataMembers="true">
              <SeriesTemplate Ref="127" SeriesDataMember="PRC_AFLS_34011_REPORT_SURVEY_DATASET4.IdPregunta" ArgumentDataMember="PRC_AFLS_34011_REPORT_SURVEY_DATASET4.calculatedField2" ValueDataMembersSerializable="PRC_AFLS_34011_REPORT_SURVEY_DATASET4.PromResponse" />
            </DataContainer>
            <Diagram Ref="128" TypeNameSerializable="XYDiagram">
              <AxisX Ref="129" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="130" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="131" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="132">
                  <ConnectorLineStyle Ref="133" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="134" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="135" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="136" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="137" Text="Calificación por pregunta" Font="Tahoma, 9.75pt, charSet=0" TextColor="255,127,127,127" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="138" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="139" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="140" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="141" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="142" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="143" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="144" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="145" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="146" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
          <StylePriority Ref="147" UseBackColor="false" />
        </Item2>
      </Controls>
    </Item6>
  </Bands>
  <Scripts Ref="148" OnParametersRequestBeforeShow="AFLS_Reporte_calificacion_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="149" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="PRC_AFLS_REPORT_DATASET_PROVIDERS" ValueMember="prov_id" DisplayMember="provider_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="PRC_AFLS_REPORT_DATASET_SURVEYS" ValueMember="prov_id" DisplayMember="survey_name" />
    <Item5 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="10" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(N'2015-02-04 16:44:20.247' AS DateTime), NULL, 1, 1, N'',  1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34012, @folder_AflsReports, N'Reporte calificacion general', 
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AFLS_Reporte_calificacion" ScriptsSource="&#xD;&#xA;" SnapGridSize="10" ReportUnit="Pixels" Margins="0, 0, 0, 0" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="PRC_AFLS_34012_REPORT_SURVEY_DATASET1" DataSource="#Ref-0" Dpi="96">
  <Parameters>
    <Item1 Ref="3" Description="Fecha inicial" ValueInfo="2017-08-25" Name="initDate" Type="#Ref-2" />
    <Item2 Ref="4" Description="Fecha final" ValueInfo="2017-08-25" Name="endDate" Type="#Ref-2" />
    <Item3 Ref="7" Description="Encuesta" ValueSourceSettings="#Ref-5" ValueInfo="1" Name="idSurvey" Type="#Ref-6" />
    <Item4 Ref="9" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-8" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="10" Name="calculatedField1" Expression="Sum([PromSatisfactionLevel])" DataMember="PRC_AFLS_34012_REPORT_SURVEY_DATASET2" />
    <Item2 Ref="11" Name="calculatedField2" Expression="Sum([PromResponse])" DataMember="PRC_AFLS_34012_REPORT_SURVEY_DATASET4" />
    <Item3 Ref="12" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="13" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="14" ControlType="DetailBand" Name="Detail" HeightF="27" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="15" ControlType="XRLabel" Name="label25" Multiline="true" Text="label25" TextAlignment="MiddleLeft" SizeF="63,22.08" LocationFloat="248,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="16" EventName="BeforePrint" PropertyName="Text" Expression="[Name]" />
          </ExpressionBindings>
          <StylePriority Ref="17" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="18" ControlType="XRLabel" Name="label23" Multiline="true" ProcessDuplicatesMode="Merge" Text="label23" TextAlignment="MiddleLeft" SizeF="76,22.08" LocationFloat="5,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[Cliente]" />
          </ExpressionBindings>
          <StylePriority Ref="20" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="21" ControlType="XRLabel" Name="label21" Multiline="true" Text="label21" TextAlignment="MiddleLeft" SizeF="150.6001,22.08" LocationFloat="719.3999,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="22" EventName="BeforePrint" PropertyName="Text" Expression="[Respuesta]" />
          </ExpressionBindings>
          <StylePriority Ref="23" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item3>
        <Item4 Ref="24" ControlType="XRLabel" Name="label19" Multiline="true" Text="label19" TextAlignment="MiddleLeft" SizeF="408.3999,22.08" LocationFloat="311,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="25" EventName="BeforePrint" PropertyName="Text" Expression="[Pregunta]" />
          </ExpressionBindings>
          <StylePriority Ref="26" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="27" ControlType="XRLabel" Name="label17" TextFormatString="{0:g}" Multiline="true" ProcessDuplicatesMode="Merge" Text="label17" TextAlignment="MiddleLeft" SizeF="75,22.08" LocationFloat="160,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <Scripts Ref="28" OnBeforePrint="label17_BeforePrint" />
          <ExpressionBindings>
            <Item1 Ref="29" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([FechaRespuesta],-1* ?UTCoffSet)" />
          </ExpressionBindings>
          <StylePriority Ref="30" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
        <Item6 Ref="31" ControlType="XRLabel" Name="label12" TextFormatString="{0:g}" Multiline="true" ProcessDuplicatesMode="Merge" Text="label12" TextAlignment="MiddleLeft" SizeF="75,22.08" LocationFloat="81,0" Dpi="96" Font="Tahoma, 8pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <Scripts Ref="32" OnBeforePrint="label12_BeforePrint" />
          <ExpressionBindings>
            <Item1 Ref="33" EventName="BeforePrint" PropertyName="Text" Expression="AddMinutes([FechaCreacion],-1* ?UTCoffSet)" />
          </ExpressionBindings>
          <StylePriority Ref="34" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item2>
    <Item3 Ref="35" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="0" Dpi="96" />
    <Item4 Ref="36" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="37" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="37" ControlType="XRLabel" Name="label16" Text="Fecha Creacion" TextAlignment="MiddleLeft" SizeF="79,22.08" LocationFloat="81,7.840088" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[FechaCreacion]">
          <StylePriority Ref="38" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item1>
        <Item2 Ref="39" ControlType="XRLabel" Name="label18" Text="Fecha Respuesta" TextAlignment="MiddleLeft" SizeF="88,22.08" LocationFloat="160,7.840088" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[FechaRespuesta]">
          <StylePriority Ref="40" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item2>
        <Item3 Ref="41" ControlType="XRLabel" Name="label20" Text="Pregunta" TextAlignment="MiddleLeft" SizeF="408.3999,22.08" LocationFloat="311,7.840088" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[Pregunta]">
          <StylePriority Ref="42" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item3>
        <Item4 Ref="43" ControlType="XRLabel" Name="label22" Text="Respuesta" TextAlignment="MiddleLeft" SizeF="150.6001,22.08" LocationFloat="719.3999,7.840088" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[Respuesta]">
          <StylePriority Ref="44" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item4>
        <Item5 Ref="45" ControlType="XRLabel" Name="label24" Text="Cliente" TextAlignment="MiddleLeft" SizeF="76,22.08" LocationFloat="5,7.840088" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[Cliente]">
          <StylePriority Ref="46" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item5>
        <Item6 Ref="47" ControlType="XRLabel" Name="label26" Text="Nombre" TextAlignment="MiddleLeft" SizeF="63,22.08" LocationFloat="248,7.840088" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" Tag_type="System.String" Tag="[Name]">
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" UseTextAlignment="false" />
        </Item6>
      </Controls>
    </Item4>
    <Item5 Ref="49" ControlType="PageHeaderBand" Name="PageHeader" HeightF="105" Dpi="96" StyleName="generalStyle">
      <Controls>
        <Item1 Ref="50" ControlType="XRLabel" Name="label27" CanGrow="false" Text="[dateNow]" SizeF="108,40" LocationFloat="440,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <Scripts Ref="51" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="52" UseForeColor="false" UseBackColor="false" />
        </Item1>
        <Item2 Ref="53" ControlType="XRLabel" Name="label10" Text="Paginas:" SizeF="60,20" LocationFloat="779,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="54" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item2>
        <Item3 Ref="55" ControlType="XRLabel" Name="label11" Text="Fecha final:" SizeF="95.0000153,20" LocationFloat="607.3999,75" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="56" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item3>
        <Item4 Ref="57" ControlType="XRLabel" Name="label7" Text="Fecha inicial:" SizeF="95.0000153,20" LocationFloat="607.3999,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="58" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item4>
        <Item5 Ref="59" ControlType="XRLabel" Name="label5" Text="Fecha de creación:" SizeF="121.400024,20" LocationFloat="318.599976,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="60" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item5>
        <Item6 Ref="61" ControlType="XRLabel" Name="label1" Text="Cumplimiento del nivel de satisfacción" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,154,144" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="62" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item6>
        <Item7 Ref="63" ControlType="XRLabel" Name="label2" Text="Encuesta:" SizeF="62,20" LocationFloat="10,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="64" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item7>
        <Item8 Ref="65" ControlType="XRLabel" Name="label3" Text="Nivel de satisfacción obtenido:" SizeF="191.12,20" LocationFloat="10,55" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="66" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item8>
        <Item9 Ref="67" ControlType="XRLabel" Name="label4" Text="Nivel de satisfacción esperado:" SizeF="191.12,20" LocationFloat="10,75" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="68" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item9>
        <Item10 Ref="69" ControlType="XRLabel" Name="label6" Text="Parámetros de fecha" SizeF="158,20" LocationFloat="607.3999,35" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="70" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item10>
        <Item11 Ref="71" ControlType="XRLabel" Name="label8" CanGrow="false" WordWrap="false" SizeF="229.119934,20" LocationFloat="72,35" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="72" EventName="BeforePrint" PropertyName="Text" Expression="[ds_select_survey_name.name]" />
          </ExpressionBindings>
          <StylePriority Ref="73" UseForeColor="false" UseBackColor="false" />
        </Item11>
        <Item12 Ref="74" ControlType="XRLabel" Name="label9" SizeF="99.99994,20" LocationFloat="201.12,55" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="75" EventName="BeforePrint" PropertyName="Text" Expression="[PRC_AFLS_34012_REPORT_SURVEY_DATASET2.PromSatisfactionLevel]" />
          </ExpressionBindings>
          <StylePriority Ref="76" UseForeColor="false" UseBackColor="false" />
        </Item12>
        <Item13 Ref="77" ControlType="XRLabel" Name="label13" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="167.6001,20.00003" LocationFloat="702.3999,54.99997" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="78" EventName="BeforePrint" PropertyName="Text" Expression="?initDate" />
          </ExpressionBindings>
          <StylePriority Ref="79" UseForeColor="false" UseBackColor="false" />
        </Item13>
        <Item14 Ref="80" ControlType="XRLabel" Name="label14" TextFormatString="{0:dd/MM/yyyy}" CanGrow="false" WordWrap="false" SizeF="167.6001,20" LocationFloat="702.3999,75" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="81" EventName="BeforePrint" PropertyName="Text" Expression="?endDate" />
          </ExpressionBindings>
          <StylePriority Ref="82" UseForeColor="false" UseBackColor="false" />
        </Item14>
        <Item15 Ref="83" ControlType="XRLabel" Name="label15" SizeF="99.99994,20" LocationFloat="201.12,75" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <ExpressionBindings>
            <Item1 Ref="84" EventName="BeforePrint" PropertyName="Text" Expression="[PRC_AFLS_34012_REPORT_SURVEY_DATASET5.SatisfactionLevel]" />
          </ExpressionBindings>
          <StylePriority Ref="85" UseForeColor="false" UseBackColor="false" />
        </Item15>
        <Item16 Ref="86" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="840,10" Dpi="96" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="87" UseForeColor="false" UseBackColor="false" />
        </Item16>
      </Controls>
    </Item5>
    <Item6 Ref="88" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="1" HeightF="268" Dpi="96">
      <Controls>
        <Item1 Ref="89" ControlType="XRChart" Name="chart1" BackColor="255,246,246,246" SizeF="430,260" LocationFloat="10,0" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="90" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="91" ValidateDataMembers="true">
              <SeriesSerializable>
                <Item1 Ref="92" Name="Series 1" ArgumentDataMember="PRC_AFLS_34012_REPORT_SURVEY_DATASET2.calculatedField1" ValueDataMembersSerializable="PRC_AFLS_34012_REPORT_SURVEY_DATASET2.PromSatisfactionLevel" LabelsVisibility="True" />
              </SeriesSerializable>
            </DataContainer>
            <Diagram Ref="93" TypeNameSerializable="XYDiagram">
              <AxisX Ref="94" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="95" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="96" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="97">
                  <ConnectorLineStyle Ref="98" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="99" Visibility="False" Name="Default Legend" />
            <OptionsPrint Ref="100" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="101" Text="Nivel satisfacción" Font="Tahoma, 10pt" TextColor="255,127,127,127" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="102" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="103" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="104" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="105" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="106" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="107" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="108" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="109" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="110" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
          <StylePriority Ref="111" UseBackColor="false" />
        </Item1>
        <Item2 Ref="112" ControlType="XRChart" Name="chart3" BackColor="255,246,246,246" SizeF="430,260" LocationFloat="440,1.52587891E-05" Dpi="96" BorderColor="Black" Borders="None">
          <Chart Ref="113" PaletteName="Technic" AppearanceNameSerializable="Gray" BackColor="255,246,246,246">
            <DataContainer Ref="114" SeriesDataMember="PRC_AFLS_34012_REPORT_SURVEY_DATASET4.IdPregunta" ValidateDataMembers="true">
              <SeriesTemplate Ref="115" SeriesDataMember="PRC_AFLS_34012_REPORT_SURVEY_DATASET4.IdPregunta" ArgumentDataMember="PRC_AFLS_34012_REPORT_SURVEY_DATASET4.calculatedField2" ValueDataMembersSerializable="PRC_AFLS_34012_REPORT_SURVEY_DATASET4.PromResponse" />
            </DataContainer>
            <Diagram Ref="116" TypeNameSerializable="XYDiagram">
              <AxisX Ref="117" Visibility="False" VisibleInPanesSerializable="-1" />
              <AxisY Ref="118" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="119" BackColor="255,246,246,246" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="120">
                  <ConnectorLineStyle Ref="121" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="122" BackColor="255,246,246,246" Name="Default Legend">
              <Border Ref="123" Visibility="False" />
            </Legend>
            <OptionsPrint Ref="124" ImageFormat="Metafile" />
            <Titles>
              <Item1 Ref="125" Text="Calificación por pregunta" Font="Tahoma, 9.75pt, charSet=0" TextColor="255,127,127,127" />
            </Titles>
            <XtraPaletteRepository>
              <Item1 Ref="126" Name="AFLS Custom" ScaleMode="Extrapolate">
                <Palette>
                  <Item1 Ref="127" Color="255,243,206,69" Color2="255,243,206,69" />
                  <Item2 Ref="128" Color="255,0,146,137" Color2="255,0,146,137" />
                  <Item3 Ref="129" Color="255,233,109,53" Color2="255,233,109,53" />
                  <Item4 Ref="130" Color="255,122,43,70" Color2="255,122,43,70" />
                  <Item5 Ref="131" Color="255,75,130,130" Color2="255,75,130,130" />
                  <Item6 Ref="132" Color="255,230,186,81" Color2="255,230,186,81" />
                  <Item7 Ref="133" Color="255,212,130,76" Color2="255,212,130,76" />
                  <Item8 Ref="134" Color="255,168,59,48" Color2="255,168,59,48" />
                </Palette>
              </Item1>
            </XtraPaletteRepository>
          </Chart>
          <StylePriority Ref="135" UseBackColor="false" />
        </Item2>
      </Controls>
    </Item6>
  </Bands>
  <Scripts Ref="136" OnParametersRequestBeforeShow="AFLS_Reporte_calificacion_ParametersRequestBeforeShow" />
  <StyleSheet>
    <Item1 Ref="137" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="PRC_AFLS_REPORT_DATASET_SURVEYS" ValueMember="prov_id" DisplayMember="survey_name" />
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="8" Content="System.Decimal" Type="System.Type" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(N'2015-02-04 16:44:20.247' AS DateTime), NULL, 1, 1, N'',  1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34013, @folder_AflsReportsInventory, N'Reporte General Mapas', 
N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="AFLS_Reporte_General_Mapas" Landscape="true" Margins="0, 1, 0, 20" PageWidth="1100" PageHeight="850" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataMember="Concepto" DataSource="#Ref-0">
  <Parameters>
    <Item1 Ref="3" Description="Fecha Inicial" ValueInfo="2019-10-01" Name="initDate" Type="#Ref-2" />
    <Item2 Ref="4" Description="Fecha Final" ValueInfo="2019-10-01" Name="endDate" Type="#Ref-2" />
    <Item3 Ref="7" Description="Rango" ValueSourceSettings="#Ref-5" ValueInfo="0" Name="Tiempo" Type="#Ref-6" />
    <Item4 Ref="9" Description="Tipo de Api" ValueSourceSettings="#Ref-8" ValueInfo="99" Name="TypeApi" Type="#Ref-6" />
    <Item5 Ref="11" Visible="false" Description="Diferencia Horaria" ValueInfo="0" Name="UTCoffSet" Type="#Ref-10" />
  </Parameters>
  <CalculatedFields>
    <Item1 Ref="12" Name="dateNow" Expression="AddMinutes(Now(),-1 * ?UTCoffSet)" />
  </CalculatedFields>
  <Bands>
    <Item1 Ref="13" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" />
    <Item2 Ref="14" ControlType="DetailBand" Name="Detail" HeightF="26.7083473">
      <MultiColumn Ref="15" ColumnCount="4" />
      <Controls>
        <Item1 Ref="16" ControlType="XRTable" Name="table2" SizeF="1078.99988,26.7083473" LocationFloat="10.0004034,0" Font="Tahoma, 10pt" ForeColor="255,0,154,145" BackColor="20,0,154,144" Padding="2,2,0,0,96" BorderColor="White" Borders="Top, Bottom" BorderWidth="3">
          <Rows>
            <Item1 Ref="17" ControlType="XRTableRow" Name="tableRow2" Weight="1" TextAlignment="MiddleLeft">
              <Cells>
                <Item1 Ref="18" ControlType="XRTableCell" Name="tableCell5" Weight="0.51545986538515476" Multiline="true" TextAlignment="TopCenter" Font="Tahoma, 9.75pt, style=Bold, charSet=0" ForeColor="255,0,154,144" BackColor="20,0,154,145" BorderColor="White" Borders="All" BorderWidth="3">
                  <ExpressionBindings>
                    <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[registros]" />
                  </ExpressionBindings>
                  <StylePriority Ref="20" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                </Item1>
                <Item2 Ref="21" ControlType="XRTableCell" Name="tableCell6" Weight="1.1256731399727895" Multiline="true" TextAlignment="TopCenter" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="WhiteSmoke" Borders="All">
                  <ExpressionBindings>
                    <Item1 Ref="22" EventName="BeforePrint" PropertyName="Text" Expression="[Concepto]" />
                  </ExpressionBindings>
                  <StylePriority Ref="23" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item2>
                <Item3 Ref="24" ControlType="XRTableCell" Name="tableCell7" Weight="1.3181727995492969" Multiline="true" TextAlignment="TopCenter" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="WhiteSmoke" Borders="All">
                  <ExpressionBindings>
                    <Item1 Ref="25" EventName="BeforePrint" PropertyName="Text" Expression="[Funcionalidad]" />
                  </ExpressionBindings>
                  <StylePriority Ref="26" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item3>
                <Item4 Ref="27" ControlType="XRTableCell" Name="tableCell8" Weight="1" Multiline="true" Text="[Total]" TextAlignment="TopCenter" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="WhiteSmoke" Borders="All">
                  <StylePriority Ref="28" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item4>
              </Cells>
              <StylePriority Ref="29" UseTextAlignment="false" />
            </Item1>
          </Rows>
          <StylePriority Ref="30" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" />
        </Item1>
      </Controls>
    </Item2>
    <Item3 Ref="31" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="19.791666" BorderColor="White">
      <StylePriority Ref="32" UseBorderColor="false" />
    </Item3>
    <Item4 Ref="33" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="26.7083435">
      <Controls>
        <Item1 Ref="34" ControlType="XRTable" Name="table1" SizeF="1079,26.7083435" LocationFloat="9.999959,0" Font="Tahoma, 10pt" ForeColor="255,0,154,145" BackColor="20,0,154,144" Padding="2,2,0,0,96" BorderColor="White" Borders="Top, Bottom" BorderWidth="3">
          <Rows>
            <Item1 Ref="35" ControlType="XRTableRow" Name="tableRow1" Weight="1" TextAlignment="MiddleLeft">
              <Cells>
                <Item1 Ref="36" ControlType="XRTableCell" Name="tableCell1" Weight="0.51545986538515476" Multiline="true" TextAlignment="TopCenter" Font="Arial, 10pt, style=Bold" ForeColor="255,0,154,144" BackColor="20,0,154,145" BorderColor="White" Borders="All" BorderWidth="3">
                  <StylePriority Ref="37" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                </Item1>
                <Item2 Ref="38" ControlType="XRTableCell" Name="tableCell2" Weight="1.1256731399727895" Multiline="true" Text="Concepto" TextAlignment="TopCenter" Font="Tahoma, 10pt, style=Bold" ForeColor="255,0,154,145" Borders="All">
                  <StylePriority Ref="39" UseFont="false" UseForeColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item2>
                <Item3 Ref="40" ControlType="XRTableCell" Name="tableCell3" Weight="1.3181727995492969" Multiline="true" Text="Funcionalidad" TextAlignment="TopCenter" Font="Tahoma, 10pt, style=Bold" ForeColor="255,0,154,145" Borders="All">
                  <StylePriority Ref="41" UseFont="false" UseForeColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item3>
                <Item4 Ref="42" ControlType="XRTableCell" Name="tableCell4" Weight="1" Multiline="true" Text="Total" TextAlignment="TopCenter" Font="Tahoma, 10pt, style=Bold" ForeColor="255,0,154,145" Borders="All">
                  <StylePriority Ref="43" UseFont="false" UseForeColor="false" UseBorders="false" UseTextAlignment="false" />
                </Item4>
              </Cells>
              <StylePriority Ref="44" UseTextAlignment="false" />
            </Item1>
          </Rows>
          <StylePriority Ref="45" UseFont="false" UseForeColor="false" UseBackColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" />
        </Item1>
      </Controls>
    </Item4>
    <Item5 Ref="46" ControlType="PageHeaderBand" Name="PageHeader" HeightF="153.125">
      <Controls>
        <Item1 Ref="47" ControlType="XRLabel" Name="label14" Multiline="true" Text="Página:" SizeF="50,23" LocationFloat="949.4166,18.5833359" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,100">
          <StylePriority Ref="48" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="49" ControlType="XRLabel" Name="label15" Multiline="true" Text="Hasta:" SizeF="48.9584351,23" LocationFloat="736.519,116.583321" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,100">
          <StylePriority Ref="50" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="51" ControlType="XRLabel" Name="label16" Multiline="true" Text="Parametro de Fecha:" SizeF="137.583435,23" LocationFloat="471.166626,93.5833359" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,100">
          <StylePriority Ref="52" UseFont="false" UseForeColor="false" />
        </Item3>
        <Item4 Ref="53" ControlType="XRLabel" Name="label17" Multiline="true" Text="Fecha de Creación:" SizeF="124.0417,23" LocationFloat="10.0000067,93.5833359" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,100">
          <StylePriority Ref="54" UseFont="false" UseForeColor="false" />
        </Item4>
        <Item5 Ref="55" ControlType="XRLabel" Name="label18" Multiline="true" Text="Compañia:" SizeF="72.9166641,23" LocationFloat="10.0000067,50.5833359" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,100">
          <StylePriority Ref="56" UseFont="false" UseForeColor="false" />
        </Item5>
        <Item6 Ref="57" ControlType="XRLabel" Name="label19" Multiline="true" Text="Consumo Consolidado de Geocoding Mapas" SizeF="352.0833,23" LocationFloat="10.0000067,18.5833359" Font="Tahoma, 13pt" ForeColor="255,0,154,144" Padding="2,2,0,0,100">
          <StylePriority Ref="58" UseFont="false" UseForeColor="false" />
        </Item6>
        <Item7 Ref="59" ControlType="XRLabel" Name="label20" Multiline="true" Text="API:" SizeF="32.291687,23.0000019" LocationFloat="10.0000067,116.583321" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,100">
          <StylePriority Ref="60" UseFont="false" UseForeColor="false" />
        </Item7>
        <Item8 Ref="61" ControlType="XRLabel" Name="label21" Multiline="true" Text="Desde:" SizeF="48.958374,23.0000019" LocationFloat="471.166626,116.583321" Font="Tahoma, 10pt" ForeColor="255,43,78,89" Padding="2,2,0,0,100">
          <StylePriority Ref="62" UseFont="false" UseForeColor="false" />
        </Item8>
        <Item9 Ref="63" ControlType="XRLabel" Name="label22" SizeF="302.036,23" LocationFloat="82.91667,50.5833359" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,145,145,145" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="64" EventName="BeforePrint" PropertyName="Text" Expression="[dbCompany.esta_name]" />
          </ExpressionBindings>
          <StylePriority Ref="65" UseFont="false" UseForeColor="false" />
        </Item9>
        <Item10 Ref="66" ControlType="XRLabel" Name="label23" TextFormatString="{0:dd/MM/yyyy}" SizeF="191.666687,23.0000076" LocationFloat="521.791565,116.583321" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,145,145,145" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="67" EventName="BeforePrint" PropertyName="Text" Expression="?initDate" />
          </ExpressionBindings>
          <StylePriority Ref="68" UseFont="false" UseForeColor="false" />
        </Item10>
        <Item11 Ref="69" ControlType="XRLabel" Name="label24" TextFormatString="{0:dd/MM/yyyy}" SizeF="203.125122,23.0000076" LocationFloat="785.477356,116.583321" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,145,145,145" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="70" EventName="BeforePrint" PropertyName="Text" Expression="?endDate" />
          </ExpressionBindings>
          <StylePriority Ref="71" UseFont="false" UseForeColor="false" />
        </Item11>
        <Item12 Ref="72" ControlType="XRPageInfo" Name="pageInfo1" SizeF="43.74994,22.9999981" LocationFloat="1007.29169,18.9999962" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,145,145,145" Padding="2,2,0,0,100">
          <StylePriority Ref="73" UseFont="false" UseForeColor="false" />
        </Item12>
        <Item13 Ref="74" ControlType="XRLabel" Name="label25" Text="label12" SizeF="334.4783,23.0000076" LocationFloat="50.47439,116.583321" Font="Tahoma, 9.75pt, charSet=0" ForeColor="255,145,145,145" Padding="2,2,0,0,100">
          <ExpressionBindings>
            <Item1 Ref="75" EventName="BeforePrint" PropertyName="Text" Expression="[NameApi.typeapi_name]" />
          </ExpressionBindings>
          <StylePriority Ref="76" UseFont="false" UseForeColor="false" />
        </Item13>
        <Item14 Ref="77" ControlType="XRLabel" Name="label26" CanGrow="false" Text="[dateNow]" TextAlignment="TopJustify" WordWrap="false" SizeF="219.791672,22.9999847" LocationFloat="134.0417,93.5833359" Font="Tahoma, 10pt" ForeColor="Gray" BackColor="Transparent" Padding="2,2,0,0,100">
          <Scripts Ref="78" OnAfterPrint="label12_AfterPrint" OnBeforePrint="label12_BeforePrint" />
          <StylePriority Ref="79" UseFont="false" UseForeColor="false" UseBackColor="false" UseTextAlignment="false" />
        </Item14>
      </Controls>
    </Item5>
    <Item6 Ref="80" ControlType="GroupHeaderBand" Name="GroupHeader2" Level="1" HeightF="257.291656">
      <Controls>
        <Item1 Ref="81" ControlType="XRChart" Name="chart1" BackColor="255,242,242,242" DataSource="#Ref-0" SizeF="1072.3335,226.041656" LocationFloat="16.666666,17.7083435" BorderColor="Black" Borders="None">
          <Chart Ref="82" PaletteName="Concourse" AppearanceNameSerializable="Chameleon" BackColor="255,242,242,242">
            <AutoSeriesCheckedInLegendStates>
              <Item1 Ref="83" AutoSeriesName="Series 3" CheckState="true" />
              <Item2 Ref="84" AutoSeriesName="Series 2" CheckState="true" />
              <Item3 Ref="85" AutoSeriesName="Series 1" CheckState="true" />
            </AutoSeriesCheckedInLegendStates>
            <DataContainer Ref="86" SeriesDataMember="V_AFLS_MAPS_API_USED_CONSOLIDATED.Api" ValidateDataMembers="true">
              <SeriesTemplate Ref="87" SeriesDataMember="V_AFLS_MAPS_API_USED_CONSOLIDATED.Api" ArgumentDataMember="V_AFLS_MAPS_API_USED_CONSOLIDATED.rang" ValueDataMembersSerializable="V_AFLS_MAPS_API_USED_CONSOLIDATED.Summary">
                <Label Ref="88" Position="Top" TypeNameSerializable="SideBySideBarSeriesLabel" />
              </SeriesTemplate>
            </DataContainer>
            <Diagram Ref="89" TypeNameSerializable="XYDiagram">
              <AxisX Ref="90" VisibleInPanesSerializable="-1" />
              <AxisY Ref="91" VisibleInPanesSerializable="-1" />
              <DefaultPane Ref="92" EnableAxisXScrolling="False" EnableAxisYScrolling="False" EnableAxisXZooming="False" EnableAxisYZooming="False">
                <StackedBarTotalLabel Ref="93">
                  <ConnectorLineStyle Ref="94" />
                </StackedBarTotalLabel>
              </DefaultPane>
            </Diagram>
            <Legend Ref="95" AlignmentHorizontal="Left" AlignmentVertical="BottomOutside" Direction="LeftToRight" Name="Default Legend" />
            <OptionsPrint Ref="96" ImageFormat="Metafile" />
          </Chart>
        </Item1>
      </Controls>
    </Item6>
  </Bands>
  <Scripts Ref="97" OnParametersRequestBeforeShow="AFLS_Reporte_General_Mapas_ParametersRequestBeforeShow" />
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="sqlDataSource1" Base64=" " />
  </ComponentStorage>
  <ObjectStorage>
    <Item1 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="2" Content="System.DateTime" Type="System.Type" />
    <Item2 Ref="5" ObjectType="DevExpress.XtraReports.Parameters.StaticListLookUpSettings, DevExpress.Printing.v21.2.Core">
      <LookUpValues>
        <Item1 Ref="99" Value="#Ref-98" Description="Seleccione un valor.." />
        <Item2 Ref="101" Value="#Ref-100" Description="Dias" />
        <Item3 Ref="103" Value="#Ref-102" Description="Meses" />
        <Item4 Ref="105" Value="#Ref-104" Description="Años" />
      </LookUpValues>
    </Item2>
    <Item3 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="6" Content="System.Int32" Type="System.Type" />
    <Item4 Ref="8" ObjectType="DevExpress.XtraReports.Parameters.DynamicListLookUpSettings, DevExpress.Printing.v21.2.Core" DataSource="#Ref-0" DataMember="TypeAPI" ValueMember="typeapi_id" DisplayMember="typeapi_name" FilterString="[typeapi_id] &gt; 0" />
    <Item5 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="10" Content="System.Decimal" Type="System.Type" />
    <Item6 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="98" Content="0" Type="System.Int32" />
    <Item7 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="100" Content="1" Type="System.Int32" />
    <Item8 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="102" Content="2" Type="System.Int32" />
    <Item9 ObjectType="DevExpress.XtraReports.Serialization.ObjectStorageInfo, DevExpress.XtraReports.v21.2" Ref="104" Content="3" Type="System.Int32" />
  </ObjectStorage>
</XtraReportsLayoutSerializer>', CAST(N'2015-02-04 16:44:20.247' AS DateTime), NULL, 1, 1,N'',  1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34014, @folder_AflsReportsInventory, N'Informacion Ubicaciones',
 N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report4" DisplayName="AFLS Informacion Ubicaciones" SnapGridSize="10" ReportUnit="Pixels" Margins="0, 0, 0, 55" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96">
  <Bands>
    <Item1 Ref="2" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="3" ControlType="DetailBand" Name="Detail" HeightF="0" Dpi="96" StyleName="generalStyle" />
    <Item3 Ref="4" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="55" Dpi="96" />
    <Item4 Ref="5" ControlType="PageHeaderBand" Name="PageHeader" HeightF="41" Dpi="96">
      <Controls>
        <Item1 Ref="6" ControlType="XRLabel" Name="label18" Text="Paginas:" SizeF="60,20" LocationFloat="779.385742,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="255,43,78,89" BackColor="Transparent" Padding="2,2,0,0,96">
          <StylePriority Ref="7" UseFont="false" UseForeColor="false" UseBackColor="false" />
        </Item1>
        <Item2 Ref="8" ControlType="XRLabel" Name="label1" Text="Información detallada ubicaciones" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,169,157" Padding="2,2,0,0,96">
          <StylePriority Ref="9" UseFont="false" UseForeColor="false" />
        </Item2>
        <Item3 Ref="10" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="840,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <StylePriority Ref="11" UseFont="false" UseForeColor="false" />
        </Item3>
      </Controls>
    </Item4>
    <Item5 Ref="12" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="PRC_AFLS_34014_REPORT_INFO_LOCATIONS" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="13" ControlType="DetailBand" Name="Detail1" HeightF="34.8399658" Dpi="96">
          <Controls>
            <Item1 Ref="14" ControlType="XRLabel" Name="label14" Multiline="true" Text="label14" SizeF="181.303284,22.08" LocationFloat="230.8219,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="15" EventName="BeforePrint" PropertyName="Text" Expression="[locationDescription]" />
              </ExpressionBindings>
            </Item1>
            <Item2 Ref="16" ControlType="XRLabel" Name="label12" Multiline="true" Text="label12" SizeF="163.910034,22.08" LocationFloat="632.3252,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="17" EventName="BeforePrint" PropertyName="Text" Expression="[locationParent]" />
              </ExpressionBindings>
            </Item2>
            <Item3 Ref="18" ControlType="XRLabel" Name="label10" Multiline="true" Text="label10" SizeF="73.76477,22.08" LocationFloat="796.2352,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[locationState]" />
              </ExpressionBindings>
            </Item3>
            <Item4 Ref="20" ControlType="XRLabel" Name="label8" Multiline="true" Text="label8" SizeF="110.100037,22.08" LocationFloat="522.225159,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="21" EventName="BeforePrint" PropertyName="Text" Expression="[locationType]" />
              </ExpressionBindings>
            </Item4>
            <Item5 Ref="22" ControlType="XRLabel" Name="label6" Multiline="true" Text="label6" SizeF="110.099976,22.08" LocationFloat="412.125183,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="23" EventName="BeforePrint" PropertyName="Text" Expression="[locationCategory]" />
              </ExpressionBindings>
            </Item5>
            <Item6 Ref="24" ControlType="XRLabel" Name="label4" Multiline="true" Text="label4" SizeF="163.869354,22.08" LocationFloat="66.9525452,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="25" EventName="BeforePrint" PropertyName="Text" Expression="[locationName]" />
              </ExpressionBindings>
            </Item6>
            <Item7 Ref="26" ControlType="XRLabel" Name="label2" Multiline="true" Text="label2" TextAlignment="TopRight" SizeF="56.9525452,22.08" LocationFloat="10,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="27" EventName="BeforePrint" PropertyName="Text" Expression="[locationId]" />
              </ExpressionBindings>
            </Item7>
          </Controls>
        </Item1>
        <Item2 Ref="28" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="51" Dpi="96">
          <Controls>
            <Item1 Ref="29" ControlType="XRTable" Name="table1" SizeF="860,35" LocationFloat="10,9" Dpi="96">
              <Rows>
                <Item1 Ref="30" ControlType="XRTableRow" Name="tableRow2" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="31" ControlType="XRTableCell" Name="tableCell7" Weight="0.061733374976334875" Text="Id" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="32" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="33" ControlType="XRTableCell" Name="tableCell8" Weight="0.17762523291751248" Text="Nombre" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="34" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="35" ControlType="XRTableCell" Name="tableCell1" Weight="0.19652264980831014" Multiline="true" Text="Descripción" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="36" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="37" ControlType="XRTableCell" Name="tableCell9" Weight="0.11934225312335842" Text="Categoria" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="38" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="39" ControlType="XRTableCell" Name="tableCell2" Weight="0.11934226139319654" Multiline="true" Text="Tipo" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="40" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="41" ControlType="XRTableCell" Name="tableCell10" Weight="0.17766930388974631" Text="Padre" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="42" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item6>
                    <Item7 Ref="43" ControlType="XRTableCell" Name="tableCell11" Weight="0.079956951726000383" Text="Estado" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="44" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item7>
                  </Cells>
                  <StylePriority Ref="45" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item2>
      </Bands>
    </Item5>
  </Bands>
  <Scripts Ref="46" OnParametersRequestBeforeShow="Report4_ParametersRequestBeforeShow" OnParametersRequestSubmit="Report4_ParametersRequestSubmit" />
  <StyleSheet>
    <Item1 Ref="47" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
    <Item2 Ref="48" Name="Style1" BorderStyle="Inset" Padding="2,2,0,0,96" Font="Tahoma, 8pt" ForeColor="Gray" StringFormat="Center;Center;FitBlackBox, LineLimit, NoClip;None;Character;GenericTypographic" TextAlignment="MiddleCenter" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64="PFNxbERhdGFTb3VyY2UgTmFtZT0iQUZMU19EYXRhc2V0Ij48Q29ubmVjdGlvbiBOYW1lPSJsb2NhbGhvc3RfQUZMU185XzVfMjdfMV9Db25uZWN0aW9uIiBQcm92aWRlcktleT0iTVNTcWxTZXJ2ZXIiPjxQYXJhbWV0ZXJzPjxQYXJhbWV0ZXIgTmFtZT0ic2VydmVyIiBWYWx1ZT0ic2VydmVyYmRhZmxzZmMuZGF0YWJhc2Uud2luZG93cy5uZXQiIC8+PFBhcmFtZXRlciBOYW1lPSJkYXRhYmFzZSIgVmFsdWU9IkFGTFNfOV81XzI3XzEiIC8+PFBhcmFtZXRlciBOYW1lPSJ1c2VJbnRlZ3JhdGVkU2VjdXJpdHkiIFZhbHVlPSJGYWxzZSIgLz48UGFyYW1ldGVyIE5hbWU9InJlYWQgb25seSIgVmFsdWU9IjEiIC8+PFBhcmFtZXRlciBOYW1lPSJnZW5lcmF0ZUNvbm5lY3Rpb25IZWxwZXIiIFZhbHVlPSJmYWxzZSIgLz48L1BhcmFtZXRlcnM+PC9Db25uZWN0aW9uPjxRdWVyeSBUeXBlPSJTdG9yZWRQcm9jUXVlcnkiIE5hbWU9IlBSQ19BRkxTXzM0MDE0X1JFUE9SVF9JTkZPX0xPQ0FUSU9OUyI+PFByb2NOYW1lPlBSQ19BRkxTXzM0MDE0X1JFUE9SVF9JTkZPX0xPQ0FUSU9OUzwvUHJvY05hbWU+PC9RdWVyeT48UmVzdWx0U2NoZW1hPjxEYXRhU2V0IE5hbWU9IkFGTFNfRGF0YXNldCI+PFZpZXcgTmFtZT0iUFJDX0FGTFNfMzQwMTRfUkVQT1JUX0lORk9fTE9DQVRJT05TIj48RmllbGQgTmFtZT0ibG9jYXRpb25JZCIgVHlwZT0iSW50MzIiIC8+PEZpZWxkIE5hbWU9ImxvY2F0aW9uTmFtZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJsb2NhdGlvbkRlc2NyaXB0aW9uIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9ImxvY2F0aW9uQ2F0ZWdvcnkiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0ibG9jYXRpb25UeXBlIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9ImxvY2F0aW9uUGFyZW50IiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9ImxvY2F0aW9uU3RhdGUiIFR5cGU9IlN0cmluZyIgLz48L1ZpZXc+PC9EYXRhU2V0PjwvUmVzdWx0U2NoZW1hPjxDb25uZWN0aW9uT3B0aW9ucyBDbG9zZUNvbm5lY3Rpb249InRydWUiIERiQ29tbWFuZFRpbWVvdXQ9IjAiIC8+PC9TcWxEYXRhU291cmNlPg==" />
  </ComponentStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2B2AC AS DateTime), NULL, 1, 1, N'', 1)
INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34015, @folder_AflsReportsInventory, N'Informacion Especialistas',
 N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report4" DisplayName="AFLS Informacion Especialistas" SnapGridSize="10" ReportUnit="Pixels" Margins="0, 0, 0, 55" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96">
  <Bands>
    <Item1 Ref="2" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="3" ControlType="DetailBand" Name="Detail" HeightF="0" Dpi="96" StyleName="generalStyle" />
    <Item3 Ref="4" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="55" Dpi="96" />
    <Item4 Ref="5" ControlType="PageHeaderBand" Name="PageHeader" HeightF="41" Dpi="96">
      <Controls>
        <Item1 Ref="6" ControlType="XRLabel" Name="label1" Text="Información detallada especialistas" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,169,157" Padding="2,2,0,0,96">
          <StylePriority Ref="7" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="8" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="840,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <StylePriority Ref="9" UseFont="false" UseForeColor="false" />
        </Item2>
      </Controls>
    </Item4>
    <Item5 Ref="10" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="PRC_AFLS_34015_REPORT_INFO_SPECIALISTS" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="11" ControlType="DetailBand" Name="Detail1" HeightF="34.8399658" Dpi="96">
          <Controls>
            <Item1 Ref="12" ControlType="XRLabel" Name="label19" Multiline="true" Text="label19" SizeF="90.79199,22.08" LocationFloat="779.208,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="13" EventName="BeforePrint" PropertyName="Text" Expression="[specialistState]" />
              </ExpressionBindings>
            </Item1>
            <Item2 Ref="14" ControlType="XRLabel" Name="label17" Multiline="true" Text="label17" SizeF="100.069824,22.08" LocationFloat="679.1382,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="15" EventName="BeforePrint" PropertyName="Text" Expression="[specialistProvider]" />
              </ExpressionBindings>
            </Item2>
            <Item3 Ref="16" ControlType="XRLabel" Name="label15" Multiline="true" Text="label15" SizeF="96,22.08" LocationFloat="583.1382,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="17" EventName="BeforePrint" PropertyName="Text" Expression="[specialistPosi]" />
              </ExpressionBindings>
            </Item3>
            <Item4 Ref="18" ControlType="XRLabel" Name="label13" Multiline="true" Text="label13" SizeF="100.219971,22.08" LocationFloat="478.518066,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[specialistVehi]" />
              </ExpressionBindings>
            </Item4>
            <Item5 Ref="20" ControlType="XRLabel" Name="label11" Multiline="true" Text="label11" SizeF="132.0166,22.08" LocationFloat="82.12573,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="21" EventName="BeforePrint" PropertyName="Text" Expression="[specialistUser]" />
              </ExpressionBindings>
            </Item5>
            <Item6 Ref="22" ControlType="XRLabel" Name="label8" Multiline="true" Text="label8" SizeF="264.375732,22.08" LocationFloat="214.142334,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="23" EventName="BeforePrint" PropertyName="Text" Expression="[specialistName]" />
              </ExpressionBindings>
            </Item6>
            <Item7 Ref="24" ControlType="XRLabel" Name="label4" Multiline="true" Text="label4" TextAlignment="TopRight" SizeF="72.12573,22.08" LocationFloat="10,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="25" EventName="BeforePrint" PropertyName="Text" Expression="[specialistId]" />
              </ExpressionBindings>
            </Item7>
          </Controls>
        </Item1>
        <Item2 Ref="26" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="45" Dpi="96">
          <Controls>
            <Item1 Ref="27" ControlType="XRTable" Name="table1" SizeF="860.000061,35" LocationFloat="10,5" Dpi="96">
              <Rows>
                <Item1 Ref="28" ControlType="XRTableRow" Name="tableRow2" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="29" ControlType="XRTableCell" Name="tableCell7" Weight="0.050525130287530619" Text="Id" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="30" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="31" ControlType="XRTableCell" Name="tableCell8" Weight="0.0924795575752738" Text="Usuario" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="32" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="33" ControlType="XRTableCell" Name="tableCell9" Weight="0.18519906480099338" Text="Nombre" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="34" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="35" ControlType="XRTableCell" Name="tableCell10" Weight="0.070205577735545671" Text="Vehiculo" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="36" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="37" ControlType="XRTableCell" Name="tableCell11" Weight="0.07033166864601878" Text="Cargo" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="38" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="39" ControlType="XRTableCell" Name="tableCell1" Weight="0.070100497902497283" Multiline="true" Text="Proveedor" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="40" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item6>
                    <Item7 Ref="41" ControlType="XRTableCell" Name="tableCell2" Weight="0.063601123297375661" Multiline="true" Text="Estado" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="42" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item7>
                  </Cells>
                  <StylePriority Ref="43" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item2>
      </Bands>
    </Item5>
  </Bands>
  <Scripts Ref="44" OnParametersRequestBeforeShow="Report4_ParametersRequestBeforeShow" OnParametersRequestSubmit="Report4_ParametersRequestSubmit" />
  <StyleSheet>
    <Item1 Ref="45" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
    <Item2 Ref="46" Name="Style1" BorderStyle="Inset" Padding="2,2,0,0,96" Font="Tahoma, 8pt" ForeColor="Gray" StringFormat="Center;Center;FitBlackBox, LineLimit, NoClip;None;Character;GenericTypographic" TextAlignment="MiddleCenter" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64="PFNxbERhdGFTb3VyY2UgTmFtZT0iQUZMU19EYXRhc2V0Ij48Q29ubmVjdGlvbiBOYW1lPSJsb2NhbGhvc3RfQUZMU19GQ185XzVfMTRfQ29ubmVjdGlvbiIgUHJvdmlkZXJLZXk9Ik1TU3FsU2VydmVyIj48UGFyYW1ldGVycz48UGFyYW1ldGVyIE5hbWU9InNlcnZlciIgVmFsdWU9InNlcnZlcmJkYWZscy5kYXRhYmFzZS53aW5kb3dzLm5ldCIgLz48UGFyYW1ldGVyIE5hbWU9ImRhdGFiYXNlIiBWYWx1ZT0iQUZMU19GQ185XzVfMTQiIC8+PFBhcmFtZXRlciBOYW1lPSJ1c2VJbnRlZ3JhdGVkU2VjdXJpdHkiIFZhbHVlPSJGYWxzZSIgLz48UGFyYW1ldGVyIE5hbWU9InJlYWQgb25seSIgVmFsdWU9IjEiIC8+PFBhcmFtZXRlciBOYW1lPSJnZW5lcmF0ZUNvbm5lY3Rpb25IZWxwZXIiIFZhbHVlPSJmYWxzZSIgLz48UGFyYW1ldGVyIE5hbWU9InVzZXJpZCIgVmFsdWU9IiIgLz48UGFyYW1ldGVyIE5hbWU9InBhc3N3b3JkIiBWYWx1ZT0iIiAvPjwvUGFyYW1ldGVycz48L0Nvbm5lY3Rpb24+PFF1ZXJ5IFR5cGU9IlN0b3JlZFByb2NRdWVyeSIgTmFtZT0iUFJDX0FGTFNfMzQwMTVfUkVQT1JUX0lORk9fU1BFQ0lBTElTVFMiPjxQcm9jTmFtZT5QUkNfQUZMU18zNDAxNV9SRVBPUlRfSU5GT19TUEVDSUFMSVNUUzwvUHJvY05hbWU+PC9RdWVyeT48UmVzdWx0U2NoZW1hPjxEYXRhU2V0IE5hbWU9IkFGTFNfRGF0YXNldCI+PFZpZXcgTmFtZT0iUFJDX0FGTFNfMzQwMTVfUkVQT1JUX0lORk9fU1BFQ0lBTElTVFMiPjxGaWVsZCBOYW1lPSJzcGVjaWFsaXN0SWQiIFR5cGU9IkludDMyIiAvPjxGaWVsZCBOYW1lPSJzcGVjaWFsaXN0VXNlciIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJzcGVjaWFsaXN0TmFtZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJzcGVjaWFsaXN0VmVoaSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJzcGVjaWFsaXN0UG9zaSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJzcGVjaWFsaXN0UHJvdmlkZXIiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0ic3BlY2lhbGlzdFN0YXRlIiBUeXBlPSJTdHJpbmciIC8+PC9WaWV3PjwvRGF0YVNldD48L1Jlc3VsdFNjaGVtYT48Q29ubmVjdGlvbk9wdGlvbnMgQ2xvc2VDb25uZWN0aW9uPSJ0cnVlIiBEYkNvbW1hbmRUaW1lb3V0PSIwIiAvPjwvU3FsRGF0YVNvdXJjZT4=" />
  </ComponentStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2B2AC AS DateTime), NULL, 1, 1, N'', 1)
 INSERT [dbo].[AQM_REPORT] ([repo_id], [repo_folder_id], [repo_name], [repo_report], [repo_create_date], [repo_modified_date], [repo_user_id_create], [repo_user_id_modified], [repo_description], [repo_order]) VALUES (34016, @folder_AflsReportsInventory, N'Informacion Productos',
 N'<?xml version="1.0" encoding="utf-8"?>
<XtraReportsLayoutSerializer SerializerVersion="21.2.6.0" Ref="1" ControlType="DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v21.2, Version=21.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Name="Report4" DisplayName="AFLS Informacion Productos" SnapGridSize="10" ReportUnit="Pixels" Margins="0, 0, 0, 55" PaperKind="Custom" PageWidth="880" PageHeight="1056" ScriptReferencesString="&#xD;&#xA;Aranda.AQM.Scripting.dll" Version="21.2" DataSource="#Ref-0" Dpi="96">
  <Bands>
    <Item1 Ref="2" ControlType="TopMarginBand" Name="TopMargin" HeightF="0" Dpi="96" />
    <Item2 Ref="3" ControlType="DetailBand" Name="Detail" HeightF="0" Dpi="96" StyleName="generalStyle" />
    <Item3 Ref="4" ControlType="BottomMarginBand" Name="BottomMargin" HeightF="55" Dpi="96" />
    <Item4 Ref="5" ControlType="PageHeaderBand" Name="PageHeader" HeightF="41" Dpi="96">
      <Controls>
        <Item1 Ref="6" ControlType="XRLabel" Name="label1" Text="Información detallada productos" SizeF="320,20" LocationFloat="10,10" Dpi="96" Font="Tahoma, 13pt" ForeColor="255,0,169,157" Padding="2,2,0,0,96">
          <StylePriority Ref="7" UseFont="false" UseForeColor="false" />
        </Item1>
        <Item2 Ref="8" ControlType="XRPageInfo" Name="pageInfo2" SizeF="30,20" LocationFloat="840,10" Dpi="96" Font="Tahoma, 10pt" ForeColor="Gray" Padding="2,2,0,0,96">
          <StylePriority Ref="9" UseFont="false" UseForeColor="false" />
        </Item2>
      </Controls>
    </Item4>
    <Item5 Ref="10" ControlType="DetailReportBand" Name="DetailReport" Level="0" DataMember="PRC_AFLS_34016_REPORT_INFO_PRODUCTS" DataSource="#Ref-0" Dpi="96">
      <Bands>
        <Item1 Ref="11" ControlType="DetailBand" Name="Detail1" HeightF="34.8399658" Dpi="96">
          <Controls>
            <Item1 Ref="12" ControlType="XRLabel" Name="label9" Multiline="true" Text="label9" SizeF="200.5857,22.08" LocationFloat="228.142334,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="13" EventName="BeforePrint" PropertyName="Text" Expression="[productDescription]" />
              </ExpressionBindings>
            </Item1>
            <Item2 Ref="14" ControlType="XRLabel" Name="label8" Multiline="true" Text="label8" SizeF="101.770264,22.08" LocationFloat="768.229736,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="15" EventName="BeforePrint" PropertyName="Text" Expression="[productState]" />
              </ExpressionBindings>
            </Item2>
            <Item3 Ref="16" ControlType="XRLabel" Name="label7" Multiline="true" Text="label7" TextAlignment="TopRight" SizeF="89.09155,22.08" LocationFloat="679.1382,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="17" EventName="BeforePrint" PropertyName="Text" Expression="[productMin]" />
              </ExpressionBindings>
            </Item3>
            <Item4 Ref="18" ControlType="XRLabel" Name="label6" Multiline="true" Text="label6" SizeF="100.400146,22.08" LocationFloat="578.738037,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="19" EventName="BeforePrint" PropertyName="Text" Expression="[productMea]" />
              </ExpressionBindings>
            </Item4>
            <Item5 Ref="20" ControlType="XRLabel" Name="label5" Multiline="true" Text="label5" SizeF="63.21997,22.08" LocationFloat="515.518066,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="21" EventName="BeforePrint" PropertyName="Text" Expression="[productSKU]" />
              </ExpressionBindings>
            </Item5>
            <Item6 Ref="22" ControlType="XRLabel" Name="label3" Multiline="true" Text="label3" SizeF="157.819336,22.08" LocationFloat="70.323,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="23" EventName="BeforePrint" PropertyName="Text" Expression="[productName]" />
              </ExpressionBindings>
            </Item6>
            <Item7 Ref="24" ControlType="XRLabel" Name="label2" Multiline="true" Text="label2" TextAlignment="TopRight" SizeF="60.322998,22.08" LocationFloat="10,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="25" EventName="BeforePrint" PropertyName="Text" Expression="[productId]" />
              </ExpressionBindings>
            </Item7>
            <Item8 Ref="26" ControlType="XRLabel" Name="label12" Multiline="true" Text="label12" SizeF="86.79004,22.08" LocationFloat="428.728027,0" Dpi="96" StyleName="Style1" Padding="2,2,0,0,96">
              <ExpressionBindings>
                <Item1 Ref="27" EventName="BeforePrint" PropertyName="Text" Expression="[product_type]" />
              </ExpressionBindings>
            </Item8>
          </Controls>
        </Item1>
        <Item2 Ref="28" ControlType="GroupHeaderBand" Name="GroupHeader1" RepeatEveryPage="true" HeightF="51" Dpi="96">
          <Controls>
            <Item1 Ref="29" ControlType="XRTable" Name="table1" SizeF="860,35" LocationFloat="10,8" Dpi="96">
              <Rows>
                <Item1 Ref="30" ControlType="XRTableRow" Name="tableRow2" Weight="18.4" TextAlignment="TopCenter" Dpi="96" Padding="5,5,5,5,96">
                  <Cells>
                    <Item1 Ref="31" ControlType="XRTableCell" Name="tableCell7" Weight="0.0427327350676166" Text="Id" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="32" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item1>
                    <Item2 Ref="33" ControlType="XRTableCell" Name="tableCell8" Weight="0.11179908963338592" Text="Nombre" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="34" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item2>
                    <Item3 Ref="35" ControlType="XRTableCell" Name="tableCell9" Weight="0.1420947800417782" Text="Descripción" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="36" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item3>
                    <Item4 Ref="37" ControlType="XRTableCell" Name="tableCell10" Weight="0.061481918850948919" Text="Tipo" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="38" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item4>
                    <Item5 Ref="39" ControlType="XRTableCell" Name="tableCell11" Weight="0.044784969706497313" Text="SKU" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="40" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item5>
                    <Item6 Ref="41" ControlType="XRTableCell" Name="tableCell1" Weight="0.071123371523102372" Multiline="true" Text="Medida" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="42" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item6>
                    <Item7 Ref="43" ControlType="XRTableCell" Name="tableCell2" Weight="0.0631123326757192" Multiline="true" Text="Cantidad Minima" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="44" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item7>
                    <Item8 Ref="45" ControlType="XRTableCell" Name="tableCell3" Weight="0.07209400623930419" Multiline="true" Text="Estado" TextAlignment="BottomCenter" Dpi="96" Font="Tahoma, 8pt" ForeColor="255,0,154,144" BorderColor="255,0,154,144" Borders="Bottom" BorderWidth="0.5">
                      <StylePriority Ref="46" UseFont="false" UseForeColor="false" UseBorderColor="false" UseBorders="false" UseBorderWidth="false" UseTextAlignment="false" />
                    </Item8>
                  </Cells>
                  <StylePriority Ref="47" UsePadding="false" UseTextAlignment="false" />
                </Item1>
              </Rows>
            </Item1>
          </Controls>
        </Item2>
      </Bands>
    </Item5>
  </Bands>
  <Scripts Ref="48" OnParametersRequestBeforeShow="Report4_ParametersRequestBeforeShow" OnParametersRequestSubmit="Report4_ParametersRequestSubmit" />
  <StyleSheet>
    <Item1 Ref="49" Name="generalStyle" BorderStyle="Inset" Padding="1,1,1,1,96" Font="Tahoma, 10pt, charSet=0" BackColor="White" BorderColor="White" StringFormat="Near;Near;0;None;Character;Default" TextAlignment="TopJustify" />
    <Item2 Ref="50" Name="Style1" BorderStyle="Inset" Padding="2,2,0,0,96" Font="Tahoma, 8pt" ForeColor="Gray" StringFormat="Center;Center;FitBlackBox, LineLimit, NoClip;None;Character;GenericTypographic" TextAlignment="MiddleCenter" />
    <Item3 Ref="51" Name="Style2" BorderStyle="Inset" Padding="2,2,0,0,96" Font="Tahoma, 8pt" ForeColor="Gray" StringFormat="Center;Center;FitBlackBox, LineLimit, NoClip;None;Character;GenericTypographic" TextAlignment="MiddleCenter" />
  </StyleSheet>
  <ComponentStorage>
    <Item1 Ref="0" ObjectType="DevExpress.DataAccess.Sql.SqlDataSource,DevExpress.DataAccess.v21.2" Name="AFLS_Dataset" Base64="PFNxbERhdGFTb3VyY2UgTmFtZT0iQUZMU19EYXRhc2V0Ij48Q29ubmVjdGlvbiBOYW1lPSJsb2NhbGhvc3RfQUZMU19KTV85XzVfMTZfQ0xfMl9Db25uZWN0aW9uIiBQcm92aWRlcktleT0iTVNTcWxTZXJ2ZXIiPjxQYXJhbWV0ZXJzPjxQYXJhbWV0ZXIgTmFtZT0ic2VydmVyIiBWYWx1ZT0ic2VydmVyYmRhZmxzZmMuZGF0YWJhc2Uud2luZG93cy5uZXQiIC8+PFBhcmFtZXRlciBOYW1lPSJkYXRhYmFzZSIgVmFsdWU9IkFGTFNfSk1fOV81XzE2X0NMXzIiIC8+PFBhcmFtZXRlciBOYW1lPSJ1c2VJbnRlZ3JhdGVkU2VjdXJpdHkiIFZhbHVlPSJGYWxzZSIgLz48UGFyYW1ldGVyIE5hbWU9InJlYWQgb25seSIgVmFsdWU9IjEiIC8+PFBhcmFtZXRlciBOYW1lPSJnZW5lcmF0ZUNvbm5lY3Rpb25IZWxwZXIiIFZhbHVlPSJmYWxzZSIgLz48UGFyYW1ldGVyIE5hbWU9InVzZXJpZCIgVmFsdWU9IiIgLz48UGFyYW1ldGVyIE5hbWU9InBhc3N3b3JkIiBWYWx1ZT0iIiAvPjwvUGFyYW1ldGVycz48L0Nvbm5lY3Rpb24+PFF1ZXJ5IFR5cGU9IlN0b3JlZFByb2NRdWVyeSIgTmFtZT0iUFJDX0FGTFNfMzQwMTZfUkVQT1JUX0lORk9fUFJPRFVDVFMiPjxQcm9jTmFtZT5QUkNfQUZMU18zNDAxNl9SRVBPUlRfSU5GT19QUk9EVUNUUzwvUHJvY05hbWU+PC9RdWVyeT48UmVzdWx0U2NoZW1hPjxEYXRhU2V0IE5hbWU9IkFGTFNfRGF0YXNldCI+PFZpZXcgTmFtZT0iUFJDX0FGTFNfMzQwMTZfUkVQT1JUX0lORk9fUFJPRFVDVFMiPjxGaWVsZCBOYW1lPSJwcm9kdWN0SWQiIFR5cGU9IkludDMyIiAvPjxGaWVsZCBOYW1lPSJwcm9kdWN0TmFtZSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJwcm9kdWN0RGVzY3JpcHRpb24iIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0icHJvZHVjdF90eXBlIiBUeXBlPSJTdHJpbmciIC8+PEZpZWxkIE5hbWU9InByb2R1Y3RTS1UiIFR5cGU9IlN0cmluZyIgLz48RmllbGQgTmFtZT0icHJvZHVjdE1lYSIgVHlwZT0iU3RyaW5nIiAvPjxGaWVsZCBOYW1lPSJwcm9kdWN0TWluIiBUeXBlPSJJbnQzMiIgLz48RmllbGQgTmFtZT0icHJvZHVjdFN0YXRlIiBUeXBlPSJTdHJpbmciIC8+PC9WaWV3PjwvRGF0YVNldD48L1Jlc3VsdFNjaGVtYT48Q29ubmVjdGlvbk9wdGlvbnMgQ2xvc2VDb25uZWN0aW9uPSJ0cnVlIiBEYkNvbW1hbmRUaW1lb3V0PSIwIiAvPjwvU3FsRGF0YVNvdXJjZT4=" />
  </ComponentStorage>
</XtraReportsLayoutSerializer>', CAST(0x0000A3A200C2B2AC AS DateTime), NULL, 1, 1, N'', 1)
GO
SET IDENTITY_INSERT [dbo].[AQM_REPORT] OFF

--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO


CREATE PROCEDURE [dbo].[MetadataInsert]
	@exau_id				INT, 
	@exau_name				VARCHAR(50),
	@exau_class_name		VARCHAR(255),
	@exau_asembly_path		VARCHAR(255)
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [AFW_EXTERNAL_AUTH_TYPES] WHERE [exau_id] = @exau_id )
		UPDATE [AFW_EXTERNAL_AUTH_TYPES]
		SET [exau_name] = @exau_name,
			[exau_class_name] = @exau_class_name,
			[exau_asembly_path]= @exau_asembly_path
		WHERE [exau_id] = @exau_id
	ELSE
		INSERT INTO [AFW_EXTERNAL_AUTH_TYPES](
			[exau_id],
			[exau_name],
			[exau_class_name],
			[exau_asembly_path]
		)VALUES(
			@exau_id,			
			@exau_name,			
			@exau_class_name,	
			@exau_asembly_path
		)
END
GO

EXEC [dbo].[MetadataInsert] 1, 'ASDK V8', 'Aranda.Implementation.ArandaV8Importer', 'Aranda.Implementation.dll'

Print 'AFW_EXTERNAL_AUTH_TYPES DONE!!'
GO

--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO
/*
Plantilla de script posterior a la implementación							
--------------------------------------------------------------------------------------
 Este archivo contiene instrucciones de SQL que se anexarán al script de compilación.		
 Use la sintaxis de SQLCMD para incluir un archivo en el script posterior a la implementación.			
 Ejemplo:      :r .\miArchivo.sql								
 Use la sintaxis de SQLCMD para hacer referencia a una variable en el script posterior a la implementación.		
 Ejemplo:      :setvar TableName miTabla							
               SELECT * FROM [$(TableName)]					
--------------------------------------------------------------------------------------
*/
Print 'AFW ROLE ACCESS OBJECT!'

DECLARE @RoleAccess INT
DECLARE @RoleMonitor INT

DECLARE @RoleAccessInv INT
DECLARE @RoleInventory INT

DECLARE @RoleAccessAdminManager INT
DECLARE @RoleCMManager INT
DECLARE @GroupAdministrators INT


SELECT @RoleMonitor = role_id FROM [AFW_ROLES] WHERE role_name = 'AFLS_Monitor'

SELECT @RoleAccess = roac_id 
FROM [AFW_ROLE_ACCESS] 
WHERE  [roac_role_id] = @RoleMonitor
				AND [roac_user_id] is null
				AND [roac_proj_id] is null
				AND [roac_proj_deny] = 0

				

EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @RoleAccess, 1, 34001

SELECT @RoleInventory = role_id FROM [AFW_ROLES] WHERE role_name = 'AFLS_Inventory'

SELECT @RoleAccessInv = roac_id 
FROM [AFW_ROLE_ACCESS] 
WHERE  [roac_role_id] = @RoleInventory
				AND [roac_user_id] is null
				AND [roac_proj_id] is null
				AND [roac_proj_deny] = 0

EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @RoleAccessInv, 1, 34002

SELECT @RoleCMManager = role_id FROM [AFW_ROLES] WHERE role_name = 'CMManager'
SELECT @GroupAdministrators = grou_id FROM [AFW_GROUPS] 
	WHERE grou_name = 'Administrators' 
		AND [grou_guid_ldap] IS null 
		AND [grou_authentication_id] = 0

SELECT @RoleAccessAdminManager = roac_id 
FROM [AFW_ROLE_ACCESS] 
WHERE [roac_grou_id] = @GroupAdministrators
	  AND [roac_role_id] = @RoleCMManager
				AND [roac_user_id] is null
				AND [roac_proj_id] is null
				AND [roac_proj_deny] = 0

EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @RoleAccessAdminManager, 1, 34002
EXEC [dbo].[METADATA_ROLE_ACCESS_OBJECT] @RoleAccessAdminManager, 1, 34001


Print 'AFW ROLE ACCESS OBJECT DONE!'



/*
--------------------------------------------------------------------------------------
Metadata Para Componentes
--------------------------------------------------------------------------------------

*/

IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO


CREATE PROCEDURE [dbo].[MetadataInsert]
	@id				INT,
	@name			VARCHAR(70)
AS
BEGIN
		IF EXISTS (SELECT 1  FROM [AFW_SURVEY_QUESTION_TYPE] WHERE Id = @id)
		UPDATE [AFW_SURVEY_QUESTION_TYPE]
			SET [Id] = @id,
				[Name] = @name
			WHERE Id = @id
		ELSE
			INSERT INTO [AFW_SURVEY_QUESTION_TYPE](
				[Id], 
				[Name]
			)VALUES(
				@id,
				@name
			)
		
END
GO

--METADATA
EXEC [dbo].[MetadataInsert] 1,'Ranking'
EXEC [dbo].[MetadataInsert] 2,'Open'
EXEC [dbo].[MetadataInsert] 3,'MultipleChoice'
EXEC [dbo].[MetadataInsert] 4,'MultipleResponse'
EXEC [dbo].[MetadataInsert] 5,'Mixed'
GO
Print 'AFW_SURVEY_QUESTION_TYPE DONE!!'


GO

Print 'AFW SURVEY!'
EXEC [dbo].[MD_AFW_SURVEY] 1,34,1, N'Queremos saber su opinión', N'Encuesta General de Satisfacción', N'Su retroalimentación es muy importante para nosotros. A través de esta encuesta podremos mejorar nuestro servicio. Conteste de la manera más honesta posible.'
PRINT 'AFW SURVEY DONE!'

Print 'AFW SURVEY QUESTION!'
EXEC [dbo].[MD_AFW_SURVEY_QUESTION] 1,1,1,'¿Cómo calificaría la actitud, disposición y conocimiento del especialista que atendió su solicitud en su domicilio?','Califique de 1 a 10, siendo 10 la calificación más alta y 1 la calificación más baja.',1,1,1,10,0,null,0,0
EXEC [dbo].[MD_AFW_SURVEY_QUESTION] 2,1,1,'¿Cómo calificaría la actitud, disposición y conocimiento del especialista que atendió su solicitud telefónicamente?','Califique de 1 a 10, siendo 10 la calificación más alta y 1 la calificación más baja.',1,2,1,10,0,null,0,0
EXEC [dbo].[MD_AFW_SURVEY_QUESTION] 3,1,1,'¿Cuál es su nivel de satisfacción general respecto a la solución brindada a su solicitud?','Califique de 1 a 10, siendo 10 la calificación más alta y 1 la calificación más baja.',1,3,1,10,0,null,0,0
EXEC [dbo].[MD_AFW_SURVEY_QUESTION] 4,1,1,'¿Cuál es su nivel de satisfacción respecto al tiempo de atención brindado a su solicitud?.','Califique de 1 a 10, siendo 10 la calificación más alta y 1 la calificación más baja.',1,4,1,10,0,null,0,0
EXEC [dbo].[MD_AFW_SURVEY_QUESTION] 5,2,1,'Observaciones Adicionales.','Por favor, siéntase libre de realizar observaciones adicionales que permitan mejorar nuestro servicio.',0,5,0,0,0,null,0,0
PRINT 'AFW SURVEY QUESTION DONE!'

Print 'AFW SURVEY CONFIGURATION!'
EXEC [dbo].[MD_AFW_SURVEY_CONFIGURATION] 1,0,1,5,'[]','[]',8
PRINT 'AFW SURVEY CONFIGURATION DONE!'

Print 'AFW ITEM MODEL!'
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@modelId int,
	@model_name			VARCHAR(50),
	@model_description	VARCHAR(255)
AS
BEGIN
	IF EXISTS (
				SELECT * FROM [AFW_ITEM_MODEL] 
				WHERE id = @modelId
				)
	BEGIN
		UPDATE [AFW_ITEM_MODEL]
		SET [name]	= @model_name,
			[description]	= @model_description		
		WHERE id = @modelId
	END 
	ELSE
	BEGIN	
	DECLARE @Id INT

	INSERT INTO [dbo].[AFW_ITEM_MODEL]
			   ([name]
			   ,[description]
			   ,[item_type_id]
			   ,[script])
		 VALUES
			   (@model_name
			   ,@model_description
			   ,NULL
			   ,NULL)

	SET @Id = @@IDENTITY;
	
	INSERT INTO [dbo].[AFLS_MODELS_EXTENSION]
			   ([model_id]
			   ,[survey_id])
		 VALUES
			   (@Id
			   ,1)
	END

END
GO

EXEC [dbo].[MetadataInsert] 1, N'Modelo Principal', N'Características comunes a los servicios de trabajo en campo.'



--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]	
	@name varchar(50),
	@description varchar(250)
	
AS
BEGIN
	IF EXISTS (SELECT 1 FROM AFW_ITEM_TIMES WHERE name = @name )
	BEGIN
		UPDATE [dbo].AFW_ITEM_TIMES
		   SET name = @name
			  ,description = @description
		 WHERE name = @name
    END
	ELSE
	BEGIN
	DECLARE @AgreementId INT
	SELECT @AgreementId = id FROM AFLS_TYPE_AGREEMENT WHERE name = 'SLA'
    INSERT INTO AFW_ITEM_TIMES (name,description,builtin_id,type_agree,is_deleted) VALUES
    (@name,@description,1,@AgreementId,0)	
	SET IDENTITY_INSERT AFW_ITEM_TIMES OFF
	END
END
GO

EXEC [dbo].[MetadataInsert] 'Tiempo de Ejecución','Tiempo definido para la ejecución de una orden de trabajo'
EXEC [dbo].[MetadataInsert] 'Tiempo de Atención','Tiempo definido para la atención de una orden de trabajo'
EXEC [dbo].[MetadataInsert] 'Tiempo de Solución','Tiempo definido para la solución de una orden de trabajo'

Print 'AFLS CHRONOMETERS DONE!!'
GO
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

--DROP OLD
Print 'AFLS WORKFLOW CATALOG STARTS..'
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@workflowId int,
	@workflow_name			VARCHAR(50),
	@workflow_description	VARCHAR(255),
	@workflow_default       VARCHAR(50)
AS
BEGIN
DECLARE @idCatalog AS INT
DECLARE @IdStateOpen AS INT
DECLARE @IdStateAssing AS INT
DECLARE @IdStateMoving AS INT
DECLARE @IdStateInProcess AS INT
DECLARE @IdStateWaiting AS INT
DECLARE @IdStateExecuted AS INT
DECLARE @IdStateCanceled AS INT
DECLARE @idStateEscal AS INT
DECLARE @idActionRoles AS INT
DECLARE @idActionChrono AS INT
DECLARE @idActionCost AS INT
DECLARE @idActionReasing AS INT

/* chronometers var for relations*/
DECLARE @CronometerSolutionId INT
DECLARE @CronometerAttempId INT
DECLARE @CronometerExecutionId INT


IF EXISTS (
				SELECT * FROM [AFW_STATEMACHINE_DEFINITION_CATALOGS] 
				WHERE deca_id = @workflowId
				)
		BEGIN
		UPDATE [AFW_STATEMACHINE_DEFINITION_CATALOGS]
		SET [deca_display_name]	= @workflow_name,
			[deca_description]	= @workflow_description	,
			[deca_is_default]	= @workflow_default	
		WHERE deca_id = @workflowId 
		  /** try create relations about chronometers and states */
		 SELECT @IdStateOpen = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'Sin Programar';
		 SELECT @IdStateAssing = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'Programada';
		 SELECT @IdStateMoving = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'En Desplazamiento';
		 SELECT @IdStateInProcess = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'En Proceso';
		 SELECT @idStateEscal = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'Escalada';
		 SELECT @IdStateWaiting = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'En Pausa';
		 
		 SELECT @CronometerSolutionId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Solución';
		 SELECT @CronometerAttempId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Atención';
		 SELECT @CronometerExecutionId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Ejecución';

		/* IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateOpen AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateOpen, @CronometerSolutionId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateOpen AND timeId=@CronometerAttempId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateOpen, @CronometerAttempId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateAssing AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateAssing, @CronometerSolutionId)
		  END

			 IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateAssing AND timeId=@CronometerAttempId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateAssing, @CronometerAttempId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateMoving AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateMoving, @CronometerSolutionId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateMoving AND timeId=@CronometerAttempId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateMoving, @CronometerAttempId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateInProcess AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateInProcess, @CronometerSolutionId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateInProcess AND timeId=@CronometerExecutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateInProcess, @CronometerExecutionId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@idStateEscal AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@idStateEscal, @CronometerSolutionId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateWaiting AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateWaiting, @CronometerSolutionId)
		  END
		  /* end try update chronometers and states relations */ 
		  */
		END
	ELSE
		BEGIN
		INSERT INTO [dbo].[AFW_STATEMACHINE_DEFINITION_CATALOGS]
			   ([deca_display_name]
			   ,[deca_description]
			   ,[deca_is_default])
		 VALUES
			   (@workflow_name
			   ,@workflow_description
			   , @workflow_default)

SET @idCatalog = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'Sin Programar',1,0,1,'Se asignará al especialista mejor calificado para atender esta orden. También lo puede hacer de manera manual. ')

 SET @IdStateOpen = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'Desplazamiento',0,0,2,'Estado Desplazamiento')

 SET @IdStateMoving = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'En Proceso',0,0,2,'Estado En Proceso')

 SET @IdStateInProcess = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'En Espera',0,0,2,'Estado En Espera')

 SET @IdStateWaiting = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'Ejecutado',0,1,4,'Estado Ejecutado')

 SET @IdStateExecuted = @@IDENTITY
 
 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'Cancelado',0,1,5,'Estado Cancelado')

SET @IdStateCanceled = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'Escalar',0,0,3,'Estado Escalar')
 
 SET @idStateEscal = @@IDENTITY

 
INSERT INTO AFW_STATEMACHINE_TRANSITION_CATALOGS 
(trca_state_catalogs_source_id,trca_state_catalogs_target_id,trca_display_name,trca_default_tran)
VALUES
(@IdStateOpen,@IdStateMoving,'Iniciar Desplazamiento',1),
(@IdStateMoving,@IdStateInProcess,'Iniciar Trabajo',1),
(@IdStateInProcess,@IdStateExecuted,'Finalizar',1),
(@IdStateMoving,@idStateEscal,'Escalar',0),
(@idStateEscal,@IdStateInProcess,'Reiniciar',0),
(@idStateEscal,@IdStateOpen,'Reasignar',0),
(@idStateEscal,@IdStateCanceled,'Cancelar',0),
(@IdStateInProcess,@IdStateWaiting,'Pausa',0),
(@IdStateWaiting,@IdStateInProcess,'Reiniciar',0),
(@IdStateOpen,@IdStateCanceled,'Cancelar',0)

IF NOT EXISTS (SELECT 1 FROM AFW_STATEMACHINE_ACTION_TYPE_CATALOGS WHERE actyca_name ='Roles') 
BEGIN
   INSERT INTO AFW_STATEMACHINE_ACTION_TYPE_CATALOGS
	SELECT 'Roles', 'Aranda.AFLS.BusinessRules','Roles'

	SET @idActionRoles = @@IDENTITY

END
ELSE
BEGIN
 SELECT @idActionRoles = actyca_id from AFW_STATEMACHINE_ACTION_TYPE_CATALOGS where actyca_name = 'Roles'
END


IF NOT EXISTS (SELECT 1 FROM AFW_STATEMACHINE_ACTION_TYPE_CATALOGS WHERE actyca_name ='Cronometros') 
BEGIN
   INSERT INTO AFW_STATEMACHINE_ACTION_TYPE_CATALOGS
	SELECT 'Cronometros', 'Aranda.AFLS.BusinessRules.StateMachineActions','ChronometersAction'

	SET @idActionChrono = @@IDENTITY

END
ELSE
BEGIN
 SELECT @idActionChrono = actyca_id from AFW_STATEMACHINE_ACTION_TYPE_CATALOGS where actyca_name = 'Cronometros'
END


IF NOT EXISTS (SELECT 1 FROM AFW_STATEMACHINE_ACTION_TYPE_CATALOGS WHERE actyca_name ='Costos') 
BEGIN
   INSERT INTO AFW_STATEMACHINE_ACTION_TYPE_CATALOGS
	SELECT 'Costos', 'Aranda.AFLS.BusinessRules.StateMachineActions','CostsAction'

	SET @idActionCost = @@IDENTITY

END
ELSE
BEGIN
 SELECT @idActionCost = actyca_id from AFW_STATEMACHINE_ACTION_TYPE_CATALOGS where actyca_name = 'Costos'
END


IF NOT EXISTS (SELECT 1 FROM AFW_STATEMACHINE_ACTION_TYPE_CATALOGS WHERE actyca_name ='Reasignar') 
BEGIN
   INSERT INTO AFW_STATEMACHINE_ACTION_TYPE_CATALOGS
	SELECT 'Reasignar', 'Aranda.AFLS.BusinessRules.StateMachineActions','ReassingAction'

	SET @idActionReasing = @@IDENTITY

END
ELSE
BEGIN
 SELECT @idActionReasing = actyca_id from AFW_STATEMACHINE_ACTION_TYPE_CATALOGS where actyca_name = 'Reasignar'
END



SET @idActionReasing = @@IDENTITY

INSERT AFW_STATEMACHINE_DEFINITIONS
SELECT 'General', 'Workflow general para afls', 1,1,GETDATE(),1,'{}',null

SET @idCatalog = @@IDENTITY


INSERT INTO AFLS_WORKFLOWS
SELECT @idCatalog,1,0,'General', 'Workflow general para afls',1

INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'Sin Programar',1,0,1,'Se asignará al especialista mejor calificado para atender esta orden. También lo puede hacer de manera manual. ',1)

 SET @IdStateOpen = @@IDENTITY

  INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'Programada',0,0,1,'Cuando inicie el desplazamiento para cumplir la cita con el cliente, presione el botón “Iniciar Desplazamiento”. Si tiene algún inconveniente presione "Escalar".',2)

 SET @IdStateAssing = @@IDENTITY


 INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'En Desplazamiento',0,0,2,'Presione “Iniciar Trabajo” cuando se haya contactado con el cliente. Si tiene algún inconveniente presione “Escalar”',3)

 SET @IdStateMoving = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'En Proceso',0,0,2,'Es hora de prestar el servicio en campo, una vez termine presione el botón “Finalizar”. Puede pausar la orden o escalarla si tiene algún inconveniente.',4)

 SET @IdStateInProcess = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'Escalada',0,0,2,'La orden fue escalada. Se encuentra en espera de información. ',5)
 
 SET @idStateEscal = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'En Pausa',0,0,2,'Para continuar trabajando en la orden presione “Retornar”',6)

 SET @IdStateWaiting = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'Ejecutada',0,1,4,'Esta orden se ejecutó satisfactoriamente.',7)

 SET @IdStateExecuted = @@IDENTITY
 
INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'Cancelada',0,1,5,'Esta orden fue cancelada y no se llevó a cabo su ejecución.',8)

SET @IdStateCanceled = @@IDENTITY



INSERT INTO AFW_STATEMACHINE_ACTION_TYPE_STATE
VALUES
(@IdStateOpen,1,'{"specialist":false,"dispatcher":false,"monitor":false}'),
(@IdStateOpen,@idActionChrono,'{}'),
(@IdStateOpen,4,'{}'),
(@IdStateAssing,1,'{"specialist":true,"dispatcher":false,"monitor":false}'),
(@IdStateAssing,@idActionChrono,'{}'),
(@IdStateMoving,1,'{"specialist":true,"dispatcher":false,"monitor":false}'),
(@IdStateMoving,@idActionChrono,'{}'),
(@IdStateMoving,@idActionCost,'{"displacement":true,"specialist":true}'),
(@IdStateInProcess,1,'{"specialist":true,"dispatcher":false,"monitor":false}'),
(@IdStateInProcess,@idActionChrono,'{}'),
(@IdStateInProcess,@idActionCost,'{"displacement":true,"specialist":true}'),
(@IdStateWaiting,1,'{"specialist":true,"dispatcher":false,"monitor":false}'),
(@IdStateWaiting,@idActionChrono,'{}'),
(@IdStateWaiting,@idActionCost,'{"displacement":false,"specialist":false}'),
(@IdStateExecuted,1,'{"specialist":true,"dispatcher":true,"monitor":true}'),
(@IdStateExecuted,@idActionChrono,'{}'),
(@IdStateExecuted,@idActionCost,'{"displacement":true,"specialist":true}'),
(@IdStateCanceled,1,'{"specialist":true,"dispatcher":true,"monitor":true}'),
(@IdStateCanceled,@idActionChrono,'{}'),
(@IdStateCanceled,@idActionCost,'{"displacement":true,"specialist":true}'),
(@idStateEscal,1,'{"specialist":false,"dispatcher":true,"monitor":true}'),
(@idStateEscal,@idActionChrono,'{}'),
(@idStateEscal,@idActionCost,'{"displacement":true,"specialist":true}')


DECLARE @idTranAsing AS INT
DECLARE @idTranIniDesp AS INT
DECLARE @idTranIniTra AS INT
DECLARE @idTranScale1 AS INT
DECLARE @idTranClose1 AS INT
DECLARE @idTranScale2 AS INT
DECLARE @idTranScale3 AS INT
DECLARE @idTranRestar1 AS INT
DECLARE @idTranReasing AS INT
DECLARE @idTranCancel1 AS INT
DECLARE @idTranPause AS INT
DECLARE @idTranRestar2 AS INT
DECLARE @idTranCancel2 AS INT


INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateOpen,@IdStateAssing,'Programar',1)

SET @idTranAsing = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateAssing,@IdStateMoving,'Iniciar Desplazamiento',1)

SET @idTranIniDesp = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateMoving,@IdStateInProcess,'Iniciar Trabajo',1)

SET @idTranIniTra = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateAssing,@idStateEscal,'Escalar',0)

SET @idTranScale1 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateInProcess,@IdStateExecuted,'Finalizar',1)

SET @idTranClose1 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateInProcess,@idStateEscal,'Escalar',0)

SET @idTranScale2 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateMoving,@idStateEscal,'Escalar',0)

SET @idTranScale3 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@idStateEscal,@IdStateInProcess,'Retornar',1)

SET @idTranRestar1 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@idStateEscal,@IdStateOpen,'Reasignar',0)

SET @idTranReasing = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@idStateEscal,@IdStateCanceled,'Cancelar',0)

SET @idTranCancel1 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateInProcess,@IdStateWaiting,'Pausar',0)

SET @idTranPause = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateWaiting,@IdStateInProcess,'Retornar',1)

SET @idTranRestar2 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateOpen,@IdStateCanceled,'Cancelar',0)

SET @idTranCancel2 = @@IDENTITY


INSERT INTO AFW_STATEMACHINE_REASON_TRANSITION
VALUES
(@idTranAsing, 'Asignación manual'),
(@idTranAsing, 'Asignación automática'),
(@idTranIniDesp, 'Voy a iniciar desplazamiento'),
(@idTranIniTra, 'Se inicia el trabajo'),
(@idTranScale1, 'Problema en el inventario'),
(@idTranScale1, 'Inconveniente para la ejecución'),
(@idTranScale1, 'Inconveniente del cliente'),
(@idTranScale1, 'Otra'),
(@idTranClose1, 'Finalización del trabajo'),
(@idTranClose1, 'Finalización con observaciones'),
(@idTranScale2, 'Problema en el inventario'),
(@idTranScale2, 'Imprevisto'),
(@idTranScale2, 'Inconveniente del cliente'),
(@idTranScale2, 'Otra'),

(@idTranScale3, 'Dirección no encontrada'),
(@idTranScale3, 'Solicitud de Cancelación'),
(@idTranScale3, 'Inconveniente del cliente'),
(@idTranScale3, 'Otra'),
(@idTranRestar1, 'Inconveniente solucionado'),
(@idTranReasing, 'Problema en el inventario'),
(@idTranReasing, 'Imprevisto'),
(@idTranReasing, 'Inconveniente del cliente'),
(@idTranReasing, 'Otra'),
(@idTranCancel1, 'Solicitud de cancelación'),
(@idTranCancel1, 'No es posible finalizar'),
(@idTranPause, 'Descanso'),
(@idTranPause, 'Solicitud del cliente'),
(@idTranPause, 'Otra'),
(@idTranRestar2, 'Se reanuda el trabajo'),
(@idTranCancel2, 'Solicitud del cliente'),
(@idTranCancel2, 'No se requiere servicio'),
(@idTranCancel2, 'Otra')



 SELECT @CronometerSolutionId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Solución';
 SELECT @CronometerAttempId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Atención';
 SELECT @CronometerExecutionId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Ejecución';


INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES
VALUES
(@IdStateOpen, @CronometerSolutionId),
(@IdStateOpen, @CronometerAttempId),
(@IdStateAssing, @CronometerSolutionId),
(@IdStateAssing, @CronometerAttempId),
(@IdStateMoving, @CronometerSolutionId),
(@IdStateMoving, @CronometerAttempId),
(@IdStateInProcess, @CronometerSolutionId),
(@IdStateInProcess, @CronometerExecutionId),
(@idStateEscal, @CronometerSolutionId),
(@IdStateWaiting, @CronometerSolutionId)
END
END
GO

EXEC [dbo].[MetadataInsert] 1, 'General', 'Workflow general para afls', 'true'
Print 'AFLS WORKFLOW CATALOG DONE!!'
GO
PRINT 'CATEGORYS ALERT DONE!'
GO

--METADATA
EXEC [dbo].[METADATA_ALERT_CATEGORY] 8, 1, NULL, 0,'Afls', NULL, 0
EXEC [dbo].[METADATA_ALERT_CATEGORY] 9, 1, 8, 0,'WorkOrder', NULL, 0
EXEC [dbo].[METADATA_ALERT_CATEGORY] 10, 1, 8, 0,'Inventory', NULL, 0
EXEC [dbo].[METADATA_ALERT_CATEGORY] 11, 1, 8, 0,'Survey', NULL, 0
EXEC [dbo].[METADATA_ALERT_CATEGORY] 12, 1, 8, 0,'AssigmentEngine', NULL, 0


GO

PRINT 'CATEGORYS ALERT DONE!'




/*
--------------------------------------------------------------------------------------
Metadata Para Componentes
--------------------------------------------------------------------------------------

*/

IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO


CREATE PROCEDURE [dbo].[MetadataInsert]
	@id				INT,
	@name			VARCHAR(70)
AS
BEGIN
		IF EXISTS (SELECT 1  FROM [AFW_SURVEY_QUESTION_TYPE] WHERE Id = @id)
		UPDATE [AFW_SURVEY_QUESTION_TYPE]
			SET [Id] = @id,
				[Name] = @name
			WHERE Id = @id
		ELSE
			INSERT INTO [AFW_SURVEY_QUESTION_TYPE](
				[Id], 
				[Name]
			)VALUES(
				@id,
				@name
			)
		
END
GO

--METADATA
EXEC [dbo].[MetadataInsert] 1,'Ranking'
EXEC [dbo].[MetadataInsert] 2,'Open'
EXEC [dbo].[MetadataInsert] 3,'MultipleChoice'
EXEC [dbo].[MetadataInsert] 4,'MultipleResponse'
EXEC [dbo].[MetadataInsert] 5,'Mixed'
GO
Print 'AFW_SURVEY_QUESTION_TYPE DONE!!'


GO

Print 'AFW SURVEY!'
EXEC [dbo].[MD_AFW_SURVEY] 1,34,1, N'Queremos saber su opinión', N'Encuesta General de Satisfacción', N'Su retroalimentación es muy importante para nosotros. A través de esta encuesta podremos mejorar nuestro servicio. Conteste de la manera más honesta posible.'
PRINT 'AFW SURVEY DONE!'

Print 'AFW SURVEY QUESTION!'
EXEC [dbo].[MD_AFW_SURVEY_QUESTION] 1,1,1,'¿Cómo calificaría la actitud, disposición y conocimiento del especialista que atendió su solicitud en su domicilio?','Califique de 1 a 10, siendo 10 la calificación más alta y 1 la calificación más baja.',1,1,1,10,0,null,0,0
EXEC [dbo].[MD_AFW_SURVEY_QUESTION] 2,1,1,'¿Cómo calificaría la actitud, disposición y conocimiento del especialista que atendió su solicitud telefónicamente?','Califique de 1 a 10, siendo 10 la calificación más alta y 1 la calificación más baja.',1,2,1,10,0,null,0,0
EXEC [dbo].[MD_AFW_SURVEY_QUESTION] 3,1,1,'¿Cuál es su nivel de satisfacción general respecto a la solución brindada a su solicitud?','Califique de 1 a 10, siendo 10 la calificación más alta y 1 la calificación más baja.',1,3,1,10,0,null,0,0
EXEC [dbo].[MD_AFW_SURVEY_QUESTION] 4,1,1,'¿Cuál es su nivel de satisfacción respecto al tiempo de atención brindado a su solicitud?.','Califique de 1 a 10, siendo 10 la calificación más alta y 1 la calificación más baja.',1,4,1,10,0,null,0,0
EXEC [dbo].[MD_AFW_SURVEY_QUESTION] 5,2,1,'Observaciones Adicionales.','Por favor, siéntase libre de realizar observaciones adicionales que permitan mejorar nuestro servicio.',0,5,0,0,0,null,0,0
PRINT 'AFW SURVEY QUESTION DONE!'

Print 'AFW SURVEY CONFIGURATION!'
EXEC [dbo].[MD_AFW_SURVEY_CONFIGURATION] 1,0,1,5,'[]','[]',8
PRINT 'AFW SURVEY CONFIGURATION DONE!'

Print 'AFW ITEM MODEL!'
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@modelId int,
	@model_name			VARCHAR(50),
	@model_description	VARCHAR(255)
AS
BEGIN
	IF EXISTS (
				SELECT * FROM [AFW_ITEM_MODEL] 
				WHERE id = @modelId
				)
	BEGIN
		UPDATE [AFW_ITEM_MODEL]
		SET [name]	= @model_name,
			[description]	= @model_description		
		WHERE id = @modelId
	END 
	ELSE
	BEGIN	
	DECLARE @Id INT

	INSERT INTO [dbo].[AFW_ITEM_MODEL]
			   ([name]
			   ,[description]
			   ,[item_type_id]
			   ,[script])
		 VALUES
			   (@model_name
			   ,@model_description
			   ,NULL
			   ,NULL)

	SET @Id = @@IDENTITY;
	
	INSERT INTO [dbo].[AFLS_MODELS_EXTENSION]
			   ([model_id]
			   ,[survey_id])
		 VALUES
			   (@Id
			   ,1)
	END

END
GO

EXEC [dbo].[MetadataInsert] 1, N'Modelo Principal', N'Características comunes a los servicios de trabajo en campo.'



--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]	
	@name varchar(50),
	@description varchar(250)
	
AS
BEGIN
	IF EXISTS (SELECT 1 FROM AFW_ITEM_TIMES WHERE name = @name )
	BEGIN
		UPDATE [dbo].AFW_ITEM_TIMES
		   SET name = @name
			  ,description = @description
		 WHERE name = @name
    END
	ELSE
	BEGIN
	DECLARE @AgreementId INT
	SELECT @AgreementId = id FROM AFLS_TYPE_AGREEMENT WHERE name = 'SLA'
    INSERT INTO AFW_ITEM_TIMES (name,description,builtin_id,type_agree,is_deleted) VALUES
    (@name,@description,1,@AgreementId,0)	
	SET IDENTITY_INSERT AFW_ITEM_TIMES OFF
	END
END
GO

EXEC [dbo].[MetadataInsert] 'Tiempo de Ejecución','Tiempo definido para la ejecución de una orden de trabajo'
EXEC [dbo].[MetadataInsert] 'Tiempo de Atención','Tiempo definido para la atención de una orden de trabajo'
EXEC [dbo].[MetadataInsert] 'Tiempo de Solución','Tiempo definido para la solución de una orden de trabajo'

Print 'AFLS CHRONOMETERS DONE!!'
GO
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

--DROP OLD
Print 'AFLS WORKFLOW CATALOG STARTS..'
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@workflowId int,
	@workflow_name			VARCHAR(50),
	@workflow_description	VARCHAR(255),
	@workflow_default       VARCHAR(50)
AS
BEGIN
DECLARE @idCatalog AS INT
DECLARE @IdStateOpen AS INT
DECLARE @IdStateAssing AS INT
DECLARE @IdStateMoving AS INT
DECLARE @IdStateInProcess AS INT
DECLARE @IdStateWaiting AS INT
DECLARE @IdStateExecuted AS INT
DECLARE @IdStateCanceled AS INT
DECLARE @idStateEscal AS INT
DECLARE @idActionRoles AS INT
DECLARE @idActionChrono AS INT
DECLARE @idActionCost AS INT
DECLARE @idActionReasing AS INT

/* chronometers var for relations*/
DECLARE @CronometerSolutionId INT
DECLARE @CronometerAttempId INT
DECLARE @CronometerExecutionId INT


IF EXISTS (
				SELECT * FROM [AFW_STATEMACHINE_DEFINITION_CATALOGS] 
				WHERE deca_id = @workflowId
				)
		BEGIN
		UPDATE [AFW_STATEMACHINE_DEFINITION_CATALOGS]
		SET [deca_display_name]	= @workflow_name,
			[deca_description]	= @workflow_description	,
			[deca_is_default]	= @workflow_default	
		WHERE deca_id = @workflowId 
		  /** try create relations about chronometers and states */
		 SELECT @IdStateOpen = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'Sin Programar';
		 SELECT @IdStateAssing = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'Programada';
		 SELECT @IdStateMoving = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'En Desplazamiento';
		 SELECT @IdStateInProcess = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'En Proceso';
		 SELECT @idStateEscal = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'Escalada';
		 SELECT @IdStateWaiting = st_id FROM AFW_STATEMACHINE_STATES WHERE st_display_name = 'En Pausa';
		 
		 SELECT @CronometerSolutionId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Solución';
		 SELECT @CronometerAttempId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Atención';
		 SELECT @CronometerExecutionId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Ejecución';

		/* IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateOpen AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateOpen, @CronometerSolutionId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateOpen AND timeId=@CronometerAttempId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateOpen, @CronometerAttempId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateAssing AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateAssing, @CronometerSolutionId)
		  END

			 IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateAssing AND timeId=@CronometerAttempId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateAssing, @CronometerAttempId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateMoving AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateMoving, @CronometerSolutionId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateMoving AND timeId=@CronometerAttempId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateMoving, @CronometerAttempId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateInProcess AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateInProcess, @CronometerSolutionId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateInProcess AND timeId=@CronometerExecutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateInProcess, @CronometerExecutionId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@idStateEscal AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@idStateEscal, @CronometerSolutionId)
		  END

		   IF NOT EXISTS(SELECT * 
		  FROM [AFW_STATEMACHINE_STATES_BY_ITEM_TIMES]
		  WHERE stateId=@IdStateWaiting AND timeId=@CronometerSolutionId)
		  BEGIN
		   INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES VALUES (@IdStateWaiting, @CronometerSolutionId)
		  END
		  /* end try update chronometers and states relations */ 
		  */
		END
	ELSE
		BEGIN
		INSERT INTO [dbo].[AFW_STATEMACHINE_DEFINITION_CATALOGS]
			   ([deca_display_name]
			   ,[deca_description]
			   ,[deca_is_default])
		 VALUES
			   (@workflow_name
			   ,@workflow_description
			   , @workflow_default)

SET @idCatalog = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'Sin Programar',1,0,1,'Se asignará al especialista mejor calificado para atender esta orden. También lo puede hacer de manera manual. ')

 SET @IdStateOpen = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'Desplazamiento',0,0,2,'Estado Desplazamiento')

 SET @IdStateMoving = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'En Proceso',0,0,2,'Estado En Proceso')

 SET @IdStateInProcess = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'En Espera',0,0,2,'Estado En Espera')

 SET @IdStateWaiting = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'Ejecutado',0,1,4,'Estado Ejecutado')

 SET @IdStateExecuted = @@IDENTITY
 
 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'Cancelado',0,1,5,'Estado Cancelado')

SET @IdStateCanceled = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATE_CATALOGS 
(stca_definition_catalogs_id,stca_display_name,stca_is_initial,stca_is_end,stca_reference_app_id,stca_help_description)
VALUES
 (@idCatalog, 'Escalar',0,0,3,'Estado Escalar')
 
 SET @idStateEscal = @@IDENTITY

 
INSERT INTO AFW_STATEMACHINE_TRANSITION_CATALOGS 
(trca_state_catalogs_source_id,trca_state_catalogs_target_id,trca_display_name,trca_default_tran)
VALUES
(@IdStateOpen,@IdStateMoving,'Iniciar Desplazamiento',1),
(@IdStateMoving,@IdStateInProcess,'Iniciar Trabajo',1),
(@IdStateInProcess,@IdStateExecuted,'Finalizar',1),
(@IdStateMoving,@idStateEscal,'Escalar',0),
(@idStateEscal,@IdStateInProcess,'Reiniciar',0),
(@idStateEscal,@IdStateOpen,'Reasignar',0),
(@idStateEscal,@IdStateCanceled,'Cancelar',0),
(@IdStateInProcess,@IdStateWaiting,'Pausa',0),
(@IdStateWaiting,@IdStateInProcess,'Reiniciar',0),
(@IdStateOpen,@IdStateCanceled,'Cancelar',0)

IF NOT EXISTS (SELECT 1 FROM AFW_STATEMACHINE_ACTION_TYPE_CATALOGS WHERE actyca_name ='Roles') 
BEGIN
   INSERT INTO AFW_STATEMACHINE_ACTION_TYPE_CATALOGS
	SELECT 'Roles', 'Aranda.AFLS.BusinessRules','Roles'

	SET @idActionRoles = @@IDENTITY

END
ELSE
BEGIN
 SELECT @idActionRoles = actyca_id from AFW_STATEMACHINE_ACTION_TYPE_CATALOGS where actyca_name = 'Roles'
END


IF NOT EXISTS (SELECT 1 FROM AFW_STATEMACHINE_ACTION_TYPE_CATALOGS WHERE actyca_name ='Cronometros') 
BEGIN
   INSERT INTO AFW_STATEMACHINE_ACTION_TYPE_CATALOGS
	SELECT 'Cronometros', 'Aranda.AFLS.BusinessRules.StateMachineActions','ChronometersAction'

	SET @idActionChrono = @@IDENTITY

END
ELSE
BEGIN
 SELECT @idActionChrono = actyca_id from AFW_STATEMACHINE_ACTION_TYPE_CATALOGS where actyca_name = 'Cronometros'
END


IF NOT EXISTS (SELECT 1 FROM AFW_STATEMACHINE_ACTION_TYPE_CATALOGS WHERE actyca_name ='Costos') 
BEGIN
   INSERT INTO AFW_STATEMACHINE_ACTION_TYPE_CATALOGS
	SELECT 'Costos', 'Aranda.AFLS.BusinessRules.StateMachineActions','CostsAction'

	SET @idActionCost = @@IDENTITY

END
ELSE
BEGIN
 SELECT @idActionCost = actyca_id from AFW_STATEMACHINE_ACTION_TYPE_CATALOGS where actyca_name = 'Costos'
END


IF NOT EXISTS (SELECT 1 FROM AFW_STATEMACHINE_ACTION_TYPE_CATALOGS WHERE actyca_name ='Reasignar') 
BEGIN
   INSERT INTO AFW_STATEMACHINE_ACTION_TYPE_CATALOGS
	SELECT 'Reasignar', 'Aranda.AFLS.BusinessRules.StateMachineActions','ReassingAction'

	SET @idActionReasing = @@IDENTITY

END
ELSE
BEGIN
 SELECT @idActionReasing = actyca_id from AFW_STATEMACHINE_ACTION_TYPE_CATALOGS where actyca_name = 'Reasignar'
END



SET @idActionReasing = @@IDENTITY

INSERT AFW_STATEMACHINE_DEFINITIONS
SELECT 'General', 'Workflow general para afls', 1,1,GETDATE(),1,'{}',null

SET @idCatalog = @@IDENTITY


INSERT INTO AFLS_WORKFLOWS
SELECT @idCatalog,1,0,'General', 'Workflow general para afls',1

INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'Sin Programar',1,0,1,'Se asignará al especialista mejor calificado para atender esta orden. También lo puede hacer de manera manual. ',1)

 SET @IdStateOpen = @@IDENTITY

  INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'Programada',0,0,1,'Cuando inicie el desplazamiento para cumplir la cita con el cliente, presione el botón “Iniciar Desplazamiento”. Si tiene algún inconveniente presione "Escalar".',2)

 SET @IdStateAssing = @@IDENTITY


 INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'En Desplazamiento',0,0,2,'Presione “Iniciar Trabajo” cuando se haya contactado con el cliente. Si tiene algún inconveniente presione “Escalar”',3)

 SET @IdStateMoving = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'En Proceso',0,0,2,'Es hora de prestar el servicio en campo, una vez termine presione el botón “Finalizar”. Puede pausar la orden o escalarla si tiene algún inconveniente.',4)

 SET @IdStateInProcess = @@IDENTITY

 INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'Escalada',0,0,2,'La orden fue escalada. Se encuentra en espera de información. ',5)
 
 SET @idStateEscal = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'En Pausa',0,0,2,'Para continuar trabajando en la orden presione “Retornar”',6)

 SET @IdStateWaiting = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'Ejecutada',0,1,4,'Esta orden se ejecutó satisfactoriamente.',7)

 SET @IdStateExecuted = @@IDENTITY
 
INSERT INTO AFW_STATEMACHINE_STATES
(de_definition_id,st_display_name,st_is_initial,st_is_end,st_reference_app_id,st_help_description,st_position_number)
VALUES
 (@idCatalog, 'Cancelada',0,1,5,'Esta orden fue cancelada y no se llevó a cabo su ejecución.',8)

SET @IdStateCanceled = @@IDENTITY



INSERT INTO AFW_STATEMACHINE_ACTION_TYPE_STATE
VALUES
(@IdStateOpen,1,'{"specialist":false,"dispatcher":false,"monitor":false}'),
(@IdStateOpen,@idActionChrono,'{}'),
(@IdStateOpen,4,'{}'),
(@IdStateAssing,1,'{"specialist":true,"dispatcher":false,"monitor":false}'),
(@IdStateAssing,@idActionChrono,'{}'),
(@IdStateMoving,1,'{"specialist":true,"dispatcher":false,"monitor":false}'),
(@IdStateMoving,@idActionChrono,'{}'),
(@IdStateMoving,@idActionCost,'{"displacement":true,"specialist":true}'),
(@IdStateInProcess,1,'{"specialist":true,"dispatcher":false,"monitor":false}'),
(@IdStateInProcess,@idActionChrono,'{}'),
(@IdStateInProcess,@idActionCost,'{"displacement":true,"specialist":true}'),
(@IdStateWaiting,1,'{"specialist":true,"dispatcher":false,"monitor":false}'),
(@IdStateWaiting,@idActionChrono,'{}'),
(@IdStateWaiting,@idActionCost,'{"displacement":false,"specialist":false}'),
(@IdStateExecuted,1,'{"specialist":true,"dispatcher":true,"monitor":true}'),
(@IdStateExecuted,@idActionChrono,'{}'),
(@IdStateExecuted,@idActionCost,'{"displacement":true,"specialist":true}'),
(@IdStateCanceled,1,'{"specialist":true,"dispatcher":true,"monitor":true}'),
(@IdStateCanceled,@idActionChrono,'{}'),
(@IdStateCanceled,@idActionCost,'{"displacement":true,"specialist":true}'),
(@idStateEscal,1,'{"specialist":false,"dispatcher":true,"monitor":true}'),
(@idStateEscal,@idActionChrono,'{}'),
(@idStateEscal,@idActionCost,'{"displacement":true,"specialist":true}')


DECLARE @idTranAsing AS INT
DECLARE @idTranIniDesp AS INT
DECLARE @idTranIniTra AS INT
DECLARE @idTranScale1 AS INT
DECLARE @idTranClose1 AS INT
DECLARE @idTranScale2 AS INT
DECLARE @idTranScale3 AS INT
DECLARE @idTranRestar1 AS INT
DECLARE @idTranReasing AS INT
DECLARE @idTranCancel1 AS INT
DECLARE @idTranPause AS INT
DECLARE @idTranRestar2 AS INT
DECLARE @idTranCancel2 AS INT


INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateOpen,@IdStateAssing,'Programar',1)

SET @idTranAsing = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateAssing,@IdStateMoving,'Iniciar Desplazamiento',1)

SET @idTranIniDesp = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateMoving,@IdStateInProcess,'Iniciar Trabajo',1)

SET @idTranIniTra = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateAssing,@idStateEscal,'Escalar',0)

SET @idTranScale1 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateInProcess,@IdStateExecuted,'Finalizar',1)

SET @idTranClose1 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateInProcess,@idStateEscal,'Escalar',0)

SET @idTranScale2 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateMoving,@idStateEscal,'Escalar',0)

SET @idTranScale3 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@idStateEscal,@IdStateInProcess,'Retornar',1)

SET @idTranRestar1 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@idStateEscal,@IdStateOpen,'Reasignar',0)

SET @idTranReasing = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@idStateEscal,@IdStateCanceled,'Cancelar',0)

SET @idTranCancel1 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateInProcess,@IdStateWaiting,'Pausar',0)

SET @idTranPause = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateWaiting,@IdStateInProcess,'Retornar',1)

SET @idTranRestar2 = @@IDENTITY

INSERT INTO AFW_STATEMACHINE_TRANSITIONS
(tr_state_catalogs_source_id,tr_state_catalogs_target_id,tr_display_name,tr_default_tran)
VALUES
(@IdStateOpen,@IdStateCanceled,'Cancelar',0)

SET @idTranCancel2 = @@IDENTITY


INSERT INTO AFW_STATEMACHINE_REASON_TRANSITION
VALUES
(@idTranAsing, 'Asignación manual'),
(@idTranAsing, 'Asignación automática'),
(@idTranIniDesp, 'Voy a iniciar desplazamiento'),
(@idTranIniTra, 'Se inicia el trabajo'),
(@idTranScale1, 'Problema en el inventario'),
(@idTranScale1, 'Inconveniente para la ejecución'),
(@idTranScale1, 'Inconveniente del cliente'),
(@idTranScale1, 'Otra'),
(@idTranClose1, 'Finalización del trabajo'),
(@idTranClose1, 'Finalización con observaciones'),
(@idTranScale2, 'Problema en el inventario'),
(@idTranScale2, 'Imprevisto'),
(@idTranScale2, 'Inconveniente del cliente'),
(@idTranScale2, 'Otra'),

(@idTranScale3, 'Dirección no encontrada'),
(@idTranScale3, 'Solicitud de Cancelación'),
(@idTranScale3, 'Inconveniente del cliente'),
(@idTranScale3, 'Otra'),
(@idTranRestar1, 'Inconveniente solucionado'),
(@idTranReasing, 'Problema en el inventario'),
(@idTranReasing, 'Imprevisto'),
(@idTranReasing, 'Inconveniente del cliente'),
(@idTranReasing, 'Otra'),
(@idTranCancel1, 'Solicitud de cancelación'),
(@idTranCancel1, 'No es posible finalizar'),
(@idTranPause, 'Descanso'),
(@idTranPause, 'Solicitud del cliente'),
(@idTranPause, 'Otra'),
(@idTranRestar2, 'Se reanuda el trabajo'),
(@idTranCancel2, 'Solicitud del cliente'),
(@idTranCancel2, 'No se requiere servicio'),
(@idTranCancel2, 'Otra')



 SELECT @CronometerSolutionId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Solución';
 SELECT @CronometerAttempId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Atención';
 SELECT @CronometerExecutionId = id FROM AFW_ITEM_TIMES WHERE name = 'Tiempo de Ejecución';


INSERT INTO AFW_STATEMACHINE_STATES_BY_ITEM_TIMES
VALUES
(@IdStateOpen, @CronometerSolutionId),
(@IdStateOpen, @CronometerAttempId),
(@IdStateAssing, @CronometerSolutionId),
(@IdStateAssing, @CronometerAttempId),
(@IdStateMoving, @CronometerSolutionId),
(@IdStateMoving, @CronometerAttempId),
(@IdStateInProcess, @CronometerSolutionId),
(@IdStateInProcess, @CronometerExecutionId),
(@idStateEscal, @CronometerSolutionId),
(@IdStateWaiting, @CronometerSolutionId)
END
END
GO

EXEC [dbo].[MetadataInsert] 1, 'General', 'Workflow general para afls', 'true'
Print 'AFLS WORKFLOW CATALOG DONE!!'
GO
  IF NOT EXISTS (SELECT 1 FROM AFW_PROJECTS WHERE proj_id = 1 )
	BEGIN
	SET IDENTITY_INSERT AFW_PROJECTS ON
   
	INSERT INTO AFW_PROJECTS (proj_id,proj_name,proj_owner_id,proj_state,proj_description)
	SELECT 1,'Base',1,1,''

	SET IDENTITY_INSERT AFW_PROJECTS OFF
	END
  


/* Inventory Metadata */
EXEC [dbo].[MD_AFLS_INV_LOCATION_TYPES] 1, 'Headquarters', 'aslt_headquarters_label';
EXEC [dbo].[MD_AFLS_INV_LOCATION_TYPES] 2, 'Transport', 'asly_transports_label';
EXEC [dbo].[MD_AFLS_INV_LOCATION_TYPES] 3, 'Area', 'asly_area_label';



EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 1, 'Building', 'aslc_building_label', 1;
EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 2, 'Store', 'aslc_store_label', 1;
EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 3, 'Warehouse', 'aslc_warehouse_label', 1;	
EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 4, 'Vehicle', 'ascl_vehicle_label', 2;
EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 5, 'Van', 'ascl_van_label', 2;
EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 6, 'Shelf', 'aslc_shelf_label', 3;
EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 7, 'Floor', 'aslc_floor_label', 3;
EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 8, 'Box', 'aslc_box_label', 3;
EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 9, 'Closet', 'aslc_closet_label', 3;
EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 10, 'Bin', 'aslc_bin_label', 3;
EXEC [dbo].[MD_AFLS_INV_LOCATION_CATEGORIES] 11, 'Room', 'aslc_room_label', 3;


EXEC MD_AFLS_INV_MOVEMENT_TYPES 1,'Entry',1;
EXEC MD_AFLS_INV_MOVEMENT_TYPES 2,'Exit',0;
EXEC MD_AFLS_INV_MOVEMENT_TYPES 3,'Transfer',2;
EXEC MD_AFLS_INV_MOVEMENT_TYPES 4,'Voucher',3;


EXEC [dbo].[MD_AFLS_INV_LOCATION_INFO] 1,'AFLS_LOCATIONS','Referencia para crear la herencia de las ubicaciones','/',1
EXEC [dbo].[MD_AFLS_INV_PRODUCTS_TYPE] 0, N'Cantidad', N'images/unit.png', 1
EXEC [dbo].[MD_AFLS_INV_PRODUCTS_TYPE] 1, N'Código Unico', N'images/unicode.png', 1


/* WebHooks MetaData */
EXEC [dbo].[MD_AFLS_WEBHOOKS_TYPE] 1, N'Estados', N'Estados de modelos'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TYPE] 2, N'Inventario', N'Transiciones de inventario'


EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 1, 1, N'disp_IdOrder_label', N'{{WorkOrderId}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 2, 1, N'assistme_order_address', N'{{Address}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 3, 1, N'admin_workflow_states_specialist', N'{{SpecialistId}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 4, 1, N'disp_executionDate_label', N'{{AttentionDate}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 5, 1, N'disp_AgentPhone', N'{{AgentPhone}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 6, 1, N'_subject_label', N'{{Subject}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 7, 1, N'_description_label', N'{{Description}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 8, 1, N'_client', N'{{ClientName}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 9, 1, N'disp_ClientPhone', N'{{ClientPhone}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 10, 1, N'disp_creationDate_label', N'{{CreationDate}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 11, 1, N'disp_email', N'{{AgentEmail}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 12, 1, N'disp_attendantDate_label', N'{{ScheduledDate}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 13, 1, N'admin_workflow_label_state', N'{{StateId}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 14, 1, N'_sub_state', N'{{SubStateId}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 15, 1, N'admin_clientsUniqueReference_placeholder', N'{{ClientUnique}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 16, 1, N'admin_workflow_state_name', N'{{State}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 17, 1, N'admin_workflow_substate_name', N'{{SubState}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 18, 1, N'disp_specName_label', N'{{SpecialistName}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 19, 2, N'disp_specName_label', N'{{SpecialistName}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 20, 2, N'Ldap_Site', N'{{LocationId}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 21, 2, N'Id_Product_Label', N'{{ProductId}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 22, 2, N'admin_products_productName_label', N'{{ProductName}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 23, 2, N'admin_products_unitOfMeasurement_label', N'{{Measure}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 24, 2, N'admin_products_typeProducto_label', N'{{ProductType}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 25, 2, N'admin_zone_headquarterName_label', N'{{LocationName}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 26, 2, N'admin_workflow_states_specialist', N'{{SpecialistId}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 27, 2, N'inventory_searcher_quantity_label', N'{{Quantity}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 28, 2, N'inventory_moment_number_serial_label', N'{{SerialNumber}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 29, 2, N'inventory_moment_sku_label', N'{{Sku}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 30, 2, N'inventory_moment_registration_of_date_label', N'{{RegisterDate}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 31, 2, N'inventory_moment_purchase_of_date_label', N'{{PurchaseDate}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 32, 2, N'inventory_moment_reference_or_number_invoice_label', N'{{Reference}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 33, 2, N'inventory_description_label', N'{{Description}}'
EXEC [dbo].[MD_AFLS_WEBHOOKS_TAGS] 34, 2, N'inventory_moment_valor_unit_label', N'{{UnitValor}}'




/* AFLS METADATA*/
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@name varchar(100),
	@priority int
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [AFLS_CATEGORIES] WHERE [cate_name] = @name)
		UPDATE [dbo].[AFLS_CATEGORIES]
		   SET [cate_name] = @name
			  ,[cate_priority] = @priority
		 WHERE [cate_name] = @name
	ELSE
		INSERT INTO [dbo].[AFLS_CATEGORIES]
           ([cate_name]
           ,[cate_priority])
		 VALUES
			   (@name
			   ,@priority)
END
GO

-- METADATA
EXEC [dbo].[MetadataInsert] 'Gold', 1
EXEC [dbo].[MetadataInsert] 'Silver', 2
EXEC [dbo].[MetadataInsert] 'Bronze', 3

Print 'AFLS CATEGORIES DONE!!'
GO

--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO


CREATE PROCEDURE [dbo].[MetadataInsert]
	@name varchar(50),
	@icon varchar(255),
	@color varchar(10),
	@style varchar(255),
	@summary varchar(255)
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [AFLS_STATES] WHERE [stat_name] = @name)
		UPDATE [dbo].[AFLS_STATES]
		   SET [stat_name] = @name
			  ,[stat_icon] = @icon
			  ,[stat_color] = @color
			  ,[stat_list_style] = @style
			  ,[stat_summary_style] = @summary
		 WHERE [stat_name] = @name
	ELSE
		INSERT INTO [dbo].[AFLS_STATES]
           ([stat_name]
           ,[stat_icon]
           ,[stat_color]
           ,[stat_list_style]
           ,[stat_summary_style])
		 VALUES
			   (@name
			   ,@icon
			   ,@color
			   ,@style
			   ,@summary)
END
GO

EXEC [dbo].[MetadataInsert] 'Open','azul','#2B67BA','statusOpen','boxopen'
EXEC [dbo].[MetadataInsert] 'Process','verde','#8CC53F','statusProcess','boxprocess'
EXEC [dbo].[MetadataInsert] 'StandBy','amarillo','#F4B800','statusStandby','boxstandby'
EXEC [dbo].[MetadataInsert] 'Executed','aguamarina','#009245','statusExecuted','boxexecuted'
EXEC [dbo].[MetadataInsert] 'Cancel','gris','#666666','statusCancel','boxcancel'

Print 'AFLS STATUS DONE!!'
GO
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@name varchar(100),
	@shortname varchar(30),
	@active bit
AS BEGIN
	IF EXISTS (SELECT 1 FROM [AFLS_TENANTS] WHERE [tent_shortname] = @shortname)
		UPDATE [dbo].[AFLS_TENANTS]
		   SET [tent_name] = @name
			  ,[tent_shortname] = @shortname
			  ,[tent_active] = @active
		 WHERE [tent_shortname] = @shortname
	ELSE
		INSERT INTO [dbo].[AFLS_TENANTS]
           ([tent_name]
           ,[tent_shortname]
           ,[tent_active])
		 VALUES
			   (@name
			   ,@shortname
			   ,@active)
END
GO


/**** Valores por defecto ****/
/* Tenant Main, tenant principal para el aprovisionamiento de otros tenants */
EXEC [dbo].[MetadataInsert] 'Main Administration','Main',1

-- default tenant
EXEC [dbo].[MetadataInsert] 'Demo','app',1


Print 'AFLS TENANT MAIN DONE!!'
GO

--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO


--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@id int,
	@name varchar(100)
AS
BEGIN
	SET IDENTITY_INSERT [dbo].[AFLS_TYPE_NOTIFICATIONS] ON
	IF NOT EXISTS (SELECT 1 FROM [AFLS_TYPE_NOTIFICATIONS] WHERE [tpnt_name] = @name)
		INSERT INTO [dbo].[AFLS_TYPE_NOTIFICATIONS]
           ([tpnt_id], [tpnt_name])
		 VALUES
			   (@id, @name)

	SET IDENTITY_INSERT [dbo].[AFLS_TYPE_NOTIFICATIONS] OFF
END
GO

EXEC [dbo].[MetadataInsert] 1, 'NotStarted'
EXEC [dbo].[MetadataInsert] 2, 'NotWorked'
EXEC [dbo].[MetadataInsert] 3, 'LessTime'
EXEC [dbo].[MetadataInsert] 4, 'MoreTime'
EXEC [dbo].[MetadataInsert] 6, 'Unexecuted'

Print 'AFLS Notifications DONE!!'
GO
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@id int,
	@name varchar(200),
	@css varchar(100),
	@order varchar(100)
AS
BEGIN
	
	IF EXISTS (SELECT 1 FROM [AFLS_ACTIONS] WHERE [acti_name] = @name)
		UPDATE [dbo].[AFLS_ACTIONS]
		   SET [acti_name] = @name
			  ,[acti_css] = @css
			  ,[acti_order] = @order
		 WHERE [acti_name] = @name
	ELSE	    
		INSERT INTO [dbo].[AFLS_ACTIONS]
           ([acti_id]
		   ,[acti_name]
           ,[acti_css]
           ,[acti_order])
		 VALUES
			   (
			    @id
			   ,@name
			   ,@css
			   ,@order);			
END
GO

SET IDENTITY_INSERT [dbo].[AFLS_ACTIONS] ON;

-- METADATA
EXEC [dbo].[MetadataInsert] 1,'Assign','assing-notification','Notifications#validateReassign'
EXEC [dbo].[MetadataInsert] 2,'UpdateTime','location-trace-notification','Notifications#validateUpdate'
EXEC [dbo].[MetadataInsert] 3,'Reschedule','rescheduler-notification','Notifications#validateRescheduler'
EXEC [dbo].[MetadataInsert] 4,'Remove','remove-notification','Notifications#validateRemove'
EXEC [dbo].[MetadataInsert] 5,'Reject','reject-notification','Notifications#validateReject'

SET IDENTITY_INSERT [dbo].[AFLS_ACTIONS] OFF;

Print 'AFLS ACTIONS DONE!!'


GO
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO



--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@nid bigint,
	@aid bigint
AS
BEGIN
	IF NOT EXISTS (SELECT 1 FROM [AFLS_TYPENOTIFICATIONS_ACTIONS] WHERE [tpnt_id] = @nid AND [acti_id] = @aid)
		INSERT INTO [dbo].[AFLS_TYPENOTIFICATIONS_ACTIONS]
           ([tpnt_id]
           ,[acti_id])
		 VALUES
			   (@nid
			   ,@aid)
END
GO


DECLARE @NotStarted bigint
DECLARE @NotWorked bigint
DECLARE @LessTime bigint
DECLARE @MoreTime bigint
DECLARE @Unexecuted bigint

SELECT @NotStarted = [tpnt_id] FROM [AFLS_TYPE_NOTIFICATIONS] WHERE [tpnt_name] = 'NotStarted'
SELECT @NotWorked = [tpnt_id] FROM [AFLS_TYPE_NOTIFICATIONS] WHERE [tpnt_name] = 'NotWorked'
SELECT @LessTime = [tpnt_id] FROM [AFLS_TYPE_NOTIFICATIONS] WHERE [tpnt_name] = 'LessTime'
SELECT @MoreTime = [tpnt_id] FROM [AFLS_TYPE_NOTIFICATIONS] WHERE [tpnt_name] = 'MoreTime'
SELECT @Unexecuted = [tpnt_id] FROM [AFLS_TYPE_NOTIFICATIONS] WHERE [tpnt_name] = 'Unexecuted'


DECLARE @Assign bigint
DECLARE @UpdateTime bigint
DECLARE @Reschedule bigint
DECLARE @Remove bigint
DECLARE @Reject bigint

SELECT @Assign = [acti_id] FROM [AFLS_ACTIONS] WHERE [acti_name] = 'Assign'
SELECT @UpdateTime = [acti_id] FROM [AFLS_ACTIONS] WHERE [acti_name] = 'UpdateTime'
SELECT @Reschedule = [acti_id] FROM [AFLS_ACTIONS] WHERE [acti_name] = 'Reschedule'
SELECT @Remove = [acti_id] FROM [AFLS_ACTIONS] WHERE [acti_name] = 'Remove'
SELECT @Reject = [acti_id] FROM [AFLS_ACTIONS] WHERE [acti_name] = 'Reject'

EXEC [dbo].[MetadataInsert] @NotStarted, @Assign
EXEC [dbo].[MetadataInsert] @NotStarted, @Reschedule

EXEC [dbo].[MetadataInsert] @NotWorked, @Assign
EXEC [dbo].[MetadataInsert] @NotWorked, @Reschedule

EXEC [dbo].[MetadataInsert] @LessTime, @Reschedule

EXEC [dbo].[MetadataInsert] @MoreTime, @UpdateTime

EXEC [dbo].[MetadataInsert] @NotStarted, @Remove
EXEC [dbo].[MetadataInsert] @NotWorked, @Remove
EXEC [dbo].[MetadataInsert] @LessTime, @Remove
EXEC [dbo].[MetadataInsert] @MoreTime, @Remove
EXEC [dbo].[MetadataInsert] @Unexecuted, @Remove

EXEC [dbo].[MetadataInsert] @MoreTime, @Reject



Print 'AFLS NOTIFICATIONS ACTIONS DONE!!'
GO

--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

if NOT exists (select * from [dbo].[AFLS_CALENDAR] where [cale_id] = 0)
Begin
	SET IDENTITY_INSERT [dbo].[AFLS_CALENDAR] ON
	INSERT INTO [dbo].[AFLS_CALENDAR] ([cale_id],[cale_name], [cale_description] ,[tent_id], [cale_enable], [cale_type])
	   VALUES (0, 'GLOBAL' ,'CALENDARIO GLOBAL' ,34, 1, 'Global')
	   INSERT INTO [dbo].[AFLS_CALENDAR] ([cale_id],[cale_name], [cale_description] ,[tent_id], [cale_enable], [cale_type])
	   VALUES (1, 'AFLS 5x8' ,'{{default_5x8}}' ,34, 1, 'Particular')
	   INSERT INTO [dbo].[AFLS_CALENDAR] ([cale_id],[cale_name], [cale_description] ,[tent_id], [cale_enable], [cale_type])
	   VALUES (2, 'AFLS 7x24' ,'{{default_7x24}}' ,34, 1, 'Particular')
	SET IDENTITY_INSERT [dbo].[AFLS_CALENDAR] OFF

	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (1,CAST('2015-10-10 05:00:00.000' AS datetime),CAST('2015-10-11 04:59:00.000' AS DATETIME),2)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (2,CAST('2015-10-10 05:00:00.000' AS DATETIME),CAST('2015-10-11 04:59:00.000' AS DATETIME),2)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (3,CAST('2015-10-10 05:00:00.000' AS DATETIME),CAST('2015-10-11 04:59:00.000' AS DATETIME),2)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (4,CAST('2015-10-10 05:00:00.000' AS DATETIME),CAST('2015-10-11 04:59:00.000' AS DATETIME),2)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (5,CAST('2015-10-10 05:00:00.000' AS DATETIME),CAST('2015-10-11 04:59:00.000' AS DATETIME),2)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (6,CAST('2015-10-10 05:00:00.000' AS DATETIME),CAST('2015-10-11 04:59:00.000' AS DATETIME),2)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (7,CAST('2015-10-10 05:00:00.000' AS DATETIME),CAST('2015-10-11 04:59:00.000' AS datetime),2)

	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (2,CAST('2015-10-10 13:00:00.000' AS datetime),CAST('2015-10-10 17:00:00.000' AS DATETIME),1)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (2,CAST('2015-10-10 19:00:00.000' AS DATETIME),CAST('2015-10-10 23:00:00.000' AS datetime),1)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (3,CAST('2015-10-10 13:00:00.000' AS datetime),CAST('2015-10-10 17:00:00.000' AS datetime),1)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (3,CAST('2015-10-10 19:00:00.000' AS datetime),CAST('2015-10-10 23:00:00.000' AS datetime),1)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (4,CAST('2015-10-10 13:00:00.000' AS datetime),CAST('2015-10-10 17:00:00.000' AS datetime),1)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (4,CAST('2015-10-10 19:00:00.000' AS datetime),CAST('2015-10-10 23:00:00.000' AS datetime),1)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (5,CAST('2015-10-10 13:00:00.000' AS datetime),CAST('2015-10-10 17:00:00.000' AS datetime),1)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (5,CAST('2015-10-10 19:00:00.000' AS datetime),CAST('2015-10-10 23:00:00.000' AS datetime),1)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (6,CAST('2015-10-10 13:00:00.000' AS datetime),CAST('2015-10-10 17:00:00.000' AS datetime),1)
	INSERT INTO [dbo].[AFLS_CALENDAR_SCHEDULE]([casc_day],[casc_hour_start],[casc_hour_end],[cale_id])
    VALUES (6,CAST('2015-10-10 19:00:00.000' AS datetime),CAST('2015-10-10 23:00:00.000' AS datetime),1)
end


delete [dbo].[AFLS_MOBILE_SETTINGS]
GO
/****** Object:  Table [dbo].[AFLS_MOBILE_SETTINGS]    Script Date: 12/01/2014 10:35:58 ******/
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'activity_in_vehicle', N'1')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'activity_on_foot', N'6')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'activity_still', N'12')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'availabilities_update_interval', N'300')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'fastest_update_interval', N'25')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'max_accuracy', N'80')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'max_angle', N'20')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'max_speed', N'300')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'minimum_distance', N'80')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'minimum_travel_distance', N'0')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'priority', N'100')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'track_user_activity', N'0')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'update_interval', N'10')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'wake_lock_threshold', N'0')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'freq_in_vehicle', N'12')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'freq_on_foot', N'30')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (0, N'freq_still', N'60')


INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'activity_in_vehicle', N'3')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'activity_on_foot', N'15')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'activity_still', N'30')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'availabilities_update_interval', N'300')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'fastest_update_interval', N'40')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'max_accuracy', N'200')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'max_angle', N'25')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'max_speed', N'300')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'minimum_distance', N'100')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'minimum_travel_distance', N'0')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'priority', N'102')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'track_user_activity', N'0')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'update_interval', N'30')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'wake_lock_threshold', N'50')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'freq_in_vehicle', N'15')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'freq_on_foot', N'40')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (1, N'freq_still', N'120')

INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'activity_in_vehicle', N'6')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'activity_on_foot', N'36')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'activity_still', N'60')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'availabilities_update_interval', N'300')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'fastest_update_interval', N'120')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'max_accuracy', N'500')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'max_angle', N'30')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'max_speed', N'300')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'minimum_distance', N'200')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'minimum_travel_distance', N'0')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'priority', N'104')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'track_user_activity', N'0')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'update_interval', N'180')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'wake_lock_threshold', N'100')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'freq_in_vehicle', N'30')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'freq_on_foot', N'60')
INSERT [dbo].[AFLS_MOBILE_SETTINGS] ([mose_level], [mose_key], [mose_value]) VALUES (2, N'freq_still', N'240')

/* ATTACHMENTS METADATA*/
EXEC [dbo].[MD_AFLS_ATTACHMENTS_TYPE] 1, N'WorkOrder', N'Attachment type for a work order', 1
EXEC [dbo].[MD_AFLS_ATTACHMENTS_TYPE] 2, N'SLA', N'Attachment type corresponding to an SLA', 1
EXEC [dbo].[MD_AFLS_ATTACHMENTS_TYPE] 3, N'Signature', N'Attachment type corresponding to a signature', 1
EXEC [dbo].[MD_AFLS_ATTACHMENTS_TYPE] 4, N'OLA', N'Attachment type corresponding to an OLA', 1
EXEC [dbo].[MD_AFLS_ATTACHMENTS_TYPE] 5, N'UC', N'Attachment type corresponding to an UC', 1 

-- DEFAULT TENANT APP
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO


CREATE PROCEDURE [dbo].[MetadataInsert]
	@name nvarchar(100),
	@tent_id int
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [AFLS_PROJECTS] WHERE [proj_name] = @name and [tent_id] = @tent_id)
		UPDATE [dbo].[AFLS_PROJECTS]
		   SET [proj_name] = @name
			  ,[tent_id] = @tent_id
		 WHERE [proj_name] = @name and [tent_id] = @tent_id
	ELSE
		INSERT INTO [dbo].[AFLS_PROJECTS]
           ([proj_name]
           ,[tent_id])
     VALUES
           (@name
           ,@tent_id)
END
GO

DECLARE @tdefaultid_pj int 

SELECT @tdefaultid_pj = [tent_id]
  FROM [dbo].[AFLS_TENANTS]
	where [tent_shortname] = 'app'

EXEC [dbo].[MetadataInsert] 'Default',@tdefaultid_pj

--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@id int,
	@name nvarchar(100),
	@description ntext
	
AS
BEGIN
	IF EXISTS (SELECT 1 FROM [AFLS_MEANS_TRANSPORT] WHERE [tran_name] = @name )
		UPDATE [dbo].[AFLS_MEANS_TRANSPORT]
		   SET [tran_name] = @name
			  ,[tran_description] = @description
		 WHERE [tran_name] = @name
	ELSE
		INSERT INTO [dbo].[AFLS_MEANS_TRANSPORT]
           ([tran_id]
		   ,[tran_name]
           ,[tran_description])
     VALUES
           (@id
		   ,@name
           ,@description)
	
END
GO

DECLARE @tdefaultid_t int 

SELECT @tdefaultid_t = [tent_id]
  FROM [dbo].[AFLS_TENANTS]
	where [tent_shortname] = 'app'

EXEC [dbo].[MetadataInsert] 1,'Car','admin_carDescription_label'
EXEC [dbo].[MetadataInsert] 3,'Bike','admin_bikeDescription_label'
EXEC [dbo].[MetadataInsert] 2,'Walking','admin_walkingDescription_label'
EXEC [dbo].[MetadataInsert] 4,'Transit','admin_transitDescription_label'


Print 'AFLS TRANSPORT DEFAULT TENANT DONE!!'
GO
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

-- MAIL TEMPLATES
DELETE [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]

GO

DELETE [dbo].[AFLS_MAIL_TEMPLATES]

GO
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable])
VALUES (1, N'mail_template_title_assignment', N'mail_template_description_assignment', 1)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable])
VALUES (2, N'mail_template_title_change', N'mail_template_description_change', 1)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable])
VALUES (3, N'mail_template_title_delay', N'mail_template_description_delay', 1)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable])
VALUES (4, N'mail_template_title_executed', N'mail_template_description_executed', 1)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable])
VALUES (5, N'mail_template_title_cancellation', N'mail_template_description_cancellation', 1)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable])
VALUES (6, N'mail_template_title_record', N'mail_template_description_record', 1)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable])
VALUES (7, N'mail_template_title_enrollment', N'mail_template_description_enrollment', 1)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (8, N'mail_template_monitor_survey_title', N'mail_template_monitor_survey_body', 1,'Survey')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (9, N'mail_template_survey_title', N'mail_template_survey_body', 1,'Survey')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (10, N'mail_template_monitor_alert_survey_title', N'mail_template_monitor_alert_survey_body', 1,'Survey')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (11,'mail_template_customer_survey_summary_title','mail_template_customer_survey_summary_body',1,'Survey')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (12,'mail_template_sla_review_alert_title','mail_template_sla_review_alert_body',1,'SLA')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (13,'mail_template_sla_ending_alert_title','mail_template_sla_ending_alert_body',1,'SLA')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (14,'mail_template_client_channel_assistme_invitation_title','mail_template_client_channel_assistme_invitation_body',1,'Client')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (15,'mail_template_client_channel_assistme_new_order_title','mail_template_client_channel_assistme_new_order_body',1,'Client')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (16,'mail_template_uc_review_alert_title','mail_template_uc_review_alert_body',1,'UC')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (17,'mail_template_uc_ending_alert_title','mail_template_uc_ending_alert_body',1,'UC')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (18,'mail_template_ola_review_alert_title','mail_template_ola_review_alert_body',1,'OLA')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (19,'mail_template_ola_ending_alert_title','mail_template_ola_ending_alert_body',1,'OLA')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable])
VALUES (20, N'mail_template_title_record_provider', N'mail_template_description_record_provider', 1)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type])
VALUES (21, N'mail_template_client_channel_assistme_confirm_register_title', N'mail_template_client_channel_assistme_confirm_register_body', 1,'Client')
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type]) 
VALUES (22, N'mail_template_alert_workorder_without_starting_title', N'mail_template_alert_workorder_without_starting_body',1, NULL)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type]) 
VALUES (23, N'mail_template_alert_specialist_without_movement_title', N'mail_template_alert_specialist_without_movement_body', 1, NULL)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type]) 
VALUES (24, N'mail_template_public_note_subject', N'mail_template_public_note_body', 1, NULL)
INSERT [dbo].[AFLS_MAIL_TEMPLATES] ([mail_id], [mail_title], [mail_description], [mail_enable],[mail_type]) 
VALUES (25, N'mail_template_alert_workorder_task_without_starting_title', N'mail_template_alert_workorder_task_without_starting_body',1, NULL)
INSERT INTO AFLS_MAIL_TEMPLATES ([mail_id],[mail_description],[mail_enable],[mail_isdefault],[mail_type],[mail_title]) 
VALUES (26,'mail_template_client_channel_assistme_recovery_account_password_body',1,1,'Client','mail_template_client_channel_assistme_recovery_account_password_title')



-- QUICK ANSWER

/****** Object:  Table [dbo].[AFLS_MOBILE_SETTINGS]    Script Date: 12/01/2014 10:35:58 ******/
IF ((select COUNT(*) from [dbo].[AFLS_QUICK_ANSWERS_TYPE]) = 0)
BEGIN
	INSERT [dbo].[AFLS_QUICK_ANSWERS_TYPE] ([qui_type_key]) VALUES (N'description')
	INSERT [dbo].[AFLS_QUICK_ANSWERS_TYPE] ([qui_type_key]) VALUES (N'note')
END
GO

delete [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
GO
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{WorkOrder}}', N'disp_IdOrder_label',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{AgentName}}', N'admin_tenantAgentName',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{AttentionDate}}', N'disp_attendantDate_label',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{AgentPhone}}', N'disp_AgentPhone',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{Subject}}', N'_subject_label',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{ClientName}}', N'_client',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{ClientPhone}}', N'disp_ClientPhone',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{Address}}', N'_address_label',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{CompanyName}}', N'disp_CompanyName',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{CreationDate}}', N'disp_creationDate_label',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{Description}}', N'_description_label',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{AgentEmail}}', N'disp_email',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{ScheduledDate}}', N'disp_ScheduledDate',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{UserName}}', N'disp_UserName',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{UrlHost}}', N'disp_UrlHost',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{Domain}}', N'disp_Domain',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{QRLoginApp}}', N'disp_QRLoginApp',0)

INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{CUSTOMER.NAME}}', N'surv_custName',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{SURVEY.LINK}}', N'surv_link',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{SATISFACTIONLEVEL.NUMBER}}', N'surv_satisfaction',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{SURVEYRESPONSE.LINK}}', N'surv_response_link',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{SURVEY.TIMELAPSE}}', N'surv_time',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{SURVEY.RESULTS}}', N'surv_result',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{GRADE.NUMBER}}', N'surv_grade',0)

INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{SURVEY.TITLE}}','surv_title',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{ORDER.NUMBER}}','surv_orderNum',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{SURVEY.DESCRIPTION}}','surv_description',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{ORDER.SUBJECT}}','surv_orderSubject',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{SURVEY.QUESTION}}','surv_survquestions',0)

INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{SLA.NAME}}','sla_name',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{SLA.ENDDATE}}','sla_endDate',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{ADMINISTRATOR.NAME}}', N'administrator_name',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{SLA.REVIEWDATE}}','sla_reviewDate',0)

INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{UC.NAME}}','uc_name',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{UC.ENDDATE}}','uc_endDate',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{UC.REVIEWDATE}}','uc_reviewDate',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{OLA.NAME}}','ola_name',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{OLA.ENDDATE}}','ola_endDate',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{OLA.REVIEWDATE}}','ola_reviewDate',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{ClientName}}',N'cli_custname',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{ClientUrlAssistMe}}',N'cli_assistme_url',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{ClientPassword}}', N'cli_assistme_password',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{ClientUniqueCode}}',N'cli_assitme_uniquecode',0)  
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{ClientUrlConfirmation}}',N'assistme_urlconfirm',0)  
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES (N'{{ClientUrlToken}}',N'mail_template_url_password_recovery',0)

INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{CUSTOMER.NAME}}','cli_cust_name',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{REQUEST.NUMBER}}','assistme_token',0)  
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{CreationDate}}','assistme_create_order',0)  
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{Description}}','assistme_order_description',0)
INSERT [dbo].[AFLS_QUICK_ANSWERS_TOKEN] ([tok_placeholders],[tok_definition],[is_additional]) VALUES ('{{Address}}','assistme_order_address',0)

GO

DECLARE @enrollmentId bigint

SELECT @enrollmentId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_title_enrollment'

DECLARE @sendSurveyid bigint

SELECT @sendSurveyid = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_survey_title'

DECLARE @alertMonitorId bigint

SELECT @alertMonitorId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_monitor_alert_survey_title'

DECLARE @ReportMonitorId bigint

SELECT @ReportMonitorId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_monitor_survey_title'

DECLARE @CustomerSumarySurveyId bigint

SELECT @CustomerSumarySurveyId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_customer_survey_summary_title'

DECLARE @SLAReviewId bigint

SELECT @SLAReviewId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_sla_review_alert_title'

DECLARE @SLAEndingId bigint

SELECT @SLAEndingId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_sla_ending_alert_title'


DECLARE @UCReviewId bigint

SELECT @UCReviewId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_uc_review_alert_title'

DECLARE @UCEndingId bigint

SELECT @UCEndingId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_uc_ending_alert_title'


DECLARE @OLAReviewId bigint

SELECT @OLAReviewId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_ola_review_alert_title'

DECLARE @OLAEndingId bigint

SELECT @OLAEndingId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_ola_ending_alert_title'


DECLARE @ClientAssitMeInvitationId bigint

SELECT @ClientAssitMeInvitationId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_client_channel_assistme_invitation_title'

DECLARE @ClientAssitNewOrderId bigint

SELECT @ClientAssitNewOrderId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_client_channel_assistme_new_order_title'

DECLARE @ClientAssitConfirmRegisterId bigint

SELECT @ClientAssitConfirmRegisterId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_client_channel_assistme_confirm_register_title'

DECLARE @ClientAssitRecoveryPasswordId bigint

SELECT @ClientAssitRecoveryPasswordId = [mail_id] FROM [AFLS_MAIL_TEMPLATES] WHERE [mail_title] = 'mail_template_client_channel_assistme_recovery_account_password_title'

-- Inserta las relaciones de todos los template con los tokens existentes menos los
-- de enrollment que usa campos diferentes
INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id NOT IN (@enrollmentId,@sendSurveyid,@alertMonitorId,@ReportMonitorId,@CustomerSumarySurveyId,@SLAReviewId, @SLAEndingId,@ClientAssitMeInvitationId, @ClientAssitNewOrderId, @UCEndingId,@UCReviewId,@OLAEndingId,@OLAReviewId,@ClientAssitConfirmRegisterId,@ClientAssitRecoveryPasswordId)
AND tok_definition NOT IN('disp_UserName', 'disp_UrlHost', 'disp_Domain', 'disp_QRLoginApp', 'surv_time','surv_result','surv_grade','surv_satisfaction','surv_response_link','surv_custName','surv_link', 'sla_name','sla_endDate','administrator_name','sla_reviewDate','surv_title','surv_orderNum','surv_description','surv_orderSubject','surv_survquestions','cli_assitme_uniquecode','cli_assistme_password','cli_assistme_url','cli_custname','uc_name','uc_endDate','uc_reviewDate','ola_name','ola_endDate','ola_reviewDate')
ORDER BY mail_id, tok_id;

-- Inserta las relaciones con el template de enrollment
INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @enrollmentId AND tok_definition IN('admin_tenantAgentName','disp_UserName', 'disp_UrlHost', 'disp_Domain', 'disp_QRLoginApp')
ORDER BY mail_id, tok_id;

--Inserta las relaciones con el template de send survey
INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @sendSurveyid AND tok_definition IN('surv_custName','surv_link')
ORDER BY mail_id, tok_id;


--Inserta las relaciones con el template de nivel satisfaccion survey
INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @alertMonitorId AND tok_definition IN('surv_satisfaction','surv_response_link')
ORDER BY mail_id, tok_id;

--Inserta las relaciones con el template de send survey
INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @ReportMonitorId AND tok_definition IN('surv_time','surv_result','surv_grade')
ORDER BY mail_id, tok_id;


INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @CustomerSumarySurveyId AND tok_definition IN('surv_title','surv_orderNum','surv_description','surv_orderSubject','surv_survquestions')
ORDER BY mail_id, tok_id;

--Inserta las relaciones con los templates de SLA, alarma de revisión y finazlización

INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @SLAReviewId AND tok_definition IN('sla_name','sla_reviewDate','administrator_name')
ORDER BY mail_id, tok_id;


INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @SLAEndingId AND tok_definition IN('sla_name','sla_endDate','administrator_name')
ORDER BY mail_id, tok_id;

--Inserta las relaciones con los templates de UC, alarma de revisión y finazlización

INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @UCReviewId AND tok_definition IN('uc_name','uc_reviewDate','administrator_name')
ORDER BY mail_id, tok_id;


INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @UCEndingId AND tok_definition IN('uc_name','uc_endDate','administrator_name')
ORDER BY mail_id, tok_id;

--Inserta las relaciones con los templates de OLA, alarma de revisión y finazlización

INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @OLAReviewId AND tok_definition IN('ola_name','ola_reviewDate','administrator_name')
ORDER BY mail_id, tok_id;


INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @OLAEndingId AND tok_definition IN('ola_name','ola_endDate','administrator_name')
ORDER BY mail_id, tok_id;

--Inserta las relaciones con el template de clientes
INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @ClientAssitMeInvitationId AND tok_definition IN('cli_custname','cli_assistme_url','cli_assistme_password','cli_assitme_uniquecode')
ORDER BY mail_id, tok_id;


--Inserta las relaciones con el template de clientes
INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @ClientAssitNewOrderId AND tok_definition IN('cli_cust_name','assistme_token','assistme_create_order','assistme_order_description','assistme_order_address')
ORDER BY mail_id, tok_id;

--Inserta las relaciones con el template de cliente: correo confirmación
INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @ClientAssitConfirmRegisterId AND tok_definition IN('cli_custname','assistme_urlconfirm')
ORDER BY mail_id, tok_id;

--Inserta las relaciones con el template de cliente: recuperar contraseña
INSERT INTO [dbo].[AFLS_MAIL_TEMPLATES_TOKENS]([mail_id],[tok_id])
SELECT mail_id, tok_id
FROM [dbo].[AFLS_MAIL_TEMPLATES], [dbo].[AFLS_QUICK_ANSWERS_TOKEN]
WHERE mail_id = @ClientAssitRecoveryPasswordId AND tok_definition IN('cli_custname','cli_assitme_uniquecode','mail_template_url_password_recovery')
ORDER BY mail_id, tok_id;
GO




-- Permission Alerts

IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]	
	@Role_id			INT,
	@Category_id		INT	
AS
BEGIN
	DECLARE @Validator INT = 0
	SELECT @Validator = COUNT(0) FROM AFLS_ALERTS_PERMISSIONS_EXTENSION 
	WHERE
	Role_Id =  @Role_id
	AND
	Category_Id = @Category_id

	IF @Validator > 0
	BEGIN
		UPDATE AFLS_ALERTS_PERMISSIONS_EXTENSION 
		SET 
		Role_Id = @Role_id,
		Category_Id = @Category_id
		WHERE
		Role_Id = @Role_id
		AND
		Category_Id = @Category_id
	END
	ELSE
	BEGIN
		INSERT INTO AFLS_ALERTS_PERMISSIONS_EXTENSION (Role_Id, Category_Id) VALUES
		(@Role_id,@Category_id)
	END
END

GO

DECLARE @Administrator INT = (SELECT role_id FROM AFW_ROLES WHERE role_name = 'Administrator' AND role_application_id = 0)
DECLARE @Monitor INT = (SELECT role_id FROM AFW_ROLES WHERE role_name = 'AFLS_Monitor' AND role_application_id = 34)
DECLARE @Inventory INT = (SELECT role_id FROM AFW_ROLES WHERE role_name = 'AFLS_Inventory' AND role_application_id = 34)

DECLARE @WorkOrderCategory INT = 9
DECLARE @InventoryCategory INT = 10
DECLARE @SurveyCategory INT = 11
DECLARE @AssigmentEngineCategory INT = 12

DELETE  AFLS_ALERTS_PERMISSIONS_EXTENSION WHERE Role_Id = @Administrator

EXEC [dbo].[MetadataInsert] @Monitor, @AssigmentEngineCategory
EXEC [dbo].[MetadataInsert] @Monitor, @WorkOrderCategory
EXEC [dbo].[MetadataInsert] @Monitor, @SurveyCategory
EXEC [dbo].[MetadataInsert] @Inventory, @InventoryCategory





-- Permission Alerts

--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
@id int                      
,@target decimal
,@compilance decimal
,@chronometer_Id int
,@sla_Id int 
,@priority int
,@model_Id int
,@is_deleted bit
,@create_date datetime
,@delete_date datetime
,@default_sla_time	bit   


AS
BEGIN
	IF EXISTS (SELECT 1 FROM AFLS_SLA_TIMES WHERE sla_id = @id )
	BEGIN
		UPDATE [dbo].AFLS_SLA_TIMES
		   SET target = @target
			  ,compilance = @compilance
			  ,chronometer_Id = @chronometer_Id
			  ,sla_Id = @sla_Id
			  ,priority = @priority
			  ,model_Id = @model_Id
			  ,is_deleted = @is_deleted
			  ,create_date = @create_date
			  ,delete_date = @delete_date
			  ,default_sla_time = @default_sla_time
		 WHERE id = @id
	END
	ELSE
	BEGIN
	SET IDENTITY_INSERT AFLS_SLA_TIMES ON
	


	INSERT INTO AFLS_SLA_TIMES 
	(id
	  ,target
	  ,compilance
	  ,chronometer_Id
	  ,sla_Id
	  ,priority
	  ,model_Id
	  ,is_deleted
	  ,create_date
	  ,delete_date
	  ,default_sla_time)
	  VALUES
	  (@id
	    ,@target
	    ,@compilance
	    ,@chronometer_Id
	    ,@sla_Id
	    ,@priority
	    ,@model_Id
	    ,@is_deleted
	    ,@create_date
	    ,@delete_date
	    ,@default_sla_time	  
	  )



	SET IDENTITY_INSERT AFLS_SLA_TIMES OFF
	END
	
END
GO

DECLARE @StartDate DATETIME
SET @StartDate = GETDATE()

EXEC [dbo].[MetadataInsert] 1,1440,90,2,1,null,NULL,0,@StartDate,NULL,1













	

-- Permission Alerts
Print 'AFW_ASSISTME_CONFIGURATION!'
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@Id			INT, 
	@WelcommeMessage VARCHAR(100),
	@Attendat	VARCHAR(25),
	@Needed	VARCHAR(25)
	
AS
BEGIN
	IF EXISTS (
				SELECT * FROM AFW_ASSISTME_CONFIGURATION 
				WHERE Id = @Id
				)
				BEGIN
				
		UPDATE AFW_ASSISTME_CONFIGURATION
		SET WelcomeMessage	= @WelcommeMessage,
			Attendant	= @Attendat,
			Needed = @Needed			
		WHERE Id = @Id 
		END
	ELSE	
	BEGIN
		
		SET IDENTITY_INSERT AFW_ASSISTME_CONFIGURATION ON ;		
		
			INSERT INTO [dbo].AFW_ASSISTME_CONFIGURATION
           (Id
		   ,WelcomeMessage
           ,Attendant
           ,Needed
           ,IsActive
           )
		SELECT @Id,@WelcommeMessage,@Attendat,@Needed,0

		SET IDENTITY_INSERT AFW_ASSISTME_CONFIGURATION OFF;	
		END
END
GO

EXEC [dbo].[MetadataInsert] 1, N'Bienvenido a nuestro portal de servicio al cliente', N'Especialista', N'Solicitud'
Print 'AFW AFW_ASSISTME_CONFIGURATION DONE!'




-- Permission Alerts


IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO
GO
CREATE PROCEDURE [dbo].[MetadataInsert]
	@Id			INT, 
	@Channel VARCHAR(100)	
	
AS
BEGIN
	IF EXISTS (
				SELECT * FROM AFLS_CHANNELS 
				WHERE Id = @Id
				)
				BEGIN
				
		UPDATE AFLS_CHANNELS
		SET ChannelName	= @Channel			
		WHERE Id = @Id 
		END
	ELSE	
	BEGIN
		
		SET IDENTITY_INSERT AFLS_CHANNELS ON ;		
		
			INSERT INTO [dbo].AFLS_CHANNELS
           (Id,
		   ChannelName		   
           )
		SELECT @Id,@Channel

		SET IDENTITY_INSERT AFLS_CHANNELS OFF;	
		END
END
GO

EXEC [dbo].[MetadataInsert] 1, N'AssistMe'

-- Permission Alerts
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO
GO
CREATE PROCEDURE [dbo].[MetadataInsert]
	@Id			INT, 
	@Name VARCHAR(50),	
	@Description VARCHAR(250),
	@Type BIT,
	@AssingType BIT,
	@ServiceDefault BIT,
	@IsActive BIT,
	@IsDeleted BIT
	
AS
BEGIN
	IF EXISTS (
				SELECT * FROM AFLS_PROVIDERS 
				WHERE ProviderId = @Id
				)
				BEGIN
				
		UPDATE AFLS_PROVIDERS
		SET Name	= @Name,
		Description = @Description,
		Type = @Type,
		AssingType = @AssingType,
		ServiceDefault = @ServiceDefault,
		IsActive = @IsActive,
		IsDeleted = @IsDeleted			
		WHERE ProviderId = @Id 
		END
	ELSE	
	BEGIN
		
		SET IDENTITY_INSERT AFLS_PROVIDERS ON ;		
		
			INSERT INTO [dbo].AFLS_PROVIDERS
           (ProviderId,
		   Name,
		   Description,
		   Type,
		   AssingType,
		   ServiceDefault,
		   IsActive,
		   IsDeleted		   
           )
		SELECT @Id,@Name,@Description,@Type,@AssingType,@ServiceDefault,@IsActive,@IsDeleted
			

		SET IDENTITY_INSERT AFLS_PROVIDERS OFF;	

		UPDATE AFLS_USERS_SPECIALISTS
		SET spc_provider_id = @Id

		END
END
GO

EXEC [dbo].[MetadataInsert] 1,'Especialistas Internos', 'Conjunto de especialistas internos que brindan atención a los clientes de la compañía.', 0, 0,1,1,0



-- Permission Alerts
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO
GO
CREATE PROCEDURE [dbo].[MetadataInsert]
	@Id			INT, 
	@Name VARCHAR(50),
	@Active BIT	
	
AS
BEGIN
	IF EXISTS (
				SELECT * FROM AFLS_ASSING_PROVIDER_TYPE 
				WHERE Id = @Id
				)
				BEGIN
				
		UPDATE AFLS_ASSING_PROVIDER_TYPE
		SET Name	= @Name,
		IsActive = @Active		
		WHERE Id = @Id 
		END
	ELSE	
	BEGIN
		
		SET IDENTITY_INSERT AFLS_ASSING_PROVIDER_TYPE ON ;		
		
		   INSERT INTO [dbo].AFLS_ASSING_PROVIDER_TYPE
           (Id,
		   Name,
		   IsActive   
           )
		   SELECT @Id,@Name,@Active
			

		SET IDENTITY_INSERT AFLS_ASSING_PROVIDER_TYPE OFF;		

		END
END
GO

EXEC [dbo].[MetadataInsert] 1,'Less_load',1
EXEC [dbo].[MetadataInsert] 2,'Orderly_turn',1
EXEC [dbo].[MetadataInsert] 3,'Qualification',1
EXEC [dbo].[MetadataInsert] 4,'Fast_answer',1



-- Permission Alerts
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO
GO
CREATE PROCEDURE [dbo].[MetadataInsert]	
	@Id INT,
	@Type INT,
	@Time INT,
	@Qualification INT,
	@Accomplishment INT,
	@Reply INT
	
AS
BEGIN
	IF EXISTS (
				SELECT * FROM AFLS_ASSING_PROVIDER_SETTING 
				WHERE Id = @Id
				)
				BEGIN
				
		UPDATE AFLS_ASSING_PROVIDER_SETTING
		SET Type = @Type,
		Time = @Time,
		Qualification = @Qualification,
		Accomplishment = @Accomplishment,
		Reply = @Reply
		WHERE Id = @Id 
		END
	ELSE	
	BEGIN
		
		SET IDENTITY_INSERT AFLS_ASSING_PROVIDER_SETTING ON ;		
		
		   INSERT INTO [dbo].AFLS_ASSING_PROVIDER_SETTING
           (Id,
		   Type,
		   Time,
		   Qualification,
		   Accomplishment,
		   Reply
           )
		   SELECT @Id,@Type,@Time,@Qualification,@Accomplishment,@Reply
			
		SET IDENTITY_INSERT AFLS_ASSING_PROVIDER_SETTING OFF;		

		END
END
GO

EXEC [dbo].[MetadataInsert] 1,2,15,5,5,5




-- Permission Alerts
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO
GO
CREATE PROCEDURE [dbo].[MetadataInsert]
	@Id			INT, 
	@Name VARCHAR(50)	
	
AS
BEGIN
	IF EXISTS (
				SELECT * FROM AFLS_WORKORDER_PROVIDER_STATUS 
				WHERE Id = @Id
				)
				BEGIN
				
		UPDATE AFLS_WORKORDER_PROVIDER_STATUS
		SET Status	= @Name		
		WHERE Id = @Id 
		END
	ELSE	
	BEGIN
		
		SET IDENTITY_INSERT AFLS_WORKORDER_PROVIDER_STATUS ON ;		
		
		   INSERT INTO [dbo].AFLS_WORKORDER_PROVIDER_STATUS
           (Id,
		   Status   
           )
		   SELECT @Id,@Name
			

		SET IDENTITY_INSERT AFLS_WORKORDER_PROVIDER_STATUS OFF;		

		END
END
GO

EXEC [dbo].[MetadataInsert] 1,'StandBy'
EXEC [dbo].[MetadataInsert] 2,'Accepted'
EXEC [dbo].[MetadataInsert] 3,'Rejected'
EXEC [dbo].[MetadataInsert] 4,'Reassigned'
EXEC [dbo].[MetadataInsert] 5,'Chronometers'
EXEC [dbo].[MetadataInsert] 6,'Canceled'




-- WorksDays 
TRUNCATE TABLE [dbo].[AFLS_WORKDAYS];
INSERT INTO [dbo].[AFLS_WORKDAYS]
           ([workday_name]
           ,[workday_start_hour]
           ,[workday_end_hour]
           ,[workday_icon_class]
           ,[workday_acronym]
           ,[workday_active])
     VALUES
           ('worday_morning',0 ,12 , 'icon-sun', 'AM', 1),
		   ('worday_afternoon',12 ,24 , 'icon-cloud', 'PM', 1),
		   ('worday_night',18 ,24 , 'icon-moon', 'NT', 1);

GO


-- Settings
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'AFLSBasePath','TEXT','',250,'setting_AFLSBasePath_label','setting_AFLSBasePath_hover','setting_Apicationgroup_title',1,1,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'EnableCreateClientBySpecialist','checked','','','setting_EnableCreateClientBySpecialist_label','','setting_SpecilistConsolegroup_title',1,1,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'EnableCreateOrdertoSpecialist','checked','','','setting_EnableCreateOrdertoSpecialist_label','','setting_SpecilistConsolegroup_title',1,2,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'EnableEditClientBySpecialist','checked','','','setting_EnableEditClientBySpecialist_label','','setting_SpecilistConsolegroup_title',1,3,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'NewsUrlMobile','TEXT','',250,'setting_NewsUrlMobile_label','setting_NewsUrlMobile_hover','setting_SpecilistConsolegroup_title',1,4,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'ReassignOrdersByAvailability','checked','','','setting_ReassignOrdersByAvailability_label','','setting_Asignementgroup_title',1,1,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'KeepAppointments','checked','','','setting_KeepAppointments_label','','setting_Asignementgroup_title',1,2,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'AssignmentInitLocationByGeoLocation','checked','','','setting_AssignmentInitLocationByGeoLocation_label','','setting_Asignementgroup_title',1,3,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'ASDKIntegrator','select','[{"id":"ESB","description":"ESB"},{"id":"direct","description":"Direct"}]','','setting_ASDKIntegrator_label','','setting_Integrationgroup_title',1,1,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'ASDKUserName','TEXT','',100,'setting_ASDKUserName_label','setting_ASDKUserName_hover','setting_Integrationgroup_title',1,2,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'ASDKPassword','PASSWORD','',100,'setting_ASDKPassword_label','','setting_Integrationgroup_title',1,3,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'ASDKSolutionfield','TEXT','',100,'setting_ASDKSolutionfield_label','setting_ASDKSolutionfield_hover','setting_Integrationgroup_title',1,4,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'ASDKStatesHomologation','TEXT','',250,'setting_ASDKStatesHomologation_label','setting_ASDKStatesHomologation_hover','setting_Integrationgroup_title',1,5,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'ASDKtoAFLSStatesHomologation','TEXT','',250,'setting_ASDKtoAFLSStatesHomologation_label','setting_ASDKtoAFLSStatesHomologation_hover','setting_Integrationgroup_title',1,6,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'MapsAPIKey','PASSWORD','','','setting_MapsAPIKey_label','','setting_maps_title',1,1,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'MapsClientId', 'PASSWORD', '', '', 'setting_MapsClientId_label', '', 'setting_maps_title', 1 ,2,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'MapsProvider','checked','','','setting_EMapsProvider_label','','setting_maps_title',1,3,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'googleType','checked','','','setting_googleType_label','','setting_maps_title',1,4,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'LogConsuptionsMaps','checked','','','setting_log_map_consuption_label','','setting_Apicationgroup_title',1,5,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'CurrentCulture','select','[{"id":"es","description":"es"},{"id":"en","description":"en"},{"id":"pt","description":"pt"}]','','setting_TemplateCulture_label','','setting_Apicationgroup_title',1,2,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'ExpirateTokenAssistMe', 'TEXT', '', 10, 'setting_ExpirateTokenAssistMe_label', 'setting_ExpirateTokenAssistMe_hover', 'setting_Apicationgroup_title', 1 ,3 ,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'AFLS.StorageProviderConfig', 'storageprovider', '', 0, 'setting_AFLS.StorageProviderConfig_label', '', 'setting_Storagegroup_title', 1 ,1,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'AutomaticTaskAssignmentEnable', 'checked', '', 0, 'setting_AutomaticTaskAssignmentEnable_label', '', 'setting_Asignementgroup_title', 1 ,4,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'ExpirateTokenMobile', 'TEXT', '', 10, 'setting_ExpirateTokenMobile_label', 'setting_ExpirateTokenMobile_hover', 'setting_Apicationgroup_title', 0 ,4,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'ActivePanicButton', 'checked', '', 0, 'Panic_Button_Label_Title', '', 'setting_Apicationgroup_title', 1 ,6 ,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'AflsPanicConfig', 'panicbuttonconfig', '', 0, '', '', 'setting_Apicationgroup_title', 1 ,7,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'EnablePrivacyPolicy', 'checked', '', 0, 'setting_enable_privacy_policy_label', 'setting_enable_privacy_policy_label', 'setting_Privacy_Policy_title', 1 ,1,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'PrivacyPolicy', 'textarea', '', 10000, 'setting_privacy_policy_label', 'setting_privacy_policy_label', 'setting_Privacy_Policy_title', 1 ,2,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'MapsAPIKeyAndroid','PASSWORD','',0,'setting_MapsAPIKey_Android_label','','setting_maps_title',1,5,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'MapsAPIKeyIos','PASSWORD','',0,'setting_MapsAPIKey_Ios_label','','setting_maps_title',1,6,0
EXEC [dbo].[METADATA_AFLS_SETTINGS] 'SessionTimeOut','TEXT','',10,'setting_SessionTimeOut_label','','setting_Apicationgroup_title',1,4,1





--Relationships
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]

GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@art_id INT,
	@art_name VARCHAR(64),
	@art_description VARCHAR(128),
	@art_is_dependent BIT
AS
BEGIN
	IF EXISTS (SELECT 1  FROM [AFLS_RELATION_TYPE] WHERE [art_id] = @art_id)
		UPDATE [AFLS_RELATION_TYPE]
		SET 
			[art_name] = @art_name,
			[art_description] = @art_description,
			[art_is_dependent] = @art_is_dependent

		WHERE [art_id] = @art_id
	ELSE
		BEGIN
			SET IDENTITY_INSERT [dbo].[AFLS_RELATION_TYPE] ON
			INSERT INTO [dbo].[AFLS_RELATION_TYPE]
				([art_id], [art_name], [art_description], [art_is_dependent])
			VALUES
				(@art_id, @art_name, @art_description, @art_is_dependent)
			SET IDENTITY_INSERT [dbo].[AFLS_RELATION_TYPE] OFF
		END
END

GO


EXEC [dbo].[MetadataInsert] 1,'Sucesión','Tipo de relación que depende de otro item',1;
EXEC [dbo].[MetadataInsert] 2,'Vínculo','Tipo de relación basica que no genera dependencia',0;

GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]

GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]

GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@ar_id INT,
	@ar_name VARCHAR(64),
	@ar_is_active BIT,
	@ar_source_name VARCHAR(64),
	@ar_target_name VARCHAR(64),
	@art_id INT,
	@ar_source_origin INT,
	@ar_target_origin INT,
	@ar_created_date DATETIME
AS
BEGIN
	IF EXISTS (SELECT 1  FROM [AFLS_RELATIONSHIP] WHERE [ar_id] = @ar_id)
		UPDATE [AFLS_RELATIONSHIP]
		SET 
			[ar_name] = @ar_name,
			[ar_is_active] = @ar_is_active,
			[ar_source_name] = @ar_source_name,
			[ar_target_name] = @ar_target_name,
			[art_id] = @art_id,
			[ar_source_origin] = @ar_source_origin,
			[ar_target_origin] = @ar_target_origin,
			[ar_created_date] = @ar_created_date

		WHERE [ar_id] = @ar_id
	ELSE
		BEGIN
			SET IDENTITY_INSERT [dbo].[AFLS_RELATIONSHIP] ON
			INSERT INTO [dbo].[AFLS_RELATIONSHIP]
				([ar_id], [ar_name], [ar_is_active], [ar_source_name], [ar_target_name], [art_id], [ar_source_origin], [ar_target_origin], [ar_created_date])
			VALUES
				(@ar_id, @ar_name, @ar_is_active, @ar_source_name, @ar_target_name, @art_id, @ar_source_origin, @ar_target_origin, @ar_created_date)
			SET IDENTITY_INSERT [dbo].[AFLS_RELATIONSHIP] OFF
		END
END

GO
DECLARE @DATETIME DATETIME = GETDATE();

EXEC [dbo].[MetadataInsert] 1,'Sucesión',1,'Sucesión','Es sucedido', 1, 34005, 34005, @DATETIME;
EXEC [dbo].[MetadataInsert] 2,'Vínculo',1,'Vínculo','Es vinculado', 2, 34005, 34005, @DATETIME;

GO

IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]

GO


			

--Import data Async
EXEC [dbo].[MD_AFLS_IMPORT_FILE_PROCESS_STATE] 1, N'Pendiente', 1
EXEC [dbo].[MD_AFLS_IMPORT_FILE_PROCESS_STATE] 2, N'En proceso', 1
EXEC [dbo].[MD_AFLS_IMPORT_FILE_PROCESS_STATE] 3, N'Exitoso', 1
EXEC [dbo].[MD_AFLS_IMPORT_FILE_PROCESS_STATE] 4, N'Fallo', 1

EXEC [dbo].[MD_AFLS_IMPORT_FILE_PROCESS_TYPE] 1, N'Clientes', 1
EXEC [dbo].[MD_AFLS_IMPORT_FILE_PROCESS_TYPE] 2, N'Órdenes de trabajo', 1
EXEC [dbo].[MD_AFLS_IMPORT_FILE_PROCESS_TYPE] 3, N'Movimientos', 1
EXEC [dbo].[MD_AFLS_IMPORT_FILE_PROCESS_TYPE] 4, N'Grupo Clientes', 1



--Errors
EXEC [dbo].[MD_AFLS_ERROR_TYPE] 1, N'Asignacion', N'Errores en la asignacion de la orden de trabajo ', 1
EXEC [dbo].[MD_AFLS_ERROR_TYPE] 2, N'Integracion', N'Errores en la notificacion a externos de la orden de trabajo ', 1

EXEC [dbo].[MD_AFLS_ERROR_MESSAGES] 1, 1, N'Proveedor sin especialistas', N'El proveedor no tiene especialialistas', N'error_wo_without_especialists', 1
EXEC [dbo].[MD_AFLS_ERROR_MESSAGES] 2, 1, N'Excede el limite de distancia', N'Se excede el limite de distancia configurado para atender la orden', N'error_wo_max_distance', 1
EXEC [dbo].[MD_AFLS_ERROR_MESSAGES] 3, 1, N'No tiene disponiblidad', N'No se tiene la disponibilidad para asignar la orden', N'error_wo_no_availability', 1
EXEC [dbo].[MD_AFLS_ERROR_MESSAGES] 4, 2, N'Url Invalida', N'Url de notificacion invalida', N'error_int_url_invalid', 1
EXEC [dbo].[MD_AFLS_ERROR_MESSAGES] 5, 2, N'Usuario invalido', N'Usuario o contaseña invalido', N'error_int_user_invalid', 1
EXEC [dbo].[MD_AFLS_ERROR_MESSAGES] 6, 2, N'Token invalido', N'Token invalido', N'error_int_token_invalid', 1
EXEC [dbo].[MD_AFLS_ERROR_MESSAGES] 7, 2, N'Id de tarea invalido', N'Id de la tarea en campo invalido', N'error_int_task_id_invalid', 1
EXEC [dbo].[MD_AFLS_ERROR_MESSAGES] 8, 2, N'Id de de estado invalido', N'Id de la estado invalido', N'error_int_state_id_invalid', 1

--Alert Types
--DROP OLD
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MetadataInsert]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[MetadataInsert]
GO

CREATE PROCEDURE [dbo].[MetadataInsert]
	@id INT,
	@name VARCHAR(50),
	@categoryParent INT,
	@referenceValue VARCHAR(100),
	@isActive BIT
	
AS
BEGIN
	IF EXISTS (SELECT 1 FROM AFLS_ALERT_TYPE WHERE id = @id )
	BEGIN
		UPDATE [dbo].AFLS_ALERT_TYPE
		   SET 
		   name = @name,
		   IdCategoryParent = @categoryParent,
		   referenceValue = @referenceValue,
		   isActive = @isActive
		 WHERE id = @id
	END
	ELSE
	BEGIN
	SET IDENTITY_INSERT AFLS_ALERT_TYPE ON
	INSERT INTO AFLS_ALERT_TYPE (id,name,IdCategoryParent,referenceValue,isActive) VALUES
	(@id,@name,@categoryParent,@referenceValue,@isActive)
	SET IDENTITY_INSERT AFLS_ALERT_TYPE OFF
	END
	
END
GO

EXEC [dbo].[MetadataInsert] 1,'Orden sin zona',9,null,1
EXEC [dbo].[MetadataInsert] 2,'Asignación de proveedor',9,null,1
EXEC [dbo].[MetadataInsert] 3, 'Ordenes no ejecutadas',9,null,1
EXEC [dbo].[MetadataInsert] 4, 'Solicitud de tiempo',9,null,1
EXEC [dbo].[MetadataInsert] 5,'Cita cumplida',9,null,1
EXEC [dbo].[MetadataInsert] 6,'Tiempo de cumplimiento crítico',9,null,1
EXEC [dbo].[MetadataInsert] 7,'Acuerdo incumplido',9,null,1
EXEC [dbo].[MetadataInsert] 8,'Reasignación de ordenes',9,null,1
EXEC [dbo].[MetadataInsert] 9,'No existe solución',12,null,1
EXEC [dbo].[MetadataInsert] 10,'Nivel minimo de inventario',10,null,1
EXEC [dbo].[MetadataInsert] 11,'Existencias no encontradas',10,null,1
EXEC [dbo].[MetadataInsert] 12,'Nivel de satisfacción de encuesta',11,null,1
EXEC [dbo].[MetadataInsert] 13,'Nivel de satisfacción de una orden de trabajo',11,null,1
EXEC [dbo].[MetadataInsert] 14, 'Encuesta no calificada',11,null,1
EXEC [dbo].[MetadataInsert] 15, 'Resultados por debajo del nivel esperado',11,null,1
EXEC [dbo].[MetadataInsert] 16, 'Inventario no actualizado',10,null,1
EXEC [dbo].[MetadataInsert] 17, 'Orden rechazada',9,null,1
EXEC [dbo].[MetadataInsert] 18, 'Movimiento de workflow invalido',9,null,1
EXEC [dbo].[MetadataInsert] 19, 'Proveedor reasignado',9,null,1
EXEC [dbo].[MetadataInsert] 20, 'Proveedor invalido',9,null,1
EXEC [dbo].[MetadataInsert] 21, 'No ha iniciado orden de trabajo',9,'10',1
EXEC [dbo].[MetadataInsert] 22, 'No se identifica movimiento',9,'5',1
EXEC [dbo].[MetadataInsert] 23, 'No ha iniciado la tarea de la orden de trabajo',9,'10',1



--MapsApiLog
	INSERT INTO AFLS_API_TYPE VALUES ('Mapas Dinamicos Web')
	INSERT INTO AFLS_API_TYPE VALUES ('Mapas Estaticos Web')
	INSERT INTO AFLS_API_TYPE VALUES ('Mapas Dinamicos Mobile SDK')
	INSERT INTO AFLS_API_TYPE VALUES ('Mapas Estaticos Mobile SDK')
	INSERT INTO AFLS_API_TYPE VALUES ('Geocoding')
	INSERT INTO AFLS_API_TYPE VALUES ('Geocoding Inverso')
	INSERT INTO AFLS_CONSOLE_TYPE VALUES ('AFLS Web')
	INSERT INTO AFLS_CONSOLE_TYPE VALUES ('Mobile')
	INSERT INTO AFLS_CONSOLE_TYPE VALUES ('AssistMe')

	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 1,'Companias',1,'Listado de companias'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 1,'Companias',2,'Creacion / edicion compania'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 2,'Clientes',1,'Listado de clientes'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 2,'Clientes',2,'Creacion / edicion clientes'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 3,'Usuarios Moviles',1,'Listado de usuarios moviles'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 3,'Usuarios Moviles',2,'Creacion / edicion usuarios moviles'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 4,'Zonas',1,'Configuracion poligono zona'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 5,'Inventario',1,'Listado de ubicaciones'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 5,'Inventario',2,'Creacion / edicion ubicaciones'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 6,'Informacion Basica',1,'Establishment'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 7,'Orden de Trabajo',1,'Listado de ordenes'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 7,'Orden de Trabajo',2,'Creacion / Actualizacion orden de trabajo'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 8,'Monitoreo',1,'Especialistas'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 8,'Monitoreo',2,'Clientes'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 8,'Monitoreo',3,'Planeacion'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 9,'Registro',1,'Registro nuevo usuario'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 9,'Registro',2,'Configuracion direccion de usuario'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 10,'Home',1,'Direccion orden de trabajo'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 11,'Tracking',1,'Tracking especialista'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 12,'Capa Mapas',1,'Listado de capas'
	EXEC [dbo].[MD_AFLS_MODULE_FUNCTIONALITY] 12,'Capa Mapas',2,'Creacion / edicion capas'

GO






--/*
----------------------------------------------------------------------------------------
--Metadata Para el proyecto AIC			
----------------------------------------------------------------------------------------

--*/

--INITIALIZE DEPLOY
CREATE PROCEDURE METADATA_AIC_DEFINITION (
@i_id							NVARCHAR(100), 
@i_title						NVARCHAR(70), 
@i_description					NVARCHAR(255),
@i_schema_file_configuration	NVARCHAR(MAX),
@i_icon							NVARCHAR(MAX),
@i_aranda_app					NVARCHAR(255),
@i_integration_app				NVARCHAR(255),
@i_class_name					NVARCHAR(255),
@i_assembly_path				NVARCHAR(MAX),
@i_task_scheduling				BIT,
@i_default_file_configuration	NVARCHAR(MAX)
)
AS
BEGIN

IF EXISTS (SELECT 1 FROM [dbo].[AIC_DEFINITION] WHERE [id] = @i_id )
	BEGIN
		UPDATE [dbo].[AIC_DEFINITION]
		SET [id] = @i_id,
			[title] = @i_title, 
			[description] = @i_description, 
			[schema_file_configuration] = @i_schema_file_configuration, 
			[icon] = @i_icon,
			[aranda_app] = @i_aranda_app,
			[integration_app] = @i_integration_app,
			[class_name] = @i_class_name,
			[assembly_path] = @i_assembly_path,
			[task_scheduling] = @i_task_scheduling,
			[default_file_configuration] = @i_default_file_configuration

		WHERE [id] = @i_id
	END
ELSE
	BEGIN
		INSERT INTO [dbo].[AIC_DEFINITION](
			[id], 
			[title], 
			[description], 
			[schema_file_configuration],
			[icon],
			[aranda_app],
			[integration_app],
			[class_name],
			[assembly_path],
			[task_scheduling],
			[default_file_configuration]
		)VALUES(
			@i_id, 
			@i_title, 
			@i_description, 
			@i_schema_file_configuration,
			@i_icon,
			@i_aranda_app,
			@i_integration_app,
			@i_class_name,
			@i_assembly_path,
			@i_task_scheduling,
			@i_default_file_configuration
		)
	END
END

GO

PRINT N'METADATA_AIC_DEFINITION PROCEDURE DONE!';



----METADATA
EXEC [METADATA_AIC_DEFINITION] 
	'99001', 
	'Integración ADM - ServiceNow', 
	'Integración ADM con ServiceNow',
	'{"$schema":"http://json-schema.org/draft-04/schema#","$id":"https://www.arandasoft.com/AIC/99001.schema.json","type":"object","title":"Root","required":["mapper","classCMDB","classMapper","dataReference","classDevice"],"properties":{"relationship":{"type":"array","title":"Relationship","items":{"type":"object","title":"Items","required":["parentClassDevice","childClassDevice","relationshipType"],"properties":{"relationshipType":{"type":"string","title":"RelationshipType","examples":[""],"description":"Representa el tipo de relación entre las dos CI","default":"","$id":"#root/relationship/items/relationshipType"},"parentClassDevice":{"type":"string","title":"ParentClass","examples":[""],"description":"Representa el tipo de dispositivo Padre","default":"","$id":"#root/relationship/items/parentClass"},"childClassDevice":{"type":"string","title":"ClassDevice","examples":[""],"description":"Representa al tipo de dispositivo hijo o dependiente","default":"","$id":"#root/relationship/items/classDevice"}},"$id":"#root/relationship/items"},"description":"Representa la relación entre las clases de la CMDB de ServiceNow","default":[],"$id":"#root/relationship"},"mapper":{"type":"array","title":"Mapper","items":{"type":"object","title":"Items","required":["name","fields"],"properties":{"name":{"type":"string","title":"Name","examples":["ManufacterCompanyAppSoftwareReference"],"description":"Nombre de la referencia","default":"","$id":"#root/mapper/items/name"},"fields":{"type":"array","title":"Fields","items":{"type":"object","title":"Items","required":["fieldCMDB","fieldDevice"],"properties":{"fieldDevice":{"type":"string","title":"FieldDevice","examples":["platform"],"description":"Representa el nombre del campo que tiene el dispositivo en ADM","default":"","$id":"#root/mapper/items/fields/items/fieldDevice"},"fieldCMDB":{"type":"string","title":"FieldCmdb","examples":["platform"],"description":"Representa el nombre del campo en la CMDB de ServiceNow","default":"","$id":"#root/mapper/items/fields/items/fieldCMDB"}},"$id":"#root/mapper/items/fields/items"},"description":"Representa una lista de la relación que existen entre los campos de ADM y la CMDB de ServiceNow","default":[],"$id":"#root/mapper/items/fields"}},"$id":"#root/mapper/items"},"description":"Representa la relación que se formara entre los campos de los dispositivos de ADM y las clases CI de la CMDB de ServiceNow","default":[],"$id":"#root/mapper"},"dataReference":{"type":"array","title":"DataReference","items":{"type":"object","title":"Items","required":["name","fields"],"properties":{"name":{"type":"string","title":"Name","examples":["OperatingSystemReferenced"],"description":"Nombre de la referencia","default":"","$id":"#root/dataReference/items/name"},"fields":{"type":"array","title":"Fields","items":{"type":"object","title":"Items","required":["value","fieldCMDB","classDevice"],"properties":{"value":{"type":["string","boolean","integer","array"],"title":"Value","examples":["os"],"description":"Representa el valor que se adicionara al campo de la clase CI","default":"","$id":"#root/dataReference/items/fields/items/value"},"fieldCMDB":{"type":"string","title":"FieldCmdb","examples":["element"],"description":"Representa al nombre del campo de la clase CI","default":"","$id":"#root/dataReference/items/fields/items/fieldCMDB"},"classDevice":{"uniqueItems":true,"type":"array","title":"ClassDevice","items":{"type":"string","title":"Items","examples":["Laptop"],"enum":["Application","Laptop","Desktop","Router","Switch","Server","Printer","Disk","LogicalDisk","Memory","Processor"],"default":"","$id":"#root/dataReference/items/fields/items/classDevice/items"},"description":"Representa los tipos de dispositivos a los que aplica la adición de este valor","default":[],"$id":"#root/dataReference/items/fields/items/classDevice"}},"$id":"#root/dataReference/items/fields/items"},"default":[],"$id":"#root/dataReference/items/fields"}},"$id":"#root/dataReference/items"},"description":"","default":[],"$id":"#root/dataReference"},"classMapper":{"type":"array","title":"ClassMapper","items":{"type":"object","title":"Items","required":["classCMDB","classDevice"],"properties":{"classDevice":{"uniqueItems":true,"type":"array","title":"ClassDevice","items":{"type":"string","title":"Items","examples":["Desktop"],"enum":["Application","Laptop","Desktop","Router","Switch","Server","Printer","Disk","LogicalDisk","Memory","Processor"],"default":"","$id":"#root/classMapper/items/classDevice/items"},"description":"Representa una lista de los diferentes tipos de dispositivos registrados en ADM","default":[],"$id":"#root/classMapper/items/classDevice"},"classCMDB":{"type":"string","title":"ClassCMDB","examples":["cmdb_ci_computer"],"description":"Representa el nombre de la clase CI de la CMDB de ServiceNow","default":"","$id":"#root/classMapper/items/classCMDB"}},"$id":"#root/classMapper/items"},"description":"Representa La relación que se formara entre los diferentes tipos de dispositivos registrados en ADM y las clases CI de la CMDB de ServiceNow","default":[],"$id":"#root/classMapper"},"classDevice":{"type":"array","title":"ClassDevice","items":{"type":"object","title":"Items","required":["name","fields"],"properties":{"name":{"type":"string","title":"Name","pattern":"^.*$","examples":["Desktop"],"enum":["Application","Laptop","Desktop","Router","Switch","Server","Printer","Disk","LogicalDisk","Memory","Processor"],"description":"Categoría del dispositivo","default":"","$id":"#root/classDevice/items/name"},"fields":{"type":"array","title":"Fields","items":{"type":"object","title":"Items","required":["type","name"],"properties":{"type":{"type":"string","title":"Type","examples":["string"],"enum":["int","long","decimal","boolean","date","string"],"description":"Representa el tipo de valor que acepta este campo","default":"","$id":"#root/classDevice/items/fields/items/type"},"name":{"type":"string","title":"Name","examples":["name"],"description":"Representa el nombre de la propiedad del dispositivo","default":"","$id":"#root/classDevice/items/fields/items/name"}},"$id":"#root/classDevice/items/fields/items"},"default":[],"$id":"#root/classDevice/items/fields"}},"$id":"#root/classDevice/items"},"description":"Representa los dispositivos descubiertos por ADM","default":[],"$id":"#root/classDevice"},"classCMDB":{"type":"array","title":"ClassCmdb","items":{"type":"object","title":"Items","required":["name","fields","searchBy"],"properties":{"searchBy":{"uniqueItems":true,"type":"array","title":"SearchBy","items":{"type":"string","title":"Items","examples":["prod_name"],"default":"","$id":"#root/classCMDB/items/searchBy/items"},"description":"Representa el campo de la clase CI por el que desea buscar","default":[],"$id":"#root/classCMDB/items/searchBy"},"name":{"type":"string","title":"Name","examples":["samp_sw_product"],"description":"Representa el nombre de la clase de la CMDB de ServiceNow","default":"","$id":"#root/classCMDB/items/name"},"fields":{"type":"array","title":"Fields","items":{"type":"object","title":"Items","required":["type","name","isRequired","mappingType"],"properties":{"unit":{"type":"string","title":"Unit","examples":["string"],"enum":["B","KB","MB","GB","TB","PB","YB"],"description":"Representa el tipo de unidad que acepta los valores de tipo integer","default":"","$id":"#root/classCMDB/items/fields/items/unit"},"type":{"type":"string","title":"Type","examples":["string"],"enum":["integer","decimal","boolean","date","array","string"],"description":"Representa el tipo de valor que acepta este campo","default":"","$id":"#root/classCMDB/items/fields/items/type"},"name":{"type":"string","title":"Name","examples":["prod_name"],"description":"Representa el nombre del campo en la CMDB de ServiceNow","default":"","$id":"#root/classCMDB/items/fields/items/name"},"mappingType":{"type":"string","title":"MappingType","examples":["Mapper","Data","SysChoice","Reference","None"],"enum":["Mapper","Data","SysChoice","Reference","None"],"description":"Representa el tipo de mapeo que tendrá este campo","default":"Mapper","$id":"#root/classCMDB/items/fields/items/mappingType"},"mappingName":{"type":["string","null"],"title":"MappingName","description":"Representa una referencia hacia \u0027mapper\u0027 o \u0027dataReference\u0027","default":null,"$id":"#root/classCMDB/items/fields/items/mappingName"},"isRequired":{"type":"boolean","title":"IsRequired","examples":[false],"description":"Representa si el campo es requerido en la CMDB de ServiceNow","default":true,"$id":"#root/classCMDB/items/fields/items/isRequired"},"classReference":{"type":["string","null"],"title":"ClassReference","description":"Representa el nombre de la clase a la que se referencia cuando el \u0027MappingType\u0027 es \u0027Reference\u0027","default":null,"$id":"#root/classCMDB/items/fields/items/classReference"}},"$id":"#root/classCMDB/items/fields/items"},"description":"Representa los campos que tiene las clases CI de la CMDB de ServiceNow","default":[],"$id":"#root/classCMDB/items/fields"},"alias":{"type":"string","title":"Alias","examples":["samp_sw_product"],"description":"Representa un alias de de la clase de la CMDB de ServiceNow","default":"","$id":"#root/classCMDB/items/alias"}},"$id":"#root/classCMDB/items"},"description":"Representa las clases CI de la CMDB ServiceNow","default":[],"$id":"#root/classCMDB"}},"definitions":{}}',	
	NULL, 
	'ADM', 
	'CMDB ServiceNow', 
	'Aranda.Integration.ADM.ServiceNow.Services.ValidateConfigurationService', 
	'Aranda.Integration.ADM.ServiceNow.dll',
	1,
	NULL;

EXEC [METADATA_AIC_DEFINITION] 
	'99002', 
	'Integración ASDK - HP TechPulse', 
	'Integración ASDK V8 con HP TechPulse', 
	'{"$schema":"http://json-schema.org/draft-04/schema#","$id":"https://www.arandasoft.com/AIC/99002.schema.json","title":"Case","description":"Un caso","type":"object","properties":{"mappers":{"description":"Mapper para los casos en ASDK","type":"array","items":{"type":"object","properties":{"tenantIds":{"description":"Lista de identificadores de los tenants","type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true},"subtypes":{"description":"Subtipos de incidentes","type":"array","items":{"type":"string","examples":["COMPANY_WIDE_BIOS_OUTOFDATE","BATTERY_NOT_DETECTED","BATTERY_PREDICTIVE_FAILURE","PERF_CPU","COMPANY_WIDE_OS_BSOD","COMPANY_WIDE_CRITICAL_DRIVER_OUTOFDATE","HDD","HDD_PREDICTIVE_FAILURE","HDD_SMART_EVENT_FAIL","HDD_STORAGE_FULL","HP_TECHPULSE_INCIDENT_INTEGRATION","HEARTBEAT_FAILURE","LICENSING","MEMORY","PERF_MEMORY","OS_BSOD","OS_CRASH","SYSTEM_ERROR_THERMAL"]},"minItems":1,"uniqueItems":true},"filter":{"type":"string","description":"Filtro adicional en términos de API de HP TechPulse"},"case":{"type":"object","properties":{"additionalFields":{"title":"additionalFields","description":"Representa la información requerida para completar los campos adicionales de Asdk V8","type":"array","items":{"title":"Items","type":"object","required":["fieldId"],"properties":{"fieldId":{"title":"fieldId","description":"Identificador del campo adicional","type":"integer","minimum":1},"values":{"title":"Values","type":"array","minItems":1,"description":"Valor del campo adicional","uniqueItems":true}}}},"caseType":{"type":"integer","description":"Identificador del tipo de caso","oneOf":[{"const":1,"name":"Incident","description":"Incidente"},{"const":2,"name":"Problem","description":"Problema"},{"const":3,"name":"Change","description":"Cambio"},{"const":4,"name":"Requirement","description":"Requerimiento"}]},"category":{"type":"integer","description":"Identificador de la categorÍa"},"company":{"type":"integer","description":"Identificador de la compañía"},"group":{"type":"integer","description":"Identificador del grupo"},"project":{"type":"integer","description":"Identificador del proyecto"},"registryType":{"type":"integer","description":"Identificador del tipo de registro"},"service":{"type":"integer","description":"Identificador del servicio"},"state":{"description":"Equivalencia de estados","type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Estado del incidente","examples":["NEW","INVESTIGATING","FIX_IN_PROGRESS","AWAITING_CUSTOMER","FIXED","DISMISSED","CLOSED_FALSE_POSITIVE","CLOSED_TRUE_POSITIVE","CLOSED_UNKNOWN","CUSTOMER_APPROVAL_NEEDED"]},"value":{"type":"integer","description":"Identificador del estado"},"commentary":{"type":"string","description":"Comentario de solución para la mesa (En caso de estados cerrado)"}},"required":["name","value"]},"minItems":1},"urgency":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Prioridad del incidente","examples":["NOT_ASSIGNED","CRITICAL","HIGH","MEDIUM","LOW"]},"value":{"type":"integer","description":"Identificador de la urgencia"}},"required":["name","value"]},"minItems":1}},"required":["caseType","category","company","group","project","registryType","service","sla","state","urgency"]}},"required":["subtypes","case"]},"minItems":1},"tenantIds":{"description":"Lista de identificadores de los tenants","type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true},"uniqueTenant":{"description":"Identificador del tenant","type":"string"},"companies":{"description":"Relación entre tenant y compañía","type":"array","items":[{"type":"object","properties":{"id":{"description":"Id compañía","type":"integer"},"tenantId":{"description":"Id tenant","type":"string"}},"required":["id","tenantId"]}]}},"required":["mappers","uniqueTenant"]}',
	NULL, 
	'ASDK',
	'HP TechPulse', 
	'Aranda.Integration.ASDKV8.HPTechPulse.Services.ValidationService',
	'Aranda.Integration.ASDKV8.HPTechPulse.dll',
	1,
	NULL;

EXEC [METADATA_AIC_DEFINITION] 
	'99003', 
	'Integración ASMS - Azure DevOps', 
	'Integración ASMS con Azure DevOps', 
	'{"$schema":"http://json-schema.org/draft-04/schema#","$id":"https://www.arandasoft.com/AIC/99003.schema.json","type":"object","properties":{"project":{"description":"Relación entre las propiedades del caso de ASMS y los proyectos en DevOps","type":"array","items":[{"type":"object","properties":{"id":{"description":"Representa el id del proyecto en ASMS","type":"integer"},"service":{"description":"Representa el id del servicio en ASMS","type":"integer"},"collection":{"description":"Representa el nombre de la colección en DevOps","type":"string"},"category":{"type":"array","description":"Relación entre las categorías de ASMS y los proyectos en DevOps","items":[{"type":"object","properties":{"id":{"description":"Representa el id de la categoría en ASMS","type":"integer"},"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"project":{"description":"Representa el nombre del proyecto en DevOps","type":"string"},"dataSource":{"description":"Indica al sistema que plataforma sera la fuente de información, o si se sincronizara en paralelo (ambas plataformas son fuente de información)","type":"string","enum":["Aranda","Both","External"]}},"required":["id","project","reference"]}]}},"required":["id","service","category","collection"]}]},"itemType":{"type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"type":{"type":"string","description":"Nombre del tipo de caso en ASMS","enum":["Incidents","Problem","Change","ServiceCall","Release"]},"workItemType":{"type":"string","description":"Nombre del work item type en DevOps"}},"required":["reference","type","workItemType"]}]},"case":{"type":"array","description":"Representa la relación entre los campos de ASMS con los campos de DevOps","items":[{"type":"object","properties":{"reference":{"type":"string","description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso"},"definition":{"type":"object","properties":{"subject":{"description":"Representa el Asunto del case en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en DevOps"}},"required":["type","key"]},"description":{"description":"Representa la Descripición del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en DevOps"}},"required":["type","key"]},"idByProject":{"description":"Representa el identificador del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en DevOps"}},"required":["type","key"]},"responsible":{"type":"object","description":"Representa la relación entre la propiedad responsable y el campo de DevOps","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"type":"array","description":"Representa la(s) propiedad(es) por la que se buscará el ítem en las APIs","items":[{"type":"string","description":"Nombre del campo","enum":["Email","Name"]}]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en DevOps"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"responsibleGroup":{"description":"Representa la relación entre la propiedad grupo responsable y el campo de DevOps","type":"object","properties":{"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en DevOps"},"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["key"]},"client":{"description":"Representa la relación entre la propiedad Cliente y el campo de DevOps","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"type":"array","description":"Representa la(s) propiedad(es) por la que se buscará el ítem en las APIs","items":[{"type":"string","description":"Nombre del campo","enum":["Email","Name"]}]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en DevOps"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"company":{"type":"object","description":"Representa la relación entre la propiedad Compañía y el campo de DevOps","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en DevOps"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"applicant":{"description":"Representa la relación entre la propiedad solicitante y el campo de DevOps","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"type":"array","description":"Representa la(s) propiedad(es) por la que se buscará el ítem en las APIs","items":[{"type":"string","description":"Nombre del campo","enum":["Email","Name"]}]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en DevOps"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"typeRegister":{"type":"object","description":"Representa la relación entre el campo tipo de registro y el campo de DevOps","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en DevOps"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"ci":{"type":"object","description":"Representa la relación entre el campo CI y el campo de DevOps","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en DevOps"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]}},"required":["subject"]}},"required":["reference","definition"]}]},"task":{"type":"array","description":"Representa la relación entre las tareas de ASMS y los work items en DevOps","items":[{"type":"object","properties":{"reference":{"type":"string","description":"Representa el nombre de referencia entre project, itemType y task"},"definition":{"type":"object","properties":{"subject":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]},"description":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]},"idByProject":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]},"responsible":{"type":"object","properties":{"type":{"type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"type":"array","items":{"type":"string","enum":["Email","Name"]}},"key":{"type":"string","minLength":1},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"responsibleGroup":{"type":"object","properties":{"key":{"type":"string","minLength":1},"type":{"type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["key"]},"duration":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]},"startdate":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]},"enddate":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]}},"required":["subject","description","duration","startdate"]},"model":{"type":"object","properties":{"id":{"type":"integer"},"additionalFields":{"type":"array","minItems":1,"uniqueItems":true,"items":[{"type":"object","properties":{"type":{"type":"string","enum":["fieldvalue","value","mapping"]},"id":{"type":"integer"},"field":{"type":"object","properties":{"key":{"type":"string"}},"required":["key"]},"mapping":{"type":"array","uniqueItems":true,"items":[{"type":"object","properties":{"value":{"type":"string"},"id":{"type":"integer"}},"required":["value","id"]}]},"Mapping":{"type":"array","uniqueItems":true,"items":[{"type":"object","properties":{"value":{"type":"string"},"id":{"type":"integer"}},"required":["value","id"]}]}},"required":["id"]}]},"state":{"type":"array","minItems":1,"items":[{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"},"reason":{"type":"integer"},"commentary":{"type":"object","properties":{"value":{"type":"string"},"key":{"type":"string"}}}},"required":["value","id"]}]}},"required":["state","id"]}},"required":["reference","definition","model"]}]},"responsible":{"description":"Representa la relación de valores entre ASMS y DevOps","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del responsable en ASMS","type":"integer"},"Value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"}},"required":["reference"]}]},"responsibleGroup":{"description":"Representa la relación de valores entre ASMS y DevOps","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del grupo responsable en ASMS","type":"integer"},"Value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"}},"required":["reference"]}]},"applicant":{"description":"Representa la relación de valores entre ASMS y DevOps","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del solicitante en ASMS","type":"integer"},"Value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"}},"required":["reference"]}]},"client":{"description":"Representa la relación de valores entre ASMS y DevOps","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del Cliente en ASMS","type":"integer"},"Value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"}},"required":["reference"]}]},"company":{"description":"Representa la relación de valores entre ASMS y DevOps","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id de la Compañía en ASMS","type":"integer"},"Value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"}},"required":["reference"]}]},"typeRegister":{"description":"Representa la relación de valores entre ASMS y DevOps","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"},"Value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"}},"required":["reference"]}]},"ci":{"description":"Representa la relación de valores entre ASMS y DevOps","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del ci en ASMS","type":"integer"},"Value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"}},"required":["reference"]}]},"model":{"description":"Representa la relación de valores entre ASMS y DevOps","type":"array","minItems":1,"uniqueItems":true,"items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"state":{"description":"Representa la relación entre los estados de ASMS y los estados en DevOps","type":"array","minItems":1,"uniqueItems":true,"items":[{"type":"object","properties":{"value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del estado en ASMS","type":"integer"},"commentary":{"type":"object","description":"Solution","properties":{"value":{"description":"Representa el valor que tendrá el campo solución","type":"string"},"Key":{"description":"Representa el nombre del campo en DevOps","type":"string"}}}},"required":["value","id"]}]},"id":{"type":"integer","description":"Representa el id del modelo en ASMS"},"additionalFields":{"type":"array","minItems":1,"description":"Representa los campos adicionales en ASMS","uniqueItems":true,"items":[{"type":"object","properties":{"mapping":{"type":"array","uniqueItems":true,"minItems":1,"description":"Representa la relación de valores entre ASMS y DevOps","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del valor en ASMS","type":"integer"}},"required":["value","id"]}]},"id":{"description":"Representa el id del campo adicional en ASMS","type":"integer"},"value":{"title":"values","type":"array","minItems":1,"uniqueItems":true,"description":"Representa el valor que tendrá el campo, si este no se relaciona con ningún campo en DevOps","items":{"title":"items","type":"string"}},"field":{"type":"object","description":"Representa el campo en DevOps","properties":{"key":{"description":"Representa el nombre del campo en DevOps","type":"string"}},"required":["key"]}},"required":["id"]}]}},"required":["state","id"]}]},"urgency":{"type":"array","description":"Representa La relación que se formara entre la criticidad de ASMS y DevOps","items":[{"type":"object","properties":{"field":{"description":"Representa el nombre del campo en DevOps","type":"string"},"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"mapping":{"type":"array","items":[{"type":"object","properties":{"id":{"description":"Representa el Id de la urgencia en ASMS","type":"integer"},"value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"}},"required":["id","value"]}]}},"required":["field","reference","mapping"]}]},"impact":{"type":"array","description":"Representa La relación que se formara entre la criticidad de ASMS y DevOps","items":[{"type":"object","properties":{"field":{"description":"Representa el nombre del campo en DevOps","type":"string"},"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"mapping":{"type":"array","description":"Representa la relación de valores entre ASMS y DevOps","items":[{"type":"object","properties":{"id":{"description":"Representa el Id del impacto en ASMS","type":"integer"},"value":{"description":"Representa el valor en DevOps con el que se crea la relación","type":"string"}},"required":["id","value"]}]}},"required":["field","reference","mapping"]}]}},"required":["itemType","project","case"]}',
	NULL, 
	'ASMS',
	'DevOps', 
	'Aranda.Integration.ASMS.DevOps.Validations.ValidateConfigurationService',
	'Aranda.Integration.ASMS.DevOps.dll',
	0,
	NULL;

EXEC [METADATA_AIC_DEFINITION] 
	'99004', 
	'Integración ASMS - HP TechPulse', 
	'Integración ASMS con HP TechPulse', 
	'{"$schema":"http://json-schema.org/draft-04/schema#","$id":"https://www.arandasoft.com/AIC/99004.schema.json","title":"Root","type":"object","required":["mappers","uniqueTenant"],"properties":{"mappers":{"description":"Representa la relación entre los casos de ASMS y los incidentes de HP TechPulse","title":"Mappers","type":"array","items":{"title":"Items","type":"object","required":["case","subtypes"],"properties":{"case":{"title":"Representa la información del caso en ASMS","type":"object","required":["category","urgency","itemType","project","service","state"],"properties":{"additionalFields":{"title":"additionalFields","description":"Representa la información requerida para completar los campos adicionales de ASMS","type":"array","items":{"title":"Items","type":"object","required":["fieldId"],"properties":{"fieldId":{"title":"fieldId","description":"Identificador del campo adicional","type":"integer","minimum":1},"values":{"title":"Values","type":"array","minItems":1,"description":"Valor del campo adicional valido para campos MultiSelect","uniqueItems":true}}}},"category":{"title":"Category","type":"integer","description":"Identificador de la categoría","minimum":1},"ci":{"title":"Ci","minimum":1,"description":"Identificador de la CI","type":["integer","null"]},"company":{"title":"Company","type":["integer","null"],"description":"Identificador de la compañía","minimum":0},"applicant":{"title":"Company","type":["integer","null"],"description":"Identificador del solicitante","minimum":0},"registryType":{"title":"Company","type":["integer","null"],"description":"Identificador del tipo de registro","minimum":0},"responsible":{"title":"Company","type":["integer","null"],"description":"Identificador del responsable","minimum":0},"group":{"title":"Company","type":["integer","null"],"description":"Identificador del grupo","minimum":0},"customer":{"title":"customer","type":["integer","null"],"description":"Identificador del cliente","minimum":1},"urgency":{"title":"urgency","type":"array","description":"relación entre la prioridad de ASMS y la prioridad de HP TechPulse","items":{"title":"Items","type":"object","required":["id","value"],"properties":{"id":{"title":"Id","minimum":1,"type":"integer","description":"Identificador de la urgencia en ASMS"},"value":{"title":"urgency","type":"string","description":"Identificador de la prioridad en HP TechPulse","enum":["CRITICAL","HIGH","LOW","MEDIUM","NOT_ASSIGNED"]}}}},"itemType":{"title":"ItemType","type":"string","description":"Identificador del tipo de caso","enum":["Incidents","Problem","Change","ServiceCall","Release"]},"project":{"title":"Project","type":"integer","minimum":1,"description":"Identificador del proyecto"},"reason":{"title":"Reason","type":["integer","null"],"minimum":1,"description":"Identificador de la razón de cambio de estado"},"service":{"title":"Service","type":"integer","minimum":1,"description":"Identificador del servicio"},"state":{"title":"State","type":"array","description":"relación entre los estados de HP TechPulse y ASMS","items":{"title":"Items","type":"object","required":["id","value"],"properties":{"id":{"title":"Id","type":"integer","minimum":1,"description":"Identificador del estado en ASMS"},"value":{"title":"Value","description":"Estado del incidente","type":"string","enum":["NEW","INVESTIGATING","FIX_IN_PROGRESS","AWAITING_CUSTOMER","FIXED","DISMISSED"]},"commentary":{"title":"commentary","description":"Comentario de solución para el caso creado","type":["string","null"]}}}}}},"filter":{"title":"Filter","type":"string","description":"Filtro adicional en términos de API de HP TechPulse"},"subtypes":{"title":"Subtypes","type":"array","description":"Subtipos de incidentes","items":{"title":"Items","type":"string","enum":["COMPANY_WIDE_BIOS_OUTOFDATE","BATTERY_NEEDS_ATTENTION","BATTERY_NOT_DETECTED","BATTERY_RECALL","PERF_CPU","COMPANY_WIDE_OS_BSOD","COMPANY_WIDE_CRITICAL_DRIVER_OUTOFDATE","HDD","HDD_PREDICTIVE_FAILURE","HDD_SMART_EVENT_FAIL","HDD_STORAGE_FULL","HP_TECHPULSE_INCIDENT_INTEGRATION","HEARTBEAT_FAILURE","LICENSING","MEMORY","PERF_MEMORY","OS_BSOD","OS_CRASH","SYSTEM_ERROR_THERMAL","UNKNOWN"]},"minItems":1,"uniqueItems":true},"tenantIds":{"description":"Lista de identificadores de los tenants","type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}}}},"tenantIds":{"description":"Lista de identificadores de los tenants","type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true},"uniqueTenant":{"description":"Identificador del tenant","title":"uniqueTenant","type":"string"},"companies":{"description":"relación entre tenant y compañía","type":"array","items":[{"type":"object","properties":{"id":{"description":"Id compañía","type":"integer"},"tenantId":{"description":"Id tenant","type":"string"}},"required":["id","tenantId"]}]}}}',
	NULL, 
	'ASMS',
	'HP TechPulse', 
	'Aranda.Integration.ASMS.HPTechPulse.Services.ValidateConfigurationService',
	'Aranda.Integration.ASMS.HPTechPulse.dll',
	1,
	NULL;

EXEC [METADATA_AIC_DEFINITION] 
	'99007', 
	'Integración ASMS - ServiceNow', 
	'Integración ASMS con ServiceNow', 
	'{"$schema":"http://json-schema.org/draft-04/schema#","$id":"https://www.arandasoft.com/AIC/99007.schema.json","title":"Integration","type":"object","properties":{"urgency":{"description":"Representa La relación que se formara entre la criticidad de ASMS y ServiceNow","minItems":1,"uniqueItems":true,"type":"array","items":[{"type":"object","properties":{"table":{"type":"string","description":"Representa el nombre de la clase en ServiceNow","enum":["incident","problem","change_request"]},"mapping":{"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el Id de la urgencia en ASMS","type":"integer"}},"required":["value","id"]}]},"field":{"description":"Representa el nombre del campo en ServiceNow","type":"string"}},"required":["table","mapping","field"]}]},"impact":{"description":"Representa La relación que se formara entre la criticidad de ASMS y ServiceNow","minItems":1,"uniqueItems":true,"type":"array","items":[{"type":"object","properties":{"table":{"type":"string","description":"Representa el nombre de la clase en ServiceNow","enum":["incident","problem","change_request"]},"mapping":{"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el Id del impacto en ASMS","type":"integer"}},"required":["value","id"]}]},"field":{"description":"Representa el nombre del campo en ServiceNow","type":"string"}},"required":["table","mapping","field"]}]},"typeRegister":{"minItems":1,"uniqueItems":true,"description":"Representa la relación de valores entre ASMS y ServiceNow","type":"array","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"}},"required":["id"]}]},"project":{"minItems":1,"uniqueItems":true,"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id del proyecto en ASMS","type":"integer"}},"required":["reference","id"]}]},"service":{"minItems":1,"uniqueItems":true,"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id del servicio en ASMS","type":"integer"}},"required":["reference","id"]}]},"category":{"minItems":1,"uniqueItems":true,"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id de la categorÍa en ASMS","type":"integer"}},"required":["reference","id"]}]},"applicant":{"minItems":1,"uniqueItems":true,"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id del solicitante en ASMS","type":"integer"}},"required":["id"]}]},"organizationalArea":{"minItems":1,"uniqueItems":true,"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id del solicitante en ASMS","type":"integer"}},"required":["id"]}]},"providers":{"minItems":1,"uniqueItems":true,"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id del solicitante en ASMS","type":"integer"}},"required":["id"]}]},"client":{"minItems":1,"uniqueItems":true,"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id del cliente en ASMS","type":"integer"}},"required":["id"]}]},"company":{"minItems":1,"uniqueItems":true,"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id del compañía en ASMS","type":"integer"}},"required":["id"]}]},"responsibleGroup":{"minItems":1,"uniqueItems":true,"description":"Representa la relación de valores entre ASMS y ServiceNow","type":"array","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id del grupo responsable en ASMS","type":"integer"}},"required":["id"]}]},"responsible":{"minItems":1,"uniqueItems":true,"type":"array","description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"reference":{"description":"Representa el nombre de referencia para valores de mapeo tipo fijo","type":"string"},"id":{"description":"Representa el id del responsable en ASMS","type":"integer"}},"required":["id"]}]},"case":{"type":"array","minItems":1,"uniqueItems":true,"items":[{"type":"object","properties":{"table":{"description":"Representa el nombre de la clase en ServiceNow","type":"string","enum":["incident","problem","change_request"]},"dataSource":{"description":"Indica al sistema que plataforma sera la fuente de información, o si se sincronizara en paralelo (ambas plataformas son fuente de información)","type":"string","enum":["Aranda","Both","External"]},"externalIdField":{"type":"string","description":"Representa el nombre del campo en ServiceNow que relaciona con el campo Id por Proyecto en ASMS"},"definition":{"description":"Representa la relación entre los campos de ASMS con ServiceNow","type":"object","properties":{"itemType":{"description":"Nombre del tipo de caso en ASMS","enum":["Incidents","Problem","Change","ServiceCall","Release"],"type":"string"},"typeRegister":{"description":"Representa la relación entre el campo tipo de registro y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]}},"required":["type"]},"service":{"description":"Representa la relación entre la propiedad Servicio y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"project":{"description":"Representa la relación entre la propiedad proyecto y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"category":{"description":"Representa la relación entre la propiedad categorÍa y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"applicant":{"description":"Representa la relación entre la propiedad solicitante y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del solicitante en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]}},"required":["type"]},"responsibleGroup":{"description":"Representa la relación entre la propiedad grupo responsable y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del grupo responsable en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]}},"required":["type"]},"responsible":{"description":"Representa la relación entre la propiedad responsable y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del responsable en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]}},"required":["type"]},"ci":{"description":"Representa la relación entre la propiedad CI y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del CI en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]}},"required":["type"]},"client":{"description":"Representa la relación entre la propiedad Cliente y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del cliente en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]}},"required":["type"]},"company":{"description":"Representa la relación entre la propiedad Compañía y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del compañía en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]}},"required":["type"]},"organizationalArea":{"description":"Representa la relación entre la propiedad Area Organizacional y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del compañía en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]}},"required":["type"]},"providers":{"description":"Representa la relación entre la propiedad Proveedores y el campo de ServiceNow equivalente","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","description":"Representa el nombre del campo en ServiceNow"},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del compañía en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]}},"required":["type"]}},"required":["itemType","category"]}},"required":["table","definition"]}]},"model":{"type":"array","minItems":1,"uniqueItems":true,"description":"Representa la relación entre la categorÍa y modelo de ASMS y sus respectivas dependencias como estados y campos adicionales","items":[{"type":"object","properties":{"state":{"description":"Representa la relación entre los estados de ASMS y los estados en ServiceNow","type":"array","minItems":1,"uniqueItems":true,"items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del estado en ASMS","type":"integer"},"commentary":{"type":"object","description":"Solution","properties":{"value":{"description":"Representa el valor que tendrá el campo solución","type":"string"},"Key":{"description":"Representa el nombre del campo en ServiceNow","type":"string"}}}},"required":["value","id"]}]},"id":{"type":"integer","description":"Representa el id del modelo en ASMS"},"additionalFields":{"type":"array","minItems":1,"description":"Representa los campos adicionales en ASMS","uniqueItems":true,"items":[{"type":"object","properties":{"mapping":{"type":"array","uniqueItems":true,"minItems":1,"description":"Representa la relación de valores entre ASMS y ServiceNow","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del valor en ASMS","type":"integer"}},"required":["value","id"]}]},"id":{"description":"Representa el id del campo adicional en ASMS","type":"integer"},"value":{"title":"values","type":"array","minItems":1,"uniqueItems":true,"description":"Representa el valor que tendrá el campo, si este no se relaciona con ningún campo en ServiceNow","items":{"title":"items","type":"string"}},"field":{"type":"object","description":"Representa el campo en ServiceNow","properties":{"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"description":"Representa el nombre del campo en ServiceNow","type":"string"},"type":{"type":"string","description":"Representa el tipo de campo en ServiceNow","enum":["Reference","Choice","Data"]}},"required":["key","type"]}},"required":["id"]}]}},"required":["state","id"]}]}},"required":["case","model","urgency","impact"]}',	
	NULL, 
	'ASMS',
	'ServiceNow', 
	'Aranda.Integration.ASMS.ServiceNow.Services.ValidateConfigurationService',
	'Aranda.Integration.ASMS.ServiceNow.dll',
	0,
	NULL;

EXEC [METADATA_AIC_DEFINITION] 
	'99008', 
	'Integración CMDB - ServiceNow', 
	'Integración CMDB con ServiceNow', 
	'{"$schema":"http://json-schema.org/draft-04/schema#","$id":"https://www.arandasoft.com/AIC/99008.schema.json","title":"Integration","type":"object","properties":{"risk":{"description":"Representa La relación que se formara entre la criticidad de la CMDB y ServiceNow","minItems":1,"uniqueItems":true,"type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa la clase del CI en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"mapping":{"minItems":1,"description":"Representa la relación de valores entre la CMDB y ServiceNow","type":"array","items":[{"type":"object","properties":{"value":{"minLength":1,"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"minimum":1,"description":"Representa el Id de la urgencia en la CMBD de Aranda","type":"integer"}},"required":["value","id"]}]},"field":{"description":"Representa el nombre del campo en ServiceNow","minLength":1,"type":"string"}},"required":["reference","mapping","field"]}]},"impact":{"description":"Representa La relación que se formara entre la criticidad de la CMDB y ServiceNow","minItems":1,"uniqueItems":true,"type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa la clase del CI en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"mapping":{"minItems":1,"description":"Representa la relación de valores entre la CMDB y ServiceNow","type":"array","items":[{"type":"object","properties":{"value":{"minLength":1,"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"minimum":1,"description":"Representa el Id de la urgencia en la CMBD de Aranda","type":"integer"}},"required":["value","id"]}]},"field":{"description":"Representa el nombre del campo en ServiceNow","minLength":1,"type":"string"}},"required":["reference","mapping","field"]}]},"ci":{"description":"Representa la relación entre los campos de los CIs de Aranda y ServiceNow","type":"array","minItems":1,"uniqueItems":true,"items":[{"type":"object","properties":{"reference":{"description":"Representa la clase del CI en ServiceNow","type":"string"},"definition":{"type":"object","properties":{"description":{"type":"object","description":"Representa la Descripición del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"noteField":{"type":"string","description":"Representa el nombre del camo tipo journal o journal input en ServiceNow para agregar notas"},"name":{"type":"object","description":"Representa el Nombre del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"assetTag":{"type":"object","description":"Representa la Etiqueta de inventario del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]}},"required":["type"]},"serial":{"type":"object","description":"Representa el Serial del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"rfid":{"type":"object","description":"Representa el RFID del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"barCode":{"type":"object","description":"Representa el Código de barras del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"licenseNumber":{"type":"object","description":"Representa el Número de licencia del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"price":{"type":"object","description":"Representa el Precio del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"brand":{"type":"object","description":"Representa la Marca del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"model":{"type":"object","description":"Representa el Model del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"location":{"type":"object","description":"Representa la ubicación del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"responsible":{"type":"object","description":"Representa el Responsable del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"provider":{"type":"object","description":"Representa el Proveedor del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"manufacturer":{"type":"object","description":"Representa el Fabricante del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"costCenter":{"type":"object","description":"Representa el Cetro de costos del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"measureUnit":{"type":"object","description":"Representa la Unidad de medida del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","description":"Permite agregar valores por defecto para ambos sistemas","properties":{"value":{"description":"Representa el valor en ServiceNow con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"}},"required":["value","id"]},"onError":{"type":"array","description":"Permite agregar una acción cuando no encuentre el item en las plataformas","items":[{"type":"object","properties":{"action":{"description":"Acción que ejecutara cuando no encuentre el item en las plataformas","type":"string","enum":["createNote","returnError"]},"message":{"description":"Permite agregar un mensaje personalizado cuando se cree una nota","type":"string"}},"required":["action"]}]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"installationDate":{"type":"object","description":"Representa la Fecha de aceptación del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"reponsibleDate":{"type":"object","description":"Representa la Fecha de inicio de responsabilidad del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]},"size":{"type":"object","description":"Representa el Valor de unidad de medida del CI en la CMDB de Aranda","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"},"mappingDirection":{"description":"Representa la plataforma que tiene permitido actualizar los campos del CI","type":"string","enum":["Both","Aranda","External"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en ServiceNow"}},"required":["type"]}},"required":["name","responsible"]}},"required":["reference","definition"]}]},"externalClass":{"type":"array","minItems":1,"description":"Representa los nombres de las clases del CI en ServiceNow","items":[{"type":"object","properties":{"name":{"minLength":1,"type":"string","description":"Nombre de la clase en ServiceNow"},"reference":{"minLength":1,"type":"string","description":"Nombre de referencia para las clases de ServiceNow, usado con el fin de duplicar las clases de ServiceNow"}},"required":["name","reference"]}]},"model":{"type":"array","description":"Representa la relación de los modelos de la CMDB de Aranda y ServiceNow","items":[{"type":"object","properties":{"mapping":{"minItems":1,"type":"array","description":"Representa la relación de valores entre la CMDB y ServiceNow","items":[{"type":"object","properties":{"id":{"minimum":1,"type":"integer","description":"Representa el Id de la urgencia en la CMBD de Aranda"},"value":{"minLength":1,"type":"string","description":"Representa el valor en ServiceNow con el que se crea la relación"}},"required":["id"]}]},"reference":{"type":"string","description":"Representa el nombre de la clase CMDB de ServiceNow"}},"required":["mapping","reference"]}]},"brand":{"type":"array","description":"Representa la relación de las marcas de la CMDB de Aranda y ServiceNow","items":[{"type":"object","properties":{"mapping":{"minItems":1,"type":"array","description":"Representa la relación de valores entre la CMDB y ServiceNow","items":[{"type":"object","properties":{"id":{"minimum":1,"type":"integer","description":"Representa el Id de la urgencia en la CMBD de Aranda"},"value":{"minLength":1,"type":"string","description":"Representa el valor en ServiceNow con el que se crea la relación"}},"required":["id"]}]},"reference":{"type":"string","description":"Representa el nombre de la clase CMDB de ServiceNow"}},"required":["mapping","reference"]}]},"location":{"type":"array","description":"Representa la relación de las marcas de la CMDB de Aranda y ServiceNow","items":[{"type":"object","properties":{"mapping":{"minItems":1,"type":"array","description":"Representa la relación de valores entre la CMDB y ServiceNow","items":[{"type":"object","properties":{"id":{"minimum":1,"type":"integer","description":"Representa el Id de la urgencia en la CMBD de Aranda"},"value":{"minLength":1,"type":"string","description":"Representa el valor en ServiceNow con el que se crea la relación"}},"required":["id"]}]},"reference":{"type":"string","description":"Representa el nombre de la clase CMDB de ServiceNow"}},"required":["mapping","reference"]}]},"responsible":{"type":"array","description":"Representa la relación de los responsables de la CMDB de Aranda y ServiceNow","items":[{"type":"object","properties":{"mapping":{"minItems":1,"type":"array","description":"Representa la relación de valores entre la CMDB y ServiceNow","items":[{"type":"object","properties":{"id":{"minimum":1,"type":"integer","description":"Representa el Id de la urgencia en la CMBD de Aranda"},"value":{"minLength":1,"type":"string","description":"Representa el valor en ServiceNow con el que se crea la relación"}},"required":["id"]}]},"reference":{"type":"string","description":"Representa el nombre de la clase CMDB de ServiceNow"}},"required":["mapping","reference"]}]},"provider":{"type":"array","description":"Representa la relación de los proveedores de la CMDB de Aranda y ServiceNow","items":[{"type":"object","properties":{"mapping":{"minItems":1,"type":"array","description":"Representa la relación de valores entre la CMDB y ServiceNow","items":[{"type":"object","properties":{"id":{"minimum":1,"type":"integer","description":"Representa el Id de la urgencia en la CMBD de Aranda"},"value":{"minLength":1,"type":"string","description":"Representa el valor en ServiceNow con el que se crea la relación"}},"required":["id"]}]},"reference":{"type":"string","description":"Representa el nombre de la clase CMDB de ServiceNow"}},"required":["mapping","reference"]}]},"manufacturer":{"type":"array","description":"Representa la relación de los fabricantes de la CMDB de Aranda y ServiceNow","items":[{"type":"object","properties":{"mapping":{"minItems":1,"type":"array","description":"Representa la relación de valores entre la CMDB y ServiceNow","items":[{"type":"object","properties":{"id":{"type":"integer","minimum":1,"description":"Representa el Id de la urgencia en la CMBD de Aranda"},"value":{"minLength":1,"type":"string","description":"Representa el valor en ServiceNow con el que se crea la relación"}},"required":["id"]}]},"reference":{"type":"string","description":"Representa el nombre de la clase CMDB de ServiceNow"}},"required":["mapping","reference"]}]},"costCenter":{"description":"Representa la relación de los centros de costo de la CMDB de Aranda y ServiceNow","type":"array","items":[{"type":"object","properties":{"mapping":{"minItems":1,"type":"array","description":"Representa la relación de valores entre la CMDB y ServiceNow","items":[{"type":"object","properties":{"id":{"type":"integer","minimum":1,"description":"Representa el Id de la urgencia en la CMBD de Aranda"},"value":{"minLength":1,"type":"string","description":"Representa el valor en ServiceNow con el que se crea la relación"}},"required":["id"]}]},"reference":{"type":"string","description":"Representa el nombre de la clase CMDB de ServiceNow"}},"required":["mapping","reference"]}]},"category":{"description":"Representa la relación de las categorías de los CIs de Aranda y las clases de la CMDB de ServiceNow","type":"array","minItems":1,"items":[{"type":"object","properties":{"id":{"type":"integer","description":"Representa el Id de la categoría en la CMBD de Aranda","minimum":1},"reference":{"minLength":1,"description":"Representa el nombre de la clase CMDB de ServiceNow","type":"string"},"uploadAttachments":{"description":"Permite adjuntar archivos","type":"boolean"},"syncNotes":{"description":"Permite sincronizar las notas","type":"boolean"},"ciSource":{"description":"Indica al sistema que plataforma sera la fuente de información, o si se sincronizara en paralelo (ambas plataformas son fuente de información)","type":"string","enum":["Aranda","Both","External"]},"serviceNowFilter":{"minLength":1,"description":"Representa el filtro de los CIs en ServiceNow","type":"string"},"cmdbFilter":{"description":"Representa el filtro de los CIs en la CMDB Aranda","type":"array","items":[{"type":"object","properties":{"logicOperator":{"type":"string","description":"Operador lógico que relacionara los criterios de búsqueda","enum":["And","Or"]},"dataType":{"type":"string","description":"Tipo de dato","enum":["ShortText","Datetime","LongText","Numeric","Decimal","Date","Time","Currency","Link"]},"field":{"type":"string","description":"Nombre del campo a filtrar","enum":["Name","StateId","ModelId","Serial","AssetTag","Price","ImpactId","BrandId","ManufacturerId","ProviderId","UnitId","UnitSize","ResponsibleId","LicenseNumber","CostCenterId","CreatedDate","ModifiedDate","ModifierId","AuthorId","Version","InterfaceId","Type","ReasonId","ClosedDate","PreviousStateId","RiskLevel"]},"operator":{"type":"string","description":"Operador lógico de búsqueda","enum":["None","And","Or","EqualTo","NotEqualTo","GreaterThan","GreaterThanOrEqualTo","LessThan","LessThanOrEqualTo","Like"]},"value":{"description":"","type":"string"}},"required":["dataType","field","operator","logicOperator","value"]}]},"projectId":{"minimum":1,"description":"Representa el Id del proyecto en la CMBD de Aranda","type":"integer"},"additionalFields":{"type":"array","minItems":1,"description":"Representa los campos adicionales de la CMDB de Aranda","items":[{"type":"object","properties":{"field":{"type":"object","properties":{"key":{"minLength":1,"description":"Representa el nombre del campo en ServiceNow","type":"string"},"dataType":{"type":"string","description":"Tipo de dato en ServiceNow","enum":["Choice","Reference","Data"]},"searchBy":{"type":"string","minLength":1,"description":"Representa el nombre del campo por el que se buscara en ServiceNow"}},"required":["key","dataType"]},"id":{"type":"integer","description":"Representa el Id del campo adicional en la CMBD de Aranda","minimum":1},"mapping":{"minItems":1,"description":"Representa la relación de valores entre la CMDB y ServiceNow","type":"array","items":[{"type":"object","properties":{"id":{"description":"Representa el Id del valor del campo adicional en la CMBD de Aranda","minimum":1,"type":"integer"},"value":{"minLength":1,"type":"string","description":"Representa el valor en ServiceNow con el que se crea la relación"}},"required":["id","value"]}]},"value":{"title":"values","type":"array","minItems":1,"uniqueItems":true,"description":"Representa el valor que tendrá el campo, si este no se relaciona con ningún campo en ServiceNow","items":{"title":"items","type":"string"}}},"required":["id"]}]},"state":{"type":"object","description":"Representa la relacion de estados entre ServiceNow y la CMDB de Aranda","properties":{"field":{"type":"object","properties":{"key":{"description":"Nombre del campo en ServiceNow","minLength":1,"type":"string"},"dataType":{"description":"Tipo de dato en ServiceNow","type":"string","enum":["Choice","Reference","Data"]},"searchBy":{"description":"Representa el nombre del campo por el que se buscara en ServiceNow","type":"string"}},"required":["key","dataType","searchBy"]},"mapping":{"description":"Representa la relación de valores entre la CMDB y ServiceNow","type":"array","minItems":1,"items":[{"type":"object","properties":{"id":{"minimum":1,"description":"Representa el Id del valor del estado en la CMBD de Aranda","type":"integer"},"reason":{"description":"Representa el Id de la razón de cambio de estado en la CMBD de Aranda","type":"integer"},"value":{"minLength":1,"type":"string","description":"Representa el valor en ServiceNow con el que se crea la relación"}},"required":["id","value"]}]}},"required":["field","mapping"]}},"required":["id","reference","projectId","state","ciSource"]}]},"numberProcesses":{"description":"Número de sub-procesos que se ejecutaran para la consulta y registro de CIs y sus componentes","type":"integer","minimum":1,"maximum":20},"relationship":{"type":"object","description":"Representa la relación entre los CIs","properties":{"searchBy":{"description":"Representa el nombre del campo por el que se buscara en la tabla cmdb_rel_type el tipo de relación en ServiceNow ","type":"string"},"mappingType":{"type":"array","description":"Representa la relación de los tipos de relaciones entre la CMDB de Arana y ServiceNow","items":[{"type":"object","properties":{"id":{"minimum":1,"description":"Representa el Id del valor del tipo de relación en la CMBD de Aranda","type":"integer"},"value":{"minLength":1,"type":"string","description":"Representa el valor en ServiceNow con el que se crea la relación"}},"required":["id","value"]}]},"mappingRelationship":{"title":"Relationship","description":"Representa la relación entre los CIs","type":"array","items":[{"type":"object","properties":{"parent":{"type":"integer","description":"Representa la categoría del CI Padre","minimum":1},"child":{"type":"integer","description":"Representa la categoría del CI hijo o dependiente","minimum":1}},"required":["parent","child"]}]}}}},"required":["ci","externalClass","category"]}',
	NULL, 
	'CMDB',
	'ServiceNow', 
	'Aranda.Integration.CMDB.ServiceNow.Services.ValidateConfigurationService',
	'Aranda.Integration.CMDB.ServiceNow.dll',
	1,
	NULL;

EXEC [METADATA_AIC_DEFINITION] 
	'99005', 
	'Integración ASMS - Jira Cloud', 
	'Integración ASMS con Jira Cloud', 
	'{"$schema":"http://json-schema.org/draft-04/schema#","$id":"https://www.arandasoft.com/AIC/99005.schema.json","type":"object","properties":{"project":{"description":"Relación entre las propiedades del caso de ASMS y los proyectos en Jira Cloud","type":"array","items":[{"type":"object","properties":{"id":{"description":"Representa el id del proyecto en ASMS","type":"integer"},"service":{"description":"Representa el id del servicio en ASMS","type":"integer"},"category":{"type":"array","description":"Relación entre las categorías de ASMS y los proyectos en Jira Cloud","items":[{"type":"object","properties":{"id":{"description":"Representa el id de la categoría en ASMS","type":"integer"},"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"value":{"description":"Representa el nombre del proyecto en Jira Cloud","type":"string"},"dataSource":{"description":"Indica al sistema que plataforma sera la fuente de información, o si se sincronizara en paralelo (ambas plataformas son fuente de información)","type":"string","enum":["Aranda","Both","External"]}},"required":["id","value","reference"]}]}},"required":["id","service","category"]}]},"itemType":{"type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"type":{"type":"string","description":"Nombre del tipo de caso en ASMS","enum":["Incidents","Problem","Change","ServiceCall","Release"]},"workItemType":{"type":"string","description":"Nombre del Issue Item Type en Jira Cloud"}},"required":["reference","type","workItemType"]}]},"case":{"type":"array","description":"Representa la relación entre los campos de ASMS con los campos de Jira Cloud","items":[{"type":"object","properties":{"reference":{"type":"string","description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso"},"definition":{"type":"object","properties":{"subject":{"description":"Representa el Asunto del case en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Cloud"}},"required":["type","key"]},"description":{"description":"Representa la Descripición del case en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Cloud"}},"required":["type","key"]},"idByProject":{"description":"Representa el identificador del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira"}},"required":["type","key"]},"services":{"description":"Representa el servicio del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira"}},"required":["type","key"]},"category":{"description":"Representa la categoría del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira"}},"required":["type","key"]},"priority":{"description":"Representa la prioridad del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira"}},"required":["type","key"]},"creationDate":{"description":"Representa la fecha de registro del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira"}},"required":["type","key"]},"responsible":{"type":"object","description":"Representa la relación entre la propiedad responsable y el campo de Jira Cloud","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"type":"array","description":"Representa la(s) propiedad(es) por la que se buscará el ítem en las APIs","items":[{"type":"string","description":"Nombre del campo","enum":["Email","Name"]}]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Cloud"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"responsibleGroup":{"description":"Representa la relación entre la propiedad grupo responsable y el campo de Jira Cloud","type":"object","properties":{"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Cloud"},"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["key"]},"client":{"description":"Representa la relación entre la propiedad Cliente y el campo de Jira Cloud","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"type":"array","description":"Representa la(s) propiedad(es) por la que se buscará el ítem en las APIs","items":[{"type":"string","description":"Nombre del campo","enum":["Email","Name"]}]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Cloud"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"company":{"type":"object","description":"Representa la relación entre la propiedad Compañía y el campo de Jira Cloud","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Cloud"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"applicant":{"description":"Representa la relación entre la propiedad solicitante y el campo de Jira Cloud","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"type":"array","description":"Representa la(s) propiedad(es) por la que se buscará el ítem en las APIs","items":[{"type":"string","description":"Nombre del campo","enum":["Email","Name"]}]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Cloud"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"typeRegister":{"type":"object","description":"Representa la relación entre el campo tipo de registro y el campo de Jira Cloud","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Cloud"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"ci":{"type":"object","description":"Representa la relación entre el campo CI y el campo de Jira Cloud","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Cloud"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]}},"required":["subject","description"]}},"required":["reference","definition"]}]},"task":{"type":"array","description":"Representa la relación entre las tareas de ASMS y los issues en Jira Cloud","items":[{"type":"object","properties":{"reference":{"type":"string","description":"Representa el nombre de referencia entre project, itemType y task"},"definition":{"type":"object","properties":{"idByProject":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]},"subject":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]},"description":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]},"responsible":{"type":"object","properties":{"type":{"type":"string","enum":["Value","Mapper","FieldValue"]},"SearchBy":{"type":"array","items":{"type":"string","enum":["Email","Name"]}},"key":{"type":"string","minLength":1},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"responsibleGroup":{"type":"object","properties":{"key":{"type":"string","minLength":1},"type":{"type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["key","type"]},"duration":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]},"startdate":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]},"enddate":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1}},"required":["type","key"]}},"required":["subject","description","idByProject"]},"model":{"type":"object","properties":{"id":{"type":"integer"},"additionalFields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"type":{"type":"string","enum":["FieldValue","Value","Mapper","mapping"]},"field":{"type":"object","properties":{"key":{"type":"string"}},"required":["key"]},"mapping":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}},"required":["id","value"]}}},"required":["id"]}},"state":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"Id":{"type":"integer"},"value":{"type":"string"},"Value":{"type":"string"},"reason":{"type":"integer"},"commentary":{"type":"object","properties":{"value":{"type":"string"},"key":{"type":"string"}}}}}}},"required":["id","state"]}},"required":["reference","definition","model"]}]},"responsible":{"description":"Representa la relación de valores entre ASMS y Jira Cloud","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del responsable en ASMS","type":"integer"},"Value":{"description":"Representa el valor en Jira Cloud con el que se crea la relación","type":"string"}},"required":["reference"]}]},"typeRegister":{"description":"Representa la relación de valores entre ASMS y Jira Cloud","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"},"Value":{"description":"Representa el valor en Jira Cloud con el que se crea la relación","type":"string"}},"required":["reference"]}]},"client":{"description":"Representa la relación de valores entre ASMS y Jira Cloud","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del Cliente en ASMS","type":"integer"},"Value":{"description":"Representa el valor en Jira Cloud con el que se crea la relación","type":"string"}},"required":["reference"]}]},"company":{"description":"Representa la relación de valores entre ASMS y Jira Cloud","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id de la Compañía en ASMS","type":"integer"},"Value":{"description":"Representa el valor en Jira Cloud con el que se crea la relación","type":"string"}},"required":["reference"]}]},"model":{"description":"Representa la relación de valores entre ASMS y Jira Cloud","type":"array","minItems":1,"uniqueItems":true,"items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"state":{"description":"Representa la relación entre los estados de ASMS y los estados en Jira","type":"array","minItems":1,"uniqueItems":true,"items":[{"type":"object","properties":{"value":{"description":"Representa el valor en Jira con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del estado en ASMS","type":"integer"},"commentary":{"type":"object","description":"Solution","properties":{"value":{"description":"Representa el valor que tendrá el campo solución","type":"string"},"Key":{"description":"Representa el nombre del campo en Jira","type":"string"}}}},"required":["value","id"]}]},"id":{"type":"integer","description":"Representa el id del modelo en ASMS"},"additionalFields":{"type":"array","minItems":1,"description":"Representa los campos adicionales en ASMS","uniqueItems":true,"items":[{"type":"object","properties":{"mapping":{"type":"array","uniqueItems":true,"minItems":1,"description":"Representa la relación de valores entre ASMS y Jira","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en Jira con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del valor en ASMS","type":"integer"}},"required":["value","id"]}]},"id":{"description":"Representa el id del campo adicional en ASMS","type":"integer"},"value":{"title":"values","type":"array","minItems":1,"uniqueItems":true,"description":"Representa el valor que tendrá el campo, si este no se relaciona con ningún campo en Jira","items":{"title":"items","type":"string"}},"field":{"type":"object","description":"Representa el campo en Jira","properties":{"key":{"description":"Representa el nombre del campo en Jira","type":"string"}},"required":["key"]}},"required":["id"]}]}},"required":["state","id"]}]},"urgency":{"type":"array","description":"Representa La relación que se formara entre la criticidad de ASMS y Jira Cloud","items":[{"type":"object","properties":{"field":{"description":"Representa el nombre del campo en Jira Cloud","type":"string"},"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"mapping":{"type":"array","items":[{"type":"object","properties":{"id":{"description":"Representa el Id de la urgencia en ASMS","type":"integer"},"value":{"description":"Representa el valor en Jira Cloud con el que se crea la relación","type":"string"}},"required":["id","value"]}]}},"required":["field","reference","mapping"]}]},"impact":{"type":"array","description":"Representa La relación que se formara entre la criticidad de ASMS y Jira Cloud","items":[{"type":"object","properties":{"field":{"description":"Representa el nombre del campo en Jira Cloud","type":"string"},"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"mapping":{"type":"array","description":"Representa la relación de valores entre ASMS y Jira Cloud","items":[{"type":"object","properties":{"id":{"description":"Representa el Id del impacto en ASMS","type":"integer"},"value":{"description":"Representa el valor en Jira Cloud con el que se crea la relación","type":"string"}},"required":["id","value"]}]}},"required":["field","reference","mapping"]}]}},"required":["itemType","project","case"]}',
	NULL, 
	'ASMS',
	'Jira Cloud', 
	'Aranda.Integration.ASMS.Jira.Services.ValidateConfigurationService',
	'Aranda.Integration.ASMS.Jira.dll',
	0,
	NULL;

EXEC [METADATA_AIC_DEFINITION] 
	'99009', 
	'Integración ASMS - Jira Server', 
	'Integración ASMS con Jira Server', 
	'{"$schema":"http://json-schema.org/draft-04/schema#","$id":"https://www.arandasoft.com/AIC/99009.schema.json","type":"object","properties":{"project":{"description":"Relación entre las propiedades del caso de ASMS y los proyectos en Jira Server","type":"array","items":[{"type":"object","properties":{"id":{"description":"Representa el id del proyecto en ASMS","type":"integer"},"service":{"description":"Representa el id del servicio en ASMS","type":"integer"},"category":{"type":"array","description":"Relación entre las categorí as de ASMS y los proyectos en Jira Server","items":[{"type":"object","properties":{"id":{"description":"Representa el id de la categorí a en ASMS","type":"integer"},"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"value":{"description":"Representa el nombre del proyecto en Jira Server","type":"string"},"dataSource":{"description":"Indica al sistema que plataforma sera la fuente de información, o si se sincronizara en paralelo (ambas plataformas son fuente de información)","type":"string","enum":["Aranda","Both","External"]}},"required":["id","value","reference"]}]}},"required":["id","service","category"]}]},"itemType":{"type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"type":{"type":"string","description":"Nombre del tipo de caso en ASMS","enum":["Incidents","Problem","Change","ServiceCall","Release"]},"workItemType":{"type":"string","description":"Nombre del Issue Item Type en Jira Server"}},"required":["reference","type","workItemType"]}]},"case":{"type":"array","description":"Representa la relación entre los campos de ASMS con los campos de Jira Server","items":[{"type":"object","properties":{"reference":{"type":"string","description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso"},"definition":{"type":"object","properties":{"subject":{"description":"Representa el Asunto del case en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Server"}},"required":["type","key"]},"description":{"description":"Representa la Descripición del case en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Server"}},"required":["type","key"]},"idByProject":{"description":"Representa el identificador del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira"}},"required":["type","key"]},"services":{"description":"Representa el servicio del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira"}},"required":["type","key"]},"category":{"description":"Representa la categoría del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira"}},"required":["type","key"]},"priority":{"description":"Representa la prioridad del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira"}},"required":["type","key"]},"creationDate":{"description":"Representa la fecha de registro del caso en ASMS","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira"}},"required":["type","key"]},"responsible":{"type":"object","description":"Representa la relación entre la propiedad responsable y el campo de Jira Server","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"type":"array","description":"Representa la(s) propiedad(es) por la que se buscará el ítem en las APIs","items":[{"type":"string","description":"Nombre del campo","enum":["Email","Name"]}]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Server"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"responsibleGroup":{"description":"Representa la relación entre la propiedad grupo responsable y el campo de Jira Server","type":"object","properties":{"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Server"},"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["key"]},"client":{"description":"Representa la relación entre la propiedad Cliente y el campo de Jira Server","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"type":"array","description":"Representa la(s) propiedad(es) por la que se buscará el ítem en las APIs","items":[{"type":"string","description":"Nombre del campo","enum":["Email","Name"]}]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Server"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"company":{"type":"object","description":"Representa la relación entre la propiedad Compañí a y el campo de Jira Server","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Server"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"applicant":{"description":"Representa la relación entre la propiedad solicitante y el campo de Jira Server","type":"object","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"searchBy":{"type":"array","description":"Representa la(s) propiedad(es) por la que se buscará el ítem en las APIs","items":[{"type":"string","description":"Nombre del campo","enum":["Email","Name"]}]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Server"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"typeRegister":{"type":"object","description":"Representa la relación entre el campo tipo de registro y el campo de Jira Server","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Server"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]},"ci":{"type":"object","description":"Representa la relación entre el campo CI y el campo de Jira Server","properties":{"type":{"description":"Tipo de mapeo","type":"string","enum":["Value","Mapper","FieldValue"]},"key":{"type":"string","minLength":1,"description":"Representa el nombre del campo en Jira Server"},"defaultValue":{"type":"object","properties":{"id":{"type":"integer"},"value":{"type":"string"}}}},"required":["type"]}},"required":["subject","description"]}},"required":["reference","definition"]}]},"responsible":{"description":"Representa la relación de valores entre ASMS y Jira Server","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del responsable en ASMS","type":"integer"},"Value":{"description":"Representa el valor en Jira Server con el que se crea la relación","type":"string"}},"required":["reference"]}]},"typeRegister":{"description":"Representa la relación de valores entre ASMS y Jira Server","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del tipo de registro en ASMS","type":"integer"},"Value":{"description":"Representa el valor en Jira Server con el que se crea la relación","type":"string"}},"required":["reference"]}]},"client":{"description":"Representa la relación de valores entre ASMS y Jira Server","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id del Cliente en ASMS","type":"integer"},"Value":{"description":"Representa el valor en Jira Server con el que se crea la relación","type":"string"}},"required":["reference"]}]},"company":{"description":"Representa la relación de valores entre ASMS y Jira Server","type":"array","items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"Id":{"description":"Representa el id de la Compañí a en ASMS","type":"integer"},"Value":{"description":"Representa el valor en Jira Server con el que se crea la relación","type":"string"}},"required":["reference"]}]},"model":{"description":"Representa la relación de valores entre ASMS y Jira Server","type":"array","minItems":1,"uniqueItems":true,"items":[{"type":"object","properties":{"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"state":{"description":"Representa la relación entre los estados de ASMS y los estados en Jira","type":"array","minItems":1,"uniqueItems":true,"items":[{"type":"object","properties":{"value":{"description":"Representa el valor en Jira con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del estado en ASMS","type":"integer"},"commentary":{"type":"object","description":"Solution","properties":{"value":{"description":"Representa el valor que tendrá el campo solución","type":"string"},"Key":{"description":"Representa el nombre del campo en Jira","type":"string"}}}},"required":["value","id"]}]},"id":{"type":"integer","description":"Representa el id del modelo en ASMS"},"additionalFields":{"type":"array","minItems":1,"description":"Representa los campos adicionales en ASMS","uniqueItems":true,"items":[{"type":"object","properties":{"mapping":{"type":"array","uniqueItems":true,"minItems":1,"description":"Representa la relación de valores entre ASMS y Jira","items":[{"type":"object","properties":{"value":{"description":"Representa el valor en Jira con el que se crea la relación","type":"string"},"id":{"description":"Representa el id del valor en ASMS","type":"integer"}},"required":["value","id"]}]},"id":{"description":"Representa el id del campo adicional en ASMS","type":"integer"},"value":{"title":"values","type":"array","minItems":1,"uniqueItems":true,"description":"Representa el valor que tendrá el campo, si este no se relaciona con ningún campo en Jira","items":{"title":"items","type":"string"}},"field":{"type":"object","description":"Representa el campo en Jira","properties":{"key":{"description":"Representa el nombre del campo en Jira","type":"string"}},"required":["key"]}},"required":["id"]}]}},"required":["state","id"]}]},"urgency":{"type":"array","description":"Representa La relación que se formara entre la criticidad de ASMS y Jira Server","items":[{"type":"object","properties":{"field":{"description":"Representa el nombre del campo en Jira Server","type":"string"},"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"mapping":{"type":"array","items":[{"type":"object","properties":{"id":{"description":"Representa el Id de la urgencia en ASMS","type":"integer"},"value":{"description":"Representa el valor en Jira Server con el que se crea la relación","type":"string"}},"required":["id","value"]}]}},"required":["field","reference","mapping"]}]},"impact":{"type":"array","description":"Representa La relación que se formara entre la criticidad de ASMS y Jira Server","items":[{"type":"object","properties":{"field":{"description":"Representa el nombre del campo en Jira Server","type":"string"},"reference":{"description":"Representa el nombre de referencia entre el project, itemType y case y las propiedades que relacionan valores de las propiedades del caso","type":"string"},"mapping":{"type":"array","description":"Representa la relación de valores entre ASMS y Jira Server","items":[{"type":"object","properties":{"id":{"description":"Representa el Id del impacto en ASMS","type":"integer"},"value":{"description":"Representa el valor en Jira Server con el que se crea la relación","type":"string"}},"required":["id","value"]}]}},"required":["field","reference","mapping"]}]}},"required":["itemType","project","case"]}',	
	NULL, 
	'ASMS',
	'Jira Server', 
	'Aranda.Integration.ASMS.Jira.Services.ValidateConfigurationService',
	'Aranda.Integration.ASMS.Jira.dll',
	0,
	NULL;

EXEC [METADATA_AIC_DEFINITION] 
	'99010', 
	'Integración CMDB - HP TechPulse', 
	'Integración CMDB con HP TechPulse', 
	'{"$schema":"http://json-schema.org/draft-04/schema#","$id":"https://www.arandasoft.com/AIC/990010.schema.json","title":"Integration","type":"object","properties":{"ci":{"description":"Relación entre campos de CIs de Aranda y Techpulse","type":"array","minItems":1,"items":{"type":"object","properties":{"reference":{"type":"string","minLength":1},"definition":{"type":"object","properties":{"name":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1},"DefaultValue":{"type":"object","properties":{"id":{"type":"integer","minimum":1}},"required":["id"]}},"required":["type","key"]},"brand":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue","Value","Mapper"]},"key":{"type":"string","minLength":1},"DefaultValue":{"type":"object","properties":{"id":{"type":"integer","minimum":1}},"required":["id"]}},"required":["type","key"]},"model":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue","Value","Mapper"]},"key":{"type":"string","minLength":1},"DefaultValue":{"type":"object","properties":{"id":{"type":"integer","minimum":1}},"required":["id"]}},"required":["type","key"]},"assetTag":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue","Value","Mapper"]},"key":{"type":"string","minLength":1},"DefaultValue":{"type":"object","properties":{"id":{"type":"integer","minimum":1}},"required":["id"]}},"required":["type","key"]},"serial":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue"]},"key":{"type":"string","minLength":1},"DefaultValue":{"type":"object","properties":{"id":{"type":"integer","minimum":1}},"required":["id"]}},"required":["type","key"]},"responsible":{"type":"object","properties":{"type":{"type":"string","enum":["FieldValue","Value","Mapper"]},"key":{"type":"string","minLength":1},"SearchBy":{"type":"array","items":{"type":"string"}},"DefaultValue":{"type":"object","properties":{"id":{"type":"integer","minimum":1}},"required":["id"]}},"required":["type","key"]}},"required":["name","brand","model","assetTag","serial","responsible"]}},"required":["reference","definition"]}},"category":{"type":"array","minItems":1,"items":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"reference":{"type":"string","minLength":1},"keys":{"type":"array","minItems":1,"items":{"type":"string"}},"externalFilter":{"type":"string"},"projectId":{"type":"integer","minimum":1},"additionalFields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"key":{"type":"string","minLength":1},"mapping":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"value":{"type":"string","minLength":1}},"required":["id","value"]}},"value":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"required":["id","key"]}},"state":{"type":"array","minItems":1,"items":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"reason":{"type":"integer"},"value":{"type":"string","minLength":1}},"required":["id","value"]}}},"required":["id","reference","keys","projectId","state"]}},"numberProcesses":{"type":"integer","minimum":1,"description":"Número de sub-procesos que se ejecutarán"},"tenantIds":{"type":"array","minItems":1,"items":{"type":"string","minLength":1}}},"required":["ci","category","numberProcesses","tenantIds"]}',	
	NULL, 
	'CMDB',
	'HP TechPulse', 
	'Aranda.Integration.CMDB.HPTechPulse.Services.ValidateConfigurationService',
	'Aranda.Integration.CMDB.HPTechPulse.dll',
	1,
	NULL;

EXEC [METADATA_AIC_DEFINITION] 
	'99011', 
	'Integración CMDB - Intune', 
	'Integración CMDB con Intune', 
	'{"$schema":"http://json-schema.org/draft-04/schema#","$id":"https://www.arandasoft.com/AIC/990011.schema.json","title":"IntuneIntegration","type":"object","properties":{"ci":{"description":"Relación entre campos de la CMDB con Intune","type":"array","minItems":1,"items":{"type":"object","properties":{"reference":{"type":"string","minLength":1},"definition":{"type":"object","properties":{"name":{"description":"Representa el nombre del CI en la CMDB","type":"object","properties":{"type":{"type":"string","enum":["FieldValue","Mapper","Value"]},"key":{"type":"string","minLength":1}},"required":["type"]},"serial":{"description":"Representa el número de serial del CI en la CMDB","type":"object","properties":{"type":{"type":"string","enum":["FieldValue","Mapper","Value"]},"key":{"type":"string","minLength":1}},"required":["type"]},"assetTag":{"description":"Representa la etiqueta del CI en la CMDB","type":"object","properties":{"type":{"type":"string","enum":["FieldValue","Mapper","Value"]},"key":{"type":"string","minLength":1}},"required":["type"]},"brand":{"description":"Representa la marca del CI en la CMDB","type":"object","properties":{"type":{"type":"string","enum":["FieldValue","Mapper","Value"]},"key":{"type":"string","minLength":1}},"required":["type"]},"model":{"description":"Representa el modelo del CI en la CMDB","type":"object","properties":{"type":{"type":"string","enum":["FieldValue","Mapper","Value"]},"key":{"type":"string","minLength":1}},"required":["type"]},"responsible":{"description":"Representa el usuario responsable del CI en la CMDB","type":"object","properties":{"type":{"type":"string","enum":["FieldValue","Mapper","Value"]},"key":{"type":"string","minLength":1},"SearchBy":{"type":"array","items":{"type":"string","enum":["Email","Name"]}},"DefaultValue":{"type":"object","properties":{"id":{"type":"integer","minimum":1}},"required":["id"]}},"required":["type"]}},"required":["responsible"]}},"required":["reference","definition"]}},"brand":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","minLength":1},"id":{"type":"integer","minimum":1},"value":{"type":"string","minLength":1}},"required":["reference","id","value"]}},"model":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string","minLength":1},"id":{"type":"integer","minimum":1},"value":{"type":"string","minLength":1}},"required":["reference","id","value"]}},"category":{"description":"Relación entre las categorias  de la CMDB y los Tipos de dispositivo en Intune (Keys)","type":"array","minItems":1,"items":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"reference":{"type":"string","minLength":1},"keys":{"type":"array","minItems":1,"items":{"type":"string"}},"projectId":{"type":"integer","minimum":1},"additionalFields":{"description":"Representa la relación entre los campos adicionales de la CMDB con los campos de Intune","type":"array","items":{"oneOf":[{"description":"FieldValue","type":"object","properties":{"id":{"description":"Representa el identificador del campo adicional en la CMDB","type":"integer","minimum":1},"key":{"description":"Representa el nombre del campo en Intune","type":"string","minLength":1}},"required":["id","key"]},{"description":"Mapper","type":"object","properties":{"id":{"description":"Representa el identificador del campo adicional en la CMDB","type":"integer","minimum":1},"key":{"description":"Representa el nombre del campo en Intune","type":"string","minLength":1},"mapping":{"type":"array","minItems":1,"items":{"type":"object","properties":{"id":{"type":"integer","minimum":1},"value":{"type":"string","minLength":1}},"required":["id","value"]}}},"required":["id","key","mapping"]},{"description":"Value","type":"object","properties":{"id":{"description":"Representa el identificador del campo adicional en la CMDB","type":"integer","minimum":1},"value":{"description":"Representa el valor fijo que se asignará al campo en la CMDB","type":"array","minItems":1,"items":{"type":"string"}}},"required":["id","value"]}]}},"state":{"description":"Representa la relación entre los estados de la CMDB y los estados en Intune","type":"array","minItems":1,"items":{"type":"object","properties":{"id":{"description":"Representa el identificador del estado en la CMDB","type":"integer","minimum":1},"reason":{"description":"Representa la razón del estado en la CMDB","type":"integer"},"value":{"description":"Representa el nombre del estado en Intune (DeviceRegistrationState)","type":"string","minLength":1}},"required":["id","value"]}}},"required":["id","reference","keys","projectId","state"]}}},"required":["ci","category"]}',	
	NULL, 
	'CMDB',
	'Intune', 
	'Aranda.Integration.CMDB.Intune.Services.ValidateConfigurationService',
	'Aranda.Integration.CMDB.Intune.dll',
	1,
	'{"ci":[{"reference":"computer","definition":{"name":{"type":"FieldValue","key":"deviceName"},"brand":{"type":"FieldValue","key":"manufacturer"},"model":{"type":"FieldValue","key":"model"},"serial":{"type":"FieldValue","key":"serialNumber"},"assetTag":{"type":"FieldValue","key":"managedDeviceName"},"responsible":{"type":"FieldValue","key":"userPrincipalName","SearchBy":["Email"],"DefaultValue":{"id":1}}}}],"category":[{"reference":"computer","id":null,"projectId":1,"keys":[],"additionalFields":[],"state":[{"id":null,"value":null,"reason":null}]}]}';

PRINT 'AIC_DEFINITION DONE!'
GO
EXEC [METADATA_TASK] 99001,	'ADM ServiceNow Integration', 'Aranda.Integration.ADM.ServiceNow.Tasks.IntegrationTask', 'Aranda.Integration.ADM.ServiceNow.dll',1;
EXEC [METADATA_TASK] 99002,	'ASDKV8 TechPulse Integration', 'Aranda.Integration.ASDKV8.HPTechPulse.Tasks.IntegrationTask', 'Aranda.Integration.ASDKV8.HPTechPulse.dll', 1;
EXEC [METADATA_TASK] 99004,	'ASMS TechPulse Integration', 'Aranda.Integration.ASMS.HPTechPulse.Tasks.IntegrationTask', 'Aranda.Integration.ASMS.HPTechPulse.dll', 1;
EXEC [METADATA_TASK] 99008,	'CMDB - ServiceNow Integration', 'Aranda.Integration.CMDB.ServiceNow.Tasks.IntegrationTask', 'Aranda.Integration.CMDB.ServiceNow.dll', 1;
EXEC [METADATA_TASK] 99010,	'CMDB - TechPulse', 'Aranda.Integration.CMDB.HPTechPulse.Tasks.IntegrationTask', 'Aranda.Integration.CMDB.HPTechPulse.dll', 1;
EXEC [METADATA_TASK] 99000,	'Upload Attachments', 'Aranda.Integration.Attachments.Tasks.IntegrationTask', 'Aranda.Integration.Attachments.dll', 1;
EXEC [METADATA_TASK] 99011,	'CMDB - Intune', 'Aranda.Integration.CMDB.Intune.Tasks.IntegrationTask', 'Aranda.Integration.CMDB.Intune.dll', 1;

PRINT 'AIC_TASK DONE!';
GO
DECLARE @start AS DATETIME

SET @start = DATEADD(MINUTE, DATEDIFF(MINUTE, 0, GETUTCDATE()), 0)
                                                                                                                  
EXEC [METADATA_SCHEDULER]  
	@name=N'AIC_ATTACHMENT',  
	@description=N'Cargue de archivos de las integraciones',
	@frecuency_type='Interval',      
	@recurs_every=1,
	@weekdays=0,
	@months=0,
	@cardinal_days=0,
	@ordinal_days=0,
	@start_date=@start,
	@task_id=99000,
	@application_id=0,           
	@next_execution=NULL,
	@sche_max_delay=90




----END DEPLOY

/*
Post-Deployment Script Template							
--------------------------------------------------------------------------------------
 This file contains SQL statements that will be appended to the build script.		
 Use SQLCMD syntax to include a file in the post-deployment script.			
 Example:      :r .\myfile.sql								
 Use SQLCMD syntax to reference a variable in the post-deployment script.		
 Example:      :setvar TableName MyTable							
               SELECT * FROM [$(TableName)]					
--------------------------------------------------------------------------------------
*/

-- Funciones comunes para desplegar folders y permisos (por ejemplo Dashboard y reportes)
--:r ..\..\..\packages\Aranda.Common.9.5.0.17\tools\net462\DB\postdeploy.sql

----INITIALIZE DEPLOY


PRINT 'AVS- AFW_TASK'

EXEC METADATA_TASK  36001, N'AVS_AUDIT_RETENTION_POLICY', N'Aranda.AVS.Tasks.AuditRetentionPolicyTask', N'Aranda.ARC.Tasks.dll', 1
EXEC METADATA_TASK  36005, N'AVS_DOWNLOAD_WORKSTATION_WINDOWS', N'Aranda.AVS.Tasks.DownloadWorkstationWindowsTask', N'Aranda.AVS.Tasks.dll', 1
EXEC METADATA_TASK  36006, N'AVS_DOWNLOAD_WORKSTATION_OSX', N'Aranda.AVS.Tasks.DownloadWorkstationOsxTask', N'Aranda.AVS.Tasks.dll', 1
EXEC METADATA_TASK  36007, N'AVS_DOWNLOAD_WORKSTATION_OSX_ARM64', N'Aranda.AVS.Tasks.DownloadWorkstationOsxArmTask', N'Aranda.AVS.Tasks.dll', 1
EXEC METADATA_TASK  36008, N'AVS_DISCONNECT_OFFLINE_DEVICES', N'Aranda.AVS.Tasks.Devices.DisconnectDeviceTask', N'Aranda.AVS.Tasks.dll', 1


DECLARE 
	@start_local DATETIME,
	@start_UTC	 DATETIME;

SET @start_local = DATETIMEFROMPARTS(YEAR(GETDATE()), MONTH(GETDATE()), DAY(GETDATE()), 23, 45, 0, 0);
SET @start_UTC = DATEADD(second, DATEDIFF(second, GETDATE(), GETUTCDATE()), @start_local);

--						 @name								     @description							                           @frecuency_type	    @recurs_every	    @weekdays	@months		@cardinal_days  @ordinal_days	@start_date		    @task_id	@application_id		@next_execution		@sche_max_delay
EXEC METADATA_SCHEDULER  N'AVS_AUDIT_RETENTION_POLICY'		,    N'Aplicar política de retención en auditoría',    	               'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			36001,		36,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'AVS_DOWNLOAD_WORKSTATION_WINDOWS',    N'Descargar instaladores de estación de trabajo windows AVS',     'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			36005,		36,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'AVS_DOWNLOAD_WORKSTATION_OSX',     	 N'Descargar instaladores de estación de trabajo Mac Intel AVS',   'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			36006,		36,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'AVS_DOWNLOAD_WORKSTATION_OSX_ARM64',  N'Descargar instaladores de estación de trabajo Mac Silicon AVS', 'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			36007,		36,					@start_UTC,				0
EXEC METADATA_SCHEDULER  N'AVS_DISCONNECT_OFFLINE_DEVICES',       N'Desconecta dispositivos fuera de línea de AVS',                 'Interval',			  60,				0,			0,			0,				0,				@start_UTC,			36008,		36,					@start_UTC,				0

GO
PRINT 'AVS- AFW_PERMISSIONS'

EXEC METADATA_PERMISSIONS 36001, N'AVS_License', NULL, 1, 0,NULL

EXEC METADATA_PERMISSIONS 36002, N'AVS_Users', NULL, 1, 0,NULL
EXEC METADATA_PERMISSIONS 36003, N'AVS_User_Groups', NULL, 1, 0,NULL

EXEC METADATA_PERMISSIONS 36004, N'AVS_Get_Directory_Services', NULL, 1, 36,NULL
EXEC METADATA_PERMISSIONS 36005, N'AVS_Get_External_Authentication', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36006, N'AVS_Storage_Settings', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36007, N'AVS_Turn_Server_Local', NULL, 1, 36,NULL
EXEC METADATA_PERMISSIONS 36008, N'AVS_Turn_Server_External', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36009, N'AVS_Support_Group', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36010, N'AVS_Manage_Agent_Profile', NULL, 1, 36,NULL
EXEC METADATA_PERMISSIONS 36011, N'AVS_Get_Agent_Profile', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36012, N'AVS_Session', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36013, N'AVS_Support_Group_Mine', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36014, N'AVS_Device_Mine', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36015, N'AVS_Session_Mine', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36016, N'AVS_Create_Audit', NULL, 1, 36,NULL
EXEC METADATA_PERMISSIONS 36017, N'AVS_Get_Audit', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36018, N'AVS_Manage_Device', NULL, 1, 36,NULL
EXEC METADATA_PERMISSIONS 36019, N'AVS_Get_Device', NULL, 1, 36,NULL

EXEC METADATA_PERMISSIONS 36020, N'AVS_Manage_Global_Settings', NULL, 1, 36,NULL

PRINT 'AVS- AFW_ROLES'

EXEC METADATA_ROLE_PERMISSION 36001,1,0

EXEC METADATA_ROLE_PERMISSION 36002,1,0
EXEC METADATA_ROLE_PERMISSION 36003,1,0

EXEC METADATA_ROLE_PERMISSION 36004,1,0
EXEC METADATA_ROLE_PERMISSION 36005,1,0

EXEC METADATA_ROLE_PERMISSION 36006,1,0

EXEC METADATA_ROLE_PERMISSION 36007,1,0

EXEC METADATA_ROLE_PERMISSION 36008,1,0

EXEC METADATA_ROLE_PERMISSION 36009,1,0

EXEC METADATA_ROLE_PERMISSION 36010,1,0
EXEC METADATA_ROLE_PERMISSION 36011,1,0

EXEC METADATA_ROLE_PERMISSION 36012,1,0

EXEC METADATA_ROLE_PERMISSION 36017,1,0

EXEC METADATA_ROLE_PERMISSION 36018,1,0
EXEC METADATA_ROLE_PERMISSION 36019,1,0

EXEC METADATA_ROLE_PERMISSION 36020,1,0

DECLARE @idRolAdministrator INT
EXEC METADATA_ROLES N'AVS_Administrator', 'This role allows you to manage specialist and support', 1, 1, 36, NULL, @idRolAdministrator OUTPUT

EXEC METADATA_ROLE_PERMISSION 5,@idRolAdministrator,0
EXEC METADATA_ROLE_PERMISSION 9,@idRolAdministrator,0

EXEC METADATA_ROLE_PERMISSION 36009,@idRolAdministrator,0

EXEC METADATA_ROLE_PERMISSION 36010,@idRolAdministrator,0
EXEC METADATA_ROLE_PERMISSION 36011,@idRolAdministrator,0

EXEC METADATA_ROLE_PERMISSION 36012,@idRolAdministrator,0

EXEC METADATA_ROLE_PERMISSION 36017,@idRolAdministrator,0

EXEC METADATA_ROLE_PERMISSION 36018,@idRolAdministrator,0
EXEC METADATA_ROLE_PERMISSION 36019,@idRolAdministrator,0

DECLARE @idRolSpecialist INT
EXEC METADATA_ROLES N'AVS_Specialist', 'This role gives remote control', 1, 1, 36, NULL, @idRolSpecialist OUTPUT

EXEC METADATA_ROLE_PERMISSION 3,@idRolSpecialist,0

EXEC METADATA_ROLE_PERMISSION 36011,@idRolSpecialist,0

EXEC METADATA_ROLE_PERMISSION 36013,@idRolSpecialist,0

EXEC METADATA_ROLE_PERMISSION 36014,@idRolSpecialist,0

EXEC METADATA_ROLE_PERMISSION 36015,@idRolSpecialist,0

EXEC METADATA_ROLE_PERMISSION 36016,@idRolSpecialist,0

DECLARE @IdInfrastructureRol INT
EXEC METADATA_ROLES N'AVS_Infrastructure', 'This role allows to manage the infrastructure configuration', 1, 1, 36, NULL, @idInfrastructureRol OUTPUT

EXEC METADATA_ROLE_PERMISSION 5,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 27,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 28,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 29,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 30,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 32,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 33,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 34,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 35,@idInfrastructureRol,0

EXEC METADATA_ROLE_PERMISSION 49,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 50,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 51,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 52,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 53,@idInfrastructureRol,0

EXEC METADATA_ROLE_PERMISSION 36004,@idInfrastructureRol,0
EXEC METADATA_ROLE_PERMISSION 36005,@idInfrastructureRol,0

EXEC METADATA_ROLE_PERMISSION 36006,@idInfrastructureRol,0

EXEC METADATA_ROLE_PERMISSION 36007,@idInfrastructureRol,0

EXEC METADATA_ROLE_PERMISSION 36008,@idInfrastructureRol,0

EXEC METADATA_ROLE_PERMISSION 36020,@idInfrastructureRol,0
GO

PRINT 'AVS- MATERIALIZE_DATA'

GO
INSERT INTO [dbo].[AVS_AUDIT_USERS] (user_id, user_name, user_nick_name, user_phone1,
														user_email, start_date, end_date, is_current)
			(SELECT U.user_id, U.user_name, U.user_nick_name, U.user_phone1,
					U.user_email, GETUTCDATE(), NULL, 1 FROM [dbo].[AFW_USERS] U
					LEFT JOIN [dbo].[AVS_AUDIT_USERS] M ON U.user_id = M.user_id
					WHERE M.user_id IS NULL);

				
INSERT INTO [dbo].[AVS_AUDIT_DEVICE] (device_id, hardware_hash, name, model, operating_system, 
									serial_number, type, start_date, end_date, is_current)
	(SELECT D.id, D.hardware_hash, D.name, D.model, D.operating_system, 
									D.serial_number, D.type, GETUTCDATE(), NULL, 1
			FROM [dbo].[AVS_DEVICE] D LEFT JOIN [dbo].[AVS_AUDIT_DEVICE] M
			ON D.id = M.device_id WHERE M.device_id IS NULL);


INSERT INTO [dbo].[AVS_AUDIT_GROUP_SUPPORT] (group_support_id, name, code, description, session_support, parent_id, 
											name_parent, description_parent, start_date, end_date, is_current)
	(SELECT G.id, G.name, G.code, G.description, G.session_support, G.parent,
			P.name, P.description, GETUTCDATE(), NULL, 1
									FROM [dbo].[AVS_GROUP_SUPPORT] G
									LEFT JOIN [dbo].[AVS_GROUP_SUPPORT] P ON G.parent = P.id
									LEFT JOIN [dbo].[AVS_AUDIT_GROUP_SUPPORT] M
									ON G.id = M.group_support_id WHERE M.group_support_id IS NULL AND
									G.id IS NOT NULL);
GO

PRINT 'AVS - AFW_MAIL_TEMPLATE'
--                             mate_name               project_id  category_id	subject                         format	default	sender	senderName	body
EXEC [METADATA_MAIL_TEMPLATE] 'AVSPasswordRecovery',            0,        NULL,	'AVS - Password Recovery',		0,		0,		NULL,	NULL,		'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><meta name="format-detection" content="telephone=no" /><!-- disable auto telephone linking in iOS --><title>Aranda Virtual Support Password Recovery</title><style type="text/css"> /* RESET STYLES */ html { background-color:#E1E1E1; margin:0; padding:0; } body, #bodyTable, #bodyCell, #bodyCell{height:100% !important; margin:0; padding:0; width:100% !important;font-family:Helvetica, Arial, "Lucida Grande", sans-serif;} table{border-collapse:collapse;} table[id=bodyTable] {width:100%!important;margin:auto;max-width:500px!important;color:#7A7A7A;font-weight:normal;} img, a img{border:0; outline:none; text-decoration:none;height:auto; line-height:100%;} a {text-decoration:none !important;border-bottom: 1px solid;} h1, h2, h3, h4, h5, h6{color:#5F5F5F; font-weight:normal; font-family:Helvetica; font-size:20px; line-height:125%; text-align:Left; letter-spacing:normal;margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;} /* CLIENT-SPECIFIC STYLES */ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail/Outlook.com to display emails at full width. */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div{line-height:100%;} /* Force Hotmail/Outlook.com to display line heights normally. */ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up. */ #outlook a{padding:0;} /* Force Outlook 2007 and up to provide a "view in browser" message. */ img{-ms-interpolation-mode: bicubic;display:block;outline:none; text-decoration:none;} /* Force IE to smoothly render resized images. */ body, table, td, p, a, li, blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%; font-weight:normal!important;} /* Prevent Windows- and Webkit-based mobile platforms from changing declared text sizes. */ .ExternalClass td[class="ecxflexibleContainerBox"] h3 {padding-top: 10px !important;} /* Force hotmail to push 2-grid sub headers down */ /* /\/\/\/\/\/\/\/\/ TEMPLATE STYLES /\/\/\/\/\/\/\/\/ */ /* ========== Page Styles ========== */ h1{display:block;font-size:26px;font-style:normal;font-weight:normal;line-height:100%;} h2{display:block;font-size:20px;font-style:normal;font-weight:normal;line-height:120%;} h3{display:block;font-size:17px;font-style:normal;font-weight:normal;line-height:110%;} h4{display:block;font-size:18px;font-style:italic;font-weight:normal;line-height:100%;} .flexibleImage{height:auto;} .linkRemoveBorder{border-bottom:0 !important;} table[class=flexibleContainerCellDivider] {padding-bottom:0 !important;padding-top:0 !important;} body, #bodyTable{background-color:#E1E1E1;} #emailHeader{background-color:#E1E1E1;} #emailBody{background-color:#FFFFFF;} #emailFooter{background-color:#E1E1E1;} .nestedContainer{background-color:#F8F8F8; border:1px solid #CCCCCC;} .emailButton{background-color:#205478; border-collapse:separate;} .buttonContent{color:#FFFFFF; font-family:Helvetica; font-size:18px; font-weight:bold; line-height:100%; padding:15px; text-align:center;} .buttonContent a{color:#FFFFFF; display:block; text-decoration:none!important; border:0!important;} .emailCalendar{background-color:#FFFFFF; border:1px solid #CCCCCC;} .emailCalendarMonth{background-color:#205478; color:#FFFFFF; font-family:Helvetica, Arial, sans-serif; font-size:16px; font-weight:bold; padding-top:10px; padding-bottom:10px; text-align:center;} .emailCalendarDay{color:#205478; font-family:Helvetica, Arial, sans-serif; font-size:60px; font-weight:bold; line-height:100%; padding-top:20px; padding-bottom:20px; text-align:center;} .imageContentText {margin-top: 10px;line-height:0;} .imageContentText a {line-height:0;} #invisibleIntroduction {display:none !important;} /* Removing the introduction text from the view */ /*FRAMEWORK HACKS & OVERRIDES */ span[class=ios-color-hack] a {color:#275100!important;text-decoration:none!important;} /* Remove all link colors in IOS (below are duplicates based on the color preference) */ span[class=ios-color-hack2] a {color:#205478!important;text-decoration:none!important;} span[class=ios-color-hack3] a {color:#8B8B8B!important;text-decoration:none!important;} /* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers that look like, but are not phone numbers.  Use these two blocks of code to "unstyle" any numbers that may be linked.  The second block gives you a class to apply with a span tag to the numbers you would like linked and styled. Inspired by Campaign Monitors article on using phone numbers in email: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/. */ .a[href^="tel"], a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:none!important;cursor:default!important;} .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration:none!important;color:#606060!important;pointer-events:auto!important;cursor:default!important;} /* MOBILE STYLES */ @media only screen and (max-width: 480px){ /*////// CLIENT-SPECIFIC STYLES //////*/ body{width:100% !important; min-width:100% !important;} /* Force iOS Mail to render the email at full width. */ /* FRAMEWORK STYLES */ /* CSS selectors are written in attribute selector format to prevent Yahoo Mail from rendering media query styles on desktop. */ /*td[class="textContent"], td[class="flexibleContainerCell"] { width: 100%; padding-left: 10px !important; padding-right: 10px !important; }*/ table[id="emailHeader"], table[id="emailBody"], table[id="emailFooter"], table[class="flexibleContainer"], td[class="flexibleContainerCell"] {width:100% !important;} td[class="flexibleContainerBox"], td[class="flexibleContainerBox"] table {display: block;width: 100%;text-align: left;} /* The following style rule makes any image classed with flexibleImage fluid when the query activates. Make sure you add an inline max-width to those images to prevent them from blowing out. */ td[class="imageContent"] img {height:auto !important; width:100% !important; max-width:100% !important; } img[class="flexibleImage"]{height:auto !important; width:100% !important;max-width:100% !important;} img[class="flexibleImageSmall"]{height:auto !important; width:auto !important;} /* Create top space for every second element in a block */ table[class="flexibleContainerBoxNext"]{padding-top: 10px !important;} /* Make buttons in the email span the full width of their container, allowing for left- or right-handed ease of use. */ table[class="emailButton"]{width:100% !important;} td[class="buttonContent"]{padding:0 !important;} td[class="buttonContent"] a{padding:15px !important;} } /*  CONDITIONS FOR ANDROID DEVICES ONLY *   http://developer.android.com/guide/webapps/targeting.html *   http://pugetworks.com/2011/04/css-media-queries-for-targeting-different-mobile-devices/ ; =====================================================*/ @media only screen and (-webkit-device-pixel-ratio:.75){ /* Put CSS for low density (ldpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1){ /* Put CSS for medium density (mdpi) Android layouts in here */ } @media only screen and (-webkit-device-pixel-ratio:1.5){ /* Put CSS for high density (hdpi) Android layouts in here */ } /* end Android targeting */ /* CONDITIONS FOR IOS DEVICES ONLY =====================================================*/ @media only screen and (min-device-width : 320px) and (max-device-width:568px) { } /* end IOS targeting */ </style><!-- Outlook Conditional CSS These two style blocks target Outlook 2007 & 2010 specifically, forcing columns into a single vertical stack as on mobile clients. This is primarily done to avoid the page break bug and is optional. More information here: http://templates.mailchimp.com/development/css/outlook-conditional-css --><!--[if mso 12]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} </style> <![endif]--><!--[if mso 14]> <style type="text/css"> .flexibleContainer{display:block !important; width:100% !important;} .auto-style1 { font-family: Helvetica, Arial, sans-serif; font-size: 15px; } .auto-style2 { height: 48px; } </style> <![endif]--></head><body bgcolor="#E1E1E1" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0"><!-- CENTER THE EMAIL // --><!-- 1.  The center tag should normally put all the content in the middle of the email page. I added "table-layout: fixed;" style to force yahoomail which by default put the content left. 2.  For hotmail and yahoomail, the contents of the email starts from this center, so we try to apply necessary styling e.g. background-color. --><center style="background-color:#E1E1E1;"><table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;"><tr><td align="center" valign="top" id="bodyCell"><!-- EMAIL BODY // --><!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --><table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="500" id="emailBody"><!-- MODULE ROW // --><!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><!-- The centering table keeps the content tables centered in the emailBody table, in case its width is set to 100%. --><table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:#FFFFFF;" bgcolor="#3498db"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><!-- The flexible container has a set width that gets overridden by the media query. Most content tables within can then be given 100% widths. --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><!-- CONTENT TABLE // --><!-- The content table is the first element thats entirely separate from the structural framework of the email. --><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td align="center" valign="top" class="textContent"><h1 style="color:#FFFFFF;line-height:100%;font-family:Helvetica,Arial,sans-serif;font-size:35px;font-weight:normal;margin-bottom:5px;text-align:center;">Aranda Virtual Support</h1><h2 style="text-align:center;font-weight:normal;font-family:Helvetica,Arial,sans-serif;font-size:23px;margin-bottom:10px;color:#205478;line-height:135%;"/><div style="text-align:center;margin-bottom:0;line-height:135%;" class="auto-style1" translate="yes">{{LABEL_PASSWORD_RECOVERY}}</div></td></tr></table><!-- // CONTENT TABLE --></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- MODULE ROW // --><!--  The "mc:hideable" is a feature for MailChimp which allows you to disable certain row. It works perfectly for our row structure. http://kb.mailchimp.com/article/template-language-creating-editable-content-areas/ --><tr mc:hideable=mc:hideable><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"><tr/></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- MODULE ROW // --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#F8F8F8"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- CONTENT TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top" class="auto-style2"><!-- The "mc:edit" is a feature for MailChimp which allows you to edit certain row. It makes it easy for you to quickly edit row sections. http://kb.mailchimp.com/templates/code/create-editable-content-areas-with-mailchimps-template-language --><h3 mc:edit="header" style="color:#5F5F5F;line-height:125%;font-family:Helvetica,Arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">{{USER_FULLNAME}}</h3><br><div mc:edit="body" style="text-align:left;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">{{LABEL_REQUEST_DATE}}: {{REQUEST_DATE}}<br/>{{LABEL_LINK_INFO}}.</div></td></tr></table><!-- // CONTENT TABLE --></td></tr></table></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- MODULE ROW // --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="padding-top:0;"><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="30" cellspacing="0" width="500" class="flexibleContainer"><tr><td style="padding-top:0;" align="center" valign="top" width="500" class="flexibleContainerCell"><!-- CONTENT TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%" class="emailButton" style="background-color: #3498DB;"><tr><td align="center" valign="middle" class="buttonContent" style="padding-top:15px;padding-bottom:15px;padding-right:15px;padding-left:15px;"><div style="color:#FFFFFF;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:20px;line-height:135%;"><a href="{{RECOVERY_URL}}">{{LABEL_ENTER_BUTTON}}</a></div></td></tr></table><!-- // CONTENT TABLE --></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr><!-- // MODULE ROW --><!-- EMAIL FOOTER // --><!-- The table "emailBody" is the emails container. Its width can be set to 100% for a color band that spans the width of the page. --><table bgcolor="#E1E1E1" border="0" cellpadding="0" cellspacing="0" width="500" id="emailFooter"><!-- FOOTER ROW // --><!-- To move or duplicate any of the design patterns in this email, simply move or copy the entire MODULE ROW section for each content block. --><tr><td align="center" valign="top"><!-- CENTERING TABLE // --><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" valign="top"><!-- FLEXIBLE CONTAINER // --><table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer"><tr><td align="center" valign="top" width="500" class="flexibleContainerCell"><table border="0" cellpadding="30" cellspacing="0" width="100%"><tr><td valign="top" bgcolor="#E1E1E1"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:#828282;text-align:center;line-height:120%;"><div>Copyright &#169; 2017 <a href="http://www.arandasoft.com" target="_blank" style="text-decoration:none;color:#828282;"><span style="color:#828282;">Aranda Software</span></a>. {{LABEL_COPYRIGHT}}.</div></div></td></tr></table></td></tr></table><!-- // FLEXIBLE CONTAINER --></td></tr></table><!-- // CENTERING TABLE --></td></tr></table><!-- // END --></table></td></tr></table></center></body></html>'
GO



--/*
----------------------------------------------------------------------------------------
--Metadata PARA APR			
----------------------------------------------------------------------------------------

--*/

--INITIALIZE DEPLOY

--/*
----------------------------------------------------------------------------------------
--Metadata PARA APR			
----------------------------------------------------------------------------------------

--*/

--INITIALIZE DEPLOY
CREATE PROCEDURE MD_APR_QUESTION (
	@i_text NVARCHAR(MAX)
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT @v_count = COUNT (1)
	FROM APR_QUESTION 
	WHERE text = @i_text
	
	IF @v_count = 0
	BEGIN

		INSERT INTO APR_QUESTION (
			[text],     
			[state]
		) VALUES (
			@i_text,
			1
		);

	END;
END;
GO
CREATE PROCEDURE MD_APR_TEMPLATE (
	@i_name NVARCHAR(400),
	@i_action_id INT,
	@i_domain_id INT,
	@i_subject NVARCHAR(400),
	@i_body NVARCHAR(MAX),
	@i_type_id INT
) AS
BEGIN
	DECLARE
		@v_count INT;

	SELECT @v_count = COUNT (1)
	FROM APR_TEMPLATE 
	WHERE action_id = @i_action_id
	AND domain_id = @i_domain_id
	AND [type_id] = @i_type_id;
	
	IF @v_count = 0
	BEGIN

		INSERT INTO APR_TEMPLATE (
			[name],     
			[action_id],
			[domain_id],
			[subject],
			[body],
			[type_id]
		) VALUES (
			@i_name,
			@i_action_id,
			@i_domain_id,
			@i_subject,
			@i_body,
			@i_type_id
		);

	END;
END;
GO


----METADATA
EXEC [MD_APR_QUESTION] '¿Cuál es el segundo nombre de tu padre?'
EXEC [MD_APR_QUESTION] '¿Cuál es tu comida favorita?'
EXEC [MD_APR_QUESTION] '¿Cuál es el nombre de tu primer maestro?'
EXEC [MD_APR_QUESTION] '¿Cuál fue la primera película que viste en el cine?'
EXEC [MD_APR_QUESTION] '¿Cuál sería tú trabajo ideal?'
EXEC [MD_APR_QUESTION] '¿Cuál es tú libro infantil favorito?'
EXEC [MD_APR_QUESTION] '¿De qué modelo era tú primer coche?'
EXEC [MD_APR_QUESTION] '¿Cómo te llamaban en tú infancia?'
EXEC [MD_APR_QUESTION] '¿Cómo se llamaba tú primer jefe?'
EXEC [MD_APR_QUESTION] '¿Cómo se llama tú equipo favorito?'
EXEC [MD_APR_QUESTION] '¿Adónde fuiste la primera vez que viajaste en avión?'
EXEC [MD_APR_QUESTION] '¿Qué fue lo primero que aprendiste a cocinar?'
EXEC [MD_APR_QUESTION] '¿En qué ciudad se conocieron tus padres?'
EXEC [MD_APR_QUESTION] '¿Cómo se llama tú mascota?'
EXEC [MD_APR_QUESTION] '¿Cómo se llama la calle en que creciste?'

GO

PRINT 'MD_APR_QUESTION DONE!!'
GO
EXEC [MD_APR_TEMPLATE] 'Intento cambio de contraseña',0,0,'Hubo un intento para cambiar su contraseña','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  <html>  <body><table style="width:100%;height:100%;text-align:center;vertical-align:middle;"><tbody><tr><td><table style="width:500px;height:500px;background-color:#f5f6f7;border-radius:4px;border:2px solid #e3e3e3;color:#9e9f9e;display:inline-table;"><tbody><tr><td style="text-align:center;"><img src="{{APR_USERS_PATH}}/app/assets/images/logo.png" alt="" /></td></tr><tr><td style="text-align:center;"><label style="display:block;">Se ha detectado un intento de cambio de contrase&ntilde;a.</label>  <label style="display:block;">Con la siguiente informaci&oacute;n</label>  </td></tr><tr><td style="text-align:center;"><label>Fecha: {{ACTION_DATE}}</label></td></tr><tr><td style="text-align:left;"><label style="padding-left:40px;">Para proteger tu cuenta, no reenv&iacute;es este mensaje</label></td></tr><tr><td style="text-align:left;"><label style="display:block;padding-left:40px;">Saludos,</label>  <label style="padding-left:40px;">Equipo Aranda Software</label>  </td></tr></tbody></table><p>&nbsp;</p></td></tr></tbody></table></body>  </html>',0
EXEC [MD_APR_TEMPLATE] 'Cambio de contraseña exitoso',0,0,'Cambio de contraseña','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    <html>     <body>        <table style="width:100%;height:100%;text-align:center;vertical-align:middle;">           <tbody>              <tr>                 <td>                    <table style="width:500px;height:500px;background-color:#f5f6f7;border-radius:4px;border:2px solid #e3e3e3;color:#9e9f9e;display:inline-table;">                       <tbody>                          <tr>                             <td style="text-align:center;"><img src="{{APR_USERS_PATH}}/app/assets/images/logo.png" alt="" /></td>                          </tr>                          <tr>                             <td style="text-align:center;"><label style="display:block;">El cambio de contrase&ntilde;a se realiz&oacute;</label>                                <label style="display:block;">exitosamente.</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:center;"><label style="display:block;">Actualizamos tu contrase&ntilde;a ya puedes</label>                                <label style="display:block;">conectarte nuevamente.</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="padding-left:40px;">Para proteger tu cuenta, no reenv&iacute;es este mensaje</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="display:block;padding-left:40px;">Saludos,</label>                                <label style="padding-left:40px;">Equipo Aranda Software</label>                             </td>                          </tr>                       </tbody>                    </table>                 </td>              </tr>           </tbody>        </table>     </body>  </html>',1

EXEC [MD_APR_TEMPLATE] 'Intento restablecimiento de contraseña',1,0,'Hubo un intento para restablecer su contraseña','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    <html>     <body>        <table style="width:100%;height:100%;text-align:center;vertical-align:middle;">           <tbody>              <tr>                 <td>                    <table style="width:500px;height:500px;background-color:#f5f6f7;border-radius:4px;border:2px solid #e3e3e3;color:#9e9f9e;display:inline-table;">                       <tbody>                          <tr>                             <td style="text-align:center;"><img src="{{APR_USERS_PATH}}/app/assets/images/logo.png" alt="" /></td>                          </tr>                          <tr>                             <td style="text-align:center;"><label style="display:block;">Se ha detectado un intento de restablecimiento de contrase&ntilde;a.</label>                                <label style="display:block;">Con la siguiente informaci&oacute;n</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:center;"><label>Fecha: {{ACTION_DATE}}</label></td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="padding-left:40px;">Para proteger tu cuenta, no reenv&iacute;es este mensaje</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="display:block;padding-left:40px;">Saludos,</label>                                <label style="padding-left:40px;">Equipo Aranda Software</label>                             </td>                          </tr>                       </tbody>                    </table>                 </td>              </tr>           </tbody>        </table>     </body>  </html>',0
EXEC [MD_APR_TEMPLATE] 'Restablecimiento de contraseña exitoso',1,0,'Contraseña restablecida','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    <html>     <body>        <table style="width:100%;height:100%;text-align:center;vertical-align:middle;">           <tbody>              <tr>                 <td>                    <table style="width:500px;height:500px;background-color:#f5f6f7;border-radius:4px;border:2px solid #e3e3e3;color:#9e9f9e;display:inline-tablae;">                       <tbody>                          <tr>                             <td style="text-align:center;"><img src="{{APR_USERS_PATH}}/app/assets/images/logo.png" alt="" /></td>                          </tr>                          <tr>                             <td style="text-align:center;"><label style="display:block;">Usuario : {{NAME}}. Hemos restablecido su contrase&ntilde;a con &eacute;xito.                                </label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="padding-left:40px;">Fecha : {{CREATION_DATE}}</label></td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="padding-left:40px;">Para proteger tu cuenta, no reenv&iacute;es este mensaje</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="display:block;padding-left:40px;">Saludos,</label>                                <label style="padding-left:40px;">Equipo Aranda Software</label>                             </td>                          </tr>                       </tbody>                    </table>                 </td>              </tr>           </tbody>        </table>     </body>  </html>',1

EXEC [MD_APR_TEMPLATE] 'Intento desbloqueo de cuenta',2,0,'Hubo un intento para desbloquear su cuenta','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    <html>     <body>        <table style="width:100%;height:100%;text-align:center;vertical-align:middle;">           <tbody>              <tr>                 <td>                    <table style="width:500px;height:500px;background-color:#f5f6f7;border-radius:4px;border:2px solid #e3e3e3;color:#9e9f9e;display:inline-table;">                       <tbody>                          <tr>                             <td style="text-align:center;"><img src="{{APR_USERS_PATH}}/app/assets/images/logo.png" alt="" /></td>                          </tr>                          <tr>                             <td style="text-align:center;"><label style="display:block;">Se ha detectado un intento de desbloqueo de cuenta.</label>                                <label style="display:block;">Con la siguiente informaci&oacute;n</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:center;"><label>Fecha: {{ACTION_DATE}}</label></td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="padding-left:40px;">Para proteger tu cuenta, no reenv&iacute;es este mensaje</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="display:block;padding-left:40px;">Saludos,</label>                                <label style="padding-left:40px;">Equipo Aranda Software</label>                             </td>                          </tr>                       </tbody>                    </table>                    <p>&nbsp;</p>                 </td>              </tr>           </tbody>        </table>     </body>  </html>',0
EXEC [MD_APR_TEMPLATE] 'Desbloqueo de cuenta exitoso',2,0,'Desbloqueo de cuenta','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    <html>     <body>        <table style="width:100%;height:100%;text-align:center;vertical-align:middle;">           <tbody>              <tr>                 <td>                    <table style="width:500px;height:500px;background-color:#f5f6f7;border-radius:4px;border:2px solid #e3e3e3;color:#9e9f9e;display:inline-table;">                       <tbody>                          <tr>                             <td style="text-align:center;"><img src="{{APR_USERS_PATH}}/app/assets/images/logo.png" alt="" /></td>                          </tr>                          <tr>                             <td style="text-align:center;"><label style="display:block;">El desbloqueo de tu cuenta se realiz&oacute;</label>                                <label style="display:block;">exitosamente.</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:center;"><label style="display:block;">ya puedes conectarte nuevamente.</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="padding-left:40px;">Para proteger tu cuenta, no reenv&iacute;es este mensaje</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="display:block;padding-left:40px;">Saludos,</label>                                <label style="padding-left:40px;">Equipo Aranda Software</label>                             </td>                          </tr>                       </tbody>                    </table>                 </td>              </tr>           </tbody>        </table>     </body>  </html>',1

EXEC [MD_APR_TEMPLATE] 'Intentos excedidos en respuestas a Preguntas de Seguridad',3,0,'Intentos excedidos en respuestas a Preguntas de Seguridad','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    <html>     <body>        <table style="width:100%;height:100%;text-align:center;vertical-align:middle;">           <tbody>              <tr>                 <td>                    <table style="width:500px;height:500px;background-color:#f5f6f7;border-radius:4px;border:2px solid #e3e3e3;color:#9e9f9e;display:inline-tablae;">                       <tbody>                          <tr>                             <td style="text-align:center;"><img src="{{APR_USERS_PATH}}/app/assets/images/logo.png" alt="" /></td>                          </tr>                          <tr>                             <td style="text-align:center;"><label style="display:block;">Se ha bloqueado la cuenta {{NAME}}, excedió el número de intentos permitidos para contestar las preguntas de seguridad.                                </label>                             </td>                          </tr>         <tr>                             <td style="text-align:left;"><label style="padding-left:40px;">Fecha : {{ACTION_DATE}}</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="display:block;padding-left:40px;">Saludos,</label>                                <label style="padding-left:40px;">Equipo Aranda Software</label>                             </td>                          </tr>                       </tbody>                    </table>                 </td>              </tr>           </tbody>        </table>     </body>  </html>',0

EXEC [MD_APR_TEMPLATE] 'Restablecimiento de contraseña',4,0,'Restablecimiento de contraseña','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    <html>     <body>        <table style="width:100%;height:100%;text-align:center;vertical-align:middle;">           <tbody>              <tr>                 <td>                    <table style="width:500px;height:500px;background-color:#f5f6f7;border-radius:4px;border:2px solid #e3e3e3;color:#9e9f9e;display:inline-tablae;">                       <tbody>                          <tr>                             <td style="text-align:center;"><img src="{{APR_USERS_PATH}}/app/assets/images/logo.png" alt="" /></td>                          </tr>                          <tr>                             <td style="text-align:center;"><label style="display:block;">Usuario : {{NAME}}. Hemos recibido una solicitud para restablecer su contrase&ntilde;a.                                </label>                             </td>                          </tr>                          <tr>                             <td style="text-align:center;"><label style="display:block;">Por favor vaya al siguiente link para generar una nueva.</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="padding-left:40px;">{{LINK_START}} Restablecer contrase&ntilde;a {{LINK_END}}                                </label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="padding-left:40px;">Fecha : {{CREATION_DATE}}</label></td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="padding-left:40px;">Para proteger tu cuenta, no reenv&iacute;es este mensaje</label>                             </td>                          </tr>                          <tr>                             <td style="text-align:left;"><label style="display:block;padding-left:40px;">Saludos,</label>                                <label style="padding-left:40px;">Equipo Aranda Software</label>                             </td>                          </tr>                       </tbody>                    </table>                 </td>              </tr>           </tbody>        </table>     </body>  </html>',1

GO

PRINT 'MD_APR_TEMPLATE DONE!!'
GO


--INITIALIZE DEPLOY
CREATE PROCEDURE [dbo].[METADATA_PLATFORM]
(
	@i_Id			INT,	
	@i_name			NVARCHAR(max)
)
AS
BEGIN
	UPDATE [AES_PLATFORM]
	   SET [name] = @i_name
	 WHERE [id]   = @i_Id
	
	IF @@ROWCOUNT = 0
	BEGIN
		INSERT INTO [AES_PLATFORM]
           (
				[id],
				[name]
		   )
		VALUES
           (
		       @i_Id,
		       @i_name
           ) 
	END
END
GO


----METADATA
----METADATA

EXEC [dbo].[METADATA_PLATFORM]	1,	N'Windows'
EXEC [dbo].[METADATA_PLATFORM]	2,	N'Linux'
EXEC [dbo].[METADATA_PLATFORM]	4,	N'MacOS'
GO


EXEC METADATA_AFW_APPLICATIONS 35, N'AES', N'0', N'ARANDA ENDPOINT SECURITY', 0, NULL
DECLARE @ScriptInstaller  NVARCHAR(MAX)
SET @ScriptInstaller = N'[
	{"PlatformId": 1, "Script": "$installerPath=\"$Env:ProgramData\\Aranda\"; $installerFile=\"$installerPath\\setup.exe\"; if (-not (Test-Path $installerPath)){ New-Item $installerPath -ItemType Directory; }Invoke-WebRequest -Uri ''{URL_DOWNLOAD}'' -OutFile $installerFile; & cmd.exe /c \"$installerFile /S /V`\"/qn APIURL={URL_API}`\"\"", "IsActive": true },
	{"PlatformId": 2, "Script": "temp_install_dir=$'+'(mktemp -d) && sudo curl -o setup.sh ''{URL_DOWNLOAD}'' && sudo chmod +x setup.sh && sudo ./setup.sh --target \"$temp_install_dir\" \"{URL_API}\" && sudo rm -r setup.sh \"$temp_install_dir\"", "IsActive": true},
	{"PlatformId": 4, "Script": "sudo sh -c ''curl -o asecagent.pkg \"{URL_DOWNLOAD}\" && installer -pkg asecagent.pkg -target / && asec-configuration -d {URL_API}''", "IsActive": true}
]'
EXEC METADATA_AFW_SETTINGS  N'AgentDeploymentScriptConfiguration', 35, @ScriptInstaller, NULL, NULL
EXEC METADATA_AFW_SETTINGS N'PasswordResetEmailSubject',35,N'Restablecer contraseña',null,null
EXEC METADATA_PERMISSIONS 35000, N'AES_GenerateDeploymentScript', NULL, 1, 35, NULL
EXEC METADATA_PERMISSIONS 35001, N'AES_Group', NULL, 1, 35, NULL
EXEC METADATA_PERMISSIONS 35002, N'AES_GetAllGroup', 35001, 1, 35, NULL
EXEC METADATA_PERMISSIONS 35003, N'AES_CreateGroup', 35001, 1, 35, NULL
EXEC METADATA_PERMISSIONS 35004, N'AES_Policy', NULL, 1, 35, NULL
EXEC METADATA_PERMISSIONS 35005, N'AES_CreatePolicy', 35004, 1, 35, NULL
EXEC METADATA_PERMISSIONS 35006, N'AES_UpdatePolicy', 35004, 1, 35, NULL
EXEC METADATA_PERMISSIONS 35007, N'AES_DeletePolicy', 35004, 1, 35, NULL
EXEC METADATA_PERMISSIONS 35008, N'AES_CreateDevice', NULL, 1, 35, NULL
EXEC METADATA_PERMISSIONS 35012, N'AES_DeleteGroup', 35001, 1, 35, NULL

DECLARE @idRol INT
set @idRol = 1
EXEC METADATA_ROLE_PERMISSION 35000, @idRol, 1 
EXEC METADATA_ROLE_PERMISSION 35002, @idRol, 1 
EXEC METADATA_ROLE_PERMISSION 35003, @idRol, 1 
EXEC METADATA_ROLE_PERMISSION 35005, @idRol, 1 
EXEC METADATA_ROLE_PERMISSION 35006, @idRol, 1 
EXEC METADATA_ROLE_PERMISSION 35007, @idRol, 1 
EXEC METADATA_ROLE_PERMISSION 35008, @idRol, 1 
EXEC METADATA_ROLE_PERMISSION 35012, @idRol, 1 
GO

DECLARE @idRol INT
EXEC METADATA_ROLES N'AES_Specialist', NULL, 1, 1, 35, NULL, @idRol OUTPUT

EXEC METADATA_ROLE_PERMISSION 5, @idRol, 1 
EXEC METADATA_ROLE_PERMISSION 20, @idRol, 1 
EXEC METADATA_ROLE_PERMISSION 35000, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 35002, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 35005, @idRol, 1
EXEC METADATA_ROLE_PERMISSION 35006, @idRol, 1 
EXEC METADATA_ROLE_PERMISSION 35008, @idRol, 1

GO
EXEC METADATA_APPLICATION_CATEGORY 10, N'AES_ResetPassword'

DECLARE @catId	 INT,		
		@date    DATETIME = GETDATE()

SELECT @catId = [apca_id] FROM [AFW_APPLICATION_CATEGORY] WHERE [apca_name] = 'AES_ResetPassword'

EXEC METADATA_TEMPLATES @catId, 1, N'AES_ResetPassword', @date, N'<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<title>ASEC Recuperar constraseña</title>
</head>

<body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;">
    <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1"
        style="vertical-align:middle;">
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width:auto">&nbsp;</td>
        </tr>
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>
                <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                    <tr>
                        <td height="62px" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;">
                            <table width="700" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td><img src="https://docs.arandasoft.com/resources/logoasec.png" width="200"
                                            height="50" alt="Aranda ASEC" /></td>
                                    <td style="font-family:Tahoma; font-size: 13px; color:#06A1C6; text-align: right;">
                                        Sus dispositivos protegidos</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3"
                            style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;">
                            <span style="font-family:Tahoma; font-size:24px; color: #8395A7;">Cambio de contraseña!</span></td>
                    </tr>
                    <tr>
                        <td colspan="3" valign="top"
                            style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;">
                            <strong></strong>Estimado(a) {{USER_FULLNAME}}. Gracias por comunicarte con nosotros.
                            
                            <p>A continuación encontrarás un enlace de cambio de clave. Este enlace es válido POR UNA SOLA VEZ y CADUCARÁ AL CABO DE 24 HORAS de haberse generado.
                                </p></td>
                    </tr>
                    <tr>
                        <td width="85" align="center" valign="middle" ><span style="font-size:12px; color: #06A1C6;">
                                <img src="https://docs.arandasoft.com/resources/icono.png" width="110"
                                    height="111" alt="Caso" /></span></td>
                        <td  valign="top"
                            style="font-family:Tahoma; font-size:14px; color: #979897; padding: 10px; border-right:dashed 1px;">
                           
                        </td>
                        <td valign="top" style="padding: 10px; font-family:Tahoma; font-size: 14px; color: #979897;">
                            <p><span style="font-size:12px; color: #06A1C6;">Si el enlace vence o queda invalidado y necesitas otro, regresa a la página de inicio de sesión y haz clic en el vínculo “recuperar mi contraseña” para solicitar uno nuevo.
                            </span><br /> <p>Para establecer tu contraseña:</p>
                            <p>1. <a href="{{RECOVERY_URL}}" target="_blank" style="color: #06A1C6;"> Haz clic aquí</a></p>
                            <p>2. Escribe y confirma una contraseña nueva.</p>
                            <p>3. Haz clic en “Cambiar” para establecer la contraseña.</p>
                            </p>
                        
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 10px; font-family:Tahoma; font-size: 12px; color: #979897;">&nbsp;</td>
                        <td>&nbsp;</td>
                        <td style="padding: 10px; font-family:Tahoma; font-size: 12px; color: #979897;">
                            <p>&nbsp;</td>
                    </tr>
                </table>
            </td>
            <td style="width:auto">&nbsp;</td>
        </tr>
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width:auto">&nbsp;</td>
        </tr>
    </table>
</body>

</html>'


EXEC METADATA_TEMPLATES @catId, 1, N'AES_DeviceGroupEmailRuleAction', @date, N'<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<title>ASEC - Cambio en el nivel de cumplimiento</title>
</head>

<body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;">
    <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1"
        style="vertical-align:middle;">
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width:auto">&nbsp;</td>
        </tr>
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>
                <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                    <tr>
                        <td height="62px" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;">
                            <table width="700" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td><img src="https://docs.arandasoft.com/resources/logoasec.png" width="200"
                                            height="50" alt="Aranda ASEC" /></td>
                                    <td style="font-family:Tahoma; font-size: 13px; color:#06A1C6; text-align: right;">
                                        Sus dispositivos protegidos</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3"
                            style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;">
                            <span style="font-family:Tahoma; font-size:24px; color: #8395A7;">Cambio en el nivel de cumplimiento!</span></td>
                    </tr>
                    <tr>
                        <td colspan="3" valign="top"
                            style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;">
                            <strong></strong>Estimado(a).
                            
                            <p>Se ha detectado un cambio en el nivel de cumplimiento:</p>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" valign="top" style="font-family:Tahoma; font-size: 14px; padding: 0 22px; color:#979897;">
                            <p>
                                <span style="font-size:12px; color: #06A1C6;">Grupo</span>  {{GroupName}} <br /> 
                                <span style="font-size:12px; color: #06A1C6;">Política</span>  {{PolicyName}} <br />
                                <span style="font-size:12px; color: #06A1C6;">Porcentaje de cumplimiento</span>  {{Compliance}} <br />
                            </p>                        
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 10px; font-family:Tahoma; font-size: 12px; color: #979897;">&nbsp;</td>
                        <td>&nbsp;</td>
                        <td style="padding: 10px; font-family:Tahoma; font-size: 12px; color: #979897;">
                            <p>&nbsp;</td>
                    </tr>
                </table>
            </td>
            <td style="width:auto">&nbsp;</td>
        </tr>
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width:auto">&nbsp;</td>
        </tr>
    </table>
</body>

</html>'


EXEC METADATA_TEMPLATES @catId, 1, N'AES_VulnerabilityEmailRuleAction', @date, N'<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<title>ASEC - Cambio en el nivel de cumplimiento</title>
</head>

<body style="background-color:#eef0f1; margin-left:0px; margin-top:0px; margin-right:0px; margin-bottom:0px;">
    <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eef0f1"
        style="vertical-align:middle;">
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width:auto">&nbsp;</td>
        </tr>
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>
                <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                    <tr>
                        <td height="62px" colspan="3" style="border-bottom:solid 1px #aeb5ba; padding: 22px;">
                            <table width="700" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td><img src="https://docs.arandasoft.com/resources/logoasec.png" width="200"
                                            height="50" alt="Aranda ASEC" /></td>
                                    <td style="font-family:Tahoma; font-size: 13px; color:#06A1C6; text-align: right;">
                                        Sus dispositivos protegidos</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3"
                            style="width:338px; padding: 22px; font-family:Tahoma; font-size: 14px; border-right-style:dashed 1px #aeb5ba;">
                            <span style="font-family:Tahoma; font-size:24px; color: #8395A7;">Nueva vulnerabilidad detectada!</span></td>
                    </tr>
                    <tr>
                        <td colspan="3" valign="top"
                            style="font-family:Tahoma; font-size: 14px; padding: 22px; color:#979897;">
                            <strong></strong>Estimado(a).
                            
                            <p>Se ha detectado una nueva vulnerabilidad:</p>
                        </td>
                    </tr>
                    <tr>
                       <td colspan="3" valign="top" style="font-family:Tahoma; font-size: 14px; padding: 0 22px; color:#979897;">
                            <p>
                                <span style="font-size:12px; color: #06A1C6;">CVE</span>  {{Cve}} <br />                                 
                                <span style="font-size:12px; color: #06A1C6;">Severidad</span>  {{Severity}} <br /> 
                                <span style="font-size:12px; color: #06A1C6;">Índice</span>  {{SeverityIndex}} <br /> 
                                <span style="font-size:12px; color: #06A1C6;">Fecha de publicación</span>  {{Published}} <br /> 
                                <span style="font-size:12px; color: #06A1C6;">Enumeración de debilidades</span>  {{Cwe}} <br /> 
                            </p> 
                            
                            <p>
                                <span style="font-size:12px; color: #06A1C6;">CVSS 3.0</span><br />                                 
                                 - <span style="font-size:12px; color: #06A1C6;">Gravedad base</span>  {{Cvss30_BaseSeverity}} <br /> 
                                 - <span style="font-size:12px; color: #06A1C6;">Puntuación base</span>  {{Cvss30_BaseScore}} <br /> 
                                 - <span style="font-size:12px; color: #06A1C6;">Vector</span>  {{Cvss30_Vector}} <br /> 
                                 - <span style="font-size:12px; color: #06A1C6;">Puntuación de impacto</span>  {{Cvss30_ImpactScore}} <br /> 
                                 - <span style="font-size:12px; color: #06A1C6;">Puntuación de explotabilidad</span>  {{Cvss30_ExploitabilityScore}} <br /> 
                            </p> 

                            <p>
                                <span style="font-size:12px; color: #06A1C6;">CVSS 2.0</span><br />                                 
                                 - <span style="font-size:12px; color: #06A1C6;">Puntuación</span>  {{Cvss20_Score}} <br /> 
                                 - <span style="font-size:12px; color: #06A1C6;">Vector de acceso</span>  {{Cvss20_AccessVector}} <br /> 
                                 - <span style="font-size:12px; color: #06A1C6;">Complejidad de acceso</span>  {{Cvss20_AccessComplexity}} <br /> 
                                 - <span style="font-size:12px; color: #06A1C6;">Autenticación</span>  {{Cvss20_Authentication}} <br /> 
                                 - <span style="font-size:12px; color: #06A1C6;">Impacto en la confidencialidad</span>  {{Cvss20_ConfidentialityImpact}} <br /> 
                                 - <span style="font-size:12px; color: #06A1C6;">Impacto en la integridad</span>  {{Cvss20_IntegrityImpact}} <br /> 
                                 - <span style="font-size:12px; color: #06A1C6;">Impacto en la disponibilidad</span>  {{Cvss20_AvailabilityImpact}} <br /> 
                            </p> 

                            <p>
                                <span style="font-size:12px; color: #06A1C6;">Descripción</span>
                                <br /> {{Description}} <br /> 
                            </p> 
                        </td>
                    </tr>
                    <tr>
                        <td style="padding: 10px; font-family:Tahoma; font-size: 12px; color: #979897;">&nbsp;</td>
                        <td>&nbsp;</td>
                        <td style="padding: 10px; font-family:Tahoma; font-size: 12px; color: #979897;">
                            <p>&nbsp;</td>
                    </tr>
                </table>
            </td>
            <td style="width:auto">&nbsp;</td>
        </tr>
        <tr>
            <td style="width:auto">&nbsp;</td>
            <td>&nbsp;</td>
            <td style="width:auto">&nbsp;</td>
        </tr>
    </table>
</body>

</html>'
PRINT 'ASEC- Insert task update'
GO

EXEC METADATA_TASK  35001,  N'ASEC_INSTALLER_DOWNLOAD',			N'Aranda.ASEC.Tasks.DownloadInstaller',	N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35002,  N'ASEC_INSTALLER_LINUX_DOWNLOAD',	N'Aranda.ASEC.Tasks.DownloadInstallerLinux',	N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35003,  N'ASEC_INSTALLER_MAC_DOWNLOAD',		N'Aranda.ASEC.Tasks.DownloadInstallerOsx',	N'Aranda.ASEC.Tasks.dll', 1

EXEC METADATA_TASK  35004,  N'ASEC_CATALOG_WINDOWS_DOWNLOAD',	N'Aranda.ASEC.Tasks.DownloadCatalogWindows',	N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35005,  N'ASEC_CATALOG_LINUX_DOWNLOAD',		N'Aranda.ASEC.Tasks.DownloadCatalogLinux',	N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35006,  N'ASEC_CATALOG_OSX_DOWNLOAD',		N'Aranda.ASEC.Tasks.DownloadCatalogOsx',	N'Aranda.ASEC.Tasks.dll', 1

EXEC METADATA_TASK  35007,  N'ASEC_DELETE_REMEDIATIONS_HISTORY',	N'Aranda.ASEC.Tasks.DeleteRemediationHistory',	N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35008,  N'ASEC_DELETE_DEVICE',					N'Aranda.ASEC.Tasks.DeleteDevice',				N'Aranda.ASEC.Tasks.dll', 1

EXEC METADATA_TASK  35009,  N'ASEC_GROUP_REMEDIATION_ACTION',		N'Aranda.ASEC.Tasks.GroupRemediationAction',	N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35010,  N'ASEC_POLICY_GROUP_CHANGE',			N'Aranda.ASEC.Tasks.PolicyGroupChange',			N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35011,  N'ASEC_DEVICE_MESSAGING ',				N'Aranda.ASEC.Tasks.DeviceMessaging',			N'Aranda.ASEC.Tasks.dll', 1

EXEC METADATA_TASK  35012,  N'ASEC_RECALCULATE_VULNERABILITIES_COUNTER',	N'Aranda.ASEC.Tasks.RecalculateVulnerabitiesCounter',				N'Aranda.ASEC.Tasks.dll', 1

EXEC METADATA_TASK  35013,  N'ASEC_METADATA_WINDOWS_DOWNLOAD',	N'Aranda.ASEC.Tasks.DownloadMetadataWindows',	N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35014,  N'ASEC_METADATA_LINUX_DOWNLOAD',	N'Aranda.ASEC.Tasks.DownloadMetadataLinux',		N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35015,  N'ASEC_METADATA_OSX_DOWNLOAD',		N'Aranda.ASEC.Tasks.DownloadMetadataOsx',		N'Aranda.ASEC.Tasks.dll', 1

EXEC METADATA_TASK  35016,  N'ASEC_STORE_PRODUCT_METADATA_WINDOWS',	N'Aranda.ASEC.Tasks.StoreProductMetadataWindows',	N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35017,  N'ASEC_STORE_PRODUCT_METADATA_LINUX',	N'Aranda.ASEC.Tasks.StoreProductMetadataLinux',		N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35018,  N'ASEC_STORE_PRODUCT_METADATA_OSX',		N'Aranda.ASEC.Tasks.StoreProductMetadataOsx',		N'Aranda.ASEC.Tasks.dll', 1

EXEC METADATA_TASK  35019,  N'ASEC_CALCULATE_GROUP_COMPLIANCE',			N'Aranda.ASEC.Tasks.CalculateGroupCompliance',		N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35020,  N'ASEC_DELETE_GROUP_COMPLIANCE_HISTORY',	N'Aranda.ASEC.Tasks.DeleteGroupComplianceHistory',	N'Aranda.ASEC.Tasks.dll', 1

EXEC METADATA_TASK  35021,  N'ASEC_GROUP_COMPLIANCE_CHANGED',	N'Aranda.ASEC.Tasks.DeviceGroupComplianceChanged',	N'Aranda.ASEC.Tasks.dll', 1
EXEC METADATA_TASK  35022,  N'ASEC_REMOVE_CVE_TREATMENT',	N'Aranda.ASEC.Tasks.RemoveCveTreatment',	N'Aranda.ASEC.Tasks.dll', 1

GO
PRINT 'ASEC- Insert scheduler'

DECLARE @start_UTC DATETIME = GETUTCDATE(); 

--						@name										@description										@frecuency_type		@recurs_every	    @weekdays	@months		@cardinal_days  @ordinal_days	@start_date		    @task_id	@application_id		@next_execution		@sche_max_delay
EXEC METADATA_SCHEDULER  N'ASEC_INSTALLER_DOWNLOAD',     			N'Descargar instalador del agente Windows',			'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35001,		35,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ASEC_INSTALLER_LINUX_DOWNLOAD',			N'Descargar instalador del agente Linux',			'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35002,		35,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ASEC_INSTALLER_MAC_DOWNLOAD',			N'Descargar instalador del agente MacOS',			'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35003,		35,					@start_UTC,				120

EXEC METADATA_SCHEDULER  N'ASEC_CATALOG_WINDOWS_DOWNLOAD',			N'Descargar catalogo de vulnerabilidades Windows',	'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35004,		35,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ASEC_CATALOG_LINUX_DOWNLOAD',			N'Descargar catalogo de vulnerabilidades Linux',	'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35005,		35,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ASEC_CATALOG_OSX_DOWNLOAD',				N'Descargar catalogo de vulnerabilidades MacOS',	'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35006,		35,					@start_UTC,				120

EXEC METADATA_SCHEDULER  N'ASEC_DELETE_REMEDIATIONS_HISTORY',		N'Eliminar historial de remediaciones',				'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35007,		35,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ASEC_RECALCULATE_VULNERABILITIES',		N'Recalcular los contadore de vulnerabilidades',	'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35012,		35,					@start_UTC,				120

EXEC METADATA_SCHEDULER  N'ASEC_METADATA_WINDOWS_DOWNLOAD',			N'Descargar metadata del agente Windows',			'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35013,		35,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ASEC_METADATA_LINUX_DOWNLOAD',			N'Descargar metadata del agente Linux',				'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35014,		35,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ASEC_METADATA_OSX_DOWNLOAD',				N'Descargar metadata del agente MacOS',				'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35015,		35,					@start_UTC,				120

EXEC METADATA_SCHEDULER  N'ASEC_CALCULATE_GROUP_COMPLIANCE',		N'Calcular el cumpliento por grupo',				'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35019,		35,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ASEC_DELETE_GROUP_COMPLIANCE_HISTORY',	N'Eliminar historial del cumpliento por grupo',		'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35020,		35,					@start_UTC,				120
EXEC METADATA_SCHEDULER  N'ASEC_REMOVE_CVE_TREATMENT',				N'Remover tratamiento temporal a un CVE',			'Interval',			1440,				0,			0,			0,				0,				@start_UTC,			35022,		35,					@start_UTC,				120

GO

PRINT 'ASEC- Insert rules update'
GO

EXEC METADATA_RULE_CONTEXT 35000,	'Aranda.ASEC.Core.dll',		'Aranda.ASEC.DeviceGroups.Rules.DeviceGroupRuleContext',		'GroupId';
EXEC METADATA_RULE_CONTEXT 35001,	'Aranda.ASEC.Core.dll',		'Aranda.ASEC.Vulnerabilities.Rules.VulnerabilityRuleContext',	'CveId';


EXEC METADATA_RULE_ACTION 35000,	35000,	'DeviceGroupSendEmailRuleAction', 			'Aranda.ASEC.DeviceGroups.Rules.Actions.DeviceGroupSendEmailRuleAction',		'Aranda.ASEC.Core.dll',		0;
EXEC METADATA_RULE_ACTION 35001,	35000,	'DeviceGroupInvokeWebHookRuleAction',		'Aranda.ASEC.DeviceGroups.Rules.Actions.DeviceGroupInvokeWebHookRuleAction',	'Aranda.ASEC.Core.dll',		0;

EXEC METADATA_RULE_ACTION 35002,	35001,	'VulnerabilitySendEmailRuleAction', 		'Aranda.ASEC.Vulnerabilities.Rules.Actions.VulnerabilitySendEmailRuleAction',		'Aranda.ASEC.Core.dll',		0;
EXEC METADATA_RULE_ACTION 35003,	35001,	'VulnerabilityInvokeWebHookRuleAction',		'Aranda.ASEC.Vulnerabilities.Rules.Actions.VulnerabilityInvokeWebHookRuleAction',	'Aranda.ASEC.Core.dll',		0;

GO


----END DEPLOY

/*
Post-Deployment Script Template							
--------------------------------------------------------------------------------------
 This file contains SQL statements that will be appended to the build script.		
 Use SQLCMD syntax to include a file in the post-deployment script.			
 Example:      :r .\myfile.sql								
 Use SQLCMD syntax to reference a variable in the post-deployment script.		
 Example:      :setvar TableName MyTable							
               SELECT * FROM [$(TableName)]					
--------------------------------------------------------------------------------------
*/
PRINT 'AAU Settings START'
EXEC METADATA_AFW_SETTINGS 'ArandaAgentUpdateWebApiUrl', 0, 'https://download.arandasoft.com/updates', NULL,  NULL

GO
PRINT 'AAU Settings END'


-- Limpieza de metadata
/* ADB V9.0.9.2 */ 

DECLARE 
	@v_sql		VARCHAR(50);
BEGIN

	DECLARE obj_cursor CURSOR FOR     
		SELECT 'DROP '+ CASE WHEN type = 'P' THEN 'PROCEDURE '  ELSE 'FUNCTION ' END + name sentence
		FROM sys.objects
		WHERE 
			name LIKE 'ADB_%' OR
			name LIKE 'MD_%' OR
			name LIKE 'METADATA_%' 
		AND type IN ('P','FN')
		ORDER BY type DESC;
  
	OPEN obj_cursor    
  
	FETCH NEXT FROM obj_cursor     
	INTO @v_sql
  
	WHILE @@FETCH_STATUS = 0
	BEGIN  
		EXEC (@v_sql);
      
		FETCH NEXT FROM obj_cursor     
		INTO @v_sql
   
	END;
	CLOSE obj_cursor;    
	DEALLOCATE obj_cursor;

END;
GO


GO

GO
PRINT N'Checking existing data against newly created constraints';


GO
USE [$(DatabaseName)];


GO
ALTER TABLE [dbo].[AAM_ADDITIONAL_FIELD_CAT] WITH CHECK CHECK CONSTRAINT [FK01_AAM_ADDITIONAL_FIELD_CAT];

ALTER TABLE [dbo].[AAM_ADDITIONAL_FIELD_CAT] WITH CHECK CHECK CONSTRAINT [FK02_AAM_ADDITIONAL_FIELD_CAT];

ALTER TABLE [dbo].[AAM_ADDITIONAL_FIELD_CAT] WITH CHECK CHECK CONSTRAINT [FK03_AAM_ADDITIONAL_FIELD_CAT];

ALTER TABLE [dbo].[AAM_AGENT_TASK] WITH CHECK CHECK CONSTRAINT [FK01_AAM_AGENT_TASK];

ALTER TABLE [dbo].[AAM_AGENT_TASK_DETAIL] WITH CHECK CHECK CONSTRAINT [FK01_AAM_AGENT_TASK_DETAIL];

ALTER TABLE [dbo].[AAM_AGENT_TASK_DETAIL] WITH CHECK CHECK CONSTRAINT [FK02_AAM_AGENT_TASK_DETAIL];

ALTER TABLE [dbo].[AAM_BIOS] WITH CHECK CHECK CONSTRAINT [FK01_AAM_BIOS];

ALTER TABLE [dbo].[AAM_CLOUD_NETWORK_PROFILE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CLOUD_NETWORK_PROFILE];

ALTER TABLE [dbo].[AAM_CLOUD_OS_PROFILE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CLOUD_OS_PROFILE];

ALTER TABLE [dbo].[AAM_CLOUD_SECURITY_PROFILE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CLOUD_SECURITY_PROFILE];

ALTER TABLE [dbo].[AAM_CLOUD_STORAGE_PROFILE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CLOUD_STORAGE_PROFILE];

ALTER TABLE [dbo].[AAM_CLOUD_STORAGE_PROFILE] WITH CHECK CHECK CONSTRAINT [FK02_AAM_CLOUD_STORAGE_PROFILE];

ALTER TABLE [dbo].[AAM_CLOUD_SUBSCRIPTION] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CLOUD_SUBSCRIPTION];

ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CLOUD_SYNCHRONIZATION];

ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH CHECK CHECK CONSTRAINT [FK02_AAM_CLOUD_SYNCHRONIZATION];

ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH CHECK CHECK CONSTRAINT [FK03_AAM_CLOUD_SYNCHRONIZATION];

ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH CHECK CHECK CONSTRAINT [FK04_AAM_CLOUD_SYNCHRONIZATION];

ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH CHECK CHECK CONSTRAINT [FK05_AAM_CLOUD_SYNCHRONIZATION];

ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION] WITH CHECK CHECK CONSTRAINT [FK06_AAM_CLOUD_SYNCHRONIZATION];

ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION_DETAIL] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CLOUD_SYNCHRONIZATION_DETAIL];

ALTER TABLE [dbo].[AAM_CLOUD_SYNCHRONIZATION_DETAIL] WITH CHECK CHECK CONSTRAINT [FK02_AAM_CLOUD_SYNCHRONIZATION_DETAIL];

ALTER TABLE [dbo].[AAM_CLOUD_TAGS] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CLOUD_TAGS];

ALTER TABLE [dbo].[AAM_CONFIG_ITEM_RELATION] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CONFIG_ITEM_RELATION];

ALTER TABLE [dbo].[AAM_CONFLICT_RESOL_SETTI] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CONFLICT_RESOL_SETTI];

ALTER TABLE [dbo].[AAM_CONFLICT_RESOL_SETTI] WITH CHECK CHECK CONSTRAINT [FK02_AAM_CONFLICT_RESOL_SETTI];

ALTER TABLE [dbo].[AAM_CONFLICT_RESOL_SETTI] WITH CHECK CHECK CONSTRAINT [FK03_AAM_CONFLICT_RESOL_SETTI];

ALTER TABLE [dbo].[AAM_CONFLICT_RESOLUTION] WITH CHECK CHECK CONSTRAINT [FK01_AAM_CONFLICT_RESOLUTION];

ALTER TABLE [dbo].[AAM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE];

ALTER TABLE [dbo].[AAM_DEVICE_ACTIVITY] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_ACTIVITY];

ALTER TABLE [dbo].[AAM_DEVICE_ACTIVITY] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_ACTIVITY];

ALTER TABLE [dbo].[AAM_DEVICE_ACTIVITY] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_ACTIVITY];

ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_APPLICATION];

ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_APPLICATION];

ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_APPLICATION];

ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH CHECK CHECK CONSTRAINT [FK04_AAM_DEVICE_APPLICATION];

ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH CHECK CHECK CONSTRAINT [FK05_AAM_DEVICE_APPLICATION];

ALTER TABLE [dbo].[AAM_DEVICE_APPLICATION] WITH CHECK CHECK CONSTRAINT [FK06_AAM_DEVICE_APPLICATION];

ALTER TABLE [dbo].[AAM_DEVICE_BIOS] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_BIOS];

ALTER TABLE [dbo].[AAM_DEVICE_BIOS] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_BIOS];

ALTER TABLE [dbo].[AAM_DEVICE_BOARDSLOT] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_BOARDSLOT];

ALTER TABLE [dbo].[AAM_DEVICE_CONFIGURATION] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_CONFIGURATION];

ALTER TABLE [dbo].[AAM_DEVICE_CONFIGURATION] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_CONFIGURATION];

ALTER TABLE [dbo].[AAM_DEVICE_CONFLICT] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_CONFLICT];

ALTER TABLE [dbo].[AAM_DEVICE_CONFLICT] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_CONFLICT];

ALTER TABLE [dbo].[AAM_DEVICE_CONFLICT] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_CONFLICT];

ALTER TABLE [dbo].[AAM_DEVICE_CONFLICT] WITH CHECK CHECK CONSTRAINT [FK04_AAM_DEVICE_CONFLICT];

ALTER TABLE [dbo].[AAM_DEVICE_CONFLICT] WITH CHECK CHECK CONSTRAINT [FK05_AAM_DEVICE_CONFLICT];

ALTER TABLE [dbo].[AAM_DEVICE_DISK] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_DISK];

ALTER TABLE [dbo].[AAM_DEVICE_DISK] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_DISK];

ALTER TABLE [dbo].[AAM_DEVICE_DISPLAY] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_DISPLAY];

ALTER TABLE [dbo].[AAM_DEVICE_DISPLAY] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_DISPLAY];

ALTER TABLE [dbo].[AAM_DEVICE_DRIVER] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_DRIVER];

ALTER TABLE [dbo].[AAM_DEVICE_DRIVER] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_DRIVER];

ALTER TABLE [dbo].[AAM_DEVICE_FEATURE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_FEATURE];

ALTER TABLE [dbo].[AAM_DEVICE_FILE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_FILE];

ALTER TABLE [dbo].[AAM_DEVICE_FILE] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_FILE];

ALTER TABLE [dbo].[AAM_DEVICE_FILE] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_FILE];

ALTER TABLE [dbo].[AAM_DEVICE_FILE_VERSION] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_FILE_VERSION];

ALTER TABLE [dbo].[AAM_DEVICE_FILE_VERSION] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_FILE_VERSION];

ALTER TABLE [dbo].[AAM_DEVICE_FILE_VERSION] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_FILE_VERSION];

ALTER TABLE [dbo].[AAM_DEVICE_HARDWARE_REMOV] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_HARDWARE_REMOV];

ALTER TABLE [dbo].[AAM_DEVICE_KEYBOARD] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_KEYBOARD];

ALTER TABLE [dbo].[AAM_DEVICE_KEYBOARD] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_KEYBOARD];

ALTER TABLE [dbo].[AAM_DEVICE_LOCATION] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_LOCATION];

ALTER TABLE [dbo].[AAM_DEVICE_MEMBERSHIP] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_MEMBERSHIP];

ALTER TABLE [dbo].[AAM_DEVICE_MEMBERSHIP] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_MEMBERSHIP];

ALTER TABLE [dbo].[AAM_DEVICE_MEMBERSHIP] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_MEMBERSHIP];

ALTER TABLE [dbo].[AAM_DEVICE_MEMORY] WITH CHECK CHECK CONSTRAINT [FK_AAM_DEVICE_MEMORY];

ALTER TABLE [dbo].[AAM_DEVICE_MEMORYSLOT] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_MEMORYSLOT];

ALTER TABLE [dbo].[AAM_DEVICE_MEMORYSLOT] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_MEMORYSLOT];

ALTER TABLE [dbo].[AAM_DEVICE_NETWORKADAPTER] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_NETWORKADAPTER];

ALTER TABLE [dbo].[AAM_DEVICE_NETWORKADAPTER] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_NETWORKADAPTER];

ALTER TABLE [dbo].[AAM_DEVICE_OS] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_OS];

ALTER TABLE [dbo].[AAM_DEVICE_PERSISTENCE] WITH CHECK CHECK CONSTRAINT [FK_01_AAM_DEVICE_PERSISTENCE];

ALTER TABLE [dbo].[AAM_DEVICE_PORTCONNECTOR] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_PORTCONNECTOR];

ALTER TABLE [dbo].[AAM_DEVICE_PORTCONNECTOR] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_PORTCONNECTOR];

ALTER TABLE [dbo].[AAM_DEVICE_PRINTER] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_PRINTER];

ALTER TABLE [dbo].[AAM_DEVICE_PRINTER] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_PRINTER];

ALTER TABLE [dbo].[AAM_DEVICE_PROCESSORSLOT] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_PROCESSORSLOT];

ALTER TABLE [dbo].[AAM_DEVICE_PROCESSORSLOT] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_PROCESSORSLOT];

ALTER TABLE [dbo].[AAM_DEVICE_REC_ACT_SENT] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_REC_ACT_SENT];

ALTER TABLE [dbo].[AAM_DEVICE_REC_ACT_SENT] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_REC_ACT_SENT];

ALTER TABLE [dbo].[AAM_DEVICE_RECORD_ACT_REQ] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_RECORD_ACT_REQ];

ALTER TABLE [dbo].[AAM_DEVICE_RECORD_ACT_REQ] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_RECORD_ACT_REQ];

ALTER TABLE [dbo].[AAM_DEVICE_RECORD_ACT_STA] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_RECORD_ACT_STA];

ALTER TABLE [dbo].[AAM_DEVICE_RESPONSIBLE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_RESPONSIBLE];

ALTER TABLE [dbo].[AAM_DEVICE_RESPONSIBLE] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_RESPONSIBLE];

ALTER TABLE [dbo].[AAM_DEVICE_SERVICE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_SERVICE];

ALTER TABLE [dbo].[AAM_DEVICE_SERVICE] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_SERVICE];

ALTER TABLE [dbo].[AAM_DEVICE_SERVICE] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_SERVICE];

ALTER TABLE [dbo].[AAM_DEVICE_SERVICE] WITH CHECK CHECK CONSTRAINT [FK04_AAM_DEVICE_SERVICE];

ALTER TABLE [dbo].[AAM_DEVICE_SETUP] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_SETUP];

ALTER TABLE [dbo].[AAM_DEVICE_SETUP] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_SETUP];

ALTER TABLE [dbo].[AAM_DEVICE_SETUP] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_SETUP];

ALTER TABLE [dbo].[AAM_DEVICE_SETUP] WITH CHECK CHECK CONSTRAINT [FK04_AAM_DEVICE_SETUP];

ALTER TABLE [dbo].[AAM_DEVICE_SHAREDRESOURCE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_SHAREDRESOURCE];

ALTER TABLE [dbo].[AAM_DEVICE_SHAREDRESOURCE] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_SHAREDRESOURCE];

ALTER TABLE [dbo].[AAM_DEVICE_SNMP_DATA] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_SNMP_DATA];

ALTER TABLE [dbo].[AAM_DEVICE_SOFT_UNINSTALL] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_SOFT_UNINSTALL];

ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_SOFTWARE];

ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_SOFTWARE];

ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_SOFTWARE];

ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH CHECK CHECK CONSTRAINT [FK04_AAM_DEVICE_SOFTWARE];

ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH CHECK CHECK CONSTRAINT [FK05_AAM_DEVICE_SOFTWARE];

ALTER TABLE [dbo].[AAM_DEVICE_SOFTWARE] WITH CHECK CHECK CONSTRAINT [FK06_AAM_DEVICE_SOFTWARE];

ALTER TABLE [dbo].[AAM_DEVICE_STARTUPCOMMAND] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_STARTUPCOMMAND];

ALTER TABLE [dbo].[AAM_DEVICE_STARTUPCOMMAND] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_STARTUPCOMMAND];

ALTER TABLE [dbo].[AAM_DEVICE_STARTUPCOMMAND] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_STARTUPCOMMAND];

ALTER TABLE [dbo].[AAM_DEVICE_UNITMAPPING] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_UNITMAPPING];

ALTER TABLE [dbo].[AAM_DEVICE_UNITMAPPING] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_UNITMAPPING];

ALTER TABLE [dbo].[AAM_DEVICE_UNITMAPPING] WITH CHECK CHECK CONSTRAINT [FK03_AAM_DEVICE_UNITMAPPING];

ALTER TABLE [dbo].[AAM_DEVICE_VIDEOCARD] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_VIDEOCARD];

ALTER TABLE [dbo].[AAM_DEVICE_VIDEOCARD] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_VIDEOCARD];

ALTER TABLE [dbo].[AAM_DEVICE_WARRANTY] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_WARRANTY];

ALTER TABLE [dbo].[AAM_DISK] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DISK];

ALTER TABLE [dbo].[AAM_DISPLAY] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DISPLAY];

ALTER TABLE [dbo].[AAM_DRIVER] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DRIVER];

ALTER TABLE [dbo].[AAM_EMA_DEVICE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_EMA_DEVICE];

ALTER TABLE [dbo].[AAM_EMA_USER] WITH CHECK CHECK CONSTRAINT [FK01_AAM_EMA_USER];

ALTER TABLE [dbo].[AAM_FILE_NAME] WITH CHECK CHECK CONSTRAINT [FK01_AAM_FILE_NAME];

ALTER TABLE [dbo].[AAM_FILE_PRODUCT] WITH CHECK CHECK CONSTRAINT [FK01_AAM_FILE_PRODUCT];

ALTER TABLE [dbo].[AAM_FILE_VERSION] WITH CHECK CHECK CONSTRAINT [FK01_AAM_FILE_VERSION];

ALTER TABLE [dbo].[AAM_FILE_VERSION] WITH CHECK CHECK CONSTRAINT [FK02_AAM_FILE_VERSION];

ALTER TABLE [dbo].[AAM_FILE_VERSION] WITH CHECK CHECK CONSTRAINT [FK03_AAM_FILE_VERSION];

ALTER TABLE [dbo].[AAM_GROUP_DEVICE] WITH CHECK CHECK CONSTRAINT [FK001_GROUP_DEVICE];

ALTER TABLE [dbo].[AAM_GROUP_DEVICE] WITH CHECK CHECK CONSTRAINT [FK002_GROUP_DEVICE];

ALTER TABLE [dbo].[AAM_IDENTITY_CONFLICT_DET] WITH CHECK CHECK CONSTRAINT [FK01_AAM_IDENTITY_CONFLICT_DET];

ALTER TABLE [dbo].[AAM_KEYBOARD] WITH CHECK CHECK CONSTRAINT [FK_AAM_KEYBOARD];

ALTER TABLE [dbo].[AAM_LOGICAL_DISK] WITH CHECK CHECK CONSTRAINT [FK01_AAM_LOGICAL_DISK];

ALTER TABLE [dbo].[AAM_MEMORY] WITH CHECK CHECK CONSTRAINT [FK01_AAM_MEMORY];

ALTER TABLE [dbo].[AAM_NETWORKADAPTER] WITH CHECK CHECK CONSTRAINT [FK01_AAM_NETWORKADAPTER];

ALTER TABLE [dbo].[AAM_NETWORKADAPTER] WITH CHECK CHECK CONSTRAINT [FK02_AAM_NETWORKADAPTER];

ALTER TABLE [dbo].[AAM_NETWORKADAPTER_ADDRES] WITH CHECK CHECK CONSTRAINT [FK01_AAM_NETWORKADAPTER_ADDRES];

ALTER TABLE [dbo].[AAM_NETWORKADAPTER_CONFIG] WITH CHECK CHECK CONSTRAINT [FK01_AAM_NETWORKADAPTER_CONFIG];

ALTER TABLE [dbo].[AAM_PRINTERDRIVER] WITH CHECK CHECK CONSTRAINT [FK01_AAM_PRINTERDRIVER];

ALTER TABLE [dbo].[AAM_PROCESSOR] WITH CHECK CHECK CONSTRAINT [FK01_AAM_PROCESSOR];

ALTER TABLE [dbo].[AAM_PROCESSOR_CACHE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_PROCESSOR_CACHE];

ALTER TABLE [dbo].[AAM_PROCESSOR_CACHE] WITH CHECK CHECK CONSTRAINT [FK02_AAM_PROCESSOR_CACHE];

ALTER TABLE [dbo].[AAM_SHAREDRESOURCE_PERM] WITH CHECK CHECK CONSTRAINT [FK01_AAM_SHAREDRESOURCE_PERM];

ALTER TABLE [dbo].[AAM_SOFTWARE_INFO_AI] WITH CHECK CHECK CONSTRAINT [FK01_AAM_SOFTWARE_INFO_AI];

ALTER TABLE [dbo].[AAM_SOFTWARE_PRODUCT] WITH CHECK CHECK CONSTRAINT [FK01_AAM_SOFTWARE_PRODUCT];

ALTER TABLE [dbo].[AAM_SOFTWARE_UNINSTALL] WITH CHECK CHECK CONSTRAINT [FK01_AAM_SOFTWARE_UNINSTALL];

ALTER TABLE [dbo].[AAM_SOFTWARE_VERSION] WITH CHECK CHECK CONSTRAINT [FK01_AAM_SOFTWARE_VERSION];

ALTER TABLE [dbo].[AAM_SOFTWARE_VERSION] WITH CHECK CHECK CONSTRAINT [FK02_AAM_SOFTWARE_VERSION];

ALTER TABLE [dbo].[AAM_VIDEOCARD] WITH CHECK CHECK CONSTRAINT [FK01_AAM_VIDEOCARD];

ALTER TABLE [dbo].[ADM_AGENT_PROF_ADD_FIELD] WITH CHECK CHECK CONSTRAINT [FK_AFW_ADD_FLD_AGENT_ADD_FLD];

ALTER TABLE [dbo].[ADM_AGENT_PROF_ADD_FIELD] WITH CHECK CHECK CONSTRAINT [FK_AGENT_PROFILE_ADD_FIELD];

ALTER TABLE [dbo].[ADM_AGENT_PROFILE] WITH CHECK CHECK CONSTRAINT [FK01_ADM_AGENT_PROFILE];

ALTER TABLE [dbo].[ADM_AGENT_PROFILE] WITH CHECK CHECK CONSTRAINT [FK02_ADM_AGENT_PROFILE];

ALTER TABLE [dbo].[ADM_AGENT_PROFILE_APPLIC] WITH CHECK CHECK CONSTRAINT [FK01_ADM_AGENT_PROFILE_APPLIC];

ALTER TABLE [dbo].[ADM_AGENT_PROFILE_APPLIC] WITH CHECK CHECK CONSTRAINT [FK02_ADM_AGENT_PROFILE_APPLIC];

ALTER TABLE [dbo].[ADM_AGENT_PROFILE_CONSER] WITH CHECK CHECK CONSTRAINT [FK01_ADM_AGENT_PROFILE_CONSER];

ALTER TABLE [dbo].[ADM_AGENT_PROFILE_CONSER] WITH CHECK CHECK CONSTRAINT [FK02_ADM_AGENT_PROFILE_CONSER];

ALTER TABLE [dbo].[ADM_AGENT_PROFILE_EXT] WITH CHECK CHECK CONSTRAINT [FK01_ADM_AGENT_PROFILE_EXT];

ALTER TABLE [dbo].[ADM_AGENT_PROFILE_SETTING] WITH CHECK CHECK CONSTRAINT [FK01_ADM_AGENT_PROFILE_SETTING];

ALTER TABLE [dbo].[ADM_AGENT_PROFILE_SURVEY] WITH CHECK CHECK CONSTRAINT [FK01_ADM_AGENT_PROFILE_SURVEY];

ALTER TABLE [dbo].[ADM_AGENT_PROFILE_SURVEY] WITH CHECK CHECK CONSTRAINT [FK02_ADM_AGENT_PROFILE_SURVEY];

ALTER TABLE [dbo].[ADM_COMMUNICATION_NODE] WITH CHECK CHECK CONSTRAINT [FK01_ADM_COMMUNICATION_NODE];

ALTER TABLE [dbo].[ADM_COMMUNICATION_NODE] WITH CHECK CHECK CONSTRAINT [FK02_ADM_COMMUNICATION_NODE];

ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_DETAIL] WITH CHECK CHECK CONSTRAINT [FK01_ADM_COMPONENT_REQUEST_DETAIL];

ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_DETAIL] WITH CHECK CHECK CONSTRAINT [FK02_ADM_COMPONENT_REQUEST_DETAIL];

ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_DETAIL] WITH CHECK CHECK CONSTRAINT [FK03_ADM_COMPONENT_REQUEST_DETAIL];

ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_DETAIL] WITH CHECK CHECK CONSTRAINT [FK04_ADM_COMPONENT_REQUEST_DETAIL];

ALTER TABLE [dbo].[ADM_COMPONENT_REQUEST_TARGET] WITH CHECK CHECK CONSTRAINT [FK01_ADM_COMPONENT_REQUEST_TARGET];

ALTER TABLE [dbo].[ADM_CONFIGURATION_GATEWAY] WITH CHECK CHECK CONSTRAINT [FK01_ADM_CONFIGURATION_GATEWAY];

ALTER TABLE [dbo].[ADM_CONFIGURATION_GATEWAY] WITH CHECK CHECK CONSTRAINT [FK02_ADM_CONFIGURATION_GATEWAY];

ALTER TABLE [dbo].[ADM_CREDENTIAL] WITH CHECK CHECK CONSTRAINT [FK01_ADM_CREDENTIAL];

ALTER TABLE [dbo].[ADM_CREDENTIAL] WITH CHECK CHECK CONSTRAINT [FK02_ADM_CREDENTIAL];

ALTER TABLE [dbo].[ADM_DEVICE_CREDENTIAL] WITH CHECK CHECK CONSTRAINT [FK01_ADM_DEVICE_CREDENTIAL];

ALTER TABLE [dbo].[ADM_DEVICE_CREDENTIAL] WITH CHECK CHECK CONSTRAINT [FK02_ADM_DEVICE_CREDENTIAL];

ALTER TABLE [dbo].[ADM_DEVICE_DISCOVERY] WITH CHECK CHECK CONSTRAINT [FK01_ADM_DEVICE_DISCOVERY];

ALTER TABLE [dbo].[ADM_DEVICE_DISCOVERY] WITH CHECK CHECK CONSTRAINT [FK02_ADM_DEVICE_DISCOVERY];

ALTER TABLE [dbo].[ADM_DEVICE_INVENTORY] WITH CHECK CHECK CONSTRAINT [FK01_ADM_DEVICE_INVENTORY];

ALTER TABLE [dbo].[ADM_DEVICE_INVENTORY] WITH CHECK CHECK CONSTRAINT [FK02_ADM_DEVICE_INVENTORY];

ALTER TABLE [dbo].[ADM_DEVICE_LICENSE] WITH CHECK CHECK CONSTRAINT [FK01_AAM_DEVICE_LICENSE];

ALTER TABLE [dbo].[ADM_DEVICE_LICENSE] WITH CHECK CHECK CONSTRAINT [FK02_AAM_DEVICE_LICENSE];

ALTER TABLE [dbo].[ADM_DISCOVERY_CONFIG] WITH CHECK CHECK CONSTRAINT [FK01_ADM_DISCOVERY_CONFIG];

ALTER TABLE [dbo].[ADM_DISCOVERY_MODEL] WITH CHECK CHECK CONSTRAINT [FK01_ADM_DISCOVERY_MODEL];

ALTER TABLE [dbo].[ADM_DISCOVERY_MODEL] WITH CHECK CHECK CONSTRAINT [FK02_ADM_DISCOVERY_MODEL];

ALTER TABLE [dbo].[ADM_RELATION] WITH CHECK CHECK CONSTRAINT [FK01_ADM_RELATION];

ALTER TABLE [dbo].[ADM_RELATION_ACTION] WITH CHECK CHECK CONSTRAINT [FK01_ADM_RELATION_ACTION];

ALTER TABLE [dbo].[ADM_RELATION_ACTION] WITH CHECK CHECK CONSTRAINT [FK02_ADM_RELATION_ACTION];

ALTER TABLE [dbo].[ADM_RELATION_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_ADM_RELATION_GROUP];

ALTER TABLE [dbo].[ADM_RELATION_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_ADM_RELATION_GROUP];

ALTER TABLE [dbo].[ADM_RELATION_GROUP] WITH CHECK CHECK CONSTRAINT [FK03_ADM_RELATION_GROUP];

ALTER TABLE [dbo].[ADM_RELATION_USER] WITH CHECK CHECK CONSTRAINT [FK01_ADM_RELATION_USER];

ALTER TABLE [dbo].[ADM_RELATION_USER] WITH CHECK CHECK CONSTRAINT [FK02_ADM_RELATION_USER];

ALTER TABLE [dbo].[ADM_RELATION_USER] WITH CHECK CHECK CONSTRAINT [FK03_ADM_RELATION_USER];

ALTER TABLE [dbo].[ADM_RULESET] WITH CHECK CHECK CONSTRAINT [FK01_ADM_RULESET];

ALTER TABLE [dbo].[ADM_RULESET] WITH CHECK CHECK CONSTRAINT [FK02_ADM_RULESET];

ALTER TABLE [dbo].[ADM_RULESET_RULE] WITH CHECK CHECK CONSTRAINT [FK001_ADM_RULESET_RULE];

ALTER TABLE [dbo].[ADM_RULESET_RULE] WITH CHECK CHECK CONSTRAINT [FK002_ADM_RULESET_RULE];

ALTER TABLE [dbo].[ADM_SERVER_SETTING] WITH CHECK CHECK CONSTRAINT [FK01_ADM_SERVER_SETTING];

ALTER TABLE [dbo].[ADM_SNMP_IDENTIFIER] WITH CHECK CHECK CONSTRAINT [FK01_ADM_SNMP_IDENTIFIER];

ALTER TABLE [dbo].[ADM_SNMP_RULE] WITH CHECK CHECK CONSTRAINT [FK01_ADM_SNMP_RULE];

ALTER TABLE [dbo].[ADSS_CONFIGURATION] WITH CHECK CHECK CONSTRAINT [FK01_ADSS_CONFIGURATION];

ALTER TABLE [dbo].[ADSS_CONFIGURATION] WITH CHECK CHECK CONSTRAINT [FK02_ADSS_CONFIGURATION];

ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH CHECK CHECK CONSTRAINT [FK01_ADW_ARTICLE_CUBE];

ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH CHECK CHECK CONSTRAINT [FK02_ADW_ARTICLE_CUBE];

ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH CHECK CHECK CONSTRAINT [FK03_ADW_ARTICLE_CUBE];

ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH CHECK CHECK CONSTRAINT [FK04_ADW_ARTICLE_CUBE];

ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH CHECK CHECK CONSTRAINT [FK05_ADW_ARTICLE_CUBE];

ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH CHECK CHECK CONSTRAINT [FK06_ADW_ARTICLE_CUBE];

ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH CHECK CHECK CONSTRAINT [FK07_ADW_ARTICLE_CUBE];

ALTER TABLE [dbo].[ADW_ARTICLE_CUBE] WITH CHECK CHECK CONSTRAINT [FK08_ADW_ARTICLE_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK02_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK03_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK04_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK05_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK07_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK08_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK10_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK12_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK13_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK14_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK15_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_CI_CUBE] WITH CHECK CHECK CONSTRAINT [FK16_ADW_CI_CUBE];

ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH CHECK CHECK CONSTRAINT [FK01_ADW_EVENT_CUBE];

ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH CHECK CHECK CONSTRAINT [FK03_ADW_EVENT_CUBE];

ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH CHECK CHECK CONSTRAINT [FK04_ADW_EVENT_CUBE];

ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH CHECK CHECK CONSTRAINT [FK05_ADW_EVENT_CUBE];

ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH CHECK CHECK CONSTRAINT [FK06_ADW_EVENT_CUBE];

ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH CHECK CHECK CONSTRAINT [FK07_ADW_EVENT_CUBE];

ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH CHECK CHECK CONSTRAINT [FK08_ADW_EVENT_CUBE];

ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH CHECK CHECK CONSTRAINT [FK09_ADW_EVENT_CUBE];

ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH CHECK CHECK CONSTRAINT [FK11_ADW_EVENT_CUBE];

ALTER TABLE [dbo].[ADW_EVENT_CUBE] WITH CHECK CHECK CONSTRAINT [FK12_ADW_EVENT_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK01_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK02_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK03_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK04_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK05_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK06_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK07_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK08_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK09_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK10_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK11_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK12_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK13_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK14_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK15_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK16_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK17_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK18_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK19_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK20_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK21_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK22_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_ITEM_CUBE] WITH CHECK CHECK CONSTRAINT [FK23_ADW_ITEM_CUBE];

ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH CHECK CHECK CONSTRAINT [FK01_ADW_SERVICE_CUBE];

ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH CHECK CHECK CONSTRAINT [FK03_ADW_SERVICE_CUBE];

ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH CHECK CHECK CONSTRAINT [FK04_ADW_SERVICE_CUBE];

ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH CHECK CHECK CONSTRAINT [FK05_ADW_SERVICE_CUBE];

ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH CHECK CHECK CONSTRAINT [FK06_ADW_SERVICE_CUBE];

ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH CHECK CHECK CONSTRAINT [FK07_ADW_SERVICE_CUBE];

ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH CHECK CHECK CONSTRAINT [FK08_ADW_SERVICE_CUBE];

ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH CHECK CHECK CONSTRAINT [FK10_ADW_SERVICE_CUBE];

ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH CHECK CHECK CONSTRAINT [FK11_ADW_SERVICE_CUBE];

ALTER TABLE [dbo].[ADW_SERVICE_CUBE] WITH CHECK CHECK CONSTRAINT [FK12_ADW_SERVICE_CUBE];

ALTER TABLE [dbo].[AES_COMPLIANCE_MONITOR] WITH CHECK CHECK CONSTRAINT [FK02_AES_COMPLIANCE_MONITOR];

ALTER TABLE [dbo].[AES_CRITERIA] WITH CHECK CHECK CONSTRAINT [FK01_AES_CRITERIA];

ALTER TABLE [dbo].[AES_CRITERIA] WITH CHECK CHECK CONSTRAINT [FK02_AES_CRITERIA];

ALTER TABLE [dbo].[AES_CRITERIA] WITH CHECK CHECK CONSTRAINT [FK03_AES_CRITERIA];

ALTER TABLE [dbo].[AES_CVE_TREATMENT] WITH CHECK CHECK CONSTRAINT [FK01_AES_CVE_TREATMENT];

ALTER TABLE [dbo].[AES_CVE_TREATMENT] WITH CHECK CHECK CONSTRAINT [FK02_AES_CVE_TREATMENT];

ALTER TABLE [dbo].[AES_CVE_URL] WITH CHECK CHECK CONSTRAINT [FK01_AES_CVE_URL];

ALTER TABLE [dbo].[AES_DETAIL_CRITERIA] WITH CHECK CHECK CONSTRAINT [FK02_AES_DETAIL_CRITERIA];

ALTER TABLE [dbo].[AES_DETAIL_CRITERIA] WITH CHECK CHECK CONSTRAINT [FK03_AES_DETAIL_CRITERIA];

ALTER TABLE [dbo].[AES_DEVICE] WITH CHECK CHECK CONSTRAINT [FK01_AES_DEVICE];

ALTER TABLE [dbo].[AES_DEVICE] WITH CHECK CHECK CONSTRAINT [FK02_AES_DEVICE];

ALTER TABLE [dbo].[AES_DEVICE_REMEDIATION] WITH CHECK CHECK CONSTRAINT [FK01_AES_DEVICE_REMEDIATION];

ALTER TABLE [dbo].[AES_DEVICE_REMEDIATION] WITH CHECK CHECK CONSTRAINT [FK02_AES_DEVICE_REMEDIATION];

ALTER TABLE [dbo].[AES_DEVICE_VULNERABILITY] WITH CHECK CHECK CONSTRAINT [FK01_AES_DEVICE_VULNERABILITY];

ALTER TABLE [dbo].[AES_DEVICE_VULNERABILITY] WITH CHECK CHECK CONSTRAINT [FK02_AES_DEVICE_VULNERABILITY];

ALTER TABLE [dbo].[AES_DEVICE_VULNERABILITY] WITH CHECK CHECK CONSTRAINT [FK03_AES_DEVICE_VULNERABILITY];

ALTER TABLE [dbo].[AES_DEVICE_VULNERABILITY] WITH CHECK CHECK CONSTRAINT [FK04_AES_DEVICE_VULNERABILITY];

ALTER TABLE [dbo].[AES_DEVICE_VULNERABILITY_COUNTER] WITH CHECK CHECK CONSTRAINT [FK01_AES_DEVICE_VULNERABILITY_COUNTER];

ALTER TABLE [dbo].[AES_GROUP_COMPLIANCE] WITH CHECK CHECK CONSTRAINT [FK01_AES_GROUP_COMPLIANCE];

ALTER TABLE [dbo].[AES_GROUP_COMPLIANCE] WITH CHECK CHECK CONSTRAINT [FK02_AES_GROUP_COMPLIANCE];

ALTER TABLE [dbo].[AES_METHOD] WITH CHECK CHECK CONSTRAINT [FK01_AES_METHOD];

ALTER TABLE [dbo].[AES_POLICY] WITH CHECK CHECK CONSTRAINT [FK01_AES_POLICY];

ALTER TABLE [dbo].[AES_POLICY_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_AES_POLICY_GROUP];

ALTER TABLE [dbo].[AES_POLICY_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_AES_POLICY_GROUP];

ALTER TABLE [dbo].[AES_PRODUCT] WITH CHECK CHECK CONSTRAINT [FK01_AES_PRODUCT];

ALTER TABLE [dbo].[AES_PRODUCT] WITH CHECK CHECK CONSTRAINT [FK02_AES_PRODUCT];

ALTER TABLE [dbo].[AES_PRODUCT_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_AES_PRODUCT_CATEGORY];

ALTER TABLE [dbo].[AES_PRODUCT_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK02_AES_PRODUCT_CATEGORY];

ALTER TABLE [dbo].[AES_PRODUCT_METHOD] WITH CHECK CHECK CONSTRAINT [FK01_AES_PRODUCT_METHOD];

ALTER TABLE [dbo].[AES_PRODUCT_METHOD] WITH CHECK CHECK CONSTRAINT [FK02_AES_PRODUCT_METHOD];

ALTER TABLE [dbo].[AES_REMEDIATION_ACTION] WITH CHECK CHECK CONSTRAINT [FK01_AES_REMEDIATION_ACTION];

ALTER TABLE [dbo].[AES_REMEDIATION_ACTION] WITH CHECK CHECK CONSTRAINT [FK02_AES_REMEDIATION_ACTION];

ALTER TABLE [dbo].[AES_REMEDIATION_ACTION] WITH CHECK CHECK CONSTRAINT [FK03_AES_REMEDIATION_ACTION];

ALTER TABLE [dbo].[AES_SIGNATURE] WITH CHECK CHECK CONSTRAINT [FK01_AES_SIGNATURE];

ALTER TABLE [dbo].[AFLS_ADDITIONAL_FIELD_CONCEPT] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_ADDITIONAL_FIELD_CONCEPT];

ALTER TABLE [dbo].[AFLS_ALERT_STATUS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_ALERT_STATUS];

ALTER TABLE [dbo].[AFLS_ALERT_TYPE] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_ALERT_TYPE];

ALTER TABLE [dbo].[AFLS_ALERTS_NOTIFICATIONS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_ALERTS_NOTIFICATIONS];

ALTER TABLE [dbo].[AFLS_ALERTS_PERMISSIONS_EXTENSION] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_ALERTS_PERMISSIONS_EXTENSION];

ALTER TABLE [dbo].[AFLS_ALERTS_PERMISSIONS_EXTENSION] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_ALERTS_PERMISSIONS_EXTENSION];

ALTER TABLE [dbo].[AFLS_APP_LOG] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_APP_LOG];

ALTER TABLE [dbo].[AFLS_ASSING_PROVIDER_SETTING] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_ASSING_PROVIDER_SETTING];

ALTER TABLE [dbo].[AFLS_ATTACHMENTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_ATTACHMENTS];

ALTER TABLE [dbo].[AFLS_ATTACHMENTS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_ATTACHMENTS];

ALTER TABLE [dbo].[AFLS_CALENDAR_EXCEPTION] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_CALENDAR_EXCEPTION];

ALTER TABLE [dbo].[AFLS_CALENDAR_SCHEDULE] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_CALENDAR_SCHEDULE];

ALTER TABLE [dbo].[AFLS_CALENDARS_EVENTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_CALENDARS_EVENTS];

ALTER TABLE [dbo].[AFLS_CHANGES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_CHANGES];

ALTER TABLE [dbo].[AFLS_CHANGES] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_CHANGES];

ALTER TABLE [dbo].[AFLS_CHRONOS_ALARMS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_CHRONOS_ALARMS];

ALTER TABLE [dbo].[AFLS_CHRONOS_RESULTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_CHRONOS_RESULTS];

ALTER TABLE [dbo].[AFLS_CLIENT_INVENTORY] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_CLIENT_INVENTORY];

ALTER TABLE [dbo].[AFLS_CLIENT_INVENTORY] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_CLIENT_INVENTORY];

ALTER TABLE [dbo].[AFLS_CLIENT_INVENTORY] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_CLIENT_INVENTORY];

ALTER TABLE [dbo].[AFLS_CLIENT_SERVICES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_CLIENT_SERVICES];

ALTER TABLE [dbo].[AFLS_CLIENT_SERVICES] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_CLIENT_SERVICES];

ALTER TABLE [dbo].[AFLS_CLIENT_SERVICES] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_CLIENT_SERVICES];

ALTER TABLE [dbo].[AFLS_CLIENT_SERVICES] WITH CHECK CHECK CONSTRAINT [FK04_AFLS_CLIENT_SERVICES];

ALTER TABLE [dbo].[AFLS_CLIENTS_PROJECTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_CLIENTS_PROJECTS];

ALTER TABLE [dbo].[AFLS_CLIENTS_PROJECTS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_CLIENTS_PROJECTS];

ALTER TABLE [dbo].[AFLS_COMPANIES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_COMPANIES];

ALTER TABLE [dbo].[AFLS_COMPANIES] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_COMPANIES];

ALTER TABLE [dbo].[AFLS_COMPANIES_PROJECTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_COMPANIES_PROJECTS];

ALTER TABLE [dbo].[AFLS_COMPANIES_PROJECTS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_COMPANIES_PROJECTS];

ALTER TABLE [dbo].[AFLS_COMPANY_SERVICES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_COMPANY_SERVICES];

ALTER TABLE [dbo].[AFLS_COMPANY_SERVICES] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_COMPANY_SERVICES];

ALTER TABLE [dbo].[AFLS_COMPANY_SERVICES] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_COMPANY_SERVICES];

ALTER TABLE [dbo].[AFLS_ERROR_MESSAGES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_ERROR_MESSAGES];

ALTER TABLE [dbo].[AFLS_ERROR_MOBILE_LOG] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_ERROR_MOBILE_LOG];

ALTER TABLE [dbo].[AFLS_GROUP_AVAILABILITIES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_GROUP_AVAILABILITIES];

ALTER TABLE [dbo].[AFLS_GROUP_AVAILABILITIES] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_GROUP_AVAILABILITIES];

ALTER TABLE [dbo].[AFLS_GROUP_SERVICES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_GROUP_SERVICES];

ALTER TABLE [dbo].[AFLS_GROUP_SERVICES] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_GROUP_SERVICES];

ALTER TABLE [dbo].[AFLS_GROUP_SKILLS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_GROUP_SKILLS];

ALTER TABLE [dbo].[AFLS_GROUP_SKILLS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_GROUP_SKILLS];

ALTER TABLE [dbo].[AFLS_GROUPS_CLIENT] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_GROUPS_CLIENT];

ALTER TABLE [dbo].[AFLS_GROUPS_SPECIALISTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_GROUPS_SPECIALISTS];

ALTER TABLE [dbo].[AFLS_GROUPS_WEB] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_GROUPS_WEB];

ALTER TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_IMPORT_FILE_PROCESS];

ALTER TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_IMPORT_FILE_PROCESS];

ALTER TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS_ERROR] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_IMPORT_FILE_PROCESS_ERROR];

ALTER TABLE [dbo].[AFLS_IMPORT_FILE_PROCESS_LOG] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_IMPORT_FILES_PROCESS_LOG];

ALTER TABLE [dbo].[AFLS_INVENTORY_LOCATION_CATEGORIES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_INVENTORY_LOCATION_CATEGORIES];

ALTER TABLE [dbo].[AFLS_INVENTORY_LOCATION_INFO] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_INVENTORY_LOCATION_INFO];

ALTER TABLE [dbo].[AFLS_INVENTORY_LOCATION_INFO] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_INVENTORY_LOCATION_INFO];

ALTER TABLE [dbo].[AFLS_INVENTORY_LOCATION_INFO] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_INVENTORY_LOCATION_INFO];

ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_INVENTORY_MOVEMENTS];

ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_INVENTORY_MOVEMENTS];

ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_INVENTORY_MOVEMENTS];

ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH CHECK CHECK CONSTRAINT [FK04_AFLS_INVENTORY_MOVEMENTS];

ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH CHECK CHECK CONSTRAINT [FK05_AFLS_INVENTORY_MOVEMENTS];

ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS] WITH CHECK CHECK CONSTRAINT [FK06_AFLS_INVENTORY_MOVEMENTS];

ALTER TABLE [dbo].[AFLS_INVENTORY_MOVEMENTS_DETAILS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_INVENTORY_MOVEMENTS_DETAILS];

ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_INVENTORY_PRODUCTS];

ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_INVENTORY_PRODUCTS];

ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_INVENTORY_PRODUCTS];

ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT];

ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT];

ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT];

ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK04_AFLS_INVENTORY_PRODUCTS_ASSIGNMENT];

ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_PURCHASE] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_INVENTORY_PRODUCTS_PURCHASE];

ALTER TABLE [dbo].[AFLS_INVENTORY_PRODUCTS_PURCHASE] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_INVENTORY_PRODUCTS_PURCHASE];

ALTER TABLE [dbo].[AFLS_INVENTORY_SERVICE_PRODUCTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_INVENTORY_SERVICE_PRODUCTS];

ALTER TABLE [dbo].[AFLS_INVENTORY_SERVICE_PRODUCTS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_INVENTORY_SERVICE_PRODUCTS];

ALTER TABLE [dbo].[AFLS_LAST_LOCATION_SPECIALIST] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_LAST_LOCATION_SPECIALIST];

ALTER TABLE [dbo].[AFLS_LAYERS_POINTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_LAYERS_POINTS];

ALTER TABLE [dbo].[AFLS_LOCATIONS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_LOCATIONS];

ALTER TABLE [dbo].[AFLS_MAIL_TEMPLATES_TOKENS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_MAIL_TEMPLATES_TOKENS];

ALTER TABLE [dbo].[AFLS_MAIL_TEMPLATES_TOKENS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_MAIL_TEMPLATES_TOKENS];

ALTER TABLE [dbo].[AFLS_MAPS_API_USED_LOG] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_MAPS_API_USED_LOG];

ALTER TABLE [dbo].[AFLS_MAPS_API_USED_LOG] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_MAPS_API_USED_LOG];

ALTER TABLE [dbo].[AFLS_MAPS_API_USED_LOG] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_MAPS_API_USED_LOG];

ALTER TABLE [dbo].[AFLS_MODEL_ADDITIONAL_FIELDS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_MODEL_ADDITIONAL_FIELDS];

ALTER TABLE [dbo].[AFLS_MODELS_EXTENSION] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_MODELS_EXTENSION];

ALTER TABLE [dbo].[AFLS_NOTIFICATION_ALERT] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_NOTIFICATION_ALERT];

ALTER TABLE [dbo].[AFLS_NOTIFICATIONS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_NOTIFICATIONS];

ALTER TABLE [dbo].[AFLS_PROJECTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_PROJECTS];

ALTER TABLE [dbo].[AFLS_PROVIDER_ASSING_TURN] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_PROVIDER_ASSING_TURN];

ALTER TABLE [dbo].[AFLS_PROVIDER_ASSING_TURN] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_PROVIDER_ASSING_TURN];

ALTER TABLE [dbo].[AFLS_PROVIDER_GENERAL_SCORE] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_PROVIDER_GENERAL_SCORE];

ALTER TABLE [dbo].[AFLS_PROVIDER_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_PROVIDER_GROUP];

ALTER TABLE [dbo].[AFLS_PROVIDER_MONITOR_GROUPS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_PROVIDER_MONITOR_GROUPS];

ALTER TABLE [dbo].[AFLS_PROVIDER_MONITOR_GROUPS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_PROVIDER_MONITOR_GROUPS];

ALTER TABLE [dbo].[AFLS_PROVIDER_MONITORS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_PROVIDER_MONITORS];

ALTER TABLE [dbo].[AFLS_PROVIDER_MONITORS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_PROVIDER_MONITORS];

ALTER TABLE [dbo].[AFLS_PROVIDER_SCORE] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_PROVIDER_SCORE];

ALTER TABLE [dbo].[AFLS_PROVIDER_SERVICES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_PROVIDER_SERVICES];

ALTER TABLE [dbo].[AFLS_PROVIDER_SERVICES] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_PROVIDER_SERVICES];

ALTER TABLE [dbo].[AFLS_PROVIDER_SERVICES] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_PROVIDER_SERVICES];

ALTER TABLE [dbo].[AFLS_PROVIDER_SPECIALIST] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_PROVIDER_SPECIALIST];

ALTER TABLE [dbo].[AFLS_PROVIDER_SPECIALIST] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_PROVIDER_SPECIALIST];

ALTER TABLE [dbo].[AFLS_PROVIDER_ZONE] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_PROVIDER_ZONE];

ALTER TABLE [dbo].[AFLS_PROVIDER_ZONE] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_PROVIDER_ZONE];

ALTER TABLE [dbo].[AFLS_QUICK_ANSWERS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_QUICK_ANSWERS];

ALTER TABLE [dbo].[AFLS_RELATION_ITEMS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_RELATION_ITEMS];

ALTER TABLE [dbo].[AFLS_RELATION_ITEMS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_RELATION_ITEMS];

ALTER TABLE [dbo].[AFLS_RELATIONS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_RELATIONS];

ALTER TABLE [dbo].[AFLS_RELATIONSHIP] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_RELATIONSHIP];

ALTER TABLE [dbo].[AFLS_RELATIONSHIP] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_RELATIONSHIP];

ALTER TABLE [dbo].[AFLS_RELATIONSHIP] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_RELATIONSHIP];

ALTER TABLE [dbo].[AFLS_SERVICES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_SERVICES];

ALTER TABLE [dbo].[AFLS_SERVICES] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_SERVICES];

ALTER TABLE [dbo].[AFLS_SERVICES] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_SERVICES];

ALTER TABLE [dbo].[AFLS_SERVICES] WITH CHECK CHECK CONSTRAINT [FK04_AFLS_SERVICES];

ALTER TABLE [dbo].[AFLS_SERVICES_SKILLS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_SERVICES_SKILLS];

ALTER TABLE [dbo].[AFLS_SERVICES_SKILLS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_SERVICES_SKILLS];

ALTER TABLE [dbo].[AFLS_SLA] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_SLA];

ALTER TABLE [dbo].[AFLS_SLA] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_SLA];

ALTER TABLE [dbo].[AFLS_SLA_ATTACHMENTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_SLA_ATTACHMENTS];

ALTER TABLE [dbo].[AFLS_SLA_TIMES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_SLA_TIMES];

ALTER TABLE [dbo].[AFLS_SLA_TIMES] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_SLA_TIMES];

ALTER TABLE [dbo].[AFLS_SLA_TIMES] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_SLA_TIMES];

ALTER TABLE [dbo].[AFLS_SLA_TIMES] WITH CHECK CHECK CONSTRAINT [FK04_AFLS_SLA_TIMES];

ALTER TABLE [dbo].[AFLS_SLA_TIMES] WITH CHECK CHECK CONSTRAINT [FK05_AFLS_SLA_TIMES];

ALTER TABLE [dbo].[AFLS_STATEMACHINE_STATE_EXTENSION] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_STATEMACHINE_STATE_EXTENSION];

ALTER TABLE [dbo].[AFLS_THIRD_PARTY_NOTIFICATION_LOGS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_THIRD_PARTY_NOTIFICATION_LOGS];

ALTER TABLE [dbo].[AFLS_THIRD_PARTY_NOTIFICATION_LOGS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_THIRD_PARTY_NOTIFICATION_LOGS];

ALTER TABLE [dbo].[AFLS_TICKET_ID_SEQUENCES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_TICKET_ID_SEQUENCES];

ALTER TABLE [dbo].[AFLS_TYPENOTIFICATIONS_ACTIONS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_TYPENOTIFICATIONS_ACTIONS];

ALTER TABLE [dbo].[AFLS_TYPENOTIFICATIONS_ACTIONS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_TYPENOTIFICATIONS_ACTIONS];

ALTER TABLE [dbo].[AFLS_USER_AVAILABILITIES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_USER_AVAILABILITIES];

ALTER TABLE [dbo].[AFLS_USER_AVAILABILITIES] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_USER_AVAILABILITIES];

ALTER TABLE [dbo].[AFLS_USER_SKILLS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_USER_SKILLS];

ALTER TABLE [dbo].[AFLS_USER_SKILLS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_USER_SKILLS];

ALTER TABLE [dbo].[AFLS_USERS_CHANNEL] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_USERS_CHANNEL];

ALTER TABLE [dbo].[AFLS_USERS_CHANNEL] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_USERS_CHANNEL];

ALTER TABLE [dbo].[AFLS_USERS_CLIENTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_USERS_CLIENTS];

ALTER TABLE [dbo].[AFLS_USERS_PROJECTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_USERS_PROJECTS];

ALTER TABLE [dbo].[AFLS_USERS_PROJECTS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_USERS_PROJECTS];

ALTER TABLE [dbo].[AFLS_USERS_SPECIALISTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_USERS_SPECIALISTS];

ALTER TABLE [dbo].[AFLS_USERS_SPECIALISTS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_USERS_SPECIALISTS];

ALTER TABLE [dbo].[AFLS_USERS_SPECIALISTS] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_USERS_SPECIALISTS];

ALTER TABLE [dbo].[AFLS_USERS_SPECIALISTS] WITH CHECK CHECK CONSTRAINT [FK04_AFLS_USERS_SPECIALISTS];

ALTER TABLE [dbo].[AFLS_USERS_SPECIALISTS] WITH CHECK CHECK CONSTRAINT [FK05_AFLS_USERS_SPECIALISTS];

ALTER TABLE [dbo].[AFLS_USERS_WEB] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_USERS_WEB];

ALTER TABLE [dbo].[AFLS_VEHICLE_TYPE] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_VEHICLE_TYPE];

ALTER TABLE [dbo].[AFLS_WEBHOOKS_CONFIGURATION] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WEBHOOKS_CONFIGURATION];

ALTER TABLE [dbo].[AFLS_WEBHOOKS_TAGS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WEBHOOKS_TAGS];

ALTER TABLE [dbo].[AFLS_WORK_POSITIONS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WORK_POSITIONS];

ALTER TABLE [dbo].[AFLS_WORKFLOW_CHRONOMETERS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WORKFLOW_CHRONOMETERS];

ALTER TABLE [dbo].[AFLS_WORKFLOWS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WORKFLOWS];

ALTER TABLE [dbo].[AFLS_WORKORDER_ASSIGN_LOGS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WORKORDER_ASSIGN_LOGS];

ALTER TABLE [dbo].[AFLS_WORKORDER_ASSIGN_LOGS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_WORKORDER_ASSIGN_LOGS];

ALTER TABLE [dbo].[AFLS_WORKORDER_CONSOLIDATES] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WORKORDER_CONSOLIDATES];

ALTER TABLE [dbo].[AFLS_WORKORDER_PROVIDER_LOG] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WORKORDER_PROVIDER_LOG];

ALTER TABLE [dbo].[AFLS_WORKORDER_PROVIDER_LOG] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_WORKORDER_PROVIDER_LOG];

ALTER TABLE [dbo].[AFLS_WORKORDER_PROVIDER_LOG] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_WORKORDER_PROVIDER_LOG];

ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WORKORDERS];

ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_WORKORDERS];

ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH CHECK CHECK CONSTRAINT [FK03_AFLS_WORKORDERS];

ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH CHECK CHECK CONSTRAINT [FK04_AFLS_WORKORDERS];

ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH CHECK CHECK CONSTRAINT [FK05_AFLS_WORKORDERS];

ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH CHECK CHECK CONSTRAINT [FK06_AFLS_WORKORDERS];

ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH CHECK CHECK CONSTRAINT [FK07_AFLS_WORKORDERS];

ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH CHECK CHECK CONSTRAINT [FK08_AFLS_WORKORDERS];

ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH CHECK CHECK CONSTRAINT [FK09_AFLS_WORKORDERS];

ALTER TABLE [dbo].[AFLS_WORKORDERS] WITH CHECK CHECK CONSTRAINT [FK10_AFLS_WORKORDERS];

ALTER TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WORKORDERS_INVENTORY_PRODUCTS];

ALTER TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_WORKORDERS_INVENTORY_PRODUCTS];

ALTER TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS] WITH CHECK CHECK CONSTRAINT [FK01_AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS];

ALTER TABLE [dbo].[AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS] WITH CHECK CHECK CONSTRAINT [FK02_AFLS_WORKORDERS_INVENTORY_PRODUCTS_MOVEMENTS];

ALTER TABLE [dbo].[AFW_ACCESS_TOKEN] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ACCESS_TOKEN];

ALTER TABLE [dbo].[AFW_ACCESS_TOKEN] WITH CHECK CHECK CONSTRAINT [FK02_AFW_ACCESS_TOKEN];

ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD];

ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_CONFIG] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD_CONF];

ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_DEFINTION] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD_DEFI];

ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_HISTORY] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD_HIST];

ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_LOOKUP] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD_LOOK];

ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_LOOKUP] WITH CHECK CHECK CONSTRAINT [FK02_AFW_ADDITIONAL_FIELD_LOOK];

ALTER TABLE [dbo].[AFW_ADDITIONAL_FIELD_VALUE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ADDITIONAL_FIELD_VAL];

ALTER TABLE [dbo].[AFW_ALERT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ALERT];

ALTER TABLE [dbo].[AFW_ALERT] WITH CHECK CHECK CONSTRAINT [FK02_AFW_ALERT];

ALTER TABLE [dbo].[AFW_ALERT_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ALERT_CATEGORY];

ALTER TABLE [dbo].[AFW_ALERT_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK02_AFW_ALERT_CATEGORY];

ALTER TABLE [dbo].[AFW_APPLICATION_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_AFW_APPLICATION_CATEGORY];

ALTER TABLE [dbo].[AFW_APPLICATION_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_AFW_APPLICATION_GROUP];

ALTER TABLE [dbo].[AFW_APPLICATION_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_AFW_APPLICATION_GROUP];

ALTER TABLE [dbo].[AFW_APPLICATION_PROJECT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_APPLICATION_PROJECT];

ALTER TABLE [dbo].[AFW_APPLICATION_PROJECT] WITH CHECK CHECK CONSTRAINT [FK02_AFW_APPLICATION_PROJECT];

ALTER TABLE [dbo].[AFW_APPLICATIONS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_APPLICATIONS];

ALTER TABLE [dbo].[AFW_ASSISTME_SERVICES] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ASSISTME_SERVICES];

ALTER TABLE [dbo].[AFW_AUDIT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_AUDIT];

ALTER TABLE [dbo].[AFW_AUDIT] WITH CHECK CHECK CONSTRAINT [FK02_AFW_AUDIT];

ALTER TABLE [dbo].[AFW_AUDIT] WITH CHECK CHECK CONSTRAINT [FK03_AFW_AUDIT];

ALTER TABLE [dbo].[AFW_CATALOG] WITH CHECK CHECK CONSTRAINT [FK01_AFW_CATALOG];

ALTER TABLE [dbo].[AFW_CATALOG_CODE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_CATALOG_CODE];

ALTER TABLE [dbo].[AFW_CATALOG_CODE] WITH CHECK CHECK CONSTRAINT [FK02_AFW_CATALOG_CODE];

ALTER TABLE [dbo].[AFW_CHAT_ATTACHMENT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_CHAT_ATTACHMENT];

ALTER TABLE [dbo].[AFW_CHAT_AUTO_RESPONSE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_CHAT_AUTO_RESPONSE];

ALTER TABLE [dbo].[AFW_CHAT_CONNECTION] WITH CHECK CHECK CONSTRAINT [FK01_AFW_CHAT_CONNECTION];

ALTER TABLE [dbo].[AFW_CHAT_CONNECTION] WITH CHECK CHECK CONSTRAINT [FK02_AFW_CHAT_CONNECTION];

ALTER TABLE [dbo].[AFW_CHAT_MESSAGE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_CHAT_MESSAGE];

ALTER TABLE [dbo].[AFW_CHAT_MESSAGE_MAIL] WITH CHECK CHECK CONSTRAINT [FK01_AFW_CHAT_MESSAGE_MAIL];

ALTER TABLE [dbo].[AFW_CHAT_MESSAGE_MAIL] WITH CHECK CHECK CONSTRAINT [FK02_AFW_CHAT_MESSAGE_MAIL];

ALTER TABLE [dbo].[AFW_CHAT_PROJECT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_CHAT_PROJECT];

ALTER TABLE [dbo].[AFW_CHAT_PROJECT_AGENT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_CHAT_PROJECT_AGENT];

ALTER TABLE [dbo].[AFW_CHAT_PROJECT_AGENT] WITH CHECK CHECK CONSTRAINT [FK02_AFW_CHAT_PROJECT_AGENT];

ALTER TABLE [dbo].[AFW_CHAT_PROJECT_CLIENT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_PROJECT_CLIENT];

ALTER TABLE [dbo].[AFW_CHAT_PROJECT_CLIENT] WITH CHECK CHECK CONSTRAINT [FK02_AFW_PROJECT_CLIENT];

ALTER TABLE [dbo].[AFW_CHAT_SESSION] WITH CHECK CHECK CONSTRAINT [FK_AFW_CHAT_SESSION_AFW_CHAT_CONNECTION_AGENT];

ALTER TABLE [dbo].[AFW_CHAT_SESSION] WITH CHECK CHECK CONSTRAINT [FK_AFW_CHAT_SESSION_AFW_CHAT_CONNECTION_CLIENT];

ALTER TABLE [dbo].[AFW_CHAT_SETTING] WITH CHECK CHECK CONSTRAINT [FK01_AFW_CHAT_SETTING];

ALTER TABLE [dbo].[AFW_COMMENTS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_COMMENTS];

ALTER TABLE [dbo].[AFW_COMMENTS_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_COMMENTS_ASSIGNMENT];

ALTER TABLE [dbo].[AFW_COMMENTS_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK02_AFW_COMMENTS_ASSIGNMENT];

ALTER TABLE [dbo].[AFW_COMPANY] WITH CHECK CHECK CONSTRAINT [FK01_AFW_COMPANY];

ALTER TABLE [dbo].[AFW_COMPANY] WITH CHECK CHECK CONSTRAINT [FK02_AFW_COMPANY];

ALTER TABLE [dbo].[AFW_COMPANY_TYPES] WITH CHECK CHECK CONSTRAINT [FK01_AFW_COMPANY_TYPES];

ALTER TABLE [dbo].[AFW_COMPANY_TYPES] WITH CHECK CHECK CONSTRAINT [FK02_AFW_COMPANY_TYPES];

ALTER TABLE [dbo].[AFW_CONTENT_HISTORY] WITH CHECK CHECK CONSTRAINT [FK01_CONTENT_HISTORY];

ALTER TABLE [dbo].[AFW_CONTENT_HISTORY] WITH CHECK CHECK CONSTRAINT [FK03_CONTENT_HISTORY];

ALTER TABLE [dbo].[AFW_DOCUMENT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_DOCUMENT];

ALTER TABLE [dbo].[AFW_FOLDER] WITH CHECK CHECK CONSTRAINT [FK01_AFW_FOLDER];

ALTER TABLE [dbo].[AFW_GROUP_LICENSE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_GROUP_LICENSE];

ALTER TABLE [dbo].[AFW_GROUP_LICENSE] WITH CHECK CHECK CONSTRAINT [FK02_AFW_GROUP_LICENSE];

ALTER TABLE [dbo].[AFW_GROUP_USER] WITH CHECK CHECK CONSTRAINT [FK01_AFW_GROUP_USER];

ALTER TABLE [dbo].[AFW_GROUP_USER] WITH CHECK CHECK CONSTRAINT [FK02_AFW_GROUP_USER];

ALTER TABLE [dbo].[AFW_GROUPS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_GROUPS];

ALTER TABLE [dbo].[AFW_GROUPS] WITH CHECK CHECK CONSTRAINT [FK02_AFW_GROUPS];

ALTER TABLE [dbo].[AFW_GROUPS] WITH CHECK CHECK CONSTRAINT [FK03_AFW_GROUPS];

ALTER TABLE [dbo].[AFW_ITEM_TIMES] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ITEM_TIMES];

ALTER TABLE [dbo].[AFW_ITEM_TIMES] WITH CHECK CHECK CONSTRAINT [FK02_AFW_ITEM_TIMES];

ALTER TABLE [dbo].[AFW_LDAP] WITH CHECK CHECK CONSTRAINT [FK01_AFW_LDAP];

ALTER TABLE [dbo].[AFW_LICENSE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_LICENSE];

ALTER TABLE [dbo].[AFW_LICENSE] WITH CHECK CHECK CONSTRAINT [FK02_AFW_LICENSE];

ALTER TABLE [dbo].[AFW_LICENSE_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_LICENSE_ASSIGNMENT];

ALTER TABLE [dbo].[AFW_LICENSE_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK02_AFW_LICENSE_ASSIGNMENT];

ALTER TABLE [dbo].[AFW_LICENSE_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK03_AFW_LICENSE_ASSIGNMENT];

ALTER TABLE [dbo].[AFW_LICENSES_USED] WITH CHECK CHECK CONSTRAINT [FK01_AFW_LICENSES_USED];

ALTER TABLE [dbo].[AFW_LICENSES_USED] WITH CHECK CHECK CONSTRAINT [FK02_AFW_LICENSES_USED];

ALTER TABLE [dbo].[AFW_LICENSES_USED] WITH CHECK CHECK CONSTRAINT [FK03_AFW_LICENSES_USED];

ALTER TABLE [dbo].[AFW_LOCATION] WITH CHECK CHECK CONSTRAINT [FK01_AFW_LOCATION];

ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT_CONFIG] WITH CHECK CHECK CONSTRAINT [FK01_AFW_MAIL_ACCOUNT_CONFIG];

ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT_CONFIG] WITH CHECK CHECK CONSTRAINT [FK02_AFW_MAIL_ACCOUNT_CONFIG];

ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT_CONFIG] WITH CHECK CHECK CONSTRAINT [FK03_AFW_MAIL_ACCOUNT_CONFIG];

ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK01_MAIL_ACCOUNT_TEMPLATE];

ALTER TABLE [dbo].[AFW_MAIL_ACCOUNT_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK02_MAIL_ACCOUNT_TEMPLATE];

ALTER TABLE [dbo].[AFW_MAIL_ATTACHMENT] WITH CHECK CHECK CONSTRAINT [FK_AFW_MAIL_ATTACHMENT];

ALTER TABLE [dbo].[AFW_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_MAIL_TEMPLATE];

ALTER TABLE [dbo].[AFW_NAMED_LICENSE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_NAMED_LICENSE];

ALTER TABLE [dbo].[AFW_NAMED_LICENSE] WITH CHECK CHECK CONSTRAINT [FK02_AFW_NAMED_LICENSE];

ALTER TABLE [dbo].[AFW_PERMISSIONS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_PERMISSIONS];

ALTER TABLE [dbo].[AFW_PERMISSIONS] WITH CHECK CHECK CONSTRAINT [FK02_AFW_PERMISSIONS];

ALTER TABLE [dbo].[AFW_PERMISSIONS] WITH CHECK CHECK CONSTRAINT [FK03_AFW_PERMISSIONS];

ALTER TABLE [dbo].[AFW_PROJECT_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_AFW_PROJECT_GROUP];

ALTER TABLE [dbo].[AFW_PROJECT_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_AFW_PROJECT_GROUP];

ALTER TABLE [dbo].[AFW_PROJECT_USER] WITH CHECK CHECK CONSTRAINT [FK01_AFW_PROJECT_USER];

ALTER TABLE [dbo].[AFW_PROJECT_USER] WITH CHECK CHECK CONSTRAINT [FK02_AFW_PROJECT_USER];

ALTER TABLE [dbo].[AFW_PROJECTS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_PROJECTS];

ALTER TABLE [dbo].[AFW_ROLE_ACCESS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ROLE_ACCES];

ALTER TABLE [dbo].[AFW_ROLE_ACCESS] WITH CHECK CHECK CONSTRAINT [FK02_AFW_ROLE_ACCES];

ALTER TABLE [dbo].[AFW_ROLE_ACCESS] WITH CHECK CHECK CONSTRAINT [FK03_AFW_ROLE_ACCES];

ALTER TABLE [dbo].[AFW_ROLE_ACCESS] WITH CHECK CHECK CONSTRAINT [FK04_AFW_ROLE_ACCES];

ALTER TABLE [dbo].[AFW_ROLE_ACCESS_OBJECT] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ROLE_ACCESS_OBJECT];

ALTER TABLE [dbo].[AFW_ROLE_ACCESS_OBJECT] WITH CHECK CHECK CONSTRAINT [FK02_AFW_ROLE_ACCESS_OBJECT];

ALTER TABLE [dbo].[AFW_ROLE_PERMISSION] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ROLE_PERMISSION];

ALTER TABLE [dbo].[AFW_ROLE_PERMISSION] WITH CHECK CHECK CONSTRAINT [FK02_AFW_ROLE_PERMISSION];

ALTER TABLE [dbo].[AFW_ROLES] WITH CHECK CHECK CONSTRAINT [FK01_AFW_ROLES];

ALTER TABLE [dbo].[AFW_ROLES] WITH CHECK CHECK CONSTRAINT [FK02_AFW_ROLES];

ALTER TABLE [dbo].[AFW_RULE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_RULE];

ALTER TABLE [dbo].[AFW_RULE_ACTION] WITH CHECK CHECK CONSTRAINT [FK01_AFW_RULE_ACTION];

ALTER TABLE [dbo].[AFW_RULE_ACTION] WITH CHECK CHECK CONSTRAINT [FK02_AFW_RULE_ACTION];

ALTER TABLE [dbo].[AFW_RULE_ACTION_TYPE] WITH CHECK CHECK CONSTRAINT [FK_AFW_RULE_ACTION_TYPE];

ALTER TABLE [dbo].[AFW_RULE_EVALUATION_CACHE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_RULE_EVALUATION_CACHE];

ALTER TABLE [dbo].[AFW_RULE_EVALUATION_CACHE] WITH CHECK CHECK CONSTRAINT [FK02_AFW_RULE_EVALUATION_CACHE];

ALTER TABLE [dbo].[AFW_SCHEDULER] WITH CHECK CHECK CONSTRAINT [FK01_AFW_SCHEDULER];

ALTER TABLE [dbo].[AFW_SCHEDULER] WITH CHECK CHECK CONSTRAINT [FK02_AFW_SCHEDULER];

ALTER TABLE [dbo].[AFW_SETTINGS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_SETTINGS];

ALTER TABLE [dbo].[AFW_STATEMACHINE_ACTION_TYPE_STATE] WITH CHECK CHECK CONSTRAINT [FK01_AFW_STATEMACHINE_ACTION_TYPE_STATE];

ALTER TABLE [dbo].[AFW_STATEMACHINE_ACTION_TYPE_STATE] WITH CHECK CHECK CONSTRAINT [FK02_AFW_STATEMACHINE_ACTION_TYPE_STATE];

ALTER TABLE [dbo].[AFW_STATEMACHINE_REASON_TRANSITION] WITH CHECK CHECK CONSTRAINT [FK01_AFW_STATEMACHINE_REASON_TRANSITION];

ALTER TABLE [dbo].[AFW_STATEMACHINE_REASON_TRANSITION_CATALOG] WITH CHECK CHECK CONSTRAINT [FK01_AFW_STATEMACHINE_REASON_TRANSITION_CATALOG];

ALTER TABLE [dbo].[AFW_STATEMACHINE_STATE_CATALOGS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_STATEMACHINE_STATE_CATALOGS];

ALTER TABLE [dbo].[AFW_STATEMACHINE_STATES] WITH CHECK CHECK CONSTRAINT [FK01_AFW_STATEMACHINE_STATES];

ALTER TABLE [dbo].[AFW_STATEMACHINE_STATES_BY_ITEM_TIMES] WITH CHECK CHECK CONSTRAINT [FK01_AFW_STATEMACHINE_STATES_BY_ITEM_TIMES];

ALTER TABLE [dbo].[AFW_STATEMACHINE_STATES_BY_ITEM_TIMES] WITH CHECK CHECK CONSTRAINT [FK02_AFW_STATEMACHINE_STATES_BY_ITEM_TIMES];

ALTER TABLE [dbo].[AFW_STATEMACHINE_TRANSITION_CATALOGS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_STATEMACHINE_TRANSITION_CATALOGS];

ALTER TABLE [dbo].[AFW_STATEMACHINE_TRANSITION_CATALOGS] WITH CHECK CHECK CONSTRAINT [FK02_AFW_STATEMACHINE_TRANSITION_CATALOGS];

ALTER TABLE [dbo].[AFW_STATEMACHINE_TRANSITIONS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_STATEMACHINE_TRANSITIONS];

ALTER TABLE [dbo].[AFW_STATEMACHINE_TRANSITIONS] WITH CHECK CHECK CONSTRAINT [FK02_AFW_STATEMACHINE_TRANSITIONS];

ALTER TABLE [dbo].[AFW_SURVEY_ANSWERS] WITH CHECK CHECK CONSTRAINT [FK_ANSWERS_QUESTION];

ALTER TABLE [dbo].[AFW_SURVEY_ANSWERS] WITH CHECK CHECK CONSTRAINT [FK_ANSWERS_SURVEY_USER];

ALTER TABLE [dbo].[AFW_SURVEY_QRESP_CHOICE] WITH CHECK CHECK CONSTRAINT [FK_AFW_SURVEY_QRESP_CHOICE];

ALTER TABLE [dbo].[AFW_SURVEY_QUESTION] WITH CHECK CHECK CONSTRAINT [FK_QUESTION_SURVEY];

ALTER TABLE [dbo].[AFW_SURVEY_QUESTION] WITH CHECK CHECK CONSTRAINT [FK_QUESTION_TYPE];

ALTER TABLE [dbo].[AFW_SURVEY_USER] WITH CHECK CHECK CONSTRAINT [FK_SURVEY];

ALTER TABLE [dbo].[AFW_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK01_AFW_TEMPLATES];

ALTER TABLE [dbo].[AFW_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK02_AFW_TEMPLATES];

ALTER TABLE [dbo].[AFW_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK03_AFW_TEMPLATES];

ALTER TABLE [dbo].[AFW_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK04_AFW_TEMPLATES];

ALTER TABLE [dbo].[AFW_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK05_AFW_TEMPLATES];

ALTER TABLE [dbo].[AFW_USER_SESSION] WITH CHECK CHECK CONSTRAINT [FK01_AFW_USER_SESSION];

ALTER TABLE [dbo].[AFW_USER_SESSION] WITH CHECK CHECK CONSTRAINT [FK02_AFW_USER_SESSION];

ALTER TABLE [dbo].[AFW_USER_SESSION_LOG] WITH CHECK CHECK CONSTRAINT [FK01_AFW_USER_SESSION_LOG];

ALTER TABLE [dbo].[AFW_USER_SESSION_TOKEN] WITH CHECK CHECK CONSTRAINT [FK01_USER_SESSION_TOKEN];

ALTER TABLE [dbo].[AFW_USERS] WITH CHECK CHECK CONSTRAINT [FK01_AFW_USERS];

ALTER TABLE [dbo].[AFW_USERS_AUTHENTICATION] WITH CHECK CHECK CONSTRAINT [FK_AFW_USERS_AUTHENTICATION];

ALTER TABLE [dbo].[AI_ASSISTANT] WITH CHECK CHECK CONSTRAINT [FK01_AI_ASSISTANT];

ALTER TABLE [dbo].[AI_ENDPOINT] WITH CHECK CHECK CONSTRAINT [FK01_AI_ENDPOINT];

ALTER TABLE [dbo].[AI_ENDPOINT] WITH CHECK CHECK CONSTRAINT [FK02_AI_ENDPOINT];

ALTER TABLE [dbo].[AI_MODEL] WITH CHECK CHECK CONSTRAINT [FK01_AI_MODEL];

ALTER TABLE [dbo].[AI_TASK_APPLICATION] WITH CHECK CHECK CONSTRAINT [FK01_AI_TASK_APPLICATION];

ALTER TABLE [dbo].[AI_TASK_APPLICATION] WITH CHECK CHECK CONSTRAINT [FK02_AI_TASK_APPLICATION];

ALTER TABLE [dbo].[AI_TASK_CONFIGURATION] WITH CHECK CHECK CONSTRAINT [FK01_AI_TASK_CONFIGURATION];

ALTER TABLE [dbo].[AI_TASK_CONFIGURATION] WITH CHECK CHECK CONSTRAINT [FK02_AI_TASK_CONFIGURATION];

ALTER TABLE [dbo].[AI_VECTOR] WITH CHECK CHECK CONSTRAINT [FK01_AI_VECTOR];

ALTER TABLE [dbo].[AI_VECTOR_FILE] WITH CHECK CHECK CONSTRAINT [FK01_AI_VECTOR_FILE];

ALTER TABLE [dbo].[AIC_CONFIGURATION] WITH CHECK CHECK CONSTRAINT [FK01_AIC_CONFIGURATION];

ALTER TABLE [dbo].[AMDM_AFW_APPLICATIONS_CLUSTER] WITH CHECK CHECK CONSTRAINT [FK01_AMDMAFWAPPSCLUSTER];

ALTER TABLE [dbo].[AMDM_AFW_APPS_PER_CLUSTERS] WITH CHECK CHECK CONSTRAINT [FK01_AMDMAFWAPPSCLUSTERS];

ALTER TABLE [dbo].[AMDM_AFW_APPS_PER_CLUSTERS] WITH CHECK CHECK CONSTRAINT [FK02_AMDMAFWAPPSCLUSTERS];

ALTER TABLE [dbo].[AMDM_ALERT_LOCATION] WITH CHECK CHECK CONSTRAINT [FK01_AMDMALERTLOCATION];

ALTER TABLE [dbo].[AMDM_ALERT_LOCATION] WITH CHECK CHECK CONSTRAINT [FK02_AMDMALERTLOCATION];

ALTER TABLE [dbo].[AMDM_ALERT_LOCATION] WITH CHECK CHECK CONSTRAINT [FK03_AMDMALERTLOCATION];

ALTER TABLE [dbo].[AMDM_ANDROIDFWUSERDETAILS] WITH CHECK CHECK CONSTRAINT [FK01_AMDMAFWUSERDETAILS];

ALTER TABLE [dbo].[AMDM_APNSCERTIFICATE] WITH CHECK CHECK CONSTRAINT [FK01_AMDMAPNSCERTIFICATE];

ALTER TABLE [dbo].[AMDM_APPCATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_AMDMAPPCATEGORY];

ALTER TABLE [dbo].[AMDM_APPLICATION_METRICS] WITH CHECK CHECK CONSTRAINT [FK01_AMDMAPPLICATIONMETRICS];

ALTER TABLE [dbo].[AMDM_APPLICATION_METRICS] WITH CHECK CHECK CONSTRAINT [FK02_AMDMAPPLICATIONMETRICS];

ALTER TABLE [dbo].[AMDM_APPLICATION_METRICS] WITH CHECK CHECK CONSTRAINT [FK03_AMDMAPPLICATIONMETRICS];

ALTER TABLE [dbo].[AMDM_APPLICATION_METRICS] WITH CHECK CHECK CONSTRAINT [FK04_AMDMAPPLICATIONMETRICS];

ALTER TABLE [dbo].[AMDM_APPSINFO_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_AMDMAPPSINFOCATEGORY];

ALTER TABLE [dbo].[AMDM_APPSINFO_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK02_AMDMAPPSINFOCATEGORY];

ALTER TABLE [dbo].[AMDM_APPSINFORMATIONDETAIL] WITH CHECK CHECK CONSTRAINT [FK01_AMDMAPPSINFODETAIL];

ALTER TABLE [dbo].[AMDM_APPSINFORMATIONEXE] WITH CHECK CHECK CONSTRAINT [FK01_AMDMAPPSINFORMATIONEXE];

ALTER TABLE [dbo].[AMDM_CALENDAR_ALARM] WITH CHECK CHECK CONSTRAINT [FK01_AMDMCALENDARALARM];

ALTER TABLE [dbo].[AMDM_CALENDAR_ALARM] WITH CHECK CHECK CONSTRAINT [FK02_AMDMCALENDARALARM];

ALTER TABLE [dbo].[AMDM_CALENDAR_OFFDAYS] WITH CHECK CHECK CONSTRAINT [FK01_AMDMCALENDAROFFDAY];

ALTER TABLE [dbo].[AMDM_CALENDAR_SCHEDULES] WITH CHECK CHECK CONSTRAINT [FK01_AMDMCALENDARSCHEDULES];

ALTER TABLE [dbo].[AMDM_CALENDAR_SCHEDULES] WITH CHECK CHECK CONSTRAINT [FK02_AMDMCALENDARSCHEDULES];

ALTER TABLE [dbo].[AMDM_CMDREQ_SCRIPTCMD_STATUS] WITH CHECK CHECK CONSTRAINT [FK01_AMDM_CMDREQSCPTCMDST];

ALTER TABLE [dbo].[AMDM_CMDREQ_SCRIPTCMD_STATUS] WITH CHECK CHECK CONSTRAINT [FK02_AMDM_CMDREQSCPTCMDST];

ALTER TABLE [dbo].[AMDM_CMDREQ_SCRIPTCMD_STATUS] WITH CHECK CHECK CONSTRAINT [FK03_AMDM_CMDREQSCPTCMDST];

ALTER TABLE [dbo].[AMDM_CMDREQ_SCRIPTCMD_STATUS] WITH CHECK CHECK CONSTRAINT [FK04_AMDM_CMDREQSCPTCMDST];

ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH CHECK CHECK CONSTRAINT [FK01_AMDMCOMMANDREQUEST];

ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH CHECK CHECK CONSTRAINT [FK02_AMDMCOMMANDREQUEST];

ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH CHECK CHECK CONSTRAINT [FK03_AMDMCOMMANDREQUEST];

ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH CHECK CHECK CONSTRAINT [FK04_AMDMCOMMANDREQUEST];

ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH CHECK CHECK CONSTRAINT [FK05_AMDMCOMMANDREQUEST];

ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH CHECK CHECK CONSTRAINT [FK06_AMDMCOMMANDREQUEST];

ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH CHECK CHECK CONSTRAINT [FK07_AMDMCOMMANDREQUEST];

ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH CHECK CHECK CONSTRAINT [FK08_AMDMCOMMANDREQUEST];

ALTER TABLE [dbo].[AMDM_COMMANDREQUEST] WITH CHECK CHECK CONSTRAINT [FK09_AMDMCOMMANDREQUEST];

ALTER TABLE [dbo].[AMDM_COMMANDREQUESTACTION] WITH CHECK CHECK CONSTRAINT [FK01_AMDMCOMMANDREQACTION];

ALTER TABLE [dbo].[AMDM_COMMANDREQUESTACTION] WITH CHECK CHECK CONSTRAINT [FK02_AMDMCOMMANDREQACTION];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK02_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK03_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK04_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK05_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK06_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK07_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK08_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK09_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK10_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK11_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE] WITH CHECK CHECK CONSTRAINT [FK12_AMDMDEVICE];

ALTER TABLE [dbo].[AMDM_DEVICE_HEALTHINFO] WITH CHECK CHECK CONSTRAINT [FK01_AMDM_DEVICE_HEALTHINFO];

ALTER TABLE [dbo].[AMDM_DEVICE_HEALTHINFO] WITH CHECK CHECK CONSTRAINT [FK02_AMDM_DEVICE_HEALTHINFO];

ALTER TABLE [dbo].[AMDM_DEVICE_HEALTHINFO] WITH CHECK CHECK CONSTRAINT [FK03_AMDM_DEVICE_HEALTHINFO];

ALTER TABLE [dbo].[AMDM_DEVICE_RCSESSION] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICERCSESSION];

ALTER TABLE [dbo].[AMDM_DEVICE_RCSESSION] WITH CHECK CHECK CONSTRAINT [FK02_AMDMDEVICERCSESSION];

ALTER TABLE [dbo].[AMDM_DEVICEAGENTPROFILE] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICEAGENTPROFILE];

ALTER TABLE [dbo].[AMDM_DEVICEAGENTPROFILEDETAIL] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVAGENTPROFILEDET];

ALTER TABLE [dbo].[AMDM_DEVICEEVENT] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICEEVENT];

ALTER TABLE [dbo].[AMDM_DEVICEEVENT] WITH CHECK CHECK CONSTRAINT [FK02_AMDMDEVICEEVENT];

ALTER TABLE [dbo].[AMDM_DEVICEEVENT] WITH CHECK CHECK CONSTRAINT [FK03_AMDMDEVICEEVENT];

ALTER TABLE [dbo].[AMDM_DEVICEEVENT] WITH CHECK CHECK CONSTRAINT [FK04_AMDMDEVICEEVENT];

ALTER TABLE [dbo].[AMDM_DEVICEEVENT] WITH CHECK CHECK CONSTRAINT [FK05_AMDMDEVICEEVENT];

ALTER TABLE [dbo].[AMDM_DEVICEEXPENSE] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICEEXPENSE];

ALTER TABLE [dbo].[AMDM_DEVICEEXPENSE] WITH CHECK CHECK CONSTRAINT [FK02_AMDMDEVICEEXPENSE];

ALTER TABLE [dbo].[AMDM_DEVICEFLAGS] WITH CHECK CHECK CONSTRAINT [FK_AMDM_DEVICEFLAGS_001];

ALTER TABLE [dbo].[AMDM_DEVICEFLAGS] WITH CHECK CHECK CONSTRAINT [FK_AMDM_DEVICEFLAGS_002];

ALTER TABLE [dbo].[AMDM_DEVICELOG] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICELOG];

ALTER TABLE [dbo].[AMDM_DEVICEMACADDRESS] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICEMACADDRESS];

ALTER TABLE [dbo].[AMDM_DEVICEMODELS] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICEMODELS];

ALTER TABLE [dbo].[AMDM_DEVICEMODELS] WITH CHECK CHECK CONSTRAINT [FK02_AMDMDEVICEMODELS];

ALTER TABLE [dbo].[AMDM_DEVICERESETEMAIL] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICE_EMAILS];

ALTER TABLE [dbo].[AMDM_DEVICERESETEMAIL] WITH CHECK CHECK CONSTRAINT [FK02_AMDM_EMAIL];

ALTER TABLE [dbo].[AMDM_DEVICESCHEDULETASK] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICESCHEDULETASK];

ALTER TABLE [dbo].[AMDM_DEVICESCHEDULETASK] WITH CHECK CHECK CONSTRAINT [FK02_AMDMDEVICESCHEDULETASK];

ALTER TABLE [dbo].[AMDM_DEVICESOFTWARE] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVICESOFTWARE];

ALTER TABLE [dbo].[AMDM_DEVMODEL_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDEVMODELPACKAGE];

ALTER TABLE [dbo].[AMDM_DEVMODEL_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK02_AMDMDEVMODELPACKAGE];

ALTER TABLE [dbo].[AMDM_DOUBLE_VALIDATION_CODES] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDOUBLEVALIDATIONCODE];

ALTER TABLE [dbo].[AMDM_DOUBLE_VALIDATION_CODES] WITH CHECK CHECK CONSTRAINT [FK02_AMDMDOUBLEVALIDATIONCODE];

ALTER TABLE [dbo].[AMDM_DYNAMICGROUP] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDYNAMICGROUP];

ALTER TABLE [dbo].[AMDM_DYNAMICGROUPPARAMS] WITH CHECK CHECK CONSTRAINT [FK01_AMDMDYNAMICGROUPPARAMS];

ALTER TABLE [dbo].[AMDM_DYNAMICGROUPPARAMS] WITH CHECK CHECK CONSTRAINT [FK02_AMDMDYNAMICGROUPPARAMS];

ALTER TABLE [dbo].[AMDM_EVENT_MANAGEMENT] WITH CHECK CHECK CONSTRAINT [FK01_AMDM_EVENT_MANAGEMENT];

ALTER TABLE [dbo].[AMDM_EVENT_MANAGEMENT] WITH CHECK CHECK CONSTRAINT [FK02_AMDM_EVENT_MANAGEMENT];

ALTER TABLE [dbo].[AMDM_EXPENSEPLAN] WITH CHECK CHECK CONSTRAINT [FK01_AMDMEXPENSEPLAN];

ALTER TABLE [dbo].[AMDM_EXPENSEPLAN] WITH CHECK CHECK CONSTRAINT [FK02_AMDMEXPENSEPLAN];

ALTER TABLE [dbo].[AMDM_EXPENSEPLAN] WITH CHECK CHECK CONSTRAINT [FK03_AMDMEXPENSEPLAN];

ALTER TABLE [dbo].[AMDM_EXPENSEPLAN] WITH CHECK CHECK CONSTRAINT [FK04_AMDMEXPENSEPLAN];

ALTER TABLE [dbo].[AMDM_EXPENSEPLAN_CALLCOST] WITH CHECK CHECK CONSTRAINT [FK01_AMDMEXPENSEPLANCALLCOST];

ALTER TABLE [dbo].[AMDM_EXPENSEPLAN_CALLCOST] WITH CHECK CHECK CONSTRAINT [FK02_AMDMEXPENSEPLANCALLCOST];

ALTER TABLE [dbo].[AMDM_EXPENSEPLANSUMMARY] WITH CHECK CHECK CONSTRAINT [FK01_AMDMEXPENSEPLANSUMMARY];

ALTER TABLE [dbo].[AMDM_GROUPDEVICE] WITH CHECK CHECK CONSTRAINT [FK01_AMDMGROUPDEVICE];

ALTER TABLE [dbo].[AMDM_GROUPDEVICE] WITH CHECK CHECK CONSTRAINT [FK02_AMDMGROUPDEVICE];

ALTER TABLE [dbo].[AMDM_GROUPUSERS_POLICY] WITH CHECK CHECK CONSTRAINT [FK01_AMDMGROUPUSERSPOLICY];

ALTER TABLE [dbo].[AMDM_GROUPUSERS_POLICY] WITH CHECK CHECK CONSTRAINT [FK02_AMDMGROUPUSERSPOLICY];

ALTER TABLE [dbo].[AMDM_IOS_PENDINGENROLL_DATA] WITH CHECK CHECK CONSTRAINT [FK01_AMDMIOSPENDINGENROLLDATA];

ALTER TABLE [dbo].[AMDM_MANAGEMENTPROJECT] WITH CHECK CHECK CONSTRAINT [FK01_AMDMMANAGEMENTPROJECT];

ALTER TABLE [dbo].[AMDM_MANAGEMENTPROJECT] WITH CHECK CHECK CONSTRAINT [FK02_AMDMMANAGEMENTPROJECT];

ALTER TABLE [dbo].[AMDM_MANPROJACTION_SCRIPTCMD] WITH CHECK CHECK CONSTRAINT [FK01_AMDM_MANPROJSCRIPTCMD];

ALTER TABLE [dbo].[AMDM_MANPROJACTION_SCRIPTCMD] WITH CHECK CHECK CONSTRAINT [FK02_AMDM_MANPROJSCRIPTCMD];

ALTER TABLE [dbo].[AMDM_MANPROJECT_ACTION] WITH CHECK CHECK CONSTRAINT [FK01_AMDMMANPROJECTACTION];

ALTER TABLE [dbo].[AMDM_MANPROJECT_ACTION] WITH CHECK CHECK CONSTRAINT [FK02_AMDMMANPROJECTACTION];

ALTER TABLE [dbo].[AMDM_MANPROJECT_DEVICE] WITH CHECK CHECK CONSTRAINT [FK01_AMDMMANPROJECTDEVICE];

ALTER TABLE [dbo].[AMDM_MANPROJECT_DEVICE] WITH CHECK CHECK CONSTRAINT [FK02_AMDMMANPROJECTDEVICE];

ALTER TABLE [dbo].[AMDM_MANPROJECT_NOTIFICATION] WITH CHECK CHECK CONSTRAINT [FK01_AMDMMANPROJECTNOTIFY];

ALTER TABLE [dbo].[AMDM_MANPROJECT_NOTIFICATION] WITH CHECK CHECK CONSTRAINT [FK02_AMDMMANPROJECTNOTIFY];

ALTER TABLE [dbo].[AMDM_MOBILEMANUFACTURERS] WITH CHECK CHECK CONSTRAINT [FK01_AMDMMOBILEMANUFACTURERS];

ALTER TABLE [dbo].[AMDM_MOBILEPLATFORMSVERSIONS] WITH CHECK CHECK CONSTRAINT [FK01_AMDMMOBILEPLATFVERSIONS];

ALTER TABLE [dbo].[AMDM_PENDINGENROLL] WITH CHECK CHECK CONSTRAINT [FK01_AMDMPENDINGENROLL];

ALTER TABLE [dbo].[AMDM_PENDINGENROLL] WITH CHECK CHECK CONSTRAINT [FK02_AMDMPENDINGENROLL];

ALTER TABLE [dbo].[AMDM_PENDINGENROLL] WITH CHECK CHECK CONSTRAINT [FK03_AMDMPENDINGENROLL];

ALTER TABLE [dbo].[AMDM_PENDINGENROLL] WITH CHECK CHECK CONSTRAINT [FK04_AMDMPENDINGENROLL];

ALTER TABLE [dbo].[AMDM_PENDINGENROLL] WITH CHECK CHECK CONSTRAINT [FK05_AMDMPENDINGENROLL];

ALTER TABLE [dbo].[AMDM_POLICY] WITH CHECK CHECK CONSTRAINT [FK01_AMDMPOLICY];

ALTER TABLE [dbo].[AMDM_POLICY] WITH CHECK CHECK CONSTRAINT [FK02_AMDMPOLICY];

ALTER TABLE [dbo].[AMDM_POLICY] WITH CHECK CHECK CONSTRAINT [FK03_AMDMPOLICY];

ALTER TABLE [dbo].[AMDM_POLICYFULFILLMENTPROBLEM] WITH CHECK CHECK CONSTRAINT [FK01_AMDMPOLICYFULFILLPROB];

ALTER TABLE [dbo].[AMDM_POLICYITEM] WITH CHECK CHECK CONSTRAINT [FK01_AMDMPOLICYITEM];

ALTER TABLE [dbo].[AMDM_POLICYITEM] WITH CHECK CHECK CONSTRAINT [FK02_AMDMPOLICYITEM];

ALTER TABLE [dbo].[AMDM_POLICYITEM] WITH CHECK CHECK CONSTRAINT [FK03_AMDMPOLICYITEM];

ALTER TABLE [dbo].[AMDM_POLICYITEMTYPEPARAMETER] WITH CHECK CHECK CONSTRAINT [FK01_AMDMPOLICYITEMTYPEPARAM];

ALTER TABLE [dbo].[AMDM_POLICYITEMTYPEPARAMETER] WITH CHECK CHECK CONSTRAINT [FK02_AMDMPOLICYITEMTYPEPARAM];

ALTER TABLE [dbo].[AMDM_POLICYPARAMAPP] WITH CHECK CHECK CONSTRAINT [FK01_AMDMPOLICYPARAMAPP];

ALTER TABLE [dbo].[AMDM_POLICYPARAMAPPPERMISSION] WITH CHECK CHECK CONSTRAINT [FK01_AMDMPOLPARAMAPPPERM];

ALTER TABLE [dbo].[AMDM_POLICYVERSION] WITH CHECK CHECK CONSTRAINT [FK01_AMDMPOLICYVERSION];

ALTER TABLE [dbo].[AMDM_POLICYVERSION] WITH CHECK CHECK CONSTRAINT [FK02_AMDMPOLICYVERSION];

ALTER TABLE [dbo].[AMDM_POLICYVERSION] WITH CHECK CHECK CONSTRAINT [FK03_AMDMPOLICYVERSION];

ALTER TABLE [dbo].[AMDM_POLICYVERSION] WITH CHECK CHECK CONSTRAINT [FK04_AMDMPOLICYVERSION];

ALTER TABLE [dbo].[AMDM_POLICYVERSION] WITH CHECK CHECK CONSTRAINT [FK05_AMDMPOLICYVERSION];

ALTER TABLE [dbo].[AMDM_RCSESSION] WITH CHECK CHECK CONSTRAINT [FK01_AMDMRCSESSION];

ALTER TABLE [dbo].[AMDM_RCSESSION] WITH CHECK CHECK CONSTRAINT [FK02_AMDMRCSESSION];

ALTER TABLE [dbo].[AMDM_RCSESSIONMEDIA] WITH CHECK CHECK CONSTRAINT [FK01_AMDMRCSESSIONMEDIA];

ALTER TABLE [dbo].[AMDM_REQACTIONPARAM] WITH CHECK CHECK CONSTRAINT [FK01_AMDMREQACTIONPARAM];

ALTER TABLE [dbo].[AMDM_RULESET_RULE] WITH CHECK CHECK CONSTRAINT [FK01_AMDMRULESETRULE];

ALTER TABLE [dbo].[AMDM_RULESET_RULE] WITH CHECK CHECK CONSTRAINT [FK02_AMDMRULESETRULE];

ALTER TABLE [dbo].[AMDM_RULESET_RULE] WITH CHECK CHECK CONSTRAINT [FK03_AMDMRULESETRULE];

ALTER TABLE [dbo].[AMDM_RULESETEXPENSEPLAN_RULE] WITH CHECK CHECK CONSTRAINT [FK01_RULESETEXPENSEPLANRULE];

ALTER TABLE [dbo].[AMDM_RULESETEXPENSEPLAN_RULE] WITH CHECK CHECK CONSTRAINT [FK02_RULESETEXPENSEPLANRULE];

ALTER TABLE [dbo].[AMDM_RULESETEXPENSEPLAN_RULE] WITH CHECK CHECK CONSTRAINT [FK03_RULESETEXPENSEPLANRULE];

ALTER TABLE [dbo].[AMDM_SCRIPT_COMMAND] WITH CHECK CHECK CONSTRAINT [FK01_AMDM_SCRIPTCOMMAND];

ALTER TABLE [dbo].[AMDM_SCRIPTCOMMAND_TYPE] WITH CHECK CHECK CONSTRAINT [FK01_AMDM_SCRIPTCOMMANDTYPE];

ALTER TABLE [dbo].[AMDM_SENTCOMMAND] WITH CHECK CHECK CONSTRAINT [FK01_AMDMSENTCOMMAND];

ALTER TABLE [dbo].[AMDM_SENTCOMMAND] WITH CHECK CHECK CONSTRAINT [FK02_AMDMSENTCOMMAND];

ALTER TABLE [dbo].[AMDM_SENTCOMMAND] WITH CHECK CHECK CONSTRAINT [FK03_AMDMSENTCOMMAND];

ALTER TABLE [dbo].[AMDM_SENTCOMMAND] WITH CHECK CHECK CONSTRAINT [FK04_AMDMSENTCOMMAND];

ALTER TABLE [dbo].[AMDM_SENTCOMMANDLOG] WITH CHECK CHECK CONSTRAINT [FK01_AMDMSENTCOMMANDLOG];

ALTER TABLE [dbo].[AMDM_SENTCOMMANDLOG] WITH CHECK CHECK CONSTRAINT [FK02_AMDMSENTCOMMANDLOG];

ALTER TABLE [dbo].[AMDM_SYSTEMAPP] WITH CHECK CHECK CONSTRAINT [FK01_AMDMSYSTEMAPP];

ALTER TABLE [dbo].[AMDM_USER_CONTENTLOCK] WITH CHECK CHECK CONSTRAINT [FK01_AMDMUSERCONTENTLOCK];

ALTER TABLE [dbo].[AMDM_VPP_ASSIGNLICENSES] WITH CHECK CHECK CONSTRAINT [FK01_AMDM_VPP_ASSIGNLICENSES];

ALTER TABLE [dbo].[AMDM_VPP_ASSIGNLICENSESDETAIL] WITH CHECK CHECK CONSTRAINT [FK01_AMDM_VPPASSIGNLICENSEDET];

ALTER TABLE [dbo].[AMDM_ZONEPOLIGON] WITH CHECK CHECK CONSTRAINT [FK01_AMDMZONEPOLIGON];

ALTER TABLE [dbo].[ANM_DEVICE_METRIC] WITH CHECK CHECK CONSTRAINT [FK01_ANM_DEVICE_METRIC];

ALTER TABLE [dbo].[ANM_DEVICE_METRIC] WITH CHECK CHECK CONSTRAINT [FK02_ANM_DEVICE_METRIC];

ALTER TABLE [dbo].[ANM_DEVICE_MONITOR] WITH CHECK CHECK CONSTRAINT [FK01_ANM_DEVICE_MONITOR];

ALTER TABLE [dbo].[ANM_DEVICE_MONITOR] WITH CHECK CHECK CONSTRAINT [FK02_ANM_DEVICE_MONITOR];

ALTER TABLE [dbo].[ANM_DEVICE_MONITOR] WITH CHECK CHECK CONSTRAINT [FK03_ANM_DEVICE_MONITOR];

ALTER TABLE [dbo].[APM_APPLICABLE_SERV_PACK] WITH CHECK CHECK CONSTRAINT [FK01_APM_APPLICABLE_SERV_PACK];

ALTER TABLE [dbo].[APM_APPLICABLE_SERV_PACK] WITH CHECK CHECK CONSTRAINT [FK02_APM_APPLICABLE_SERV_PACK];

ALTER TABLE [dbo].[APM_APPLICABLE_SERV_PACK] WITH CHECK CHECK CONSTRAINT [FK03_APM_APPLICABLE_SERV_PACK];

ALTER TABLE [dbo].[APM_CATALOG] WITH CHECK CHECK CONSTRAINT [FK_APM_CATALOG];

ALTER TABLE [dbo].[APM_DOWNLOAD_DETAIL] WITH CHECK CHECK CONSTRAINT [FK01_APM_DOWNLOAD_DETAIL];

ALTER TABLE [dbo].[APM_DOWNLOAD_DETAIL] WITH CHECK CHECK CONSTRAINT [FK02_APM_DOWNLOAD_DETAIL];

ALTER TABLE [dbo].[APM_DOWNLOAD_DETAIL] WITH CHECK CHECK CONSTRAINT [FK03_APM_DOWNLOAD_DETAIL];

ALTER TABLE [dbo].[APM_DOWNLOAD_DETAIL] WITH CHECK CHECK CONSTRAINT [FK04_APM_DOWNLOAD_DETAIL];

ALTER TABLE [dbo].[APM_PATCH_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_APM_PATCH_CATEGORY];

ALTER TABLE [dbo].[APM_PATCH_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK02_APM_PATCH_CATEGORY];

ALTER TABLE [dbo].[APM_PATCH_DETAIL] WITH CHECK CHECK CONSTRAINT [FK01_APM_PATCH_DETAIL];

ALTER TABLE [dbo].[APM_PATCH_DETAIL] WITH CHECK CHECK CONSTRAINT [FK02_APM_PATCH_DETAIL];

ALTER TABLE [dbo].[APM_PATCH_DETAIL] WITH CHECK CHECK CONSTRAINT [FK03_APM_PATCH_DETAIL];

ALTER TABLE [dbo].[APM_PATCH_DOWNLOAD] WITH CHECK CHECK CONSTRAINT [FK01_APM_PATCH_DOWNLOAD];

ALTER TABLE [dbo].[APM_PATCH_LITE] WITH CHECK CHECK CONSTRAINT [FK01_APM_PATCH_LITE];

ALTER TABLE [dbo].[APM_PATCH_PRODUCT] WITH CHECK CHECK CONSTRAINT [FK01_APM_PATCH_PRODUCT];

ALTER TABLE [dbo].[APM_PATCH_PRODUCT] WITH CHECK CHECK CONSTRAINT [FK02_APM_PATCH_PRODUCT];

ALTER TABLE [dbo].[APM_PRODUCT_PATCH] WITH CHECK CHECK CONSTRAINT [FK01_APM_PRODUCT_PATCH];

ALTER TABLE [dbo].[APM_PRODUCT_PATCH] WITH CHECK CHECK CONSTRAINT [FK02_APM_PRODUCT_PATCH];

ALTER TABLE [dbo].[APM_PRODUCT_SERVICE_PACK] WITH CHECK CHECK CONSTRAINT [FK01_APM_PRODUCT_SERVICE_PACK];

ALTER TABLE [dbo].[APM_PRODUCT_SERVICE_PACK] WITH CHECK CHECK CONSTRAINT [FK02_APM_PRODUCT_SERVICE_PACK];

ALTER TABLE [dbo].[APM_REGION] WITH CHECK CHECK CONSTRAINT [FK01_APM_REGION];

ALTER TABLE [dbo].[APM_SCAN_PATCH] WITH CHECK CHECK CONSTRAINT [FK01_APM_SCAN_PATCH];

ALTER TABLE [dbo].[APM_SCAN_PATCH] WITH CHECK CHECK CONSTRAINT [FK02_APM_SCAN_PATCH];

ALTER TABLE [dbo].[APM_SCAN_RESULT] WITH CHECK CHECK CONSTRAINT [FK01_APM_SCAN_RESULT];

ALTER TABLE [dbo].[APM_SCANNED_PATCHES] WITH CHECK CHECK CONSTRAINT [FK01_APM_SCANNED_PATCHES];

ALTER TABLE [dbo].[APM_SCANNED_PATCHES] WITH CHECK CHECK CONSTRAINT [FK02_APM_SCANNED_PATCHES];

ALTER TABLE [dbo].[APM_SCANNED_PATCHES] WITH CHECK CHECK CONSTRAINT [FK03_APM_SCANNED_PATCHES];

ALTER TABLE [dbo].[APM_SCANNED_PRODUCTS] WITH CHECK CHECK CONSTRAINT [FK01_APM_SCANNED_PRODUCTS];

ALTER TABLE [dbo].[APM_SCANNED_PRODUCTS] WITH CHECK CHECK CONSTRAINT [FK02_APM_SCANNED_PRODUCTS];

ALTER TABLE [dbo].[APM_SHAVLIK_SCAN_RESULT] WITH CHECK CHECK CONSTRAINT [FK01_APM_SHAVLIK_SCAN_RESULT];

ALTER TABLE [dbo].[APM_UPDATE_SETUPPROJECT] WITH CHECK CHECK CONSTRAINT [FK01_APM_UPDATE_SETUPPROJECT];

ALTER TABLE [dbo].[APR_ACCESS_CONTROL] WITH CHECK CHECK CONSTRAINT [FK01_APR_ACCESS_CONTROL];

ALTER TABLE [dbo].[APR_ACCESS_CONTROL] WITH CHECK CHECK CONSTRAINT [FK02_APR_ACCESS_CONTROL];

ALTER TABLE [dbo].[APR_ANSWER] WITH CHECK CHECK CONSTRAINT [FK01_APR_ANSWER];

ALTER TABLE [dbo].[APR_ANSWER] WITH CHECK CHECK CONSTRAINT [FK02_APR_ANSWER];

ALTER TABLE [dbo].[APR_AUDIT] WITH CHECK CHECK CONSTRAINT [FK01_APR_AUDIT];

ALTER TABLE [dbo].[APR_AUDIT] WITH CHECK CHECK CONSTRAINT [FK02_APR_AUDIT];

ALTER TABLE [dbo].[APR_DOMAIN] WITH CHECK CHECK CONSTRAINT [FK01_APR_DOMAIN];

ALTER TABLE [dbo].[APR_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK01_APR_TEMPLATE];

ALTER TABLE [dbo].[APR_TOKEN] WITH CHECK CHECK CONSTRAINT [FK01_APR_TOKEN];

ALTER TABLE [dbo].[APR_TOKEN] WITH CHECK CHECK CONSTRAINT [FK02_APR_TOKEN];

ALTER TABLE [dbo].[APR_USER] WITH CHECK CHECK CONSTRAINT [FK01_APR_USER];

ALTER TABLE [dbo].[APWM_KW_PRICES] WITH CHECK CHECK CONSTRAINT [FK01_APWM_KW_PRICES];

ALTER TABLE [dbo].[APWM_POLICY] WITH CHECK CHECK CONSTRAINT [FK01_AAM_POLICY];

ALTER TABLE [dbo].[APWM_POLICY] WITH CHECK CHECK CONSTRAINT [FK02_AAM_POLICY];

ALTER TABLE [dbo].[APWM_POLICY_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK01_APWM_POLICY_ASSIGNMENT];

ALTER TABLE [dbo].[APWM_POLICY_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK02_APWM_POLICY_ASSIGNMENT];

ALTER TABLE [dbo].[APWM_POLICY_DAY] WITH CHECK CHECK CONSTRAINT [FK01_APWM_POLICY_DAY];

ALTER TABLE [dbo].[APWM_POLICY_HOUR] WITH CHECK CHECK CONSTRAINT [FK01_APWM_POLICY_HOUR];

ALTER TABLE [dbo].[APWM_POLICY_INVENTORY] WITH CHECK CHECK CONSTRAINT [FK01_APWM_POLICY_INVENTORY];

ALTER TABLE [dbo].[APWM_POLICY_ITEM] WITH CHECK CHECK CONSTRAINT [FK01_APWM_POLICY_ITEM];

ALTER TABLE [dbo].[APWM_POLICY_ITEM] WITH CHECK CHECK CONSTRAINT [FK02_APWM_POLICY_ITEM];

ALTER TABLE [dbo].[APWM_POLICY_ITEM] WITH CHECK CHECK CONSTRAINT [FK03_APWM_POLICY_ITEM];

ALTER TABLE [dbo].[APWM_POLICY_SOFTWARE] WITH CHECK CHECK CONSTRAINT [FK01_APWM_POLICY_SOFTWARE];

ALTER TABLE [dbo].[APWM_POLICY_TYPE] WITH CHECK CHECK CONSTRAINT [FK01_APWM_POLICY_TYPE];

ALTER TABLE [dbo].[APWM_POLICY_USB] WITH CHECK CHECK CONSTRAINT [FK01_APWM_POLICY_USB];

ALTER TABLE [dbo].[AQM_APPLICATION] WITH CHECK CHECK CONSTRAINT [FK01_AQM_APPLICATION];

ALTER TABLE [dbo].[AQM_APPLICATION_DATASOURCE] WITH CHECK CHECK CONSTRAINT [FK01_AQM_APPLICATION_DATASOURCE];

ALTER TABLE [dbo].[AQM_APPLICATION_DATASOURCE] WITH CHECK CHECK CONSTRAINT [FK02_AQM_APPLICATION_DATASOURCE];

ALTER TABLE [dbo].[AQM_DOCUMENT] WITH CHECK CHECK CONSTRAINT [FK01_AQM_DOCUMENT];

ALTER TABLE [dbo].[AQM_DOCUMENT_SCHEDULE] WITH CHECK CHECK CONSTRAINT [FK01_AQM_REPORT_SCHEDULE];

ALTER TABLE [dbo].[AQM_DOCUMENT_SCHEDULE] WITH CHECK CHECK CONSTRAINT [FK02_AQM_REPORT_SCHEDULE];

ALTER TABLE [dbo].[AQM_DOCUMENT_SCHEDULE] WITH CHECK CHECK CONSTRAINT [FK03_AQM_REPORT_SCHEDULE];

ALTER TABLE [dbo].[AQM_EXPORT_REQUEST] WITH CHECK CHECK CONSTRAINT [FK02_AQM_EXPORT_REQUEST];

ALTER TABLE [dbo].[AQM_FAVORITE] WITH CHECK CHECK CONSTRAINT [FK01_FAVORITE];

ALTER TABLE [dbo].[AQM_FAVORITE] WITH CHECK CHECK CONSTRAINT [FK02_FAVORITE];

ALTER TABLE [dbo].[AQM_FOLDER_SETTING] WITH CHECK CHECK CONSTRAINT [FK01_AQM_FOLDER];

ALTER TABLE [dbo].[AQM_FOLDER_SETTING] WITH CHECK CHECK CONSTRAINT [FK02_AQM_FOLDER_SETTING];

ALTER TABLE [dbo].[AQM_REPORT] WITH CHECK CHECK CONSTRAINT [FK01_AQM_REPORT];

ALTER TABLE [dbo].[AQM_TRANSLATE] WITH CHECK CHECK CONSTRAINT [FK01_AQM_TRANSLATE];

ALTER TABLE [dbo].[AQM_TRANSLATE] WITH CHECK CHECK CONSTRAINT [FK02_AQM_TRANSLATE];

ALTER TABLE [dbo].[ASD_CATEGORY_SETUPPROJECT] WITH CHECK CHECK CONSTRAINT [FK01_ASD_CATEGORY_SETUPPROJECT];

ALTER TABLE [dbo].[ASD_CATEGORY_SETUPPROJECT] WITH CHECK CHECK CONSTRAINT [FK02_ASD_CATEGORY_SETUPPROJECT];

ALTER TABLE [dbo].[ASD_CATEGORY_USERGROUP] WITH CHECK CHECK CONSTRAINT [FK01_ASD_CATEGORY_USERGROUP];

ALTER TABLE [dbo].[ASD_CATEGORY_USERGROUP] WITH CHECK CHECK CONSTRAINT [FK02_ASD_CATEGORY_USERGROUP];

ALTER TABLE [dbo].[ASD_EXEC_NOTIFICATION] WITH CHECK CHECK CONSTRAINT [FK01_ASD_EXEC_NOTIFICATION];

ALTER TABLE [dbo].[ASD_EXEC_NOTIFICATION] WITH CHECK CHECK CONSTRAINT [FK02_ASD_EXEC_NOTIFICATION];

ALTER TABLE [dbo].[ASD_EXEC_PACK_DEVICE_HIST] WITH CHECK CHECK CONSTRAINT [FK01_ASD_EXEC_PACK_DEVICE_HIST];

ALTER TABLE [dbo].[ASD_EXEC_PACK_DEVICE_HIST] WITH CHECK CHECK CONSTRAINT [FK02_ASD_EXEC_PACK_DEVICE_HIST];

ALTER TABLE [dbo].[ASD_EXEC_PACK_DEVICE_HIST] WITH CHECK CHECK CONSTRAINT [FK03_ASD_EXEC_PACK_DEVICE_HIST];

ALTER TABLE [dbo].[ASD_EXEC_PACKAGE_DEVICE] WITH CHECK CHECK CONSTRAINT [FK01_ASD_EXEC_PACKAGE_DEVICE];

ALTER TABLE [dbo].[ASD_EXEC_PACKAGE_DEVICE] WITH CHECK CHECK CONSTRAINT [FK02_ASD_EXEC_PACKAGE_DEVICE];

ALTER TABLE [dbo].[ASD_EXEC_PACKAGE_DEVICE] WITH CHECK CHECK CONSTRAINT [FK03_ASD_EXEC_PACKAGE_DEVICE];

ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_CRED] WITH CHECK CHECK CONSTRAINT [FK01_ASD_EXEC_TEMPLATE_CRED];

ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_CRED] WITH CHECK CHECK CONSTRAINT [FK02_ASD_EXEC_TEMPLATE_CRED];

ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_NOTIF] WITH CHECK CHECK CONSTRAINT [FK01_ASD_EXEC_TEMPLATE_NOTIF];

ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_NOTIF] WITH CHECK CHECK CONSTRAINT [FK02_ASD_EXEC_TEMPLATE_NOTIF];

ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_OBJ] WITH CHECK CHECK CONSTRAINT [FK01_ASD_EXEC_TEMPLATE_OBJ];

ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_OBJ] WITH CHECK CHECK CONSTRAINT [FK02_ASD_EXEC_TEMPLATE_OBJ];

ALTER TABLE [dbo].[ASD_EXEC_TEMPLATE_OBJ] WITH CHECK CHECK CONSTRAINT [FK03_ASD_EXEC_TEMPLATE_OBJ];

ALTER TABLE [dbo].[ASD_EXECUTION] WITH CHECK CHECK CONSTRAINT [FK01_ASD_EXECUTION];

ALTER TABLE [dbo].[ASD_EXECUTION] WITH CHECK CHECK CONSTRAINT [FK02_ASD_EXECUTION];

ALTER TABLE [dbo].[ASD_EXECUTION] WITH CHECK CHECK CONSTRAINT [FK03_ASD_EXECUTION];

ALTER TABLE [dbo].[ASD_EXECUTION] WITH CHECK CHECK CONSTRAINT [FK04_ASD_EXECUTION];

ALTER TABLE [dbo].[ASD_EXECUTION_CREDENTIAL] WITH CHECK CHECK CONSTRAINT [FK_ASD_EXECUTION_CREDENTIAL];

ALTER TABLE [dbo].[ASD_EXECUTION_DEVICE] WITH CHECK CHECK CONSTRAINT [FK01_ASD_EXECUTION_DEVICE];

ALTER TABLE [dbo].[ASD_EXECUTION_DEVICE] WITH CHECK CHECK CONSTRAINT [FK02_ASD_EXECUTION_DEVICE];

ALTER TABLE [dbo].[ASD_EXECUTION_OBJECT] WITH CHECK CHECK CONSTRAINT [FK01_ASD_EXECUTION_OBJECT];

ALTER TABLE [dbo].[ASD_EXECUTION_OBJECT] WITH CHECK CHECK CONSTRAINT [FK02_ASD_EXECUTION_OBJECT];

ALTER TABLE [dbo].[ASD_EXECUTION_OBJECT] WITH CHECK CHECK CONSTRAINT [FK03_ASD_EXECUTION_OBJECT];

ALTER TABLE [dbo].[ASD_EXECUTION_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK01_ASD_EXECUTION_PACKAGE];

ALTER TABLE [dbo].[ASD_EXECUTION_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK02_ASD_EXECUTION_PACKAGE];

ALTER TABLE [dbo].[ASD_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK_ASD_PACKAGE];

ALTER TABLE [dbo].[ASD_SETUPPROJECT] WITH CHECK CHECK CONSTRAINT [FK01_ASD_SETUPPROJECT];

ALTER TABLE [dbo].[ASD_SETUPPROJECT] WITH CHECK CHECK CONSTRAINT [FK02_ASD_SETUPPROJECT];

ALTER TABLE [dbo].[ASD_SETUPPROJECT_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK01_ASD_SETUPPROJECT_PACKAGE];

ALTER TABLE [dbo].[ASD_SETUPPROJECT_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK02_ASD_SETUPPROJECT_PACKAGE];

ALTER TABLE [dbo].[ASDC_ADDITIONAL_FIELD_MODEL] WITH CHECK CHECK CONSTRAINT [FK01_ADDITIONAL_FIELD_MODEL];

ALTER TABLE [dbo].[ASDC_ADDITIONAL_FIELD_ROLE] WITH CHECK CHECK CONSTRAINT [FK01_ASDC_ADDITIONAL_FIELD_ROLE];

ALTER TABLE [dbo].[ASDK_AGENT_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_AGENT_PROJECT];

ALTER TABLE [dbo].[ASDK_AGENT_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_AGENT_GROUP];

ALTER TABLE [dbo].[ASDK_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_CATEGORY];

ALTER TABLE [dbo].[ASDK_CATEGORY_FIELD] WITH CHECK CHECK CONSTRAINT [F01_ASDK_CATEGORY_FIELD];

ALTER TABLE [dbo].[ASDK_CATEGORY_FIELD] WITH CHECK CHECK CONSTRAINT [F02_ASDK_CATEGORY_FIELD];

ALTER TABLE [dbo].[ASDK_CATEGORY_FIELD] WITH CHECK CHECK CONSTRAINT [F03_ASDK_CATEGORY_FIELD];

ALTER TABLE [dbo].[ASDK_CATEGORY_HIERARCHY] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_CATEGORY_HIERARCHY];

ALTER TABLE [dbo].[ASDK_CATEGORY_HIERARCHY] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_CATEGORY_HIERARCHY];

ALTER TABLE [dbo].[ASDK_CATEGORY_PROJECT] WITH CHECK CHECK CONSTRAINT [F01_ASDK_CATEGORY_PROJECT];

ALTER TABLE [dbo].[ASDK_CATEGORY_PROJECT] WITH CHECK CHECK CONSTRAINT [F02_ASDK_CATEGORY_PROJECT];

ALTER TABLE [dbo].[ASDK_CATEGORY_SERVICE] WITH CHECK CHECK CONSTRAINT [F01_ASDK_CATEGORY_SERVICE];

ALTER TABLE [dbo].[ASDK_CATEGORY_SERVICE] WITH CHECK CHECK CONSTRAINT [F02_ASDK_CATEGORY_SERVICE];

ALTER TABLE [dbo].[ASDK_CATEGORY_TIME] WITH CHECK CHECK CONSTRAINT [F03_ASDK_CATEGORY_TIME];

ALTER TABLE [dbo].[ASDK_CATEGORY_TIME] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_CATEGORY_TIME];

ALTER TABLE [dbo].[ASDK_CATEGORY_TIME] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_CATEGORY_TIME];

ALTER TABLE [dbo].[ASDK_CATEGORY_TIME_DEFAULT] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_CATEGORY_TIME_DEFAULT];

ALTER TABLE [dbo].[ASDK_CATEGORY_TIME_DEFAULT] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_CATEGORY_TIME_DEFAULT];

ALTER TABLE [dbo].[ASDK_CATEGORY_TIME_DEFAULT] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_CATEGORY_TIME_DEFAULT];

ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_CATEGORY_TYPE];

ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_CATEGORY_TYPE];

ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_CATEGORY_TYPE];

ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_CATEGORY_TYPE];

ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH CHECK CHECK CONSTRAINT [FK05_ASDK_CATEGORY_TYPE];

ALTER TABLE [dbo].[ASDK_CATEGORY_TYPE] WITH CHECK CHECK CONSTRAINT [FK06_ASDK_CATEGORY_TYPE];

ALTER TABLE [dbo].[ASDK_EVENT] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_EVENT];

ALTER TABLE [dbo].[ASDK_EVENT] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_EVENT];

ALTER TABLE [dbo].[ASDK_EVENT] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_EVENT];

ALTER TABLE [dbo].[ASDK_EVENT] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_EVENT];

ALTER TABLE [dbo].[ASDK_EVENT] WITH CHECK CHECK CONSTRAINT [FK05_ASDK_EVENT];

ALTER TABLE [dbo].[ASDK_EVENT] WITH CHECK CHECK CONSTRAINT [FK06_ASDK_EVENT];

ALTER TABLE [dbo].[ASDK_EVENT] WITH CHECK CHECK CONSTRAINT [FK07_ASDK_EVENT];

ALTER TABLE [dbo].[ASDK_EVENT_CI] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_EVENT_CI];

ALTER TABLE [dbo].[ASDK_EVENT_CI] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_EVENT_CI];

ALTER TABLE [dbo].[ASDK_EVENT_CONDITION] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_EVENT_CONDITION];

ALTER TABLE [dbo].[ASDK_EVENT_CONFIG] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_EVENT_CONFIG];

ALTER TABLE [dbo].[ASDK_EVENT_ITEM] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_EVENT_ITEM];

ALTER TABLE [dbo].[ASDK_EVENT_ITEM] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_EVENT_ITEM];

ALTER TABLE [dbo].[ASDK_EVENT_RELATED] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_EVENT_RELATED];

ALTER TABLE [dbo].[ASDK_EVENT_RELATED] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_EVENT_RELATED];

ALTER TABLE [dbo].[ASDK_EVENT_RELATED] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_EVENT_RELATED];

ALTER TABLE [dbo].[ASDK_EVENT_RELATED] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_EVENT_RELATED];

ALTER TABLE [dbo].[ASDK_FILEREPOSITORY] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_FILEREPOSITORY];

ALTER TABLE [dbo].[ASDK_FILEREPOSITORY] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_FILEREPOSITORY];

ALTER TABLE [dbo].[ASDK_FILEREPOSITORY] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_FILEREPOSITORY];

ALTER TABLE [dbo].[ASDK_IMPORT_PARTITION] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_IMPORT_PARTITION];

ALTER TABLE [dbo].[ASDK_IMPORTS] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_IMPORTS];

ALTER TABLE [dbo].[ASDK_IMPORTS] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_IMPORTS];

ALTER TABLE [dbo].[ASDK_IMPORTS] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_IMPORTS];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK05_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK06_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK07_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK08_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK09_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK10_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK11_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK12_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK13_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK14_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK15_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK16_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK17_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK18_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK19_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK20_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK21_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK22_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK23_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK24_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK25_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK26_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK27_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK28_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK29_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK30_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK31_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK32_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM] WITH CHECK CHECK CONSTRAINT [FK33_ASDK_ITEM];

ALTER TABLE [dbo].[ASDK_ITEM_ACCOUNTING] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_ITEM_ACCOUNTING];

ALTER TABLE [dbo].[ASDK_ITEM_ACCOUNTING] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_ITEM_ACCOUNTING];

ALTER TABLE [dbo].[ASDK_ITEM_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_ITEM_ARTICLE];

ALTER TABLE [dbo].[ASDK_ITEM_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_ITEM_ARTICLE];

ALTER TABLE [dbo].[ASDK_ITEM_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_ITEM_ARTICLE];

ALTER TABLE [dbo].[ASDK_ITEM_CI] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_ITEM_CI];

ALTER TABLE [dbo].[ASDK_ITEM_CI] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_ITEM_CI];

ALTER TABLE [dbo].[ASDK_ITEM_CI] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_ITEM_CI];

ALTER TABLE [dbo].[ASDK_ITEM_FOLLOWUP] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_ITEM_FOLLOWUP];

ALTER TABLE [dbo].[ASDK_ITEM_FOLLOWUP] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_ITEM_FOLLOWUP];

ALTER TABLE [dbo].[ASDK_ITEM_RELATION] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_ITEM_RELATION];

ALTER TABLE [dbo].[ASDK_ITEM_RELATION] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_ITEM_RELATION];

ALTER TABLE [dbo].[ASDK_ITEM_STAGE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_ITEM_STAGE];

ALTER TABLE [dbo].[ASDK_LDAP_SERVICE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_LDAP_SERVICE];

ALTER TABLE [dbo].[ASDK_LDAP_SERVICE] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_LDAP_SERVICE];

ALTER TABLE [dbo].[ASDK_LDAP_SERVICE] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_LDAP_SERVICE];

ALTER TABLE [dbo].[ASDK_MAIL_CONFIG] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_MAIL_CONFIG];

ALTER TABLE [dbo].[ASDK_MAIL_CONFIG] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_MAIL_CONFIG];

ALTER TABLE [dbo].[ASDK_MAIL_FILTER] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_MAIL_FILTER];

ALTER TABLE [dbo].[ASDK_MAIL_LOG] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_MAIL_LOG];

ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_MAIL_TEMPLATE];

ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_MAIL_TEMPLATE];

ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_MAIL_TEMPLATE];

ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_MAIL_TEMPLATE];

ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK05_ASDK_MAIL_TEMPLATE];

ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK06_ASDK_MAIL_TEMPLATE];

ALTER TABLE [dbo].[ASDK_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK07_ASDK_MAIL_TEMPLATE];

ALTER TABLE [dbo].[ASDK_MATRIX_PRIORITY] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_MATRIX_PRIORITY];

ALTER TABLE [dbo].[ASDK_MATRIX_PRIORITY] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_MATRIX_PRIORITY];

ALTER TABLE [dbo].[ASDK_MATRIX_PRIORITY] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_MATRIX_PRIORITY];

ALTER TABLE [dbo].[ASDK_MATRIX_PRIORITY] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_MATRIX_PRIORITY];

ALTER TABLE [dbo].[ASDK_MATRIX_PRIORITY] WITH CHECK CHECK CONSTRAINT [FK05_ASDK_MATRIX_PRIORITY];

ALTER TABLE [dbo].[ASDK_METRICS] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_METRICS];

ALTER TABLE [dbo].[ASDK_METRICS_DATA] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_METRICS_DATA];

ALTER TABLE [dbo].[ASDK_METRICS_DATA] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_METRICS_DATA];

ALTER TABLE [dbo].[ASDK_MODEL_COST_PRICE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_MODEL_COST_PRICE];

ALTER TABLE [dbo].[ASDK_MODEL_VARI] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_MODEL_VARI];

ALTER TABLE [dbo].[ASDK_PRODUCT_RESOURCE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_PRODUCT_RESOURCE];

ALTER TABLE [dbo].[ASDK_PRODUCT_RESOURCE] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_PRODUCT_RESOURCE];

ALTER TABLE [dbo].[ASDK_PRODUCT_SERVICE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_PRODUCT_SERVICE];

ALTER TABLE [dbo].[ASDK_PRODUCT_SERVICE] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_PRODUCT_SERVICE];

ALTER TABLE [dbo].[ASDK_PROJECT_SERVICE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_PROJECT_SERVICE];

ALTER TABLE [dbo].[ASDK_PROJECT_SERVICE] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_PROJECT_SERVICE];

ALTER TABLE [dbo].[ASDK_RESOURCE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_RESOURCE];

ALTER TABLE [dbo].[ASDK_SCHEDULED_ACTION] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SCHEDULED_ACTION];

ALTER TABLE [dbo].[ASDK_SCHEDULED_ACTION] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SCHEDULED_ACTION];

ALTER TABLE [dbo].[ASDK_SCHEDULED_STATUS] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SCHEDULED_STATUS];

ALTER TABLE [dbo].[ASDK_SCHEDULED_STATUS] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SCHEDULED_STATUS];

ALTER TABLE [dbo].[ASDK_SERVICE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SERVICE];

ALTER TABLE [dbo].[ASDK_SERVICE] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SERVICE];

ALTER TABLE [dbo].[ASDK_SERVICE] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SERVICE];

ALTER TABLE [dbo].[ASDK_SERVICE] WITH CHECK CHECK CONSTRAINT [FK06_ASDK_SERVICE];

ALTER TABLE [dbo].[ASDK_SERVICE] WITH CHECK CHECK CONSTRAINT [FK07_ASDK_SERVICE];

ALTER TABLE [dbo].[ASDK_SERVICE] WITH CHECK CHECK CONSTRAINT [FK08_ASDK_SERVICE];

ALTER TABLE [dbo].[ASDK_SERVICE] WITH CHECK CHECK CONSTRAINT [FK09_ASDK_SERVICE];

ALTER TABLE [dbo].[ASDK_SERVICE] WITH CHECK CHECK CONSTRAINT [FK10_ASDK_SERVICE];

ALTER TABLE [dbo].[ASDK_SERVICE] WITH CHECK CHECK CONSTRAINT [FK11_ASDK_SERVICE];

ALTER TABLE [dbo].[ASDK_SERVICE] WITH CHECK CHECK CONSTRAINT [FK12_ASDK_SERVICE];

ALTER TABLE [dbo].[ASDK_SERVICE_ACCOUNTING] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SERVICE_ACCOUNTING];

ALTER TABLE [dbo].[ASDK_SERVICE_ACCOUNTING] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SERVICE_ACCOUNTING];

ALTER TABLE [dbo].[ASDK_SERVICE_ACCOUNTING_DETAIL] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SERVICE_ACCOUNTING_DETAIL];

ALTER TABLE [dbo].[ASDK_SERVICE_ACCOUNTING_DETAIL] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SERVICE_ACCOUNTING_DETAIL];

ALTER TABLE [dbo].[ASDK_SERVICE_BAG] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SERVICE_BAG];

ALTER TABLE [dbo].[ASDK_SERVICE_BAG] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SERVICE_BAG];

ALTER TABLE [dbo].[ASDK_SERVICE_BPROCESS] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SERVICE_BPROCESS];

ALTER TABLE [dbo].[ASDK_SERVICE_BPROCESS] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SERVICE_BPROCESS];

ALTER TABLE [dbo].[ASDK_SERVICE_BPROCESS] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SERVICE_BPROCESS];

ALTER TABLE [dbo].[ASDK_SERVICE_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK01_SERVICE_CONTRACT];

ALTER TABLE [dbo].[ASDK_SERVICE_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK02_SERVICE_CONTRACT];

ALTER TABLE [dbo].[ASDK_SERVICE_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SERVICE_GROUP];

ALTER TABLE [dbo].[ASDK_SERVICE_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SERVICE_GROUP];

ALTER TABLE [dbo].[ASDK_SERVICE_GROUP] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SERVICE_GROUP];

ALTER TABLE [dbo].[ASDK_SERVICE_SELF] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SERVICE_SELF];

ALTER TABLE [dbo].[ASDK_SERVICE_SELF] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SERVICE_SELF];

ALTER TABLE [dbo].[ASDK_SERVICE_SELF] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SERVICE_SELF];

ALTER TABLE [dbo].[ASDK_SERVICE_SELF] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_SERVICE_SELF];

ALTER TABLE [dbo].[ASDK_SERVICE_STAGE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SERVICE_STAGE];

ALTER TABLE [dbo].[ASDK_SERVICE_TYPE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SERVICE_TYPE];

ALTER TABLE [dbo].[ASDK_SERVICE_TYPE] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SERVICE_TYPE];

ALTER TABLE [dbo].[ASDK_SERVICE_TYPE] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SERVICE_TYPE];

ALTER TABLE [dbo].[ASDK_SERVICE_TYPE] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_SERVICE_TYPE];

ALTER TABLE [dbo].[ASDK_SERVICE_TYPE] WITH CHECK CHECK CONSTRAINT [FK05_ASDK_SERVICE_TYPE];

ALTER TABLE [dbo].[ASDK_SERVICEPROFILE_SPECIALIST] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SERVICEPROFILE_SPE];

ALTER TABLE [dbo].[ASDK_SERVICEPROFILE_SPECIALIST] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SERVICEPROFILE_SPE];

ALTER TABLE [dbo].[ASDK_SERVICEPROFILE_SPECIALIST] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SERVICEPROFILE_SPE];

ALTER TABLE [dbo].[ASDK_SHOPPING_CART] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SHOPPING_CART];

ALTER TABLE [dbo].[ASDK_SHOPPING_CART] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SHOPPING_CART];

ALTER TABLE [dbo].[ASDK_SHOPPING_CART] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SHOPPING_CART];

ALTER TABLE [dbo].[ASDK_SHOPPING_CART] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_SHOPPING_CART];

ALTER TABLE [dbo].[ASDK_SHOPPING_CART] WITH CHECK CHECK CONSTRAINT [FK05_ASDK_SHOPPING_CART];

ALTER TABLE [dbo].[ASDK_SLA] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SLA];

ALTER TABLE [dbo].[ASDK_SLA] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SLA];

ALTER TABLE [dbo].[ASDK_SLA] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SLA];

ALTER TABLE [dbo].[ASDK_SLA] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_SLA];

ALTER TABLE [dbo].[ASDK_SLA] WITH CHECK CHECK CONSTRAINT [FK05_ASDK_SLA];

ALTER TABLE [dbo].[ASDK_SLA] WITH CHECK CHECK CONSTRAINT [FK06_ASDK_SLA];

ALTER TABLE [dbo].[ASDK_SLA_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SLA_CATEGORY];

ALTER TABLE [dbo].[ASDK_SLA_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SLA_CATEGORY];

ALTER TABLE [dbo].[ASDK_SLA_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SLA_CATEGORY];

ALTER TABLE [dbo].[ASDK_SLA_CI] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SLA_CI];

ALTER TABLE [dbo].[ASDK_SLA_CI] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SLA_CI];

ALTER TABLE [dbo].[ASDK_SLA_CI] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SLA_CI];

ALTER TABLE [dbo].[ASDK_SLA_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SLA_CONTRACT];

ALTER TABLE [dbo].[ASDK_SLA_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SLA_CONTRACT];

ALTER TABLE [dbo].[ASDK_SLA_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SLA_GROUP];

ALTER TABLE [dbo].[ASDK_SLA_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SLA_GROUP];

ALTER TABLE [dbo].[ASDK_SLA_GROUP] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SLA_GROUP];

ALTER TABLE [dbo].[ASDK_SLA_LOCATION] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SLA_LOCATION];

ALTER TABLE [dbo].[ASDK_SLA_LOCATION] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SLA_LOCATION];

ALTER TABLE [dbo].[ASDK_SLA_LOCATION] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SLA_LOCATION];

ALTER TABLE [dbo].[ASDK_SLA_METRICS] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SLA_METRICS];

ALTER TABLE [dbo].[ASDK_SLA_METRICS] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SLA_METRICS];

ALTER TABLE [dbo].[ASDK_SLA_TIMES] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SLA_TIMES];

ALTER TABLE [dbo].[ASDK_SLA_TIMES] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SLA_TIMES];

ALTER TABLE [dbo].[ASDK_SLA_USER] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SLA_USER];

ALTER TABLE [dbo].[ASDK_SLA_USER] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SLA_USER];

ALTER TABLE [dbo].[ASDK_SLA_USER] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SLA_USER];

ALTER TABLE [dbo].[ASDK_SLA_VENDOR] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_SLA_VENDOR];

ALTER TABLE [dbo].[ASDK_SLA_VENDOR] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_SLA_VENDOR];

ALTER TABLE [dbo].[ASDK_SLA_VENDOR] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_SLA_VENDOR];

ALTER TABLE [dbo].[ASDK_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_TEMPLATES];

ALTER TABLE [dbo].[ASDK_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_TEMPLATES];

ALTER TABLE [dbo].[ASDK_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_TEMPLATES];

ALTER TABLE [dbo].[ASDK_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_TEMPLATES];

ALTER TABLE [dbo].[ASDK_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK05_ASDK_TEMPLATES];

ALTER TABLE [dbo].[ASDK_VIEW] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_VIEW];

ALTER TABLE [dbo].[ASDK_VIEW] WITH CHECK CHECK CONSTRAINT [FK02_ASDK_VIEW];

ALTER TABLE [dbo].[ASDK_VIEW] WITH CHECK CHECK CONSTRAINT [FK04_ASDK_VIEW];

ALTER TABLE [dbo].[ASDK_VIEW_SELECT] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_VIEW_SELECT];

ALTER TABLE [dbo].[ASDK_VIEW_WHERE] WITH CHECK CHECK CONSTRAINT [FK01_ASDK_VIEW_WHERE];

ALTER TABLE [dbo].[ASDK_VIEW_WHERE] WITH CHECK CHECK CONSTRAINT [FK03_ASDK_VIEW_WHERE];

ALTER TABLE [dbo].[ASM_DEVICE_USAGE_DAY] WITH CHECK CHECK CONSTRAINT [FK01_ASM_DEVICE_USAGE_DAY];

ALTER TABLE [dbo].[ASM_DEVICE_USAGE_DAY] WITH CHECK CHECK CONSTRAINT [FK02_ASM_DEVICE_USAGE_DAY];

ALTER TABLE [dbo].[ASM_FILE_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_ASM_FILE_GROUP];

ALTER TABLE [dbo].[ASM_FILE_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_ASM_FILE_GROUP];

ALTER TABLE [dbo].[ASM_FILE_RULE] WITH CHECK CHECK CONSTRAINT [FK01_ASM_FILE_RULE];

ALTER TABLE [dbo].[ASM_LICENSE_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK01_ASM_LICENSE_ASSIGMENT];

ALTER TABLE [dbo].[ASM_LICENSE_ASSIGNMENT] WITH CHECK CHECK CONSTRAINT [FK02_ASM_LICENSE_ASSIGMENT];

ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK01_ASM_LICENSE_PACKAGE];

ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK02_ASM_LICENSE_PACKAGE];

ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK03_ASM_LICENSE_PACKAGE];

ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE] WITH CHECK CHECK CONSTRAINT [FK04_ASM_LICENSE_PACKAGE];

ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE_EVENT] WITH CHECK CHECK CONSTRAINT [FK01_ASM_LICENSE_PACKAGE_EVENT];

ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE_EVENT] WITH CHECK CHECK CONSTRAINT [FK02_ASM_LICENSE_PACKAGE_EVENT];

ALTER TABLE [dbo].[ASM_LICENSE_PACKAGE_EVENT] WITH CHECK CHECK CONSTRAINT [FK03_ASM_LICENSE_PACKAGE_EVENT];

ALTER TABLE [dbo].[ASM_LICENSE_SERIAL] WITH CHECK CHECK CONSTRAINT [FK01_ASM_LICENSE_SERIAL];

ALTER TABLE [dbo].[ASM_LICENSE_SOFTWARE] WITH CHECK CHECK CONSTRAINT [FK01_ASM_LICENSE_SOFTWARE];

ALTER TABLE [dbo].[ASM_LICENSE_SOFTWARE] WITH CHECK CHECK CONSTRAINT [FK02_ASM_LICENSE_SOFTWARE];

ALTER TABLE [dbo].[ASM_LICENSING] WITH CHECK CHECK CONSTRAINT [FK01_ASM_LICENSING];

ALTER TABLE [dbo].[ASM_LICENSING] WITH CHECK CHECK CONSTRAINT [FK02_ASM_LICENSING];

ALTER TABLE [dbo].[ASM_LICENSING_EVENT] WITH CHECK CHECK CONSTRAINT [FK01_ASM_LICENSING_EVENT];

ALTER TABLE [dbo].[ASM_SOFT_USAGE_CONFIG_LIST] WITH CHECK CHECK CONSTRAINT [FK01_ASM_SOFT_USAGE_CONFIG_LIST];

ALTER TABLE [dbo].[ASM_SOFT_USAGE_CONFIG_LIST] WITH CHECK CHECK CONSTRAINT [FK02_ASM_SOFT_USAGE_CONFIG_LIST];

ALTER TABLE [dbo].[ASM_SOFTWARE_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_ASM_CATALOG_CATEGORY];

ALTER TABLE [dbo].[ASM_SOFTWARE_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK02_ASM_CATALOG_CATEGORY];

ALTER TABLE [dbo].[ASM_SOFTWARE_FILE_SUGGES] WITH CHECK CHECK CONSTRAINT [FK01_ASM_SOFTWARE_FILE_SUGGES];

ALTER TABLE [dbo].[ASM_SOFTWARE_FILE_SUGGES] WITH CHECK CHECK CONSTRAINT [FK02_ASM_SOFTWARE_FILE_SUGGES];

ALTER TABLE [dbo].[ASM_SOFTWARE_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_ASM_SOFTWARE_GROUP];

ALTER TABLE [dbo].[ASM_SOFTWARE_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_ASM_SOFTWARE_GROUP];

ALTER TABLE [dbo].[ASM_SOFTWARE_RULE] WITH CHECK CHECK CONSTRAINT [FK01_ASM_SOFTWARE_RULE];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE] WITH CHECK CHECK CONSTRAINT [FK01_ASM_SOFTWARE_USAGE];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE] WITH CHECK CHECK CONSTRAINT [FK02_ASM_SOFTWARE_USAGE];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE] WITH CHECK CHECK CONSTRAINT [FK03_ASM_SOFTWARE_USAGE];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_CONFIG] WITH CHECK CHECK CONSTRAINT [FK01_ASM_SOFTWARE_USAGE_CONFIG];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY] WITH CHECK CHECK CONSTRAINT [FK01_ASM_SOFTWARE_USAGE_DAY];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY] WITH CHECK CHECK CONSTRAINT [FK02_ASM_SOFTWARE_USAGE_DAY];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY] WITH CHECK CHECK CONSTRAINT [FK03_ASM_SOFTWARE_USAGE_DAY];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DAY] WITH CHECK CHECK CONSTRAINT [FK04_ASM_SOFTWARE_USAGE_DAY];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] WITH CHECK CHECK CONSTRAINT [FK01_ASM_SOFTWARE_USAGE_DETAIL];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] WITH CHECK CHECK CONSTRAINT [FK02_ASM_SOFTWARE_USAGE_DETAIL];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] WITH CHECK CHECK CONSTRAINT [FK03_ASM_SOFTWARE_USAGE_DETAIL];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] WITH CHECK CHECK CONSTRAINT [FK04_ASM_SOFTWARE_USAGE_DETAIL];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_DETAIL] WITH CHECK CHECK CONSTRAINT [FK05_ASM_SOFTWARE_USAGE_DETAIL];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_MONTH] WITH CHECK CHECK CONSTRAINT [FK01_ASM_SOFTWARE_USAGE_MONTH];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_MONTH] WITH CHECK CHECK CONSTRAINT [FK02_ASM_SOFTWARE_USAGE_MONTH];

ALTER TABLE [dbo].[ASM_SOFTWARE_USAGE_MONTH] WITH CHECK CHECK CONSTRAINT [FK03_ASM_SOFTWARE_USAGE_MONTH];

ALTER TABLE [dbo].[ASMS_ADVANCED_SHIFTS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_ADVANCED_SHIFTS];

ALTER TABLE [dbo].[ASMS_ADVANCED_SHIFTS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_ADVANCED_SHIFTS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK05_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK06_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK07_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK08_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK09_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK10_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK11_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK12_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS] WITH CHECK CHECK CONSTRAINT [FK13_ASMS_APPROVALS];

ALTER TABLE [dbo].[ASMS_APPROVALS_DATA] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_APPROVALS_DATA];

ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_APPROVALS_DETAIL];

ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_APPROVALS_DETAIL];

ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_APPROVALS_DETAIL];

ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_APPROVALS_DETAIL];

ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH CHECK CHECK CONSTRAINT [FK05_ASMS_APPROVALS_DETAIL];

ALTER TABLE [dbo].[ASMS_APPROVALS_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_APPROVALS_GROUP];

ALTER TABLE [dbo].[ASMS_APPROVALS_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_APPROVALS_GROUP];

ALTER TABLE [dbo].[ASMS_APPROVALS_PROFILES] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_APPROVALS_PROFILES];

ALTER TABLE [dbo].[ASMS_APPROVALS_PROFILES] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_APPROVALS_PROFILES];

ALTER TABLE [dbo].[ASMS_BANNER] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_BANNER];

ALTER TABLE [dbo].[ASMS_BPROCESS_INSTANCE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_PROCESS_INSTANCE];

ALTER TABLE [dbo].[ASMS_BPROCESS_INSTANCE] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_PROCESS_INSTANCE];

ALTER TABLE [dbo].[ASMS_BPROCESS_PROJECT] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_BPROCESS_PROJECT];

ALTER TABLE [dbo].[ASMS_BPROCESS_PROJECT] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_BPROCESS_PROJECT];

ALTER TABLE [dbo].[ASMS_BRAND_CONSOLE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_BRAND_CONSOLE];

ALTER TABLE [dbo].[ASMS_CALENDAR_DAYS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_CALENDAR_DAYS];

ALTER TABLE [dbo].[ASMS_CALENDAR_HOURS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_CALENDAR_HOURS];

ALTER TABLE [dbo].[ASMS_CATEGORY_RELATION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_CATEGORY_RELATION];

ALTER TABLE [dbo].[ASMS_CATEGORY_RELATION] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_CATEGORY_RELATION];

ALTER TABLE [dbo].[ASMS_CATEGORY_RELATION] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_CATEGORY_RELATION];

ALTER TABLE [dbo].[ASMS_CHANGE_SET] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_CHANGE_SET];

ALTER TABLE [dbo].[ASMS_CHANGE_SET_IMPORT] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_CHANGE_SET_IMPORT];

ALTER TABLE [dbo].[ASMS_CHANGE_SET_OPERATION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_CHANGE_SET_OPERATION];

ALTER TABLE [dbo].[ASMS_COMPANY] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_COMPANY];

ALTER TABLE [dbo].[ASMS_COMPANY] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_COMPANY];

ALTER TABLE [dbo].[ASMS_COMPANY] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_COMPANY];

ALTER TABLE [dbo].[ASMS_COMPANY] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_COMPANY];

ALTER TABLE [dbo].[ASMS_COMPANY] WITH CHECK CHECK CONSTRAINT [FK05_ASMS_COMPANY];

ALTER TABLE [dbo].[ASMS_CONCURRENCY] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_CONCURRENCY];

ALTER TABLE [dbo].[ASMS_CONCURRENCY] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_CONCURRENCY];

ALTER TABLE [dbo].[ASMS_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_CONTRACT];

ALTER TABLE [dbo].[ASMS_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_CONTRACT];

ALTER TABLE [dbo].[ASMS_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_CONTRACT];

ALTER TABLE [dbo].[ASMS_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK05_ASMS_CONTRACT];

ALTER TABLE [dbo].[ASMS_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK06_ASMS_CONTRACT];

ALTER TABLE [dbo].[ASMS_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK07_ASMS_CONTRACT];

ALTER TABLE [dbo].[ASMS_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK08_ASMS_CONTRACT];

ALTER TABLE [dbo].[ASMS_CONTRACT_SELF] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_CONTRACT_SELF];

ALTER TABLE [dbo].[ASMS_CONTRACT_SELF] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_CONTRACT_SELF];

ALTER TABLE [dbo].[ASMS_COST] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_COST];

ALTER TABLE [dbo].[ASMS_COST] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_COST];

ALTER TABLE [dbo].[ASMS_COST] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_COST];

ALTER TABLE [dbo].[ASMS_COST_CENTER] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_COST_CENTER];

ALTER TABLE [dbo].[ASMS_COST_CENTER_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_COST_CENTER_CONTRACT];

ALTER TABLE [dbo].[ASMS_COST_CENTER_PROJECT] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_COST_CENTER_PROJECT];

ALTER TABLE [dbo].[ASMS_COST_CENTER_PROJECT] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_COST_CENTER_PROJECT];

ALTER TABLE [dbo].[ASMS_DISPLAY] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_DISPLAY];

ALTER TABLE [dbo].[ASMS_EXECUTE_CONDITION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_EXECUTE_CONDITION];

ALTER TABLE [dbo].[ASMS_FIELDS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FIELDS];

ALTER TABLE [dbo].[ASMS_FIELDS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FIELDS];

ALTER TABLE [dbo].[ASMS_FIELDS] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_FIELDS];

ALTER TABLE [dbo].[ASMS_FIELDS] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_FIELDS];

ALTER TABLE [dbo].[ASMS_FIELDS] WITH CHECK CHECK CONSTRAINT [FK05_ASMS_FIELDS];

ALTER TABLE [dbo].[ASMS_FIELDS_BUILTIN] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FIELDS_BUILTIN];

ALTER TABLE [dbo].[ASMS_FIELDS_DATA] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FIELDS_DATA];

ALTER TABLE [dbo].[ASMS_FIELDS_DATA] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FIELDS_DATA];

ALTER TABLE [dbo].[ASMS_FIELDS_DEPENDENTS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FIELDS_DEPENDENTS];

ALTER TABLE [dbo].[ASMS_FIELDS_DEPENDENTS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FIELDS_DEPENDENTS];

ALTER TABLE [dbo].[ASMS_FIELDS_DEPENDENTS_VALUES] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FIELDS_DEPENDENTS_VALUES];

ALTER TABLE [dbo].[ASMS_FIELDS_MATH] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FIELDS_MATH];

ALTER TABLE [dbo].[ASMS_FIELDS_MATH_ELEMENTS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FIELDS_MATH_ELEMENTS];

ALTER TABLE [dbo].[ASMS_FIELDS_MATH_ELEMENTS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FIELDS_MATH_ELEMENTS];

ALTER TABLE [dbo].[ASMS_FIELDS_STATUS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FIELDS_STATUS];

ALTER TABLE [dbo].[ASMS_FIELDS_STATUS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FIELDS_STATUS];

ALTER TABLE [dbo].[ASMS_FIELDS_VALUES] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FIELDS_VALUES];

ALTER TABLE [dbo].[ASMS_FIELDS_VALUES] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FIELDS_VALUES];

ALTER TABLE [dbo].[ASMS_FOLDER] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FOLDER];

ALTER TABLE [dbo].[ASMS_FOLDER] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FOLDER];

ALTER TABLE [dbo].[ASMS_FOLDER_ITEM] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FOLDER_ITEM];

ALTER TABLE [dbo].[ASMS_FOLDER_ITEM] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FOLDER_ITEM];

ALTER TABLE [dbo].[ASMS_FOLDER_TYPE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FOLDER_TYPE];

ALTER TABLE [dbo].[ASMS_FOLDER_TYPE] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FOLDER_TYPE];

ALTER TABLE [dbo].[ASMS_FORM] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FORM];

ALTER TABLE [dbo].[ASMS_FORM] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FORM];

ALTER TABLE [dbo].[ASMS_FORM] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_FORM];

ALTER TABLE [dbo].[ASMS_FORM_SECTIONS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FORM_SECTIONS];

ALTER TABLE [dbo].[ASMS_FORMS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_FORMS];

ALTER TABLE [dbo].[ASMS_FORMS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_FORMS];

ALTER TABLE [dbo].[ASMS_FORMS] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_FORMS];

ALTER TABLE [dbo].[ASMS_GROUP_PROJECT] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_GROUP_PROJECT];

ALTER TABLE [dbo].[ASMS_GROUP_PROJECT] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_GROUP_PROJECT];

ALTER TABLE [dbo].[ASMS_GROUP_PROJECT] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_GROUP_PROJECT];

ALTER TABLE [dbo].[ASMS_GROUP_SPECIAL] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_GROUP_SPECIAL];

ALTER TABLE [dbo].[ASMS_GROUP_USER] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_GROUP_USER];

ALTER TABLE [dbo].[ASMS_GROUP_USER] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_GROUP_USER];

ALTER TABLE [dbo].[ASMS_HISTORY] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_HISTORY];

ALTER TABLE [dbo].[ASMS_IMPORT] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_IMPORT];

ALTER TABLE [dbo].[ASMS_INTEGRATION_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_INTEGRATION_CATEGORY];

ALTER TABLE [dbo].[ASMS_INTEGRATION_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_INTEGRATION_CATEGORY];

ALTER TABLE [dbo].[ASMS_INTEGRATIONS] WITH CHECK CHECK CONSTRAINT [FK01_AASMS_INTEGRATIONS];

ALTER TABLE [dbo].[ASMS_INTEGRATIONS] WITH CHECK CHECK CONSTRAINT [FK02_AASMS_INTEGRATIONS];

ALTER TABLE [dbo].[ASMS_INTERFACE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_INTERFACE];

ALTER TABLE [dbo].[ASMS_INTERFACE] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_INTERFACE];

ALTER TABLE [dbo].[ASMS_INTERFACE] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_INTERFACE];

ALTER TABLE [dbo].[ASMS_INTERFACE] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_INTERFACE];

ALTER TABLE [dbo].[ASMS_INTERFACE_STATUS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_INTERFACE_STATUS];

ALTER TABLE [dbo].[ASMS_INTERFACE_STATUS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_INTERFACE_STATUS];

ALTER TABLE [dbo].[ASMS_INTERFACE_TYPE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_INTERFACE_TYPE];

ALTER TABLE [dbo].[ASMS_INTERFACE_TYPE] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_INTERFACE_TYPE];

ALTER TABLE [dbo].[ASMS_INTERFACE_TYPE_CONSTANTS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_INTERFACE_TYPE_CONSTANTS];

ALTER TABLE [dbo].[ASMS_INTERFACE_TYPE_OPERATORS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_INTERFACE_TYPE_OPERATORS];

ALTER TABLE [dbo].[ASMS_ITEM_CONDITION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_ITEM_CONDITION];

ALTER TABLE [dbo].[ASMS_ITEM_WEBHOOK] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_ITEM_WEBHOOK];

ALTER TABLE [dbo].[ASMS_LAST_EXECUTE_TASK] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_LAST_EXECUTE_TASK];

ALTER TABLE [dbo].[ASMS_LINKS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_LINKS];

ALTER TABLE [dbo].[ASMS_LOCATION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_LOCATION];

ALTER TABLE [dbo].[ASMS_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_MAIL_TEMPLATE];

ALTER TABLE [dbo].[ASMS_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_MAIL_TEMPLATE];

ALTER TABLE [dbo].[ASMS_MAIL_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_MAIL_TEMPLATE];

ALTER TABLE [dbo].[ASMS_MAP_COUNTRY] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_MAP_COUNTRY];

ALTER TABLE [dbo].[ASMS_MODEL] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_MODEL];

ALTER TABLE [dbo].[ASMS_MODEL] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_MODEL];

ALTER TABLE [dbo].[ASMS_MODEL] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_MODEL];

ALTER TABLE [dbo].[ASMS_MODEL_TYPE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_MODEL_TPYE];

ALTER TABLE [dbo].[ASMS_MODEL_TYPE] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_MODEL_TYPE];

ALTER TABLE [dbo].[ASMS_MODEL_TYPE] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_MODEL_TPYE];

ALTER TABLE [dbo].[ASMS_MODELPROFILES] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_MODELPROFILES];

ALTER TABLE [dbo].[ASMS_MODELPROFILES] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_MODELPROFILES];

ALTER TABLE [dbo].[ASMS_MODELPROFILES] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_MODELPROFILES];

ALTER TABLE [dbo].[ASMS_NEWS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_NEWS];

ALTER TABLE [dbo].[ASMS_POSITIONS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_POSITION];

ALTER TABLE [dbo].[ASMS_POSITIONS_LAST] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_POSITION_LAST];

ALTER TABLE [dbo].[ASMS_PRIVATE_DOCUMENT] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_PRIVATE_DOCUMENT];

ALTER TABLE [dbo].[ASMS_PROFILE_CONDITIONS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_PROFILE_CONDITIONS];

ALTER TABLE [dbo].[ASMS_PROFILE_CONDITIONS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_PROFILE_CONDITIONS];

ALTER TABLE [dbo].[ASMS_PROJECT_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_PROJECT_CONTRACT];

ALTER TABLE [dbo].[ASMS_PROJECT_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_PROJECT_CONTRACT];

ALTER TABLE [dbo].[ASMS_PROJECT_EXTERNAL_AUTH] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_PROJECT_EXTERNAL_AUTH];

ALTER TABLE [dbo].[ASMS_PROJECT_EXTERNAL_AUTH] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_PROJECT_EXTERNAL_AUTH];

ALTER TABLE [dbo].[ASMS_PROJECT_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_PROJECT_GROUP];

ALTER TABLE [dbo].[ASMS_PROJECT_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_PROJECT_GROUP];

ALTER TABLE [dbo].[ASMS_PROJECT_LOCATION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_PROJECT_LOCATION];

ALTER TABLE [dbo].[ASMS_PROJECT_LOCATION] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_PROJECT_LOCATION];

ALTER TABLE [dbo].[ASMS_PROJECT_USER] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_PROJECT_USER];

ALTER TABLE [dbo].[ASMS_PROJECT_USER] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_PROJECT_USER];

ALTER TABLE [dbo].[ASMS_PROJECT_VENDOR] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_PROJECT_VENDOR];

ALTER TABLE [dbo].[ASMS_PROJECT_VENDOR] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_PROJECT_VENDOR];

ALTER TABLE [dbo].[ASMS_PROJECTS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_PROJECTS];

ALTER TABLE [dbo].[ASMS_RELATION_CLASS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_RELATION_CLASS];

ALTER TABLE [dbo].[ASMS_RELATION_CLASS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_RELATION_CLASS];

ALTER TABLE [dbo].[ASMS_RELATION_TYPE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_RELATION_TYPE];

ALTER TABLE [dbo].[ASMS_RELATION_TYPE] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_RELATION_TYPE];

ALTER TABLE [dbo].[ASMS_RISK] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_RISK];

ALTER TABLE [dbo].[ASMS_RISK] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_RISK];

ALTER TABLE [dbo].[ASMS_RISK_ANSWER] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_RISK_ANSWER];

ALTER TABLE [dbo].[ASMS_RISK_QUESTION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_RISK_QUESTION];

ALTER TABLE [dbo].[ASMS_ROUTING] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_ROUTING];

ALTER TABLE [dbo].[ASMS_ROUTING] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_ROUTING];

ALTER TABLE [dbo].[ASMS_ROUTING] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_ROUTING];

ALTER TABLE [dbo].[ASMS_ROUTING_CONFIG] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_ROUTING_CONFIG];

ALTER TABLE [dbo].[ASMS_ROUTING_CONFIG] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_ROUTING_CONFIG];

ALTER TABLE [dbo].[ASMS_ROUTING_CONFIG] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_ROUTING_CONFIG];

ALTER TABLE [dbo].[ASMS_ROUTING_CONFIG] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_ROUTING_CONFIG];

ALTER TABLE [dbo].[ASMS_ROUTING_CONFIG] WITH CHECK CHECK CONSTRAINT [FK05_ASMS_ROUTING_CONFIG];

ALTER TABLE [dbo].[ASMS_ROUTING_EXEC] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_ROUTING_EXEC];

ALTER TABLE [dbo].[ASMS_ROUTING_EXEC] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_ROUTING_EXEC];

ALTER TABLE [dbo].[ASMS_ROUTING_EXEC] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_ROUTING_EXEC];

ALTER TABLE [dbo].[ASMS_ROUTING_EXEC] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_ROUTING_EXEC];

ALTER TABLE [dbo].[ASMS_ROUTING_MANUAL] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_ROUTING_MANUAL];

ALTER TABLE [dbo].[ASMS_ROUTING_MANUAL] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_ROUTING_MANUAL];

ALTER TABLE [dbo].[ASMS_ROUTING_MANUAL] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_ROUTING_MANUAL];

ALTER TABLE [dbo].[ASMS_ROUTING_MANUAL] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_ROUTING_MANUAL];

ALTER TABLE [dbo].[ASMS_RULES] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_RULES];

ALTER TABLE [dbo].[ASMS_RULES] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_RULES];

ALTER TABLE [dbo].[ASMS_RULES] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_RULES];

ALTER TABLE [dbo].[ASMS_RULES] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_RULES];

ALTER TABLE [dbo].[ASMS_RULES_ACTIONS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_RULES_ACTIONS];

ALTER TABLE [dbo].[ASMS_RULES_ACTIONS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_RULES_ACTIONS];

ALTER TABLE [dbo].[ASMS_RULES_CONDITIONS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_RULES_CONDITIONS];

ALTER TABLE [dbo].[ASMS_RULES_PARAM] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_RULES_PARAM];

ALTER TABLE [dbo].[ASMS_RULES_TYPE_ACTIONS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_RULES_TYPE_ACTIONS];

ALTER TABLE [dbo].[ASMS_RULES_TYPE_ACTIONS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_RULES_TYPE_ACTIONS];

ALTER TABLE [dbo].[ASMS_SCRIPT] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_SCRIPT];

ALTER TABLE [dbo].[ASMS_SECTION_FIELDS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_SECTION_FIELDS];

ALTER TABLE [dbo].[ASMS_SECTION_FIELDS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_SECTION_FIELDS];

ALTER TABLE [dbo].[ASMS_SERVICE_CI] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_SERVICE_CI];

ALTER TABLE [dbo].[ASMS_SERVICE_CI] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_SERVICE_CI];

ALTER TABLE [dbo].[ASMS_SETTINGS] WITH CHECK CHECK CONSTRAINT [FK_ASMS_SETTINGS_APLICACIONES];

ALTER TABLE [dbo].[ASMS_SHIFT_STRIP] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_SHIFT_STRIP];

ALTER TABLE [dbo].[ASMS_SHIFT_USER] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_SHIFT_USER];

ALTER TABLE [dbo].[ASMS_SHIFT_USER] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_SHIFT_USER];

ALTER TABLE [dbo].[ASMS_SHIFTS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_SHIFTS];

ALTER TABLE [dbo].[ASMS_SHIFTS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_SHIFTS];

ALTER TABLE [dbo].[ASMS_SHIFTS] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_SHIFTS];

ALTER TABLE [dbo].[ASMS_STAR_RATING] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_STAR_RATING];

ALTER TABLE [dbo].[ASMS_STATUS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_STATUS];

ALTER TABLE [dbo].[ASMS_STATUS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_STATUS];

ALTER TABLE [dbo].[ASMS_STATUS] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_STATUS];

ALTER TABLE [dbo].[ASMS_STATUS] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_STATUS];

ALTER TABLE [dbo].[ASMS_STATUS_COORDINATE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_STATUS_COORDINATE];

ALTER TABLE [dbo].[ASMS_STATUS_REASON] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_STATUS_REASON];

ALTER TABLE [dbo].[ASMS_STATUS_STAGE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_STATUS_STAGE];

ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_STATUS_TRANSITION];

ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_STATUS_TRANSITION];

ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_STATUS_TRANSITION];

ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_STATUS_TRANSITION];

ALTER TABLE [dbo].[ASMS_STATUS_TRANSITION] WITH CHECK CHECK CONSTRAINT [FK05_ASMS_STATUS_TRANSITION];

ALTER TABLE [dbo].[ASMS_SURVEY] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_SURVEY];

ALTER TABLE [dbo].[ASMS_SURVEY] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_SURVEY];

ALTER TABLE [dbo].[ASMS_SURVEY] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_SURVEY];

ALTER TABLE [dbo].[ASMS_SURVEY] WITH CHECK CHECK CONSTRAINT [FK04_ASMS_SURVEY];

ALTER TABLE [dbo].[ASMS_SURVEY] WITH CHECK CHECK CONSTRAINT [FK05_ASMS_SURVEY];

ALTER TABLE [dbo].[ASMS_SURVEY] WITH CHECK CHECK CONSTRAINT [FK06_ASMS_SURVEY];

ALTER TABLE [dbo].[ASMS_SURVEY] WITH CHECK CHECK CONSTRAINT [FK07_ASMS_SURVEY];

ALTER TABLE [dbo].[ASMS_SURVEY] WITH CHECK CHECK CONSTRAINT [FK08_ASMS_SURVEY];

ALTER TABLE [dbo].[ASMS_SURVEY] WITH CHECK CHECK CONSTRAINT [FK09_ASMS_SURVEY];

ALTER TABLE [dbo].[ASMS_SURVEY_DATA] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_SURVEY_DATA];

ALTER TABLE [dbo].[ASMS_TASK_CONDITIONS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TASK_CONDITIONS];

ALTER TABLE [dbo].[ASMS_TASK_PREDECESSOR] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TASK_PREDECESSOR];

ALTER TABLE [dbo].[ASMS_TASK_PREDECESSOR] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_TASK_PREDECESSOR];

ALTER TABLE [dbo].[ASMS_TASK_PREDECESSOR] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_TASK_PREDECESSOR];

ALTER TABLE [dbo].[ASMS_TASK_STATUS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TASK_STATUS];

ALTER TABLE [dbo].[ASMS_TASK_STATUS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_TASK_STATUS];

ALTER TABLE [dbo].[ASMS_TASK_TEMPLATE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TASK_TEMPLATE];

ALTER TABLE [dbo].[ASMS_TEMPLATES] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TEMPLATES];

ALTER TABLE [dbo].[ASMS_TIMES] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TIMES];

ALTER TABLE [dbo].[ASMS_TIMES] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_TIMES];

ALTER TABLE [dbo].[ASMS_TIMES] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_TIMES];

ALTER TABLE [dbo].[ASMS_TIMES_CONDITIONS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TIMES_CONDITIONS];

ALTER TABLE [dbo].[ASMS_TIMES_STATUS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TIMES_STATUS];

ALTER TABLE [dbo].[ASMS_TIMES_STATUS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_TIMES_STATUS];

ALTER TABLE [dbo].[ASMS_TOUR_STEP] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TOUR_STEP];

ALTER TABLE [dbo].[ASMS_TOUR_USER] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TOUR_USER];

ALTER TABLE [dbo].[ASMS_TOUR_USER] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_TOUR_USER];

ALTER TABLE [dbo].[ASMS_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TRANSLATION];

ALTER TABLE [dbo].[ASMS_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_TRANSLATION];

ALTER TABLE [dbo].[ASMS_TYPE_CONDITION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TYPE_CONDITION];

ALTER TABLE [dbo].[ASMS_USER_ACCESS] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_USER_ACCESS];

ALTER TABLE [dbo].[ASMS_USER_ACCESS] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_USER_ACCESS];

ALTER TABLE [dbo].[ASMS_USER_ACCESS] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_USER_ACCESS];

ALTER TABLE [dbo].[ASMS_USER_CACHE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_USER_CACHE];

ALTER TABLE [dbo].[ASMS_USER_CACHE] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_USER_CACHE];

ALTER TABLE [dbo].[ASMS_USER_LOCATION] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_USER_LOCATION];

ALTER TABLE [dbo].[ASMS_USER_LOCATION] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_USER_LOCATION];

ALTER TABLE [dbo].[ASMS_USER_MOBILE] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_USER_MOBILE];

ALTER TABLE [dbo].[ASMS_USER_VENDOR] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_USER_VENDOR];

ALTER TABLE [dbo].[ASMS_USER_VENDOR] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_USER_VENDOR];

ALTER TABLE [dbo].[ASMS_VIEW_FILTER] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_VIEW_FILTER];

ALTER TABLE [dbo].[ASMS_WIZARD_TOUR] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_WIZARD_TOUR];

ALTER TABLE [dbo].[ASMS_WIZARD_TOUR] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_WIZARD_TOUR];

ALTER TABLE [dbo].[ASMS_WIZARD_USER] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_WIZARD_USER];

ALTER TABLE [dbo].[ASMS_WIZARD_USER] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_WIZARD_USER];

ALTER TABLE [dbo].[ASMS_WIZARD_USER] WITH CHECK CHECK CONSTRAINT [FK03_ASMS_WIZARD_USER];

ALTER TABLE [dbo].[ASS_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK01_ASS_ARTICLE];

ALTER TABLE [dbo].[ASS_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK02_ASS_ARTICLE];

ALTER TABLE [dbo].[ASS_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK03_ASS_ARTICLE];

ALTER TABLE [dbo].[ASS_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK04_ASS_ARTICLE];

ALTER TABLE [dbo].[ASS_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK05_ASS_ARTICLE];

ALTER TABLE [dbo].[ASS_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK06_ASS_ARTICLE];

ALTER TABLE [dbo].[ASS_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK07_ASS_ARTICLE];

ALTER TABLE [dbo].[ASS_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK08_ASS_ARTICLE];

ALTER TABLE [dbo].[ASS_ARTICLE_GROUP] WITH CHECK CHECK CONSTRAINT [FK01_ASS_ARTICLE_GROUP];

ALTER TABLE [dbo].[ASS_ARTICLE_GROUP] WITH CHECK CHECK CONSTRAINT [FK02_ASS_ARTICLE_GROUP];

ALTER TABLE [dbo].[ASS_ARTICLE_SELF] WITH CHECK CHECK CONSTRAINT [FK01_ASS_ARTICLE_SELF];

ALTER TABLE [dbo].[ASS_ARTICLE_SELF] WITH CHECK CHECK CONSTRAINT [FK02_ASS_ARTICLE_SELF];

ALTER TABLE [dbo].[ASS_ARTICLE_SELF] WITH CHECK CHECK CONSTRAINT [FK03_ASS_ARTICLE_SELF];

ALTER TABLE [dbo].[ASS_ARTICLE_SELF] WITH CHECK CHECK CONSTRAINT [FK04_ASS_ARTICLE_SELF];

ALTER TABLE [dbo].[ASS_ARTICLE_VERSION] WITH CHECK CHECK CONSTRAINT [FK01_ASS_ARTICLE_VERSION];

ALTER TABLE [dbo].[ASS_CI_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK01_ASS_CI_ARTICLE];

ALTER TABLE [dbo].[ASS_CI_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK02_ASS_CI_ARTICLE];

ALTER TABLE [dbo].[ASS_CI_ARTICLE] WITH CHECK CHECK CONSTRAINT [FK03_ASS_CI_ARTICLE];

ALTER TABLE [dbo].[ASS_FAVORITE] WITH CHECK CHECK CONSTRAINT [FK01_ASS_FAVORITE];

ALTER TABLE [dbo].[ASS_FAVORITE] WITH CHECK CHECK CONSTRAINT [FK02_ASS_FAVORITE];

ALTER TABLE [dbo].[ASS_HIT] WITH CHECK CHECK CONSTRAINT [FK01_ASS_HIT];

ALTER TABLE [dbo].[ASS_KEYWORD] WITH CHECK CHECK CONSTRAINT [FK01_ASS_KEYWORD];

ALTER TABLE [dbo].[ASS_RATING] WITH CHECK CHECK CONSTRAINT [FK01_ASS_RATING];

ALTER TABLE [dbo].[ASS_SEARCH_RESULT] WITH CHECK CHECK CONSTRAINT [FK01_ASS_SEARCH_RESULT];

ALTER TABLE [dbo].[ASS_SEARCH_RESULT] WITH CHECK CHECK CONSTRAINT [FK02_ASS_SEARCH_RESULT];

ALTER TABLE [dbo].[ASS_SEARCH_RESULT] WITH CHECK CHECK CONSTRAINT [FK04_ASS_SEARCH_RESULT];

ALTER TABLE [dbo].[ASS_SEARCH_RESULT] WITH CHECK CHECK CONSTRAINT [FK05_ASS_SEARCH_RESULT];

ALTER TABLE [dbo].[AVS_AUDIT] WITH CHECK CHECK CONSTRAINT [FK01_AVS_AUDIT];

ALTER TABLE [dbo].[AVS_AUDIT] WITH CHECK CHECK CONSTRAINT [FK02_AVS_AUDIT];

ALTER TABLE [dbo].[AVS_AUDIT] WITH CHECK CHECK CONSTRAINT [FK03_AVS_AUDIT];

ALTER TABLE [dbo].[AVS_AUDIT_FILE_LIST] WITH CHECK CHECK CONSTRAINT [FK01_AVS_AUDIT_FILE_LIST];

ALTER TABLE [dbo].[AVS_AUDIT_FILE_LIST] WITH CHECK CHECK CONSTRAINT [FK02_AVS_AUDIT_FILE_LIST];

ALTER TABLE [dbo].[AVS_AUDIT_FILE_LIST] WITH CHECK CHECK CONSTRAINT [FK03_AVS_AUDIT_FILE_LIST];

ALTER TABLE [dbo].[AVS_AUDIT_FILE_TRANSFER] WITH CHECK CHECK CONSTRAINT [FK01_AVS_AUDIT_FILE_TRANSFER];

ALTER TABLE [dbo].[AVS_AUDIT_FILE_TRANSFER] WITH CHECK CHECK CONSTRAINT [FK02_AVS_AUDIT_FILE_TRANSFER];

ALTER TABLE [dbo].[AVS_AUDIT_FILE_TRANSFER] WITH CHECK CHECK CONSTRAINT [FK03_AVS_AUDIT_FILE_TRANSFER];

ALTER TABLE [dbo].[AVS_AUDIT_RECORDING] WITH CHECK CHECK CONSTRAINT [FK01_AVS_AUDIT_RECORDING];

ALTER TABLE [dbo].[AVS_AUDIT_RECORDING] WITH CHECK CHECK CONSTRAINT [FK02_AVS_AUDIT_RECORDING];

ALTER TABLE [dbo].[AVS_AUDIT_RECORDING] WITH CHECK CHECK CONSTRAINT [FK03_AVS_AUDIT_RECORDING];

ALTER TABLE [dbo].[AVS_DEVICE_GROUP_SUPPORT] WITH CHECK CHECK CONSTRAINT [FK01_AVS_DEVICE_GROUP_SUPPORT];

ALTER TABLE [dbo].[AVS_DEVICE_GROUP_SUPPORT] WITH CHECK CHECK CONSTRAINT [FK02_AVS_DEVICE_GROUP_SUPPORT];

ALTER TABLE [dbo].[AVS_DEVICE_LICENSE] WITH CHECK CHECK CONSTRAINT [FK01_AVS_DEVICE_LICENSE];

ALTER TABLE [dbo].[AVS_DEVICE_LICENSE] WITH CHECK CHECK CONSTRAINT [FK02_AVS_DEVICE_LICENSE];

ALTER TABLE [dbo].[AVS_GROUP_SUPPORT] WITH CHECK CHECK CONSTRAINT [FK01_AVS_GROUP_SUPPORT];

ALTER TABLE [dbo].[AVS_GROUP_SUPPORT_PERMISSION] WITH CHECK CHECK CONSTRAINT [FK01_AVS_GROUP_SUPPORT_PERMISSION];

ALTER TABLE [dbo].[AVS_GROUP_SUPPORT_PERMISSION] WITH CHECK CHECK CONSTRAINT [FK02_AVS_GROUP_SUPPORT_PERMISSION];

ALTER TABLE [dbo].[AVS_GROUP_SUPPORT_PERMISSION] WITH CHECK CHECK CONSTRAINT [FK03_AVS_GROUP_SUPPORT_PERMISSION];

ALTER TABLE [dbo].[AVS_LICENSE_COUNT] WITH CHECK CHECK CONSTRAINT [FK01_AVS_LICENSE_COUNT];

ALTER TABLE [dbo].[AVS_SESSION] WITH CHECK CHECK CONSTRAINT [FK01_AVS_SESSION];

ALTER TABLE [dbo].[AVS_SESSION] WITH CHECK CHECK CONSTRAINT [FK02_AVS_SESSION];

ALTER TABLE [dbo].[AVS_SESSION] WITH CHECK CHECK CONSTRAINT [FK03_AVS_SESSION];

ALTER TABLE [dbo].[CMDB_AUDIT] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_AUDIT];

ALTER TABLE [dbo].[CMDB_AUDIT] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_AUDIT];

ALTER TABLE [dbo].[CMDB_AUDIT] WITH CHECK CHECK CONSTRAINT [FK04_CMDB_AUDIT];

ALTER TABLE [dbo].[CMDB_BASELINE] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_BASELINE];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK03_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK04_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK05_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK06_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK07_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK08_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK09_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK10_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK11_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK12_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK13_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI] WITH CHECK CHECK CONSTRAINT [FK14_CMDB_CI];

ALTER TABLE [dbo].[CMDB_CI_AUDIT] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_CI_AUDIT];

ALTER TABLE [dbo].[CMDB_CI_AUDIT] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_CI_AUDIT];

ALTER TABLE [dbo].[CMDB_CI_BASELINE] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_CI_BASELINE];

ALTER TABLE [dbo].[CMDB_CI_BASELINE] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_CI_BASELINE];

ALTER TABLE [dbo].[CMDB_CI_CI] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_CI_CI];

ALTER TABLE [dbo].[CMDB_CI_CI] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_CI_CI];

ALTER TABLE [dbo].[CMDB_CI_CI] WITH CHECK CHECK CONSTRAINT [FK03_CMDB_CI_CI];

ALTER TABLE [dbo].[CMDB_CI_CI] WITH CHECK CHECK CONSTRAINT [FK04_CMDB_CI_CI];

ALTER TABLE [dbo].[CMDB_CI_CI_HIST] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_CI_CI_HIST];

ALTER TABLE [dbo].[CMDB_CI_CI_HIST] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_CI_CI_HIST];

ALTER TABLE [dbo].[CMDB_CI_CI_HIST] WITH CHECK CHECK CONSTRAINT [FK03_CMDB_CI_CI_HIST];

ALTER TABLE [dbo].[CMDB_CI_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_CI_CONTRACT];

ALTER TABLE [dbo].[CMDB_CI_CONTRACT] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_CI_CONTRACT];

ALTER TABLE [dbo].[CMDB_CI_HIST] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_CI_HIST];

ALTER TABLE [dbo].[CMDB_CI_HIST] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_CI_HIST];

ALTER TABLE [dbo].[CMDB_CI_PROJECT] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_CI_PROJECT];

ALTER TABLE [dbo].[CMDB_CI_PROJECT] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_CI_PROJECT];

ALTER TABLE [dbo].[CMDB_CI_USER] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_CI_USER];

ALTER TABLE [dbo].[CMDB_CI_USER] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_CI_USER];

ALTER TABLE [dbo].[CMDB_CI_USER_HIST] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_CI_USER_HIST];

ALTER TABLE [dbo].[CMDB_CI_USER_HIST] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_CI_USER_HIST];

ALTER TABLE [dbo].[CMDB_COMPONENT] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_COMPONENT];

ALTER TABLE [dbo].[CMDB_COMPONENT_HIST] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_COMPONENT_HIST];

ALTER TABLE [dbo].[CMDB_COMPONENT_HIST] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_COMPONENT_HIST];

ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_OUTPUT_ORDER];

ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_OUTPUT_ORDER];

ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER_CI] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_OUTPUT_ORDER_CI];

ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER_CI] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_OUTPUT_ORDER_CI];

ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER_CI] WITH CHECK CHECK CONSTRAINT [FK03_CMDB_OUTPUT_ORDER_CI];

ALTER TABLE [dbo].[CMDB_OUTPUT_ORDER_CI] WITH CHECK CHECK CONSTRAINT [FK04_CMDB_OUTPUT_ORDER_CI];

ALTER TABLE [dbo].[CMDB_PROJECT_GROUP_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK01_CMDB_PROJECT_GROUP_CATEGORY];

ALTER TABLE [dbo].[CMDB_PROJECT_GROUP_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK02_CMDB_PROJECT_GROUP_CATEGORY];

ALTER TABLE [dbo].[CMDB_PROJECT_GROUP_CATEGORY] WITH CHECK CHECK CONSTRAINT [FK03_CMDB_PROJECT_GROUP_CATEGORY];

ALTER TABLE [dbo].[DASH_BOARD] WITH CHECK CHECK CONSTRAINT [FK01_DASH_BOARD];

ALTER TABLE [dbo].[DMM_AGGREGATE_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK01_DMM_AGGREGATE_TRANSLATION];

ALTER TABLE [dbo].[DMM_AGGREGATE_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK02_DMM_AGGREGATE_TRANSLATION];

ALTER TABLE [dbo].[DMM_ATTRIBUTE] WITH CHECK CHECK CONSTRAINT [FK01_DMM_ATTRIBUTE];

ALTER TABLE [dbo].[DMM_ATTRIBUTE_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK01_DMM_ATTRIBUTE_TRANSLATION];

ALTER TABLE [dbo].[DMM_ATTRIBUTE_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK02_DMM_ATTRIBUTE_TRANSLATION];

ALTER TABLE [dbo].[DMM_COLUMN] WITH CHECK CHECK CONSTRAINT [FK01_DMM_COLUMN];

ALTER TABLE [dbo].[DMM_DATA_TYPE_COLUMN] WITH CHECK CHECK CONSTRAINT [FK01_DMM_DATA_TYPE_COLUMN];

ALTER TABLE [dbo].[DMM_DATA_TYPE_COLUMN] WITH CHECK CHECK CONSTRAINT [FK02_DMM_DATA_TYPE_COLUMN];

ALTER TABLE [dbo].[DMM_DATASET_PARAMETERS] WITH CHECK CHECK CONSTRAINT [FK01_DMM_DATASET_PARAMETERS];

ALTER TABLE [dbo].[DMM_DATASET_PARAMETERS_MAPPING] WITH CHECK CHECK CONSTRAINT [FK01_DMM_DATASET_PARAMETERS_MAPPING];

ALTER TABLE [dbo].[DMM_DATASET_PARAMETERS_MAPPING] WITH CHECK CHECK CONSTRAINT [FK02_DMM_DATASET_PARAMETERS_MAPPING];

ALTER TABLE [dbo].[DMM_DATASET_PARAMETERS_MAPPING] WITH CHECK CHECK CONSTRAINT [FK03_DMM_DATASET_PARAMETERS_MAPPING];

ALTER TABLE [dbo].[DMM_DATASET_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK01_DMM_DATASET_TRANSLATION];

ALTER TABLE [dbo].[DMM_DATASET_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK02_DMM_DATASET_TRANSLATION];

ALTER TABLE [dbo].[DMM_METRIC] WITH CHECK CHECK CONSTRAINT [FK01_DMM_METRIC];

ALTER TABLE [dbo].[DMM_METRIC] WITH CHECK CHECK CONSTRAINT [FK02_DMM_METRIC];

ALTER TABLE [dbo].[DMM_METRIC_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK01_DMM_METRIC_TRANSLATION];

ALTER TABLE [dbo].[DMM_METRIC_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK02_DMM_METRIC_TRANSLATION];

ALTER TABLE [dbo].[DMM_RELATIONSHIP] WITH CHECK CHECK CONSTRAINT [FK01_DMM_RELATIONSHIP];

ALTER TABLE [dbo].[DMM_RELATIONSHIP] WITH CHECK CHECK CONSTRAINT [FK02_DMM_RELATIONSHIP];

ALTER TABLE [dbo].[DMM_RELATIONSHIP] WITH CHECK CHECK CONSTRAINT [FK03_DMM_RELATIONSHIP];

ALTER TABLE [dbo].[DMM_RELATIONSHIP] WITH CHECK CHECK CONSTRAINT [FK04_DMM_RELATIONSHIP];

ALTER TABLE [dbo].[DMM_RELATIONSHIP_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK01_DMM_RELATIONSHIP_TRANSLATION];

ALTER TABLE [dbo].[DMM_RELATIONSHIP_TRANSLATION] WITH CHECK CHECK CONSTRAINT [FK02_DMM_RELATIONSHIP_TRANSLATION];

ALTER TABLE [dbo].[TEAMS_USER_REFERENCE] WITH CHECK CHECK CONSTRAINT [FK01_TEAMS_USER_REFERENCE];

ALTER TABLE [dbo].[AAM_NETWORKADAPTER_ADDRES] WITH CHECK CHECK CONSTRAINT [CK01_AAM_NETWORKADAPTER_ADDRES];

ALTER TABLE [dbo].[AAM_NETWORKADAPTER_CONFIG] WITH CHECK CHECK CONSTRAINT [CK01_AAM_NETWORKADAPTER_CONFIG];

ALTER TABLE [dbo].[AFW_MAIL_ATTACHMENT] WITH CHECK CHECK CONSTRAINT [CHK_ATTACHMENT_SIZE];

ALTER TABLE [dbo].[ASM_CONSOLIDATE_CONTROL] WITH CHECK CHECK CONSTRAINT [CK01_ASM_CONSOLIDATE_CONTROL];

ALTER TABLE [dbo].[ASMS_APPROVALS_DETAIL] WITH CHECK CHECK CONSTRAINT [CK02_ASMS_APPROVALS_DETAIL];

ALTER TABLE [dbo].[ASMS_CONTRACT] WITH CHECK CHECK CONSTRAINT [CK_ASMS_CONTRACT];

ALTER TABLE [dbo].[ASS_ARTICLE] WITH CHECK CHECK CONSTRAINT [CK01_ASS_ARTICLE];

ALTER TABLE [dbo].[DMM_DATASET] WITH CHECK CHECK CONSTRAINT [CK01_DMM_DATASET];

ALTER TABLE [dbo].[DMM_DATASET] WITH CHECK CHECK CONSTRAINT [CK02_DMM_DATASET];

ALTER TABLE [dbo].[ASMS_TIMES_DATA] WITH CHECK CHECK CONSTRAINT [FK01_ASMS_TIMES_DATA];

ALTER TABLE [dbo].[ASMS_TIMES_DATA] WITH CHECK CHECK CONSTRAINT [FK02_ASMS_TIMES_DATA];


GO
PRINT N'Update complete.';


GO
